/*! * DevExtreme (dx.viz.js) * Version: 19.1.16 * Build date: Tue Oct 18 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict";!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=865)}([function(e,t,n){var i=n(1).isPlainObject,r=function(e,t,n){e=e||{};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];i in e&&!n||(e[i]=r)}return e},o=function e(t){t=t||{};var n=1,r=!1;for("boolean"==typeof t&&(r=t,t=arguments[1]||{},n++);n=0&&t.call(e[n],n,e[n])!==!1;n--);};t.map=i,t.each=r,t.reverseEach=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,a=n(29),s=i(a),l=n(40),u=i(l),c=n(6),d=n(3),h=n(20),f=n(1),p=function(e,t){return(0,f.isDefined)(e)?e:t},g=function(e,t){var n=new c.Deferred,i=t||this,r={promise:n.promise(),abort:function(){clearTimeout(a),n.rejectWith(i)}},o=function(){var t=e.call(i);t&&t.done&&(0,f.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)},a=(arguments[2]||setTimeout)(o,"number"==typeof t?t:0);return r},_=[],m=[],v=[],y=function(e,t,n){if(o&&o!==e)return _.push(t),m.push(e),n=n||new c.Deferred,v.push(n),n;var i=o,r=v.length;o=e;var a=t();return a||(v.length>r?a=c.when.apply(this,v.slice(r)):n&&n.resolve()),o=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!o&&_.length&&("render"===m.shift()?b:x)(_.shift(),v.shift()),a||(0,c.when)()},b=function(e,t){return y("render",e,t)},x=function(e,t){return y("update",e,t)},S=function(e){return function(){var t=this;return y("render",function(){return e.call(t)})}},C=function(e){return function(){var t=this;return y("update",function(){return e.call(t)})}},w=function(e,t,n){var i=[],r=0;return(0,d.each)(t,function(t,o){var a=0,s=n?n(o):o;(0,d.each)(e,function(e,t){var n=s[e];if(void 0!==n)return k(n,t)?void a++:(a=-1,!1)}),ar&&(i.length=0,r=a),i.push(o))}),i},k=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,d.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},T=function(e){switch(r(e)){case"string":return e.split(/\s+/,2);case"object":return[e.x||e.h,e.y||e.v];case"number":return[e];default:return e}},A=function(e){var t=(0,f.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,d.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},E=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},O=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i=I||((0,f.isObject)(e)&&(0,f.isObject)(t)?D(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&O(e,t,n))},L=function(e){if(e instanceof u.default)return e.toString();if((0,f.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},R=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},V=function(e){var t=(0,s.default)().serverDecimalSeparator;return(0,f.isDefined)(e)&&(e=e.toString().replace(".",t)),e},B=function(){},F=function(){return(new c.Deferred).resolve().promise()},z=function(e,t,n){for(var i=[],r=!n,o=0;o-1&&(f={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,f)),E.callMethod(t,"add",e,[h])},removeHandler:function(i,r){var s=function(t){var a=n[t];if(!a.handleObjects.length)return void delete n[t];var s;a.handleObjects=a.handleObjects.filter(function(n){var a=o.length&&!R(n.namespaces,o)||i&&n.handler!==i||r&&n.selector!==r;return a||(s=n.handler,E.callMethod(t,"remove",e,[n])),a});var l=!a.handleObjects.length,u=l&&t!==b;u&&(E.callMethod(t,"teardown",e,[o,s]),a.nativeHandler&&a.removeListener(),delete n[t])};if(a)s(t);else for(var l in n)s(l);var u=0===Object.keys(n).length;u&&T.delete(e)},callHandlers:function(e,t){var i=!1,r=function(n){i||o.length&&!R(n.namespaces,o)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(r),o.length&&n[b]&&n[b].handleObjects.forEach(r)}}},L=function(e){return function(t,n){var i=P(this,e);t=j.Event(t),i.callHandlers(t,n)}},R=function(e,t){for(var n=0;n-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach(function(t){i[1]=t,e.apply(this,i)})}else e.apply(this,arguments)};return function(e,n){if("object"===i(n)){var r=Array.prototype.slice.call(arguments,0);for(var o in n)r[1]=o,r[r.length-1]=n[o],t.apply(this,r)}else t.apply(this,arguments)}},N=function(e,t){var n=S[e]||e,i=function(e,t){return"click"===e&&"a"===t.localName};i(e,t)||p(t[n])&&(r=e,t[n](),r=void 0)},G=function(e){var t=function(e){var t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!e.which&&void 0!==e.button&&t.test(e.type)},n=function(e){return null==e.which&&0===e.type.indexOf("key")};if(n(e))return null!=e.charCode?e.charCode:e.keyCode;if(t(e)){var i={1:1,2:3,3:1,4:2};return i[e.button]}return e.which},j=c({on:D(V(H(function(e,t,n,i,r){var o=P(e,t);o.addHandler(r,n,i)}))),one:D(V(function(e,t,n,i,r){var o=function i(){j.off(e,t,n,i),r.apply(this,arguments)};j.on(e,t,n,i,o)})),off:D(B(H(function(e,t,n,i){var r=P(e,t);r.removeHandler(i,n)}))),trigger:D(F(function(e,t,n){var i=t.type,r=P(e,t.type);E.callMethod(i,"trigger",e,[t,n]),r.callHandlers(t,n);var o=E.getField(i,"noBubble")||t.isPropagationStopped()||C.indexOf(i)!==-1;if(!o){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(u);for(var c=0;s[c]&&!t.isPropagationStopped();){var d=P(s[c],t.type);d.callHandlers(a(t,{currentTarget:s[c]}),n),c++}}(e.nodeType||f(e))&&(E.callMethod(i,"_default",e,[t,n]),N(i,e))})),triggerHandler:D(F(function(e,t,n){var i=P(e,t.type);i.callHandlers(t,n)}))}),W=function(e){e&&(j.Event=e,j.Event.prototype=e.prototype)};W(z(function(e,t){var n=this,i=!1,r=!1,o=!1;a(n,e),(e instanceof j.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof j.Event||a(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return r},stopImmediatePropagation:function(){this.stopPropagation(),r=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(o||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){o=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),U("which",G,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),a(n,t),n.guid=++A}));var U=function(e,t,n){Object.defineProperty(n||j.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})};v(U);var Y=h(),X=h();j.set=function(e){Y.fire(),j.inject(e),W(e.Event),X.fire()},j.subscribeGlobal=function(){O(arguments,V(function(){var e=arguments;j.on.apply(this,e),Y.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),j.off.apply(this,t)}),X.add(function(){j.on.apply(this,e)})}))},j.forcePassiveFalseEventNames=w,j.passiveEventHandlersSupported=I,e.exports=j},function(e,t,n){var i=n(1),r=i.isPromise,o=i.isDeferred,a=n(0).extend,s=n(25),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],u=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new u;return["done","fail"].forEach(function(a){var s="done"===a?e:t;this[a](function(){if(!s)return void n["done"===a?"resolve":"reject"].apply(this,arguments);var e=s&&s.apply(this,arguments);o(e)?e.done(n.resolve).fail(n.reject):r(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,i.isDefined(e)?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?a(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;u.prototype[t+"With"]=function(e,i){var r=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),r.fire(e,i)),this}}),t.fromPromise=function(e,t){if(o(e))return e;if(r(e)){var n=new u;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new u).resolveWith(t,[e])};var c=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,r=new u,a=function(t){return function(o){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):o,i++,i===e.length&&r.resolveWith(n,e)}},s=0;s1:S(e)?i&&(0,c.focused)(n):void 0},O=function(e){return e},D=function(e){O=e},M=function(e){return O(s.default.Event(e,e),e)},I=function(e,t){var n=M(e);return t&&(0,d.extend)(n,t),n},P=function(e){var t=I(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},L=function e(t,n){if(!n)throw u.default.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):((0,h.each)(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},R=function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return n=t?f[n.toLowerCase()]||n:p[n]||String.fromCharCode(n)},V=function(e){return e.key||String.fromCharCode(e.which)};e.exports={eventSource:g,isPointerEvent:y,isMouseEvent:b,isDxMouseWheelEvent:x,isTouchEvent:S,isKeyboardEvent:C,isFakeClickEvent:w,hasTouches:A,eventData:k,eventDelta:T,needSkipEvent:E,createEvent:I,fireEvent:P,addNamespace:L,setEventFixMethod:D,normalizeKeyName:R,getChar:V}},function(e,t,n){var i=n(2),r=n(151),o=n(21),a=n(127),s=function(e,t,n){n?t[e]=n:n=t,a.name(n,e),r.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,r="string"==typeof n;if(r){var a=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw o.Error("E0009",e);var r=n[a],l=r.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};r.add(l),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(53),a=i(o),s=n(4),l=1,u=3,c=9,d={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=this,i=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var i=e.document||e.ownerDocument;if(!i)return!1;for(var r=n.querySelectorAll(i,t),o=0;o=0&&(a.splice(s,1),i=a.join(" ")),void 0!==i&&(r?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):s.noop}};e.exports=(0,a.default)(d)},function(e,t,n){function i(e,t){for(var n=0,i=e.length,r=[];n2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+n*t)}:"logarithmic"===e.axisType?function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=N(t,e.base)+i*n;return j(r,e.base)}:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e+i*n;return t&&r*e<=0?0:r}}function p(e,n,i,r){var o=_.isDefined(n.startValue),a=_.isDefined(n.endValue),s="discrete"!==e.axisType;r=r||i;var l=f(e,!1),u=o?n.startValue:r.min,c=a?n.endValue:r.max,d=n.length,h=r.categories;if(s&&!_.isDefined(u)&&!_.isDefined(c))return{startValue:u,endValue:c};if(x(d))if(s)"datetime"!==e.dataType||S(d)||(d=b(d)),a&&!o||!a&&!o?(x(i.max)&&(c=c>i.max?i.max:c),u=l(c,d,-1)):o&&!a&&(x(i.min)&&(u=ui.max&&(c=i.max),x(i.min)&&u0?(n=L(n)/D,t=V(n),t-n4&&(o=4)):(i="exponential",o+=r-1,o>3&&(o=3)),{type:i,precision:o})},Q=function(e,t){if(t>20&&(t=20),S(e))return z(C(e)?e.toExponential(t):e.toFixed(t))},J=function(e){return e.toExponential().split("e")[1]};m(t,{decreaseGaps:function(e,t,n){var i;do i=r(e,t),i.push(w.ceil(n/i.length)),n=o(e,t,w.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:a,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t=n.x,r=(i?e.x:e.x+e.width)-n.x,o=e.y-n.y,a=o+t,s=k(T(r*r+o*o-a*a)),l=(i?+s:-s)||r;return{x:n.x+(i?l:l-e.width),y:e.y+t}},mergeMarginOptions:function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:Math.max(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:Math.max(e.sizePointNormalState||0,t.sizePointNormalState||0)}}}),t.getVizRangeObject=d,t.convertVisualRangeObject=h,t.adjustVisualRange=p,t.getAddFunction=f,t.getLog=N,t.getAdjustedLog10=G,t.raiseTo=j,t.normalizeAngle=W,t.convertAngleToRendererSpace=U,t.degreesToRadians=Y,t.getCosAndSin=X,t.getDecimalOrder=$,t.getAppropriateFormat=Z,t.getDistance=K,t.roundValue=Q,t.getPower=J,t.rotateBBox=c,t.normalizeBBox=u},function(e,t,n){var i,r=n(2),o=n(29),a=n(10),s=n(7),l=s.getWindow(),u=n(5),c=n(13).inArray,d=n(1),h=d.isDefined,f=d.isRenderer,p=n(217),g=function(){var e=a.getActiveElement(),t=a.getBody();if(e&&e!==t&&e.blur)try{e.blur()}catch(e){t.blur()}},_=function(){var e=l.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},m=function(e,t){var n=r(e),i=r(t);if(n[0]===i[0])return n[0];for(var o=n.parents(),a=i.parents(),s=Math.min(o.length,a.length),l=-s;l<0;l++)if(o.get(l)===a.get(l))return o.get(l)},v=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=r(n||"body"),o=i.filter(t).add(i.find(t)),a=0;a-1)&&o[s]&&(o[s](a[s]),n.push(o[s]("instance")))}),n},C=function(e){if(!l.WinJS)return r(p.parseHTML(e));var t=r("
");return l.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},w=function(e){e=r(e);var t=e.length&&e.filter(function(){var e=r(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=r("
").append(e),e.html())},k=function e(t){var n=h(t)&&(t.nodeType||f(t))?r(t):r("
").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},T=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||l.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},A=function(e,t){return!!t&&(t=a.isTextNode(t)?t.parentNode:t,a.isDocument(e)?e.documentElement.contains(t):e.contains(t))},E=function(e){return i(e)},O=function(e){i=e};O(function(e){return e&&e.get(0)});var D=function(e,t,n){var i=l.getComputedStyle(r(e).get(0)),o=n&&n.includePaddings;return r("
").text(t).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:o?i.paddingTop:"",paddingRight:o?i.paddingRight:"",paddingBottom:o?i.paddingBottom:"",paddingLeft:o?i.paddingLeft:"",visibility:"hidden",whiteSpace:"nowrap",position:"absolute","float":"left"})};t.setPublicElementWrapper=O,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=S,t.extractTemplateMarkup=w,t.normalizeTemplateElement=k,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=T,t.contains=A,t.getPublicElement=E,t.createTextElementHiddenCopy=D},function(e,t,n){var i=n(1).isDefined,r=n(3).each,o=n(48),a=n(29),s=function(e){return Array.isArray(e)&&!e.length},l=function(e){return Array.isArray(e)?e:[e]},u=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return r(e,function(e,i){var r=h(i,t);r!==-1&&n.push(i); }),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return r(e,function(e,i){var r=h(i,t);r===-1&&n.push(i)}),n},d=function(e,t,n,s){var l={},u=0,c=a().useLegacyVisibleIndex;return r(e,function(e,i){e=i[t],e>=0?(l[e]=l[e]||[],i===n?l[e].unshift(i):l[e].push(i)):i[t]=void 0}),c||r(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}}),u=0,o.orderEach(l,function(e,n){r(n,function(){e>=0&&(this[t]=u++)})}),c&&r(e,function(){i(this[t])||s&&!s(this)||(this[t]=u++)}),u},h=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},f=function(e,t){for(var n=0;n1&&(i[0]<4||4===i[0]&&i[1]<4),o=r?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:o}}}},x=c.inherit({ctor:function(e){this._window=e&&e.window||a,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),r.hasWindow()&&(this._recalculateOrientation(),f.add(this._recalculateOrientation.bind(this)))},current:function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice},real:function(){return s({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(e){var t=[],n=this._realDevice;return e=e||this.current(),e.deviceType&&(t.push("dx-device-"+e.deviceType),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-"+n.platform),n.version&&n.version.length&&t.push("dx-device-"+n.platform+"-"+n.version[0]),S.isSimulator()&&t.push("dx-simulator"),m().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||r.hasWindow()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}},forceSimulator:function(){this._isSimulator=!0},_getDevice:function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),l(e))return this._fromConfig(e);var t;if(e){if(t=v[e],!t)throw d.Error("E0005")}else t=o.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return r.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},y,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(u(b,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=y;return i.mac=n,i},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(p),S=new x;_.changeCallback.add(function(e,t){S.detachCssClasses(t),S.attachCssClasses(e)}),S.isForced()||"win"!==S.current().platform||S.current({version:[10]}),e.exports=S},function(e,t,n){var i=n(125),r=n(21);e.exports=i(r.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config."})},function(e,t,n){var i=n(2),r=n(5),o=n(17),a=n(110),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(4),d=n(1),h=n(12),f=n(10),p=n(16),g=n(67),_=n(462),m=n(71),v=n(85),y=n(111),b=n(136),x=n(159),S=n(65),C=n(8),w=n(137),k=n(129),T=n(19),A=n(33),E="UIFeedback",O="dx-widget",D="dx-state-active",M="dx-state-disabled",I="dx-state-invisible",P="dx-state-hover",L="dx-state-focused",R=30,V=400,B="Focus",F="template",z=3,H="[data-options*='dxTemplate']",N="dx-template-wrapper",G=new v(function(e){var t=e.model.widget;if(t){var n=i("
"),r=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var a=t;t=A.camelize("dx-"+t),o.log("W0001","dxToolbar - 'widget' item field",a,"16.1","Use: '"+t+"' instead")}return e.parent?e.parent._createComponent(n,t,r):n[t](r),n}return i()}),j=g.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return s(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(e,t,n){return n=n||{},n.skipImmediate||t(e()),c.noop},templates:{"dx-polymorph-widget":G},createTemplate:function(e){return new _(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:R,_feedbackHideTimeout:V,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_clearInnerOptionCache:function(e){this[e+"Cache"]={}},_cacheInnerOptions:function(e,t){var n=e+"Cache";this[n]=s(this[n],t)},_getOptionsFromContainer:function(e){var t=e.name,n=e.fullName,i=e.value,r={};if(t===n)r=i;else{var o=n.split(".").pop();r[o]=i}return r},_innerOptionChanged:function(e,t){var n=this._getOptionsFromContainer(t);e&&e.option(n),this._cacheInnerOptions(t.name,n)},_getInnerOptionsCache:function(e){return this[e+"Cache"]},_initInnerOptionCache:function(e){this._clearInnerOptionCache(e),this._cacheInnerOptions(e,this.option(e))},_bindInnerWidgetOptions:function(e,t){this._options[t]=s({},e.option()),e.on("optionChanged",function(e){this._options[t]=s({},e.component.option())}.bind(this))},_extractTemplates:function(){var e=this.$element().contents().filter(H),t={};e.each(function(e,n){var r=h.getElementOptions(n).dxTemplate;if(r){if(!r.name)throw o.Error("E0023");i(n).addClass(N).detach(),t[r.name]=t[r.name]||[],t[r.name].push(n)}}),u(t,function(e,t){var n=this._findTemplateByDevice(t);n&&this._saveTemplate(e,n)}.bind(this))},_saveTemplate:function(e,t){var n=this.option("integrationOptions.templates");n[e]=this._createTemplate(t)},_findTemplateByDevice:function(e){var t=c.findBestMatches(p.current(),e,function(e){return h.getElementOptions(e).dxTemplate})[0];return u(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),r=n.filter(function(e,t){var n=t.nodeType===z,r=i(t).text().trim().length<1;return!(n&&r)}),o=r.length<1;e[t]||o||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return F},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return d.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!d.isDefined(n))return new y;var r=!1,o=this._acquireTemplate(n,function(e){return e.nodeType||d.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(r=!0,this._createTemplate(e))}.bind(this)),a=o.render(t);return r&&o.dispose&&o.dispose(),a}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){if(null==e)return new y;if(e instanceof b)return this._defaultTemplates[e.name];if(e instanceof m)return e;if(d.isFunction(e.render)&&!d.isRenderer(e))return this._addOneRenderedCall(e);if(e.nodeType||d.isRenderer(e))return t(i(e));if("string"==typeof e){var n=this.option("integrationOptions.skipTemplates")||[],r=null;return n.indexOf(e)===-1&&(r=this._renderIntegrationTemplate(e)),r||this._defaultTemplates[e]||t(e)}return this._acquireTemplate(e.toString(),t)},_addOneRenderedCall:function(e){var t=e.render.bind(e);return s({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})},_renderIntegrationTemplate:function(e){var t=this.option("integrationOptions.templates")[e];if(t&&!(t instanceof m)){var n=this.option("templatesRenderAsynchronously");if(!n)return this._addOneRenderedCall(t)}return t},_createTemplateIfNeeded:function(e){var t=function(e){return d.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(O),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){var e=this.option("hint");this.$element().attr("title",e?e:null)},_renderContent:function(){var e=this;c.deferRender(function(){if(!e._disposed)return e._renderContentImpl()}).done(function(){e._disposed||e._fireContentReadyAction()})},_renderContentImpl:c.noop,_fireContentReadyAction:c.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(I,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=C.addNamespace(T.name,E);r.off(e,t),this.option("accessKey")&&r.on(e,t,function(e){C.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+M)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusEventTarget(),t=this.NAME+B,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),f.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),r.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+B,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),o=this._focusEventTarget();if(r.on(o,t,this._focusInHandler.bind(this)),r.on(o,n,this._focusOutHandler.bind(this)),f.hasDocumentProperty("onbeforeactivate")){var a=C.addNamespace("beforeactivate",e);r.on(this._focusEventTarget(),a,function(e){i(e.target).is(S.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget:function(){return this._focusTarget()},_focusInHandler:function(e){if(!e.isDefaultPrevented()){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})}},_focusOutHandler:function(e){if(!e.isDefaultPrevented()){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})}},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(L,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(L)},_isFocused:function(){return this._hasFocusClass()},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._disposeKeyboardProcessor(),this._keyboardProcessor=new x({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.keyName,i=e.which,r=this._supportedKeys(t),o=r[n]||r[i];if(void 0!==o){var a=o.bind(this);return a(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._disposeKeyboardProcessor()},_disposeKeyboardProcessor:function(){this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(w.start,E),o=C.addNamespace(w.end,E);if(r.off(e._eventBindingTarget(),n,t),r.off(e._eventBindingTarget(),o,t),e.option("hoverStateEnabled")){var s=new a(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();r.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),r.on(l,o,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:c.noop,_hoverEndHandler:c.noop,_attachFeedbackEvents:function(){var e,t,n=this,o=n._activeStateUnit,s=C.addNamespace(k.active,E),l=C.addNamespace(k.inactive,E);if(r.off(n._eventBindingTarget(),s,o),r.off(n._eventBindingTarget(),l,o),n.option("activeStateEnabled")){var u=function(e){var t=i(e.element),r=e.value,o=e.event;n._toggleActiveState(t,r,o)};r.on(n._eventBindingTarget(),s,o,{timeout:n._feedbackShowTimeout},function(t){e=e||new a(u),e.execute({element:i(t.currentTarget),value:!0,event:t})}),r.on(n._eventBindingTarget(),l,o,{timeout:n._feedbackHideTimeout},function(e){t=t||new a(u,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(D,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(P,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(M,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(d.isPlainObject(t[0]))return void u(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var r=this[e+"OptionMap"];this[e].option(r?r(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=d.isDefined(n)?n.toString():null,e.target.attr(t,n)};if(d.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();u(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){r.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=j},function(e,t,n){var i=n(2),r=n(5),o=n(16),a=n(10),s=n(12),l=n(112),u=n(8),c=n(23),d=n(114),h=n(88),f=n(58).compare,p="dxclick",g=10,_=Math.abs,m=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},y=d.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=u.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===c.cancel?void this._cancel(e):(m(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,r=u.eventDelta(u.eventData(e),this._startEventData),o=_(r.x)>g||_(r.y)>g;return i||o},_fireClickEvent:function(e){this._fireEvent(p,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=o.real(),n=t.generic||t.ios&&f(t.version,[9,3])>=0||t.android&&f(t.version,[5])>=0,a=function(t){return n||i(t).closest("."+e).length},s=null,l=null,c=function(e){var t=e.originalEvent,n=l===t||t&&t.DXCLICK_FIRED,i=!e.which||1===e.which;i&&!s&&a(e.target)&&!n&&(t&&(t.DXCLICK_FIRED=!0),l=t,u.fireEvent({type:p,originalEvent:e}))};y=y.inherit({_makeElementClickable:function(e){a(e)||this.callBase(e),r.on(e,"click",c)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,a(e.target)||this.callBase(e)},end:function(e){a(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),r.off(this.getElement(),"click",c)}})}(),function(){var e=o.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},d=function(e){var r=i(e.target);n||!t||r.is(t)||i(t).is("label")||!m(r)||s.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",f=a.getDocument();r.subscribeGlobal(f,u.addNamespace(c.down,h),l),r.subscribeGlobal(f,u.addNamespace("click",h),d)}}(),h({emitter:y,bubble:!0,events:[p]}),t.name=p},function(e,t,n){var i=n(21),r=n(15),o=n(48),a=n(1),s=n(3).each,l=n(87),u=l.unwrap,c=l.isWrapped,d=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},f=function(e,t,n){return n=n||{},"this"===t?_(e,n):_(e[t],n)},p=function(e,t,n,r){if("this"===t)throw new i.Error("E4016");var o=e[t];r.unwrapObservables&&c(o)?d(o,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?u(e):e},m=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,r=("defaultValue"in n),o=_(e,n),s=0;s=0;i--){var r=t[i],o=Math.floor(e/p(r));o>0&&(n[r+"s"]=o,e-=y(r,o))}return n},v=function(e){var t=0;return u(e)&&s(e,function(e,n){t+=y(e.substr(0,e.length-1),n)}),c(e)&&(t=y(e,1)),t},y=function(e,t){return p(e)*t},b=function(e){var t=-1;return c(e)?e:u(e)?(s(e,function(e,n){for(var i=0;i=6&&(i=new Date(i.setDate(i.getDate()+7))),i},J=function(e,t,n,i){return"date"===i&&(t=t&&le.correctDateWithUnitBeginning(t,"day"),n=n&&le.correctDateWithUnitBeginning(n,"day"),e=e&&le.correctDateWithUnitBeginning(e,"day")),ne(e,t,n)===e},ee=function(e){var t=Math.floor(e),n=e%1*60;return{hours:t,minutes:n}},te=function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()n&&(i=n),i):e},ie=function(e,t){if(h(e)){var n=t.getHours()-e.getHours();if(0!==n){var i=1===n||n===-23?-1:1,r=new Date(t.getTime()+36e5*i);(i>0||r.getDate()===t.getDate())&&t.setTime(r.getTime())}}},re=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},oe=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},ae=function(e){return new Date(e)},se=function(e,t,n){var i=[],r=new Date(e.getTime());for(e.getTime()===t.getTime()&&i.push(new Date(e.getTime()));r-1&&(t.splice(i,1),this._firing&&n.length))for(var r=0;r-1:!!t.length},i.prototype.empty=function(e){return this._list=[],this},i.prototype.fireWith=function(e,t){var n=this._queue;if(t=t||[],t=t.slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(n.push([e,t]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};var r=function(e){return new i(e)};e.exports=r},function(e,t,n){var i=n(0).extend,r=n(7),o=r.getNavigator(),a=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,u=/(edge)\/((\d+)?[\w.]+)/,c=/(mozilla)(?:.*? rv:([\w.]+))/,d=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||u.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||a.exec(e)||[],i=n[1],r=n[2];return"webkit"===i&&(t.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(i="chrome",r=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e),r=r&&r[1]):e.indexOf("fxios")>=0?(i="mozilla",r=/fxios\/(\d+\.\d+)/.exec(e),r=r&&r[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(i="safari",r=/(?:version|phantomjs)\/([0-9.]+)/.exec(e),r=r&&r[1]):(i="unknown",r=/applewebkit\/([0-9.]+)/.exec(e),r=r&&r[1])),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=r),t};e.exports=i({_fromUA:d},d(o.userAgent))},function(e,t,n){var i=n(37),r=n(1).type,o="dxTranslator",a=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=d(e);return{left:t.x,top:t.y}},u=function(e,t){var n,i=t.left,r=t.top;void 0===i?(n=d(e),n.y=r||0):void 0===r?(n=d(e),n.x=i||0):(n={x:i||0,y:r||0,z:0},h(e,n)),e.css({transform:_(n)}),(c(i)||c(r))&&f(e)},c=function(e){return"string"===r(e)&&"%"===e[e.length-1]},d=function(e){var t=e.length?i.data(e.get(0),o):null;if(!t){var n=e.css("transform")||_({x:0,y:0}),r=n.match(a),s=r&&r[1];r?(r=r[2].split(","),"3d"===s?r=r.slice(12,15):(r.push(0),r=r.slice(4,7))):r=[0,0,0],t={x:parseFloat(r[0]),y:parseFloat(r[1]),z:parseFloat(r[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),o,t)},f=function(e){e.length&&i.removeData(e.get(0),o)},p=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),f(e),t&&(e.get(0).offsetHeight,e.css("transition",n))},g=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},_=function(e){e.x=e.x||0,e.y=e.y||0;var t=c(e.x)?e.x:e.x+"px",n=c(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=u,t.locate=l,t.clearCache=f,t.parseTranslate=g,t.getTranslate=d,t.getTranslateCss=_,t.resetPosition=p},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function r(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function o(e,t){var n=a(t||0)+2,o=e.toString().split("."),s=e,l=Math.abs(e),c=u(e),d=l>1?10:0;if(1===o.length)return e;if(c||(u(t)&&(n=o[0].length+i(t)),e=l,e=e-Math.floor(e)+d),n=r()&&i(e)>6||n>7?15:7,!c){var h=parseFloat(e.toPrecision(n)).toString().split(".");if(h[0]===d.toString())return parseFloat(o[0]+"."+h[1])}return parseFloat(s.toPrecision(n))}function a(e){var t=e.toString();if(t.indexOf(".")<0)return 0;var n=t.split("."),i=n[1].indexOf("e");return i>=0?i:n[1].length}function s(e,t){if(e<0&&t%2!==1)return NaN;var n=Math.pow(Math.abs(e),1/t);return t%2===1&&e<0?-n:n}function l(e,t,n,i){var r=1e-8;if(Math.abs(e)0?[(-t+Math.sqrt(o))/(2*e),(-t-Math.sqrt(o))/(2*e)]:[]}var a,l,u=(3*e*n-t*t)/(3*e*e),c=(2*t*t*t-9*e*t*n+27*e*e*i)/(27*e*e*e);if(Math.abs(u)0)l=s(-c/2-Math.sqrt(d),3),a=[l-u/(3*l)];else{l=2*Math.sqrt(-u/3);var h=Math.acos(3*c/u/l)/3,f=2*Math.PI/3;a=[l*Math.cos(h),l*Math.cos(h-f),l*Math.cos(h-2*f)]}}for(var p=0;p=t&&e<=n};t.sign=c,t.fitIntoRange=d,t.inRange=h,t.adjust=o,t.getPrecision=a,t.getExponent=i,t.getRoot=s,t.solveCubicEquation=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(0),o=i(r),a=n(21),s=i(a),l={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5},optionsParser:function(e){"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw s.default.Error("E3018",t,e)}}},u=function(){return arguments.length?void o.default.extend(l,arguments.length<=0?void 0:arguments[0]):l};"undefined"!=typeof DevExpress&&DevExpress.config&&u(DevExpress.config),e.exports=u},,function(e,t,n){function i(){if(!P.hasWindow())return null;var e,t=M("
",w).addClass("dx-theme-marker").appendTo(w.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,""),e.substr(0,Z.length)!==Z?null:e.substr(Z.length)):null}finally{t.remove()}}function r(e){function t(){E=null,j.fire(),j.empty()}var n;E=e,o()?t():(n=Date.now(),O=setInterval(function(){var e=o(),i=!e&&Date.now()-n>15e3;i&&V.log("W0004",E),(e||i)&&(clearInterval(O),O=void 0,t())},10))}function o(){return!E||i()===E}function a(){var e=M(X,w);e.length&&(T={},k=M(B.createMarkupFromString(""),w),e.each(function(){var e=M(this,w),t=e.attr(q),n=e.attr("href"),i="true"===e.attr(K);T[t]={url:n,isActive:i}}),e.last().after(k),e.remove())}function s(e){var t=e.split("."),n=null;if(T){if(e in T)return e;H(T,function(e,i){var r=e.split(".");if(r[0]===t[0]&&!(t[1]&&t[1]!==r[1]||t[2]&&t[2]!==r[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==w&&(T=null)}catch(e){T=null}w=e}function u(e){e=e||{},l(e.context||I.getDocument()),w&&(a(),A=void 0,c(e))}function c(e){if(!arguments.length)return A=A||i();p(W()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,o=e.loadCallback;if(A=e.theme||A,n&&!A&&(A=d(N.current())),A=s(A),A&&(t=T[A]),o&&j.add(o),t)k.attr("href",T[A].url),!j.has()&&!e._forceTimeout||O?E&&(E=A):r(A);else{if(!n)throw V.Error("E0021",A);j.fire(),j.empty()}b(),f(G.originalViewPort(),A)}function d(e){var t=e.platform;switch(t){case"ios":return"ios7";case"android":case"win":return"generic"}return t}function h(e){e=e||c();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(m(e)?"-"+n[2]:""))),t}function f(e,t){D=h(t).join(" "),M(e).addClass(D);var n=function(){var t=P.hasWindow()&&L.devicePixelRatio;if(t&&!(t<2)){var n=M("
");n.css("border",".5px solid transparent"),M("body").append(n),1===n.outerHeight()&&(M(e).addClass($),D+=" "+$),n.remove()}};n()}function p(e){M(e).removeClass(D)}function g(e){j.add(e)}function _(e,t){return t||(t=A||i()),new RegExp(e).test(t)}function m(e){return _("material",e)}function v(e){return _("ios7",e)}function y(e){return _("generic",e)}function b(){v()&&V.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead.")}function x(e,t){var n="Roboto, RobotoFallback, Arial",i="Arial",r=I.getDocument(),o=r.createElement("span");o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",o.style.visibility="hidden",o.style.fontFamily=i,o.style.fontSize="250px",o.style.fontWeight=t,o.innerHTML=e,r.body.appendChild(o);var a=o.offsetWidth;o.style.fontFamily=n;var s=o.offsetWidth;return o.parentNode.removeChild(o),a!==s}function S(e,t){var n=15,i=2e3;return new U(function(r){var o=function(){x(e,t)&&a()},a=function(){clearInterval(s),clearTimeout(l),r()},s=setInterval(o,n),l=setTimeout(a,i)})}function C(){if(u({_autoInit:!0,_forceTimeout:!0}),M(X,w).length)throw V.Error("E0022");Q.resolve()}var w,k,T,A,E,O,D,M=n(2),I=n(10),P=n(7),L=P.getWindow(),R=n(6).Deferred,V=n(17),B=n(12),F=n(47),z=F.add,H=n(3).each,N=n(16),G=n(77),j=n(231),W=G.value,U=n(76),Y=G.changeCallback,X="link[rel=dx-theme]",q="data-theme",K="data-active",$="dx-hairlines",Z="dx.",Q=new R;P.hasWindow()?C():z(C),Y.add(function(e,t){Q.done(function(){p(t),f(e)})}),N.changed.add(function(){u({_autoInit:!0})}),t.current=c,t.ready=g,t.init=u,t.attachCssClasses=f,t.detachCssClasses=p,t.themeNameFromDevice=d,t.waitForThemeLoad=r,t.isMaterial=m,t.isIos7=v,t.isGeneric=y,t.isWebFontLoaded=x,t.waitWebFont=S,t.resetTheme=function(){k&&k.attr("href","about:blank"),A=null,E=null}},function(e,t,n){var i=n(53),r=n(1).isString,o=n(3),a=n(13).inArray,s=n(219).getFormatter,l=n(185).getFormat,u=n(212).getParser,c=n(220),d=n(51),h=n(21);n(84);var f={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},p={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},g=i({_getPatternByFormat:function(e){return f[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return o.each(t.split(/\W+/),function(e,t){o.each(p,function(e,i){a(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return c.getMonthNames(e)},getDayNames:function(e){return c.getDayNames(e)},getQuarterNames:function(e){return c.getQuarterNames(e)},getPeriodNames:function(e){return c.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),r=this.format(n,e),o=0;o0)&&(e=o(e)),e}).join("")},c=function(e){return o(s(e).replace(/-/g," "))},d=function(e){return i(a(e),function(e){return o(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],f=function(e){var t,n,i=[],r=!1,o=!1;for(t=0;t0&&i.push(" "),i.push(n),r=o;return i.join("")};t.dasherize=s,t.camelize=u,t.humanize=c,t.titleize=d,t.underscore=l,t.captionize=f},,,function(e,t,n){var i=n(125),r=n(21),o={},a=i(r.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){o.errorHandler&&o.errorHandler(e)};o={errors:a,errorHandler:s,_errorHandler:l},e.exports=o},function(e,t,n){var i,r=n(177),o=n(10),a=n(5),s=n(178),l=new r,u=new s,c=function(){},d=function(){},h=t.setDataStrategy=function(e){u.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){c(e);var n=t.call(this,e);return d(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t=t.duration&&s.reject()}),a.off(e,S),a.on(e,S,function(){i.stop(e,t),o.reject()});var c=setTimeout(function(){n=setTimeout(function(){l.reject()},t.duration+t.delay+de._simulatedTransitionEndDelay),b(s,l).fail(function(){o.resolve()}.bind(this))});return o.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ue(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(w(t.to)&&d.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},M={initAnimation:function(e,t){ue(e,t.from)},animate:function(e,t){var n=new x,i=this;return t?(d.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[O]&&(t.from[O]=i._parseTransform(t.from[O]),t.to[O]=i._parseTransform(t.to[O])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:f.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),p.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=u({},this.currentValue);n[O]&&(n[O]=d.map(n[O],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){a.off(e,S),a.on(e,S,function(){t.frameAnimation&&p.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return d.each(e.match(/\w+\d*\w*\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),r=n.match(/scale\((.+?)\)/),o=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),r&&r[1]&&(t.scale=parseFloat(r[1])),o&&o[1]&&(t[o[1]]=parseFloat(o[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(p.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var r=this;n.animationFrameId=p.requestAnimationFrame(function(){r._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(r,o){var a=Array.isArray(o)?[]:{},s=function(n){var i=t/e.duration,a=t,s=1*r[n],l=o[n]-r[n],u=e.duration;return f.getEasing(e.easing)(i,a,s,l,u)};return d.each(o,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(a[e]="object"===i(t)?n(r[e],t):s(e))}),a};return n(e.from,e.to)},_normalizeValue:function(e){ var t=parseFloat(e,10);return t===!1?e:t}},I={initAnimation:function(){},animate:function(){return(new x).resolve().promise()},stop:k,isSynchronous:!0},P=function(e){e=e||{};var t={transition:g.transition()?D:M,frame:M,noAnimation:I},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},L=function(e,t,n,i){d.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},R=function(e,t){return L(e,t,function(e){return w(e)},"a plain object")},V=function(e,t){return L(e,t,function(e){return"string"==typeof e},"a string")},B={setup:function(){}},F={validateConfig:function(e){V(e,"css")},setup:function(){}},z={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},H={validateConfig:function(e){R(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=u({of:o},z[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[O]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=T.exec(e)))return parseInt(t[1]+"1")*t[2]}},N={setup:function(e,t){var n,i=t.from,r=w(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:r},t.to={opacity:n}}},G={validateConfig:function(e){R(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,r="opacity"in n?n.opacity:e.css("opacity"),o="opacity"in i?i.opacity:1,a="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:r};var l=h.getTranslate(e);t.from[O]=this._getCssTransform(l,a),t.to={opacity:o},t.to[O]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},j={custom:B,slide:H,slideIn:H,slideOut:H,fade:N,fadeIn:N,fadeOut:N,pop:G,css:F},W=function(e){var t=j[e.type];if(!t)throw s.Error("E0011",e.type);return t},U={type:"custom",from:{},to:{},duration:400,start:k,complete:k,easing:"ease",delay:0},Y={duration:400,easing:"ease",delay:0},X=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(A,e),de.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},q=function(e){var t=e.element,n=e.config;if(t.removeData(A),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},K=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){q(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},$=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),Q=function(e){a.off(e.element,Z),a.on(e.element,Z,function(){de.stop(e.element)}),e.deferred.always(function(){a.off(e.element,Z)})},J=function(e,t){var n="css"===t.type?Y:U,i=u(!0,{},n,t),o=W(i),a=P(i),s={element:r(e),config:i,configurator:o,strategy:a,isSynchronous:a.isSynchronous,setup:X,start:K,stop:$,deferred:new x};return C(o.validateConfig)&&o.validateConfig(i),Q(s),s},ee=function(e,t){var n=r(e);if(!n.length)return(new x).resolve().promise();var i=J(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),oe(e)||ae(e,n)},ne=function(e){return e.data(E)||[]},ie=function(e,t){e.data(E,t)},re=function(e){e.removeData(E)},oe=function(e){return!!e.data(A)},ae=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&re(t),se(i).done(function(){oe(t)||e(t)})}},se=function(e){return e.setup(),de.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=r(o),i=0,a=0,s=_.calculate(e,t.position),l=e.offset(),c=e.position();c.top>l.top&&(a=n.scrollTop()),c.left>l.left&&(i=n.scrollLeft()),u(t,{left:s.h.location-l.left+c.left-i,top:s.v.location-l.top+c.top-a}),delete t.position}},ue=function(e,t){d.each(t,function(t,n){try{e.css(t,c.isFunction(n)?n():n)}catch(e){}})},ce=function(e,t){var n=r(e),i=ne(n);d.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),oe(n)||ae(n,i);var o=n.data(A);o&&o.stop(t),n.removeData(A),re(n)},de={off:!1,animationTypes:j,animate:ee,createAnimation:J,isAnimating:oe,stop:ce,_simulatedTransitionEndDelay:100};e.exports=de},,function(e,t,n){var i=n(15),r=i.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return l(e)||s(e)||a(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);ne?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},E=function(){var e,t=0,n=function(){0===t&&(e=new S.Deferred),t++},i=function(){t--,t<1&&e.resolve()},r=function(){var n=0===t?(new S.Deferred).resolve():e;return n.promise()},o=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:r,reset:o}}(),O=function(e,t,n){if(Array.isArray(e)){for(var i,r=(0,b.map)(t,function(e,t){return t}),o=0;o>2,(3&r)<<4|o>>4,isNaN(o)?64:(15&o)<<2|a>>6,isNaN(a)?64:63&a],t).join("")}return n},I=function(e){var t,n,i=[];for(n=0;n>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},P=function(e){return"!"===e[0]&&Array.isArray(e[1])},L=function(e){return"and"===e||"or"===e},R=function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!g.default.isFunction(t)||!(Array.isArray(n)||g.default.isFunction(n)||L(n)))},V=function(){var e=new S.Deferred;return e.resolve.apply(e,arguments).promise()},B=function(){var e=new S.Deferred;return e.reject.apply(e,arguments).promise()},F={XHR_ERROR_UNLOAD:C,normalizeBinaryCriterion:w,normalizeSortingInfo:k,errorMessageFromXhr:T,aggregators:A,keysEqual:O,throttleChanges:f,trivialPromise:V,rejectedPromise:B,isDisjunctiveOperator:c,isConjunctiveOperator:d,processRequestResultLock:E,isUnaryOperation:P,isGroupCriterion:R,base64_encode:M};e.exports=F},function(e,t,n){var i=n(154),r=n(468),o={array:i,remote:r},a=function(){var e=Array.isArray(arguments[0])?"array":"remote";return o[e].apply(this,arguments)};e.exports=a,e.exports.queryImpl=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(13),o=n(10),a=n(4),s=n(63),l=i(s),u=n(7),c=i(u),d=n(16),h=i(d),f=n(83),p=i(f),g=c.default.getNavigator(),_=g.maxTouchPoints,m=g.msMaxTouchPoints,v=g.pointerEnabled,y=c.default.hasProperty.bind(c.default),b={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},x=function(e){return!!p.default.styleProp(e)},S=function(){var e=h.default.real(),t=e.platform,n=e.version,i=e.mac,o=n&&n[0]<4&&"android"===t,a=!o&&(0,r.inArray)(t,["ios","android","win"])>-1||i;return a},C=function(e){if("text"===e)return!0;var t=(0,o.createElement)("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},w=function(e,t){return(e("ontouchstart")||!!t)&&!e("callPhantom")},k=function(e,t){var n=(0,a.ensureDefined)(t,!0),i=(0,a.ensureDefined)(t,!1);return e("PointerEvent")&&n||i},T=w(y,_),A=k(y,v),E=!!_||!!m;t.touchEvents=T,t.pointerEvents=A,t.touch=T||A&&E,t.transition=(0,l.default)(function(){return x("transition")}),t.transitionEndEventName=(0,l.default)(function(){return b[p.default.styleProp("transition")]}),t.animation=(0,l.default)(function(){return x("animation")}),t.nativeScrolling=S(),t.styleProp=p.default.styleProp,t.stylePropPrefix=p.default.stylePropPrefix,t.supportProp=x,t.inputType=C},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(1),o=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),a=function(e){switch(i(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}},s=function(e){var t=a(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),r=parseInt(t&&t[2],10),o=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(r)||(r=n),isFinite(o)||(o=i),{top:i,right:r,bottom:o,left:n}},l=function(){var e,t,n,i=arguments[0],o=[].slice.call(arguments).slice(1);if(r.isFunction(i))return i.apply(this,o);for(var a=0;a=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),i=i.replace(t,n);return i},u=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),c=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=o,t.quadToObject=s,t.format=l,t.replaceAll=u,t.isEmpty=c},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function r(e){return"pending"===e.state()}function o(e,t){function n(){var t={};return f.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new b(t)}function i(e){var t=e.type;return delete e.type,v.create(t,e)}function r(e){return new b({load:function(){return p.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}var o;return"string"==typeof e&&(e={paginate:!1,store:r(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof v?{store:e}:d({},e),void 0===e.store&&(e.store=[]),o=e.store,"load"in e?o=n():Array.isArray(o)?o=new y(o):g.isPlainObject(o)&&(o=i(d({},o))),e.store=o,e}function a(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=a(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?r(e,n):f.map(e,t):e}function r(e,t){return f.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}return i(e,n?_.normalizeSortingInfo(n).length:0)}function u(e,t){return e&&!Array.isArray(e)&&e.data&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}}var c=n(15),d=n(0).extend,h=n(4),f=n(3),p=n(57),g=n(1),_=n(41),m=n(135),v=n(91),y=n(69),b=n(138),x=n(81),S=n(36).errors,C=n(13),w=n(225),k=n(6),T=k.when,A=k.Deferred,E=g.isString,O=g.isNumeric,D=g.isBoolean,M=g.isDefined,I="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(I),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var P=c.inherit({ctor:function(e){var t=this,n=this;e=o(e);var r=0!==e.pushAggregationTimeout?_.throttleChanges(this._onPush,function(){return void 0===e.pushAggregationTimeout?5*n._changedTime:e.pushAggregationTimeout}):this._onPush;this._changedTime=0,this._onPushHandler=function(e){t._aggregationTimeoutId=r.call(t,e)},this._store=e.store,this._store.on("push",this._onPushHandler),this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=!!M(e.reshapeOnPush)&&e.reshapeOnPush,f.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,M(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._store.off("push",this._onPushHandler),this._disposeEvents(),clearTimeout(this._aggregationTimeoutId),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),f.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return O(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return D(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return O(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=a(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return D(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return E(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return w.create()},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this.fireEvent("loadingChanged",[n])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==I&&t.fireEvent("loadError",arguments)})},_fireChanged:function(e){var t=new Date;this.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t._fireChanged()})},loadSingle:function(e,t){function n(){return a instanceof b&&!a._byKeyViaLoad()}var i=this,r=new A,o=this.key(),a=this._store,s=this._createStoreLoadOptions(),l=function(e){!M(e)||C.isEmpty(e)?r.reject(new S.Error("E4009")):(Array.isArray(e)||(e=[e]),r.resolve(i._applyMapFunction(e)[0]))};return this._scheduleFailCallbacks(r),arguments.length<2&&(t=e,e=o),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===o||n()?a.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],a.load(s))}().fail(r.reject).done(l),r.promise()},load:function(){function e(){if(!t._disposed&&r(n))return t._loadFromStore(i,n)}var t=this,n=new A;this._scheduleLoadCallbacks(n),this._scheduleFailCallbacks(n),this._scheduleChangedCallbacks(n);var i=this._createLoadOperation(n);return this.fireEvent("customizeStoreLoadOptions",[i]),this._loadQueue.add(function(){return"number"==typeof i.delay?t._delayedLoadTask=h.executeAsync(e,i.delay):e(),n.promise()}),n.promise({operationId:i.operationId})},_onPush:function(e){var t=this;if(this._reshapeOnPush)this.load();else{this.fireEvent("changing",[{changes:e}]);var n=this.group(),i=this.items(),r=0,o=this.paginate()||n?e.filter(function(e){return"update"===e.type}):e;n&&(r=Array.isArray(n)?n.length:1),this._mapFunc&&o.forEach(function(e){"insert"===e.type&&(e.data=t._mapFunc(e.data))}),m.applyBatch(this.store(),i,o,r,!0),this._fireChanged([{changes:e}])}},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof b&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=d({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,r=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),f.each(i,function(e,i){r.length&&r.push("or"),r.push([i,n,t])}),e.filter?e.filter=[r,e.filter]:e.filter=r)},_loadFromStore:function(e,t){function n(n,o){function a(){var r=d(u(n,o),e);i.fireEvent("customizeLoadResult",[r]),T(r.data).done(function(e){r.data=e,i._processStoreLoadResult(r,t)}).fail(t.reject)}i._disposed||r(t)&&a()}var i=this;return e.data?(new A).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return r._isLoaded=!0,r._totalCount=isFinite(a.totalCount)?a.totalCount:-1,t.resolve(o,a)}function i(){r.store().totalCount(s).done(function(e){a.totalCount=e,n()}).fail(t.reject)}var r=this,o=e.data,a=e.extra,s=e.storeLoadOptions;r._disposed||(o=r._applyPostProcessFunction(r._applyMapFunction(o)),g.isPlainObject(a)||(a={}),r._items=o,(!o.length||!r._paginate||r._pageSize&&o.lengtht?1:0}),r=0;r").addClass(y).html((0,i.encodeHtml)(t.message)).appendTo(o);var a=this._getValidationMessageTarget();this._validationMessage=this._createComponent(this._$validationMessage,p,d({integrationOptions:{},templatesRenderAsynchronously:!1,target:a,shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._getInnerOptionsCache("validationTooltipOptions"))),this._$validationMessage.toggleClass(x,"auto"===n).toggleClass(S,"always"===n);var s="dx-"+new u;this._validationMessage.$content().addClass(b).attr("id",s),this.setAria("describedby",s),this._setValidationMessageMaxWidth(),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(w,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=c(t),i=this.option("validationMessageOffset"),r={h:i.h,v:i.v},o="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(r.h=-r.h),"below"!==e&&(r.v=-r.v),{offset:r,boundary:this.option("validationBoundary"),my:n+o[0],at:n+o[1],collision:"none flip"}},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass(m,!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),n=_.addNamespace("keydown",k);g.off(t,n),e&&g.on(t,n,function(e){"backspace"===_.normalizeKeyName(e)&&e.preventDefault()})},_dispose:function(){var e=this.$element()[0];o.data(e,C,null),clearTimeout(this.showValidationMessageTimeout),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"validationTooltipOptions":this._innerOptionChanged(this._validationMessage,e);break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}}).include(f);e.exports=T},function(e,t,n){function i(e){var t=D(e);return k[t]||k[T[t]||a()]}function r(e,t){return T[e+"."+t]||A[e+"."+t]||T[e]}function o(e,t,n){return r(e+t,n)||r(e,n)}function a(e,t){if(!arguments.length)return M||r(w.current())||b;var n=D(t);return M=(e&&e.platform?o(D(e.platform),e.version,n):r(D(e),n))||M,this}function s(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}function l(e,t){var n=s(e,".")||{name:e},i=n.name,r=n.scheme;r?(T[i]=T[i]||t,T[i+"."+r]=t):T[i]=t}function u(e,t){var n=D(e&&e.name);n&&(e.isDefault&&(b=n),l(n,n),k[n]=E(!0,{},i(t),p(e)))}function c(e,t){l(D(e),D(t))}function d(e,t){A[e]=t}function h(e,t,n,i){var r=n?n[t]:i;void 0!==r&&void 0===e[t]&&(e[t]=r)}function f(e,t,n,i){var r=n?n[t]:i;void 0!==r&&(e[t]=E(!0,{},r,e[t]))}function p(e){return e=E(!0,{loadingIndicator:{font:{}},"export":{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e),h(e.loadingIndicator,"backgroundColor",e),h(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),h(e.map.background,"color",null,e.backgroundColor),h(e.title.font,"color",null,e.primaryTitleColor),f(e.title,"subtitle",null,e.title),h(e.legend.font,"color",null,e.secondaryTitleColor),h(e.legend.border,"color",null,e.gridColor),g(e),O(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(t,n){h(e[n],"redrawOnResize",e),h(e[n],"containerBackgroundColor",null,e.backgroundColor),f(e[n],"tooltip",e),f(e[n],"export",e)}),O(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(t,n){f(e[n],"loadingIndicator",e),f(e[n],"legend",e),f(e[n],"title",e)}),O(["chart","pie","polar"],function(t,n){f(e,n,null,e["chart:common"])}),O(["chart","polar"],function(t,n){e[n]=e[n]||{},f(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),f(e.rangeSelector.chart,"commonSeriesSettings",e.chart),f(e.rangeSelector.chart,"dataPrepareSettings",e.chart),h(e.treeMap.group.border,"color",null,e.gridColor),h(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.map.legend,"backgroundColor",e),_(e),e}function g(e){var t=e["chart:common:axis"],n="color";O([t.grid,t.minorGrid],function(t,i){h(i,n,null,e.gridColor)}),O([t,t.tick,t.minorTick,t.label.font],function(t,i){ h(i,n,null,e.axisColor)}),h(t.title.font,n,null,e.secondaryTitleColor),h(e.gauge.scale.label.font,n,null,e.axisColor),h(e.gauge.scale.tick,n,null,e.backgroundColor),h(e.gauge.scale.minorTick,n,null,e.backgroundColor),h(e.rangeSelector.scale.label.font,n,null,e.axisColor)}function _(e){var t=e.map;O(["area","line","marker"],function(e,n){f(t,"layer:"+n,null,t.layer)}),O(["dot","bubble","pie","image"],function(e,n){f(t,"layer:marker:"+n,null,t["layer:marker"])})}function m(e){var t=++I;e._cache=t,P[t]=e}function v(e){delete P[e._cache]}function y(){return O(P,function(){this.refresh()}),this}var b,x=n(0).extend,S=n(3).each,C=n(11),w=n(31),k={},T={},A={},E=x,O=S,D=C.normalizeEnum,M=null,I=0,P={};E(t,{currentTheme:a,registerTheme:u,getTheme:i,registerThemeAlias:c,registerThemeSchemeAlias:d,refreshTheme:y,addCacheItem:m,removeCacheItem:v})},function(e,t,n){function i(e,t){return l(e)||s(e,t)||o(e,t)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1?t.formatType=n:n in S&&(t.power=S[n])}),t.power&&!t.formatType&&(t.formatType="fixedpoint"),t.formatType?t:void 0}},_calculateNumberPower:function(e,t,n,i){var r=Math.abs(e),o=0;if(r>1)for(;r&&r>=t&&(void 0===i||o0&&r<1)for(;r<1&&(void 0===n||o>n);)o--,r*=t;return o},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i;"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,v)),t.power&&(e=this._getNumberByPower(e,t.power,1e3));var r=this.defaultLargeNumberFormatPostfixes[t.power]||"";return i=this._formatNumberCore(e,t.formatType,n),i=i.replace(/(\d|.$)(\D*)$/,"$1"+r+"$2")},_formatNumberExponential:function(e,t){var n=this._calculateNumberPower(e,y),i=this._getNumberByPower(e,n,y);void 0===t.precision&&(t.precision=1),i.toFixed(t.precision||0)>=y&&(n++,i/=y);var r=(n>=0?"+":"")+n.toString();return this._formatNumberCore(i,"fixedpoint",t)+"E"+r},_addZeroes:function(e,t){var n=Math.pow(10,t),i=e<0?"-":"";e=(Math.abs(e)*n>>>0)/n;for(var r=e.toString();r.length15)return NaN;var o=+r;return o*this.getSign(e,t)}},_calcSignificantDigits:function(e){var t=e.split("."),n=i(t,2),r=n[0],o=n[1],a=function(e){for(var t=-1,n=0;n-1?e.length-t:0},s=0;return r&&(s+=a(r.split(""))),o&&(s+=a(o.split("").reverse())),s}});e.exports=C},function(e,t,n){var i=n(29),r=n(219).getFormatter,o=n(220),a=n(1),s=a.isString,l=a.isDate,u=a.isNumeric,c="number",d="yyyy/MM/dd",h="yyyy/MM/dd HH:mm:ss",f=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,p=/^(\d{2}):(\d{2})(:(\d{2}))?$/,g=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],_=3,m=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!l(e)&&Date.parse(e),n=u(i)?new Date(i):e),n},v=function(e){var t=e.match(f),n=function(e){return+e||0};if(t){var i=t[1],r=--t[3],o=t[5],a=0,s=0;a=n(t[14]),s=n(t[16]),"-"===t[13]&&(a=-a,s=-s);var l=n(t[6])-a,u=n(t[8])-s,c=n(t[10]),d=function(e){return e=e||"",n(e)*Math.pow(10,_-e.length)},h=d(t[11]);return t[12]?new Date(Date.UTC(i,r,o,l,u,c,h)):new Date(i,r,o,l,u,c,h)}if(t=e.match(p))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},y=function(e,t){var n=e.match(f),i="";if(n){for(var r=1;r=0?h:d}return e?null:void 0};e.exports={dateParser:m,deserializeDate:b,serializeDate:x,getDateSerializationFormat:S}},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,r=n(3).each,o=n(15),a=o.inherit(e),s=a,l=new s(e),u={},c=function(t,n){r(t,function(t){i(l[t])?!n&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(n&&(u[t]=e[t]),e[t]=l[t])})};return c(e,!0),e.inject=function(e){s=s.inherit(e),l=new s,c(e)},e.resetInjection=function(){t(e,u),s=a,l=new a},e}},function(e,t){e.exports=window.jQuery},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return l(e)||s(e)||a(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){if(!e._disposed){var n=(0,k.normalizeLoadResult)(t).data;e._dataSource._applyMapFunction(n)}}):(new E.Deferred).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=C.default;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,y.each)(e,function(e,i){var r=t._getIndexByKey(i);M(r)&&n.push(r)}),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done(function(){return e._normalizeSelectedItems()}),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n,i,r;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,x.isDefined)(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(r=this.option("selectedItems")||[],n=this._editStrategy.getIndexByItemData(r[0]),this.option("selectionRequired")&&!M(n))return this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",r[0]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(r));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!M(n))return this._syncSelectionOptions("selectedIndex");(0,x.isDefined)(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",D));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var o=this._getIndexByKey(i[0]);if(!M(o))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new E.Deferred).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=(0,x.isDefined)(t)&&t.length;return n||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionSilent("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,i)||this._selection.setSelection(i)}return(new E.Deferred).resolve().promise()},_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,d.default)(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){if(this.option("selectionByClick")){var t=e.currentTarget;this.isItemSelected(t)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget)}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,d.default)(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),i=this._isItemSelected(n);this._processSelectableItem(t,i)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var r=t._selectionChangePromise;if(!t._rendering){var o,a=[],s=[];t._editStrategy.beginCache();for(var l=0;l-1){var i=r.data(e,y)||0;r.data(e,y,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=r.data(e,y);if(!t){var n=a(e,b);b.splice(n,1),x.splice(n,1),S.splice(n,1),r.removeData(e,y)}}};u(_,C),u(m,C),u(v,C);var w=function(e){var t=a(e.get(0),b),n=x[t],i=e.find(n.join(", "));return a(void 0,n)!==-1&&(i=i.add(e)),i},k=function(e){var t=a(e.get(0),b);return S[t]},T=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},A=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},E=d.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(f,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=o(e.targetElements||(null===e.targetElements?[]:b));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=c.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(p,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),n=t===this._currentDropTarget;n||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};c.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(b,function(r,o){if(n._checkDropTargetActive(o)){var a=i(o);s.each(w(a),function(r,o){var s=i(o);n._checkDropTarget(k(a),s,e)&&(t=o)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return t=t||i===e||l(i,e),!t}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var r=T(e,t);if(n.pageXr.left+o.width)&&(!(n.pageY>r.top+o.height)&&t)},_end:function(e){var t=c.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}});h({emitter:E,events:[f,p,g]}),t.move=p,t.start=f,t.end=g,t.enter=_,t.leave=m,t.drop=v},function(e,t,n){var i=n(6).Deferred,r=n(10),o=n(439),a=n(7),s=a.getWindow(),l=n(0).extendFromObject,u=n(1).isDefined,c=n(76),d=n(53),h="success",f="error",p="timeout",g="nocontent",_="parsererror",m=function(e){return 200<=e&&e<300},v=function(e){return 204!==e},y=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")},b=function(e){var t=r.createElement("script");for(var n in e)t[n]=e[n];return t},x=function(e){e.parentNode.removeChild(e)},S=function(e){return r.getHead().appendChild(e)},C=function(e){var t=b({text:e});S(t),x(t)},w=function(e){var t=b({src:e});return new c(function(e,n){var i={load:e,error:n},o=function(e){i[e.type](),x(t)};for(var a in i)r.listen(t,a,o);S(t)})},k=function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]},T=function(e){var t;return e.data&&!e.upload&&"GET"!==P(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},A=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText},E=function(e,t,n){var i=A(t);switch(n){case"jsonp":C(i);break;case"script":C(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,_,n)}break;default:e.resolve(i,h,t)}},O=function(e){if(!a.hasWindow())return!0;var t=!1,n=r.createElement("a"),i=r.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},D=function(e,t){return e&&setTimeout(function(){t.customStatus=p,t.abort()},e)},M=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}},I=function(e,t){var n=e.data,i="string"==typeof n,r=e.url||s.location.href;return i||e.cache||(n=n||{},n._=Date.now()),n&&!e.upload&&(i||(n=y(n)),"GET"===P(e)?(""!==n&&(r+=(r.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:r,parameters:n}},P=function(e){return(e.method||"GET").toUpperCase()},L=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||T(e),t.Accept=t.Accept||k(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},R=function(e){var t,n=o.getXhr(),r=new i,a=r.promise(),l=!u(e.async)||e.async,c=e.dataType,d=e.timeout||0;e.crossDomain=O(e.url);var p="jsonp"===c||"script"===c;void 0===e.cache&&(e.cache=!p);var _=M(e),y=L(e),b=I(e,y),x=b.url,S=b.parameters;if(_&&(s[_]=function(e){r.resolve(e,h,n)}),e.crossDomain&&p){var C=function(){r.reject(n,f)},k=function(){"jsonp"!==c&&r.resolve(null,h,n)};return w(x).then(k,C),a}if(e.crossDomain&&!("withCredentials"in n))return r.reject(n,f),a;if(n.open(P(e),x,l,e.username,e.password),l&&(n.timeout=d,t=D(d,n,r)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),m(n.status)?v(n.status)?E(r,n,c):r.resolve(null,g,n):r.reject(n,n.customStatus||f))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var T in e.xhrFields)n[T]=e.xhrFields[T];"arraybuffer"===e.responseType&&(n.responseType=e.responseType);for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&u(y[A])&&n.setRequestHeader(A,y[A]);return e.beforeSend&&e.beforeSend(n),n.send(S),a.abort=function(){n.abort()},a};e.exports=d({sendRequest:R})},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var r=Math.max(e.length,t.length);isFinite(n)&&(r=Math.min(r,n));for(var o=0;os)return 1}return 0}},,function(e,t,n){e.exports=n(464)},function(e,t){e.exports=window.ko},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),o=i(r),a="dx-icon",s="dx-svg-icon",l=function(e){return!(!e||"string"!=typeof e)&&(/^\s*]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon")},u=function(e){switch(l(e)){case"image":return(0,o.default)("").attr("src",e).addClass(a);case"fontIcon":return(0,o.default)("").addClass("".concat(a," ").concat(e));case"dxIcon":return(0,o.default)("").addClass("".concat(a," ").concat(a,"-").concat(e));case"svg":return(0,o.default)("").addClass("".concat(a," ").concat(s)).append(e);default:return null}};t.getImageSourceType=l,t.getImageContainer=u},function(e,t,n){var i=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};e.exports=i},function(e,t,n){var i=n(1),r=n(22),o=n(51),a=n(32),s=n(53);n(150),e.exports=s({format:function(e,t){var n=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),r=i.isNumeric(e)||i.isDate(e);return n&&r?i.isFunction(t)?t(e):(i.isString(t)&&(t={type:t}),i.isNumeric(e)?o.format(e,t):i.isDate(e)?a.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return a.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){var r=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(r)}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){ if(t){var o=function(e){return a.getMonthNames("abbreviated")[e.getMonth()]+" "+a.format(e,"day")};n.unshift(o)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return a.format(e,"dayofweek")+", "+a.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t;if(e.length>1){t=r.getDatesDifferences(e[0],e[1]);for(var n=1;n0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};var o=this.getDateFormatByDifferences(t);return o},getDateFormatByTickInterval:function(e,t,n){var o,a={week:"day"},s=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},l=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};n=i.isString(n)?n.toLowerCase():n;var u=r.getDatesDifferences(e,t);e!==t&&l(u,e>t?t:e,e>t?e:t),o=r.getDateUnitInterval(u),s(u,o,!0),o=r.getDateUnitInterval(n||"second"),s(u,o,!1),u[a[o]||o]=!0;var c=this.getDateFormatByDifferences(u);return c}})},function(e,t,n){var i=n(2),r=n(10),o=function(e,t){if(!a(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),r=e.disabled,o=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=!0,u=e.isContentEditable;return l=o||u?!r:s?e.href||i:i},a=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return o(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&o(t,n)},focused:function(e){var t=i(e).get(0);return r.getActiveElement()===t}}},function(e,t,n){var i=n(2),r=n(71),o=n(5),a=n(133),s=n(3),l=n(1).isPrimitive,u=function(){var e=function(e,i,r,o,a){var s,u=t(e,i,function(e){return s&&s(),l(e)?void a(e):void(s=n(e,i,r,o,function(e){a(e)}))});return function(){s&&s(),u&&u()}},t=function(e,t,n){return t(function(){return e},n)},n=function(e,t,n,i,r){var o={},a=n.slice(),l=s.map(n,function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(o[n]=e,a.length){var t=a.indexOf(n);t>=0&&a.splice(t,1)}a.length||r(o)})});return function(){s.each(l,function(e,t){t()})}};return e}();e.exports=r.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=i(e.container),n=u(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return o.on(t,a,n),t.contents()}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),o=i(r),a=n(5),s=i(a),l=n(7),u=i(l),c=n(0),d=n(29),h=i(d),f=n(21),p=i(f),g=n(12),_=n(126),m=i(_),v=n(4),y=i(v),b=n(3),x=n(1),S=n(13),C=n(127),w=i(C),k=n(37),T=i(k),A=n(134),E=i(A),O=E.default.abstract,D="dx-rtl",M="dx-visibility-change-handler",I="VisibilityChange",P=E.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,h.default)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=(0,o.default)(e),w.default.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_getSynchronizableOptionsForCreateComponent:function(){return["rtlEnabled","disabled","templatesRenderAsynchronously"]},_visibilityChanged:O,_dimensionChanged:O,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);m.default.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==O},_renderComponent:function(){this._initMarkup(),u.default.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=(0,c.extend)({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass(M)},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:null===n?"":n,height:null===i?"":i})},_isCssUpdateRequired:function(e,t,n){return!!((0,x.isDefined)(n)||(0,x.isDefined)(t)||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+I;s.default.off(e.$element(),t),s.default.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+I,n="dxshown."+this.NAME+I;e._isHidden=!e._isVisible(),s.default.off(e.$element(),t),s.default.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),s.default.off(e.$element(),n),s.default.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==O&&u.default.hasWindow()},_clean:y.default.noop,_modelByElement:function(){var e=this.option("modelByElement")||y.default.noop;return e(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw p.default.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&m.default.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass(D,e)},_createComponent:function(e,t,n){var i=this,r=this;n=n||{};var a=y.default.grep(this._getSynchronizableOptionsForCreateComponent(),function(e){return!(e in n)}),s=r.option("nestedComponentOptions")||y.default.noop,l=(0,c.extend)({integrationOptions:this.option("integrationOptions")},s(this));a.forEach(function(e){l[e]=i.option(e)}),r._extendConfig(n,l);var u;if((0,x.isString)(t)){var d=(0,o.default)(e)[t](n);u=d[t]("instance")}else e&&(u=t.getInstance(e),u?u.option(n):u=new t(e,n));if(u){var h=function(e){(0,S.inArray)(e.name,a)>=0&&u.option(e.name,e.value)};r.on("optionChanged",h),u.on("disposing",function(){r.off("optionChanged",h)})}return u},_extendConfig:function(e,t){(0,b.each)(t,function(t,n){e[t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:n})},_defaultActionConfig:function(){return(0,c.extend)(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return(0,c.extend)(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t];if(!n)return;var i=n.name;0!==i.indexOf("aria-")&&i.indexOf("dx-")===-1&&"role"!==i&&"style"!==i&&"tabindex"!==i||e.removeAttribute(i)}},_removeClasses:function(e){var t=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)});e.className=t.join(" ")},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return(0,g.getPublicElement)(this.$element())},dispose:function(){var e=this.$element().get(0);T.default.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});P.getInstance=function(e){return w.default.getInstanceByElement((0,o.default)(e),this)},P.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=P},function(e,t,n){var i=n(3).each,r=n(113),o=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),r.fire(e,n)};o.callbacks=r,e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(41),o=n(42),a=i(o),s=n(36),l=n(91),u=i(l),c=n(135),d=i(c),h=u.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw s.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,a.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=d.default.indexByKey(this,this._array,e);return t===-1?(0,r.rejectedPromise)(s.errors.Error("E4009")):(0,r.trivialPromise)(this._array[t])},_insertImpl:function(e){return d.default.insert(this,this._array,e)},_pushImpl:function(e){d.default.applyBatch(this,this._array,e)},_updateImpl:function(e,t){return d.default.update(this,this._array,e,t)},_removeImpl:function(e){return d.default.remove(this,this._array,e)},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=h},function(e,t){e.exports=window.Globalize},function(e,t,n){var i=n(2),r=n(10),o=n(25),a=n(12),s=n(15),l=s.abstract,u=o({syncStrategy:!0}),c=s.inherit({render:function(e){e=e||{};var t=e.onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),u.fire(n,e.container),t&&t(),n},_ensureResultInContainer:function(e,t){if(t){var n=i(t),o=a.contains(n.get(0),e.get(0));if(n.append(e),!o){var s=r.getBody().contains(n.get(0));s&&a.triggerShownEvent(e)}}},_renderCore:l});e.exports=c,e.exports.renderedCallbacks=u},,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return e>0?Math.round(e):0}function o(e,t,n,i){var r,a=[],s=i.nodes,l=t.length,u=0;for(r=0;r0&&(d.value=Number(c[i.valueField])),u+=d.value}e.nodes=a,e.value=u}function a(e,t,n){var i,r=t.nodes,o=r.length;for(i=0;i0&&e.algorithm({items:r.slice(),sum:a,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n=0?r(t.headerHeight):c.labelParams.height+2*r(n.paddingTopBottom),e._headerHeight!==l&&(e._headerHeight=l,e._change(["TILING"])),e._groupPadding!==u&&(e._groupPadding=u,e._change(["TILING"])),i.headerEdge===a&&i.headerInner===s||(i.headerEdge=a,i.headerInner=s,e._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var i=this._getTextBBox(t.font),o=r(t.paddingLeftRight),a=r(t.paddingTopBottom),s=this._getOption("tile.label"),l=this._getOption("group.label");e.labelState=(0,y.buildTextAppearance)(t,n),e.labelState.visible=!("visible"in t&&!t.visible),this._suppressDeprecatedWarnings(),e.labelParams={height:i.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:a,paddingLeftRight:o,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0),tileLabelWordWrap:s.wordWrap,tileLabelOverflow:s.textOverflow,groupLabelOverflow:l.textOverflow},this._resumeDeprecatedWarnings()},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){a(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=(0,C.getColorizer)(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},s)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},c),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:(0,S.getAlgorithm)(e._getOption("layoutAlgorithm",!0)),directions:O[String(e._getOption("layoutDirection",!0)).toLowerCase()]||O.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,h(t,e._topNode),e._processNodes(t,f),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:k.noop,_performLabelsLayout:function(){this._processNodes(null,m)},_getTextBBox:function(e){var t=this._renderer,n=this._textForCalculations||t.text("0",0,0);this._textForCalculations=n,n.css((0,w.patchFontOptions)(e)).append(t.root);var i=n.getBBox();return n.remove(),i}}),M=[l,u],I=[0,0,0,0];n(9)("dxTreeMap",D),e.exports=D,D.addPlugin(n(147).plugin)},function(e,t,n){var i=n(1).isFunction,r=function(){},o=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):r},a={info:o("info"),warn:o("warn"),error:o("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=a,t.debug=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r={toXml:function(e,t,n){var r=["<",e];for(var o in t){var a=t[o];(0,i.isDefined)(a)&&r.push(" ",o,'="',a,'"')}return(0,i.isDefined)(n)&&""!==n?r.push(">",n,""):r.push(" />"),r.join("")}};t.default=r},function(e,t,n){var i=n(6),r=n(7),o=i.Deferred,a=i.when,s=r.hasWindow()?r.getWindow().Promise:Promise;s||(s=function(e){var t=new o;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new o).resolve(e).promise()},s.reject=function(e){return(new o).reject(e).promise()},s.all=function(e){return a.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(2),r=n(47),o=r.add,a=n(25)(),s=i(),l=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var r=!!n.length,o=l();e=r?n:i("body"),a.fire(r?l():i(),o)}}();o(function(){l(".dx-viewport")}),t.value=l,t.changeCallback=a,t.originalViewPort=function(){return s}},function(e,t,n){var i,r=n(2),o=n(4),a=n(3).each,s=n(7),l=s.getWindow(),u=n(10),c=n(1).isWindow,d=n(0).extend,h=n(26),f=n(27),p=n(43),g=/left|right/,_=/top|bottom/,m=/fit|flip|none/,v=h.safari,y=function(e){var t={h:"center",v:"center"},n=o.splitPair(e);return n&&a(n,function(){var e=String(this).toLowerCase();g.test(e)?t.h=e:_.test(e)&&(t.v=e)}),t},b=function(e){return o.pairToObject(e)},x=function(e){var t=o.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return m.test(n)||(n="none"),m.test(i)||(i=n),{h:n,v:i}},S=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},C=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},w=function(e,t){var n=0;return e.myLocationt.max&&(n+=e.myLocation-t.max),n},k=function(e,t,n){return t.myLocationn.max?"h"===e?"right":"bottom":"none"},T=function(e){e.myLocation=e.atLocation+S(e.atAlign)*e.atSize-S(e.myAlign)*e.mySize+e.offset},A={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocationt.max)){var n=d({},e,{myAlign:C(e.myAlign),atAlign:C(e.atAlign),offset:-e.offset});T(n),n.oversize=w(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},E=function(){var e=r("
").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(r("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},O={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},D=function(e,t){var n=r(e),o=n.offset(),a=d(!0,{},O,{h:{location:o.left},v:{location:o.top}});if(!t)return a;var s=y(t.my),h=y(t.at),f=r(t.of).length&&t.of||l,g=b(t.offset),_=x(t.collision),m=t.boundary,S=b(t.boundaryOffset),C={mySize:n.outerWidth(),myAlign:s.h,atAlign:h.h,offset:g.h,collision:_.h,boundaryOffset:S.h},D={mySize:n.outerHeight(),myAlign:s.v,atAlign:h.v,offset:g.v,collision:_.v,boundaryOffset:S.v};if(f.preventDefault)C.atLocation=f.pageX,D.atLocation=f.pageY,C.atSize=0,D.atSize=0;else if(f=r(f),c(f[0]))C.atLocation=f.scrollLeft(),D.atLocation=f.scrollTop(),C.atSize=f[0].innerWidth>=f[0].outerWidth?f[0].innerWidth:f.width(),D.atSize=f[0].innerHeight>=f[0].outerHeight||v?f[0].innerHeight:f.height();else if(9===f[0].nodeType)C.atLocation=0,D.atLocation=0,C.atSize=f.width(),D.atSize=f.height();else{var M=f.offset();C.atLocation=M.left,D.atLocation=M.top,C.atSize=f.outerWidth(),D.atSize=f.outerHeight()}T(C),T(D);var I=function(){var e=r(l),t=e.width(),n=e.height(),o=e.scrollLeft(),a=e.scrollTop(),s=u.getDocumentElement(),c=p.touch?s.clientWidth/t:1,d=p.touch?s.clientHeight/n:1;void 0===i&&E();var h=t,f=n;if(m){var g=r(m),_=g.offset();o=_.left,a=_.top,h=g.width(),f=g.height()}return{h:{min:o+C.boundaryOffset,max:o+h/c-C.mySize-C.boundaryOffset},v:{min:a+D.boundaryOffset,max:a+f/d-D.mySize-D.boundaryOffset}}}();C.oversize=w(C,I.h),D.oversize=w(D,I.v),C.collisionSide=k("h",C,I.h),D.collisionSide=k("v",D,I.v),A[C.collision]&&A[C.collision](C,I.h),A[D.collision]&&A[D.collision](D,I.v);var P=function(e){return t.precise?e:Math.round(e)};return d(!0,a,{h:{location:P(C.myLocation),oversize:P(C.oversize),fit:C.fit,flip:C.flip,collisionSide:C.collisionSide},v:{location:P(D.myLocation),oversize:P(D.oversize),fit:D.fit,flip:D.flip,collisionSide:D.collisionSide},precise:t.precise}),a},M=function(e,t){var n=r(e);if(!t)return n.offset();f.resetPosition(n,!0);var i=n.offset(),o=t.h&&t.v?t:D(n,t),a=function(e){return t.precise?e:Math.round(e)};return f.move(n,{left:o.h.location-a(i.left),top:o.v.location-a(i.top)}),o},I=function(e){return e=r(e).get(0),c(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:r(e).offset()};M.inverseAlign||(M.inverseAlign=C),M.normalizeAlign||(M.normalizeAlign=y),e.exports={calculateScrollbarWidth:E,calculate:D,setup:M,offset:I}},function(e,t,n){var i=n(54),r=n(29),o=r().useJQuery;i&&o!==!1&&r({useJQuery:!0}),e.exports=function(){return i&&r().useJQuery}},,function(e,t,n){var i=n(445),r=n(3).each,o=n(1).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new i(this))},setEventsStrategy:function(e){"function"==typeof e&&(e=e(this)),this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return o(e)?r(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){function i(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return s({},e,{items:i(u(e.items),t.slice(1)).toArray()})})),e}function r(e,t){var n=[];return l(e,function(e,i){var r=a(t,function(e){return i.selector===e.selector});r.length<1&&n.push(i)}),n.concat(t)}function o(e,t,n){t=t||{};var o=t.filter;if(o&&(e=e.filter(o)),n)return e;var a=t.sort,s=t.select,u=t.group,d=t.skip,h=t.take;return u&&(u=c(u),u.keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(a||u)&&(a=c(a||[]),u&&!u.keepInitialKeyOrder&&(a=r(u,a)),l(a,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s)),u&&(e=i(e,u)),(h||d)&&(e=e.slice(d||0,h)),e}var a=n(4).grep,s=n(0).extend,l=n(3).each,u=n(154),c=n(41).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:r,queryByOptions:o}},function(e,t,n){var i=n(33).camelize,r=n(63),o=n(1),a=n(10),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},u=r(function(){return a.createElement("dx").style}),c=function(e,t){e=i(e,!0);for(var n,r=0,o=s.length;rn;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){f.isMouseEvent(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return d(t,function(e,t){return i=i||n[e]!==t,!i}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),r.push(i))}for(var n=this,r=[],o=i(e.target);o.length;){var a=s.data(o.get(0),m)||[];d(a,t),o=o.parent()}return r},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=c(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,r=i?"pageY":"pageX";e[r]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),y=new v,b="dxEmitterSubscription",x=function(e){var t=e.emitter,n=e.events[0],i=e.events;d(i,function(r,o){h(o,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,b)||{},r=s.data(e,m)||{},a=r[n]||new t(e);i[o]=!0,r[n]=a,s.data(e,m,r),s.data(e,b,i)},add:function(e,t){var i=s.data(e,m),r=i[n];r.configure(u({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,b),r=s.data(e,m),a=r[n];delete t[o];var l=!0;d(i,function(e,n){return l=l&&!t[n]}),l&&(y.isActive(e)&&y.resetEmitter(a),a&&a.dispose(),delete r[n])}})})};e.exports=x},function(e,t,n){var i=n(8),r=n(114),o=n(88),a=Math.abs,s="dxhold",l=750,u=5,c=r.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return a(t.x)>u||a(t.y)>u},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});o({emitter:c,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=m[t]?"#"+m[t]:t,t=r(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=o(t[0]),this.g=o(t[1]),this.b=o(t[2]),this.a=o(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=c(this.r,this.g,this.b)}function r(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;nn?n:e}function a(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,r,o,a=Math.max(e,t,n),s=Math.min(e,t,n),l=a-s;if(o=a,r=0===a?0:1-s/a,a===s)i=0;else switch(a){case e:i=60*((t-n)/l),t.5?c/(2-s):c/s,i=u(e,t,n,c),i/=6}return{h:y(360*i),s:y(100*r),l:y(100*l)}}function d(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function f(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p(e,t,n){var i,r,o;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=r=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;i=f(s,a,d("r",e)),r=f(s,a,d("g",e)),o=f(s,a,d("b",e))}return[y(255*i),y(255*r),y(255*o)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _(e,t,n){return t=t||0,n=n||255,!(e%1!==0||en||"number"!=typeof e||isNaN(e))}var m={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),r=l(t,n,i);return[r[0],r[1],r[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),r=p(t,n,i);return[r[0],r[1],r[2],1,null,[t,n,i]]}}],y=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=o(this.r+e),t.g=o(this.g+e),t.b=o(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),r=new i;return r.r=o(y(this.r*(1-t)+n.r*t)),r.g=o(y(this.g*(1-t)+n.g*t)),r.b=o(y(this.b*(1-t)+n.b*t)),r},toHex:function(){return a(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(_(e)&&_(t)&&_(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=p(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){var i=n(15),r=i.abstract,o=n(81),a=n(3).each,s=n(36),l=n(41),u=n(20).compileGetter,c=n(82),d=c.queryByOptions,h=n(6).Deferred,f=n(4).noop,p={},g=i.inherit({ctor:function(e){var t=this;e=e||{},a(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=u(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return d(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:r,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return d(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:r,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:r,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:r,push:function(e){this._pushImpl(e),this.fireEvent("push",[e])},_pushImpl:f,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:r,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(o);g.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},g.registerClass=function(e,t){return t&&(p[t]=e),e},g.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return g.registerClass(i,n),i}}(g.inherit),e.exports=g},,,,,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(){var e=E.testFormats(W);return{unsupported:e.unsupported,supported:e.supported.concat(U)}}function o(e,t,n){return n=n||r(),e=String(e).toUpperCase(),n.supported.indexOf(e)!==-1?e:void(n.unsupported.indexOf(e)!==-1&&t&&t("W2108",[e]))}function a(e){return"SVG"===e?O.getData:"PDF"===e?D.getData:E.getData}function s(e,t){var n=(0,g.getWindow)().document,i=n.createElement("iframe");i.onload=l(e,t),i.style.visibility="hidden",i.style.position="fixed",i.style.right="0",i.style.bottom="0",n.body.appendChild(i)}function l(e,t){return function(){var t=this,n=this.contentWindow,i=n.document.createElement("img");n.document.body.appendChild(i);var r=function(){t.parentElement.removeChild(t)};i.addEventListener("load",function(){n.focus(),n.print(),r()}),i.addEventListener("error",r),i.src=e}}function u(e,t,n){var i=I-R,r=I+L+z+n*F,o={rect:{width:R-2*z,height:F,x:i+z,y:r},text:{x:i+(e.rtl?R-B:B),y:r+F-V}};return"printing"===t&&(o.separator={stroke:e.button.default.borderColor,"stroke-width":z,cursor:"pointer",sharp:"v",d:"M "+i+" "+(r+F-z)+" L "+(i+R)+" "+(r+F-z)}),o}function c(e,t,n){var i={},r=n.type,o=n.format,a=u(t,r,n.itemIndex),s=(0,_.patchFontOptions)(t.font);s["pointer-events"]="none";var l=e.g().attr({"class":Y+"-list-item"});i[X]=r,o&&(i[q]=o);var c=e.rect();c.attr(a.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),c.on(k.default.start+".export",function(){return c.attr({fill:t.button.hover.backgroundColor})}).on(k.default.end+".export",function(){return c.attr({fill:null})}),c.append(l);var d=e.text(n.text).css(s).attr(a.text).append(l);return"printing"===r&&e.path(null,"line").attr(a.separator).append(l),{g:l,rect:c,resetState:function(){return c.attr({fill:null})},fixPosition:function(){var e=d.getBBox();d.move(a.text.x-e.x-(t.rtl?e.width:0))}}}function d(e,t){var n=[];return t.printingEnabled&&n.push(c(e,t,{type:"printing",text:b.default.format("vizExport-printingButtonText"),itemIndex:n.length})),n=t.formats.reduce(function(n,i){return n.push(c(e,t,{type:"exporting",text:b.default.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n},n)}function h(e){var t=K.exec(e);return t?t[1]:void 0}function f(e,t,n,i){return(i||t.format)&&(i=o(i||t.format,e._incidentOccurred)),{format:i||j,fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:e._canvas.width,height:e._canvas.height,margin:t.margin,forceProxy:t.forceProxy,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=t.ExportMenu=t.combineMarkups=t.exportWidgets=t.getMarkup=t.exportFromMarkup=void 0;var p=n(0),g=n(7),_=n(11),m=n(172),v=i(m),y=n(14),b=i(y),x=n(1),S=n(50),C=i(S),w=n(137),k=i(w),T=n(23),A=i(T),E=v.default.image,O=v.default.svg,D=v.default.pdf,M=[A.default.down,A.default.move].join(" "),I=35,P=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],L=4,R=120,V=8,B=15,F=30,z=1,H=10,N=2,G=3,j="PNG",W=[j,"JPEG","GIF"],U=["PDF","SVG"],Y="dx-export-menu",X="export-element-type",q="export-element-format",K=/data-backgroundcolor="([^"]*)"/,$=t.exportFromMarkup=function(e,t){t.format=o(t.format)||j,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=(0,x.isDefined)(t.margin)?t.margin:H,t.backgroundColor=(0,x.isDefined)(t.backgroundColor)?t.backgroundColor:h(e),v.default.export(e,t,a(t.format))},Z=(t.getMarkup=function(e){return Z(e).markup},t.exportWidgets=function(e,n){n=n||{};var i=t.combineMarkups(e,{gridLayout:n.gridLayout,verticalAlignment:n.verticalAlignment,horizontalAlignment:n.horizontalAlignment});n.width=i.width,n.height=i.height,$(i.markup,n)},t.combineMarkups=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(e)?Array.isArray(e[0])||(e=e.map(function(e){return[e]})):e=[[e]];var n=!t.gridLayout,i=e.reduce(function(e,t,i){var r=t.reduce(function(e,t,n){var r=t.getSize(),o=t.option("backgroundColor")||C.default.getTheme(t.option("theme")).backgroundColor;return o&&e.backgroundColors.indexOf(o)===-1&&e.backgroundColors.push(o),e.hOffset=e.width,e.width+=r.width,e.height=Math.max(e.height,r.height),e.itemWidth=Math.max(e.itemWidth,r.width),e.items.push({markup:t.svg(),width:r.width,height:r.height,c:n,r:i,hOffset:e.hOffset}),e},{items:[],height:0,itemWidth:0,hOffset:0,width:0,backgroundColors:e.backgroundColors});return e.rowOffsets.push(e.totalHeight),e.rowHeights.push(r.height),e.totalHeight+=r.height,e.items=e.items.concat(r.items),e.itemWidth=Math.max(e.itemWidth,r.itemWidth),e.maxItemLen=Math.max(e.maxItemLen,r.items.length),e.totalWidth=n?Math.max(e.totalWidth,r.width):e.maxItemLen*e.itemWidth,e},{items:[],rowOffsets:[],rowHeights:[],itemWidth:0,totalHeight:0,maxItemLen:0,totalWidth:0,backgroundColors:[]}),r='data-backgroundcolor="'.concat(1===i.backgroundColors.length?i.backgroundColors[0]:"",'" '),o=function(e){var n=t.verticalAlignment,r=i.rowHeights[e.r]-e.height;return i.rowOffsets[e.r]+("bottom"===n?r:"center"===n?r/2:0)},a=function(e){if(n)return e.hOffset;var r=t.horizontalAlignment,o=i.itemWidth,a=o-e.width;return e.c*o+("right"===r?a:"center"===r?a/2:0)},s=i.totalHeight,l=i.totalWidth;return{markup:"'+i.items.map(function(e){return'').concat(e.markup,"")}).join("")+"",width:l,height:s}}),Q=t.ExportMenu=function(e){var t=this._renderer=e.renderer;this._incidentOccurred=e.incidentOccurred,this._exportTo=e.exportTo,this._print=e.print,this._shadow=t.shadowFilter("-50%","-50%","200%","200%",N,6,G),this._shadow.attr({opacity:.8}),this._group=t.g().attr({"class":Y,"hidden-for-export":!0}).linkOn(t.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=t.g().attr({"class":Y+"-button"}).append(this._group),this._listGroup=t.g().attr({"class":Y+"-list"}).append(this._group),this._overlay=t.rect(-R+I,I+L,R,0),this._overlay.attr({"stroke-width":z,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=r(),this._subscribeEvents()};(0,p.extend)(Q.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=H,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._fillSpace(),this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){this._group.move(e-I-N-G+n.left,Math.floor(t/2-I/2));var i=this.getLayoutOptions();return(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;this._options=e,e.formats?e.formats=e.formats.reduce(function(e,n){return n=o(n,t._incidentOccurred,t.validFormats),n&&e.push(n),e},[]):e.formats=this.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions:function(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){this._fillSpace();var e=this._options.button.margin;return[I+e.left+e.right,I+e.top+e.bottom]},move:function(e){var t=this._options.button.margin;this._group.attr({translateX:Math.round(e[0])+t.left,translateY:Math.round(e[1])+t.top})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(function(e){return e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(function(e){return e.fixPosition()})},_setButtonState:function(e){var t=this._options.button[e];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents:function(){var e=this;this._renderer.root.on(A.default.up+".export",function(t){var n=t.target[X];return n?void("button"===n?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===n?(e._print(),e._hideList()):"exporting"===n&&(e._exportTo(t.target[q]),e._hideList())):void(e._button&&e._hideList())}),this._listGroup.on(M,function(e){return e.stopPropagation()}),this._buttonGroup.on(A.default.enter,function(){return e._setButtonState("hover")}),this._buttonGroup.on(A.default.leave,function(){return e._setButtonState(e._listShown?"focus":"default")}),this._buttonGroup.on(A.default.down+".export",function(){return e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this._renderer,t=this._options,n={"export-element-type":"button"};this._button||(this._button=e.rect(0,0,I,I).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(n),this._icon=e.path(P).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(n),this._buttonGroup.setTitle(b.default.format("vizExport-titleMenuText")))},_updateList:function(){var e=this._options,t=e.button.default,n=this._listGroup,i=d(this._renderer,e);this._shadow.attr({color:e.shadowColor}),this._overlay.attr({height:i.length*F+2*z,fill:t.backgroundColor,stroke:t.borderColor}),n.clear(),this._overlay.append(n),i.forEach(function(e){return e.g.append(n)}),this._menuItems=i}});t.plugin={name:"export",init:function(){var e=this;this._exportMenu=new t.ExportMenu({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:function(){return e.print()},exportTo:function(t){return e.exportTo(void 0,t)}}),this._layout.add(this._exportMenu)},dispose:function(){this._exportMenu.dispose()},members:{_getExportMenuOptions:function(){return(0,p.extend)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents:function(){var e=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),e},exportTo:function(e,t){var n=this,i=this._exportMenu,r=f(this,this._getOption("export")||{},e,t);i&&i.hide();var o=this._disablePointerEvents();v.default.export(this._renderer.root.element,r,a(r.format)).done(function(){n._renderer.root.attr({"pointer-events":o})}),i&&i.show()},print:function(){var e=this,t=this._exportMenu,n=f(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.forceProxy=!0,n.fileSavingAction=function(e){s("data:image/png;base64,".concat(e.data),{__test:n.__test}),e.cancel=!0};var i=this._disablePointerEvents();t&&t.hide(),v.default.export(this._renderer.root.element,n,a(n.format)).done(function(){e._renderer.root.attr({"pointer-events":i})}),t&&t.show()}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]}},function(e,t,n){function i(){return!0}function r(){return!1}function o(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}function a(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function s(e){e.component.hasEvent("incidentOccurred")||E.apply(null,[e.target.id].concat(e.target.args||[]))}function l(e){return e.reduce(function(e,t){return t>0&&!e?t:e},0)}function u(e){return g.isDefined(e)&&e>0}function c(e,t){function n(n){var i=e[n];r[i.name]=t(n)}function i(e,t,n){r[e](t),n&&n()}var r={};_(e,function(e,t){t.name&&n(e)});var o;return i.change=function(t){var n=e[t];return n&&((o=o||{})[t]=n),!!n},i.applyChanges=function(){o&&(_(o,function(e,t){n(t.newName||e)}),o=null)},i.dispose=function(){e=t=r=null},i}var d=n(2),h=n(4).noop,f=n(7),p=n(10),g=n(1),_=n(3).each,m=n(156),v=n(126),y=n(44).format,b=n(1).isObject,x=n(0).extend,S=n(267),C=Math.floor,w=n(67),k=n(145),T=n(11).parseScalar,A=n(769),E=A.log,O=n(168),D=n(771),M=n(16),I=n(5),P="rtlEnabled",L="dx-sized-element",R=w.prototype.option,V=function(e,t){return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:y.apply(null,[A.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:m}})}},B=function(){var e={};e.ctor=function(e,t){this.callBase(e,t);var n=p.createElement("div"),i=t&&g.isNumeric(t.width)?t.width+"px":"100%",r=t&&g.isNumeric(t.height)?t.height+"px":this._getDefaultSize().height+"px";p.setStyle(n,"width",i),p.setStyle(n,"height",r),p.setClass(n,L),p.insertElement(e,n)};var t=w.inherit(e),n=t.inherit;return t.inherit=function(e){for(var t in e)(g.isFunction(e[t])&&"_"!==t.substr(0,1)||"_dispose"===t||"_optionChanged"===t)&&(e[t]=h);return n.call(this,e)},t},F=!f.hasWindow();e.exports=F?B():w.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return x(this.callBase(),{onIncidentOccurred:s})},_useLinks:!0,_init:function(){var e=this;e._$element.children("."+L).remove(),e.callBase.apply(e,arguments),e._changesLocker=0,e._optionChangedLocker=0,e._changes=k.changes(),e._suspendChanges(),e._themeManager=e._createThemeManager(),e._themeManager.setCallback(function(){e._requestChange(e._themeDependentChanges)}),e._renderElementAttributes(),e._initRenderer();var t=e._useLinks&&e._renderer.root;t&&t.enableLinks().virtualLink("core").virtualLink("peripheral"),e._renderVisibilityChange(),e._attachVisibilityChangeHandlers(),e._toggleParentsScrollSubscription(this._isVisible()),e._initEventTrigger(),e._incidentOccurred=V(e.NAME,e._eventTrigger),e._layout=new D,t&&t.linkAfter("core"),e._initPlugins(),e._initCore(),t&&t.linkAfter(),e._change(e._initialChanges)},_createThemeManager:function(){return new S.BaseThemeManager(this._getThemeManagerOptions())},_getThemeManagerOptions:function(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var e=this;_(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;_(e._plugins.slice().reverse(),function(t,n){n.dispose.call(e)})},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0===--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions(),e._optionChangedLocker++,e._notify(),e._optionChangedLocker--)},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),_(t,function(e,t){t()}),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,r=i.length;for(e=0;e0&&e.height>0?[e.left,e.top,e.width-e.right,e.height-e.bottom]:[0,0,0,0];n=t.forward(n,this._getMinSize());var i=this._applySize(n)||n;t.backward(i,this._getAlignmentRect()||i)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:x(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=T(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=a(function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()}),v.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(v.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:h,beginUpdate:function(){var e=this;return e._initialized&&0===e._updateLockCount&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){var e=this;return e.callBase.apply(e,arguments),0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||b(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):R.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),R.apply(t,e),t._resumeDeprecatedWarnings()}:function(){R.apply(t,e)}},_clean:h,_render:h,_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n=t.getPartialChangeOptionsName(e),i=[];n.length>0?n.forEach(function(e){return i.push(t._partialOptionChangesMap[e])}):i.push(t._optionChangesMap[e.name]),i=i.filter(function(e){return!!e}),t._eventTrigger.change(e.name)?t._change(["EVENTS"]):i.length>0?t._change(i):t.callBase.apply(t,arguments)}},_notify:h,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(e){var t=this,n=e.fullName,i=n.split(/[.]/),r=e.name,o=e.value,a=this._partialOptionChangesPath[r],s=[];return a&&(a===!0?s.push(r):(a.forEach(function(e){n.indexOf(e)>=0&&s.push(e)}),1===i.length&&("object"===g.type(o)?t._addOptionsNameForPartialUpdate(o,a,s):"array"===g.type(o)&&o.length>0&&o.every(function(e){return t._checkOptionsForPartialUpdate(e,a)})&&o.forEach(function(e){return t._addOptionsNameForPartialUpdate(e,a,s)})))),s.filter(function(e,t,n){return n.indexOf(e)===t})},_checkOptionsForPartialUpdate:function(e,t){return!Object.keys(e).some(function(e){return t.indexOf(e)===-1})},_addOptionsNameForPartialUpdate:function(e,t,n){var i=Object.keys(e);this._checkOptionsForPartialUpdate(e,t)&&i.forEach(function(e){return t.indexOf(e)>-1&&n.push(e)})},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(P))},_getRendererOptions:function(){return{rtl:this.option(P),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:r,_dataIsReady:i,_resetIsReady:function(){this.isReady=r},_drawn:function(){var e=this;e.isReady=r,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=i}),e._eventTrigger("drawn",{})}}),k.replaceInherit(e.exports)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(29),o=i(r),a=function(e){var t=null!==e&&void 0!==e?e:(0,o.default)().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=a},function(e,t,n){var i=n(15),r=n(0).extend,o=n(13).inArray,a=n(3).each,s=n(81),l=n(21),u=n(4),c=n(1),d=n(51),h=n(14),f=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},_isValueEmpty:function(e){return!S.required.validate(e,{})},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),p=f.inherit({NAME:"required",_validate:function(e,t){return!!c.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&c.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=f.inherit({NAME:"numeric",_validate:function(e,t){return!(t.ignoreEmptyValue===!1||!this._isValueEmpty(e))||(t.useCultureSettings&&c.isString(e)?!isNaN(d.parse(e)):c.isNumeric(e))}}),_=f.inherit({NAME:"range",_validate:function(e,t){if(t.ignoreEmptyValue!==!1&&this._isValueEmpty(e))return!0;var n=S.numeric.validate(e,t),i=c.isDefined(e)&&""!==e,r=n?parseFloat(e):i&&e.valueOf(),o=t.min,a=t.max;if(!n&&!c.isDate(e)&&!i)return!1;if(c.isDefined(o))return c.isDefined(a)?r>=o&&r<=a:r>=o;if(c.isDefined(a))return r<=a;throw l.Error("E0101")}}),m=f.inherit({NAME:"stringLength",_validate:function(e,t){return e=c.isDefined(e)?String(e):"",!t.trim&&c.isDefined(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||S.range.validate(e.length,r({},t))}}),v=f.inherit({NAME:"custom",validate:function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&c.isFunction(n.option)&&n.option("dataGetter"),r=c.isFunction(i)&&i(),o={value:e,validator:n,rule:t};return r&&(o.data=r),t.validationCallback(o)}}),y=f.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;r(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){c.isDefined(e.message)||(t.defaultFormattedMessage&&c.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},r=this;return a(t||[],function(t,o){var a,s=S[o.type];if(!s)throw l.Error("E0100");return c.isDefined(o.isValid)&&o.value===e&&!o.reevaluate?!!o.isValid||(i.isValid=!1,i.brokenRule=o,!1):(o.value=e,a=s.validate(e,o),o.isValid=a,a||(i.isValid=!1,r._setDefaultMessage(o,s,n),i.brokenRule=o),!!o.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=w.addGroup(e);o(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=w.getGroupConfig(e),i=n&&n.validators,r=o(t,i);r>-1&&(i.splice(r,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=w.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=w.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};w.initGroups(),e.exports=w},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){var i=[],r=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},o=function(e){return A(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&r()||(i.push("T"),i.push(o(e.getHours())),i.push(":"),i.push(o(e.getMinutes())),i.push(":"),i.push(o(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(A(e.getMilliseconds(),3))),n||i.push("Z")),i.join("")}function o(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),r=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);if(t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(r)&&r.length){t.setHours(Number(r[1])),t.setMinutes(Number(r[2])),t.setSeconds(Number(r[3]));var o=(r[4]||"").slice(0,3);o=A(o,3,!0),t.setMilliseconds(Number(o))}return t}function a(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function s(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,r=n(e).split("/"),o=t.split("/");for(r.pop();o.length;)i=o.shift(),".."===i?r.pop():r.push(i);return r.join("/")}var l=n(15),u=n(0).extend,c=n(1),d=n(3),h=n(3).each,f=n(57),p=n(40),g=c.isDefined,_=c.isPlainObject,m=n(4).grep,v=n(6).Deferred,y=n(36).errors,b=n(41),x=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,S=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,C=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,w="application/json;odata=verbose",k=function(e){return"string"===c.type(e)?e.split():e},T=function(e){return/\./.test(e)},A=function(e,t,n){for(e=String(e);e.length-1?"&":"?")+h),l&&(d.$format="json"),{url:f,data:d,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:a,async:t.async,timeout:t.timeout,headers:t.headers,contentType:p,accepts:{json:[w,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},D=function e(t,n,i){var r=new v,o=O(t,n,i);return f.sendRequest(o).always(function(n,l){var u,c={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},d=P(n,l,c,o),h=d.error,f=d.data,p=d.nextUrl;h?h.message!==b.XHR_ERROR_UNLOAD&&r.reject(h):i.countOnly?isFinite(d.count)?r.resolve(d.count):r.reject(new y.Error("E4018")):p&&!i.isPaged?(a(p)||(p=s(o.url,p)),e(t,{url:p},i).fail(r.reject).done(function(e){r.resolve(f.concat(e))})):(isFinite(d.count)&&(u={totalCount:d.count}),r.resolve(f,u))}),r.promise()},M=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||t.indexOf("inner exception")!==-1););return t},I=function(e,t,n){if("nocontent"===t)return null;var i="Unknown error",r=e,o=200,a={requestOptions:n};if("success"!==t){o=e.status,i=b.errorMessageFromXhr(e,t);try{r=JSON.parse(e.responseText)}catch(e){}}var s=r&&(r.then&&r||r.error||r["odata.error"]||r["@odata.error"]);if(s){i=M(s)||i,a.errorDetails=s,200===o&&(o=500);var l=Number(s.code);isFinite(l)&&l>=400&&(o=l)}return o>=400||0===o?(a.httpStatus=o,u(Error(i),a)):null},P=function(e,t,n,i){var r,o=I(e,t,i);return o?{error:o}:_(e)?(r="d"in e&&(Array.isArray(e.d)||c.isObject(e.d))?L(e,t):R(e,t),B(r,n),r):{data:e}},L=function(e){var t=e.d;return g(t)?(g(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},R=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},V=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),B=function e(t,n){n=n||{},h(t,function(r,a){if(null!==a&&"object"===i(a))"results"in a&&(t[r]=a.results),e(t[r],n);else if("string"==typeof a){var s=n.fieldTypes,l=!s||"String"!==s[r];if(l&&x.test(a)&&(t[r]=new p(a)),n.deserializeDates!==!1)if(a.match(S)){var u=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[r]=new Date(u.valueOf()+60*u.getTimezoneOffset()*1e3)}else C.test(a)&&(t[r]=new Date(o(t[r]).valueOf()))}})},F=function(e){return"datetime'"+r(e,!0,!0)+"'"},z=function(e){return"'"+e.replace(/'/g,"''")+"'"},H=function(e){return e instanceof V?e.valueOf():e.replace(/\./g,"/")},N=function e(t){return t instanceof Date?r(t,!1,!1):t instanceof p?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":G(t)},G=function(e){return e instanceof Date?F(e):e instanceof p?"guid'"+e+"'":e instanceof V?e.valueOf():"string"==typeof e?z(e):String(e)},j=function(e,t){switch(t){case 2:case 3:return G(e);case 4:return N(e);default:throw y.Error("E4002")}},W=function(e,t){if(_(e)){var n=[];return h(e,function(e,i){n.push(H(e)+"="+j(i,t))}),n.join()}return j(e,t)},U={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof V?e:new V(e+"L")},Guid:function(e){return e instanceof p?e:new p(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof V?e:new V(e+"f")},Decimal:function(e){return e instanceof V?e:new V(e+"m")}},Y=function(e,t){if(null===t)return null;var n=U[e];if(!n)throw y.Error("E4014",e);return n(t)},X=function(e,t){if(t)return e<4?H(t.join()):m(t,T,!0).join()},q=function(e,t,n){var i=function(){var e={};return t&&d.each(k(t),function(){e[H(this)]=1}),n&&d.each(k(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[H(t.join("."))]=1)}),d.map(e,function(e,t){return t}).join()},r=function(){var e=function(e){var t=function e(t){var n="",i=[],r=[];return d.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),_(n)&&r.push(t+e(n))}),(i.length||r.length)&&(n+="(",i.length&&(n+="$select="+d.map(i,H).join()),r.length&&(i.length&&(n+=";"),n+="$expand="+d.map(r,H).join()),n+=")"),n},n=[];return d.each(e,function(e,i){n.push(e+t(i))}),n.join()},i=function(e,t,n){var i=function e(t,n,i){var r=i(n,t.shift(),t);r!==!1&&e(t,r,i)};d.each(e,function(e,r){i(r.split("."),t,n)})},r={};if(t||n)return t&&i(k(t),r,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(m(k(n),T),r,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(r)};return e<4?i():r()};t.sendRequest=D,t.serializePropName=H,t.serializeValue=j,t.serializeKey=W,t.keyConverters=U,t.convertPrimitiveValue=Y,t.generateExpand=q,t.generateSelect=X,t.EdmLiteral=V},,,,,,function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function r(e,t,n,i,r){e.attr({text:t}).setMaxSize(n,r,i).textChanged&&e.setTitle(t)}function o(e){return e>=0?c(e):_}function a(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:(e=e||{},t={left:o(e.left),top:o(e.top),right:o(e.right),bottom:o(e.bottom)}),t}function s(e,t){return e[2]-e[0]t&&this.freeSpace()),n},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,o=e-i.left-i.right,a=n.placeholderSize;r(t._titleElement,n.text,o,n,a),t._subtitleElement&&(c(a)>0&&(a-=t._titleElement.getBBox().height),r(t._subtitleElement,n.subtitle.text,o,n.subtitle,a),t._shiftSubtitle()),t._updateBoundingRect();var s=this.getCorrectedLayoutOptions(),l=s.x,u=s.y,d=s.height;this._clipRect.attr({x:l,y:u,width:e,height:d})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n},_updateBoundingRect:function(){var e=this,t=e._options,n=t.margin,i=e._boundingRect,r=e._hasText?e._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};r.isEmpty||(r.height+=n.top+n.bottom-e._baseLineCorrection,r.width+=n.left+n.right,r.x-=n.left,r.y+=e._baseLineCorrection-n.top),t.placeholderSize>0&&(r.height=t.placeholderSize),i.height=r.height,i.width=r.width,i.x=r.x,i.y=r.y},getCorrectedLayoutOptions:function(){var e=this.getLayoutOptions(),t=this._baseLineCorrection;return h({},e,{y:e.y-t,height:e.height+t})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e,t){var n=this._boundingRect;s(e,n)?this.shift(t[0],t[1]):this.shift(Math.round(e[0]),Math.round(e[1]))},freeSpace:function(){var e=this;e._params.incidentOccurred("W2103"),e._group.linkRemove(),e._boundingRect.width=e._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(e){this._group.linkRemove(),this._group.linkOn(e,"title")}}),t.Title=l,t.plugin={name:"title",init:function(){var e=this;e._title=new t.Title({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]}},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t=0;return f(e,function(e,n){t+=n}),t}function o(e){return h(e,[L,P,D,M,I])!==-1}function a(e,t){return r(b(e,function(e){return(e-t)*(e-t)}))/e.length}function s(e,t,n){var i=n.getOptions().valueErrorBar,r=n.getValueFields()[0],o=i.lowValueField||O,a=i.highValueField||E;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce(function(e,t){return v(t[o])&&(e[0]+=t[r]-t[o],e[1]++),v(t[a])&&(e[2]+=t[a]-t[r],e[3]++),e},[0,0,0,0]);s[1]&&(e[o]=e[r]-s[0]/s[1]),s[2]&&(e[a]=e[r]+s[2]/s[3])}return e}function l(e,t,n){var i=n.getOptions().valueErrorBar,r=i.lowValueField||O,o=i.highValueField||E;return n.areErrorBarsVisible()&&void 0===i.type&&(e[r]=0,e[o]=0,e=t.reduce(function(e,t){return e[r]+=t[r],e[o]+=t[o],e},e)),e}function u(e){return function(t,n){var r=t.intervalStart,o=t.data,a=n.getValueFields()[0],s=o[0];return s=o.reduce(function(t,n){var i=n[a];return null===t[a]&&(t=n),null!==i&&e(i,t[a])?n:t},s),d({},s,i({},n.getArgumentField(),r))}}function c(e,t,n){var i=!0;for(var r in t){var o="argument"===r;if(o||"size"===r?!v(e[r]):void 0===e[r]){var a=t[r];o||(n[a]=(n[a]||0)+1),i=!1}}return i}var d=n(0).extend,h=n(13).inArray,f=n(3).each,p=n(273),g=n(1),_=n(11),m=n(4).noop,v=g.isDefined,y=g.isString,b=_.map,x=_.normalizeEnum,S=Math,C=S.abs,w=S.sqrt,k=S.max,T=12,A=400,E="highError",O="lowError",D="variance",M="stddeviation",I="stderror",P="percent",L="fixed",R="undefined",V="discrete",B="logarithmic",F="datetime";t.chart={},t.polar={};var z={_defaultDuration:A,_defaultTrackerWidth:T,_applyStyle:m,_updateOptions:m,_parseStyle:m,_prepareSegment:m,_drawSegment:m,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching?d({},e.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var r=t[e]=t[e]||this._renderer.g();n&&r.append(n),i&&r.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(o(x(e.type))||v(e.lowValueField)||v(e.highValueField))},groupPointsByCoords:function(e){var t=[];return f(this.getVisiblePoints(),function(n,i){var r=parseInt(e?i.vy:i.vx);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={"class":"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=d(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var r=e.border||{},o=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:r.color||n,"stroke-width":r.visible?r.width:0,r:o/2+(r.visible&&0!==o?~~(r.width/2)||0:0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,r=t._parsePointStyle(e,n,n);return r.visibility=e.visible?"visible":"hidden",{normal:r,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size),selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e,t,n){return n=n||{value:this.getValueFields()[0]},n.argument=this.getArgumentField(),c(e,n,t||{})&&e.value===e.value},getValueRangeInitialValue:function(){},_getRangeData:function(){return p.getRangeData(this)},_getPointDataSelector:function(){var e,t,n=this,i=this.getValueFields()[0],r=this.getArgumentField(),o=this.getTagField(),a=this.areErrorBarsVisible();if(a){var s=this._options.valueErrorBar;e=s.lowValueField||O,t=s.highValueField||E}return function(s){var l={value:n._processEmptyValue(s[i]),argument:s[r],tag:s[o],data:s};return a&&(l.lowError=s[e],l.highError=s[t]),l}},_errorBarsEnabled:function(){return this.valueAxisType!==V&&this.valueAxisType!==B&&this.valueType!==F},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;f(e._drawnPoints||[],function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_defaultAggregator:"avg",_aggregators:{avg:function(e,t){var n,r=e.data,o=e.intervalStart;if(r.length){var a=t.getValueFields()[0],l=r.reduce(function(e,t){var n=t[a];return v(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e},[0,0,0]);return s((n={},i(n,a,l[2]===r.length?null:l[0]/l[1]),i(n,t.getArgumentField(),o),n),r,t)}},sum:function(e,t){var n,r=e.intervalStart,o=e.data;if(o.length){var a=t.getValueFields()[0],s=o.reduce(function(e,t){var n=t[a];return void 0!==n&&(e[0]+=n),null===n?e[1]++:void 0===n&&e[2]++,e},[0,0,0]),u=s[0];if(s[1]===o.length&&(u=null),s[2]!==o.length)return l((n={},i(n,a,u),i(n,t.getArgumentField(),r),n),o,t)}},count:function(e,t){var n,r=e.data,o=e.intervalStart,a=t.getValueFields()[0];return n={},i(n,t.getArgumentField(),o),i(n,a,r.filter(function(e){return void 0!==e[a]}).length),n},min:u(function(e,t){return et})},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,r=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,y(e)&&r.push(e),y(t)&&r.push(t)),r},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,o,s,l=this,u=l._options,c=u.valueErrorBar,d=x(c.type),h=parseFloat(c.value),p=l.getValueFields()[0],g=c.lowValueField||O,_=c.highValueField||E,m=function(e,n){t=n.value,n.lowError=t-h,n.highError=t+h};switch(d){case L:s=m;break;case P:s=function(e,n){t=n.value;var i=t*h/100;n.lowError=t-i,n.highError=t+i};break;case R:s=function(e,t){t.lowError=t.data[g],t.highError=t.data[_]};break;default:switch(n=b(e,function(e){return v(e.data[p])?e.data[p]:null}),i=n.length,h=h||1,d){case D:h=a(n,r(n)/i)*h,s=m;break;case M:o=r(n)/i,h=w(a(n,o))*h,s=function(e,t){t.lowError=o-h,t.highError=o+h};break;case I:h=w(a(n,r(n)/i)/i)*h,s=m}}s&&f(e,s)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce(function(e,t){return k(e,2*t.r+t["stroke-width"])},0);return e.size=t.visible?i:0,e.sizePointNormalState=t.visible?2*n.normal.r+n.normal["stroke-width"]:2,e},usePointsToDefineAutoHiding:function(){return!0}};t.chart=d({},z,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],r=n._options.rotated;n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray","class":"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),f(i,function(i,r){e[i]?n._updateTrackerElement(r,e[i]):e[i]=n._drawTrackerElement(r).data({"chart-data-series":n}).append(t)})),n._trackersTranslator=n.groupPointsByCoords(r)); },checkAxisVisibleAreaCoord:function(e,t){var n=e?this.getArgumentAxis():this.getValueAxis(),i=n.getVisibleArea();return v(t)&&i[0]<=t&&i[1]>=t},checkSeriesViewportCoord:function(e,t){return!0},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,r=i?"vy":"vx",o=i?"vx":"vy",a=this.getVisiblePoints(),s=0;s0&&(s.length>1?n.findNeighborPointsByCoord(e,o,a.slice(0),s,function(e,t){l.push([e,t])}):s[0][o]===e&&l.push([s[0],s[0]])),l},findNeighborPointsByCoord:function(e,t,n,i,r){var o=i;n.length>0&&(n.splice(0,0,i[i.indexOf(n[0])-1]),n.splice(n.length,0,i[i.indexOf(n[n.length-1])+1]),o=n),o.forEach(function(n,i){var a=o[i+1];n&&a&&(n[t]<=e&&a[t]>=e||n[t]>=e&&a[t]<=e)&&r(n,a)})},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,r=i,o=this._trackersTranslator,a=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&o){a=o[i];do a=o[r]||o[i],i--,r++;while((i>=0||r=i&&(n=i,a=t)}))}return a},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getVisibleArea();e._visibleArea={minX:n[0],maxX:n[1],minY:i[0],maxY:i[1]}},getPointCenterByArg:function(e){var t=this.getPointsByArg(e)[0];return t?t.getCenterCoord():void 0}}),t.polar=d({},z,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(f(n,function(t,n){if(n)return e=t,!1}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=_.convertXYToPolar(this.getValueAxis().getCenter(),e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this,t=e.getValueAxis().getCanvas();e._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){e.css({left:"-9999px"}).detach()}function o(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision}}}return n}function a(e){var t,n=this;n._eventTrigger=e.eventTrigger,n._widgetRoot=e.widgetRoot,n._wrapper=(0,p.default)("
").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(e.cssClass),n._renderer=t=new _.default.Renderer({pathModified:e.pathModified,container:n._wrapper[0]});var i=t.root;i.attr({"pointer-events":"none"}),n._text=t.text(void 0,0,0),n._textGroupHtml=(0,p.default)("
").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._wrapper),n._textHtml=(0,p.default)("
").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._textGroupHtml)}var s=n(10),l=i(s),u=n(7),c=i(u),d=n(33),h=i(d),f=n(2),p=i(f),g=n(168),_=i(g),m=n(1),v=i(m),y=n(0),b=n(11),x=i(b),S=n(64),C=n(405),w=Math.ceil,k=Math.max,T=Math.min,A=c.default.getWindow();a.prototype={constructor:a,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=(0,p.default)(this._widgetRoot).closest(e.container);return 0===t.length&&(t=(0,p.default)(e.container)),(t.length?t:(0,p.default)("body")).get(0)},setOptions:function(e){var t=this;e=e||{};var n=this;n._options=e,n._textFontStyles=x.default.patchFontOptions(e.font),n._textFontStyles.color=e.font.color,n._wrapper.css({zIndex:e.zIndex}),n._customizeTooltip=e.customizeTooltip;var i=n._textGroupHtml,r=n._textHtml;return this.plaque&&this.plaque.clear(),this.plaque=new C.Plaque({opacity:n._options.opacity,color:n._options.color,border:n._options.border,paddingLeftRight:n._options.paddingLeftRight,paddingTopBottom:n._options.paddingTopBottom,arrowLength:n._options.arrowLength,arrowWidth:20,shadow:n._options.shadow,cornerRadius:n._options.cornerRadius},n,n._renderer.root,function(o,a){var s=o._state;s.html?s.isRendered||(n._text.attr({text:""}),i.css({color:s.textColor,width:null}),r.html(s.html),s.isRendered=!0):n._text.css({fill:s.textColor}).attr({text:s.text,"class":e.cssClass}).append(a.attr({align:e.textAlignment})),t.plaque.customizeCloud({fill:s.color,stroke:s.borderColor})},(!0),function(e,t){var n=e._state;if(n.html){var i,o=A.getComputedStyle;return o?(i=o(r.get(0)),i={x:0,y:0,width:w(parseFloat(i.width)),height:w(parseFloat(i.height))}):(i=r.get(0).getBoundingClientRect(),i={x:0,y:0,width:w(i.width?i.width:i.right-i.left),height:w(i.height?i.height:i.bottom-i.top)}),i}return t.getBBox()},function(e,t,i,r){var o=e._state;o.html?n._textGroupHtml.css({left:i,top:r}):t.move(i,r)}),n},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;r(e._wrapper);var t={};for(var n in e._textFontStyles)t[h.default.camelize(n)]=e._textFontStyles[n];return e._textGroupHtml.css(t),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,r={};return v.default.isFunction(n)&&(r=n.call(e,e),r=v.default.isPlainObject(r)?r:{},"text"in r&&(t.text=v.default.isDefined(r.text)?String(r.text):""),"html"in r&&(t.html=v.default.isDefined(r.html)?String(r.html):"")),"text"in t||"html"in t||(t.text=e.valueText||e.description||""),t.color=r.color||i.color,t.borderColor=r.borderColor||(i.border||{}).color,t.textColor=r.fontColor||(i.font||{}).color,!!t.text||!!t.html},show:function(e,t,n,i){var r=this,o={};return!!r._prepare(e,o,i)&&(r._state=o,r._wrapper.appendTo(r._getContainer()),r._textHtml.html(""),this.plaque.clear().draw((0,y.extend)({},r._options,{canvas:r._getCanvas()},o,{x:t.x,y:t.y,offset:t.offset})),r.moveWrapper(),r._eventData&&r._eventTrigger("tooltipHidden",r._eventData),r._eventData=n,r._eventTrigger("tooltipShown",r._eventData),!0)},hide:function(){var e=this;r(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){this.plaque.draw({x:e,y:t,offset:n,canvas:this._getCanvas()}),this.moveWrapper()},moveWrapper:function(){var e=this,t=this.plaque.getBBox();e._renderer.resize(t.width,t.height);var n=e._wrapper.css({left:0,top:0}).offset(),i=t.x,r=t.y;e._wrapper.css({left:i-n.left,top:r-n.top}),this.plaque.moveRoot(-i,-r),this._state.html&&(e._textHtml.css({left:-i,top:-r}),e._textGroupHtml.css({width:t.width}))},formatValue:function(e,t){var n=t?o(this._options,t):this._options;return(0,S.format)(e,n.format)},getLocation:function(){return x.default.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=l.default.getDocumentElement(),i=l.default.getDocument(),r=A.pageXOffset||n.scrollLeft||0,o=A.pageYOffset||n.scrollTop||0,a={left:r,top:o,width:n.clientWidth+r||0,height:k(i.body.scrollHeight,n.scrollHeight,i.body.offsetHeight,n.offsetHeight,i.body.clientHeight,n.clientHeight)||0,right:0,bottom:0};return e!==l.default.getBody()&&(r=k(a.left,a.left+t.left),o=k(a.top,a.top+t.top),a.width=T(t.width,a.width)+r+a.left,a.height=T(t.height,a.height)+o+a.top,a.left=r,a.top=o),a}},t.Tooltip=a,t.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new t.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element()})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling:function(){this._tooltip&&this._tooltip.hide()}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]}},function(e,t,n){function i(e,t){return te}function o(e,t,n,i){var r=l(t);l(e)?r&&i(e,t)&&n(t):r&&n(t)}var a=n(1),s=n(0).extend,l=a.isDefined,u=a.isDate,c=a.isFunction,d=n(11).unique,h="min",f="max",p="minVisible",g="maxVisible",_="base",m="axisType",v=t.Range=function(e){e&&s(this,e)};v.prototype={constructor:v,addRange:function(e){var t=this,n=t.categories,a=e.categories,s=function(n,i){o(t[n],e[n],function(e){t[n]=e},i)},u=function(e,n,i){o(t[e],t[n],function(n){l(t[e])&&(t[e]=n)},i)},c=function(n){t[n]=t[n]||e[n]};return c("invert"),c(m),c("dataType"),c("isSpacedMargin"),c("checkMinDataVisibility"),c("checkMaxDataVisibility"),"logarithmic"===t[m]?c(_):t[_]=void 0,s(h,i),s(f,r),"discrete"===t[m]?(c(p),c(g)):(s(p,i),s(g,r)),s("interval",i),u(h,p,i),u(h,g,i),u(f,g,r),u(f,p,r),void 0===n?t.categories=a:t.categories=a?d(n.concat(a)):n,t},isEmpty:function(){return!(l(this[h])&&l(this[f])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[m]||u(t[f])||u(t[h])?t:(e(h,f),e(p,g),t)},sortCategories:function(e){if(e!==!1&&this.categories)if(Array.isArray(e)){var t=e.map(function(e){return e.valueOf()}),n=this.categories.filter(function(e){return t.indexOf(e.valueOf())===-1});this.categories=e.concat(n)}else{var i=!c(e);i&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:i&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(2),r=n(29),o=n(7).getWindow(),a=n(1),s=n(3).each,l=n(15),u=n(21),c=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||o,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=e.getBoundingRect(),o=n._getGraphicBBox(e.pointPosition),a=C;return n._isPointInVisibleArea(i,o)&&(n._options.rotated?(i.minX>t.x&&(t.x=o.x+o.width+a),i.maxXt.y&&(t.y=i.minY),i.maxYt.x&&(t.x=i.minX),i.maxXt.y&&(t.y=o.y+o.height+a),i.maxY0&&(v=this._getErrorBarBaseEdgeLength()*o.edgeLength),v=y(parseInt(v)/2),p&&(c=i._baseErrorBarPos),m&&(l=i._baseErrorBarPos),"none"!==d&&g(l)&&g(c)&&g(s)?(!m&&a.push([s-v,l,s+v,l]),a.push([s,l,s,c]),!p&&a.push([s+v,c,s-v,c]),r.rotated&&u(a,function(e,t){t.reverse()}),n=i._getErrorBarSettings(o),i._errorBar?(n.points=a,i._errorBar.attr(n)):i._errorBar=e.path(a,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var r=this,o=r.value/e||0,a=r.minValue/e||0,s=o-a;r._label.setDataField("percent",s),r._label.setDataField("total",t),r.series.isFullStackedSeries()&&r.hasValue()&&(r.leftHole&&(r.leftHole/=e-n,r.minLeftHole/=e-n),r.rightHole&&(r.rightHole/=e-i,r.minRightHole/=e-i),r.value=r.properValue=o,r.minValue=a?a:r.minValue)},_storeTrackerR:function(){var e=this,t=h.navigator,n=e._options.styles.normal.r,i=d.hasProperty("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return e._options.trackerR=n0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return p({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},g(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},g(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"!==n&&g(this.lowError)?this.lowError:this.value,r="low"!==n&&g(this.highError)?this.highError:this.value;return ir?i:r}return this.value}}},function(e,t,n){function i(e){var t=this,n=e.renderer;t._group=n.g().attr({"class":"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)}var r=n(11).patchFontOptions,o=0,a=1,s="linear",l=400,u="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){var r=this;r._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(u)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(u)}}],r._state=o},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css(r(e.font)).attr({text:e.text,"class":e.cssClass}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:s,duration:l,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(a)},hide:function(){this._transit(o)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){function e(e){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:e}),n._skipLoadingIndicatorOptions=!1,e&&n._stopCurrentHandling()}var n=this;n._loadingIndicator=new t.LoadingIndicator({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:e}),n._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler:function(e){e&&(this._options.loadingIndicator||{}).enabled&&this._loadingIndicator.show()},_setContentSize:function(){this._loadingIndicator.setSize(this._canvas)},endUpdate:function(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]}},function(e,t,n){var i,r=n(1).isFunction,o=n(11).normalizeEnum,a=Math.round,s={};t.getAlgorithm=function(e){return s[o(e)]||r(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={};l[-1]=[2,0],l[1]=[0,2];var u=function(e){return e[2]-e[0]").addClass(u);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),r=c(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(r)},setDataField:function(){if(this._dirty=!1,o(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){o(this._watchers,function(e,t){t.dispose()})}});d.getInstance=function(e){return a.getInstanceByElement(e,this)},e.exports=d},function(e,t,n){var i=n(5),r=n(12),o=n(10),a=n(15),s=n(68),l=n(19),u=n(8),c="dxdblclick",d="dxDblClick",h=u.addNamespace(l.name,d),f=300,p=a.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-f},add:function(){this._handlerCount<=0&&i.on(o.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStampe.length)&&(t=e.length);for(var n=0,i=new Array(t);n0},r=0;r1&&!!e._getOptionsByReference()[i[0]]})},u=function(e,t,n){var r=i(e._options,t,!1);e._optionValuesEqual(t,r,n)||(e._initialized&&e._optionChanging(t,r,n),l(e,t,n),e._notifyOptionChanged(t,n,r))};return function(t,n){var r=this,o=t;if(arguments.length<2&&"object"!==x.type(o))return o=e(r,o),i(r._options,o);"string"==typeof o&&(t={},t[o]=n),r.beginUpdate();try{var a;for(a in t)s(r,t,a,t[a]);for(a in t)u(r,a,t[a])}finally{r.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return O(n)?n.bind(t)():n}}).include(T);e.exports=L,e.exports.PostponedOperations=P},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n="string"==typeof t?t.split():t.slice();n.length;){var i=n.shift();if(i in e)return!0}return!1}function a(e,t,n,i){if(i)for(var r=0;r=0)return t}function s(e,t,n,i){return i?a(e,t,n,i)||[]:t}function l(e,t){if(e.key()&&!t._dataByKeyMap){for(var n={},i=0,r=t.length;i=0?t.splice(i,0,l):t.push(l),d(t,a,l),!o)return(0,T.trivialPromise)((0,y.default)().useLegacyStoreResult?n:l,a)}function g(e,t,n,i){var r=_(e,t,n);if(r>-1&&t.splice(r,1),!i)return(0,T.trivialPromise)(n)}function _(e,t,n){var i=e.key();if(!c(t,n))return-1;for(var r=0,o=t.length;r0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},t.replaceInherit=p?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(e){n[e]={}}),e.addPlugin=f,e},e.addChange=f,e.addPlugin=f}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._fontFields,s=e._eventsMap,l=e._initialChanges,u=e._themeDependentChanges,d=e._optionChangesMap,h=e._partialOptionChangesMap,f=e._partialOptionChangesPath,p=e._optionChangesOrder,g=e._layoutChangesOrder,_=e._customChangesOrder,m=t.apply(this,arguments);return e=m.prototype,e._plugins=o(n,e._plugins),e._fontFields=o(i,e._fontFields),e._eventsMap=r(s,e._eventsMap),e._initialChanges=o(l,e._initialChanges),e._themeDependentChanges=o(u,e._themeDependentChanges),e._optionChangesMap=r(d,e._optionChangesMap),e._partialOptionChangesMap=r(h,e._partialOptionChangesMap),e._partialOptionChangesPath=r(f,e._partialOptionChangesPath),e._optionChangesOrder=o(p,e._optionChangesOrder),e._layoutChangesOrder=o(g,e._layoutChangesOrder),e._customChangesOrder=o(_,e._customChangesOrder),a(e),m.addPlugin=c,m},e.prototype._plugins=[],e.prototype._fontFields=[],e.addChange=s,e.addPlugin=c},t.changes=function(){return new i},t.expand=u},function(e,t,n){var i=n(0).extend,r=n(3).each,o=n(107),a=n(169).chart.area,s=o.chart,l=o.polar,u=i,c=r;t.chart={},t.polar={};var d={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,r=s._parsePointStyle.call(this,e,i,n);return r.fill=i,r.hatching=e.hatching,r.dashStyle=e.border&&e.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;r(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;c(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},getValueRangeInitialValue:a.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum",_defineDrawingState:function(){},usePointsToDefineAutoHiding:function(){return!1}};t.chart.bar=u({},s,d,{_getAffineCoordOptions:function(){var e=this._options.rotated,t=e?"X":"Y",n={scaleX:e?.001:1,scaleY:e?1:.001};return n["translate"+t]=this.getValueAxis().getTranslator().translate("canvas_position_default"),n},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;if(e.isArgumentAxis)return!0;var n=e.getTranslator(),i=this.getViewport(),r=n.translate(i.categories?i.categories[0]:i.min),o=n.translate(i.categories?i.categories[i.categories.length-1]:i.max),a=this.getOptions().rotated,s=e.getOptions().inverted;return a&&!s||!a&&s?t>=r&&t<=o:t>=o&&t<=r},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,r=!t&&!i||t&&i,o=r?"vy":"vx",a=r?"vx":"vy",s=this.getPoints(),l=0;l0&&(e._animationSettings={duration:r(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=o(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new s.Translator1D},createTracker:function(e){return new d(e)}}});t.dxBaseGauge=h;var f=n(64).format,p=function(e,t,n){t=t||{};var i,r=f(e,t.format);return"function"==typeof t.customizeText?(i=l({value:e,valueText:r},n),String(t.customizeText.call(i,i))):r},g=function(e,t){var n=p(e.getDomainStart(),t),i=p(e.getDomainEnd(),t);return n.length>=i.length?n:i};t.formatValue=p,t.getSampleText=g,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&i(e,t)},h.addPlugin(n(96).plugin),h.addPlugin(n(106).plugin),h.addPlugin(n(108).plugin),h.addPlugin(n(122).plugin);var _=h.prototype._setTooltipOptions;h.prototype._setTooltipOptions=function(){_.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())}},function(e,t,n){function i(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}function r(e,t){var n,i=e.nodes,o=i&&i.length;for(n=0;n0?Number(e):0),i(r,["TILING"]),n=this):n=r.value,n},label:function(e){var n,r=t[this._id];return void 0!==e?(r.customLabel=e?String(e):null,i(r,["LABELS"]),n=this):n=r.customLabel||r.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},u(!0,n._custom,e),n._partialState=n._partialLabelState=null),i(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,i(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},s._extendProxyType=n(4).noop;var c=s._resetNodes;s._resetNodes=function(){c.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var d=l.updateStyles;l.updateStyles=function(){var e=this;d.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),u(!0,e.state,e._partialState))};var h=l.updateLabelStyle;l.updateLabelStyle=function(){var e=this,t=e._custom;h.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||a(e,t.label),e.labelState=u(!0,{},e.labelState,e._partialLabelState))},s.getRootNode=function(){return this._root.proxy},s.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){var i=n(0).extend,r=n(51);r.inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var r=this.format(e,i({},n,{type:"fixedpoint"})),o=this.getCurrencySymbol().symbol.replace("$","$$$$");return r=r.replace(/^(\D*)(\d.*)/,"$1"+o+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){var i=n(178);e.exports=new i},function(e,t,n){var i=n(5),r=n(26),o=n(10),a=n(15),s=n(8),l="dxPointerEvents",u=a.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:r.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:o.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:o.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:o.getDocument(),i.off(e,this._originalEvents)}});e.exports=u},function(e,t,n){var i=n(2),r=n(77),o="dx-swatch-",a=function(e){var t=i(e),n=t.closest('[class^="'.concat(o,'"], [class*=" ').concat(o,'"]')),a=r.value();if(!n.length)return a;var s=new RegExp("(\\s|^)(".concat(o,".*?)(\\s|$)")),l=n[0].className.match(s)[2],u=a.children("."+l);return u.length||(u=i("
").addClass(l).appendTo(a)),u};e.exports={getSwatchContainer:a}},function(e,t,n){var i=n(15),r=n(1),o=n(3),a=n(20).compileGetter,s=n(20).toComparable,l=n(6).Deferred,u=n(36),c=n(41),d=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1t?1:0},_=d.inherit({ctor:function(e,t,n,i){e instanceof p||(e=new p(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(o.each(e.rules,function(){this.getter=a(this.getter)}),e.sortedIter=new p(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var r=0,o=this.rules.length;r1&&n!==i)throw new u.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=c.isConjunctiveOperator(this)}),function(e){for(var i=n,r=0;r":return e(n,r,!0);case">":return function(e){return s(n(e))>r};case"<":return function(e){return s(n(e))=":return function(e){return s(n(e))>=r};case"<=":return function(e){return s(n(e))<=r};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(r)};case"endswith":return function(e){var t=s(l(n(e))),i=l(r);if(t.length-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(r)===-1}}throw u.errors.Error("E4003",i)};return function(e){return r.isFunction(e)?e:c.isGroupCriterion(e)?i(e):c.isUnaryOperation(e)?n(e):d(e)}}(),v=f.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=d.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=a(this.getter);for(n.reset();n.next();){var r=n.current(),s=i(r);s in e?e[s].push(r):(e[s]=[r],t.push(s))}this.groupedIter=new h(o.map(t,function(t){return{key:t,items:e[t]}}))}}}),b=f.inherit({ctor:function(e,t){this.callBase(e),this.getter=a(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),x=f.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos":s("ne"),">":s("gt"),">=":s("ge"),"<":s("lt"),"<=":s("le"),startswith:h("startswith"),endswith:h("endswith")},p=a({},f,{contains:h("substringof",!0),notcontains:h("not substringof",!0)}),g=a({},f,{contains:h("contains"),notcontains:h("not contains")}),_=function(t){t=d.normalizeBinaryCriterion(t);var i=t[1],r=4===e?g:p,o=r[i.toLowerCase()];if(!o)throw c.Error("E4003",i);var a=t[0],s=t[2];return n&&n[a]&&(s=l.convertPrimitiveValue(n[a],s)),o(u(a),l.serializeValue(s,e))},m=function(e){var t=e[0],n=y(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},v=function(e){var t,n,i=[];return r.each(e,function(e,r){if(Array.isArray(r)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+y(r)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},y=function(e){return Array.isArray(e[0])?v(e):d.isUnaryOperation(e)?m(e):_(e)};return function(r,a,s,l){return n=s,t=i.isDefined(l)?l:o().oDataFilterToLower,e=a,y(r)}}(),g=function(e){function t(e){for(var t=-1,n=0;n").addClass(e).css("pointerEvents","none");return r.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),c(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),T=function(e,t){var n=k();n(e,t)},A=g.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==b},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=v},start:function(e){return e._needSkipEvent||p.needSkipEvent(e)?void this._cancel(e):(this._startEvent=p.createEvent(e),this._startEventData=p.eventData(e),this._stage=y,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),C))},move:function(e){if(this._stage===y&&this._directionConfirmed(e)){if(this._stage=b,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===v)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===b&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=p.eventDelta(this._startEventData,p.eventData(e)),i=m(n.x),r=m(n.y),o=this._validateMove(t,i,r),a=this._validateMove(t,r,i),s=this.getDirection(e),l="both"===s&&(o||a),u="horizontal"===s&&o,c="vertical"===s&&a;return l||u||c||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||p.isDxMouseWheelEvent(e)?S:x},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=p.eventDelta(this._startEventData,p.eventData(e));this._startEvent.pageX+=_(n.x)*t,this._startEvent.pageY+=_(n.y)*t},_resetActiveElement:function(){"ios"===o.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){var t=this._stage===b;t&&T(e,this.getElement().css("cursor"))},_clearSelection:function(e){p.isDxMouseWheelEvent(e)||p.isTouchEvent(e)||l.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===b?this._end(e):this._stage===y&&this._stop(e),this._stage=v},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:h,_start:h,_move:h,_stop:h,_end:h});A.initialTouchBoundary=x,A.touchBoundary=function(e){return f(e)?void(x=e):x},e.exports=A},,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),o=i(r),a=n(5),s=i(a),l=n(15),u=i(l),c=n(13),d=n(3),h=n(8),f="compositionstart",p="compositionend",g="keydown",_="KeyboardProcessor",m=u.default.inherit({_keydown:(0,h.addNamespace)(g,_),_compositionStart:(0,h.addNamespace)(f,_),_compositionEnd:(0,h.addNamespace)(p,_),ctor:function(e){var t=this;e=e||{},e.element&&(this._element=(0,o.default)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){var n=t._focusTarget&&t._focusTarget!==e.target&&(0,c.inArray)(e.target,t._focusTarget)<0,i=t._isComposingJustFinished&&229===e.which||t._isComposing||n;t._isComposingJustFinished=!1,i||t.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),s.default.on(this._element,this._keydown,this._processFunction),s.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(s.default.off(this._element,this._keydown,this._processFunction),s.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new m;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){var t={keyName:(0,h.normalizeKeyName)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&(0,d.each)(this._childProcessors,function(t,n){n.process(e)})},toggleProcessing:function(e){var t=e.type;this._isComposing=t===f,this._isComposingJustFinished=!this._isComposing}});e.exports=m},function(e,t,n){var i=n(2),r=n(5),o=n(43),a=n(16),s=n(15),l=n(68),u=n(8),c=n(89),d="dxContexMenu",h=u.addNamespace("contextmenu",d),f=u.addNamespace(c.name,d),p="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);r.on(t,h,this._contextMenuHandler.bind(this)),(o.touch||a.isSimulator())&&r.on(t,f,this._holdHandler.bind(this))},_holdHandler:function(e){u.isMouseEvent(e)&&!a.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return u.fireEvent({type:p,originalEvent:e})},teardown:function(e){r.off(e,"."+d)}});l(p,new g),t.name=p},,,,,,,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return void 0===e?C||L:(e=(0,w.normalizeEnum)(e),void(C=e in V?e:void 0))}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepLastColorInEnd:!1};return n.type=n.baseColorSet,n.extensionMode=n.paletteExtensionMode,p(e,n).generateColors(t)}function s(e,t){t=t||{},e=x(e,t.themeDefault);var n,i=t.type;return M(e)?e.slice(0):(I(e)&&(n=V[(0,w.normalizeEnum)(e)]),n||(n=V[o()]),i?n[i].slice(0):n)}function l(e,t){var n,i={};M(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=M(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=M(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=M(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,w.normalizeEnum)(e),(0,k.extend)(V[n]=V[n]||{},i))}function u(e,t){return e=s(e,{themeDefault:t}),e.accentColor||e[0]}function c(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function d(e,t){function n(){var t=r.next();o=t?g(e,t):e.slice(0)}var i=t.useHighlight?P:0,r=new c([0,i,-i]),o=[];return{getColor:function(t){var i=o[t%e.length];return t%e.length===e.length-1&&n(),i},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;iMath.max(.8,r+.15*(1-r))&&(s=Math.max(.8,r+.15*(1-r))),u<0?r-=(a-r)*u/l:r+=(s-r)*(u/l),i.l=100*r,D.prototype.fromHSL(i).toHex()}return{getColor:function(t,i){var r=e.length,o=E((i-1)/r+1),a=e[t%r];return o>1?n(a,E(t/r),o):a},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i0&&(o+=1,s--),r=o>2?Math.floor(o/2):0,i.push(l+r),l+=o;return i.sort(function(e,t){return e-t})}function i(e,t,n){t=(n+t)%n;for(var i=0,r=t;r<2*n;r+=1){var o=(n+r)%n;if(e[o])return[e[o],i];i++}}function r(e,t){for(var n=0;n-1&&(o[c]=e[l++]);return o=r(o,i)}var a=e.length,s=[];return{getColor:function(e,n){return n=n||t.count||a,s.length!==n&&(s=o(n)),s[e%n]},generateColors:function(e,n){if(e=e||t.count||a,n&&e>a){for(var i=o(a),r=0;r0?o(e).slice(0,e):[]},reset:function(){}}}function p(e,t,n){var i={dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},generateColors:function(e,t){return this._extensionStrategy.generateColors(e,(t||{}).repeat)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}};t=t||{};var r=(t.extensionMode||"").toLowerCase(),o=s(e,{type:t.type||"simpleSet",themeDefault:n});return"alternate"===r?i._extensionStrategy=d(o,t):"extrapolate"===r?i._extensionStrategy=h(o,t):i._extensionStrategy=f(o,t),i.reset(),i}function g(e,t){var n,i=[],r=e.length;for(n=0;n200||i<55)&&(n=new D(e).alter(-t/2)),n.toHex()}function m(e){return.3*e.r+.59*e.g+.11*e.b}function v(e,t,n){var i=t>0?y(s(e,{type:"gradientSet",themeDefault:n}),t):[];return{getColor:function(e){return i[e]||null}}}function y(e,t){function n(e){var t=o*e,n=E(t),i=O(t);s.push(a[n].blend(a[i],t-n).toHex())}var i,r=t-1,o=e.length-1,a=[],s=[];for(i=0;i<=o;++i)a.push(new D(e[i]));if(r>0)for(i=0;i<=r;++i)n(i/r);else n(.5);return s}function b(e,t){var n=s(e,{type:"gradientSet",themeDefault:t}),i=new D(n[0]),r=new D(n[1]);return{getColor:function(e){return 0<=e&&e<=1?i.blend(r,e).toHex():null}}}function x(e,t){var n=e||(void 0===C?t:o());return"default"===n&&A.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0;var S;t.currentPalette=o,t.generateColors=a,t.getPalette=s,t.registerPalette=l,t.getAccentColor=u,t.createPalette=p,t.getDiscretePalette=v,t.getGradientPalette=b;var C,w=n(11),k=n(0),T=n(21),A=i(T),E=Math.floor,O=Math.ceil,D=n(90),M=Array.isArray,I=n(1).isString,P=50,L="material",R={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},V=(S={},r(S,L,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),r(S,"default",R),r(S,"office",R),r(S,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),r(S,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),r(S,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),r(S,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),r(S,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),r(S,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),r(S,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),r(S,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),r(S,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),r(S,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),r(S,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),r(S,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),r(S,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"], indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),S)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return u(e)||l(e,t)||a(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n360&&(r%=360),o>360&&(o%=360),r>o&&(r-=360),s=!1),r*=tt,o*=tt,[e,t,qe(i,n),Xe(i,n),Qe(r),Ze(r),Qe(o),Ze(o),a,Ke(Je(o-r)/et)%2?"1":"0",s]}function y(e,t){var n=[["M",0,0]];switch(t){case"line":n=b(e);break;case"area":n=b(e,!0);break;case"bezier":n=x(e);break;case"bezierarea":n=x(e,!0)}return n}function b(e,t){return S(e,C,t)}function x(e,t){return S(e,w,t)}function S(e,t,n){var i,r,o=[];if(e[0]&&e[0].length)for(i=0,r=e.length;ia&&(r=t.slice(0),s(t,e,n));return r}function A(e,t){var n=e[e.length-2],i=e[e.length-1];switch(t){case"line":case"area":e[0]="L";break;case"bezier":case"bezierarea":e[0]="C",e[1]=e[3]=e[5]=n,e[2]=e[4]=e[6]=i}}function E(e,t,n){var i=e[e.length-1].slice(),r=e.length;for(A(i,n);r|\/>)/gi,n=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return e.replace(t,function(e,t,i,r){return i=(i&&i.match(n)||[]).map(function(e){return e}).join(" "),t+i+r})}function N(e){var t=[],n=Ie.default.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"
"),F(t,0,n,{},""),z(t),t}function G(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];ne)for(e-d<0?e=0:e-=d,t=Z(l.element,l._texts,e),n=0,i=t.length;ne&&se(s);return c.remove(),l._hasEllipsis=u,u}function Y(e){var t;return e&&(t=e.cloneNode(),t.removeAttribute("y"),t.removeAttribute("x")),t||e}function X(e){for(var t=Ie.default.querySelectorAll(e,"title"),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=[],o=!1,a=!1,s=e;W.call(i);var l=X(this.element),u=i.renderer.text(gt).attr(i._styles).append(i.renderer.root),c=u.getBBox().width,d=i._getElementBBox(),h=d.width,f=d.height;return(h||f)&&(h>e||t&&f>t)&&(e-c<0?s=0:s-=c,r=oe(i.element,i._texts,e,s,n,t),r=re(r,s,n,t,parseFloat(this._getLineHeight())),this._texts=r.reduce(function(e,t){return e.concat(t.parts)},[]).filter(function(e){return""!==e.value}).map(function(e){return e.stroke&&e.tspan.parentNode.appendChild(e.stroke),e}).map(function(e){return e.tspan.parentNode.appendChild(e.tspan),e}),!this._texts.length&&(this._texts=null),o=!0,this._texts?de(this):(this.element.textContent="",a=!0)),u.remove(),i._hasEllipsis=o,l(),{rowCount:r.length,textChanged:o,textIsEmpty:a}}function K(e,t,n,i){var r,o;if(n<=t&&i>t)for(r=1,o=e.value.length;r<=o;++r)if(n+e.tspan.getSubStringLength(0,r)>t)return r-1}function $(e){return e.value.length?e.tspan.getSubStringLength(0,e.value.length):0}function Z(e,t,n){var i,r,o,a,s,l=[];if(t)for(i=0,r=t.length;i0?[0]:[],i=e.value.split("").reduce(function(e,t,n){return" "===t&&e.push(n),e},n),r=0;void 0!==i[r+1]&&e.startBox+e.tspan.getSubStringLength(0,i[r+1])t)return n}function ee(e,t){var n=t.hideOverflowEllipsis;return n&&0===e?"":gt}function te(e,t,n){var i=ee(t,n);if(e.value.length&&e.tspan.parentNode)for(var r=e.value.length-1;r>=1;r--){if(e.startBox+e.tspan.getSubStringLength(0,r)t&&(s=ne(a,t,n,i),!s.length))return[]}}if(e.value.length){if("ellipsis"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t&&te(e,n,i),"hide"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t)return[]}else e.tspan.parentNode.removeChild(e.tspan);var d=[];return a&&d.push(a),[{commonLength:o.length,parts:d}].concat(s)}function ie(e,t){return e.parts.reduce(function(e,n){return Xe(e,ce(n,t))},0)}function re(e,t,n,i,o){var a=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===a)return e;var s=e.reduce(function(e,s,l,u){var c=r(e,2),d=c[0],h=c[1],f=ie(s,o);if(h+=f,hi?(s[0].forEach(function(e){e.parts.forEach(function(e){se(e)})}),[]):s[0]}function oe(e,t,n,i,o){if(!t){var a=e.textContent,s={value:a,height:0,line:0};e.textContent="",j([s],e,"tspan"),t=[s]}return t.reduce(function(e,t){var a=r(e,5),s=a[0],l=a[1],u=a[2],c=a[3],d=a[4],h=s[s.length-1];if(c)return[s,l,u,c];if(h&&t.line===d){if(t.startBox=l,l>i&&"none"===o.wordWrap&&"ellipsis"===o.textOverflow)return se(t),[s,l,u,c,d];h.parts.push(t),h.commonLength+=t.value.length}else t.startBox=l=0,s.push({commonLength:t.value.length,parts:[t]});if(t.endBox=u=l+$(t),l=u,(0,Ue.isDefined)(n)&&u>n){var f=ne(t,n,i,o);f.length?s=s.concat(f.filter(function(e){return e.parts.length>0})):(s=[],c=!0)}return[s,l,u,c,t.line]},[[],0,0,!1,0])[0]}function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gt,i=e.value.substr(0,t)+n;e.value=e.tspan.textContent=i,e.stroke&&(e.stroke.textContent=i),n===gt&&(e.hasEllipsis=!0)}function se(e){e.tspan.parentNode&&e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode&&e.stroke.parentNode.removeChild(e.stroke)}function le(e,t,n){var i,r;e._texts=null,e.clear(),null!==t&&(t=""+t,e.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&t.indexOf("&")===-1?/\n/g.test(t)?i=G(t):n&&(i=[{value:t.trim(),height:0}]):(r=H(t),i=N(r)),i?i.length&&(e._texts=i,n&&j(i,e.element,at),j(i,e.element,"tspan")):e.element.appendChild(Ie.default.createTextNode(t)))}function ue(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function ce(e,t){return e.inherits?he(e.height,t):e.height||t}function de(e){if(e._texts){var t,n,i=e._texts,r=e._settings.x,o=e._getLineHeight(),a=i[0];for(ue(a,"x",r),ue(a,"y",e._settings.y),t=1,n=i.length;t=0){ue(a,"x",r);var s=ce(a,o);ue(a,"dy",s)}}}function he(e,t){var n=parseFloat(e),i=parseFloat(t),r=n||pt,o=i||pt;return r>o?isNaN(n)?r:e:isNaN(i)?o:t}function fe(e){if(e._texts){var t,n,i,r=e._texts,o=e._settings[at],a=e._settings[st],s=e._settings[lt]||1;for(n=0,i=r.length;n=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),St.removeByRenderer(t);for(e in t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return g(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){this.removePlacementFix();var e=this.root.markup();return this.fixPlacement(),e},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,n,i,r){var o=new t.RectSvgElement(this);return o.attr({x:e||0,y:n||0,width:i||0,height:r||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function e(t,n,i,r,o,a){var e=this._createElement("image",{x:t||0,y:n||0,width:i||0,height:r||0,preserveAspectRatio:bt[(0,We.normalizeEnum)(a)]||ft});return e.element.setAttributeNS("http://www.w3.org/1999/xlink","href",o||""),e},path:function(e,n){var i=new t.PathSvgElement(this,n);return i.attr({points:e||[]})},arc:function(e,n,i,r,o,a){var s=new t.ArcSvgElement(this);return s.attr({x:e||0,y:n||0,innerRadius:i||0,outerRadius:r||0,startAngle:o||0,endAngle:a||0})},text:function(e,n,i){var r=new t.TextSvgElement(this);return r.attr({text:e,x:n||0,y:i||0})},linearGradient:function(e){var t=yt(),n=this,i=n._createElement("linearGradient",{id:t}).append(n._defs);return i.id=t,e.forEach(function(e){n._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(i)}),i},pattern:function e(n,i,r){i=i||{};var o=this,a=i.step||6,s=a/2,l=1.5*a,u=r||yt(),c="right"===(0,We.normalizeEnum)(i.direction)?"M "+s+" "+-s+" L "+-s+" "+s+" M 0 "+a+" L "+a+" 0 M "+l+" "+s+" L "+s+" "+l:"M 0 0 L "+a+" "+a+" M "+-s+" "+s+" L "+s+" "+l+" M "+s+" "+-s+" L "+l+" "+s,e=o._createElement("pattern",{id:u,width:a,height:a,patternUnits:"userSpaceOnUse"}).append(o._defs);e.id=u;o.rect(0,0,a,a).attr({fill:n,opacity:i.opacity}).append(e),new t.PathSvgElement(this).attr({d:c,"stroke-width":i.width||1,stroke:n}).append(e);return e},_getPointsWithYOffset:function(e,t){return e.map(function(e,n){return n%2!==0?e+t:e})},clipRect:function(e,t,n,i){var r=this,o=yt(),a=r._createElement("clipPath",{id:o}).append(r._defs),s=r.rect(e,t,n,i).append(a);return s.id=o,s.remove=function(){throw"Not implemented"},s.dispose=function(){return a.dispose(),a=null,this},s},shadowFilter:function(e,t,n,i,r,o,a,s,l){var u=this,c=yt(),d=u._createElement("filter",{id:c,x:e||0,y:t||0,width:n||0,height:i||0}).append(u._defs),h=u._createElement("feGaussianBlur",{"in":"SourceGraphic",result:"gaussianBlurResult",stdDeviation:a||0}).append(d),f=u._createElement("feOffset",{"in":"gaussianBlurResult",result:"offsetResult",dx:r||0,dy:o||0}).append(d),p=u._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),g=u._createElement("feComposite",{"in":"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),_=u._createElement("feComposite",{"in":"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=c,d.gaussianBlur=h,d.offset=f,d.flood=p,d.composite=g,d.finalComposite=_,d.attr=function(e){var t=this,n={},i={},r={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),I(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(r["flood-color"]=e.color),"opacity"in e&&(r["flood-opacity"]=e.opacity),t.flood.attr(r),t},d},brightFilter:function(e,t){var n=this,i=yt(),r=n._createElement("filter",{id:i}).append(n._defs),o=n._createElement("feComponentTransfer").append(r),a={type:e,slope:t};return r.id=i,n._createElement("feFuncR",a).append(o),n._createElement("feFuncG",a).append(o),n._createElement("feFuncB",a).append(o),r},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=yt(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:yt()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,r,o=this._hatchingStorage,a=Ee(e,t);return o.refToHash[n]!==a&&(n&&this.releaseHatching(n),i=o.byHash[a],i||(r=this.pattern(e,t,o.baseId+"-hatching-"+o.nextId++),i=o.byHash[a]={pattern:r,count:0},o.refToHash[r.id]=a),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];i&&0===--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var St=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter(function(e){return e!==t})},removeByRenderer:function(t){e=e.filter(function(e){return e.renderer!==t})},fire:function(){e.forEach(function(e){e()})}}}();t.refreshPaths=function(){St.fire()}},function(e,t,n){function i(e){return c(e,function(e){return e.getCoords()}).concat(c(e.slice().reverse(),function(e){return e.getCoords(!0)}))}var r=n(48),o=n(0).extend,a=n(107).chart,s=n(208),l=s.chart.line,u=s.polar.line,c=n(11).map,d=o,h=s.chart.spline._calculateBezierPoints;t.chart={},t.polar={};var f={_createBorderElement:l._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&this.showZero!==!1?0:a.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=l._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var r={points:t.line},o={points:t.area},a=e.line;n?(a&&a.animate(r),e.area.animate(o,{},i)):(a&&a.attr(r),e.area.attr(o))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements), t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()})},_parseStyle:function(e,t,n){var i=e.border||{},r=l._parseLineOptions(i,n);return r.stroke=i.visible&&r["stroke-width"]?r.stroke:"none",r["stroke-width"]=r["stroke-width"]||1,{border:r,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},p=t.chart.area=d({},l,f,{_prepareSegment:function(e,t){var n=this,r=n._processSinglePointsAreaSegment(e,t),o=i(r),a=n.getArgumentAxis();if(a.getAxisPosition){var s=a.getAxisPosition(),l=a.getOptions(),u=(t?1:-1)*Math.round(l.width/2);l.visible&&o.forEach(function(n,i){if(n){var r=1===e.length?0:i=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=a({},e);return t?a(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){s[Number(this.isNode())](this.tile,this._getState())}});var s=[r,o];e.exports=i},function(e,t,n){var i=n(132);n(230),n(460),n(475),n(115),n(484),n(183),n(485),n(486),n(19),n(160),n(131),n(56),n(89),n(137),n(23),n(176),n(286),e.exports=i},function(e,t,n){var i=n(184).fileSaver,r=n(431),o=n(224),a=n(438),s=n(1).isFunction,l=n(6).Deferred;t.export=function(e,t,n){if(!e)return(new l).resolve();var r=t.exportingAction,o=t.exportedAction,a=t.fileSavingAction,u={fileName:t.fileName,format:t.format,cancel:!1};return s(r)&&r(u),u.cancel?(new l).resolve():n(e,t,function(e){s(o)&&o(),s(a)&&(u.data=e,a(u)),u.cancel||i.saveAs(u.fileName,t.format,e,t.proxyUrl,t.forceProxy)})},t.fileSaver=i,t.excel={creator:r.ExcelCreator,getData:r.getData,formatConverter:n(179)},t.image={creator:o.imageCreator,getData:o.getData,testFormats:o.testFormats},t.pdf={getData:n(440).getData},t.svg={creator:a.svgCreator,getData:a.getData}},function(e,t,n){var i=n(7).getWindow(),r=n(1),o=["auto","none","inherit","initial"],a=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:a(t,["padding"+n,"padding"+i]),border:a(t,["border"+n+"Width","border"+i+"Width"]),margin:a(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},u=function(e,t,n){var r=i.getComputedStyle(e),o=s(t,r),a=e.getClientRects().length,u=e.getBoundingClientRect()[t],c=a?u:0;return c<=0?(c=parseFloat(r[t]||e.style[t])||0,c-=l(t,r,o)):c-=o.padding+o.border,n.paddings&&(c+=o.padding),n.borders&&(c+=o.border),n.margins&&(c+=o.margin),c},c=function(e){return r.isWindow(e)?e.innerHeight:e.offsetHeight},d=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*c(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(o.indexOf(e)>-1)return t?null:e;if(r.isString(e)&&(e=d(e,n)),r.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},_=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=u,t.getElementBoxParams=s,t.addOffsetToMaxHeight=f,t.addOffsetToMinHeight=p,t.getVerticalOffsets=g,t.getVisibleHeight=_,t.parseHeight=d},function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.$element().parents(".dx-validationgroup").first(),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}};e.exports=i},function(e,t,n){var i=n(2),r=n(5),o=n(9),a=n(4),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(1),d=n(7),h=n(27),f=n(28).fitIntoRange,p=n(67),g=n(8),_=n(56),m=c.isPlainObject,v=c.isFunction,y=n(12),b="dxResizable",x="dx-resizable",S="dx-resizable-resizing",C="dx-resizable-handle",w="dx-resizable-handle-top",k="dx-resizable-handle-bottom",T="dx-resizable-handle-left",A="dx-resizable-handle-right",E="dx-resizable-handle-corner",O=g.addNamespace(_.start,b),D=g.addNamespace(_.move,b),M=g.addNamespace(_.end,b),I={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},P=p.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass(x)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");u(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("
");n.addClass(C).addClass(C+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[O]=this._dragStartHandler.bind(this),t[D]=this._dragHandler.bind(this),t[M]=this._dragEndHandler.bind(this),r.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null},_toggleResizingClass:function(e){this.$element().toggleClass(S,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+C),r=n.outerWidth(),o=n.outerHeight(),a=n.offset(),s=t.offset,l=this._getAreaScrollOffset();e.maxLeftOffset=a.left-s.left-l.scrollX,e.maxRightOffset=s.left+t.width-a.left-r+l.scrollX,e.maxTopOffset=a.top-s.top-l.scrollY,e.maxBottomOffset=s.top+t.height-a.top-o+l.scrollY}},_getBorderWidth:function(e,t){if(c.isWindow(e.get(0)))return 0;var n=e.css(I[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,r=this._elementSize,o=this._getOffset(e),a=r.width+o.x*(n.left?-1:1),s=r.height+o.y*(n.top?-1:1);(o.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(a),(o.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),u=o.y-((l.height||s)-s),c=o.x-((l.width||a)-a);h.move(t,{top:i.top+(n.top?u:0),left:i.left+(n.left?c:0)}),this._resizeAction({event:e,width:this.option("width")||a,height:this.option("height")||s,handles:this._movingSides}),y.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=a.pairToObject(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(e),r="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),r?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,r=this._elementSize,o=n.left?i.left:i.left+r.width,a=n.top?i.top:i.top+r.height,s=(o+e.x)%t.h,l=(a+e.y)%t.v,u=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},c=function(e,t){return(1+.2*u(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,f=e.y-l;return s>c(t.h,e.x)&&(h+=t.h),l>c(t.v,e.y)&&(f+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:f}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(E+"-top-left"),r=t.hasClass(E+"-top-right"),o=t.hasClass(E+"-bottom-left"),a=t.hasClass(E+"-bottom-right");return{top:t.hasClass(w)||n||r,left:t.hasClass(T)||n||o,bottom:t.hasClass(k)||o||a,right:t.hasClass(A)||r||a}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t=!v(e)&&!m(e),n={scrollY:0,scrollX:0};if(t){var r=i(e)[0];c.isWindow(r)&&(n.scrollX=r.pageXOffset,n.scrollY=r.pageYOffset)}return n},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},c.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",f(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",f(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":d.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":d.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+C).remove()}});o(b,P),e.exports=P},function(e,t,n){var i=n(8),r=n(157),o=n(88),a="dxswipestart",s="dxswipe",l="dxswipeend",u={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},c={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},d={horizontal:u,vertical:c},h=r.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(a,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),r=t.calcOffsetRatio.call(this,e);r=this._fitOffset(r,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:r}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),r=n,o=this._calcTargetOffset(n,i);r=this._fitOffset(r,this.elastic),o=this._fitOffset(o,!1),this._fireEvent(l,e,{offset:r,targetOffset:o})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});o({emitter:h,events:[a,s,l]}),t.swipe=s,t.start=a,t.end=l},function(e,t,n){var i=n(13).inArray,r=n(7),o=r.hasWindow()?r.getWindow().WeakMap:WeakMap;o||(o=function(){var e=[],t=[];this.set=function(n,r){var o=i(n,e);o===-1?(e.push(n),t.push(r)):t[o]=r},this.get=function(n){var r=i(n,e);if(r!==-1)return t[r]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var r=i(n,e);r!==-1&&(e.splice(r,1),t.splice(r,1))}}),e.exports=o},function(e,t,n){var i=n(3).each,r=n(25),o=function(){var e=[],t=r();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(44),o=i(r),a=n(51),s=i(a),l=n(32),u=i(l),c=n(1),d=n(185),h=n(280);n(150);var f=1632,p={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},g=/a+/g,_=/E/g,m=/dE+/g,v=/L/g,y=/h/g,b=/\//g,x=/\[/g,S=/]/g,C=/./g,w=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i=f&&t").css({display:"none"}).attr(r);a.append(''),a.append(''),a.append(''),a.appendTo("body"),d.default.trigger(a,"submit"),d.default.trigger(a,"submit")&&a.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,b[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(b[n],["."+y[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){ t.flushAsync().done(function(){n.close(),t.close()})})})})},_click:function(e){try{e.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(n){var t=s.default.getDocument().createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,m,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}},_saveBlobAs:function(e,t,n){var i=this;if(this._blobSaved=!1,g.default.isDefined(v.msSaveOrOpenBlob))v.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(g.default.isDefined(m.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var r=m.URL||m.webkitURL||m.mozURL||m.msURL||m.oURL;if(g.default.isDefined(r)){var o=r.createObjectURL(n),a=this._linkDownloader(e,o);setTimeout(function(){r.revokeObjectURL(o),i._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(a)}else _.logger.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(e,t,n,i,r){if(e+="."+y[t],r)this._saveByProxy(i,e,t,n);else if(g.default.isFunction(m.Blob))this._saveBlobAs(e,t,n);else if(g.default.isDefined(i)&&!g.default.isDefined(v.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{g.default.isDefined(v.userAgent.match(/iPad/i))||f.default.log("E1034");var o=this._linkDownloader(e,this._getDataUri(t,n));this._click(o)}}}},function(e,t,n){var i="\u060c",r=" .,:;/\\<>()-[]"+i,o=1632,a=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=o&&t0&&!a(e[t-1])&&("."===e[t-1]||r.indexOf(e[t-1])<0);)t--;return t},u=function(e,t,n,i){var r=0,o=[],u=function(t){return e[r]!==t[r]&&(void 0===i||a(e[r])===i)};for(Array.isArray(t)||(t=[t]),r=0;r1?n[i]:n)+e.substr(o+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("\u0660"+n,n+n)),e},d=function(e,t,n,i){var r,o,s;if(!a(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(o=t.pop(),s=i[o],i[o]=-1,r=o+1;r=0,o=t>0&&r.indexOf(t-1)>=0,a=r.indexOf(t+1)>=0;return i&&(o||(n="'"+n),a||(n+="'")),n}).join("")},g=function(e){var t=[],n=h(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),r=n,o={},a=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(r)return a.forEach(function(a){var s=u(n,h(a.date,e),t,a.isDigit),l="M"!==a.pattern||o.d?a.pattern:"L";r=d(r,s,l,i),o[l]=s.length}),r=p(r,n,t,i),t.length?r:void 0};t.getFormat=g},function(e,t,n){function i(e,t){var n=a.createElement("div"),i=e.cloneNode(!0);return t&&l(i).css("backgroundColor",t),n.appendChild(i),n.innerHTML}function r(e){var t=!0;return e.indexOf("xmlns:xlink")===-1&&(e=e.replace("-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=a},,,,,,,,,,,,,,,,,,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(e){var n=e.fill;return{fill:n===ne?t:n,hatching:j({},e.hatching,{step:Y,width:U})}}}function o(e){var t=e.margin;t>=0?(t=P(e.margin),t={top:t,bottom:t,left:t,right:t}):t={top:t.top>=0?P(t.top):W,bottom:t.bottom>=0?P(t.bottom):W,left:t.left>=0?P(t.left):W,right:t.right>=0?P(t.right):W},e.margin=t}function a(e,t,n){var i,r,o=7,a=4;switch(e.itemTextPosition){case K:case q:i=t+o+n.width,r=V(t,n.height);break;case $:case Z:i=V(t,n.width),r=t+a+n.height}return{width:i,height:r}}function s(e,t){var n={};return n.left=B(e.x,t.x),n.top=B(e.y,t.y),n.right=V(e.x+e.width,t.x+t.width),n.bottom=V(e.y+e.height,t.y+t.height),n}function l(e,t,n,i){var r=t&&n[t[e]];r&&r.marker.smartAttr(r.states[i])}function u(e,t,n){return e?(o(e),e.horizontalAlignment=oe(e.horizontalAlignment,q),e.verticalAlignment=ae(e.verticalAlignment,e.horizontalAlignment===X?Z:$),e.orientation=se(e.orientation,e.horizontalAlignment===X?Q:J),e.itemTextPosition=le(e.itemTextPosition,e.orientation===Q?Z:q),e.position=n?ue(e.position,te):te,e.itemsAlignment=ce(e.itemsAlignment,null),e.hoverMode=G(e.hoverMode),e.customizeText=H(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=H(e.customizeHint)?e.customizeHint:I.noop,e._incidentOccurred=e._incidentOccurred||I.noop,e):null}function c(e,t){return e.rect(0,0,t,t)}function d(e,t){return e.circle(t/2,t/2,t/2)}function h(e){return"circle"===G(e)}function f(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function p(e,t,n,i){var r={x:0,y:0},o=0,a=0,s=0;if(s="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach(function(e,n){var i=e[0],s=e.length;e.forEach(function(e,n){var i=e.offset||t.spacing;r[t.direction]+=e[t.measure]+(n!==s-1?i:0),o=V(o,r[t.direction])}),r[t.direction]=0,r[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,a=V(a,r[t.altDirection])}),o+s>t.length)return t.countItem=g(t,n),!0}function g(e,t){return e.altCountItem++,F(t/e.altCountItem)}function _(e,t){return e.reduce(function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i},0)}function m(e,t){return e.reduce(function(e,n){return V(e,_(n,t))},0)}function v(e,t,n){var i,r=_(e,t);switch(t.itemsAlignment){case q:i=n-r;break;case X:i=(n-r)/2;break;default:i=0}return i}function y(e){switch(e.itemTextPosition){case Z:return{horizontal:X,vertical:$};case $:return{horizontal:X,vertical:Z};case K:return{horizontal:q,vertical:X};case q:return{horizontal:K,vertical:X}}}function b(e,t,n){var i={};return n%t.countItem===0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}function x(e,t){var n=e.reduce(function(e,n){var i=n?n[t]:e;return V(e,i)},0);e.forEach(function(e){e&&(e[t]=n)})}function S(e){var t,n,i=e.length,r=e[0].length,o=[];for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},i=this;if(t=i._options=u(t,i._textField,i._allowInsidePosition)||{},i._data=e&&t.customizeItems&&t.customizeItems(e.slice())||e,i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new D.default.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var r=t.title;n.horizontalAlignment=w(t),i._title.update(n,r)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._options,r=n._getItemData();if(n._size={width:e,height:t},n.erase(),!(n.isVisible()&&r&&r.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var o=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-o,t)}n._markersGroup=n._renderer.g().attr({"class":n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(r),n._locateElements(i),n._finalUpdate(i);var a=n.getLayoutOptions();return(a.width>e||a.height>t)&&n.freeSpace(),n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,i=n._options,o=i.markerSize,s=n._renderer,l=0,u=de(i.markerShape);n._markersId={},n._items=(e||[]).map(function(e,c){var d=n._markersGroup,h=P(e.size>0?e.size:o),f=e.states,p=f.normal,g=p.fill,_=u(s,h).attr({fill:g||i.markerColor||i.defaultColor,opacity:p.opacity}).append(d),m=n._createLabel(e,d),v={normal:{fill:g},hovered:r(f.hover,g),selected:r(f.selection,g)},y=m.getBBox();return void 0!==e.id&&(n._markersId[e.id]=c),t=a(i,h,y),l=V(l,t.height),n._createHint(e,m,_),{label:m,labelBBox:y,group:d,bBox:t,marker:_,markerSize:h,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:v,itemTextPosition:i.itemTextPosition,markerOffset:0,bBoxes:[]}}),i.equalRowHeight&&n._items.forEach(function(e){return e.bBox.height=l})},_getItemData:function(){var e=this._data||[],t=this._options||{};return t.inverted&&(e=e.slice().reverse()),e.filter(function(e){return e.visible})},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return l(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return l(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return l(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=this._options,r=C(i.itemTextPosition),o=i.customizeText.call(n,n),a=z(e.textOpacity)?j({},i.font,{opacity:e.textOpacity}):i.font;return this._renderer.text(o,0,0).css((0,k.patchFontOptions)(a)).attr({align:r,"class":i.cssClass}).append(t)},_createHint:function(e,t,n){var i=this._getCustomizeObject(e),r=this._options.customizeHint.call(i,i);z(r)&&""!==r&&(t.setTitle(r),n.setTitle(r))},_createBackground:function(){var e=this,t=e._options.position===ee,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:ne);(e._options.border.visible||(t||n)&&n!==ne)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,"class":e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,r=n._getItemsLayoutOptions(),o=n._items.length;do t=[],n._createLines(t,r),n._alignLines(t,r),i++;while(p(t,r,o,e.margin)&&in.width&&(n.width=t.width),n},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:I.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===Q?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):e.horizontalAlignment===X?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),n._title&&n._shiftTitle(n._boundingRect.widthWithoutMargins),n._markersGroup&&n._shiftMarkers(),n._insideLegendGroup&&(i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},_shiftTitle:function(e){var t=this,n=t._title,i=n.getCorrectedLayoutOptions();if(i&&n.hasText()){var r=e-(t._background?2*t._options.paddingLeftRight:0),o=n.getOptions(),a=i.y+o.margin.top,s=0;o.verticalAlignment===Z&&(a+=t._markersGroup.getBBox().height),o.horizontalAlignment===q?s=r-i.width:o.horizontalAlignment===X&&(s=(r-i.width)/2),n.shift(s,a)}},_shiftMarkers:function(){var e=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,r=0;e.width>t.width&&this._options.horizontalAlignment===X&&(i=e.width/2-t.width/2),n.verticalAlignment===$&&(r=e.height),0===i&&0===r||(this._markersGroup.attr({translateX:i,translateY:r}),this._items.forEach(function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=r,e.tracker.bottom+=r}))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var r=0;r=0&&!i||n<0&&i)||r&&!i||o;return e=t._options.rotated?a?h:f:a?p:g},_getLabelCoords:function(e){var t,n=this;return t=0===n.initialValue&&n.series.isFullStackedSeries()?this._options.rotated?n._getLabelCoordOfPosition(e,h):n._getLabelCoordOfPosition(e,p):"inside"===e.getLayoutOptions().position?n._getLabelCoordOfPosition(e,"inside"):l._getLabelCoords.call(this,e)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea();return n._isPointInVisibleArea(i,n._getGraphicBBox())?n._moveLabelOnCanvas(t,i,e.getBoundingRect()):t},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.heightn.x+n.width||t.x+i.widthi&&(i=t.minX),t.maxXr&&(r=t.minY),t.maxY=0,i=this._getValTranslator().getBusinessRange().invert,r=this.x,o=this.y,a=this.width,s=this.height;return this._options.rotated?(t=o+s/2,e=i?n?r:r+a:n?r+a:r):(e=r+a/2,t=i?n?o+s:o:n?o:o+s),{x:e,y:t,offset:0}},getTooltipParams:function(e){if("edge"===e)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord:function(){var e=this.width,t=this.height,n=this.x,i=this.y;return{x:n+e/2,y:i+t/2}},_truncateCoord:function(e,t,n){return null===e?e:en?n:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){l._translateErrorBars.call(this),(this._errorBarPose[1])&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,r=i._options.rotated,o=r?"x":"y",a=r?"y":"x",l=r?"width":"height",c=r?"height":"width",d=i._getArgTranslator(),h=i._getValTranslator(),f=i.series.getArgumentAxis().getVisibleArea(),p=i.series.getValueAxis().getVisibleArea();e=d.translate(i.argument),i[a]=e=null===e?e:e+(i[a+"Correction"]||0),t=h.translate(i.value,1),n=h.translate(i.minValue),i["v"+o]=t,i["v"+a]=e+i[c]/2,t=i._truncateCoord(t,p[0],p[1]),n=i._truncateCoord(n,p[0],p[1]),i[l]=s(t-n),t=tf[1]&&(i[c]=f[1]-i[a]))},_updateMarker:function(e,t){this.graphic.smartAttr(r({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,r=e.height,o=e.series.getArgumentAxis(),a=e._options.rotated;if(o.getAxisPosition){var s=o.getOptions(),l=Math.round(s.width/2),u=o.getAxisPosition();if(s.visible)if(a){var c=e.minX===e.defaultX&&e.minX===u-o.getAxisShift();t+=c?l:0,i-=c?l:0,i<0&&(i=0)}else r-=e.minY===e.defaultY&&e.minY===u-o.getAxisShift()?l:0,r<0&&(r=0)}return{x:t,y:n,width:i,height:r}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}})},function(e,t,n){function i(e,t,n,i){var r=u.clone(e);return r.x=t,r.y=n,r.angle=i,r}function r(e,t,n,r,o){var a=e.angle+o,s=h.getCosAndSin(a),l=n.x+(e.radius+r*o)*s.cos,u=n.y-(e.radius+r*o)*s.sin;return i(t,l,u,a)}function o(e,t,n,i,r){var o=t-e,a=3*n-3*t,s=3*i-6*n+3*t,l=r-3*i+3*n-t;return f.solveCubicEquation(l,s,a,o)}var a=n(107),s=a.chart,l=a.polar,u=n(48),c=n(0).extend,d=n(3).each,h=n(11),f=n(28),p=h.normalizeAngle,g="discrete",_=h.map,m=c,v=d;t.chart={},t.polar={};var y={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){var i=this;t=m(t,e),i._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{"class":"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{"class":"dxc-borders"},t._bordersGroup),s._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),s._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:_(e.line||[],function(e){return e.getDefaultCoords()})}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),v(t._graphics||[],function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()})},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var r={points:t.line},o=e.line;n?o.animate(r,{},i):o.attr(r)},_animateComplete:function(){var e=this;s._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;v(e._graphics||[],function(n,i){var r;n===t&&(r=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,r)})},_drawPoint:function(e){s._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp()},_sortPoints:function(e,t){return t?e.sort(function(e,t){return t.y-e.y}):e.sort(function(e,t){return e.x-t.x})},_drawSegment:function(e,t,n,i){var r=this,o=r._options.rotated,a=!1,s=r._prepareSegment(e,o,i);r._segments.push(s),r._graphics[n]?t?a&&r._updateElement(r._graphics[n],r._getDefaultSegment(s)):r._updateElement(r._graphics[n],s):r._graphics[n]=r._drawElement(t?r._getDefaultSegment(s):s,r._elementsGroup)},_getTrackerSettings:function(){var e=this,t=e._defaultTrackerWidth,n=e._styles.normal.elements["stroke-width"];return{"stroke-width":n>t?n:t,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),r=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),o=this.getOptions().rotated,a=e.getOptions().inverted;return e.isArgumentAxis&&(!o&&!a||o&&a)||!e.isArgumentAxis&&(o&&!a||!o&&a)?t>=i&&t<=r:t>=r&&t<=i},getSeriesPairCoord:function(e,t){for(var n=this,i=null,r=this.getNearestPointsByCoord(e,t),o=t&&!n._options.rotated||!t&&n._options.rotated,a=0;at&&n>e||e=x.y&&k>=S.y)||t&&(w<=x.x&&w<=S.x||w>=x.x&&w>=S.x));if(T)t?(u=s=w,c=(k+S.y)/2,l=(k+x.y)/2):(c=l=k,u=(w+S.x)/2,s=(w+x.x)/2);else{if(g=p-f,_=d-h,m=f*h-d*p,t){if(!g)return void n.push(e,e,e);y=k,v=-1*(_*y+m)/g,b=v-w,d-=b,h-=b}else{if(!_)return void n.push(e,e,e);v=w,y=-1*(g*v+m)/_,b=y-k,f-=b,p-=b}u=(w+C*h)/(1+C),c=(k+C*p)/(1+C),s=(w+C*d)/(1+C),l=(k+C*f)/(1+C)}t?(s=o(x.x,w,s),u=o(S.x,w,u)):(l=o(x.y,k,l),c=o(S.y,k,c));var A=i(e,s,l),E=i(e,u,c);n.push(A,e,E)}):n.push(r[0]),n},_prepareSegment:function(e,t){return b._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()},getSeriesPairCoord:function(e,t){for(var n=this,i=null,r=!t&&!this._options.rotated||t&&this._options.rotated,a=r?"vy":"vx",s=r?"y":"x",l=r?"vx":"vy",u=r?"x":"y",c=t?n.getValueAxis():n.getArgumentAxis(),d=c.getVisibleArea(),h=this.getNearestPointsByCoord(e,t),f=function(t){var n=h[t];if(1===n.length)d[0]<=n[0][l]&&d[1]>=n[0][l]&&(i=n[0][l]);else{var r=o(e,n[0][a],n[1][s],n[2][s],n[3][a]);r.forEach(function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*n[0][l]+3*Math.pow(1-e,2)*e*n[1][u]+3*(1-e)*e*e*n[2][u]+e*e*e*n[3][l];d[0]<=t&&d[1]>=t&&(i=t)}})}if(null!==i)return"break"},p=0;p0?n._segments.reduce(function(e,t){return e.concat(t.line)},[]):[],u=[];return n.isVisible()&&s.length>0&&(s.length>1?n.findNeighborPointsByCoord(e,o,a.slice(0),s,function(e,t){var n=l.indexOf(e);u.push([e,l[n+1],l[n+2],t])}):s[0][o]===e&&u.push([s[0]])),u}}),t.polar.line=m({},l,y,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,r=[],o=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===g||this.valueAxisType===g)return b._prepareSegment.call(this,e);for(i=1;i=0?360-t:-t},_closeSegment:function(e){var t,n;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),e[e.length-1].angle!==t.angle&&(p(Math.round(e[e.length-1].angle))===p(Math.round(t.angle))?t.angle=e[e.length-1].angle:(n=e[e.length-1].angle-t.angle,t.angle=e[e.length-1].angle+this._getRemainingAngle(n)),e.push(t))},_getTangentPoints:function(e,t,n){var i,o=[],a=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/a;if(0===a)o=[t,e];else if(a>0)for(i=a;i>=0;i--)o.push(r(e,t,n,s,i));else for(i=0;i>=a;i--)o.push(r(e,t,n,s,a-i));return o}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t,n,i,r){return F.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:r(e.axisDivisionFactor||ye),minorAxisDivisionFactor:r(e.minorAxisDivisionFactor||be),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:e.workWeek&&e.workWeek[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function a(e,t,n){var i=e.getOptions();return(0,G.tick)(e,t,i.tick,i.grid,n,!1)}function s(e,t){var n=e.getOptions();return(0,G.tick)(e,t,n.minorTick,n.minorGrid)}function l(e,t,n){var i=e.getOptions();return(0,G.tick)(e,t,(0,M.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function u(e,t,n,i){(e||[]).forEach(function(e){return e[t](n,i)})}function c(e){u(e,"initCoords")}function d(e,t){u(e,"drawMark",t)}function h(e,t){u(e,"drawGrid",t)}function f(e,t,n){u(e,"updateTickPosition",t,n)}function p(e,t){u(e,"updateGridPosition",t)}function g(e){var t=e.length-1;for(t;t>=0&&_(e,t);t--);for(t=0;t1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},getAxisSharpDirection:function(){var e=this._options.position;return e===ce||e===he?1:-1},getSharpDirectionByCoords:function(e){var t=this._getCanvasStartEnd(),n=Math.max(t.start,t.end);return this.getRadius?0:n!==e[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return i.points?e._createPathElement(i.points,n,e.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(e){var t=this,n=this._isHorizontal,i=n?"x":"y",r=this._orthogonalPositions,o=r.start,a=r.end,s=t.borderOptions,l=n?he:ce,u=n?fe:de,c=t.getCanvas(),d={left:c.left,right:c.width-c.right,top:c.top,bottom:c.height-c.bottom},h=s.visible&&s[l]?d[l]:void 0,f=s.visible&&s[u]?d[u]:void 0,p=ue+h,g=f-ue;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]g?{points:null}:{points:n?null!==e[i]?[e[i],o,e[i],a]:null:null!==e[i]?[o,e[i],a,e[i]]:null}},_getConstantLinePos:function(e,t,n){var i=this._getTranslatedCoord(e);if(!(!(0,E.isDefined)(i)||ioe(t,n)))return i},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t,w(e,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(e,t,n,i,r){var o=i.font,a=i.cssClass;return this._renderer.text(e,t,n).css(te((0,M.extend)({},this._options.label.font,o))).attr({align:"center","class":a}).append(r)},_drawConstantLineLabels:function(e,t,n,i){var r=this,o=t.text,a=r._options,s=a.label;r._checkAlignmentConstantLineLabels(t),o=(0,E.isDefined)(o)?o:r.formatLabel(e,s);var l=r._getConstantLineLabelsCoords(n,t);return r._drawConstantLineLabelText(o,l.x,l.y,t,i)},_getStripPos:function(e,t,n,i,r){var o,a,s=!(!r.minVisible&&!r.maxVisible),l=(r.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]);if(!s&&(0,E.isDefined)(e)&&(0,E.isDefined)(t)){var u=this.parser(e),c=this.parser(t),d=(0,I.inArray)((0,E.isDefined)(u)?u.valueOf():void 0,l),h=(0,I.inArray)((0,E.isDefined)(c)?c.valueOf():void 0,l);if(d===-1||h===-1)return{from:0,to:0,outOfCanvas:!0};if(d>h){var f=t;t=e,e=f}}(0,E.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),o=this._getTranslatedCoord(e,-1)):o=n,(0,E.isDefined)(t)?(t=this.validateUnit(t,"E2105","strip"),a=this._getTranslatedCoord(t,1)):a=i;var p=o=g[1]&&p.to>=g[1])&&(p.outOfCanvas=!0),p},_getStripGraphicAttributes:function(e,t){var n,i,r,o,a=this._orthogonalPositions,s=a.start,l=a.end;return this._isHorizontal?(n=e,i=ae(s,l),r=t-e,o=re(s-l)):(n=ae(s,l),i=e,r=re(s-l),o=re(e-t)),{x:n,y:i,width:r,height:o}},_createStrip:function(e){return this._renderer.rect(e.x,e.y,e.width,e.height)},_adjustStripLabels:function(){var e=this;this._strips.forEach(function(t){t.label&&t.label.attr(e._getAdjustedStripLabelCoords(t))})},_adjustLabelsCoord:function(e,t,n){var i=this;i._majorTicks.forEach(function(r){r.label&&r.label.attr(i._getLabelAdjustedCoord(r,e+(r.labelOffset||0),t,n))})},_adjustLabels:function(e){var t=this,n=t._majorTicks.reduce(function(e,t){if(!t.label)return e;var n=t.labelRotationAngle?A.default.rotateBBox(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:oe(e.width||0,n.width),height:oe(e.height||0,n.height),offset:oe(e.offset||0,t.labelOffset||0)}},{}),i=t._isHorizontal?n.height:n.width;return t._adjustLabelsCoord(e,n.width),e+i+(i&&t._options.label.indentFromAxis)+n.offset},_getLabelAdjustedCoord:function(e,t,n){t=t||0;var i,r,o=this,a=o._options,s=A.default.rotateBBox(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle||0),l=a.position,u=e.labelAlignment||a.label.alignment,c="discrete"===o._options.type,d=e.labelRotationAngle%90===0,h=a.label.indentFromAxis,f=o._axisPosition,p=e.labelCoords,g=p.x;return o._isHorizontal?(r=l===de?f+h-s.y+t:f-h-(s.y+s.height)-t,i=u===fe?c&&d?e.coords.x-(s.x+s.width):g-s.x-s.width:u===he?c&&d?g-s.x-(e.coords.x-g):g-s.x:g-s.x-s.width/2):(r=p.y-s.y-s.height/2,l===he?(i=u===he?f-h-n-s.x:u===pe?f-h-n/2-s.x-s.width/2:f-h-s.x-s.width,i-=t):(i=u===fe?f+h+n-s.x-s.width:u===pe?f+h+n/2-s.x-s.width/2:f+h-s.x,i+=t)),{translateX:i,translateY:r}},_createAxisConstantLineGroups:function(){var e=this,t=e._renderer,n=e._axisCssPrefix,i=n+"constant-lines",r=t.g().attr({"class":i}),o=t.g().attr({"class":i}),a=t.g().attr({"class":i});return{inside:r,outside1:o,left:o,top:o,outside2:a,right:a,bottom:a,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var e=this,t=e._renderer,n=e._axisCssPrefix;e._axisGroup=t.g().attr({"class":n+"axis"}),e._axisStripGroup=t.g().attr({"class":n+"strips"}),e._axisGridGroup=t.g().attr({"class":n+"grid"}),e._axisElementsGroup=t.g().attr({"class":n+"elements"}).append(e._axisGroup),e._axisLineGroup=t.g().attr({"class":n+"line"}).append(e._axisGroup),e._axisTitleGroup=t.g().attr({"class":n+"title"}).append(e._axisGroup),e._axisConstantLineGroups={above:e._createAxisConstantLineGroups(),under:e._createAxisConstantLineGroups()},e._axisStripLabelGroup=t.g().attr({"class":n+"axis-labels"})},_clearAxisGroups:function(){var e=this;e._axisGroup.remove(),e._axisStripGroup.remove(),e._axisStripLabelGroup.remove(),e._axisConstantLineGroups.above.remove(),e._axisConstantLineGroups.under.remove(),e._axisGridGroup.remove(),e._axisTitleGroup.clear(),e._axisElementsGroup.clear(),e._axisLineGroup&&e._axisLineGroup.clear(),e._axisStripGroup&&e._axisStripGroup.clear(),e._axisGridGroup&&e._axisGridGroup.clear(),e._axisConstantLineGroups.above.clear(),e._axisConstantLineGroups.under.clear(),e._axisStripLabelGroup&&e._axisStripLabelGroup.clear()},_getLabelFormatObject:function(e,t,n,i,r,o){n=n||this._getViewportRange();var a={value:e,valueText:(0,k.smartFormatter)(e,{labelOptions:t,ticks:o||ee(this._majorTicks),tickInterval:(0,E.isDefined)(r)?r:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:n.minVisible,max:n.maxVisible};return i&&(a.point=i),a},formatLabel:function(e,t,n,i,r,o){var a=this._getLabelFormatObject(e,t,n,i,r,o);return(0,E.isFunction)(t.customizeText)?t.customizeText.call(a,a):a.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,E.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,k.formatRange)(e,t,n,this.getOptions())},_setTickOffset:function(){var e=this._options,t=e.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==t||!t)},getMargins:function(){var e=this,t=e._options,n=t.position,i=t.placeholderSize,r=e.getCanvas(),o=r.left,a=r.top,s=r.width-r.right,l=r.height-r.bottom,u=oe(t.grid.visible&&t.grid.width||0,t.tick.visible&&t.tick.width||0),c=e._axisConstantLineGroups.above,d=e._axisConstantLineGroups.under,h=[e._axisElementsGroup,c.outside1,c.outside2,d.outside1,d.outside2,e._axisLineGroup].map(function(e){return e&&e.getBBox()}).concat(function(t){var n=t&&t.getBBox();return!n||n.isEmpty?n:(e._isHorizontal?(n.x=o,n.width=s-o):(n.y=a,n.height=l-a),n)}(e._axisTitleGroup)),f=ke(h,r);return f[n]+=t.crosshairMargin,i&&(f[n]=i),u&&(e._isHorizontal&&r.righto.startValue));var c=l?a.startValue:s.minVisible,d=u?a.endValue:s.maxVisible;if(i){var h=A.default.getCategoriesInfo(r,o.startValue,o.endValue);r=h.categories,s.categories=r}else s.min=(0,E.isDefined)(o.startValue)?o.startValue:s.min,s.max=(0,E.isDefined)(o.endValue)?o.endValue:s.max;var f=A.default.adjustVisualRange({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:l?a.startValue:void 0,endValue:u?a.endValue:void 0,length:a.length},{categories:r,min:o.startValue,max:o.endValue},{categories:r,min:c,max:d});return s.minVisible=f.startValue,s.maxVisible=f.endValue,!(0,E.isDefined)(s.min)&&(s.min=s.minVisible),!(0,E.isDefined)(s.max)&&(s.max=s.maxVisible),s.addRange({}),s},adjustRange:function(e){e=e||{};var t=this._options.type===D.default.discrete,n=this._options.type===D.default.logarithmic;if(n&&(e.startValue=e.startValue<=0?null:e.startValue,e.endValue=e.endValue<=0?null:e.endValue),!t&&(0,E.isDefined)(e.startValue)&&(0,E.isDefined)(e.endValue)&&e.startValue>e.endValue){var i=e.endValue;e.endValue=e.startValue,e.startValue=i}return e},_getVisualRangeUpdateMode:function(e,t,n){var i=this._options.visualRangeUpdateMode,r=this._translator,o=this._seriesData;if(this.isArgumentAxis){if([_e,ge,me].indexOf(i)===-1)if(o.axisType===D.default.discrete){var a=o.categories,s=t.categories,l=this.visualRange();i=a&&s&&a.length&&s.map(function(e){return e.valueOf()}).join(",").indexOf(a.map(function(e){return e.valueOf()}).join(","))!==-1&&(l.startValue.valueOf()!==a[0].valueOf()||l.endValue.valueOf()!==a[a.length-1].valueOf())?ge:me}else{var u=r.translate(o.min),c=r.translate(e.startValue),d=r.translate(o.max),h=r.translate(e.endValue);i=u===c&&d===h?me:u!==c&&d===h?_e:ge}}else[ge,me].indexOf(i)===-1&&(i=n===ge?ge:me);return i},_handleBusinessRangeChanged:function(e,t,n){var i=this,r=this.visualRange();if(!t&&!i._translator.getBusinessRange().isEmpty()){var o=i._lastVisualRangeUpdateMode=i._getVisualRangeUpdateMode(r,n,e);if(!i.isArgumentAxis){var a=i.getViewport();(0,E.isDefined)(a.startValue)||(0,E.isDefined)(a.endValue)||(0,E.isDefined)(a.length)||(o=me)}i._prevDataWasEmpty&&(o=ge),o===ge&&i._setVisualRange([r.startValue,r.endValue]),o===me&&i._setVisualRange([null,null]),o===_e&&i._setVisualRange({length:i.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t,n=e||this._translator.getBusinessRange(),i=this._options,r=i.type,o=i.logarithmBase;if(r===D.default.logarithmic)t=(0,j.adjust)(A.default.getLog(n.maxVisible/n.minVisible,o));else if(r===D.default.discrete){var a=A.default.getCategoriesInfo(n.categories,n.minVisible,n.maxVisible);t=a.categories.length}else t=n.maxVisible-n.minVisible;return t},getVisualRangeCenter:function(e){var t,n=this._translator.getBusinessRange(),i=e||n,r=this._options,o=r.type,a=r.logarithmBase;if((0,E.isDefined)(i.minVisible)&&(0,E.isDefined)(i.maxVisible)){if(o===D.default.logarithmic)t=A.default.raiseTo((0,j.adjust)(A.default.getLog(i.maxVisible*i.minVisible,a))/2,a);else if(o===D.default.discrete){var s=A.default.getCategoriesInfo(i.categories,i.minVisible,i.maxVisible),l=Math.ceil(s.categories.length/2)-1;t=n.categories.indexOf(s.categories[l])}else t=(i.maxVisible.valueOf()+i.minVisible.valueOf())/2;return t}},setBusinessRange:function(e,t,n,i){var r=this,o=r._options,a=o.type===D.default.discrete;r._handleBusinessRangeChanged(n,t,e),r._seriesData=new N.Range(e);var s=r._seriesData.isEmpty();if(r._prevDataWasEmpty=s,r._seriesData.addRange({categories:o.categories,dataType:o.dataType,axisType:o.type,base:o.logarithmBase,invert:o.inverted}),!a){if(!(0,E.isDefined)(r._seriesData.min)&&!(0,E.isDefined)(r._seriesData.max)){var l=r.getViewport();l&&r._seriesData.addRange({min:l.startValue,max:l.endValue})}var u=o.synchronizedValue;(0,E.isDefined)(u)&&r._seriesData.addRange({min:u,max:u})}r._seriesData.minVisible=void 0===r._seriesData.minVisible?r._seriesData.min:r._seriesData.minVisible,r._seriesData.maxVisible=void 0===r._seriesData.maxVisible?r._seriesData.max:r._seriesData.maxVisible,!r.isArgumentAxis&&o.showZero&&r._seriesData.correctValueZeroLevel(),r._seriesData.sortCategories(r.getCategoriesSorter(i)),r._seriesData.breaks=r._breaks=r._getScaleBreaks(o,r._seriesData,r._series,r.isArgumentAxis),r._translator.updateBusinessRange(r.adjustViewport(r._seriesData))},_addConstantLinesToRange:function(e,t,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(function(i){if(i.options.extendAxis){var o,a=i.getParsedValue();e.addRange((o={},r(o,t,a),r(o,n,a),o))}})},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,r=e._axisPosition;return n===ce||n===he?r-i:r+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,E.isDefined)(e)?this.formatLabel(e,(0,M.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,r=n._options,o=r.customBoundTicks,a=t.minVisible,s=t.maxVisible,l=r.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},u=[];return r.type===D.default.discrete?n._tickOffset&&0!==e.length&&(u=[e[0],e[e.length-1]]):o?(l.min&&(0,E.isDefined)(o[0])&&u.push(o[0]),l.max&&(0,E.isDefined)(o[1])&&u.push(o[1])):(l.min&&(0===i||e[0]>a)&&u.push(a),l.max&&(0===i||e[i-1]o.max?o.max:y;var x=n._getScaleBreaks(i,{minVisible:v,maxVisible:y},n._series,n.isArgumentAxis);u=f(p,!1,v,y,x).ticks}}return n._aggregationInterval=p,{interval:p,ticks:u}},createTicks:function(e){var t=this,n=t._renderer,i=t._options;if(e){t._isSynchronized=!1,t.updateCanvas(e),t._estimatedTickInterval=t._getTicks(t.adjustViewport(this._seriesData),U.noop,!0).tickInterval;var r=t._getViewportRange(),o=this._calculateValueMargins();r.addRange({minVisible:o.minValue,maxVisible:o.maxValue,isSpacedMargin:o.isSpacedMargin,checkMinDataVisibility:!this.isArgumentAxis&&o.checkInterval&&!(0,E.isDefined)(i.min)&&o.minValue.valueOf()>0,checkMaxDataVisibility:!this.isArgumentAxis&&o.checkInterval&&!(0,E.isDefined)(i.max)&&o.maxValue.valueOf()<0});var u=t._createTicksAndLabelFormat(r),c=t._getBoundaryTicks(u.ticks,t._getViewportRange());i.showCustomBoundaryTicks&&c.length?(t._boundaryTicks=[c[0]].map(l(t,n,!0)),c.length>1&&(t._boundaryTicks=t._boundaryTicks.concat([c[1]].map(l(t,n,!1))))):t._boundaryTicks=[];var d=(u.minorTicks||[]).filter(function(e){return!c.some(function(t){return b(t)===b(e)})});t._tickInterval=u.tickInterval,t._minorTickInterval=u.minorTickInterval;var h=t._majorTicks||[],f=h.reduce(function(e,t){return e[t.value.valueOf()]=t,e},{}),p=(0,E.type)(u.ticks[0])===(0,E.type)(h[0]&&h[0].value),g=t._getSkippedCategory(u.ticks),_=u.ticks.map(function(e){var i=f[e.valueOf()];return i&&p?(delete f[e.valueOf()],i.setSkippedCategory(g),i):a(t,n,g)(e)});t._majorTicks=_;var m=t._minorTicks||[];t._minorTicks=d.map(function(e,i){var r=m[i];return r?(r.updateValue(e),r):s(t,n)(e)}),t._ticksToRemove=Object.keys(f).map(function(e){return f[e]}).concat(m.slice(t._minorTicks.length,m.length)),t._correctedBreaks=u.breaks,t._reinitTranslator(t._getViewportRange())}},_reinitTranslator:function(e){var t=this,n=t._translator;t._correctedBreaks&&(e.breaks=t._correctedBreaks),t._isSynchronized||n.updateBusinessRange(t.adjustViewport(e))},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(e){this._marginOptions=e},getMarginOptions:function(){return(0,E.isDefined)(this._marginOptions)?this._marginOptions:{}},allowToExtendVisualRange:function(e){var t=this.adjustRange(ne(this._options.wholeRange)),n=e?t.endValue:t.startValue;return!this.isArgumentAxis||!(0,E.isDefined)(n)&&this.isExtremePosition(e)},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,E.isDefined)(e)&&n.push(t?(0,W.dateToMilliseconds)(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,E.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(ae.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*Ce.day,i=Ce.week-n;if(n!==e&&i=e?Ce.day:e-i*r}else i>=e&&e>Ce.day&&(e=Ce.day)}return e},_calculateValueMargins:function(e){function t(e){var t=f.ratioOfCanvasRange();return t/(t*c/(e+c))}function n(e,n){var i=re(w.start-e),r=re(w.end-n),o=t(i+r);_=i/o,m=r/o}this._resetMargins();var i,r=this,o=r.getMarginOptions(),a=(o.size||0)/2,s=r._options,l=this._getViewportRange(),u=this.getViewport(),c=r._getScreenDelta(),d=(s.type||"").indexOf(D.default.discrete)!==-1,h=s.valueMarginsEnabled&&!d,f=r._translator,p=s.minValueMargin,g=s.maxValueMargin,_=0,m=0,v=0;if(l.stubData||!c)return{startPadding:0,endPadding:0};if(r.isArgumentAxis&&o.checkInterval){i=r._calculateRangeInterval(l.interval);var y=f.getInterval(i);isFinite(y)?v=Math.ceil(y/(2*t(y))):i=0}var b,x,S=c*Se/2;h&&((0,E.isDefined)(p)?b=isFinite(p)?p:0:(_=Math.max(a,v),_=Math.min(S,_)),(0,E.isDefined)(g)?x=isFinite(g)?g:0:(m=Math.max(a,v),m=Math.min(S,m)));var C=o.percentStick&&!this.isArgumentAxis;C&&(1===re(l.max)&&(m=0),1===re(l.min)&&(_=0));var w=r._getCanvasStartEnd(),k=1+(b||0)+(x||0),T=(c-_-m)/k||c;void 0===b&&void 0===x||(void 0!==b&&(_=T*b),void 0!==x&&(m=T*x));var A,O;if(s.type!==D.default.discrete&&e&&e.length>1&&!s.skipViewportExtending&&!u.action&&s.endOnTick!==!1){var M=e.length,I=f.translate(e[0].value),P=f.translate(e[M-1].value),L=I>P?-1:1,R=oe(L*(w.start-I),0),V=oe(L*(P-w.end),0);if(R>_||V>m){var B=V+R,F=t(B);R>=_&&(A=e[0].value),V>=m&&(O=e[M-1].value),_=oe(R,_)/F,m=oe(V,m)/F}}return b=void 0===b?_/T:b,x=void 0===x?m/T:x,d||(this._translator.isInverted()?(A=(0,E.isDefined)(A)?A:f.from(w.start+c*b,-1),O=(0,E.isDefined)(O)?O:f.from(w.end-c*x,1)):(A=(0,E.isDefined)(A)?A:f.from(w.start-c*b,-1),O=(0,E.isDefined)(O)?O:f.from(w.end+c*x,1))),r.isArgumentAxis||(A*l.min<=0&&A*l.minVisible<=0&&(n(f.translate(0),f.translate(O)),A=0),O*l.max<=0&&O*l.maxVisible<=0&&(n(f.translate(A),f.translate(0)),O=0)),{startPadding:this._translator.isInverted()?m:_,endPadding:this._translator.isInverted()?_:m,minValue:A,maxValue:O,interval:i,isSpacedMargin:_===m&&0!==_}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,M.extend)({},this._canvas,{startPadding:e.startPadding,endPadding:e.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(e.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:e.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){ var e=this,t=(this._options.constantLines||[]).map(function(t){return(0,Z.default)(e,t)});this._outsideConstantLines=t.filter(function(e){return"outside"===e.labelPosition}),this._insideConstantLines=t.filter(function(e){return"inside"===e.labelPosition})},draw:function(e,t){var n=this,i=this._options;n.borderOptions=t||{visible:!1},n._resetMargins(),n.createTicks(e),n.applyMargins(),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._axisGroup.append(n._axesContainerGroup),n._drawAxis(),n._drawTitle(),d(n._majorTicks,i.tick),d(n._minorTicks,i.minorTick),d(n._boundaryTicks,i.tick);var r=n._getGridLineDrawer();h(n._majorTicks,r),h(n._minorTicks,r),u(n._majorTicks,"drawLabel",n._getViewportRange()),n._majorTicks.forEach(function(e){e.labelRotationAngle=0,e.labelAlignment=void 0,e.labelOffset=0}),u(n._outsideConstantLines.concat(n._insideConstantLines),"draw"),u(n._strips,"draw"),n._dateMarkers=n._drawDateMarkers()||[],n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.above.inside.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside1.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside2.append(n._constantLinesGroup.above),n._axisConstantLineGroups.under.inside.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside1.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside2.append(n._constantLinesGroup.under)),n._measureTitle(),we(n._majorTicks);var o,a,s,l=n._tickInterval;(0,E.isDefined)(l)&&(s=n.getTranslator().getInterval("datetime"===i.dataType?(0,W.dateToMilliseconds)(l):l)),n._isHorizontal?(o=s,a=i.placeholderSize):(o=i.placeholderSize,a=s);var f=n._validateDisplayMode(i.label.displayMode),p=n._validateOverlappingMode(i.label.overlappingBehavior,f),g=i.label.wordWrap||"none",_=i.label.textOverflow||"none";if(("none"!==g||"none"!==_)&&f!==ve&&p!==ve&&"auto"!==p){var m=!1,v=!1;o&&n._majorTicks.some(function(e){return e.labelBBox.width>o})&&(m=!0),a&&n._majorTicks.some(function(e){return e.labelBBox.height>a})&&(v=!0),(m||v)&&(n._majorTicks.forEach(function(e){e.label&&e.label.setMaxSize(o,a,i.label)}),we(n._majorTicks))}we(n._outsideConstantLines),we(n._insideConstantLines),we(n._strips),we(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var y=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),y=n._adjustLabels(y)),y=n._adjustDateMarkers(y),n._adjustTitle(y)},_measureTitle:U.noop,animate:function(){u(this._majorTicks,"animateLabels")},updateSize:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(e),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var r=!i._firstDrawing&&t,o=this._options;c(i._majorTicks),c(i._minorTicks),c(i._boundaryTicks),g(i._majorTicks),g(i._minorTicks),g(i._boundaryTicks),this._axisElement&&i._updateAxisElementPosition(),f(i._majorTicks,o.tick,r),f(i._minorTicks,o.minorTick,r),f(i._boundaryTicks,o.tick),u(i._majorTicks,"updateLabelPosition",r),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach(function(e){return e.updatePosition(r)}),u(i._strips,"updatePosition",r),p(i._majorTicks,r),p(i._minorTicks,r),r&&u(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1)},prepareAnimation:function(){var e=this,t="saveCoords";u(e._majorTicks,t),u(e._minorTicks,t),u(e._insideConstantLines,t),u(e._outsideConstantLines,t),u(e._strips,t)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},_mergeViewportOptions:function(){var e=this,t=e._options,n={},i=t._customVisualRange;n=!(0,E.isDefined)(t.max)&&!(0,E.isDefined)(t.min)||(0,E.isDefined)(i.startValue)||(0,E.isDefined)(i.endValue)||(0,E.isDefined)(i.length)?i:{startValue:t.min,endValue:t.max},e._setVisualRange(n)},_validateVisualRange:function(e){var t=ne(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),C(t,e)},_validateOptions:function(e){var t=this;void 0!==e.min&&(e.min=t.validateUnit(e.min,"E2106")),void 0!==e.max&&(e.max=t.validateUnit(e.max,"E2106")),e.wholeRange=t._validateVisualRange(e.wholeRange),e.visualRange=e._customVisualRange=t._validateVisualRange(e._customVisualRange),t._mergeViewportOptions()},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?V.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,e._validateOptions(t)},resetVisualRange:function(e){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!e,end:!!e})},_applyZooming:function(e,t){var n=this;n._resetVisualRangeOption(),n._setVisualRange(e,t);var i=n.getViewport();n._breaks=n._getScaleBreaks(n._options,{minVisible:i.startValue,maxVisible:i.endValue},n._series,n.isArgumentAxis),n._translator.updateBusinessRange(n._getViewportRange())},getZoomStartEventArg:function(e,t){return{axis:this,range:this.visualRange(),cancel:!1,event:e,actionType:t}},getZoomEndEventArg:function(e,t,n,i,r){var o=this.visualRange();return{axis:this,previousRange:e,range:o,cancel:!1,event:t,actionType:n,zoomFactor:i,shift:r,rangeStart:o.startValue,rangeEnd:o.endValue}},getZoomBounds:function(){var e=A.default.getVizRangeObject(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:x(this._initRange.startValue,t.min),endValue:x(this._initRange.endValue,t.max)};return{startValue:x(e.startValue,n.startValue),endValue:x(e.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption:function(){this._options._customVisualRange={}},setCustomVisualRange:function(e){this._options._customVisualRange=e},visualRange:function e(){var e,t=this,n=arguments;if(0===n.length){var i=t._getAdjustedBusinessRange(),r=i.minVisible,o=i.maxVisible;return t._options.type===D.default.discrete?(r=(0,E.isDefined)(r)?r:i.categories[0],o=(0,E.isDefined)(o)?o:i.categories[i.categories.length-1],{startValue:r,endValue:o,categories:A.default.getCategoriesInfo(i.categories,r,o).categories}):{startValue:r,endValue:o}}e=se(n[0])?n[0]:(0,E.isPlainObject)(n[0])?(0,M.extend)({},n[0]):[n[0],n[1]];var a=t.handleZooming(e,n[1]);a.isPrevented||t._visualRange(t,a)},handleZooming:function(e,t,n,i){var r=this;t=t||{},(0,E.isDefined)(e)&&(e=r._validateVisualRange(e),e.action=i);var o=r.getZoomStartEventArg(n,i),a=o.range;!t.start&&r._eventTrigger("zoomStart",o);var s={isPrevented:o.cancel,skipEventRising:t.skipEventRising,range:e||o.range};return o.cancel||((0,E.isDefined)(e)&&r._applyZooming(e,t.allowPartialUpdate),(0,E.isDefined)(r._storedZoomEndParams)||(r._storedZoomEndParams={startRange:a,type:this.getOptions().type}),r._storedZoomEndParams.event=n,r._storedZoomEndParams.action=i,r._storedZoomEndParams.prevent=!!t.end),s},handleZoomEnd:function(){var e=this;if((0,E.isDefined)(e._storedZoomEndParams)&&!e._storedZoomEndParams.prevent){var t=e._storedZoomEndParams.startRange,n=e._storedZoomEndParams.event,i=e._storedZoomEndParams.action,r={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},o=e.getOptions().type===e._storedZoomEndParams.type,a=o?(0,j.adjust)(e.getVisualRangeCenter()-e.getVisualRangeCenter(r)):NaN,s=o?+(Math.round(e.getVisualRangeLength(r)/e.getVisualRangeLength()+"e+2")+"e-2"):NaN,l=e.getZoomEndEventArg(t,n,i,s,a);l.cancel=e.isZoomingLowerLimitOvercome(1===s?"pan":"zoom",s),e._eventTrigger("zoomEnd",l),l.cancel&&e.restorePreviousVisualRange(t),e._storedZoomEndParams=null}},restorePreviousVisualRange:function(e){var t=this;t._storedZoomEndParams=null,t._applyZooming(e),t._visualRange(t,e)},isZoomingLowerLimitOvercome:function(e,t,n){var i,r=this,o=r._options,a=o.minVisualRangeLength,s="zoom"===e&&t>=1,l=r._translator.getBusinessRange();(0,E.isDefined)(n)&&(i=r.adjustRange(A.default.getVizRangeObject(n)),i={minVisible:i.startValue,maxVisible:i.endValue,categories:l.categories});var u=r.getVisualRangeLength(i);if("discrete"!==o.type)if((0,E.isDefined)(a))"datetime"!==o.dataType||(0,E.isNumeric)(a)||(a=(0,W.dateToMilliseconds)(a)),s&=a>=u;else{var c=r._translator.canvasLength,d={minVisible:l.min,maxVisible:l.max,categories:l.categories};s&=r.getVisualRangeLength(d)/c>=u}else!(0,E.isDefined)(a)&&(a=1),s&=(0,E.isDefined)(n)&&r.getVisualRangeLength()===a&&u<=a;return!!s},dataVisualRangeIsReduced:function(){var e,t,n=this.getTranslator();if("discrete"===this._options.type){var i=n.getBusinessRange().categories;e=i[0],t=i[i.length-1]}else{var r=this._seriesData;e=r.min,t=r.max}if(!(0,E.isDefined)(e)||!(0,E.isDefined)(t))return!1;var o=n.translate(e),a=n.translate(t),s=[Math.min(o,a),Math.max(o,a)],l=this.visualRange(),u=n.translate(l.startValue),c=n.translate(l.endValue);return u>s[0]&&us[0]&&c1&&e.some(s)&&r._applyLabelMode(t,n,e,i),r._checkBoundedLabelsOverlapping(a,e,t)}},_applyLabelMode:function(e,t,n,i,r){var o,a,s=this,l=s._majorTicks,u=s._options.label,c=i.rotationAngle;switch(e){case ve:u.userAlignment||(o=c<0?fe:he,c%90===0&&(o=pe)),t=r?t:s._getStep(n,c),a=function(e){e.label.rotate(c),e.labelRotationAngle=c,o&&(e.labelAlignment=o)},y(l,t,a);break;case"stagger":var d=s._getMaxLabelHeight(n,i.staggeringSpacing);a=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=d)},y(l,t-1,a);break;case"auto":case"_auto":2===t?s._applyLabelMode("stagger",t,n,i):s._applyLabelMode(ve,t,n,{rotationAngle:v(n,u)});break;default:y(l,t)}},getMarkerTrackers:U.noop,_drawDateMarkers:U.noop,_adjustDateMarkers:U.noop,coordsIn:U.noop,areCoordsOutsideAxis:U.noop,_getSkippedCategory:U.noop,_initAxisPositions:U.noop,_drawTitle:U.noop,_updateTitleCoords:U.noop,_adjustConstantLineLabels:U.noop,_createTranslator:function(){return new H.default.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:e.semiDiscreteInterval,stick:this._getStick(),breaksSize:e.breakStyle?e.breakStyle.width:0}},getVisibleArea:function(){var e=this._getCanvasStartEnd();return[e.start,e.end].sort(function(e,t){return e-t})},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas||{},n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this,t=e._getCanvasStartEnd(),n=e._breaks,i=n?n.length:0,r=re(t.start-t.end);return r-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:U.noop,_checkTitleOverflow:U.noop,getSpiderTicks:U.noop,setSpiderTicks:U.noop,_checkBoundedLabelsOverlapping:U.noop,drawScaleBreaks:U.noop,_visualRange:U.noop,_rotateConstantLine:U.noop,applyVisualRangeSetter:U.noop,getCategoriesSorter:function(e){var t;if(this.isArgumentAxis)t=e;else{var n=this._options.categoriesSortingMethod;t=(0,E.isDefined)(n)?n:this._options.categories}return t},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(e,t,n){function i(e,t){return null===e?e:E(e)?O(e):t}function r(e){return S(e)?e:C(e)?[e]:null}function o(e){return e?e.value:null}function a(e,t,n){for(var r=e[t],a=S(n)?k(n,o):[],s=0,l=a.length,u=[];s0&&n.width>0,r=e.minorTick,o=r.visible&&r.length>0&&r.width>0,a=e.label,s=Number(a.indentFromTick);if(!i&&!o&&!a.visible)return{};var l=t._scale.measureLabels(b({},t._canvas)),u=t._getScaleLayoutValue(),c={min:u,max:u},d=t._getTicksCoefficients(e),h=d.inner,f=d.outer;return i&&(c.min=D(c.min,u-h*n.length),c.max=M(c.max,u+f*n.length)),o&&(c.min=D(c.min,u-h*r.length),c.max=M(c.max,u+f*r.length)),a.visible&&t._correctScaleIndents(c,s,l),c},_renderContent:function(){var e=this,t=e._prepareScaleSettings();e._rangeContainer.render(I(e._getOption("rangeContainer"),{vertical:e._area.vertical})),e._renderScale(t);var n=k([e._rangeContainer].concat(e._prepareValueIndicators()),function(e){return e&&e.enabled?e:null});e._applyMainLayout(n,e._measureScale(t)),P(n,function(t,n){n.resize(e._getElementLayout(n.getOffset()))}),e._shiftScale(e._getElementLayout(0),t),e._beginValueChanging(),e._updateActiveElements(),e._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=b(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=x(t)&&x(t.tickInterval)&&!x(t.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||e._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||F,n.numberMultipliers=z,n.tickOrientation=e._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],r=n[1],o=t._translator.getCodomain(),a=i>r,s=D(i,r),l=M(i,r);e.min=s,e.max=l,e.startAngle=R-o[0],e.endAngle=R-o[1],e.skipViewportExtending=!0,t._scale.updateOptions(e),t._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:s,max:l,invert:a}),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._scale.draw(b({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=E(t._translator.translate(e.baseValue))?O(e.baseValue):t._baseValue,e.vertical=t._area.vertical,e.text&&!e.text.format&&(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),r=T(e.type||n._themeManager.theme(t)),o=I(!0,{},i._default,i[r],e);return o.type=r,o.animation=n._animationSettings,o.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(o),o},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._renderer.root;return new _({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e=this,t=e._subvalueIndicatorsSet,n=e._prepareIndicatorSettings(e.option("subvalueIndicator")||{},"subvalueIndicatorType");t||(t=e._subvalueIndicatorsSet=e._createSubvalueIndicatorsSet());var i=n.type!==t.type;t.type=n.type;var r=e._createIndicator(n.type,e._renderer.root);r&&(r.dispose(),t.render(n,i))},_setupValue:function(e){this.__value=i(e,this.__value)},_setupSubvalues:function(e){var t,n,o,a=void 0===e?this.__subvalues:r(e);if(null!==a){for(t=0,n=a.length,o=[];te){for(t=e,n=a;t2?Object.keys(r).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(r[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},a={y:function(e){return"[0-9]+"},M:o,L:o,Q:function(e,t){return e>2?t.getQuarterNames(r[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(r[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},u=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(r).map(function(i){var o=n.getMonthNames(r[i],t);return l(o,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},c={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(e,t,n){return t>2?n.getQuarterNames(r[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(r[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(r[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,n){var i=e.getHours(),r=n.h;void 0!==r&&r!==i&&i--,t||12!==i?t&&12!==i&&(i+=12):i=0,e.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},f=function(e,t){var n=e[t],i=0;do t++,i++;while(e[t]===n);return i},p=function(e,t){for(var n="",i=0;is)){var c=a.indexOf(e);if(c>=0){var h=n.patterns[c],f=i[c+1];m(o,h,f,t,u)}else v(o,e,r)}}),o}return null}};t.getParser=S,t.getRegExpInfo=g,t.getPatternSetters=_},function(e,t,n){var i=n(13).inArray,r=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return r.fire()},e.exports.hideCallback=r},function(e,t,n){var i=n(171),r=i.data=n(236);r.odata=n(490),e.exports=r},function(e,t,n){var i=n(37),r=n(10),o=n(7),a=o.getWindow(),s=n(1),l=n(83),u=n(173),c=n(217),d=function(e,t){return new h(e,t)},h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:r.getBody(),this.length=1,this):(t=t||r.getDocument(),"<"===e[0]?(this[0]=r.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,r.querySelectorAll(t,e)),this)):r.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):d(e.toArray?e.toArray():[e]):(this.length=0,this)};d.fn={dxRenderer:!0},h.prototype=d.fn;var f=function(e,t){for(var n=0;n1&&arguments.length>1)return f.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else p(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&r.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else r.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n=0)return!0}return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return f.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),o=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return f.call(this,e,arguments);var c=this[0];if(c){if(s.isWindow(c))return i?c["inner"+t]:r.getDocumentElement()["client"+t];if(r.isDocument(c)){var d=r.getDocumentElement(),h=r.getBody();return Math.max(h["scroll"+t],h["offset"+t],d["scroll"+t],d["offset"+t],d["client"+t]); }if(0===arguments.length||"boolean"==typeof l){var p={paddings:o||i,borders:i,margins:l};return u.getSize(c,n,p)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=a.getComputedStyle(c),_=u.getElementBoxParams(n,g),m="border-box"===g.boxSizing;l=Number(l),i?l-=m?0:_.border+_.padding:o?l+=m?_.border:-_.padding:m&&(l+=_.border+_.padding)}return l+=s.isNumeric(l)?"px":"",r.setStyle(c,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!c.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(c.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=c.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[r.createTextNode(e)]);for(var n=0;n1){for(var t=0;t1){for(var t=0;t1){for(var t=this.length-1;t>=0;t--)d(this[t]).prependTo(e);return this}return e=d(e),e[0]&&r.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?f.call(this,"appendTo",arguments):(r.insertElement(d(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&r.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&r.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&r.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&r.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=d(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},h.prototype.remove=function(){return this.length>1?f.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),r.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?f.call(this,"detach",arguments):(r.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?f.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),r.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t\x20\t\r\n\f]+)/i,a={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"",endTags:"
"},td:{tagsCount:3,startTags:"",endTags:"
"},col:{tagsCount:2,startTags:"",endTags:"
"},tr:{tagsCount:2,startTags:"",endTags:"
"}};a.tbody=a.colgroup=a.caption=a.tfoot=a.thead,a.th=a.td;var s=function(e){if("string"!=typeof e)return null;var t=r.createDocumentFragment(),n=t.appendChild(r.createElement("div")),s=o.exec(e),l=s&&s[1].toLowerCase(),u=a[l]||a.default;n.innerHTML=u.startTags+e+u.endTags;for(var c=0;c0?r.apply(void 0,arguments):e;return i.toFixed(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.toFixed=void 0;var a=n(28),s=10;t.toFixed=o},function(e,t,n){function i(e,t){for(;e.length0?"-":"+",a=Math.abs(r),s=Math.floor(a/60),l=a%60,u=i(s.toString(),2),c=i(l.toString(),2);return o+u+(t>=3?":":"")+(t>1||l?c:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":o.x(e,t,n)},Z:function(e,t,n){return o.X(e,t>=5?3:2,n)}},a=function(e,t){return function(n){var i,r,a,s,l=0,u="'",c=!1,d="";if(!n)return null;if(!e)return n;var h="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,i=e.fillPatternColor;return!(0,r.isDefined)(t)||(0,r.isDefined)(n)&&(0,r.isDefined)(i)?(0,r.isDefined)(n)&&(0,r.isDefined)(i)?{patternFill:{patternType:n,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,r.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=l.default.copy(e.patternFill))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&l.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,r.isDefined)(e)||l.default.isEmpty(e.patternFill)},toXml:function(e){return a.default.toXml("fill",{},l.default.toXml(e.patternFill))}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(75),a=i(o),s={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,r.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,r.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.rgb)&&!(0,r.isDefined)(e.theme)},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return a.default.toXml(e,{rgb:t.rgb,theme:t.theme})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(75),a=i(o),s=n(222),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,r.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:l.default.tryCreateTag(e.color)},u.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,r.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=l.default.copy(e.color))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&l.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.size)&&!(0,r.isDefined)(e.name)&&!(0,r.isDefined)(e.family)&&!(0,r.isDefined)(e.scheme)&&(!(0,r.isDefined)(e.bold)||!e.bold)&&(!(0,r.isDefined)(e.italic)||!e.italic)&&!(0,r.isDefined)(e.underline)&&l.default.isEmpty(e.color)},toXml:function(e){var t=[(0,r.isDefined)(e.bold)&&e.bold?a.default.toXml("b",{}):"",(0,r.isDefined)(e.size)?a.default.toXml("sz",{val:e.size}):"",(0,r.isDefined)(e.color)?l.default.toXml("color",e.color):"",(0,r.isDefined)(e.name)?a.default.toXml("name",{val:e.name}):"",(0,r.isDefined)(e.family)?a.default.toXml("family",{val:e.family}):"",(0,r.isDefined)(e.scheme)?a.default.toXml("scheme",{val:e.scheme}):"",(0,r.isDefined)(e.italic)&&e.italic?a.default.toXml("i",{}):"",(0,r.isDefined)(e.underline)?a.default.toXml("u",{val:e.underline}):""].join("");return a.default.toXml("font",{},t)}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){var i=(0,B.default)("")[0];return i.width=e+2*n,i.height=t+2*n,i.hidden=!0,i}function o(e,t){var n=e.toDataURL(t,ce),i=J.atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,r,o,a,s){var l=(e+n)/2,u=(t+i)/2,c=ae(t-i,e-n),d=o?1:-1;c+=90*(te/180)*(a?1:-1);var h=re(oe(n-e,2)+oe(i-t,2))/2,f=re(ie(oe(r,2)-oe(h,2))),p=l+d*(f*se(c)),g=u+d*(f*le(c)),_=ae(t-g,e-p),m=ae(i-g,n-p);s.arc(p,g,r,_,m,!a)}function s(e,t){var n,i=ge(e.attributes||{}),r=(0,W.extend)({},i,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),o=i.transform;return o&&(n=o.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.translateX=ue(n[0]),r.translateY=n[1]?ue(n[1]):0),n=o.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.rotationAngle=ue(n[0]),r.rotationX=n[1]&&ue(n[1]),r.rotationY=n[2]&&ue(n[2])),n=o.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.scaleX=ue(n[0]),n.length>1?r.scaleY=ue(n[1]):r.scaleY=r.scaleX)),d(e,r,t),r}function l(e,t){var n=t.x,i=t.y,r=t.width,o=t.height,a=t.rx;a?(a=ne(a,r/2,o/2),e.save(),e.translate(n,i),e.moveTo(r/2,0),e.arcTo(r,0,r,o,a),e.arcTo(r,o,0,o,a),e.arcTo(0,o,0,0,a),e.arcTo(0,0,a,0,a),e.lineTo(r/2,0),e.restore()):e.rect(n,i,r,o)}function u(e,t,n){var i=new Q.Deferred,r=new J.Image;return r.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,S(e,t),C(e,t,n),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore(),i.resolve()},r.onerror=function(){i.resolve()},r.setAttribute("crossOrigin","anonymous"),r.src=t.href||t["xlink:href"],i}function c(e,t){var n,i,r=t.replace(/,/g," ").split(/([A-Z])/i).filter(function(e){return""!==e.trim()}),o=0;do{var s=(r[o+1]||"").trim().split(" ");switch(r[o]){case"M":e.moveTo(ue(s[0]),ue(s[1])),o+=2;break;case"L":for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:new Q.Deferred;if(0===e.length)return i.resolve();var r=t(e[0]);return(0,H.isPromise)(r)?r.then(n):n(),i}function E(e,t,n,i){return A(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var r=(0,W.extend)({},n,s(e,i.rootAppended));t.save(),S(t,r),C(t,r,i);var o=function(){t.restore()},a=E(e.childNodes,t,r,i);return(0,H.isPromise)(a)?a.then(o):o(),a;case"defs":return E(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=T(e);break;case"lineargradient":i.gradients[e.attributes.id.textContent]=k(e);break;default:return y(e,t,n,i)}})}function O(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,j.map)(n,function(e){return ue(e)}),e.setLineDash(n))}function D(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(O(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function M(e,t,n){var i=s(t,n.rootAppended),o=r(i.width,i.height,0),a=o.getContext("2d");return E(t.childNodes,a,i,n),e.createPattern(o,"repeat")}function I(e,t,n){var i=t.fill;if(i&&"none"!==i){if(i.search(/url/)===-1)e.fillStyle=i;else{var r=n.patterns[h(i)];if(!r)return;e.fillStyle=M(e,r,n)}e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1}}function P(e,t,n,i,r){e.fillStyle=i||"#ffffff",e.fillRect(-r,-r,t+2*r,n+2*r)}function L(){var e=Y.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",e}function R(e,t,n,i,o){var a,s=r(t,n,o),l=s.getContext("2d"),u=G.default.getSvgElement(e),c=Y.default.isElementNode(e);return l.translate(o,o),Y.default.getBody().appendChild(s),c||(a=L(),a.appendChild(u),Y.default.getBody().appendChild(a)),u.attributes.direction&&(s.dir=u.attributes.direction.textContent),P(l,t,n,i,o),E(u.childNodes,l,{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:c&&q.default.contains(Y.default.getBody(),e)}).then(function(){return a&&Y.default.getBody().removeChild(a),Y.default.getBody().removeChild(s),s})}var V=n(2),B=i(V),F=n(90),z=i(F),H=n(1),N=n(186),G=i(N),j=n(3),W=n(0),U=n(10),Y=i(U),X=n(12),q=i(X),K=n(7),$=i(K),Z=n(33),Q=n(6),J=$.default.getWindow(),ee=Math,te=ee.PI,ne=ee.min,ie=ee.abs,re=ee.sqrt,oe=ee.pow,ae=ee.atan2,se=ee.cos,le=ee.sin,ue=Number,ce=1,de=.05,he="10px",fe="sans-serif",pe="#000",ge=function(e){var t,n={};return(0,j.each)(e,function(e,i){t=i.textContent,isFinite(t)&&(t=ue(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=t.width,r=t.height,a=t.backgroundColor;(0,H.isFunction)(t.__parseAttributesFn)&&(ge=t.__parseAttributesFn);var s=new Q.Deferred;return R(e,i,r,a,t.margin).then(function(e){s.resolve(o(e,n))}),s},getData:function(e,n){var i=this,r=new Q.Deferred;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format,o=(0,H.isFunction)(J.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e);r.resolve(o)}),r},_getBlob:function(e,t){for(var n=new Uint8Array(e.length),i=0;i-1&&r.splice(t,1)},u=function(e){r[o(e)]=e};a(e.dxpointerdown,s),a(e.dxpointermove,u),a(e.dxpointerup,l),a(e.dxpointercancel,l),this.pointers=function(){return r},this.reset=function(){r=[]}};e.exports=s},function(e,t,n){var i,r=n(0).extend,o=n(152),a=n(228),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},u=!1,c=function(){u||(i=new a(s,function(){return!0}),u=!0)},d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(r(l(e.originalEvent),e))}});d.map=s,d.normalize=l,d.activate=c,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(54),r=n(58).compare,o=n(125),a=n(79)();if(a&&r(i.fn.jquery,[1,10])<0)throw o.Error("E0012");n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459)},function(e,t,n){var i=n(25);e.exports=new i},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(21),r=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var r=t(n);if(r<1)throw i.Error("E0014");1===r?delete e[n]:e[n]=r-1},locked:function(e){return t(e)>0}}};e.exports=r},function(e,t,n){var i=n(42),r=n(4),o=n(1),a=r.getKeyHash,s=n(15),l=n(6).Deferred; e.exports=s.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:r.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function e(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,i=this.options.addedItems,o=this.options.removedItems,a=this.options.selectedItems,s=this.options.selectedItemKeys,e=this.options.onSelectionChanged||r.noop;this._clearItemKeys(),e({selectedItems:a,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:n,addedItems:i,removedItems:o})},equalKeys:function(e,t){return this.options.equalByReference&&o.isObject(e)&&o.isObject(t)?e===t:r.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n,r){var a=encodeURI(JSON.stringify(e)).length,s=this.options.maxFilterLengthInRequest&&a>this.options.maxFilterLengthInRequest,u=new l,c={filter:s?void 0:e,select:s?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?u.resolve([]):this.options.load(c).done(function(n){var a=o.isPlainObject(n)?n.data:n;t&&!r?a=a.filter(t):s&&(a=i(a).filter(e).toArray()),u.resolve(a)}).fail(u.reject.bind(u)),u},updateSelectedItemKeyHash:function(e){for(var t=0;t=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function r(e,t){var n={};for(var i in e)n[i]=e[i];for(var r in t)r in n?n[r]!==t[r]&&u.log("W4001",r):n[r]=t[r];return n}var o=n(1).isDefined,a=n(29),s=n(100),l=n(237),u=n(36).errors,c=n(42),d=n(91),h=n(239),f=n(6),p=f.when,g=f.Deferred;n(155);var _="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=d.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,o=e.keyType;if(o){var a="string"==typeof o;t||(t=a?_:Object.keys(o),this._legacyAnonymousKey=t),a&&(o=i(t,o)),n=r(n,o)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=s.generateExpand(this._version,t.expand,t.select)||void 0,n.$select=s.generateSelect(this._version,t.select)||void 0),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t;e=e||{};var n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes};if(t=o(e.urlOverride)?e.urlOverride:this._url,o(this._filterToLower)&&(n.filterToLower=this._filterToLower),e.customQueryParams){var i=h.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=h.formatFunctionInvocationUrl(t,i):n.params=i}return c(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new g;return p(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(a().useLegacyStoreResult?e:i||e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new g;return p(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(i){a().useLegacyStoreResult?n.resolve(e,t):n.resolve(i||t,e)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new g;return p(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var r=0;r4&&void 0!==arguments[4]?arguments[4]:function(){return 0},s=[],c={start:n?t.left:t.top,end:n?t.width-t.right:t.height-t.bottom},h=!1;if(e.forEach(function(e){e&&(h=h||e.series.isStackedSeries()||e.series.isFullStackedSeries(),e.getLabels().forEach(function(e){e.isVisible()&&s.push(new d(e,n,r))}))}),h)!n&&s.reverse();else{var f=s.slice();s.sort(function(e,t){return a(e,t)||e.getInitialPosition()-t.getInitialPosition()||f.indexOf(e)-f.indexOf(t)})}return!!o(s)&&(i(s,c),l(s),s.reverse(),u(s,c),!0)}function s(e,t,n){if(e&&t){var i=e.getBoundingRect(),r=t.getBoundingRect(),o=!n||(i.oppositeStart<=r.oppositeStart&&i.oppositeEnd>r.oppositeStart||r.oppositeStart<=i.oppositeStart&&r.oppositeEnd>i.oppositeStart);return i.end>r.start&&o}}function l(e){var t,n,i;for(t=0;ta.start-(a.end-t.end))){o.toChain(r),e[n]=r=null;break}r&&r.setRollingStockInCanvas(t)}}function c(e,t){return e&&e.getBoundingRect().end>t.end}function d(e,t,n){var i=e.getBoundingRect(),r=i.x,o=i.y,a=i.x+i.width,s=i.y+i.height;return this.labels=[e],this.shiftFunction=n,this._bBox={start:t?r:o,width:t?i.width:i.height,end:t?a:s,oppositeStart:t?o:r,oppositeEnd:t?s:a},this._initialPosition=t?i.x:i.y,this}function h(e){return{nameField:e+"Name",colorField:e+"Color",indexField:e+"Index"}}function f(e){var t=h(e);return{getFormatObject:function(e){var n={};return n[t.indexField]=e.id,n[t.colorField]=e.states.normal.fill,n[t.nameField]=e.text,n},textField:t.nameField}}function p(e,t){return(e.x<=t.x&&t.x<=e.x+e.width||e.x>=t.x&&e.x<=t.x+t.width)&&(e.y<=t.y&&t.y<=e.y+e.height||e.y>=t.y&&e.y<=t.y+t.height)}var g=n(4),_=g.noop,m=n(5),v=n(1),y=n(3),b=n(0).extend,x=n(13).inArray,S=n(8),C=n(97),w=n(20),k=n(206),T=n(269),A=n(271),E=n(403),O=n(404),D=n(782),M="_reinit",I="_updateDataSource",P="_dataInit",L="_forceRender",R="_resize",V=[M,I,P,L,R],B=n(11),F=B.map,z=y.each,H=y.reverseEach,N=b,G=Array.isArray,j=v.isDefined,W=B.setCanvasValues,U=.3,Y=["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"],X=["equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"],q=["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","zoomingMode","scrollingMode","stickyHovering"],K="font";d.prototype={toChain:function(e){var t=e.getBoundingRect();e.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(e.labels)},getBoundingRect:function(){return this._bBox},shift:function(e){var t=this.shiftFunction;z(this.labels,function(n,i){var r=i.getBoundingRect(),o=t(r,e);i.hideInsideLabel(o)||i.shift(o.x,o.y)}),this._bBox.end-=e,this._bBox.start-=e},setRollingStockInCanvas:function(e){this._bBox.end>e.end&&this.shift(this._bBox.end-e.end)},getLabels:function(){return this.labels},value:function(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var $={resolveLabelOverlappingInOneDirection:a},Z=C.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+K,"legend.title."+K,"legend.title.subtitle."+K,"commonSeriesSettings.label."+K],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.options=this.option(),e},_createThemeManager:function(){var e=this.option(),t=new E.ThemeManager(this._getThemeManagerOptions());return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new O.LayoutManager,e._createScrollBar(),m.on(e._$element,"contextmenu",function(e){(S.isTouchEvent(e)||S.isPointerEvent(e))&&e.preventDefault()}),m.on(e._$element,"MSHoldVisual",function(e){e.preventDefault()})},_getLayoutItems:_,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;W(e._canvas),e._reinitAxes(),e._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:_,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root,i=function(){return t.g().attr({"class":"dxc-constant-lines-group"}).linkOn(n,"constant-lines")};e._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},e._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(n),e._panesBackgroundGroup=t.g().attr({"class":"dxc-background"}).append(n),e._stripsGroup=t.g().attr({"class":"dxc-strips-group"}).linkOn(n,"strips"),e._gridGroup=t.g().attr({"class":"dxc-grids-group"}).linkOn(n,"grids"),e._panesBorderGroup=t.g().attr({"class":"dxc-border"}).linkOn(n,"border"),e._axesGroup=t.g().attr({"class":"dxc-axes-group"}).linkOn(n,"axes"),e._labelAxesGroup=t.g().attr({"class":"dxc-strips-labels-group"}).linkOn(n,"strips-labels"),e._constantLinesGroup.under=i(),e._seriesGroup=t.g().attr({"class":"dxc-series-group"}).linkOn(n,"series"),e._constantLinesGroup.above=i(),e._scaleBreaksGroup=t.g().attr({"class":"dxc-scale-breaks"}).linkOn(n,"scale-breaks"),e._labelsGroup=t.g().attr({"class":"dxc-labels-group"}).linkOn(n,"labels"),e._crosshairCursorGroup=t.g().attr({"class":"dxc-crosshair-cursor"}).linkOn(n,"crosshair"),e._legendGroup=t.g().attr({"class":"dxc-legend","clip-path":e._getCanvasClipRectID()}).linkOn(n,"legend").linkAppend(n).enableLinks(),e._scrollBarGroup=t.g().attr({"class":"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_disposeObjectsInArray:function(e,t){z(this[e]||[],function(e,n){t&&n?z(t,function(e,t){n[t]&&n[t].dispose()}):n&&n.dispose()}),this[e]=null},_disposeCore:function(){var e=this,t=function(t){e[t]&&(e[t].dispose(),e[t]=null)},n=function(t){e[t].linkOff()},i=this._disposeObjectsInArray;e._renderer.stopAllAnimations(),i.call(e,"series"),t("_tracker"),t("_crosshair"),e.layoutManager=e._userOptions=e._canvas=e._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_labelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(e){return this._themeManager.getOptions(e)},_applySize:function(e){this._rect=e.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(R)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new D[e._trackerType]({seriesGroup:e._seriesGroup,renderer:e._renderer,tooltip:e._tooltip,legend:e._legend,eventTrigger:e._eventTrigger})},_getTrackerSettings:function(){return this._getSelectionModes()},_getSelectionModes:function(){var e=this._themeManager;return{seriesSelectionMode:e.getOptions("seriesSelectionMode"),pointSelectionMode:e.getOptions("pointSelectionMode")}},_updateTracker:function(e){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},e)},_createCanvasFromRect:function(e){var t=this._canvas;return W({left:e[0],top:e[1],right:t.width-e[2],bottom:t.height-e[3],width:t.width,height:t.height})},_doRender:function(e){var t=this;if(0!==t._canvas.width||0!==t._canvas.height){t._resetIsReady();var n=t._prepareDrawOptions(e),i=n.recreateCanvas;t.__originalCanvas=t._canvas,t._canvas=b({},t._canvas),i?t.__currentCanvas=t._canvas:t._canvas=t.__currentCanvas,i&&t._updateCanvasClipRect(t._canvas),this._canvas=this._createCanvasFromRect(this._rect),t._renderer.stopAllAnimations(!0),t._cleanGroups();var r=new Date;t._renderElements(n),t._lastRenderingTime=new Date-r}},_layoutAxes:_,_renderElements:function(e){var t,n,i,r=this,o=r._prepareToRender(e),a=r._isRotated(),s=r._isLegendInside(),l=[];b({},r._canvas);r._renderer.lock(),e.drawLegend&&r._legend&&r._legendGroup.linkAppend(),r.layoutManager.setOptions(r._layoutManagerOptions());var u=r._getLayoutTargets();this._layoutAxes(function(t){var n=t?b({},e,{animate:!1}):e,i=r._renderAxes(n,o);r._shrinkAxes(t,i)}),r._applyClipRects(o),r._appendSeriesGroups(),r._createCrosshairCursor(),u.forEach(function(e){var t=e.canvas;l.push({left:t.left,right:t.width-t.right,top:t.top,bottom:t.height-t.bottom})}),r._scrollBar&&(t=r._argumentAxes[0].getTranslator().getBusinessRange(),"discrete"===t.axisType&&t.categories&&t.categories.length<=1||"discrete"!==t.axisType&&t.min===t.max?n=i=void 0:(n=t.minVisible,i=t.maxVisible),r._scrollBar.init(t,!r._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(n,i)),r._updateTracker(l),r._updateLegendPosition(e,s),r._applyPointMarkersAutoHiding(),r._renderSeries(e,a,s),r._renderer.unlock()},_createCrosshairCursor:_,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(e,t,n){this._calculateSeriesLayout(e,t),this._renderSeriesElements(e,t,n)},_calculateSeriesLayout:function(e,t){e.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(e)},_renderSeriesElements:function(e,t,n){var i,r,o=this,a=o.series,s=a.length,l=o._themeManager.getOptions("resolveLabelOverlapping");for(i=0;i=0&&nU)&&(i=U),t.textOpacity=U),t.states={hover:n.hover,selection:n.selection,normal:N({},n.normal,{opacity:i})},t})},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],id:e.index,visible:!0},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(e){var t=this;t.series&&(j(e)?(t.series[e].dispose(),t.series.splice(e,1)):(z(t.series,function(e,t){return t.dispose()}),t.series.length=0)),t.series&&t.series.length||(t.series=[])},_disposeSeriesFamilies:function(){var e=this;z(e.seriesFamilies||[],function(e,t){t.dispose()}),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_simulateOptionChange:function(e,t,n){var i=this,r=w.compileSetter(e);r(i._options,t,{functionsAsIs:!0,merge:!i._getOptionsByReference()[e]}),i._notifyOptionChanged(e,t,n),i._changes.reset()},_optionChanged:function(e){this._themeManager.resetOptions(e.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var e=this;e._themeManager.update(e._options),e.callBase.apply(e,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT","export":"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",useAggregation:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","CHART_TOOLTIP","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(L)},_change_FORCE_RENDER:function(){this._processRefreshData(L)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES:function(){var e=this;W(e._canvas),e._reinitAxes(),e._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(L)},_change_CHART_TOOLTIP:function(){this._organizeStackPoints()},_change_REINIT:function(){this._processRefreshData(M)},_refreshSeries:function(e){this.needToPopulateSeries=!0,this._requestChange([e])},_change_CORRECT_AXIS:function(){this._correctAxes()},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t=this,n=Math.max(e.width-e.left-e.right,0),i=Math.max(e.height-e.top-e.bottom,0);t._canvasClipRect.attr({x:e.left,y:e.top,width:n,height:i}),t._backgroundRect.attr({x:e.left,y:e.top,width:n,height:i})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(e){e.createPoints(!1)},_handleSeriesDataUpdated:function(){var e=this;this._getVisibleSeries().some(function(e){return e.useAggregation()})&&this._populateMarginOptions(),this.series.forEach(function(t){return e._processSingleSeries(t)},this)},_dataSpecificInit:function(e){var t=this;t.series&&!t.needToPopulateSeries||(t.series=t._populateSeries()),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._tracker.updateSeries(t.series,this._changes.has("INIT")),t._updateLegend(),e&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e=this,t=e._themeManager,n=e._dataSourceItems(),i=t.getOptions("dataPrepareSettings"),r=t.getOptions("seriesTemplate");r&&e._populateSeries(n),e._groupSeries();var o=T.validateData(n,e._groupsData,e._incidentOccurred,i);t.resetPalette(),e.series.forEach(function(e){e.updateData(o[e.getArgumentField()])}),e._handleSeriesDataUpdated(),e._organizeStackPoints()},_organizeStackPoints:function(){var e=this,t=e._themeManager,n=t.getOptions("tooltip").shared,i={};z(e.series||[],function(t,r){e._resetStackPoints(r),n&&e._prepareStackPoints(r,i)})},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&(z(e.series,function(e,n){t=t&&n.canRenderCompleteHandle()}),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_dataIsReady:function(){return j(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions:function(e){for(var t,n,i=this,r=i._themeManager,o=r.getOptions("seriesTemplate"),a=o?B.processSeriesTemplate(o,e||[]):i.option("series"),s=G(a)?a:a?[a]:[],l=i._getExtraOptions(),u=[],c=function(e){i._specialProcessSeries(),i._populateBusinessRange(e&&e.getValueAxis(),!0),i._renderer.stopAllAnimations(!0),i._updateLegend(),i._requestChange(["FULL_RENDER"])},d=0;d=0&&e.slice(i).forEach(function(e){K(e[n])&&(t[n]+=e[n],e[n]=void 0)})}function r(e){e.forEach(function(e){e.valueType=e.valueAxisType=null,e.series.forEach(function(e){e.updateDataType({})}),e.valueAxis&&e.valueAxis.resetTypes(W)})}function o(e,t,n){var i=t?function(e,t){return e-t}:function(e,t){return t-e};return e.sort(function(e,t){var r=n(e),o=n(t),a=K(r)?1:0,s=K(o)?1:0;return a&&s?i(r,o):i(a,s)}),e}function a(e){e&&e.forEach(function(e){e.resetTypes(U)})}function s(e,t){var n=[];return e.forEach(function(e){var i=t(e);void 0!==i&&n.push(i)}),n}function l(e,t){var n=e.argumentOptions&&e.argumentOptions.categories;e.groups.forEach(function(e,n){var i=e.valueOptions&&e.valueOptions.categories;i&&(e.valueOptions.categories=s(i,t[n+1]))}),n&&(e.argumentOptions.categories=s(n,t[0]))}function u(e,t,n){return e<=0&&null!==e&&(n("E2004",[t]),e=null),e}function c(e){return e}function d(e,t){var n=t;return t===B||Q(e)?n=B:t===z||J(e)?n=z:ee(e)&&(n=F),n}function h(e,t,n,i){return e!==B||t!==G&&t!==j&&t!==N||i("E2002"),t===j?j:n||t===H||e===B?H:t===N?N:G}function f(e,t,n){e&&n(ee(e)||J(e)||Q(e)?"E2004":"E2003",[t])}function p(e,t,n){var i=e?q(e):c,r=t===j?u:c,o=t!==H?function(e){return isFinite(e)||void 0===e?e:null}:c;return function(e,t){var a=function(e){return r(e,t,n)},s=a(o(i(e)));return void 0===s&&f(e,t,n),s}}function g(e,t){var n,i,r=p(e.argumentType,e.argumentAxisType,t),o=[r],a={},s=[];e.groups.forEach(function(e,s){e.series.forEach(function(l){i=p(e.valueType,e.valueAxisType,t),n=p(F,G,t),a[l.getArgumentField()]=r,l.getValueFields().forEach(function(e){o[s+1]=i,a[e]=i}),l.getSizeField()&&(a[l.getSizeField()]=n)})});for(var u in a)s.push([u,a[u]]);return s.length&&l(e,o),s}function _(e,t){var n,i,r,o=t.length,a=Y({},e);for(n=0;nr));++i);return i}function y(e,t,n,r){r=r||{};var a=r.mode,s={};if(a&&"none"!==a){s[t]=String(r.groupName||"others"),s[n]=0;var l=o(e.slice(),!1,function(e){return e[n]});i(l,s,n,"smallValueThreshold"===a?v(l,n,r.threshold):r.topCount),s[n]&&e.push(s)}}function b(e,t){var n=t.groups[0]&&t.groups[0].series[0],i=n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type);i&&t.groups.forEach(function(t){t.series.forEach(function(t){y(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)})})}function x(e,t,n){n[e]||(t.push(e),n[e]=!0)}function S(e){var t=[],n={};return e.groups.forEach(function(e){e.series.forEach(function(e){x(e.getArgumentField(),t,n)})}),t}function C(e,t){var n=e-t;return isNaN(n)?K(e)?K(t)?0:-1:1:n}function w(e,t){return e.slice().sort(function(e,n){return C(e[t],n[t])})}function k(e,t){return e.slice().sort(t)}function T(e,t){return e.series.forEach(function(n){n.getValueFields().forEach(function(n){e.valueType=d(t[n],e.valueType)})}),e.valueType}function A(e){var t={};return e.forEach(function(e,n){t[e]=n}),function(e,n){return o(e.slice(),!0,function(e){return t[e[n]]})}}function E(e,t,n,i){var r,o={},a=t.argumentAxisType===H,s=a&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e},u=n.sortingMethod;return!s&&$(u)&&(e=k(e,u)),a&&(t.categories=D(e,i,s)),s||!$(u)&&t.argumentType===B&&!n._skipArgumentSorting?l=A(t.categories):u===!0&&t.argumentType!==B&&(l=w,r=a),i.forEach(function(t){o[t]=l(e,t)}),r&&(t.categories=t.categories.sort(C)),o}function O(e,t){return e.map(function(e){return e.valueOf()}).indexOf(t.valueOf())===-1}function D(e,t,n){var i=n?n.slice():[];return t.forEach(function(t){e.forEach(function(e){var n=e[t];K(n)&&O(i,n)&&i.push(n)})}),i}function M(e,t,n){return e.forEach(function(e){n.argumentType=d(t[e.getArgumentField()],n.argumentType)}),n.argumentType}function I(e,t,n){var i,r=[],o=[],a=t.argumentOptions&&X(t.argumentOptions.argumentType);t.groups.forEach(function(e){if(e.series.length){var n=e.valueOptions&&X(e.valueOptions.valueType);e.valueType=n,t.argumentType=a,!n&&r.push(e),!a&&o.push(e)}}),(r.length||o.length)&&(i=r.map(function(e,t){return t}),e.some(function(e){var a;if(r.forEach(function(t,n){T(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)}),a||o.forEach(function(n){a=M(n.series,e,t)}),!n&&a&&0===i.length)return!0}))}function P(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],r=h(e.argumentType,n.type,!!i.length,t);e.groups.forEach(function(n){var i=n.valueOptions||{},o=i.categories||[],a=h(n.valueType,i.type,!!o.length,t);n.series.forEach(function(t){var o={};o.argumentAxisType=r,o.valueAxisType=a,e.argumentAxisType=e.argumentAxisType||o.argumentAxisType,n.valueAxisType=n.valueAxisType||o.valueAxisType,o.argumentType=e.argumentType,o.valueType=n.valueType,o.showZero=i.showZero,t.updateDataType(o)}),n.valueAxisType=n.valueAxisType||a,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,W),n.valueAxis.validate())}),e.argumentAxisType=e.argumentAxisType||r,e.argumentAxes&&e.argumentAxes.forEach(function(t){t.setTypes(e.argumentAxisType,e.argumentType,U),t.validate()})}function L(e,t){var n,i,r,o,a=[],s=K(e),l=s&&!Z(e);if(s&&!l)for(n=0,i=e.length,r=0;n1&&!!e)},_createPoints:function(){var e=this,t=e.pointsByArgument||{},n=e._getData();e.pointsByArgument={},e._calculateErrorBars(n);var i={},r=n.reduce(function(n,r){if(e._checkData(r,i)){var o=n.length,a=e._getOldPoint(r,t,o),s=e._createPoint(r,o,a);n.push(s)}return n},[]);for(var o in i)i[o]===n.length&&e._incidentOccurred("W2002",[e.name,o]);Object.keys(t).forEach(function(n){return e._disposePoints(t[n])}),e._points=r},_removeOldSegments:function(){var e=this,t=e._segments.length;m(e._graphics.splice(t,e._graphics.length)||[],function(t,n){e._removeElement(n)}),e._trackers&&m(e._trackers.splice(t,e._trackers.length)||[],function(e,t){t.remove()})},_drawElements:function(e,t,n){var i=this,r=i._points||[],o=r[0]&&r[0].hasValue()&&i._options.closed,a={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var s=r.reduce(function(r,o){var s=r[r.length-1];return o.translated&&!n||(o.translate(),!n&&o.setDefaultCoords()),o.hasValue()&&o.hasCoords()?(n&&i._drawPoint({point:o,groups:a,hasAnimation:e,firstDrawing:t}),s.push(o)):o.hasValue()?o.setInvisibility():s.length&&r.push([]),r},[[]]);s.forEach(function(t,n){t.length&&i._drawSegment(t,e,n,o&&n===this.length-1)},s),i._firstDrawing=!r.length,i._removeOldSegments(),e&&i._animate(t)},draw:function(e,t,n){var i=this,r=i._firstDrawing;return i._legendCallback=n||i._legendCallback,i._visible?(i._appendInGroup(),i._applyVisibleArea(),i._setGroupsSettings(e,r),!r&&i._drawElements(!1,r,!1),i._drawElements(e,r,!0),t&&i.hideLabels(),void(i.isSelected()?i._changeStyle(i.lastSelectionMode,void 0,!0):i.isHovered()&&i._changeStyle(i.lastHoverMode,void 0,!0))):(e=!1,void i._group.remove())},_setLabelGroupSettings:function(e){var t={"class":"dxc-labels","pointer-events":"none"};this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!p.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&this.type.indexOf("bar")!==-1},_resetType:function(e,t){var n,i;if(e){i=p.mixins[t][e];for(n in i)delete this[n]}},_setType:function(e,t){var n,i=p.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.setView(e)})},_resetPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.resetView(e)})},_resetNearestPoint:function(){var e=this;e._nearestPoint&&null!==e._nearestPoint.series&&e._nearestPoint.resetView(F),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=S(e||t._options.selectionMode),t.fullState=t.fullState|V,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==W&&t.isHovered()&&r(t.lastHoverMode)&&t._resetPointsView(F)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~V,e._changeStyle(e.lastSelectionMode,H),e.lastSelectionMode!==W&&e.isHovered()&&r(e.lastHoverMode)&&e._setPointsView(F)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&S(this._options.hoverMode)!==W},_changeStyle:function(e,t,n){var i=this,o=i.fullState,a=[z,F,H,H];"none"===i.lastHoverMode&&(o&=~B),"none"===i.lastSelectionMode&&(o&=~V),r(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(a[o])),i._legendCallback([j,G,N,N][o]),i._applyStyle(i._styles[a[o]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,r=n.isHovered()&&n.lastHoverMode===Y&&n.getNeighborPoint(e,t);r===i||n.isSelected()&&n.lastSelectionMode!==W||(n._resetNearestPoint(),r&&(r.setView(F),n._nearestPoint=r))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!y(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function e(t,n){var i,r,o,a,s,l,u=this,c=u._options,e=c.customizePoint,d=c.customizeLabel;d&&d.call&&(i=_({seriesName:u.name},n),i.series=u,o=d.call(i,i),s=o&&!x(o),o=s?_(!0,{},c.label,o):null),e&&e.call&&(i=i||_({seriesName:u.name},n),i.series=u,a=e.call(i,i),l=a&&!x(a)),(s||l)&&(r=u._parsePointOptions(u._preparePointOptions(a),o||c.label,n,t),r.styles.useLabelCustomOptions=s,r.styles.usePointCustomOptions=l,t.updateOptions(r))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged(t)},_updatePointsVisibility:C,hideLabels:function(){m(this._points,function(e,t){t._label.draw(!1)})},_parsePointOptions:function(e,t,n,i){var r=this,a=r._options,s=r._createPointStyles(e,n,i),l=_({},e,{type:a.type,rotated:a.rotated,styles:s,widgetType:a.widgetType,visibilityChanged:a.visibilityChanged});return l.label=o(t,s.normal.fill),r.areErrorBarsVisible()&&(l.errorBars=a.valueErrorBar),l},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?d(t,e):t},_getMarkerGroupOptions:function(){return _(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e){var t,n=this.getOptions().aggregation,i=S(n.method),r="custom"===i&&n.calculate;return t=e?function(e){var t=e.data;return t[0]}:this._aggregators[i]||this._aggregators[this._defaultAggregator],r||t},_resample:function(e,t){var n=e.interval,i=e.ticks,r=this,o=r.argumentAxisType===R||r.valueAxisType===R,a=0,s=this._getPointDataSelector(),l=r.getOptions(),u=function(e,t,n){if(t){var i=function(t){var i=t&&s(t,l);i&&r._checkData(i)&&(i.aggregationInfo=n,e.push(i))};t.length?t.forEach(i):i(t)}},c=this._getAggregationMethod(o);if(o)return t.reduce(function(e,t,i,o){if(e[1].push(t),i===o.length-1||(i+1)%n===0){var a=e[1],s={aggregationInterval:n,data:a.map(f)};u(e[0],c(s,r)),e[1]=[]}return e},[[],[]])[0];for(var d=[],h=1;h=g&&_.push(t[a]),a++;var m={intervalStart:g,intervalEnd:p,aggregationInterval:n,data:_.map(f)};u(d,c(m,r),m)}return r._endUpdateData(),d},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(e){return this._createAllAggregatedPoints(),(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(l(e,this._legendCallback),this._eventPipe({action:ne,target:e}),this._eventTrigger(q,{target:e}))},deselectPoint:function(e){e.isSelected()&&(u(e,this._legendCallback),this._eventPipe({action:ie,target:e}),this._eventTrigger(q,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=S(e||t._options.hoverMode),t.fullState=t.fullState|B,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==W),n(K,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~B,e._changeStyle(e.lastHoverMode,F,e.isSelected()&&e.lastSelectionMode!==W),t(K,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),a(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:J,target:e}),t._eventTrigger($,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some(function(t){return!!t.isHovered()&&(s(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:ee,target:t}),e._eventTrigger($,{target:t}),!0)})},showPointTooltip:function(e){i(this._extGroups.seriesGroup,"showpointtooltip",e)},hidePointTooltip:function(e){i(this._extGroups.seriesGroup,"hidepointtooltip",e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:te,target:e}),e._group.toForeground(),e._eventTrigger(X,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(X,{target:e}))},getPointsByArg:function(e,t){var n=this,i=e.valueOf(),r=n.pointsByArgument[i];return r||t||!n._createAllAggregatedPoints()||(r=n.pointsByArgument[i]),r||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints)&&(this.createPoints(!0),!0)},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,r=e.target,o=r.getOptions(),a=S(o.hoverMode),s=S(o.selectionMode);n===J?t._hoverPointHandler(r,a,e.notifyLegend):n===ee?t._clearPointHoverHandler(r,a,e.notifyLegend):n===te?r!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===ne?("single"===i.pointSelectionMode&&t.getPoints().some(function(e){return!(e===r||!e.isSelected())&&(t.deselectPoint(e),!0)}),t._selectPointHandler(r,s)):n===ie&&t._deselectPointHandler(r,s)},_selectPointHandler:function(e,t){var n=this;t===Z?e.series===n&&n._setPointsView(H,e):t===Q&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.setView(H)})},_deselectPointHandler:function(e,t){t===Z?e.series===this&&this._resetPointsView(H,e):t===Q&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.resetView(H)})},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===Q?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.setView(F)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._setPointsView(F,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===Q?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.resetView(F)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._resetPointsView(F,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;m(e._trackers||[],function(e,t){t.remove()}),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:C,drawTrackers:C,getNeighborPoint:C,areErrorBarsVisible:C,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup:function(){return this._markersGroup},getRenderer:function(){return this._renderer}}},function(e,t,n){function i(e,t){var n,i=1/0;return(0,f.each)(t,function(t,r){var o=e[0]-r[0],a=e[1]-r[1],s=o*o+a*a;s0&&e.stroke&&"none"!==e.stroke)}function l(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function u(e,t){var n=t.format;return e.valueText=(0,d.format)(e.value,n),e.argumentText=(0,d.format)(e.argument,t.argumentFormat),void 0!==e.percent&&(e.percentText=(0,d.format)(e.percent,{type:"percent",precision:n&&n.percentPrecision})),void 0!==e.total&&(e.totalText=(0,d.format)(e.total,n)),void 0!==e.openValue&&(e.openValueText=(0,d.format)(e.openValue,n)),void 0!==e.closeValue&&(e.closeValueText=(0,d.format)(e.closeValue,n)),void 0!==e.lowValue&&(e.lowValueText=(0,d.format)(e.lowValue,n)),void 0!==e.highValue&&(e.highValueText=(0,d.format)(e.highValue,n)),void 0!==e.reductionValue&&(e.reductionValueText=(0,d.format)(e.reductionValue,n)),t.customizeText?t.customizeText.call(e,e):e.valueText}function c(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy,this._rowCount=1}var d=n(64),h=n(11),f=n(3),p=n(0),g=Math,_=g.round,m=g.floor,v=g.abs,y=12,b=8,x=4,S={isLabelInside:function(e,t){var n=e.x+e.width/2,i=e.y+e.height/2;return t.x<=n&&n<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(e,t,n,i,o){var a,s=t.x,l=s+t.width/2,u=s+t.width-1,c=t.y,d=c+t.height/2,h=c+t.height-1,f=v(i)%90===0;return a=o[0]>s&&o[0]c&&o[1]t.x+t.width||e.x+e.widtht.x+t.r||e.x+e.width=u&&u>=s||r<=u&&u<=s)&&e.push([(u-r)*(o-i)/(s-r)+i,u]):(i>=a&&a>=o||i<=a&&a<=o)&&e.push([a,(a-i)*(s-r)/(o-i)+r]),e},[])},isHorizontal:function(e,t){return e.x>t.x||t.x>e.x+e.width},getFigureCenter:C.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],r=_(e.x+(e.y-t[1])/Math.tan((0,h.degreesToRadians)(e.angle))),o=[e.x,e.y,r,t[1]];return e.x<=r&&r<=i||i<=r&&r<=e.x||(v(e.x-i)n?e.max:n}function r(e,t){return e===m?function(e,t,n){t!==n&&e.categories.push(n),e.categories.push(t)}:t?function(e,n){var r=t.calculateInterval(n,e.prevValue),o=e.interval;e.interval=(o=0||e.type.toLowerCase().indexOf("area")>=0}function c(e){var t=r(e.valueAxisType),n=e.getArgumentAxis(),i=n&&e.getArgumentAxis().visualRange()||{},o=u(e)?l:_;if(n&&n.getMarginOptions().checkInterval){var a=e.getArgumentAxis().getTranslator().getBusinessRange(),s=p(a,!1),c=a.interval;isFinite(c)&&g(i.startValue)&&g(i.endValue)&&(i.startValue=s(i.startValue,c,-1),i.endValue=s(i.endValue,c))}var h=d(i);return function(e,n,r,a){var s=n.argument;return n.hasValue()?(h(s)?(e.startCalc||(e.startCalc=!0,o(t,e,n,a[r-1],i.startValue)),t(e,n.getMinValue(),n.getMaxValue())):!i.categories&&g(i.startValue)&&s>i.startValue&&(e.startCalc||o(t,e,n,a[r-1],i.startValue),e.endCalc=!0,o(t,e,n,a[r-1],i.endValue)),e):e}}function d(e){if(e.categories){var t=e.categories.reduce(function(e,t){return e[t.valueOf()]=!0,e},{});return function(e){return g(e)&&t[e.valueOf()]}}return g(e.startValue)||g(e.endValue)?g(e.endValue)?g(e.startValue)?function(t){return t>=e.startValue&&t<=e.endValue}:function(t){return t<=e.endValue}:function(t){return t>=e.startValue}:function(){return!0}}var h=n(11),f=h.unique,p=h.getAddFunction,g=n(1).isDefined,_=n(4).noop,m="discrete";e.exports={getViewPortFilter:d,getArgumentRange:function(e){var t=e._data||[],n={};if(t.length)if(e.argumentAxisType===m)n={categories:t.map(function(e){return e.argument})};else{var i;if(t.length>1){var r=e.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),o=e.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=Math.min(r,o)}n={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return n},getRangeData:function(e){var t=e.getPoints(),n=e.useAggregation(),i=r(e.argumentAxisType,t.length>1&&e.getArgumentAxis()),s=r(e.valueAxisType),l=c(e),u=t.reduce(function(e,t,n,r){var o=t.argument;return i(e.arg,o,o),t.hasValue()&&(s(e.val,t.getMinValue(),t.getMaxValue()),l(e.viewport,t,n,r)),e},{arg:o(e.argumentAxisType,e.argumentType,t.length?t[0].argument:void 0),val:o(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),viewport:o(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0)});if(n){var d=this.getArgumentRange(e);if(e.argumentAxisType===m)u.arg=d;else{var h=e.getArgumentAxis().getViewport();(g(h.startValue)||g(h.length))&&i(u.arg,d.min,d.min),(g(h.endValue)||g(h.length)&&g(h.startValue))&&i(u.arg,d.max,d.max)}}return a(u.arg),a(u.val),u},getViewport:function(e){var t=e.getPoints(),n={},i=c(e);return n=o(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),t.some(function(e,r){return i(n,e,r,t),n.endCalc}),n},getPointsInViewPort:function(e){var t=d(e.getArgumentAxis().visualRange()||{}),n=e.getValueAxis().visualRange()||{},i=d(n),r=e.getPoints(),o=function(e,t,r){var o=t.getMinValue(),a=t.getMaxValue(),s=i(o),l=i(a);s&&e.push(o),a!==o&&l&&e.push(a),!r||s||l||(e.length?e.push(n.endValue):e.push(n.startValue))},a=u(e)?function(e,n,i){var r=n[i],a=n[i-1],s=n[i+1];s&&t(s.argument)&&o(e[1],r,!0),a&&t(a.argument)&&o(e[1],r,!0)}:_,s=function(e,n,i){return t(n.argument)?o(e[0],n):a(e,r,i),e};return r.reduce(s,[[],[]])}}},function(e,t,n){var i=n(11).map;e.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return i(e||[],function(e){return e.value})},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var r=e.x>t.x,o=e.y>t.y,a=e.x,s=t.x,l=e.width,u=t.width;"left"===i?(a+=l/2,s+=u/2):"right"===i&&(a-=l/2,s-=u/2);var c=r?s+u+n>a:a+l+n>s,d=o?t.y+t.height>e.y:e.y+e.height>t.y;return c&&d}}},function(e,t,n){function i(e,t){var n,i,r,o,a="logarithmic"===t.axisType?function(e){return _(e,t.base)}:function(e){return e},s=[],l=e.length,u=0;for(o=0;ot[0][n]}:function(e,t,n,i){return e>=t[t.length-1][i]},isInBreak:e?function(e,t,n,i){return e>t[i]&&e<=t[n]}:function(e,t,n,i){return e>=t[n]&&e=t[r]&&e=n[r]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}var a,s=n(0).extend,l=n(3).each,u=n(109).Range,c=n(784),d=n(785),h=n(786),f=n(787),p=n(11),g=n(1),_=p.getLog,m=p.getPower,v=g.isDefined,y=n(28).adjust,b=Math.abs,x=["width","height","left","top","bottom","right"],S=n(22).addInterval,C={to:function(e){var t=this._canvasOptions.startPoint+(this._options.conversionValue?e:Math.round(e));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from:function(e){return e-this._canvasOptions.startPoint}},w=function(e){return l(x,function(t,n){e[n]=parseInt(e[n])||0}),e},k=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t},T=function(e){function t(t,n){!v(e[t])&&v(e[n])&&(e[t]=e[n])}return e instanceof u||(e=new u(e)),t("minVisible","min"),t("maxVisible","max"),e};t.Translator2D=a=function(e,t,n){this.update(e,t,n)},a.prototype={constructor:a,reinit:function(){var e=this,t=e._options,n=e._businessRange,i=n.categories||[],r={},a=e._prepareCanvasOptions(),l=p.getCategoriesInfo(i,n.minVisible,n.maxVisible).categories,u=l.length;if(n.isEmpty())r=C;else switch(n.axisType){case"logarithmic":r=f;break;case"semidiscrete":r=d,a.ratioOfCanvasRange=a.canvasLength/(S(a.rangeMaxVisible,t.interval)-a.rangeMinVisible);break;case"discrete":r=c,e._categories=i,a.interval=e._getDiscreteInterval(t.addSpiderCategory?u+1:u,a),e._categoriesToPoints=k(i,a.invert),u&&(a.startPointIndex=e._categoriesToPoints[l[0].valueOf()],e.visibleCategories=l);break;default:"datetime"===n.dataType&&(r=h)}(e._oldMethods||[]).forEach(function(t){delete e[t]}),e._oldMethods=Object.keys(r),s(e,r),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[o(!1),o(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,r=this._breaks,o=this._options.breaksSize;if(void 0!==r)for(e=0,i=r.length;e0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t=this,n=t._businessRange,i=t._canvasOptions=r(n),o=t._canvas,a=t._breaks;return i.startPadding=o.startPadding||0,i.endPadding=o.endPadding||0,t._options.isHorizontal?(i.startPoint=o.left+i.startPadding,e=o.width,i.endPoint=o.width-o.right-i.endPadding,i.invert=n.invert):(i.startPoint=o.top+i.startPadding,e=o.height,i.endPoint=o.height-o.bottom-i.endPadding,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,m(i.rangeMax-i.rangeMin)-m(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),void 0!==a&&(i.ratioOfCanvasRange=(i.canvasLength-a[a.length-1].cumulativeWidth)/(i.rangeMaxVisible-i.rangeMinVisible-a[a.length-1].length)),i},updateCanvas:function(e){this._canvas=w(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._businessRange=T(e),t._breaks=n.length?i(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var i=this;i._options=s(i._options||{},n),i._canvas=w(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getEventScale:function(e){return e.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t=this,n=t._canvasOptions,i=n.startPoint-n.startPadding,r=n.endPoint+n.endPadding,o=t._businessRange,a=o.minVisible,s=o.maxVisible,l=i+n.canvasLength/2;if(a<0&&s>0&&a!==s&&(e=t.translate(0,1)),!v(e)){var u=o.invert^(a<0&&s<=0);e=t._options.isHorizontal?u?r:i:u?i:r}t.sc={canvas_position_default:e,canvas_position_left:i,canvas_position_top:i,canvas_position_center:l,canvas_position_middle:l,canvas_position_right:r,canvas_position_bottom:r,canvas_position_start:n.invert?r:i,canvas_position_end:n.invert?i:r}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e);return b(this.from(t.min)-(v(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){return b(e)=0?t:-t:e},translate:function(e,t){var n=this.translateSpecialCase(e);return v(n)?Math.round(n):isNaN(e)?null:this.to(e,t)},getInterval:function(e){var t=this._canvasOptions;return e=v(e)?e:this._businessRange.interval,e?Math.round(t.ratioOfCanvasRange*e):Math.round(t.endPoint-t.startPoint)},zoom:function(e,t,n){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==e)return this.zoomZeroLengthRange(e,t);var r=i.startPoint,o=i.endPoint,a=this.isInverted(),s=(r+e)/t,l=(o+e)/t;n=n||{};var u,c,d=this.to(a?n.endValue:n.startValue),h=this.to(a?n.startValue:n.endValue);return d>s&&(l-=s-d,s=d,u=a?n.endValue:n.startValue),hc?(u=u>n.endValue?n.endValue:u,c=cn.endValue?n.endValue:c),{min:u,max:c,translate:y(e),scale:y(t)}},zoomZeroLengthRange:function(e,t){var n=this._canvasOptions,i=n.rangeMin,r=n.rangeMax,o=(r.valueOf()!==i.valueOf()?r.valueOf()-i.valueOf():b(n.rangeMinVisible.valueOf()-i.valueOf()))/n.canvasLength,a=g.isDate(r)||g.isDate(i),s="logarithmic"===this._businessRange.axisType,l=n.rangeMinVisible.valueOf()-o,u=n.rangeMaxVisible.valueOf()+o;return l=s?y(Math.pow(n.base,l)):a?new Date(l):l,u=s?y(Math.pow(n.base,u)):a?new Date(u):u,{min:l,max:u,translate:e,scale:t}},getMinScale:function(e){return e?1.1:.9},getScale:function(e,t){var n=this._canvasOptions;return n.rangeMax===n.rangeMin?1:(e=v(e)?this._fromValue(e):n.rangeMin,t=v(t)?this._fromValue(t):n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t))},isValid:function(e){var t=this._canvasOptions;return e=this._fromValue(e),null!==e&&!isNaN(e)&&e.valueOf()+t.rangeDoubleError>=t.rangeMin&&e.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(e,t){var n,i=this,r=i._breaks;return e=i._fromValue(e),i._breaks&&(n=i._checkValueAboutBreaks(r,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),n.inBreak===!0)?i._toValue(t>0?n.break.trTo:n.break.trFrom):i._toValue(e)},to:function(e,t){var n=this.getBusinessRange();if(v(n.maxVisible)&&v(n.minVisible)&&n.maxVisible.valueOf()===n.minVisible.valueOf())return v(e)&&n.maxVisible.valueOf()===e.valueOf()?this.translateSpecialCase(0===e&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;e=this._fromValue(e);var i=this,r=i._canvasOptions,o=i._breaks,a={length:0},s=0;return void 0!==o&&(a=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),s=v(a.breaksSize)?a.breaksSize:0),a.inBreak===!0?t>0?a.break.start:t<0?a.break.end:null:i._conversionValue(i._calculateProjection((e-r.rangeMinVisible-a.length)*r.ratioOfCanvasRange+s))},from:function(e,t){var n=this,i=n._breaks,r={length:0},o=n._canvasOptions,a=o.startPoint,s=0;return void 0!==i&&(r=n._checkValueAboutBreaks(i,e,"start","end",n._checkingMethodsAboutBreaks[1]),s=v(r.breaksSize)?r.breaksSize:0),r.inBreak===!0?t>0?n._toValue(r.break.trTo):t<0?n._toValue(r.break.trFrom):null:n._toValue(n._calculateUnProjection((e-a-s)/o.ratioOfCanvasRange+r.length))},isValueProlonged:!1,getRange:function(){return[this._toValue(this._canvasOptions.rangeMin),this._toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)},_add:function(e,t,n){return this._toValue(this._fromValue(e)+t*n)},_fromValue:function(e){return null!==e?Number(e):null},_toValue:function(e){return null!==e?Number(e):null},ratioOfCanvasRange:function(){return this._canvasOptions.ratioOfCanvasRange}}},function(e,t,n){function i(e){var t,n,i=e.x,r=e.y,o=m[e.type],a=e.textWidth+2*e.horMargin,s=e.textHeight+2*e.verMargin,u=i,c=r;return t=n=e.tailLength,1&o[0]?n=Math.min(n,s/3):t=Math.min(t,a/3),{cx:l(u+o[0]*t+(o[0]+o[2])*a/2),cy:l(c+o[1]*n+(o[1]+o[3])*s/2),points:[l(i),l(r),l(i+=o[0]*(a+t)),l(r+=o[1]*(s+n)),l(i+=o[2]*a),l(r+=o[3]*s),l(i+=o[4]*a),l(r+=o[5]*s),l(i+=o[6]*(a-t)),l(r+=o[7]*(s-n))]}}var r=n(4).noop,o=n(3).each,a=isFinite,s=Number,l=Math.round,u=n(148),c=u.formatValue,d=u.getSampleText,h=n(11).patchFontOptions,f=n(0).extend,p=n(15),g=p.inherit({ctor:function(e){var t=this;o(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),o(e,function(t){e[t]=null}),e},getOffset:function(){return s(this._options.offset)||0}}),_=g.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?s(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({"class":this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:r,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&(f(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,r=this._rootElement,o=null;return void 0===e?i._currentValue:(null===e?(o="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&a(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),r.attr({visibility:o}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var v=_.inherit({_move:function(){var e=this,t=e._getTextCloudOptions(),n=c(e._actualValue,e._options.text);e._text.attr({text:n});var r=e._text.getBBox(),o=i({x:t.x,y:t.y,textWidth:r.width||n.length*e._textUnitWidth,textHeight:r.height||e._textHeight,horMargin:e._options.horizontalOffset,verMargin:e._options.verticalOffset,tailLength:e._options.arrowLength,type:t.type});e._text.attr({x:o.cx,y:o.cy+e._textVerticalOffset}),e._cloud.attr({points:o.points}),e._trackerElement&&e._trackerElement.attr({points:o.points})},_measureText:function(){var e,t,n,i,r=this;r._textVerticalOffset||(e=r._createRoot().append(r._owner),i=d(r._translator,r._options.text),t=r._renderer.text(i,0,0).attr({align:"center"}).css(h(r._options.text.font)).append(e),n=t.getBBox(),e.remove(),r._textVerticalOffset=-n.y-n.height/2,r._textWidth=n.width,r._textHeight=n.height,r._textUnitWidth=r._textWidth/i.length,r._textFullWidth=r._textWidth+2*r._options.horizontalOffset,r._textFullHeight=r._textHeight+2*r._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css(h(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}}}),y=_.inherit({_measureText:function(){var e,t,n,i=this;i._hasText=i._isTextVisible(),i._hasText&&!i._textVerticalOffset&&(e=i._createRoot().append(i._owner),t=i._renderer.text(d(i._translator,i._options.text),0,0).attr({"class":"dxg-text",align:"center"}).css(h(i._options.text.font)).append(e),n=t.getBBox(),e.remove(),i._textVerticalOffset=-n.y-n.height/2,i._textWidth=n.width,i._textHeight=n.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:c(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t=this,n=t._options,i=t._translator;t._setBarSides(),t._startPosition=i.translate(i.getDomainStart()),t._endPosition=i.translate(i.getDomainEnd()),t._basePosition=i.translate(n.baseValue),t._space=t._getSpace();var r=n.backgroundColor||"none";"none"!==r&&t._space>0?e=n.containerBackgroundColor||"none":(t._space=0,e="none"),t._backItem1.attr({fill:r}),t._backItem2.attr({fill:r}),t._spaceItem1.attr({fill:e}),t._spaceItem2.attr({fill:e})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({"class":"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({"class":"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=f({},t,{color:e.color})),h(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({"class":"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({"class":"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({"class":"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({"class":"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({"class":"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseElement=g,t.BaseIndicator=_,t.BaseTextCloudMarker=v,t.BaseRangeBar=y},function(e,t,n){var i=n(11).patchFontOptions;t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:e["stroke-width"]?{stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"],filter:t}:{},css:i(e.font)}}},function(e,t,n){function i(e){this._initHandlers(e)}function r(e,t){var n=t.getData(e);n>=0&&t.click({node:t.getNode(n),coords:t.getCoords(e),event:e})}function o(e,t){var n=t.getData(e);n>=0?t.getNode(n).setHover():t.widget.clearHover()}function a(e,t){var n,i=t.getData(e,!0);i>=0?(n=s(e),t.getNode(i).showTooltip([n.x,n.y])):t.widget.hideTooltip()}var s=n(8).eventData,l=n(10),u=n(19).name,c=n(23).down,d=n(23).move,h=n(5);i.prototype={constructor:i,_initHandlers:function(e){function t(t){r(t,e)}function n(t){p?p=!1:(void 0!==e.getData(t)&&(p=!0),i(t))}function i(t){o(t,e),e.widget._getOption("tooltip").enabled&&a(t,e)}var f=l.getDocument();e.getCoords=function(t){var n=s(t),i=e.widget._renderer.getRootOffset();return[n.x-i.left,n.y-i.top]},e.root.on(u,t),e.root.on(c,n),h.on(f,c,n),h.on(f,d,i),this._disposeHandlers=function(){e.root.off(u,t),e.root.off(c,n),h.off(f,c,n),h.off(f,d,i)};var p=!1},dispose:function(){this._disposeHandlers()}},e.exports.Tracker=i},function(e,t,n){function i(e){return e.split(",").slice(1).map(function(e){return e.split("").filter(function(e){return"#"===e||"0"===e}).length})}function r(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}function o(e){return e.toString().split("").reverse().join("")}function a(e){return e.indexOf("%")!==-1&&!e.match(/'[^']*%[^']*'/g)}function s(e){return e?e.length-e.replace(/[#]/g,"").length:0}function l(e){return e?e.length-e.replace(/[0]/g,"").length:0}function u(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length0||p,_=f[g?0:1];a(_)&&(n=100*n),g||(n=-n);var m=h(_),b=[_.substr(0,m),_.substr(m+1)],x=l(b[1]),C=x+s(b[1]),w=l(b[0]),k=s(b[0])?void 0:w,T=Math.floor(n).toString().length,A=v(C,0,S-T),E=i(b[0]).reverse(),O=y(n,A<0?0:A).split("."),D=u(o(O[0]),w,k),M=u(O[1],x,C);D=c(D,E,t.thousandsSeparator);var I=o(d(o(b[0]),D)),P=C?d(b[1],M):"",L=I+(P.match(/\d/)?t.decimalSeparator:"")+P;return L}}function p(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function g(e,t,n,i){var r,o,a,s=e;do a&&(r=o.length===a.length?"0":"1",e=i?r+e:e+r),o=a||t(p(s,n)),s=i?"1"+s:s+"1",a=t(p(s,n));while(o!==a&&(i?o.length===a.length:o.length<=a.length));if(i&&a.length>o.length){var l=t(12345).indexOf("12345")===-1;do e="1"+e;while(l&&p(e,n)<1e5)}return e}function _(e,t,n,i){var r=t(p(e,n,i)),o=e.split("."),a=o[0]+".3"+o[1].slice(1),s=p(a,n,i),l=t(s).indexOf("3")-1;return r=r.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(r=r.slice(0,l)+"."+r.slice(l+1)),r=r.replace(/1+/,"1").replace(/1/g,"#"),n||(r=r.replace("%","'%'")),r}function m(e){var t=".",n=e(1).indexOf("100")>=0;t=g(t,e,n,!0),t=g(t,e,n,!1);var i=_(t,e,n,!1),r=_(t,e,n,!0);return r==="-"+i?i:i+";"+r}var v=n(28).fitIntoRange,y=n(218).toFixed,b={thousandsSeparator:",",decimalSeparator:"."},x="'",S=15;t.getFormatter=f,t.getFormat=m},function(e,t,n){var i=n(84).locale,r={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return r[i()]}},function(e,t,n){var i=n(7).getWindow(),r=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=r},function(e,t,n){var i=n(2),r=n(15),o=n(0).extend,a=n(4),s=n(1),l=n(3),u=n(38),c=n(180),d=n(6),h=d.when,f=d.Deferred,p={ forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=r.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,r){var o=this,a=[];n=n||{};var s=this._prepareElementAnimationConfig(t,n,r);return s&&e.each(function(){var e=o._createAnimation(i(this),s,n);e&&(e.element.addClass(g),e.setup(),a.push(e))}),a},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var r=e;e=c.presets.getPreset(r)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=o({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var a="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+p[i.direction];i.type="css",i.from=(i.from||a)+l,i.to=i.to||a+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=u.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(o);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(a):this._addSelectedItem(o,a),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],a);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([a],[o]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e)},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,r=!1,o=this.options.keyOf,a=t[this._focusedItemIndex],s=this.options.getItemData(a),u=o(s),c=a&&this.isItemDataSelected(s);l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var d,h;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex0&&i.push(t?"and":"or"),a=o.isString(n)?u(n,e):c(n,e),i.push(a)}),i&&1===i.length&&(i=i[0]),i}},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),r=i;return t&&n&&(i?(r=[],r.push(i),r.push(n)):r=n),r};var n,a=function(e){if(!n){n={};for(var t=0;t":"=",n]},c=function(e,n){for(var i=[],r=0,o=e.length;r0&&i.push(t?"or":"and"),i.push(l)}return i}};t.SelectionFilterCreator=a},function(e,t,n){var i=n(28),r=n(3),o=n(21),a=n(8),s=n(114),l=n(88),u="dx",c="transform",d="translate",h="zoom",f="pinch",p="rotate",g="start",_="",m="end",v=[],y=function(e,t){v.push({name:e,args:t})};y(c,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),y(d,{translation:!0,deltaTranslation:!0}),y(h,{scale:!0,deltaScale:!0}),y(f,{scale:!0,deltaScale:!0}),y(p,{rotation:!0,deltaRotation:!0});var b=function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}},x=function(e){var t=e.pointers;return b(t[0],t[1])},S=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},C=function(e,t){return S(e)/S(t)},w=function(e,t){var n=e.x*t.x+e.y*t.y,r=S(e)*S(t);if(0===r)return 0;var o=i.sign(e.x*t.y-t.x*e.y),a=Math.acos(i.fitIntoRange(n/r,-1,1));return o*a},k=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},T=s.inherit({configure:function(e,t){t.indexOf(h)>-1&&o.log("W0005",t,"15.1","Use '"+t.replace(h,f)+"' event instead"),this.callBase(e)},validatePointers:function(e){return a.hasTouches(e)>1},start:function(e){this._accept(e);var t=x(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=x(e),n=this._getEventArgs(t);this._fireEventAliases(_,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(m,e,t)},_getEventArgs:function(e){return{scale:C(e,this._startVector),deltaScale:C(e,this._prevVector),rotation:w(e,this._startVector),deltaRotation:w(e,this._prevVector),translation:k(e,this._startVector),deltaTranslation:k(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},r.each(v,function(i,o){var a={};r.each(o.args,function(e){e in n&&(a[e]=n[e])}),this._fireEvent(u+o.name+e,t,a)}.bind(this))}}),A=v.reduce(function(e,t){return[g,_,m].forEach(function(n){e.push(u+t.name+n)}),e},[]);l({emitter:T,events:A}),r.each(A,function(e,n){t[n.substring(u.length)]=n})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(0).extend,r=n(121),o=i,a=Math.round,s=Math.sqrt,l=Math.acos,u=180/Math.PI,c=Math.abs,d=n(11),h=d.normalizeAngle,f=d.getCosAndSin,p=n(1).isDefined,g=d.getVerticallyShiftedAngularCoords,_=n(120).radialLabelIndent;e.exports=o({},r,{_updateData:function(e,t){var n=this;r._updateData.call(this,e),!t&&p(n._visible)||(n._visible=!0),n.minValue=n.initialMinValue=n.originalMinValue=p(e.minValue)?e.minValue:0},animate:function(e,t,n){var i=this;i.graphic.animate({x:i.centerX,y:i.centerY,outerRadius:i.radiusOuter,innerRadius:i.radiusInner,startAngle:i.toAngle,endAngle:i.fromAngle},{delay:n,partitionDuration:t},e)},correctPosition:function(e){var t=this;t.correctRadius(e),t.correctLabelRadius(e.radiusOuter+_),t.centerX=e.centerX,t.centerY=e.centerY},correctRadius:function(e){this.radiusInner=e.radiusInner,this.radiusOuter=e.radiusOuter},correctLabelRadius:function(e){this.radiusLabels=e},correctValue:function(e,t,n){var i=this;i.value=(n||i.normalInitialValue)+e,i.minValue=e,i.percent=t,i._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var e=this,t=e._label.getBoundingRect(),n=e._getLabelCoords(e._label),i=e._getVisibleArea();return e._isLabelDrawingWithoutPoints?e._checkLabelPosition(n,t,i):e._getLabelExtraCoord(n,e._checkVerticalLabelPosition(n,t,i),t)},_getLabelPosition:function(e){return e.position},_getLabelCoords:function(e){var t,n,i=this,r=e.getBoundingRect(),o=e.getLayoutOptions(),s=f(i.middleAngle),l=i._getLabelPosition(o),u=i.radiusInner,c=i.radiusOuter,d=i.radiusLabels,h="columns"===l;return"inside"===l?(t=u+(c-u)/2+o.radialOffset,n=i.centerX+t*s.cos-r.width/2):(t=d+o.radialOffset,n=s.cos>.1||h&&s.cos>=0?i.centerX+t*s.cos:s.cos<-.1||h&&s.cos<0?i.centerX+t*s.cos-r.width:i.centerX+t*s.cos-r.width/2),{x:n,y:a(i.centerY-t*s.sin-r.height/2)}},_correctLabelCoord:function(e,t){var n=this,i=n._label,r=i.getBoundingRect(),o=r.width,a=i.getLayoutOptions(),s=n._getVisibleArea(),l=s.maxX-o,u=s.minX,c=h(n.middleAngle),d=n.centerX,f=a.connectorOffset,p=e.x;return"columns"===a.position?(p=c<=90||c>=270?l:u,e.x=p):"inside"!==a.position&&t&&(c<=90||c>=270?p-fd&&(p=d-o-f),e.x=p),e},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(e){var t=this,n=t._label.getBoundingRect(),i=t._correctLabelCoord(n,e);i=t._checkHorizontalLabelPosition(i,n,t._getVisibleArea()),t._label.shift(a(i.x),a(n.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,r=e.y;return e.y+t.height>n.maxY?r=n.maxY-t.height:e.yn.maxX?i=n.maxX-t.width:e.x0?a=r.maxX-t.centerX-t.radiusLabels:"inside"===o?a>r.maxX-r.minX&&(a=r.maxX-r.minX):e&&i.xt.centerX?a=Math.floor((r.maxX-r.minX)/2):i.x+a>r.maxX?a=r.maxX-i.x:i.xi.radiusOuter||0===a)&&(n=l(r/a)*u*(o>0?-1:1),n<0&&(n+=360),d===h&&c(i.toAngle-i.fromAngle)>1e-4||(d>=h?n<=d&&n>=h:!(n>=d&&n<=h)))}})},function(e,t,n){var i=n(3).each,r=n(0).extend,o=n(4).noop,a=n(272),s=n(121),l=r,u=n(1).isDefined,c=Math,d=c.abs,h=c.min,f=c.max,p=c.round,g=20,_=20;e.exports=l({},s,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker;n&&n.attr("visibility")&&n.attr({visibility:null}),i&&i.attr("visibility")&&i.attr({visibility:null})},clearMarker:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker,r=e._emptySettings;n&&n.attr(r),i&&i.attr(r)},_getLabelPosition:function(e){var t,n="inside"===this._options.label.position;return t=this._options.rotated?"top"===e^n?"right":"left":"top"===e^n?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new a.Label(e),this._bottomLabel=new a.Label(e)},_getGraphicBBox:function(e){var t,n=this._options,i=this._getImage(n.image),r="top"===e?this._checkImage(i.top):this._checkImage(i.bottom),o=this._getPositionFromLocation(e);return t=n.visible?r?this._getImageBBox(o.x,o.y):this._getSymbolBBox(o.x,o.y,n.styles.normal.r):{x:o.x,y:o.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?f(this.x,this.minX):h(this.x,this.minX),n=this.y):(t=this.x,n=i?h(this.y,this.minY):f(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return es&&(l=-(t[i]+t[r]-s),u+=l,c+=l),{coord1:u,coord2:c}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),r={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(r.coord2,n.y),t._bottomLabel.shift(r.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(r.coord1,n.y),t._bottomLabel.shift(r.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(n.x,r.coord1),t._bottomLabel.shift(i.x,r.coord2)):this._checkOverlay(n.y,i.y,i.height)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(n.x,r.coord2),t._bottomLabel.shift(i.x,r.coord1))},_drawLabel:function(){var e=this,t=[],n=e._options.rotated?e.x>=e.minX:e.yi,p=c[0]>o&&c[0]>r||c[1]o,s=c[0]=r,n&&(e=a,a=s,s=e)),t.visibleTopMarker=a,t.visibleBottomMarker=s,l},getTooltipParams:function(){var e,t,n=this,i=n._options.rotated,r=i?h(n.x,n.minX):h(n.y,n.minY),o=i?"width":"height",a=n._getVisibleArea(),s=i?a.minX:a.minY,l=i?a.maxX:a.maxY,u=f(s,r),c=h(l,r+n[o]);return i?(t=n.y,e=u+(c-u)/2):(e=n.x,t=u+(c-u)/2),{x:e,y:t,offset:0}},_translate:function(){var e=this,t=e._options.rotated;s._translate.call(e),e.height=t?0:d(e.minY-e.y),e.width=t?d(e.x-e.minX):0},hasCoords:function(){return s.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(e){var t=this;s._updateData.call(t,e),t.minValue=t.initialMinValue=t.originalMinValue=e.minValue},_getImageSettings:function(e,t){return{href:t.url||t.toString(),width:t.width||g,height:t.height||_,translateX:e.translateX,translateY:e.translateY}},getCrosshairData:function(e,t){var n=this,i=n._options.rotated,r=n.minX,o=n.minY,a=n.vx,s=n.vy,l=n.value,u=n.minValue,c=n.argument,h={axis:n.series.axis,x:a,y:s,yValue:l,xValue:c};return i?(h.yValue=c,d(a-e)=d(o-t)&&(h.y=o,h.yValue=u),h},_updateOneMarker:function(e,t){this.graphic&&this.graphic[e]&&this.graphic[e].attr(t)},_updateMarker:function(e,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(e){var t=this,n=t.initialMinValue,i=t.initialValue,r=t.initialArgument,o=e.formatValue(n),a=e.formatValue(i);return{argument:r,argumentText:e.formatValue(r,"argument"),valueText:o+" - "+a,rangeValue1Text:o,rangeValue2Text:a,rangeValue1:n,rangeValue2:i,seriesName:t.series.name,point:t,originalMinValue:t.originalMinValue,originalValue:t.originalValue,originalArgument:t.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:o,coordsIn:function(e,t){var n=this._storeTrackerR(),i=e>=this.x-n&&e<=this.x+n,r=t>=this.y-n&&t<=this.y+n;return this._options.rotated?r&&(i||e>=this.minX-n&&e<=this.minX+n):i&&(r||t>=this.minY-n&&t<=this.minY+n)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValuen?n:i,this.width=i+i%2,this.xCorrection=e.offset},_getMarkerGroup:function(e){var t,n=this;return t=n._isReduction&&n._isPositive?e.reductionPositiveMarkersGroup:n._isReduction?e.reductionMarkersGroup:n._isPositive?e.defaultPositiveMarkersGroup:e.defaultMarkersGroup},_drawMarker:function(e,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),e)},_getSettingsForTracker:function(){var e,t,n,i,r=this,o=r.highY,a=r.lowY,u=r._options.rotated;return o===a&&(o=u?o+d:o-d,a=u?a-d:a+d),u?(e=l(a,o),t=r.x-r.width/2,n=s(a-o),i=r.width):(e=r.x-r.width/2,t=l(a,o),n=r.width,i=s(a-o)),{x:e,y:t,width:n,height:i}},_getGraphicBBox:function(){var e=this,t=e._options.rotated,n=e.x,i=e.width,r=e.lowY,o=e.highY;return{x:t?r:n-c(i/2),y:t?n-c(i/2):o,width:t?o-r:i,height:t?i:r-o}},getTooltipParams:function(e){var t=this;if(t.graphic){var n=l(t.lowY,t.highY),i=u(t.lowY,t.highY),r=t._getVisibleArea(),o=t._options.rotated,a=o?r.minX:r.minY,s=o?r.maxX:r.maxY,c=u(a,n),d=l(s,i),h=t.getCenterCoord();return"edge"===e&&(h[o?"x":"y"]=o?d:c),h.offset=0,h}},getCenterCoord:function(){if(this.graphic){var e,t,n=this,i=l(n.lowY,n.highY),r=u(n.lowY,n.highY),o=n._getVisibleArea(),a=n._options.rotated,s=a?o.minX:o.minY,c=a?o.maxX:o.maxY,d=u(s,i),h=l(c,r),f=d+(h-d)/2;return a?(t=n.x,e=f):(e=n.x,t=f),{x:e,y:t}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var e=this,t=e._options.rotated,n=e._getValTranslator(),i=e._getArgTranslator().translate(e.argument);e.vx=e.vy=e.x=null===i?i:i+(e.xCorrection||0),e.openY=null!==e.openValue?n.translate(e.openValue):null,e.highY=n.translate(e.highValue),e.lowY=n.translate(e.lowValue),e.closeY=null!==e.closeValue?n.translate(e.closeValue):null;var r=l(e.lowY,e.highY)+s(e.lowY-e.highY)/2;e._calculateVisibility(t?r:e.x,t?e.x:r)},getCrosshairData:function(e,t){var n,i,r=this,o=r._options.rotated,a=o?e:t,l=r.argument,u="low";return s(r.lowY-a)=s(r.openY-a)&&(n=r.openY,u="open"),s(n-a)>=s(r.highY-a)&&(n=r.highY,u="high"),i=o?{y:r.vy,x:n,xValue:r[u+"Value"],yValue:l}:{x:r.vx,y:n,xValue:l,yValue:r[u+"Value"]},i.axis=r.series.axis,i},_updateData:function(e){var t=this,n=t._label,i=this._options.reduction.color;t.value=t.initialValue=e.reductionValue,t.originalValue=e.value,t.lowValue=t.originalLowValue=e.lowValue,t.highValue=t.originalHighValue=e.highValue,t.openValue=t.originalOpenValue=e.openValue,t.closeValue=t.originalCloseValue=e.closeValue,t._isPositive=e.openValuee&&(e=n.width),e},0),i=n;return n&&(e.outerLabelsCount++,e.outerLabelsCount>1&&(n+=w.pieLabelSpacing),i+=w.pieLabelSpacing),e.sizes.push(n),e.rSizes.push(i),e.common+=n,e},{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function s(e,t,n,i,r,o){var a,s,l=0,u=e.sizes,c=e.rSizes;for(s=0;s.8?.8:t),t}function c(e,t){e[t.cutLayoutSide]+="horizontal"===t.cutSide?t.width:t.height}function d(e,t){var n=e.cutLayoutSide,i={horizontal:0,vertical:0};switch(n){case"top":case"left":i[e.cutSide]=-t[n];break;case"bottom":case"right":i[e.cutSide]=t[n]}return i}function h(){}function f(e){return new v.WrapperLayoutElement(null,{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom})}function p(e,t,n,i){return(e-t-k-n.left)/i.outerLabelsCount}function g(e,t,n){return e-t.left-(n.outerLabelsCount>0?n.common+k:0)}function _(e,t,n,i,r,l){var u,c=a(n),d=g(r,t,c);return dl&&(i=p(t.centerX,t.radiusOuter,n,r)),s(r,o,e,n,i,t.centerX)},needMoreSpaceForPanesCanvas:function(e,t){var n=this._options,i=n.width,r=n.height,o=n.piePercentage,a=y(o),s=0,l=0;return e.forEach(function(e){var n=e.canvas,u=a?b(n.width,n.height)*o:void 0,c=(a?u:i)-(n.width-n.left-n.right),d=(a?u:r)-(n.height-n.top-n.bottom);t?(s+=c>0?c:0,l=x(d>0?d:0,l)):(s=x(c>0?c:0,s),l+=d>0?d:0)}),(s>0||l>0)&&{width:s,height:l}},layoutElements:function(e,t,n,i,r){this._elements=e,this._probeDrawing(t),this._drawElements(t),n(),this._processAdaptiveLayout(i,r,t,n),this._positionElements(t)},_processAdaptiveLayout:function(e,t,n,i){function r(e,t,i){e.getLayoutOptions()[i]||(n[t.cutLayoutSide]-=t[i],a[i]=a[i]-t[i])}var o=this,a=o.needMoreSpaceForPanesCanvas(e,t),s=this._elements;a&&(s.slice().reverse().forEach(function(e){var t=e.getLayoutOptions(),i=!1;if(t){var o=m({},t);i="vertical"===t.cutSide&&a.width<0||"horizontal"===t.cutSide&&a.height<0||"vertical"===t.cutSide&&a.height>0||"horizontal"===t.cutSide&&a.width>0;var s="horizontal"===t.cutSide?"width":"height";if(i){var l=o.width-a.width,u=o.height-a.height;"height"===s&&a.width<0&&(l=n.width-n.left-n.right),"width"===s&&a.height<0&&(u=n.height-n.top-n.bottom),e.draw(l,u)}r(e,t,s)}}),i(a))},_probeDrawing:function(e){var t=this;this._elements.forEach(function(n){var i=n.getLayoutOptions();if(i){var r={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom};"vertical"===i.cutSide?r.height-=t._options.height:r.width-=t._options.width,n.probeDraw(r.width,r.height),c(e,n.getLayoutOptions())}})},_drawElements:function(e){this._elements.slice().reverse().forEach(function(t){var n=t.getLayoutOptions();if(n){var i={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom},r=n.cutSide,o="horizontal"===r?"width":"height";i[o]=n[o],t.draw(i.width,i.height)}})},_positionElements:function(e){var t={left:0,right:0,top:0,bottom:0};this._elements.slice().reverse().forEach(function(n){var i=n.getLayoutOptions();if(i){var r=i.position,o=i.cutSide,a={horizontal:r.horizontal,vertical:r.vertical};a[o]=T[a[o]],n.position({of:f(e),my:a,at:r,offset:d(i,t)}),t[i.cutLayoutSide]+=i["horizontal"===i.cutSide?"width":"height"]}})}},t.LayoutManager=h},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n=c&&i<=u&&ru&&r>h||i>=c&&i<=u&&r>h?90:ih||i=d&&r<=h?180:0}function h(e,t,n,i,r,o,l){var u=e.width,c=e.height,d=o.arrowWidth,h=o.cornerRadius,f=void 0===h?0:h,p=d/2,g=u/2,_=c/2,w=Math.ceil(t+g),k=Math.floor(t-g),T=Math.floor(n-_),A=Math.ceil(n+_),E=[k,T],O=[w,T],D=[w,A],M=[k,A],I=i<=k?k:w<=i?w:i,P=r<=T?T:A<=r?A:r,L=v(P+p,A),R=m(P-p,T),V=m(I-p,k);f=Math.min(u/2,c/2,f);var B;if(E[1]+=f,O[0]-=f,D[1]-=f,M[0]+=f,!l||k<=i&&i<=w&&T<=r&&r<=A)B=C(E,a(f,1,-1),"L",O,a(f,1,1),"L",D,a(f,-1,1),"L",M,a(f,-1,-1));else if(i>w&&rS/2&&(j=C("L",[V,T,i,r,w,L])),B=C(E,a(f,1,-1),j,"L",D,a(f,-1,1),"L",M,a(f,-1,-1))}else if(i>w&&r>=T&&r<=A){var W;if(R>=O[1]+f&&L<=D[1])W=C(a(f,1,1),"L",[w,R,i,r,w,L],"L",D,a(f,-1,1));else if(R=O[1]+f&&L<=D[1]){var U=O[1]+f-R,Y=U/f,X=O[0]+b(Y)*f,q=O[1]+(1-y(Y))*f;W=C(a(f,b(Y),1-y(Y)),"L",[X,q,i,r,w,L],"L",D,a(f,-1,1))}else if(R=D[1]){var ie=x((O[1]+f-R)/f),re=O[0]+f*b(ie),oe=O[1]+f*(1-y(ie)),ae=x((L-D[1])/f),se=D[0]+f*(b(ae)-1),le=D[1]+f*y(ae);W=C(a(f,b(ie),1-y(ie)),"L",[re,oe,i,r,se,le],s(f,D[0]-f,D[1]+f))}else if(R>O[1]+f&&R<=D[1]&&L>D[1]){var ue=x((L-D[1])/f),ce=D[0]+f*(b(ue)-1),de=D[1]+f*y(ue);W=C(a(f,1,1),"L",[w,R,i,r,ce,de],s(f,D[0]-f,D[1]+f))}else if(R>O[1]+f&&L>D[1]){var he=x((L-D[1])/f),fe=D[0]+f*(b(he)-1),pe=D[1]+f*y(he),ge=x((R-D[1])/f),_e=D[0]+f*(b(ge)-1),me=D[1]+f*y(ge);W=C(a(f,1,1),"L",D,a(f,b(ge)-1,y(ge)),"L",[_e,me,i,r,fe,pe],s(f,D[0]-f,D[1]+f))}B=C(E,a(f,1,-1),"L",O,W,"L",M,a(f,-1,-1))}return C("M",B,"Z")}Object.defineProperty(t,"__esModule",{value:!0}),t.Plaque=void 0;var f=n(0),p=n(1),g=Math,_=g.round,m=g.max,v=g.min,y=g.sin,b=g.cos,x=g.asin,S=g.PI,C=function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e,t){return t.getBBox()},l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(e,t,n,i){return t.move(n,i)};i(this,e),this.widget=n,this.options=t,this.root=r,this.renderContent=o,this.bonded=a,this.measureContent=s,this.moveContentGroup=l}return o(e,[{key:"draw",value:function(e){var t=e.x,n=e.y,i=e.canvas,r=void 0===i?{}:i,o=e.offsetX,a=e.offsetY,s=e.offset,l=void 0===s?0:s,u=this.options,c=u.x,d=u.y,h={xl:r.left,xr:r.width-r.right,width:r.width-r.right-r.left,yt:r.top,yb:r.height-r.bottom,height:r.height-r.bottom-r.top};if(((0,p.isDefined)(t)&&(0,p.isDefined)(n)||(0,p.isDefined)(c)&&(0,p.isDefined)(d))&&(!(0,p.isDefined)(t)||!(t0?u.width:null,b=u.height>0?u.height:null;this.renderContent(this.widget,this._contentGroup,{width:y,height:b});var x=this._contentBBox=this.measureContent(this.widget,this._contentGroup),S=this._size={width:m(y,x.width)+2*u.paddingLeftRight,height:m(b,x.height)+2*u.paddingTopBottom,offset:l},C=g.offsetX,w=g.offsetY,k=2*g.blur+1,T=m(k-C,0),A=m(k+C,0),E=m(k-w,0),O=m(k+w,0);if(this.margins={lm:T,rm:A,tm:E,bm:O},(0,p.isDefined)(c)?(c+=o||0,(0,p.isDefined)(t)||(t=c)):c=(0,p.isDefined)(o)?t+o:h.width0?m(n,function(e,n){n.updateOptions(t),n.validate(),r.push({axis:n})}):r.push({options:t})}),o?v(o,function(e,n){r.some(function(e){return e.axis&&e.axis===n})||i._disposeAxis(e,t)}):o=t?i._argumentAxes=[]:i._valueAxes=[],m(r,function(e,r){var a=r.axis;r.axis&&t?r.axis.isVirtual=r.axis.pane!==n:r.options&&(a=i._createAxis(t,r.options,t?r.options.pane!==n:void 0,t?e:void 0),o.push(a)),a.applyVisualRangeSetter(i._getVisualRangeSetter())})},_disposeAxis:function(e,t){var n=t?this._argumentAxes:this._valueAxes,i=n[e];i&&(i.dispose(),n.splice(e,1))},_prepareStackPoints:function(e,t){var n=e.getPoints(),i=e.getStackName();m(n,function(e,n){var r=n.argument;t[r]||(t[r]={},t[r][null]=[]),i&&!g(t[r][i])&&(t[r][i]=[],m(t[r][null],function(e,n){n.stackName||t[r][i].push(n)})),i?(t[r][i].push(n),t[r][null].push(n)):m(t[r],function(e,t){t.push(n)}),n.stackPoints=t[r][i],n.stackName=i})},_resetStackPoints:function(e){m(e.getPoints(),function(e,t){t.stackPoints=null,t.stackName=null})},_disposeAxes:function(){var e=this,t=e._disposeObjectsInArray;t.call(e,"_argumentAxes"),t.call(e,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var e=this;return(this.series||[]).map(function(t){var n=e._getLegendOptions(t);return n.legendData.series=t,t.getOptions().showInLegend||(n.legendData.visible=!1),n})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var e,t=this;for(e=0;e=f;c--)if(u=D[c],c===f)s(l,f+(l.millisecond?2:1));else if(l[u]){a(l,c);break}}else for(r=S.default.getDatesDifferences(e,t),c=h-1;c>=f;c--)if(u=D[c],r[u]){if(c-f>1){for(d=f+1;d>=0;d--)a(r,d);break}if(o(t,u)){for(d=c-1;d>0;d--)a(r,d);break}}return n?l:r}function o(e,t){var n,i=[e.getMilliseconds(),e.getSeconds(),e.getMinutes(),e.getHours(),e.getDate(),e.getMonth()],r=D.indexOf(t);for(n=0;n=1?1:(0,C.adjust)(1-A(e),e)),(0,b.isDefined)(I)||"discrete"===t.type||!e||10!==t.logarithmBase&&L||("datetime"!==t.dataType&&(0,b.isDefined)(_)?(P.length&&P.indexOf(e)===-1&&(M=u(P,e),_=(0,C.adjust)(A(e-P[M]),e)),s=c(_),s<2&&(s=c(e)),L?(f=(0,w.getAdjustedLog10)(A(e)),f>0?a=O[T(f/3)]||E:f<-4?a=E:v=void 0):s.length>1&&!(0,b.isExponential)(_)?(v=s[1].length,a=O[D]):(0,b.isExponential)(_)&&(m.indexOf(".")!==-1||(0,b.isExponential)(e))?(a=E,v=(0,b.isExponential)(e)?Math.max(A((0,C.getExponent)(e)-(0,C.getExponent)(_)),A((0,C.getPrecision)(e)-(0,C.getPrecision)(_))):A(l(m.split(".")[1])-(0,C.getExponent)(_)+1)):(n=T((0,w.getAdjustedLog10)(_)),o=i=T((0,w.getAdjustedLog10)(A(e))),i-n>=2&&(o=n),D=T(o/3),x=3*D,D<5?(n-x===2&&i>=3&&(D++,x=3*D),a=O[D]):a=O[O.length-1],x>0&&(s=c(_/Math.pow(10,x)),s[1]&&(v=s[1].length))),void 0===a&&void 0===v||(I={type:a,precision:v})):"datetime"===t.dataType&&(a=S.default.getDateFormatByTickInterval(_),t.showTransition&&P.length&&(M=P.map(Number).indexOf(+e),1===P.length&&0===M?a=y.default.getDateFormatByTicks(P):(M===-1?p=u(P,e):(p=0===M?P.length-1:M-1,g=0===M?1:-1),h=r(P[p],e,P[g],a),a=y.default.getDateFormatByDifferences(h,a))),I=d(a))),k(e,I)}function f(e){var t=!1;for(var n in e)e[n]===!0||"hour"===n||t?(e[n]=!1,t=!0):e[n]===!1&&(e[n]=!0);return d(y.default.getDateFormatByDifferences(e))}function p(e,t){var n=!1;for(var i in e)n?e[i]=!1:i===t?n=!0:e[i]=!0;return d(y.default.getDateFormatByDifferences(e))}function g(e,t,n){var i=r(e,t),o=S.default.getDateFormatByTickInterval(n),a=y.default.getDateFormatByDifferences(i,o),s=d(a),l=[];if(n in i){var u=p(r(e,t),n),c=k(e,u);c&&l.push(c)}else{var h=f(r(e,t)),g=k(e,h);g&&l.push(g),l.push("".concat(k(e,s)," - ").concat(k(t,s)))}return l.join(", ")}function _(e){if((0,b.isObject)(e)){var t=Object.keys(e),n=t.reduce(function(t,n){return e[n]+t},0);if(1===n){var i=t.filter(function(t){return 1===e[t]})[0];return i.slice(0,i.length-1)}}return e}function m(e,t,n,i){var r=i.dataType,o=i.type,a=i.logarithmBase;if("discrete"===o)return"";if("datetime"===r)return g(e,t,_(n));var s={ticks:[],type:o,dataType:r,tickInterval:n,logarithmBase:a,labelOptions:{}};return"".concat(h(e,s)," - ").concat(h(t,s))}Object.defineProperty(t,"__esModule",{value:!0}),t.smartFormatter=h,t.formatRange=m;var v=n(64),y=i(v),b=n(1),x=n(22),S=i(x),C=n(28),w=n(11),k=y.default.format,T=Math.floor,A=Math.abs,E="exponential",O=["fixedPoint","thousands","millions","billions","trillions",E],D=["millisecond","second","minute","hour","day","month","year"]},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return u(e)||l(e,t)||a(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0?Array.apply(null,new Array(o+1)).map(function(e,t){return a*t}):[],tickInterval:a}}}function d(e){return function(t,n,i,r){var o=(0,K.getCategoriesInfo)(t.categories,t.min,t.max).categories;return{ticks:o,tickInterval:ae(o.length*e.axisDivisionFactor/n)}}}function h(e,t,n,i){return(0,Q.isDefined)(i)?i?e:t:function(i,r,o,a){var s=e(i,r);return i-s===0||!(0,Q.isDefined)(o)||n(i,s,r,o)||a?s:t(i,r)}}function f(e,t,n,i){var r=n-re(t-e),o=ie.max(ae(i.businessDelta/n),2),a=i.screenDelta/(o*n),s=ie.round(a*r),l=(0,K.getLog)(a*n/i.axisDivisionFactor,2)+1,u=(i.isSpacedMargin?2:1)*l,c=ie.round(pe*u);return i.businessDelta>i.interval&&s>=c}function p(e){return function(t,n,i,r){return f((0,K.getLog)(t,e),(0,K.getLog)(n,e),i,r)}}function g(e,t,n,i){return f(e.valueOf(),t.valueOf(),ne(n),i)}function _(e,t,n,i,r){var o=i.screenDelta/i.businessDelta,a=r?1:-1,s=r?-1:1;return e&&o*(t*a+n*s)=1||!h&&c>0)&&(d=w(c,o,h)),(!n||!i&&nn&&(n=u)),n}function w(e,t,n){var i=S(e,-1),r=1;return t=t||le,e>0&&(e/=i,r=t.concat(10*t[0]).map(function(e){return 10*e}).reduce(function(t,r){return.1===i&&n&&25===r?t:t=r?i:t},0)}function T(e){return function(t,n,i,r,o,a,s,l,u,c){var d=x(t,n,o),h=0,f=A(e);return r&&i||(d>0&&(h=f(d,a)),(!i||!r&&ii&&(i=c)),i}}function A(e){return function(t,n){var i=S(t);return n=n||ue,!e&&i<1&&(i=1),n.concat(10*n[0]).reduce(function(e,n){return e2?de:ce}function O(e,t){return function(n,i){return!n&&e<=te(t,i)&&(n={},n[t+"s"]=i),n}}function D(e,t){return function(n,i){var r=t*i;return!n&&e<=te("year",r)&&2.5!==r&&(n={years:r}),n}}function M(e,t,n,i,r,o,a,s,l,u){if(!i||!n){var c=I(x(e,t,r),o,null,l);(!n||!i&&ne(n)<=ne(c))&&(n=c)}return!i&&u&&(u=I(u,o,null,l),ne(u)>ne(n)&&(n=u)),n}function I(e,t,n,i){var r;t=t||E(i);for(var o in t)if(r=t[o].reduce(O(e,o),r))break;if(!r)for(var a=1;!(r=le.reduce(D(e,a),r));a*=10);return r}function P(e,t,n,i){return M(e,t,n,!0,i,he)}function L(e,t){return function(n){return n?t(re((0,J.adjust)(e(n[1])-e(n[0]))))||void 0:void 0}}function R(e,t,n){return Z.default.addInterval(e,t,n)}function V(e){return function(t,n,i){return ve(e)(R((0,K.getLog)(t,e),n,i))}}function B(e,t,n){return R(e,t,n)}function F(e,t,n){return t=t.filter(function(e){return!e.gapSize}),function(i,r,o){var a;return i=e(i,r,o),t.every(function(t){return i>=e(t.from,r)&&e(i,r)_&&(v=t(g,n(c/2),m),v>_&&(s=!0,v=t(g,a,m,s))),v=p(v);for(var b;v<_&&v!==b||f&&v<=_;)y.push(v),b=v,v=p(e(v,a));return(s||v-_===0||!(0,Q.isDefined)(s)&&i(_,v,a,m))&&y.push(v),y.length>0&&(y[0].valueOf()>0&&r(o.checkMinDataVisibility,g,y[0],m,!0)?(v=e(y[0],a,!0),y.unshift(v)):y[y.length-1].valueOf()<0&&r(o.checkMaxDataVisibility,_,y[y.length-1],m,!1)&&(v=e(y[y.length-1],a),y.push(v))),y}}function H(e,t,n,i,r){return function(o,a,s,l,u,c,d){var h=u/l,f=s[s.length-1],p=s[0],g=d-1; if(c&&c.length&&(t=F(t,c,n)),l=e(l,p,h),0===l)return[];for(var _=i(n(o,u,o),l),m=[];_0);)_>=o&&m.push(_),g--,_=t(_,l);var v=s.reduce(function(n,r){if(g=d-1,null===n.prevTick)return n.prevTick=r,n;l=e(l,r,h);for(var o=i(n.prevTick,l);o0);)o!==n.prevTick&&n.minors.push(o),g--,o=t(o,l);return n.prevTick=r,n},{prevTick:null,minors:[]});m=m.concat(v.minors),l=e(l,r(a,u,o),h),_=i(f,l);for(var y;_=n.to)break}return[t[0].concat(r),i]},[[],0]);return n[0].concat(e.slice(n[1]))}return e}function G(e,t){return function(n){var i;return t.every(function(e){return n>=e.from&&n=i+1&&(e.incidentOccurred("W2003"),t=void 0),t}function h(t,i,r,o,a,l,c,h){if(c.majors)return t.breaks=h,t;var f,p=h.filter(function(e){return e.gapSize});return a=e.skipCalculationLimits?a:d(a,r,o),a=n(r,o,a,l,e.axisDivisionFactor,e.numberMultipliers,e.allowDecimals,h.length,p[0]&&p[0].gapSize.days,e.minTickInterval),e.skipTickGeneration||(f=s(i,a,e.endOnTick,p,h,r,o,e.axisDivisionFactor,e.generateExtraTick),h=u(h,f,a),f=N(f,h),t.breaks=h,t.ticks=t.ticks.concat(f)),t.tickInterval=a,t}function f(t,n,r,s,u,c,h){if(!e.calculateMinors)return t;if(h.minors)return t;var f=a(t.tickInterval),p=s*f/r,g=t.breaks;return!u&&c?u=o([f/(c+1),f/(c+1)*2]):c=void 0,u=d(u,f,p),u=i(f,p,u,e.minorAxisDivisionFactor),t.minorTicks=N(t.minorTicks.concat(l(n.min,n.max,t.ticks,u,t.tickInterval,g,c)),g),t.minorTickInterval=u,t}return function(n,i,r,o,a,s,l,u){a=a||{};var d=t(n,u),p=c(a);return isNaN(d)||(0!==d||a.majors?(p=h(p,n,d,i,r,o,a,u||[]),!e.skipTickGeneration&&d>0&&(p=f(p,n,d,i,s,l,a))):p.ticks=[n.min]),p}}function W(e,t,n,i){var o=r(t,2),a=o[0],s=o[1];return(!(0,Q.isDefined)(a)||re(i(e)-i(a))/n>.25)&&((0,Q.isDefined)(s)?a=s:(0,Q.isDefined)(a)||(a=e)),a}function U(e,t,n){return function(i,r,o){var a=e(o),s=.5*a;return i.reduce(function(e,i){var o=r.filter(function(e){return e<=i.from}),l=n(W(i.from,[].concat(o[o.length-1],r[o.length]),a,t),s);o=r.filter(function(e){return e>=i.to});var u=n(W(i.to,[].concat(o[0],r[r.length-o.length-1]),a,t),-s);return t(u)-t(l)0;)i=B(i,n);return i}var i=L(_e,Z.default.convertMillisecondsToDateUnits);return j(e,y,M,P,i,i,ne,z(B,h(t,n,g,e.endOnTick),I,g,v),H(_e,B,t,B,_e),U(ne,_e,function(e,t){return new Date(e.getTime()+t)}))}var K=n(11),$=n(22),Z=i($),Q=n(1),J=n(28),ee=n(0),te=Z.default.convertDateUnitToMilliseconds,ne=Z.default.dateToMilliseconds,ie=Math,re=ie.abs,oe=ie.floor,ae=ie.ceil,se=ie.pow,le=[1,2,2.5,5],ue=[1,2,3,5],ce={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},de=(0,ee.extend)({},ce,{day:[1]}),he={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},fe=[2,4,5,8,10],pe=3,ge=6e4,_e=function(e){return e},me=function(e){return function(t){return(0,K.getLog)(t,e)}},ve=function(e){return function(t){return se(e,t)}},ye=function(e,t,n){return function(i,r){return(0,J.adjust)(e(t((0,J.adjust)(n(i)/r))*r))}};t.tickGenerator=function(e){var t;return t=e.rangeIsEmpty?c(e):"discrete"===e.axisType?d(e):"logarithmic"===e.axisType?X(e):"datetime"===e.dataType?q(e):Y(e)}},function(e,t,n){function i(e){return{stroke:e.color,"stroke-width":e.width,"stroke-opacity":e.opacity,opacity:1}}function r(e,t,n,r,s,l,u){function c(t){var n=e._textFontStyles,i=y.customizeColor;return i&&i.call&&(n=a({},e._textFontStyles,{fill:i.call(t,t)})),n}function d(t,n){var i=e.formatHint(t.value,y,n);o(i)&&""!==i&&t.label.setTitle(i)}var h=u||e._tickOffset,f=e._axisLineGroup,p=e._axisElementsGroup,g=i(n),_=i(r),m=/^\s+$/,v=e.getOptions(),y=v.label,b=e._textOptions;return function(i){var a={value:i,updateValue:function(e){this.value=i=e},initCoords:function(){this.coords=e._getTranslatedValue(i,h),this.labelCoords=e._getTranslatedValue(i)},saveCoords:function(){this._storedCoords=this.coords,this._storedLabelsCoords=this.labelCoords},drawMark:function(t){n.visible&&s!==i&&(e.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(f),e.sharp(this.mark,e.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(t)):(this.mark=e._createPathElement([],g,e.getSharpDirectionByCoords(this.coords)).append(f),this.updateTickPosition(t))))},setSkippedCategory:function(e){s=e},_updateLine:function(t,n,i,r,o){if(t){if(null===n.points||null===n.r)return void t.remove();r&&i&&null!==i.points?(n.opacity=1,t.attr(i),t.animate(n)):(n.opacity=r?0:1,t.attr(n),r&&t.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&e._rotateTick(t,this.coords,o)}},updateTickPosition:function(t,i){this._updateLine(this.mark,{points:e._getTickMarkPoints(a.coords,n.length,t)},this._storedCoords&&{points:e._getTickMarkPoints(a._storedCoords,n.length,t)},i,!1)},drawLabel:function(n){var r=y.visible&&!l&&!e.getTranslator().getBusinessRange().isEmpty()&&!e.areCoordsOutsideAxis(this.labelCoords);if(!r)return void(this.label&&this.label.remove());var a=e.formatLabel(i,y,n);return this.label?(this.label.attr({text:a,rotate:0}).append(p),d(this,n),void this.updateLabelPosition()):void(o(a)&&""!==a&&!m.test(a)&&(this.label=t.text(a).css(c(this)).attr(b).data("chart-data-argument",this.value).append(p),this.updateLabelPosition(),d(this,n)))},fadeOutElements:function(){var t={opacity:1},n={opacity:0},i={partitionDuration:.5};this.label&&this._fadeOutLabel(),this.grid&&this.grid.append(e._axisGridGroup).attr(t).animate(n,i),this.mark&&this.mark.append(e._axisLineGroup).attr(t).animate(n,i)},_fadeInLabel:function(){var t=e._renderer.g().attr({opacity:0}).append(e._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.label.append(t)},_fadeOutLabel:function(){var t=e._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(e._axisElementsGroup);this.label.append(t)},updateLabelPosition:function(e){this.label&&(e&&this._storedLabelsCoords?(this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y})):(this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y}),e&&this._fadeInLabel()))},drawGrid:function(t){r.visible&&s!==this.value&&(this.grid?(this.grid.append(e._axisGridGroup),e.sharp(this.grid,e.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=t(this,_),this.grid&&this.grid.append(e._axisGridGroup)))},updateGridPosition:function(t){this._updateLine(this.grid,e._getGridPoints(a.coords),this._storedCoords&&e._getGridPoints(this._storedCoords),t,!0)},removeLabel:function(){this.label.remove(),this.label=null}};return a}}var o=n(1).isDefined,a=n(0).extend;t.tick=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){var n,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),e[t])for(i=0;is&&(s=[a,a=s][0]),e.length&&al.to&&(l.to=s>r?r:s,l.gapSize&&(l.gapSize=void 0,l.cumulativeWidth+=o)):(a>=i&&ai)&&s-a=i?a:i,s=s<=r?s:r,n={from:a,to:s,cumulativeWidth:(l?l.cumulativeWidth:0)+o},t.gapSize&&(n.gapSize=A.default.convertMillisecondsToDateUnits(s-a),n.cumulativeWidth=l?l.cumulativeWidth:0),e.push(n)),e):e},[])}function s(e,t,n){var i,r=e;return e=B(e,n),t=B(t,n),i=A.default.getSequenceByInterval(e,t,n),i.length&&r>i[0]&&(i=i.slice(1)),i}function l(e){var t="start";return"center"===e&&(t="center"),"right"===e&&(t="end"),t}function u(e){var t="start";return"center"===e&&(t="center"),"bottom"===e&&(t="end"),t}function c(e){var t=V(e);return"quarter"===t&&(t=V(t)),t}function d(e,t,n,i){var o=i,a=t&&A.default.getDatesDifferences(t,e);return t&&"year"!==n&&(r(a,n),o=(0,k.getDateFormatByDifferences)(a)),o}function h(e,t){return t.reduce(function(t,n){return z(t,e(n))},0)}function f(e,t){t=F.abs(t),t=t%180>=90?90-t%90:t%90;var n=t*(F.PI/180);return n>=F.atan(e.height/e.width)?e.height/F.abs(F.sin(n)):e.width}function p(e){return e.reduce(function(e,t){return z(e,t.paddingTopBottom)},0)}function g(e,t,n){return e.some(function(e){return e.label.verticalAlignment===t})&&n||0}function _(e){return F.abs(e.x)||0}function m(e){return F.abs(e.width-F.abs(e.x))||0}function v(e,t,n){var i,r,o,a,s,l=null,u=[];for(i=1,r=e.length;i=0?(!l||s>l.length)&&(l={start:o,end:a,length:s}):(l&&s=g&&!(d<=_[b].length);b++)d-=_[b].length,(d>m||d<-m)&&(u.push({from:_[b].start,to:_[b].end}),g=Y*d);return o(u),u}function b(e,t,n,i,r,o,a){var s=a?"bezier":"line",l=e.g().append(t);return function(t,u){e.path(n(x(i,r,o,t,a)),s).attr(u).append(l)}}function x(e,t,n,i,r){if(!r)return[e,t+i,n,t+i];t+=i;var o,a=t+q,s=t+X,l=t+K,u=[[e,s]];for(o=e;o1||1===p.length&&ao.end)?e.hideLabel():t._checkMarkersPosition(r,e,s)?s=e:e.hide())}),this._dateMarkers.forEach(function(t){if(t.label){var o=t.labelBBox,a=t.y+n.textTopIndent-o.y;t.label.attr({translateX:r?t.x-i-o.x-o.width:t.x+i-o.x,translateY:a+e})}t.line&&t.line.attr({translateY:e})}),t._initializeMarkersTrackers(e),e+n.topIndent+n.separatorHeight},_checkMarkersPosition:function(e,t,n){return void 0===n||(e?t.xn.getEnd())},_initializeMarkersTrackers:function(e){var t=this,n=t._options.marker.separatorHeight,i=t._renderer,r=this._translator.getBusinessRange(),o=t._getCanvasStartEnd(),a=t._axisElementsGroup;t._markerTrackers=this._dateMarkers.filter(function(e){return!e.hidden}).map(function(t,s,l){var u=l[s+1]||{x:o.end,date:r.max},c=t.x,d=t.y+e,h=i.path([c,d,c,d+n,u.x,d+n,u.x,d,c,d],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(a);return h.data("range",{startValue:t.date,endValue:u.date}),t.title&&h.setTitle(t.title),h})},_getLabelFormatOptions:function(e){var t=this,n=t._markerLabelOptions;return n||(t._markerLabelOptions=n=(0,E.extend)(!0,{},t._options.marker.label)),(0,P.isDefined)(t._options.marker.label.format)||(n.format=e),n},_adjustConstantLineLabels:function(e){var t=this,n=t._options.position,i=t.getCanvas(),r=i.left,o=i.width-i.right,a=i.top,s=i.height-i.bottom,l=a+(s-a)/2,u=r+(o-r)/2,c=0;return e.forEach(function(e){var i,d,h=t._isHorizontal,f=e.options,p=f.paddingTopBottom,g=f.paddingLeftRight,_=f.label,m=_.verticalAlignment,v=_.horizontalAlignment,y="inside"===_.position,b=e.label,x=e.labelBBox;if(null!==b&&!x.isEmpty){if(h)if(y)switch(i=v===G?e.coord-g-x.x-x.width:e.coord+g-x.x,m){case W:d=l-x.y-x.height/2;break;case N:d=s-p-x.y-x.height;break;default:d=a+p-x.y}else n===m&&(c=z(c,x.height+p)),i=e.coord-x.x-x.width/2,d=m===N?s+p-x.y:a-p-x.y-x.height;else if(y)switch(d=m===N?e.coord+p-x.y:e.coord-p-x.y-x.height,v){case W:i=u-x.x-x.width/2;break;case j:i=o-g-x.x-x.width;break;default:i=r+g-x.x}else n===v&&(c=z(c,x.width+g)),d=e.coord-x.y-x.height/2,i=v===j?o+g-x.x:r-g-x.x-x.width;b.attr({translateX:i,translateY:d})}}),c},_drawConstantLinesForEstimating:function(e){var t=this,n=this._renderer,i=n.g();return e.forEach(function(e){t._drawConstantLineLabelText(e.label.text,0,0,e.label,i).attr({align:"center"})}),i.append(n.root)},_estimateLabelHeight:function(e,t){var n=e.height,i=t.drawingType;if("stagger"!==this._validateDisplayMode(i)&&"stagger"!==this._validateOverlappingMode(t.overlappingBehavior,i)||(n=2*n+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var r=I.default.getCosAndSin(t.rotationAngle);n=n*r.cos+e.width*r.sin}return n&&(n+t.indentFromAxis||0)||0},estimateMargins:function(e){this.updateCanvas(e);var t=this,n=t._getViewportRange(),i=this._createTicksAndLabelFormat(n),r=i.ticks,o=i.tickInterval,a=this._options,s=t._outsideConstantLines.filter(function(e){return e.labelOptions.visible}).map(function(e){return e.options}),l=t._renderer.root,u=a.label.visible&&!n.isEmpty()&&r.length,c=u&&t.formatLabel(r[r.length-1],a.label,void 0,void 0,o,r),d=u&&t._renderer.text(c,0,0).css(t._textFontStyles).attr(t._textOptions).append(l),h=t._drawTitleText(l,{x:0,y:0}),f=t._drawConstantLinesForEstimating(s),v=d&&d.getBBox()||{x:0,y:0,width:0,height:0},y=h&&h.getBBox()||{x:0,y:0,width:0,height:0},b=f.getBBox(),x=y.height?y.height+a.title.margin:0,S=t._estimateLabelHeight(v,a.label),C=b.height?b.height+p(s):0,w=S+x,k={left:z(_(v),_(b)),right:z(m(v),m(b)),top:("top"===a.position?w:0)+g(s,"top",C),bottom:("top"!==a.position?w:0)+g(s,"bottom",C)};return d&&d.remove(),h&&h.remove(),f&&f.remove(),k},_checkAlignmentConstantLineLabels:function(e){var t=e.position,n=(e.verticalAlignment||"").toLowerCase(),i=(e.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(n=n===N?N:H,i=W):(n=n===W?W:n===N?N:H,i=i===G?G:j):"outside"===t?(n=W,i=i===G?G:j):(n=n===N?N:H,i=i===j?j:i===W?W:G),e.verticalAlignment=n,e.horizontalAlignment=i},_getConstantLineLabelsCoords:function(e,t){var n=this,i=e,r=e;return n._isHorizontal?r=n._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:i=n._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:i,y:r}},_getAdjustedStripLabelCoords:function(e){var t=e.options,n=t.paddingTopBottom,i=t.paddingLeftRight,r=t.label.horizontalAlignment,o=t.label.verticalAlignment,a=e.labelBBox,s=a.height,l=a.width,u=e.labelCoords,c=u.y-a.y,d=u.x-a.x;return o===H?c+=n:o===W?c-=s/2:o===N&&(c-=n+s),r===G?d+=i:r===W?d-=l/2:r===j&&(d-=i+l),{translateX:d,translateY:c}},_adjustTitle:function(e){if(e=e||0,this._title){var t=this,n=t._options,i=n.position,r=n.title.margin,o=t._title,a=o.bBox,s=a.x,l=a.y,u=a.width,c=a.height,d=t._axisPosition,h=d-r-e,f=d+r+e,p={};t._isHorizontal?i===H?p.translateY=h-(l+c):p.translateY=f-l:i===G?p.translateX=h-(s+u):p.translateX=f-s,o.element.attr(p)}},_checkTitleOverflow:function(e){if(this._title||e){var t=this._getScreenDelta(),n=e?{bBox:e.getBBox(),element:e}:this._title,i=this._options.title,r=n.bBox;if((this._isHorizontal?r.width:r.height)>t)n.element.setMaxSize(t,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap;else{var o=n.originalSize&&t>(this._isHorizontal?n.originalSize.width:n.originalSize.height);!this._wrapped&&o&&n.element.restoreText()}}},coordsIn:function(e,t){var n=this.getCanvas(),i=this._options.isHorizontal,r=this._options.position,o=i?t:e;return!(i&&(en.width-n.right)||!i&&(tn.height-n.bottom))&&(i&&r===R.default.top||!i&&r===R.default.left?on[i?"height":"width"]-n[r])},_boundaryTicksVisibility:{min:!0,max:!0},_setVisualRange:function(e,t){var n=this.adjustRange(I.default.getVizRangeObject(e));t?((0,P.isDefined)(n.startValue)&&(this._viewport.startValue=n.startValue),(0,P.isDefined)(n.endValue)&&(this._viewport.endValue=n.endValue)):this._viewport=n},applyVisualRangeSetter:function(e){this._visualRange=e},adjust:function(e){var t=this,n=t._seriesData,i={min:n.min,max:n.max};e||(i=t._series.filter(function(e){return e.isVisible()}).reduce(function(e,t){var n=t.getViewport();return e.min=(0,P.isDefined)(n.min)?e.minn.max?e.max:n.max:e.max,t.showZero&&(e=new w.default.Range(e),e.correctValueZeroLevel()),e},{})),(0,P.isDefined)(i.min)&&(0,P.isDefined)(i.max)&&(n.minVisible=i.min,n.maxVisible=i.max),t._translator.updateBusinessRange(t.adjustViewport(n)),t._breaks=t._getScaleBreaks(t._options,{minVisible:n.minVisible,maxVisible:n.maxVisible},t._series,t.isArgumentAxis)},hasWrap:function(){return this._wrapped},getAxisPosition:function(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(e,t,n){var i,r,o=this,a=o._orthogonalPositions,s=o._isHorizontal,c=n.horizontalAlignment,d=n.verticalAlignment;return s?(c===W?i=e+(t-e)/2:c===G?i=e:c===j&&(i=t),r=a[u(d)]):(i=a[l(c)],d===H?r=e:d===W?r=t+(e-t)/2:d===N&&(r=t)),{x:i,y:r}},_getTranslatedValue:function(e,t){var n=this._translator.translate(e,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,r=this._isHorizontal;return{x:r?n:i,y:r?i:n}},areCoordsOutsideAxis:function(e){var t=this._isHorizontal?e.x:e.y,n=this.getVisibleArea();return tn[1]},_getSkippedCategory:function(e){var t;return this._options.type===R.default.discrete&&this._tickOffset&&0!==e.length&&(t=e[e.length-1]),t},_getScaleBreaks:function(e,t,n,i){var r=this,s=(e.breaks||[]).map(function(e){return{from:r.parser(e.startValue),to:r.parser(e.endValue)}});return"discrete"!==e.type&&"datetime"===e.dataType&&e.workdaysOnly&&(s=s.concat((0,O.generateDateBreaks)(t.minVisible,t.maxVisible,e.workWeek,e.singleWorkdays,e.holidays))),!i&&"discrete"!==e.type&&"datetime"!==e.dataType&&e.autoBreaksEnabled&&0!==e.maxAutoBreakCount&&(s=s.concat(y(e,n,t))),a(o(s),t,e.breakStyle)},_drawBreak:function(e,t,n,i,r,o){var a=this,s=e-(a._translator.isInverted()?0:i+1),l={"stroke-width":1,stroke:r.borderColor,sharp:r.isWaved?void 0:r.isHorizontal?"h":"v"},u={stroke:r.color,"stroke-width":i},c=a._isHorizontal?S:function(e){return e},d=b(a._renderer,o,c,t,s,n,r.isWaved);d(i/2,u),d(0,l),d(i,l)},_createBreakClipRect:function(e,t){var n,i=this,r=i._canvas,o=t-e;return n=i._isHorizontal?i._renderer.clipRect(r.left,e,r.width,o):i._renderer.clipRect(e,r.top,o,r.height),i._breaksElements=i._breaksElements||[],i._breaksElements.push(n),n.id},_createBreaksGroup:function(e,t){var n=this,i=n._renderer.g().attr({"class":n._axisCssPrefix+"breaks","clip-path":n._createBreakClipRect(e,t)}).append(n._scaleBreaksGroup);return n._breaksElements=n._breaksElements||[],n._breaksElements.push(i),i},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach(function(e){e.dispose()}),this._breaksElements=null},drawScaleBreaks:function(e){var t,n,i,r,o,a=this,s=a._options,l=s.breakStyle,u=s.position,c=a._translator.getBusinessRange().breaks||[];if(a._disposeBreaksGroup(),c&&c.length){var d={color:a._options.containerColor,borderColor:l.color,isHorizontal:a._isHorizontal,isWaved:"straight"!==l.line.toLowerCase()};e?(t=e.start,n=e.end):(t=a._orthogonalPositions.start-(!s.visible||a._axisShift||"left"!==u&&"top"!==u?0:U),n=a._orthogonalPositions.end+(!s.visible||"right"!==u&&"bottom"!==u?0:U));var h=a._createBreaksGroup(t,n);a._axisShift&&s.visible&&(r=a._axisPosition-a._axisShift-U,o=r+2*U,i=a._createBreaksGroup(r,o)),c.forEach(function(e){if(!e.gapSize){var u=a._getTranslatedCoord(e.to);a._drawBreak(u,t,n,l.width,d,h),a._axisShift&&s.visible&&a._drawBreak(u,r,o,l.width,d,i)}})}},_getSpiderCategoryOption:D.noop,shift:function(e){function t(t,n){var i={translateX:0,translateY:0},a=e[t]?e[t]+o:0;return i[r?"translateY":"translateX"]=("left"===t||"top"===t?-1:1)*a,(n[t]||n).attr(i),a}var n=this,i=n._options,r=i.isHorizontal,o=n.getMultipleAxesSpacing(),a=n._axisConstantLineGroups;n._axisShift=t(i.position,n._axisGroup),(r?["top","bottom"]:["left","right"]).forEach(function(e){t(e,a.above),t(e,a.under)})}}}},function(e,t,n){function i(e){return e<0||e>1?void 0:e}function r(e){return e<0||e>1?F:e}function o(e,t,n){return e.some(function(e){return n&&!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(t,!0).some(function(e){return e.hasValue()})})}function a(e,t,n,r,o,a,s){e.forEach(function(e){var d=s(t.indexOf(r),t.length),h=e.getPointsByArg(n,!0),f=i(e.getOptions().barPadding),p=e.getOptions().barWidth,g=u(d,o),_=o.width;if(d!==-1){if(O(f)||O(p)){var m=l(a,t.length,1-f,p);_=m.width,g=u(d,m)}c(h,_,g)}})}function s(e,t,n){var i=[],s=[],u={},c=t.barWidth,d=t.barGroupWidth,h=e[0]&&e[0].getArgumentAxis().getTranslator().getInterval(),f=d?h>d?d:h:h*(1-r(t.barGroupPadding));e.forEach(function(e,t){var n,r=e.getStackName()||e.getBarOverlapGroup()||t.toString();for(n in e.pointsByArgument)s.indexOf(n.valueOf())===-1&&s.push(n.valueOf());i.indexOf(r)===-1&&(i.push(r),u[r]=[]),u[r].push(e)}),s.forEach(function(e){var r=i.reduce(function(n,i){return o(u[i],e,t.equalBarWidth)&&n.push(i),n},[]),s=l(f,r.length,c);i.forEach(function(t){a(u[t],r,e,t,s,f,n)})})}function l(e,t,n,i){var r,o;return i?(o=Math.min(i,I(e/t)),r=t>1?I((e-o*t)/(t-1)):0):O(n)?(o=I(e*n/t),r=I(t>1?(e-e*n)/(t-1):0)):(r=I(e/t*.2),o=I((e-r*(t-1))/t)),{width:o>1?o:1,spacing:r,middleIndex:t/2}}function u(e,t){return(e-t.middleIndex+.5)*t.width-(t.middleIndex-e-.5)*t.spacing}function c(e,t,n){R(e,function(e,i){i.correctCoordinates({width:t,offset:n})})}function d(e){return e>=0?"positive":"negative"}function h(e){return e.series.filter(function(e){return e.isVisible()})}function f(e,t,n){var i=(e.positive[t]||{})[n]||0,r=-(e.negative[t]||{})[n]||0;return i+r}function p(e,t,n){var i=(e.positive[t]||{})[n]||0,r=(e.negative[t]||{})[n]||0;return i+r}function g(e){return e?function(e,t){return t-e-1}:function(e){return e}}function _(e){return e[0]&&e[0].getArgumentAxis().getTranslator().isInverted()}function m(){var e=h(this);s(e,this._options,g(_(e)))}function v(e){for(var t,n=e.getPoints(),i=0;i0)break}return D(t)}function y(){var e=this,t=e._options.negativesAsZeroes,n=h(e),i={positive:{},negative:{}},r={left:{},right:{}},o={},a={};n.forEach(function(e){var n=e.getStackName()||e.getBarOverlapGroup(),s=!1,l=v(e)<0?a:o;e._prevSeries=l[n],l[n]=e,e.holes=A(!0,{},r),e.getPoints().forEach(function(o,a,l){var u=o.initialValue&&o.initialValue.valueOf(),c=o.argument.valueOf(),d=u>=0?i.positive:i.negative,h="bar"!==e.type;t&&u<0&&(d=i.positive,u=0,o.resetValue()),d[n]=d[n]||{};var f=d[n];if(f[c]?(h&&o.correctValue(f[c]),f[c]+=u):(f[c]=u,h&&o.resetCorrection()),o.hasValue())s&&(s=!1,r.left[c]=(r.left[c]||0)+(o.value.valueOf()-(isFinite(o.minValue)?o.minValue.valueOf():0)),o._skipSetLeftHole=!0);else{var p=l[a-1];!s&&p&&p.hasValue()&&(c=p.argument.valueOf(),p._skipSetRightHole=!0,r.right[c]=(r.right[c]||0)+(p.value.valueOf()-(isFinite(p.minValue)?p.minValue.valueOf():0))),s=!0}})}),n.forEach(function(e){var t=e.holes;e.getPoints().forEach(function(e){var n=e.argument.valueOf();e.resetHoles(),!e._skipSetLeftHole&&e.setHole(t.left[n]||r.left[n]&&0,"left"),!e._skipSetRightHole&&e.setHole(t.right[n]||r.right[n]&&0,"right"),e._skipSetLeftHole=null,e._skipSetRightHole=null})}),e._stackKeepers=i,n.forEach(function(e){e.getPoints().forEach(function(t){var n=t.argument.valueOf(),o=e.getStackName()||e.getBarOverlapGroup(),a=f(i,o,n),s=p(i,o,n);t.setPercentValue(a,s,r.left[n],r.right[n])})})}function b(){var e=this,t=h(e),n=e._stackKeepers,i={positive:{},negative:{}};R(t,function(t,r){var o=r.getOptions().minBarSize,a=r.getValueAxis().getTranslator(),s=o&&a.getMinBarSize(o),l=r.getStackName();R(r.getPoints(),function(t,r){if(r.hasValue()){var o=r.initialValue&&r.initialValue.valueOf(),u=r.argument.valueOf();e.fullStacked&&(o=o/f(n,l,u)||0);var c=a.checkMinBarSize(o,s,r.value),h=d(c),p=i[h][l]=i[h][l]||{};p[u]?(r.minValue=p[u],p[u]+=c):p[u]=c,r.value=p[u]}})}),e.fullStacked&&x(t,i)}function x(e,t){R(e,function(e,n){var i=n.getStackName?n.getStackName():"default";R(n.getPoints(),function(e,n){var r=f(t,i,n.argument.valueOf());n.value=n.value/r,T(n.minValue)&&(n.minValue=n.minValue/r)})})}function S(){R(this.series,function(e,t){var n=t.getOptions().minBarSize,i=t.getValueAxis().getTranslator(),r=n&&i.getMinBarSize(n);r&&R(t.getPoints(),function(e,t){t.hasValue()&&(t.value=i.checkMinBarSize(t.initialValue,r))})})}function C(){var e=h(this);s(e,{barWidth:null,equalBarWidth:!0,barGroupPadding:.3},g(_(e)))}function w(){var e=h(this);if(e.length){var t,n=this._options,i=e[0].getArgumentAxis().getVisibleArea(),r=e[0].getValueAxis().getVisibleArea(),o=M.min(i[1]-i[0],r[1]-r[0]),a=L(n.minBubbleSize,2),s=L(o*n.maxBubbleSize,2),l=(o*n.maxBubbleSize+n.minBubbleSize)/2,u=1/0,c=-(1/0);R(e,function(e,t){R(t.getPoints(),function(e,t){c=c>t.size?c:t.size,u=ur[o[1]]&&(s[o[0]]-=l[o[0]]+l[o[1]]+u*o[5]-r[o[1]]),o[4]-l[o[3]]/2<0?s[o[2]]-=o[4]-l[o[3]]/2:o[4]+l[o[3]]/2>r[o[3]]&&(s[o[2]]-=o[4]+l[o[3]]/2-r[o[3]]),s}}function o(e,t,n,i){var r=this;r._renderer=e,r._crosshairGroup=i,r._options={},r.update(t,n)}var a=n(11),s=n(0),l=Math,u=l.abs,c=l.min,d=l.max,h=l.floor,f="horizontal",p="vertical",g=8,_=4,m="center",v="right",y="left",b="top",x="bottom";t.getMargins=function(){return{x:g,y:_}},o.prototype={constructor:o,update:function(e,t){var n=this,i=t.canvas;n._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},n._axes=t.axes,n._panes=t.panes,n._prepareOptions(e,f),n._prepareOptions(e,p)},dispose:function(){var e=this;e._renderer=e._crosshairGroup=e._options=e._axes=e._canvas=e._horizontalGroup=e._verticalGroup=e._horizontal=e._vertical=e._circle=e._panes=null},_prepareOptions:function(e,t){var n=e[t+"Line"];this._options[t]={visible:n.visible,line:{stroke:n.color||e.color,"stroke-width":n.width||e.width,dashStyle:n.dashStyle||e.dashStyle,opacity:n.opacity||e.opacity,"stroke-linecap":"butt"},label:(0,s.extend)(!0,{},e.label,n.label)}},_createLines:function(e,t,n){for(var i=[],r=this._canvas,o=[r.left,r.top,r.left,r.top],a=0;a<2;a++)i.push(this._renderer.path(o,"line").attr(e).sharp(t).append(n));return i},render:function(){var e=this,t=e._renderer,n=e._options,i=n.vertical,r=n.horizontal,o=r.visible?r.line:i.line,a={stroke:o.stroke,"stroke-width":o["stroke-width"],dashStyle:o.dashStyle,opacity:o.opacity},s=e._canvas;e._horizontal={},e._vertical={},e._circle=t.circle(s.left,s.top,0).attr(a).append(e._crosshairGroup),e._horizontalGroup=t.g().append(e._crosshairGroup),e._verticalGroup=t.g().append(e._crosshairGroup),i.visible&&(e._vertical.lines=e._createLines(i.line,"h",e._verticalGroup),e._vertical.labels=e._createLabels(e._axes[0],i,!1,e._verticalGroup)),r.visible&&(e._horizontal.lines=e._createLines(r.line,"v",e._horizontalGroup),e._horizontal.labels=e._createLabels(e._axes[1],r,!0,e._horizontalGroup)),e.hide()},_createLabels:function(e,t,n,i){var r,o,s,l,u,c=this,d=c._canvas,h=c._renderer,f=[],p=t.label;return p.visible&&e.forEach(function(e){var c=e.getOptions().position;if(!e.getTranslator().getBusinessRange().isEmpty()){u=e.getLabelsPosition(),n?(o=d.top,r=u):(r=d.left,o=u);var g=c===b||c===x?m:c===v?y:v;l=h.rect(0,0,0,0).attr({fill:p.backgroundColor||t.line.stroke}).append(i),s=h.text("0",0,0).css((0,a.patchFontOptions)(t.label.font)).attr({align:g,"class":p.cssClass}).append(i),f.push({text:s,background:l,axis:e,options:p,pos:{coord:u,side:c},startXY:{x:r,y:o}})}}),f},_updateText:function(e,t,n,r,o){var a=this;n.forEach(function(n){var s=n.axis,l=n.startXY,u=n.text,c=n.background,d="";s.name&&s.name!==t||(d=s.getFormattedValue(e,n.options,r)),d?(u.attr({text:d,x:l.x,y:l.y}),u.attr(o(u.getBBox(),n.pos.side,l)),a._updateLinesCanvas(n),c.attr(i(u.getBBox()))):(u.attr({text:""}),c.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(e){var t=e.pos.side,n=e.pos.coord,i=this._linesCanvas,r=this._canvas;i[t]=i[t]!==r[t]&&u(i[t]-r[t])=e&&i.top<=t&&i.bottom>=t)return r[n].clipRect;return{id:null}},show:function(e){var t=this,n=e.point,i=n.getCrosshairData(e.x,e.y),o=n.getPointRadius(),a=t._horizontal,s=t._vertical,l=o?o+3:0,u=t._canvas,c=h(i.x),d=h(i.y);c>=u.left&&c<=u.right&&d>=u.top&&d<=u.bottom?(t._crosshairGroup.attr({visibility:"visible"}),t._resetLinesCanvas(),t._circle.attr({cx:c,cy:d,r:l,"clip-path":t._getClipRectForPane(c,d).id}),a.lines&&(t._updateText(i.yValue,i.axis,a.labels,n,r(c,d,!0,u)),t._updateLines(a.lines,c,d,l,!0),t._horizontalGroup.attr({translateY:d-u.top})),s.lines&&(t._updateText(i.xValue,i.axis,s.labels,n,r(c,d,!1,u)),t._updateLines(s.lines,c,d,l,!1),t._verticalGroup.attr({translateX:c-u.left}))):t.hide()}},t.Crosshair=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return{type:e.type,name:e.name,x:e.x,y:e.y,value:e.value,argument:e.argument,axis:e.axis,series:e.series,options:e,offsetX:e.offsetX,offsetY:e.offsetY,draw:function(n,i){var r=this,o=n._renderer.g().append(i);this.plaque=new f.Plaque(e,n,o,t.bind(this),(0,u.isDefined)(e.value)||(0,u.isDefined)(e.argument)),this.plaque.draw(n._getAnnotationCoords(this)),e.allowDragging&&o.on(k,{immediate:!0},function(e){r._dragOffsetX=r.plaque.x-e.pageX,r._dragOffsetY=r.plaque.y-e.pageY}).on(T,function(e){r.plaque.move(e.pageX+r._dragOffsetX,e.pageY+r._dragOffsetY)}).on(A,function(e){r.offsetX=(r.offsetX||0)+e.offset.x,r.offsetY=(r.offsetY||0)+e.offset.y})},hitTest:function(e,t){return this.plaque.hitTest(e,t)},showTooltip:function(e,t){var n=t.x,i=t.y;e.annotation!==this?e.show(this.options,{x:n,y:i},{target:this.options},this.options.customizeTooltip)&&(e.annotation=this):e.move(n,i)}}}function o(e){return r(e,function(t,n,i){var r=i.width,o=i.height,a=t._renderer.text(e.text).css((0,h.patchFontOptions)(e.font)).attr({"class":e.cssClass}).append(n);((0,u.isDefined)(r)||(0,u.isDefined)(o))&&a.setMaxSize(r,o,{wordWrap:e.wordWrap,textOverflow:e.textOverflow})})}function a(e){var t=e.image||{},n=t.width,i=t.height,o=t.url,a=t.location;return r(e,function(e,t,r){var s=r.width,l=r.height,u=s>0?Math.min(n,s):n,c=l>0?Math.min(i,l):i;e._renderer.image(0,0,u,c,o,a||"center").append(t)})}function s(e,t,n){var i=(0,d.extend)(!0,{},t,e);return n&&n.call&&(i=(0,d.extend)(!0,i,n(e))),"image"===i.type?a(i):"text"===i.type?o(i):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.plugins=t.__test_utils=t.createAnnotations=void 0;var l=n(10),u=n(1),c=n(108),d=n(0),h=n(11),f=n(405),p=n(23),g=i(p),_=n(56),m=i(_),v=n(8),y=n(5),b=i(y),x="annotations",S="."+x,C=(0,v.addNamespace)([g.default.down,g.default.move],x),w=(0,v.addNamespace)(g.default.up,x),k=m.default.start+S,T=m.default.move+S,A=m.default.end+S,E=t.createAnnotations=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e.reduce(function(e,i){var r=s(i,t,n);return r&&e.push(r),e},[])},O={name:"annotations_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t,n={offsetX:e.offsetX,offsetY:e.offsetY},i=this._options.rotated?"y":"x",r=this._options.rotated?"x":"y",o=this.getArgumentAxis(),a=o.validateUnit(e.argument),s=this.getValueAxis(e.axis),l=(0,u.isDefined)(s)?s.pane:void 0;if(e.series&&(t=this.series.filter(function(t){return t.name===e.series})[0],s=t&&t.getValueAxis(),(0,u.isDefined)(s)&&(l=s.pane)),(0,u.isDefined)(a)){if(t){var c=t.getPointCenterByArg(a);c&&(n[i]=c[i])}else n[i]=o.getTranslator().translate(a);!(0,u.isDefined)(l)&&(l=o.pane)}var d=s&&s.validateUnit(e.value);return(0,u.isDefined)(d)&&(n[r]=s&&s.getTranslator().translate(d),!(0,u.isDefined)(l)&&(0,u.isDefined)(s)&&(l=s.pane)),n.canvas=this._getCanvasForPane(l),(0,u.isDefined)(n[i])&&!(0,u.isDefined)(d)&&((0,u.isDefined)(s)||(0,u.isDefined)(t)?(0,u.isDefined)(s)&&!(0,u.isDefined)(t)?n[r]=this._argumentAxes.filter(function(e){return e.pane===s.pane})[0].getAxisPosition():(0,u.isDefined)(t)&&t.checkSeriesViewportCoord(o,n[i])&&(n[r]=t.getSeriesPairCoord(n[i],!0)):n[r]=o.getAxisPosition()),!(0,u.isDefined)(a)&&(0,u.isDefined)(n[r])&&((0,u.isDefined)(s)&&!(0,u.isDefined)(t)?n[i]=s.getAxisPosition():(0,u.isDefined)(t)&&t.checkSeriesViewportCoord(s,n[r])&&(n[i]=t.getSeriesPairCoord(n[r],!1))),n},_annotationsPointerEventHandler:function(e){var t=e.originalEvent||{},n=t.touches&&t.touches[0]||{},i=this._renderer.getRootOffset(),r={x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY},o=this._annotations.items.filter(function(e){return e.hitTest(r.x-i.left,r.y-i.top)})[0];return o&&o.options.tooltipEnabled?(this.hideTooltip(),this.clearHover(),o.options.allowDragging&&e.type===g.default.down&&(this._annotations._hideToolTipForDrag=!0),void(this._annotations._hideToolTipForDrag||(o.showTooltip(this._annotations.tooltip,r),e.stopPropagation()))):void this._annotations.hideTooltip()}}},D={name:"annotations_core",init:function(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new c.Tooltip({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element()}),hideTooltip:function(){this.tooltip.annotation=null,this.tooltip.hide()}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions());var e=(0,d.extend)({},this._themeManager.getOptions("tooltip"));e.customizeTooltip=void 0,this._annotations.tooltip.update(e)},dispose:function(){this._annotationsGroup.linkRemove().linkOff(),b.default.off((0,l.getDocument)(),S),this._annotationsGroup.off(S),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure:function(){var e=this;this._annotationsGroup=this._renderer.g().attr({"class":"".concat(this._rootClassPrefix,"-annotations")}).linkOn(this._renderer.root,"annotations").linkAppend(),b.default.on((0,l.getDocument)(),C,function(){return e._annotations.hideTooltip()}),b.default.on((0,l.getDocument)(),w,function(t){e._annotations._hideToolTipForDrag=!1,e._annotationsPointerEventHandler(t)}),this._annotationsGroup.on(C,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements:function(){var e=this;this._annotationsGroup.clear(),this._annotations.items.forEach(function(t){return t.draw(e,e._annotationsGroup)})},_stopCurrentHandling:function(){this._annotations.hideTooltip()}},members:{_buildAnnotations:function(){this._annotations.items=[];var e=this._getOption("annotations");e&&e.length&&(this._annotations.items=E(e,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation")))},_getAnnotationCoords:function(){return{}}},customize:function(e){e.addChange({code:"ANNOTATIONITEMS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),e.addChange({code:"ANNOTATIONSSETTINGS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),e.addChange({code:"ANNOTATIONS",handler:function(){this._buildAnnotations(),this._change(["FORCE_RENDER"])},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]};t.plugins={core:D,chart:O}},function(e,t,n){function i(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3])}var r=Number;i.prototype={constructor:i,setDomain:function(e,t){var n=this;return n._domain1=r(e),n._domain2=r(t),n._domainDelta=n._domain2-n._domain1,n},setCodomain:function(e,t){var n=this;return n._codomain1=r(e),n._codomain2=r(t),n._codomainDelta=n._codomain2-n._codomain1,n},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(e){var t=(r(e)-this._domain1)/this._domainDelta;return 0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(e){var t=(r(e)-this._domain1)/this._domainDelta,n=NaN;return t<0?n=this._domain1:t>1?n=this._domain2:0<=t&&t<=1&&(n=r(e)),n}},t.Translator1D=i},function(e,t,n){function i(e,t,n,i){var r;return n>e&&i=t||i<=e?r=[{start:e,end:t}]:n<=e&&i>=t?r=[]:n>e?r=[{start:e,end:n}]:it?r=[{start:e,end:n},{start:i,end:t}]:n<=t||i>=e?r=[{start:e,end:t}]:n>=e&&i<=t?r=[]:nt&&(r=[{start:i,end:t}]),r}function o(e,t,n){return t-e>=n}function a(e,t,n){return e-t>=n}var s=n(3),l=n(276).BaseElement,u=Number,c=Math.abs,d=n(1).isString,h=Array.isArray,f=isFinite,p=s.each,g=l.inherit({_init:function(){this._root=this._renderer.g().attr({"class":"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var e=this,t=e._options,n=e._translator,s=n.getDomain()[0],l=n.getDomain()[1],g=l-s,_=g>=0?o:a,m=g>=0?i:r,v=[],y=[],b=[{start:s,end:l}],x=c(g)/1e4,S=d(t.backgroundColor)?t.backgroundColor:"none",C=t.width||{},w=u(C>0?C:C.start),k=u(C>0?C:C.end),T=k-w;if(void 0!==t.ranges&&!h(t.ranges))return null;if(!(w>=0&&k>=0&&w+k>0))return null;v=(h(t.ranges)?t.ranges:[]).reduce(function(e,t,i){t=t||{};var r=n.adjust(t.startValue),o=n.adjust(t.endValue);return f(r)&&f(o)&&_(r,o,x)&&e.push({start:r,end:o,color:t.color,classIndex:i}),e},[]);var A=e._themeManager.createPalette(t.palette,{type:"indicatingSet",extensionMode:t.paletteExtensionMode,keepLastColorInEnd:!0,count:v.length});return p(v,function(e,t){var n=A.getNextColor();t.color=d(t.color)&&t.color||n||"none",t.className="dxg-range dxg-range-"+t.classIndex,delete t.classIndex}),p(v,function(e,t){var n,i,r,o,a,s=[],l=[];for(n=0,i=y.length;n=e&&e>=i.end)return t=i.color,!1}),t}});e.exports=g},function(e,t,n){function i(e,t){var n=_(e),i=_(t),r=n.cos,o=n.sin,a=i.cos,s=i.sin;return{left:o<=0&&s>=0||o<=0&&s<=0&&r<=a||o>=0&&s>=0&&r>=a?-1:S(r,a,0),right:o>=0&&s<=0||o>=0&&s>=0&&r>=a||o<=0&&s<=0&&r<=a?1:x(r,a,0),up:r<=0&&a>=0||r<=0&&a<=0&&o>=s||r>=0&&a>=0&&o<=s?-1:-x(o,s,0),down:r>=0&&a<=0||r>=0&&a>=0&&o<=s||r<=0&&a<=0&&o>=s?1:-S(o,s,0)}}function r(e){return e.right-e.left}function o(e){return e.bottom-e.top}function a(e,t,n){var i,a=c({},e),s=0,l=0;return n=n||{},t>0&&(a.left+=n.left||0,a.right-=n.right||0,a.top+=n.top||0,a.bottom-=n.bottom||0,r(a)>0&&o(a)>0?(i=o(a)/r(a),i>1?ti?l=o(a):s=r(a),s>0||(s=l/t),l>0||(l=s*t),s=(r(a)-s)/2,l=(o(a)-l)/2,a.left+=s,a.right-=s,a.top+=l,a.bottom-=l):(a.left=a.right=(a.left+a.right)/2,a.top=a.bottom=(a.top+a.bottom)/2)),a}var s=isFinite,l=n(9),u=n(48),c=n(0).extend,d=n(3).each,h=n(148).dxBaseGauge,f=n(210).dxGauge,p=n(11),g=p.normalizeAngle,_=p.getCosAndSin,m=n(804),v=n(210).createIndicatorCreator,y=n(805),b=Math.abs,x=Math.max,S=Math.min,C=Math.round,w=d,k=Math.PI,T=f.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_circular",e},_updateScaleTickIndent:function(e){var t=e.label.indentFromTick,n=e.tick.visible?e.tick.length:0,i=this._scale.measureLabels(c({},this._canvas)),r=n;"inside"===e.orientation?r=0:"center"===e.orientation&&(r=.5*n),e.label.indentFromAxis=t>=0?t+r:t-r-x(i.width,i.height),this._scale.updateOptions(e)},_setupCodomain:function(){var e,t=this,n=t.option("geometry")||{},r=n.startAngle,o=n.endAngle;r=s(r)?g(r):225,o=s(o)?g(o):-45,b(r-o)<1?(o-=360,e={left:-1,up:-1,right:1,down:1}):(r=0?(e.horizontalOffset=t+n.width,e.verticalOffset=t+n.height):(e.horizontalOffset=e.verticalOffset=0,e.min-=-t+x(n.width,n.height)),e.inverseHorizontalOffset=n.width/2,e.inverseVerticalOffset=n.height/2},_measureMainElements:function(e,t){var n=this,i=n._area.radius,r=0,o=1/0,a=0,s=0,l=0,u=0,c=n._scale;return w(e.concat(c),function(e,n){var c=n.measure?n.measure({radius:i-n.getOffset()}):t;c.min>0&&(o=S(o,c.min)),c.max>0&&(r=x(r,c.max)),c.horizontalOffset>0&&(a=x(a,c.max+c.horizontalOffset)),c.verticalOffset>0&&(s=x(s,c.max+c.verticalOffset)),c.inverseHorizontalOffset>0&&(l=x(l,c.inverseHorizontalOffset)),c.inverseVerticalOffset>0&&(u=x(u,c.inverseVerticalOffset))}),a=x(a-r,0),s=x(s-r,0),{minRadius:o,maxRadius:r,horizontalMargin:a,verticalMargin:s,inverseHorizontalMargin:l,inverseVerticalMargin:u}},_applyMainLayout:function(e,t){var n=this._measureMainElements(e,t),i=this._area,s=i.sides,l={left:(s.left<-.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,right:(s.right>.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,top:(s.up<-.1?n.verticalMargin:n.inverseVerticalMargin)||0,bottom:(s.down>.1?n.verticalMargin:n.inverseVerticalMargin)||0},u=a(this._innerRect,(s.down-s.up)/(s.right-s.left),l),c=S(r(u)/(s.right-s.left),o(u)/(s.down-s.up));c=c-n.maxRadius+i.radius;var d=u.left-r(u)*s.left/(s.right-s.left),h=u.top-o(u)*s.up/(s.down-s.up);i.x=C(d),i.y=C(h),i.radius=c,u.left-=l.left,u.right+=l.right,u.top-=l.top,u.bottom+=l.bottom,this._innerRect=u},_getElementLayout:function(e){return{x:this._area.x,y:this._area.y,radius:C(this._area.radius-e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=S(e._canvas.width/(t.sides.right-t.sides.left),e._canvas.height/(t.sides.down-t.sides.up));return n>t.totalRadius&&(n=t.totalRadius),n=.8*n,-e._translator.getCodomainRange()*n*k/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:u.clone(h.prototype._factory)}),A=T.prototype._factory.indicators={};T.prototype._factory.createIndicator=v(A),A._default=m._default,A.rectangleneedle=m.rectangleneedle,A.triangleneedle=m.triangleneedle,A.twocolorneedle=m.twocolorneedle,A.trianglemarker=m.trianglemarker,A.textcloud=m.textcloud,A.rangebar=m.rangebar,T.prototype._factory.RangeContainer=y,l("dxCircularGauge",T),e.exports=T},function(e,t,n){function i(e,t){return E(e-t)<1e-8}function r(e,t){return i(e[0],t[0])&&i(e[1],t[1])}function o(e,t,n,i){var r=k(e);return isFinite(r)?T(A(r,t),n):i}function a(e,t,n,i){return[o(e[0],t[0],n[0],i[0]),o(e[1],t[1],n[1],i[1])]}function s(e){return e instanceof f&&e||b.get(e)||b.get(B)}function l(e){var t=this;t._initEvents(),t._params=e,t._engine=s(),t._center=t._engine.center(),t._adjustCenter()}function u(e,t,n,i){var r=(n+i)/2;return E(e-r)>E(t-r)?e:t}function c(e,t,n,i){var r=(n+i)/2;return E(e-r)0?k(e.aspectRatio):1),t.center=y(i([0,0])),h(t,[i([-1,0])[0],i([0,1])[1]],[i([1,0])[0],i([0,-1])[1]])}function p(e){return e instanceof f}function g(e){return[e[0],-e[1]]}function _(e){return function(t){return g(e(t))}}function m(e){return function(t){return e(g(t))}}function v(e){return function(){return e}}function y(e){return function(){return e.slice()}}function b(e){return e&&e.to?new f(e):null}function x(e,t){return{min:[T(e[0],t[0]),T(e[1],t[1])],max:[A(e[0],t[0]),A(e[1],t[1])]}}function S(e,t,n,i,r){var o=(n[0]+i[0])/2-r/2,a=(n[1]+i[1])/2-r/2,s=2/r;return{to:function(t){var n=e(t);return[-1+(n[0]-o)*s,-1+(n[1]-a)*s]},from:function(e){var n=[o+(e[0]+1)/s,a+(e[1]+1)/s];return t(n)}}}var C=n(0).extend,w=n(418),k=Number,T=Math.min,A=Math.max,E=Math.abs,O=Math.round,D=Math.log,M=Math.pow,I=2/Math.LN2,P=1/3600/180/10,L=1,R=256,V=[NaN,NaN],B="mercator";l.prototype={constructor:l,_minZoom:L,_maxZoom:R,_zoom:L,_center:V,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(e){var t=this,n=s(e);t._engine!==n&&(t._engine=n,t._fire("engine"),t._changeCenter(n.center())&&t._triggerCenterChanged(),t._changeZoom(t._minZoom)&&t._triggerZoomChanged(),t._adjustCenter(),t._setupScreen())},setBounds:function(e){void 0!==e&&this.setEngine(this._engine.original().bounds(e))},_setupScreen:function(){var e=this,t=e._canvas,n=t.width,i=t.height,r=e._engine.ar();e._x0=t.left+n/2,e._y0=t.top+i/2,n/i<=r?(e._xRadius=n/2,e._yRadius=n/2/r):(e._xRadius=i/2*r,e._yRadius=i/2),e._fire("screen")},setSize:function(e){var t=this;t._canvas=e,t._setupScreen()},_toScreen:function(e){return[this._x0+this._xRadius*e[0],this._y0+this._yRadius*e[1]]},_fromScreen:function(e){return[(e[0]-this._x0)/this._xRadius,(e[1]-this._y0)/this._yRadius]},_toTransformed:function(e){return[e[0]*this._zoom+this._xCenter,e[1]*this._zoom+this._yCenter]},_toTransformedFast:function(e){return[e[0]*this._zoom,e[1]*this._zoom]},_fromTransformed:function(e){return[(e[0]-this._xCenter)/this._zoom,(e[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var e=this,t=e._engine.project(e._center);e._xCenter=-t[0]*e._zoom||0,e._yCenter=-t[1]*e._zoom||0},project:function(e){return this._engine.project(e)},transform:function(e){return this._toScreen(this._toTransformedFast(e))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(e){return[e[0]*this._zoom*this._xRadius,e[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(e){var t=this,n=t._zoom,r=t._zoom=o(e,t._minZoom,t._maxZoom,t._minZoom),a=!i(n,r);return a&&(t._adjustCenter(),t._fire("zoom")),a},setZoom:function(e){this._engine.isInvertible()&&this._changeZoom(e)&&this._triggerZoomChanged()},getScaledZoom:function(){return O((this._scale.length-1)*D(this._zoom)/D(this._maxZoom))},setScaledZoom:function(e){this.setZoom(this._scale[O(e)])},changeScaledZoom:function(e){this.setZoom(this._scale[A(T(O(this.getScaledZoom()+e),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var e=this,t=O(I*D(e._maxZoom)),n=1;t=t>4?t:4;var i=M(e._maxZoom,1/t),r=e._minZoom;for(e._scale=[r];n<=t;++n)e._scale.push(r*=i)},setMaxZoom:function(e){var t=this;t._minZoom=L,t._maxZoom=o(e,t._minZoom,k.MAX_VALUE,R),t._setupScaling(),t._zoom>t._maxZoom&&t.setZoom(t._maxZoom),t._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(e){this._engine.isInvertible()&&this._changeCenter(e||[])&&this._triggerCenterChanged()},_changeCenter:function(e){var t=this,n=t._engine,i=t._center,o=t._center=a(e,n.min(),n.max(),n.center()),s=!r(i,o);return s&&(t._adjustCenter(),t._fire("center")),s},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(e,t){var n=this,i=n._engine.project(e),r=n._fromScreen(t);n.setCenter(n._engine.unproject([-r[0]/n._zoom+i[0],-r[1]/n._zoom+i[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){var e=this;e._moveCenter&&(r(e._moveCenter,e._center)||e._triggerCenterChanged(),e._moveCenter=null)},moveCenter:function(e){var t=this;if(t._moveCenter){var n=t._toScreen(t._toTransformed(t._engine.project(t._center))),i=t._engine.unproject(t._fromTransformed(t._fromScreen([n[0]+e[0],n[1]+e[1]])));t._changeCenter(i)}},getViewport:function(){var e=this,t=e._engine.unproject,n=t(e._fromTransformed([-1,-1])),i=t(e._fromTransformed([-1,1])),r=t(e._fromTransformed([1,-1])),o=t(e._fromTransformed([1,1])),a=x([u(n[0],i[0],r[0],o[0]),u(n[1],r[1],i[1],o[1])],[u(r[0],o[0],n[0],i[0]),u(i[1],o[1],n[1],r[1])]);return[].concat(a.min,a.max)},setViewport:function(e){var t=this._engine,n=e?d(t.project,t.unproject,e):[this._minZoom,t.center()];this.setZoom(n[0]),this.setCenter(n[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(e){return this._engine.unproject(this._fromTransformed(this._fromScreen(e)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},w.makeEventEmitter(l),f.prototype.aspectRatio=function(e){var t=new f(C(this.source(),{aspectRatio:e}));return t.original=this.original,t.min=this.min,t.max=this.max,t},f.prototype.bounds=function(e){e=e||[];var t=this.source(),n=this.min(),i=this.max(),r=a([e[0],e[1]],n,i,n),o=a([e[2],e[3]],n,i,i),s=t.to(r),l=t.to(o),u=T(E(l[0]-s[0])>P?E(l[0]-s[0]):2,E(l[1]-s[1])>P?E(l[1]-s[1]):2);u<2&&C(t,S(t.to,t.from,s,l,u));var c=new f(t);return c.original=this.original,h(c,r,o),c};var F={};b.get=function(e){return F[e]||null},b.add=function(e,t){return!F[e]&&p(t)&&(F[e]=t),b},t.Projection=l,t.projection=b},function(e,t,n){var i=n(25),r={_initEvents:function(){var e,t=this._eventNames,n=t.length,r=this._events={};for(e=0;e"+r[o]+""+r[o+1]+"";return{html:""+n+"
"}}}function r(e,t,n){var r=i(t,n);return u(e)?function(t){var n=e.call(t,t);return"html"in n||"text"in n||_(n,r.call(t,t)),n}:r}function o(e){var t=new g.Translator2D({},{},{shiftZeroValue:!e,isHorizontal:!!e});return{getTranslator:function(){return t},update:function(e,n,i){t.update(e,n,i)},getVisibleArea:function(){var e=t.getCanvasVisibleArea();return[e.min,e.max]},visualRange:m,calculateInterval:m,getMarginOptions:function(){return{}}}}var a=n(5),s=n(10),l=n(47).add,u=n(1).isFunction,c=n(97),d=n(0).extend,h=2,f=100,p=n(8),g=n(275),_=d,m=n(4).noop,v=c.inherit({_getLayoutItems:m,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){var e=this;e._tooltipTracker=e._renderer.root,e._tooltipTracker.attr({"pointer-events":"visible"}),e._createHtmlElements(),e._initTooltipEvents(),e._argumentAxis=o(!0),e._valueAxis=o()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){var e=this;e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide()),e._cleanWidgetElements(),e._updateWidgetElements(),e._drawWidgetElements()},_updateWidgetElements:function(){var e=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,e,this._getStick()),this._valueAxis.update(this._ranges.val,e)},_getStick:function(){},_applySize:function(e){this._allOptions.size={width:e[2]-e[0],height:e[3]-e[1]},this._change(["UPDATE"])},_setupResizeHandler:m,_prepareOptions:function(){return _(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset();return{x:e.width/2+t.left,y:e.height/2+t.top}},_initTooltipEvents:function(){var e=this,t={widget:e};e._showTooltipCallback=function(){var t;e._tooltipShown||(e._tooltipShown=!0,t=e._getTooltip(),t.isEnabled()&&e._tooltip.show(e._getTooltipData(),e._getTooltipCoords(),{}))},e._hideTooltipCallback=function(){e._hideTooltipTimeout=null,e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide())},e._disposeCallbacks=function(){e=e._showTooltipCallback=e._hideTooltipCallback=e._disposeCallbacks=null},e._tooltipTracker.on(b,t).on(A,t),e._tooltipTracker.on(y)},_stopCurrentHandling:function(){this._hideTooltip()},_disposeTooltipEvents:function(){var e=this;clearTimeout(e._hideTooltipTimeout),e._tooltipTracker.off(),e._disposeCallbacks()},_getTooltip:function(){var e=this;return e._tooltip||(E.apply(this,arguments),e._setTooltipRendererOptions(e._tooltipRendererOptions), e._tooltipRendererOptions=null,e._setTooltipOptions()),e._tooltip}}),y={"contextmenu.sparkline-tooltip":function(e){(p.isTouchEvent(e)||p.isPointerEvent(e))&&e.preventDefault()},"MSHoldVisual.sparkline-tooltip":function(e){e.preventDefault()}},b={"mouseover.sparkline-tooltip":function(e){T=!1;var t=e.data.widget;t._x=e.pageX,t._y=e.pageY,t._tooltipTracker.off(x).on(x,e.data),t._showTooltip()},"mouseout.sparkline-tooltip":function(e){if(!T){var t=e.data.widget;t._tooltipTracker.off(x),t._hideTooltip(f)}}},x={"mousemove.sparkline-tooltip":function(e){var t=e.data.widget;t._x=e.pageX,t._y=e.pageY,t._showTooltip()}},S=null,C=function(e){var t=S;t&&t!==e.data.widget&&t._hideTooltip(f),t=S=e.data.widget,t._showTooltip(),t._touch=!0},w=function(){var e=S;e&&(e._touch||(e._hideTooltip(f),S=null),e._touch=null)},k=function(){var e=S;e&&(e._hideTooltip(f),S=null)},T=!1,A={"pointerdown.sparkline-tooltip":C,"touchstart.sparkline-tooltip":C};l(function(){a.subscribeGlobal(s.getDocument(),{"pointerdown.sparkline-tooltip":function(){T=!0,w()},"touchstart.sparkline-tooltip":w,"pointerup.sparkline-tooltip":k,"touchend.sparkline-tooltip":k})}),e.exports=v,v.addPlugin(n(108).plugin);var E=v.prototype._initTooltip;v.prototype._initTooltip=m;var O=v.prototype._disposeTooltip;v.prototype._disposeTooltip=function(){this._tooltip&&O.apply(this,arguments)},v.prototype._setTooltipRendererOptions=function(){var e=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(e):this._tooltipRendererOptions=e},v.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(_({},t,{customizeTooltip:r(t.customizeTooltip,t.font,this.option("rtlEnabled")),enabled:t.enabled&&this._isTooltipEnabled()}))},v.prototype._showTooltip=function(){var e=this;clearTimeout(e._hideTooltipTimeout),e._hideTooltipTimeout=null,e._showTooltipCallback()},v.prototype._hideTooltip=function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()};var D=d(!0,{},n(96).plugin,{init:m,dispose:m,customize:null,members:{_getExportMenuOptions:null}});v.addPlugin(D)},function(e,t,n){function i(e,t){return o(e,t)}function r(e){return a(e,i,!1)}var o=Math.max,a=n(422);n(123).addAlgorithm("squarified",r),e.exports=r},function(e,t,n){function i(e,t){return t.value-e.value}function r(e){return l(e,1/e)}function o(e,t,n){var i,o,a,s,l,c=1/0,d=0,h=e.length,f=n.areaToValue/n.staticSide;for(a=t;a0?o(e,t,{areaToValue:r/n.sum,accumulate:n.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:e.length-t};return c.calculateRectangles(e,t,n.rect,i,s),n.sum-=s.sum,t+s.count}var l=Math.max,u=Math.round,c=n(123);e.exports=function(e,t,n){var r,o=e.items,a=o.length,l={sum:e.sum,rect:e.rect,directions:e.directions,accumulate:t};for(n&&(l.staticSideIndex=c.getStaticSideIndex(l.rect)),o.sort(i),r=0;r=0&&t._nodes[e].isNode())return void t.clearHover();t._context.suspend(),t._hoverIndex=-1,n>=0&&t._applyHoverState(n,!1),t._hoverIndex=e,e>=0&&t._applyHoverState(e,!0),t._context.resume()}},r.clearHover=function(){this._hoverNode(-1)}},function(e,t,n){function i(e,t,n,i){var r,o=i.length;for(r=0;r=0&&this._tooltip.hide(),this._tooltipIndex=-1}),o(r,"_onTilingPerformed",function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])}),r._showTooltip=function(e,t){var n=this,i=n._tooltip,r=n._nodes[e],o=n._tooltipIndex===e||i.show({value:r.value,valueText:i.formatValue(r.value),node:r.proxy},{x:0,y:0,offset:0},{node:r.proxy});o?n._moveTooltip(r,t):i.hide(),n._tooltipIndex=o?e:-1},r._moveTooltip=function(e,t){var n=t||e.rect&&i(e.rect,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},r.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},n(73).addPlugin(n(108).plugin)},function(e,t,n){function i(e){return e.map(function(e,t){return t%2?1-e:e})}var r=n(842),o=n(843),a=n(844),s=n(4).noop,l=n(845),u="NODES_CREATE";r.addAlgorithm("dynamicslope",o,!0),r.addAlgorithm("dynamicheight",a);var c=n(97).inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:u,neckHeight:u,inverted:u,algorithm:u,item:u,valueField:u,argumentField:u,colorField:u,palette:u,paletteExtensionMode:u,sortData:u},_themeDependentChanges:[u],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:s,_applySize:function(e){return this._rect=e.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var e=this,t=e._items,n=e._rect,i=function(e,t){var i=t%2;return n[0+i]+(n[2+i]-n[0+i])*e};this._group.clear(),t.forEach(function(t,n){var r=t.figure.map(i),o=e._renderer.path([],"area").attr({points:r}).append(e._group);t.coords=r,t.element=o}),this._requestChange(["TILES"])},_customChangesOrder:[u,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([u])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t])})},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some(function(r){if(n=r.call(i,e,t))return!0}),n},clearHover:function(){this._suspend(),this._items.forEach(function(e){e.isHovered()&&e.hover(!1)}),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach(function(e){e.isSelected()&&e.select(!1)}),this._resume()},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("valueField",!0),i=e._getOption("argumentField",!0),r=e._getOption("colorField",!0),o=t.reduce(function(e,t){var o=Number(t[n]);return o>=0&&(e[0].push({value:o,color:t[r],argument:t[i],dataItem:t}),e[1]+=o),e},[[],0]),a=o[0];return o[1]||(a=a.map(function(e){return e.value+=1,e})),t.length>0&&0===a.length&&e._incidentOccurred("E2005",n),e._getOption("sortData",!0)&&a.sort(function(e,t){return t.value-e.value}),a},_buildNodes:function(){var e=this,t=e._getData(),n=r.getAlgorithm(e._getOption("algorithm",!0)),o=n.normalizeValues(t),a=e._getOption("item"),s=n.getFigures(o,e._getOption("neckWidth",!0),e._getOption("neckHeight",!0)),u=e._themeManager.createPalette(e._getOption("palette",!0),{useHighlight:!0,extensionMode:e._getOption("paletteExtensionMode",!0),count:s.length});e._items=s.map(function(n,i){var r=t[i],s=new l(e,{figure:n,data:r,percent:o[i],id:i,color:r.color||u.getNextColor(),itemOptions:a});return s}),e._getOption("inverted",!0)&&e._items.forEach(function(e){e.figure=i(e.figure)}),e._renderer.initHatching(),e._change(["TILING","DRAWN"])},_showTooltip:s,hideTooltip:s,getAllItems:function(){return this._items.slice()},_getLegendData:function(){return this._items.map(function(e){return{id:e.id,visible:!0,text:e.argument,item:e,states:e.states}})},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]}});n(9)("dxFunnel",c),e.exports=c,c.addPlugin(n(147).plugin)},function(e,t,n){function i(e,t,n,i){e.label.getBBox().width>n&&e.labelText.applyEllipsis(n);var r=e.label.getBBox(),o=t.verticalOffset,a=t.horizontalOffset,s=Math.round(e.rect.y+e.rect.height/2-r.y-r.height/2)+o,l=e.rect.x+a+e.rect.width-r.x;l+r.width>=i[2]-i[0]&&(l=e.rect.x-a-r.x-r.width),s>=i[3]&&(s=i[3]),s-r.heightt.width?this._drawLabels=!0:this._drawLabels=!1,this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var e=this,t=e._nodes;t.forEach(function(t,n){var i=e._renderer.rect().attr(t.rect).append(e._groupNodes);t.element=i}),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var e=this,t=e._links;t.forEach(function(t,n){var i=e._renderer.g().attr({"class":"link","data-link-idx":n}).append(e._groupLinks);t.overlayElement=e._renderer.path([],"area").attr({d:t.d}).append(i),t.element=e._renderer.path([],"area").attr({d:t.d}).append(i)}),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:a,hideTooltip:a,clearHover:function(){this._suspend(),this._nodes.forEach(function(e){e.isHovered()&&e.hover(!1)}),this._links.forEach(function(e){e.isHovered()&&e.hover(!1),e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t])})},_applyLinksAppearance:function(){this._links.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t]),e.overlayElement.smartAttr(e.overlayStates[t])})},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some(function(r){if(n=r.call(i,e,t))return!0}),n},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("sourceField",!0),i=e._getOption("targetField",!0),r=e._getOption("weightField",!0),o=[];return t.forEach(function(t){var a=Object.prototype.hasOwnProperty.bind(t);a(n)?a(i)?a(r)?d(t[n])?d(t[i])?!h(t[r])||t[r]<=0?e._incidentOccurred("E2009",r):o.push([t[n],t[i],t[r]]):e._incidentOccurred("E2008",i):e._incidentOccurred("E2008",n):e._incidentOccurred("E2007",r):e._incidentOccurred("E2007",i):e._incidentOccurred("E2007",n)}),o},_buildLayout:function(){var e=this,t=this,n=t._getData(),i=this._rect,a=t._getOption("node"),c=t._getOption("sortData"),d=t._getOption("layoutBuilder",!0)||u,h={x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]},f=d.computeLayout(n,c,{availableRect:h,nodePadding:a.padding,nodeWidth:a.width,nodeAlign:t._getOption("alignment",!0)},t._incidentOccurred);if(t._layoutMap=f,!Object.prototype.hasOwnProperty.call(f,"error")){var p={},g=0,_=t._getOption("link"),m=f.nodes.map(function(e){return e.length}).reduce(function(e,t){return e+t},0),v=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:m});t._nodes=[],t._links=[],t._gradients.forEach(function(e){e.dispose()}),t._gradients=[],t._shadowFilter&&t._shadowFilter.dispose(),f.nodes.forEach(function(e){e.forEach(function(e){var n=a.color||v.getNextColor(),i=new s(t,{id:g,color:n,rect:e,options:a,linksIn:r(f,e._name,"in"),linksOut:r(f,e._name,"out")});t._nodes.push(i),g++,p[e._name]=n})}),f.links.forEach(function(n){var i=null;_.colorMode===o.COLOR_MODE_GRADIENT&&(i=t._renderer.linearGradient([{offset:"0%","stop-color":p[n._from._name]},{offset:"100%","stop-color":p[n._to._name]}]),e._gradients.push(i));var r=_.color;_.colorMode===o.COLOR_MODE_SOURCE?r=p[n._from._name]:_.colorMode===o.COLOR_MODE_TARGET&&(r=p[n._to._name]);var a=new l(t,{d:n.d,boundingRect:n._boundingRect,color:r,options:_,connection:{source:n._from._name,target:n._to._name,weight:n._weight},gradient:i});t._links.push(a)}),t._renderer.initHatching(),t._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}t._change(["DRAWN"])},_applyLabelsAppearance:function(){var e=this,t=e._getOption("label"),n=e._rect[2]-e._rect[0],r=e._getOption("node");if(e._shadowFilter=e._renderer.shadowFilter("-50%","-50%","200%","200%").attr(t.shadow),e._groupLabels.clear(),e._drawLabels&&t.visible){var o=(n-(r.width+t.horizontalOffset)-e._layoutMap.cascades.length*r.width)/(e._layoutMap.cascades.length-1)-t.horizontalOffset;e._nodes.forEach(function(n){e._createLabel(n,t,e._shadowFilter.id),i(n,t,o,e._rect)}),"none"!==t.overlappingBehavior&&e._nodes.forEach(function(n){var i=n.label.getBBox();e._nodes.forEach(function(e){var r=e.label.getBBox();n.id!==e.id&&u.overlap(i,r)&&("ellipsis"===t.overlappingBehavior?n.labelText.applyEllipsis(r.x-i.x):"hide"===t.overlappingBehavior&&n.labelText.remove())})})}},_createLabel:function(e,t,n){var i=t.customizeText(e),r=e.getLabelAttributes(t,n);i&&(e.label=this._renderer.g().append(this._groupLabels),e.labelText=this._renderer.text(i).attr(r.attr).css(r.css),e.labelText.append(e.label))},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});n(9)("dxSankey",f),e.exports=f,f.addPlugin(n(147).plugin)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});t.COLOR_MODE_GRADIENT="gradient",t.COLOR_MODE_SOURCE="source",t.COLOR_MODE_TARGET="target",t.COLOR_MODE_NONE="none"},function(e,t,n){var i="white",r="gray",o="black",a={maxOfArray:function(e,t){var n=0,i=function(e){return e};t&&(i=t);for(var r=0;rn&&(n=i(e[r]));return n}},s=function(e){var t=[];return e.forEach(function(e){t.indexOf(e[0])===-1&&t.push(e[0]),t.indexOf(e[1])===-1&&t.push(e[1])}),t},l=function(e,t){var n=[];return e.forEach(function(e){e[0]===t&&n.indexOf(e[1])===-1&&n.push(e[1])}),n},u=function(e,t){var n=[];return e.forEach(function(e){e[1]===t&&n.indexOf(e[0])===-1&&n.push(e[0])}),n},c={_hasCycle:!1,_sortedList:[],hasCycle:function(e){var t=this;this._hasCycle=!1,this._sortedList=[];var n={},r=s(e);return r.forEach(function(e){n[e]={color:i}}),r.forEach(function(r){n[r].color===i&&t._depthFirstSearch(e,n,r)}),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(e,t,n){t[n].color=r;for(var a=l(e,n),s=0;s',C='',w="",k='',T="http://schemas.openxmlformats.org",A="rels",E="xl",O="workbook.xml",D="[Content_Types].xml",M="sharedStrings.xml",I="styles.xml",P="worksheets",L="sheet1.xml",R='',V={"boolean":"b",date:"d",number:"n",string:"s"},B=Date.UTC(1899,11,30),F=60,z=7,H={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},N=a.default.inherit({_getXMLTag:function(e,t,n){var i,r,o="<"+e,a=t.length;for(i=0;i"+n+"":o+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,r="",o=26;!i;)n=65+(t>=o?t%o:Math.ceil(t)),r=String.fromCharCode(n)+r,t>=o?t=Math.floor(t/o)-1:i=!0;return r+(e+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex0&&(a._needSheetPr=!0),s.push(n)}return s},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/z*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(e){t._colsArray.push(t._calculateWidth(e.width))});var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach(function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);(0,l.isDefined)(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})}),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map(function(t){return e._excelFile.registerCellFormat(t)})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:T+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:T+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='Sheet!$1:$1';return S+this._getXMLTag("workbook",[{name:"xmlns:r",value:T+"/officeDocument/2006/relationships"},{name:"xmlns",value:T+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return S+''},_generateStylesXML:function(){var e=this,t=e._zip.folder(E),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+=k,n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=S+e._getXMLTag("styleSheet",[{name:"xmlns",value:T+"/spreadsheetml/2006/main"}],n),t.file(I,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(E),n=this._stringArray.length,i=S;for(e=0;e':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'':""},_generateWorksheetXML:function(){var e,t,n,i,r,o=[],a=this._cellsArray.length,s=this._colsArray.length,u="1:"+s,c=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,d=[R];for(d.push(this._needSheetPr?C:w),d.push(''),d.push("'),d.push(this._getPaneXML()),d.push(""),d.push(''),e=0;e"),t=0;t=c?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,o.length>1e4&&(d.push(o.join("")),o=[])}d.push(o.join("")),o=[];var h=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);d.push(""+this._getAutoFilterXML(h)+this._generateMergingXML()+this._getIgnoredErrorsXML(h)+""),this._zip.folder(E).folder(P).file(L,d.join("")),this._colsArray=[],this._cellsArray=[],d=[]},_generateMergingXML:function(){var e,t,n,i,r,o=(0,l.isDefined)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),a=this._dataProvider.getColumns().length,s=[],u=[],c="";for(i=0;i0){var e=this._numberFormatTags.map(function(e){return m.default.toXml(e)});return u.default.toXml("numFmts",{count:e.length},e.join(""))}return""}}],[{key:"copyCellFormat",value:function(e){return d.default.copy(e)}}]),e}();t.default=v,e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(75),a=i(o),s=n(435),l=i(s),u=n(221),c=i(u),d=n(223),h=i(d),f={tryCreateTag:function(e,t){var n=null;if((0,r.isDefined)(e)){var i;i="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var o=e.fill;(0,r.isDefined)(o)||(o=c.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:i,alignment:l.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(o)},f.isEmpty(n)&&(n=null)}return n},copy:function(e){var t;return null===e?t=null:(0,r.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=c.default.copy(e.fill):c.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=l.default.copy(e.alignment)),void 0!==e.font&&(t.font=h.default.copy(e.font))),t},areEqual:function(e,t){return f.isEmpty(e)&&f.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&l.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.fontId)&&!(0,r.isDefined)(e.numberFormatId)&&!(0,r.isDefined)(e.fillId)&&l.default.isEmpty(e.alignment)},toXml:function(e){var t,n=l.default.isEmpty(e.alignment);return(0,r.isDefined)(e.numberFormatId)&&(t=e.numberFormatId>0?1:0),a.default.toXml("xf",{xfId:0,applyAlignment:n?null:1,fontId:e.fontId,applyNumberFormat:t,fillId:e.fillId,numFmtId:e.numberFormatId},n?null:l.default.toXml(e.alignment))}};t.default=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(75),a=i(o),s={tryCreateTag:function(e){var t=null;return(0,r.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,r.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.vertical)&&!(0,r.isDefined)(e.wrapText)&&!(0,r.isDefined)(e.horizontal)},toXml:function(e){return a.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,r.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(75),a=i(o),s=n(222),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,r.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:l.default.tryCreateTag(e.backgroundColor),foregroundColor:l.default.tryCreateTag(e.foregroundColor)},u.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,r.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=l.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=l.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.patternType===t.patternType&&l.default.areEqual(e.backgroundColor,t.backgroundColor)&&l.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.patternType)},toXml:function(e){var t=[(0,r.isDefined)(e.foregroundColor)?l.default.toXml("fgColor",e.foregroundColor):"",(0,r.isDefined)(e.backgroundColor)?l.default.toXml("bgColor",e.backgroundColor):""].join("");return a.default.toXml("patternFill",{patternType:e.patternType},t)}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(75),a=i(o),s={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},s.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return a.default.toXml("numFmt",{numFmtId:e[s.ID_PROPERTY_NAME],formatCode:e.formatCode})}};t.default=s},function(e,t,n){var i=n(2),r=n(57),o=n(7).getWindow(),a=n(1).isFunction,s=n(3).each,l=n(186),u=n(6),c=u.when,d=u.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){r.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new d;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var r,a="",s=new Uint8Array(i),l=s.byteLength;for(r=0;r',c=new d,h=l.getSvgElement(e),f=i(h);return n=u+l.getSvgMarkup(f.get(0),t.backgroundColor),r._prepareImages(h).done(function(){s(r._imageArray,function(e,t){var i="href=['|\"]".concat(e,"['|\"]");n=n.replace(new RegExp(i,"gi"),'href="'.concat(t,'"'))}),c.resolve(a(o.Blob)?r._getBlob(n):r._getBase64(n))}),c},_getBlob:function(e){return new o.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return o.btoa(e)}},t.getData=function(e,n,i){return t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(7),r=i.getWindow(),o=n(53),a={getXhr:function(){return new r.XMLHttpRequest}};e.exports=o(a)},function(e,t,n){var i=n(156),r=n(7).getWindow(),o=n(224).imageCreator,a=n(1).isFunction,s=n(0).extend,l=n(6),u=l.when,c=l.Deferred,d="%PDF-1.3\r\n2 0 obj\r\n<>>>\r\nendobj\r\n4 0 obj\r\n<>\r\nendobj\r\n7 0 obj\r\n<>\r\nendobj\r\n1 0 obj\r\n<>\r\nendobj\r\n",h="3 0 obj\r\n<>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",f="6 0 obj\r\n<>\r\nendobj\r\n",p="5 0 obj\r\n<>stream\r\n",g="\r\nendstream\r\nendobj\r\n",_="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",v=function e(t,n){return t.length=u&&(m.outlineLevel=S.getGroupLevel(_)),_>=1&&x.to.row++}p(i,s,g),x.to.column+=r.length>0?r.length-1:0;var v=i.views[0]||{};n.option("rtlEnabled")&&(v.rightToLeft=!0),u>0&&(Object.keys(v).indexOf("state")===-1&&(0,b.extend)(v,{state:"frozen",ySplit:x.from.row+S.getFrozenArea().y-1}),a(S,i,n,x,l)),Object.keys(v).length>0&&(i.views=[v]),e(x)}).always(function(){n.option("loadPanel",v)})})}}function o(e,t,n,i,r,o,a,u,h){for(var p=r.getStyles(),_=0;_0&&(t.autoFilter=i)}function s(e,t){e.numFmt=t}function l(e,t){var n=u(e,t),i=n.currency;return e=n.format,t=n.dataType,m.default.convertFormat(e,n.precision,t,i)}function u(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return(0,g.isObject)(e)?(0,b.extend)(n,e,{format:e.formatter||e.type,currency:e.currency}):n}function c(e,t){(0,g.isDefined)(t)&&(e.font=e.font||{},e.font.bold=t)}function d(e,t,n){e.alignment=e.alignment||{},(0,g.isDefined)(t)&&(e.alignment.wrapText=t),(0,g.isDefined)(n)&&(e.alignment.horizontal=n)}function h(e,t,n){if((0,g.isDefined)(t))for(var i=0;i","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-newFolderName":"Untitled folder","dxFileManager-errorNoAccess":"Access denied. The operation cannot be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found","dxFileManager-errorDefault":"Unspecified error."}}},function(e,t,n){e.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){var i=n(25),r=n(1).isFunction,o=n(3).each,a=n(15);e.exports=a.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n=this._events[e];n||(n=i(), this._events[e]=n);var r=n.originalAdd||n.add;r.call(n,t)},off:function(e,t){var n=this._events[e];n&&(r(t)?n.remove(t):n.empty())},dispose:function(){o(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(2),r=n(10),o=n(7),a=o.getWindow(),s=n(5),l=n(0).extend,u=n(126),c=n(43),d=n(83),h=n(16),f=function(e){e=l({},e);var t=h.real(),n=e.allowZoom,o=e.allowPan,f="allowSelection"in e?e.allowSelection:"generic"===t.platform,p="meta[name=viewport]";i(p).length||i("").attr("name","viewport").appendTo("head");var g=["width=device-width"],_=[];if(n?_.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),o&&_.push("pan-x","pan-y"),o||n?i("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):i("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!f&&c.supportProp("userSelect")&&i(".dx-viewport").css(d.styleProp("userSelect"),"none"),i(p).attr("content",g.join()),i("html").css("msTouchAction",_.join(" ")||"none"),t=h.real(),!c.touch||"win"===t.platform&&10===t.version[0]||(s.off(r.getDocument(),".dxInitMobileViewport"),s.on(r.getDocument(),"dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,r=!n&&t>1,a=!o&&1===t&&!e.isScrollingEvent;i&&(r||a)&&e.preventDefault()})),t.ios){var m="file:"===r.getLocation().protocol;m||u.add(function(){var e=i(a).width();i("body").width(e)})}t.android&&u.add(function(){setTimeout(function(){var e=r.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)})})};t.initMobileViewport=f},function(e,t,n){var i,r=n(152),o=n(228),a=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,u=function(){l||(i=new o(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},c=r.inherit({ctor:function(){this.callBase.apply(this,arguments),u()},_fireEvent:function(e){return this.callBase(a({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});c.map=s,c.resetObserver=function(){i.reset()},e.exports=c},function(e,t,n){var i=n(0).extend,r=n(152),o=n(229),a=n(227),s=n(8),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},u=!1,c=function(){u||(o.activate(),u=!0)},d=r.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),c()},_handler:function(e){var t=s.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=s.isMouseEvent(e.originalEvent),n=t?o.normalize:a.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});d.map=l,d.resetObserver=o.resetObserver,e.exports=d},function(e,t,n){var i=n(84),r=n(14),o=n(51),a=n(32);n(150),t.locale=i.locale.bind(i),t.loadMessages=r.load.bind(r),t.formatMessage=r.format.bind(r),t.formatNumber=o.format.bind(o),t.parseNumber=o.parse.bind(o),t.formatDate=a.format.bind(a),t.parseDate=a.parse.bind(a),t.message=r,t.number=o,t.date=a},function(e,t,n){var i=n(54),r=n(215),o=n(79)();o&&r.set(i)},function(e,t,n){var i=n(54),r=n(79)(),o=n(58).compare,a=n(3).each,s=n(1).isNumeric,l=n(8).setEventFixMethod,u=n(68),c=n(216);if(r)if(o(i.fn.jquery,[3])<0){var d={2:"touch",3:"pen",4:"mouse"};a(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=d[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),a(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return c(function(n,i){e[n]=i(t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var h={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};u.callbacks.add(function(e){i.event.fixHooks[e]=h});var f=function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,r=n.props?i.event.props.concat(n.props):i.event.props,o=r.length;o--;){var a=r[o];e[a]=t[a]}return n.filter?n.filter(e,t):e};l(f)}else c(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(54),r=n(6),o=n(79)(),a=n(58).compare;if(o){var s=i.Deferred,l={Deferred:s};l.when=a(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},r.setStrategy(l)}},function(e,t,n){var i=n(54),r=n(231),o=n(47).add;if(i&&!r.fired()){var a=i.holdReady||i.fn.holdReady;a(!0),r.add(function(){o(function(){a(!1)})})}},function(e,t,n){var i=n(54),r=n(5),o=n(79)(),a=n(113),s=n(10);o&&(a.add(function(e,t){i.event.special[e]=t}),r.passiveEventHandlersSupported()&&r.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),r.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(54),r=n(226);i&&r.setEasing(i.easing)},function(e,t,n){var i=n(54),r=n(37),o=n(79)();o&&r.setDataStrategy(i)},function(e,t,n){var i=n(12).setPublicElementWrapper,r=n(79)(),o=function(e){return e};r&&i(o)},function(e,t,n){var i=n(54),r=n(151),o=n(21);if(i){var a=function(e,t){i.fn[e]=function(n){var i,r="string"==typeof n;if(r){var a=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw o.Error("E0009",e);var r=n[a],l=r.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};r.add(a)}},function(e,t,n){var i=n(54),r=n(57),o=n(79)();o&&r.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.ajax(e)}})},function(e,t,n){var i=n(232);i&&(n(230),n(461),n(472),n(473),n(474))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"@babel/helpers - typeof";return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(2),a=i(o),s=n(5),l=i(s),u=n(29),c=i(u),d=n(151),h=i(d),f=n(15),p=i(f),g=n(25),_=i(g),m=n(1),v=i(m),y=n(3),b=i(y),x=n(13),S=i(x),C=n(233),w=i(C),k=n(18),T=i(k),A=n(49),E=i(A),O=n(466),D=i(O),M=n(181),I=i(M),P=n(55),L=i(P),R=n(20),V=i(R),B=n(0),F=i(B),z=n(33),H=i(z),N=n(21),G=i(N),j=b.default.each,W=S.default.inArray,U=V.default.compileSetter,Y=V.default.compileGetter,X=F.default.extendFromObject,q="dxItemAlias",K=["rendering"],$="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},Q=p.default.inherit({ctor:function(e){this._componentDisposing=(0,_.default)(),this._optionChangedCallbacks=(0,_.default)(),this._ngLocker=new w.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=X({},e),e&&(!Object.prototype.hasOwnProperty.call(e,"bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&j(e.bindingOptions,function(e,n){"string"===v.default.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&(j(this._ngOptions.bindingOptions,function(n,i){var r,o,a=n.search(/\[|\./),s=a>-1?n.substring(0,a):n,l=i.dataPath,u=!0,c=!1;void 0!==i.deep&&(c=u=!!i.deep),t[s]||(t[s]={}),t[s][n]=l;var d=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),e._component._optionValuesEqual(n,i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!c?"$watchCollection":"$watch";r!==t&&(o&&o(),o=e._scope[t](l,d,u),r=t)};h(),e._componentDisposing.add(o)}),this._optionChangedCallbacks.add(function(n){var i=n.name,r=n.fullName,o=n.component;if(e._ngLocker.locked(r))return void e._ngLocker.release(r);if(t&&t[i]){var a=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(r)};a?e._digestCallbacks.begin.add(s):s(),Z(function(){j(t[i],function(t,i){if(e._optionsAreLinked(r,t)){var a=o.option(t);e._parse(i).assign(e._scope,a);var s=e._parse(i)(e._scope);s!==a&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(r)&&e._ngLocker.release(r),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};a?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var r=(0,a.default)(e).clone(),o=i.model&&i.model.constructor===t._scope.$root.constructor,s=o?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),r.appendTo(i.container),i.noModel||l.default.on(r,"$destroy",function(){var e=!s.$parent;e||s.$destroy()});var u=t._compile(r,t._transcludeFn);return t._applyAsync(function(e){u(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),r}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(L.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),v.default.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==r(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,r=e.parentPrefix,o=e.itemIndex,a=i===this._itemAlias?"":"."+i,s=void 0!==o,l=[r];if(s){if(!v.default.isNumeric(o))return;l.push("[",o,"]")}l.push(a);var u=l.join(""),c=t.$watch(u,function(e,t){e!==t&&U(i)(n,e)}),d=n.$watch(i,function(e,n){if(e!==n){if(s&&!Y(r)(t)[o])return void d();U(u)(t,e)}});this._componentDisposing.add([c,d])},_evalOptions:function(e){var t=this,n=X({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&j(this._ngOptions.bindingOptions,function(t,i){n[t]=e.$eval(i.dataPath)}),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&W(i.category,K)>-1)return n;var r=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?Z(function(){return n.apply(t,i)},e):n.apply(this,i)};return r},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,c.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){Z(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new D.default(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,r){r=r||{};var o,a=r.skipImmediate,s=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=o===e;!a&&(!t||t&&r.deep)&&i(e),a=!1},r.deep);return a||(o=n(),i(o)),(0,c.default)().wrapActionsBeforeExecute&&t._applyAsync(function(){},e),s},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){if("button"===n||"tabs"===n||"dropDownMenu"===n){var i=n;n=H.default.camelize("dx-"+n),G.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var r=(0,a.default)("
").attr(H.default.dasherize(n),"options").get(0),o=t._scope.$new();o.options=e.model.options,e.container.append(r),t._compile(r)(o)}}}}},n.modelByElement=function(){return e},n}});Q=Q.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return(this._componentClass.subclassOf(E.default)||this._componentClass.prototype instanceof E.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked($)||t!==n&&e._component.option($,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain($);try{if(t.name!==$)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked($)&&e._ngLocker.release($)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[$]=this._parse(this._ngModel)(this._scope),e}});var J={},ee=function(e){var t="dxValidator"!==e?1:10;I.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,r){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var o=J[e],a=o.subclassOf(T.default)?t.contents().detach():null;return function(t,s,l,u,c){s.append(a),Z(function(){new Q({componentClass:o,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:u,transcludeFn:c,itemAlias:l[q],dxDigestCallbacks:r})},t)}}}}])};h.default.add(function(e,t){J[e]||ee(e),J[e]=t})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),o=i(r),a=n(71),s=i(a),l=n(12),u=n(187);n(463),(0,u.registerTemplateEngine)("default",{compile:function(e){return(0,l.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,u.setTemplateEngine)("default");var c=s.default.inherit({ctor:function(e){this._element=e},_renderCore:function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,u.getCurrentTemplateEngine)().compile(this._element)),(0,o.default)("
").append(t?this._element:(0,u.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()},source:function(){return(0,o.default)(this._element).clone()}});e.exports=c},function(e,t,n){var i=n(12),r=n(187);(0,r.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,r.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,r.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return Mustache.render(e,t)}}),(0,r.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,r.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,r.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,r.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}})},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(2),o=n(10),a=n(7),s=n(47).add,l=a.getWindow(),u=a.getNavigator(),c=n(5),d=n(38),h=n(27),f=n(58).compare,p=n(77),g=n(0).extend,_=n(13).inArray,m=n(12).getPublicElement,v=p.changeCallback,y=n(213).hideCallback,b=n(78),x=n(28).fitIntoRange,S=n(12),C=n(4).noop,w=n(1),k=n(3).each,T=n(16),A=n(26),E=n(9),O=n(18),D=n(159),M=n(65),I=n(56),P=n(8),L=n(23),R=n(175),V=n(111),B=n(6).Deferred,F=n(465),z=n(153),H="dx-overlay",N="dx-overlay-wrapper",G="dx-overlay-content",j="dx-overlay-shader",W="dx-overlay-modal",U="dx-inner-overlay",Y="dx-state-invisible",X="content",q="dx-rtl",K=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],$=[],Z="dx-state-disabled",Q="dx-prevent-safari-scrolling",J="tab",ee={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},te=T.real(),ne=te.version,ie=A.mozilla&&"desktop"===te.deviceType,re="ios"===te.platform,oe=A.safari&&"desktop"!==te.deviceType,ae=re&&f(ne,[7,1])<0,se="android"===te.platform&&0===f(ne,[4,0],2)&&u.userAgent.indexOf("Chrome")===-1,le=function(e){if((ae||ie)&&e.width(),se){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},ue=function(e){return e&&r(e.target||e)};s(function(){c.subscribeGlobal(o.getDocument(),L.down,function(e){for(var t=$.length-1;t>=0;t--)if(!$[t]._proxiedDocumentDownHandler(e))return})});var ce=O.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),r={top:x(e,-i.top,i.bottom),left:x(t,-i.left,i.right)};this._changePosition(r)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*r(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*r(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=T.real(),t=e.platform,n=e.version;return"android"===t&&f(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!a.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return X},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=r("
").addClass(N),this._$content=r("
").addClass(G),this._initInnerOverlayClass();var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(H),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),c.on(this._$wrapper,"MSPointerDown",C),c.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target);var t=void 0===e.container?this.option("container"):e.container;this._initContainer(t),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(U,this.option("innerOverlay"))},_initTarget:function(e){if(w.isDefined(e)){var t=this.option();k(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var r=i.split("."),o=t;o;){if(1===r.length){w.isPlainObject(o)&&(o[r.shift()]=e);break}o=o[r.shift()]}})}},_initContainer:function(e){e=void 0===e?p.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=r(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},k(K,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");w.isFunction(t)&&(t=t(e));var n=this._$content,i=r(l.document).is(e.target)||S.contains(l.document,e.target),o=r(e.target).closest("."+U).length,a=i&&!o&&!(n.is(e.target)||S.contains(n.get(0),e.target));return a&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new V(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return $},_zIndexInitValue:function(){return ce.baseZIndex()},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return w.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new B;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return this._isHidden=!0,t.resolve();if(this._currentVisible)return(new B).resolve().promise();this._currentVisible=!0,this._isShown=!1,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),r=i&&i.start||C,o=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var a=function(){return this._renderVisibility(!0),this._isShowingActionCanceled?(delete this._isShowingActionCanceled,void t.resolve()):void this._animate(i,function(){e.option("focusStateEnabled")&&c.trigger(e._focusTarget(),"focus"),o.apply(this,arguments),e._showAnimationProcessing=!1,e._isShown=!0,e._actions.onShown(),e._toggleSafariScrolling(!1),t.resolve()},function(){r.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(a)):a()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new B).resolve().promise();this._currentVisible=!1;var e=this,t=new B,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),r=i&&i.start||C,o=i&&i.complete||C,a={cancel:!1};return this._isShowingActionCanceled?t.resolve():(this._actions.onHiding(a),e._toggleSafariScrolling(!0),a.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),o.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),r.apply(this,arguments)}))),t.promise()},_forceFocusLost:function(){var e=o.getActiveElement(),t=!!this._$content.find(e).length;t&&S.resetActiveElement()},_animate:function(e,t,n){e?(n=n||e.start||C,d.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){d.stop(this._$content,!0)},_renderVisibility:function(e){if(!e||!this._isParentHidden()){if(this._currentVisible=e,this._stopAnimation(),e||S.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(Y,!e),this._updateZIndexStackPosition(e),e){this._renderContent();var t={cancel:!1};if(this._actions.onShowing(t),t.cancel)return this._toggleVisibility(!1),this._$content.toggleClass(Y,!0),this._updateZIndexStackPosition(!1),this._moveFromContainer(),this._isShowingActionCanceled=!0,void this.option("visible",!1);this._moveToContainer(),this._renderGeometry(),S.triggerShownEvent(this._$content),S.triggerResizeEvent(this._$content)}else this._moveFromContainer();this._toggleShading(e),this._toggleSubscriptions(e)}},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);e?(n===-1&&(this._zIndex=F.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):n!==-1&&(t.splice(n,1),F.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass(W,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(j,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=P.addNamespace("keydown",this.NAME);e?c.on(o.getDocument(),t,this._proxiedTabTerminatorHandler):c.off(o.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(M.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(M.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(P.normalizeKeyName(e)===J&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,r=!e.shiftKey&&e.target===i.get(0),o=e.shiftKey&&e.target===n.get(0),a=0===t.length,s=!S.contains(this._$wrapper.get(0),e.target);if(r||o||a||s){e.preventDefault();var l=e.shiftKey?i:n;c.trigger(l,"focusin"),c.trigger(l,"focus")}}},_toggleSubscriptions:function(e){a.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?y.add(this._hideTopOverlayHandler):y.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||r(),n=this.option("closeOnTargetScroll"),i=ue(t).parents(),o=P.addNamespace("scroll",this.NAME);"generic"===T.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),c.off(r().add(this._$prevTargetParents),o,this._proxiedTargetParentsScrollHandler),e&&n&&(c.on(i,o,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");w.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=r(this);if("none"===e.css("display"))return t=!0,!1}),t||!o.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this,t=new B,n=this.option("contentTemplate"),i=this._getTemplate(n),r=this._getAnonymousTemplateName()===n;return i&&i.render({container:m(this.$content()),noModel:!0,transclude:r, onRendered:function(){t.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),t.done(function(){e.option("visible")&&e._moveToContainer()}),t.promise()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=P.addNamespace(I.start,this.NAME),n=P.addNamespace(I.move,this.NAME);c.off(e,t),c.off(e,n),this.option("dragEnabled")&&(c.on(e,t,this._dragStartHandler.bind(this)),c.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,R,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=P.addNamespace(I.move,this.NAME);c.off(e,t),c.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(e){e||this._toggleGestureCoverImpl(e)},_clearSelection:C,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=p.originalViewPort().get(0)||this.option("container"),t=e?this._$container:r(l);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),a=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=o.getDocument(),u=Math.max(r(l).outerHeight(),s),c=Math.max(r(l).outerWidth(),a);s=u,a=c}return{width:a-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),r=this.option("boundaryOffset");return{top:n?e.top+i.top+r.v:0,bottom:n?-e.top-i.top+t.height-r.v:0,left:n?e.left+i.left+r.h:0,right:n?-e.left-i.left+t.width-r.h:0}},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element(),t=void 0!==this.option("container"),n=t?this._$container:z.getSwatchContainer(e);n&&n[0]===e.parent()[0]&&(n=e),this._$wrapper.appendTo(n)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&oe&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(e){this.option("visible")&&a.hasWindow()&&this._renderGeometryImpl(e)},_renderGeometryImpl:function(e){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._fixHeightAfterSafariAddressBarResizing(),this._renderDimensions();var t=this._renderPosition();this._actions.onPositioned({position:t})},_fixWrapperPosition:function(){this._$wrapper.css("position",this._useFixedPosition()?"fixed":"absolute")},_useFixedPosition:function(){var e=this._getContainer();return this._isWindow(e)&&(!re||void 0!==this._bodyScrollTop)},_toggleSafariScrolling:function(e){if(re&&this._useFixedPosition()){var t=o.getBody();e?(r(t).removeClass(Q),l.scrollTo(0,this._bodyScrollTop),this._bodyScrollTop=void 0):this.option("visible")&&(this._bodyScrollTop=l.pageYOffset,r(t).addClass(Q))}},_renderShading:function(){this._fixWrapperPosition(),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();b.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){var e,t;if(this.option("shading")){var n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight()}else e="",t="";this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&w.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||l:null;return ue(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,ee),t=b.setup(this._$content,e);return le(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:x(0,-n.top,n.bottom),left:x(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return w.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new D({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=r(t.target);!n.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry(!0)},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){d.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._toggleSafariScrolling(!0),this._actions=null,this.callBase(),F.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Z,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(q,e)},_optionChanged:function(e){var t=e.value;if(_(e.name,K)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return(new B).resolve().promise();var t=new B;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return m(this._$content)},repaint:function(){this._renderGeometry(),S.triggerResizeEvent(this._$content)}});ce.baseZIndex=function(e){return F.base(e)},E("dxOverlay",ce),e.exports=ce},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.clearStack=t.remove=t.create=t.base=void 0;var i=n(4),r=1500,o=[];t.base=function(e){return r=(0,i.ensureDefined)(e,r)},t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=o.length,n=(t?o[t-1]:e)+1;return o.push(n),n},t.remove=function(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)},t.clearStack=function(){o=[]}},function(e,t,n){var i=n(2),r=n(71),o=n(1).isFunction,a=n(12),s=r.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(a.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate;return o(t)?t(e):t},source:function(){return i(this._element).clone()}});e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),o=i(r),a=n(5),s=i(a),l=n(4),u=i(l),c=n(12),d=n(10),h=i(d),f=n(1),p=n(6),g=n(0),_=n(13),m=n(3),v=i(m),y=n(110),b=i(y),x=n(40),S=i(x),C=n(18),w=i(C),k=n(8),T=i(k),A=n(23),E=i(A),O=n(86),D=i(O),M=n(130),I=i(M),P=n(65),L=i(P),R=n(14),V=i(R),B=n(89),F=i(B),z=n(20),H=n(19),N=i(H),G=n(160),j=i(G),W=n(66),U=i(W),Y="dx-collection",X="dx-item",q="-content",K="dx-item-content-placeholder",$="dxItemData",Z="dxItemIndex",Q="tmpl-",J="[data-options*='dxItem']",ee="dx-item-selected",te="dx-item-response-wait",ne="dx-empty-collection",ie="dx-template-wrapper",re=/^([^.]+\[\d+\]\.)+([\w.]+)$/,oe="up",ae="down",se="left",le="right",ue="pageup",ce="pagedown",de="last",he="first",fe=w.default.inherit({_activeStateUnit:"."+X,_supportedKeys:function(){var e=function(e){var t=(0,o.default)(this.option("focusedElement"));t.length&&this._itemClickHandler((0,g.extend)({},e,{target:t,currentTarget:t}))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return(0,g.extend)(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,se),rightArrow:n.bind(this,le),upArrow:n.bind(this,oe),downArrow:n.bind(this,ae),pageUp:n.bind(this,oe),pageDown:n.bind(this,ae),home:n.bind(this,he),end:n.bind(this,de)})},_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:V.default.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?(0,z.compileGetter)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._initDefaultItemTemplate()},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._defaultTemplates.item=new U.default(function(t,n){(0,f.isPlainObject)(n)?this._prepareDefaultItemTemplate(n,t):(e&&(0,f.isFunction)(e.text)&&(n=e.text(n)),t.text(String(u.default.ensureDefined(n,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){(0,f.isDefined)(e.text)&&t.text(e.text),(0,f.isDefined)(e.html)&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter(J);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=(0,o.default)(t),i=(0,c.getElementOptions)(t).dxItem,r=n.html().trim()&&!i.template;return r?i.template=e._prepareItemTemplate(n):n.remove(),i});this.option("items",n)}},_prepareItemTemplate:function(e){var t=Q+new S.default,n=e.detach().clone().removeAttr("data-options").addClass(ie);return this._saveTemplate(t,n),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),(0,_.inArray)(e.target,this._focusTarget())!==-1){var t=(0,o.default)(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",(0,c.getPublicElement)(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=(0,o.default)(this.option("focusedElement"));this._updateFocusedItemState(e,!1)},_getActiveItem:function(e){var t=(0,o.default)(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement(),r=i.length-1;return n<0&&(n=e?r:0),i.eq(n)},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case ue:case oe:t=this._prevItem(n);break;case ce:case ae:t=this._nextItem(n);break;case le:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case se:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case he:t=n.first();break;case de:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",(0,c.getPublicElement)(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),i=e.last(),r=(0,o.default)(e[n-1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=i),r},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),i=e.first(),r=(0,o.default)(e[n+1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=i),r},_selectFocusedItem:function(e){this.selectItem(e)},_updateFocusedItemState:function(e,t,n){var i=(0,o.default)(e);i.length&&(this._refreshActiveDescendant(),this._refreshItemId(i,n),this._toggleFocusClass(t,i))},_refreshActiveDescendant:function(e){this.setAria("activedescendant",(0,f.isDefined)(this.option("focusedElement"))?this.getFocusedItemId():null,e)},_refreshItemId:function(e,t){!t&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),e):this.setAria("id",null,e)},_setFocusedItem:function(e){e&&e.length&&(this._updateFocusedItemState(e,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=(0,o.default)(),n=this;return this.itemElements().each(function(){var i=(0,o.default)(this);if(i.data(n._itemDataKey())===e)return t=i,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var r=this._findItemElementByItem(e);if(r.length){this.constructor.ItemClass.getInstance(r).setDataField(t,n)||this._refreshItem(r,e);var o="disabled"===t&&n;o&&this._resetItemFocus(r)}},_resetItemFocus:function(e){e.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(re);if(t&&t.length){var n=t[t.length-1],i=e.fullName.replace("."+n,""),r=this.option(i);return void this._itemOptionChanged(r,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._updateFocusedItemState(e.previousValue,!1,!0),this._setFocusedItem((0,o.default)(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){(0,o.default)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return X},_itemContentClass:function(){return this._itemClass()+q},_selectedItemClass:function(){return ee},_itemResponseWaitClass:function(){return te},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return $},_itemIndexKey:function(){return Z},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(Y),this._prepareContent()},_prepareContent:u.default.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=T.default.addNamespace(N.default.name,this.NAME),n=T.default.addNamespace(E.default.down,this.NAME),i=this,r=new b.default(function(e){var t=e.event;i._itemPointerDownHandler(t)});s.default.off(this._itemContainer(),t,e),s.default.off(this._itemContainer(),n,e),s.default.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),s.default.on(this._itemContainer(),n,e,function(e){r.execute({element:(0,o.default)(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=(0,o.default)(e.target),n=t.closest(this._itemElements()),i=this._closestFocusable(t);n.length&&i&&(0,_.inArray)(i.get(0),this._focusTarget())!==-1&&this.option("focusedElement",(0,c.getPublicElement)(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(L.default.focusable))return e;for(e=e.parent();e.length&&!h.default.isDocument(e.get(0));){if(e.is(L.default.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=T.default.addNamespace(F.default.name,this.NAME);s.default.off(e,n,t),s.default.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=T.default.addNamespace(j.default.name,this.NAME);s.default.off(e,n,t),s.default.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&v.default.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var r=this._renderItemFrame(e,t,n,i);this._setElementData(r,t,e),r.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,r);var o=this._getItemContent(r),a=this._renderItemContent({index:e,itemData:t,container:(0,c.getPublicElement)(o),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),s=this;return(0,p.when)(a).done(function(n){s._postprocessRenderItem({itemElement:r,itemContent:n,itemData:t,itemIndex:e}),s._executeItemRenderAction(e,t,(0,c.getPublicElement)(r))}),r},_getItemContent:function(e){var t=e.find("."+K);return t.removeClass(K),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&s.default.on(t,N.default.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var i=(0,o.default)(this._createItemByTemplate(n,e));return i.hasClass(ie)?this._renderItemContentByNode(e,i):e.container},_renderItemContentByNode:function(e,t){return(0,o.default)(e.container).replaceWith(t),e.container=(0,c.getPublicElement)(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[X+q,e.contentClass];(0,o.default)(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,n){t.appendTo(e)},_renderItemFrame:function(e,t,n,i){var r=(0,o.default)("
");return new this.constructor.ItemClass(r,this._itemOptions(),t||{}),i&&i.length?i.replaceWith(r):this._appendItemToContainer.call(this,n,r,e),r},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(t){var n=e.option(t+"Expr"),i=(0,z.compileGetter)(n);return i}}},_postprocessRenderItem:u.default.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([X,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty"),i=t&&t[n];return i||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||(0,o.default)("
").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass(ne,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,(0,g.extend)(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var r=this._createActionByOption(t,(0,g.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerByHandler:function(e,t,n,i){var r=this._createAction(t,(0,g.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerImpl:function(e,t,n){var i=this._closestItemElement((0,o.default)(e)),r=(0,g.extend)({},n);return t((0,g.extend)(n,this._extendActionArgs(i),r))},_extendActionArgs:function(e){return{itemElement:(0,c.getPublicElement)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,o.default)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,o.default)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&v.default.each(e,function(e,i){n+=(0,o.default)(i).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new S.default),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(D.default);fe.ItemClass=I.default,e.exports=fe},function(e,t,n){var i=n(182),r=n(36),o=n(3).each,a=n(1).isFunction,s=n(6).Deferred,l=n(154),u=function e(t,n,u){u=u||[],n=n||{};var c=function(e,t){return{name:e,args:t}},d=function(e){function d(e){switch(e.name){case"sortBy":return m=[e.args],!0;case"thenBy":if(!m)throw r.errors.Error("E4004");return m.push(e.args),!0}return!1}function h(){var e=g[0],t=[];e&&"multiSort"===e.name&&(g.shift(),o(e.args[0],function(){t.push(c(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var f,p,g,_,m,v=new s,y=function(e){var t=n.errorHandler;t&&t(e),r._errorHandler(e),v.reject(e)};try{f=n.adapter,a(f)||(f=i[f]),p=f(n),g=[].concat(u).concat(e);var b=p.optimize;for(b&&b(g);g.length;){if(_=g[0],!d(_)){if(m){g.unshift(c("multiSort",[m])),m=null;continue}if("enumerate"!==String(_.name)&&(!p[_.name]||p[_.name].apply(p,_.args)===!1))break}g.shift()}h(),p.exec(t).done(function(e,t){if(g.length){var i=l(e,{errorHandler:n.errorHandler});o(g,function(){i=i[this.name].apply(i,this.args)}),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)}).fail(y)}catch(e){y(e)}return v.promise()},h={};return o(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,u.concat(c(i,arguments)))}}),o(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return d.call(this,c(e,arguments))}}),h};e.exports=u},function(e,t,n){var i=n(2),r=n(15),o=n(4),a=r.abstract,s=r.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:a,getItemDataByIndex:a,getKeysByItems:a,getItemsByKeys:a,itemsGetter:a,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?o.equalByValue(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:a,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:a,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,r=e?["!",t]:t,o=e?"and":"or",a=!0,s=i.options.selectionFilter||[];if(s=i._denormalizeFilter(s),s&&s.length){i._removeSameFilter(s,t,e,n);var l=i._removeSameFilter(s,t,!e),u=this._isKeyFilter(t)&&this._hasKeyFiltersOnlyStartingFromIndex(s,l);a=t.length&&!u,a&&(s=i._addFilterOperator(s,o))}a&&s.push(r),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeFilterByIndex:function(e,t,n){var i=e[1];t>0?e.splice(t-1,2):e.splice(t,2),n&&"and"===i&&e.splice(0,e.length)},_isSimpleKeyFilter:function(e,t){return 3===e.length&&e[0]===t&&"="===e[1]},_isKeyFilter:function(e){if(2===e.length&&"!"===e[0])return this._isKeyFilter(e[1]);var t=this.options.key();if(Array.isArray(t)){if(e.length!==2*t.length-1)return!1;for(var n=0;n0&&"and"!==e[n])return!1;if(!this._isSimpleKeyFilter(e[2*n],t[n]))return!1}return!0}return this._isSimpleKeyFilter(e,t)},_hasKeyFiltersOnlyStartingFromIndex:function(e,t){if(t>=0){for(var n=t;n=0)return this._removeFilterByIndex(e,r,i),r;for(var o=0;o2){var a=this._removeSameFilter(e[o],t,!1,i);if(a>=0)return e[o].length?1===e[o].length&&(e[o]=e[o][0]):this._removeFilterByIndex(e,o,i),a}return-1},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;return!t||!!t.length&&(e&&e.length?(t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0):void 0)}})},function(e,t,n){var i=n(4),r=n(1),o=i.getKeyHash,a=n(42),s=n(6),l=n(285).SelectionFilterCreator,u=s.when,c=s.Deferred,d=n(17),h=n(234);e.exports=h.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,r,o=this.options.keyOf;if(o){var a=t&&e.length>1&&!this.options.equalByReference;for(a&&(n={}),r=0;r=0&&(n[i]=!0)):this.addSelectedItem(l,s)}a&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):r.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;te&&r[a]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,o=this._indexOfSelectedItemKey(n,t);if(o<0)return o;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[o]),i)return o;if(this.options.selectedItemKeys.splice(o,1),this.options.selectedItems.splice(o,1),r.isObject(n)||!this.options.keyHashIndices)return o;var a=this.options.keyHashIndices[n];return a?(a.shift(),a.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(o),o):o},_updateAddedItemKeys:function(e,t){for(var n=0;n").attr("data-bind",t+": options").get(0);i(e.container).append(o),r.applyBindings(e.model,o)}}}},createTemplate:function(e){return new d(e)}}},w={},k=function(e,t,n){var i=v.data(_),o=n?r.unwrap(t):t;if(r.isWriteableObservable(t)&&(w[e]=t),u){if(i.locked(e))return;i.obtain(e);try{r.ignoreDependencies?r.ignoreDependencies(u.option,u,[e,o]):u.option(e,o)}finally{i.release(e)}}else C[e]=o},T=function(e){var t=e.fullName,n=e.value;if(t in w){var i=this._$element,r=i.data(_);if(!r.locked(t)){r.obtain(t);try{w[t](n)}finally{r.release(t)}}}},A=function(){y.add(T),v.data(m,!0).data(_,new f),new t(v,C),C=null},E=function(t,n,i){if(i!==S)if(!h||h(i,n,t)){var o;r.computed(function(){var e=t[n];k(i,e,!0),o=r.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(o)&&(b[i]||O(o,i))}else k(i,t[n],!1)},O=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&E(e,n,t?[t,n].join("."):n)};return A(),{controlsDescendantBindings:t.subclassOf(c)}}},"dxValidator"===e&&(r.bindingHandlers.dxValidator.after=v)};u.add(function(e,t){y(e,t)})},function(e,t,n){var i=n(2),r=n(10),o=n(61),a=n(1),s=n(71),l=n(12),u=n(235).getClosestNodeWithContext,c=function(e){var t=r.createElement("div");o.applyBindingsToNode(t,null,e);var n=o.contextFor(t);return o.cleanNode(t),n},d=s.inherit({ctor:function(e){this._element=e,this._template=i("
").append(l.normalizeTemplateElement(e)),this._registerKoTemplate()},_registerKoTemplate:function(){var e=this._template.get(0);new o.templateSources.anonymousTemplate(e).nodes(e)},_prepareDataForContainer:function(e,t){if(t&&t.length){var n=t.get(0),i=u(n),r=o.contextFor(i);if(e=void 0!==e?e:o.dataFor(i)||{},r)return e===r.$data?r:r.createChildContext(e)}return c(e).createChildContext(e)},_renderCore:function(e){var t=this._prepareDataForContainer(e.model,i(e.container));a.isDefined(e.index)&&(t.$index=e.index);var n,r=i("
").appendTo(e.container);return o.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=i(e)}},r.get(0),"replaceNode"),n},source:function(){return i(this._element).clone()},dispose:function(){this._template.remove()}});e.exports=d},function(e,t,n){var i=n(2),r=n(5),o=n(61),a=n(1).isPlainObject,s=n(113),l=n(8);s.add(function(e){var t=l.addNamespace(e,e+"Binding");o.bindingHandlers[e]={update:function(e,n,s,l){var u=i(e),c=o.utils.unwrapObservable(n()),d=c.execute?c.execute:c;r.off(u,t),r.on(u,t,a(c)?c:{},function(e){d.call(l,l,e)})}}})},function(e,t,n){var i=n(61),r=n(62);i.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:i.unwrap(t())}}},i.bindingHandlers.dxIcon={init:function(e,t){var n=i.utils.unwrapObservable(t())||{},o=r.getImageContainer(n);i.virtualElements.emptyNode(e),o&&i.virtualElements.prepend(e,o.get(0))},update:function(e,t){var n=i.utils.unwrapObservable(t())||{},o=r.getImageContainer(n);i.virtualElements.emptyNode(e),o&&i.virtualElements.prepend(e,o.get(0))}},i.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(3).each,r=n(15),o=n(81),a=n(99),s=n(61),l=r.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=a.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(o);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},a.registerModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&a.registerValidatorInGroup(e,n.dxValidator)})},a.unregisterModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&a.removeRegisteredValidator(e,n.dxValidator)})},a.validateModel=a.validateGroup},function(e,t,n){var i=n(61),r=n(87);r.inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(37),r=i.afterCleanData,o=i.strategyChanging,a=n(61),s=n(58).compare,l=a.utils.domNodeDisposal.cleanExternalData,u=function(){r(function(e){for(var t=0;t1&&(e.forEach(function(e){var o=e.getOptions().grid;t?a(e,!1,!1):o&&o.visible&&(e.getTranslator().getBusinessRange().isEmpty()?(a(e,!1,!1),n.push(e)):(t=!0,a(e,r,i)))}),!t&&n.length&&a(n[0],r,i))}function l(e,t,n){var i,r;for(r=0;r0&&(r=S(t,i(n,g)),v(n,"hideTitle"),e[t]-=r-S(t,i(n,g))),e[t]>0&&v(n,"hideOuterElements")}function w(e,t){var n=t.reduce(function(e,t){return e+=t.getPoints().length},0)/t.length;return e.animate&&n<=e.animationPointsLimit}function k(e,t){return Q(t)?e.length===t.length&&e.every(function(e,n){return e===t[n]}):e.startValue===t.startValue&&e.endValue===t.endValue}var T=n(4),A=n(0),E=n(13),O=n(3),D=n(9),M=i(D),I=n(11),P=n(1),L=n(28),R=n(266),V=n(404),B=i(V),F=n(783),z=i(F),H=n(406),N=n(792),G=i(N),j=n(412),W=i(j),U=n(273),Y=i(U),X=n(109),q=i(X),K="default",$="VISUAL_RANGE",Z=[{name:K,border:{}}],Q=Array.isArray,J=function(e,t,n,i,r){var o=~~((n1&&(i.some(function(e){return e===o})?i.forEach(function(e){e!==o&&(e.getOptions().optionPath=null)}):i.forEach(function(e,t){0!==t&&(e.getOptions().optionPath=null)}))}})},_getSeriesForPane:function(e){var t=[];return(0,O.each)(this.series,function(n,i){i.pane===e&&t.push(i)}),t},_createPanesBorderOptions:function(){var e=this._themeManager.getOptions("commonPaneSettings").border,t={};return this.panes.forEach(function(n){return t[n.name]=(0,A.extend)(!0,{},e,n.border)}),t},_createScrollBar:function(){var e=this,t=e._themeManager.getOptions("scrollBar")||{},n=e._scrollBarGroup;t.visible?(t.rotated=e._isRotated(),e._scrollBar=(e._scrollBar||new G.default.ScrollBar(e._renderer,n)).update(t)):(n.linkRemove(),e._scrollBar&&e._scrollBar.dispose(),e._scrollBar=null)},_prepareToRender:function(e){var t=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),t},_adjustViewport:function(){var e=this,t=e._getVisibleSeries(),n=e.getArgumentAxis(),i=t.some(function(e){return e.useAggregation()}),r=e._themeManager.getOptions("adjustOnZoom"),o=!n.dataVisualRangeIsReduced();(i||r)&&e._valueAxes.forEach(function(e){return e.adjust(o)})},_recreateSizeDependentObjects:function(e){var t=this,n=t._getVisibleSeries(),i=n.some(function(e){return e.useAggregation()}),r=t._isZooming();i&&(t._argumentAxes.forEach(function(e){e.updateCanvas(t._canvas)}),n.forEach(function(t){t.useAggregation()&&(e||r||!t._useAllAggregatedPoints)&&t.createPoints()}),t._processSeriesFamilies())},_isZooming:function(){var e=this,t=e.getArgumentAxis();if(!t||!t.getTranslator())return!1;var n=t.getTranslator().getBusinessRange(),i=t.getViewport(),r=i?i.min:0,o=i?i.max:0;"logarithmic"===n.axisType&&(r=(0,I.getLog)(r,n.base),o=(0,I.getLog)(o,n.base));var a="discrete"===n.axisType?(0,I.getCategoriesInfo)(n.categories,r,o).categories.length:Math.abs(o-r),s=(0,L.getPrecision)(a);s=s>1?Math.pow(10,s-2):1;var l=Math.round((e._zoomLength-a)*s)/s!==0;return e._zoomLength=a,l},_handleSeriesDataUpdated:function(){var e=this,t=new q.default.Range;e.series.forEach(function(e){t.addRange(e.getArgumentRange())}),e._argumentAxes.forEach(function(n){n.updateCanvas(e._canvas),n.setBusinessRange(t,e._axesReinitialized)}),e.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(e){var t,n=this,i=n._getCanvasClipRectID();for(n._drawPanesBorders(e),n._createClipRectsForPanes(),t=0;t=p){d&=g!==h+1;break}var y=(0,P.isDefined)(m)&&(0,P.isDefined)(v)&&Math.sqrt(Math.pow(f.x-m,2)+Math.pow(f.y-v,2));y&&yr))for(var o in u[n]){var s=parseInt(o);if(!(isNaN(s)||u[n].total/u[n].continuousSeries<3))if(s===n){if(2*u[s][s]>=u[s].pointsCount){t.autoHidePointMarkers=!0;break}}else if(u[n].total>=u[n].pointsCount){t.autoHidePointMarkers=!0;break}}})}):void e.series.forEach(function(e){return e.autoHidePointMarkers=!1})},_renderAxes:function(e,t){function n(e){return e.map(function(e){if(!e.getTitle)return 0;var t=e.getTitle();return t?t.bBox.width:0})}var i=this,r=i._isRotated(),o=i._themeManager.getOptions("synchronizeMultiAxes"),a=(i._scrollBar?[i._scrollBar]:[]).concat(i._argumentAxes),s=r?a:i._valueAxes,l=r?i._valueAxes:a,u=s.concat(l);i._updatePanesCanvases(e);var c=i.panes.reduce(function(e,t){return e[t.name]=(0,A.extend)({},t.canvas),e},{}),d=(0,A.extend)(!0,{},c);if(!e.adjustAxes)return b(s,!r&&o,c,t),b(l,r&&o,c,t),v(u,"prepareAnimation"),i._renderScaleBreaks(),!1;i._scrollBar&&i._scrollBar.setPane(i.panes);var h={panes:{}},f=_(l,function(e){return e.estimateMargins(c[e.pane])});c=y(r,c,h,f),b(s,!r&&o,c,t),h=m(s),c=y(r,c,h,f),b(l,r&&o,c,t),f=_(l,g),c=y(r,c,h,f);var p=n(s);return v(u,"updateSize",c,w(e,i._getVisibleSeries())),l.forEach(x("top","bottom")),s.forEach(x("left","right")),i._renderScaleBreaks(),i.panes.forEach(function(e){(0,A.extend)(e.canvas,c[e.name])}),i._valueAxes.forEach(function(e){e.setInitRange()}),s.forEach(function(e,t){if(e.hasWrap&&e.hasWrap()){var o=e.getTitle(),a=o?o.bBox.width:0,l=a-p[t];"right"===e.getOptions().position?h.right+=l:(h.left+=l,i.panes.forEach(function(e){var t=e.name;return h.panes[t].left+=l})),c=y(r,c,h,f),v(u,"updateSize",c,!1,!1),p=n(s)}}),d},_shrinkAxes:function(e,t){if(e&&t){this._renderer.stopAllAnimations(!0);var n=this,i=n._isRotated(),r=(n._scrollBar?[n._scrollBar]:[]).concat(n._argumentAxes),o=i?r:n._valueAxes,a=i?n._valueAxes:r,s=o.concat(a);(e.width||e.height)&&(C(e,"height",a,_),C(e,"width",o,m),v(s,"updateSize",t),t=y(i,t,m(o),_(a,g)),v(s,"updateSize",t),a.forEach(x("top","bottom")),o.forEach(x("left","right")),n.panes.forEach(function(e){(0,A.extend)(e.canvas,t[e.name])}))}},_getPanesParameters:function(){for(var e=this,t=e.panes,n=[],i=0;i0?n._setCustomVisualRange("argumentAxis"===i,(0,P.isDefined)(r)?parseInt(r[0]):r,t):("object"===(0,P.type)(t)||"array"===(0,P.type)(t))&&i.indexOf("Axis")>0&&JSON.stringify(t).indexOf("visualRange")>0&&((0,P.isDefined)(t.visualRange)?n._setCustomVisualRange("argumentAxis"===i,(0,P.isDefined)(r)?parseInt(r[0]):r,t.visualRange):Q(t)&&t.forEach(function(e,t){return n._setCustomVisualRange("argumentAxis"===i,t,e.visualRange)}))},_setCustomVisualRange:function(e,t,n){var i=this,r=e?"argumentAxis":"valueAxis",o=i._options[r];o&&(e||!(0,P.isDefined)(t)?o._customVisualRange=n:o[t]._customVisualRange=n,i._axesReinitialized=!0)},zoomArgument:function(e,t){var n=this;n._initialized&&((0,P.isDefined)(e)||(0,P.isDefined)(t))&&n.getArgumentAxis().visualRange([e,t])},resetVisualRange:function(){var e=this;e._argumentAxes.forEach(function(t){t.resetVisualRange(e.getArgumentAxis()!==t)}),e._valueAxes.forEach(function(e){return e.resetVisualRange(!1)}),e._requestChange([$])},_getVisualRangeSetter:function(){var e=this;return function(t,n){var i=n.skipEventRising,r=n.range;if(t.getOptions().optionPath&&(e._parseVisualRangeOption(t.getOptions().optionPath+".visualRange",r),t.setCustomVisualRange(r)),t.skipEventRising=i,t.isArgumentAxis){if(t!==e.getArgumentAxis())return;e._argumentAxes.filter(function(e){return e!==t}).forEach(function(e){return e.visualRange(r,{start:!0,end:!0})})}e._applyingChanges?e._change_VISUAL_RANGE():e._requestChange([$])}},getVisibleArgumentBounds:function(){var e=this._argumentAxes[0].getTranslator(),t=e.getBusinessRange(),n="discrete"===t.axisType,i=t.categories;return{minVisible:n?t.minVisible||i[0]:t.minVisible,maxVisible:n?t.maxVisible||i[i.length-1]:t.maxVisible}},_change_VISUAL_RANGE:function(){var e=this;e._recreateSizeDependentObjects(!1),e._changes.has("FULL_RENDER")||(e._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:this.option("adjustAxesOnZoom")||!1,animate:!1}),e._raiseZoomEndHandlers())},_change_FULL_RENDER:function(){this.callBase(),this._changes.has($)&&this._raiseZoomEndHandlers()},_raiseZoomEndHandlers:function(){this._argumentAxes.forEach(function(e){return e.handleZoomEnd()}),this._valueAxes.forEach(function(e){return e.handleZoomEnd()})},_notifyOptionChanged:function(e,t,n){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(e,t)},_setOptionsByReference:function(){this.callBase(),(0,A.extend)(this._optionsByReference,{"argumentAxis.visualRange":!0,"valueAxis.visualRange":!0})},option:function e(){var e=this.callBase.apply(this,arguments);if("array"===(0,P.type)(this._options.valueAxis))for(var t=0;t0){var n;e.fullName&&(n=e.fullName.slice(0,e.fullName.indexOf(".")));var i=e.value,o={skipEventRising:!0},a=e.fullName.split("."),s=a[a.length-1];"endValue"!==s&&"startValue"!==s||(o={allowPartialUpdate:!0},i=r({},s,e.value));var l=[t.getArgumentAxis()].concat(t._valueAxes).filter(function(e){return e.getOptions().optionPath===n})[0];l&&l.visualRange(i,o)}else t.getPartialChangeOptionsName(e).indexOf("visualRange")>-1&&("argumentAxis"===e.name?t.getArgumentAxis().visualRange(e.value.visualRange):"valueAxis"===e.name&&("object"===(0,P.type)(e.value)?t._valueAxes[0].visualRange(e.value.visualRange):e.value.forEach(function(n,i){(0,P.isDefined)(n.visualRange)&&(0,P.isDefined)(t._valueAxes[i])&&t._valueAxes[i].visualRange(e.value[i].visualRange)})));t.callBase(e)},_notify:function(){var e=this;if(e.callBase(),e.option("disableTwoWayBinding")!==!0){var t=(0,I.convertVisualRangeObject)(this._argumentAxes[0].visualRange(),!Q(e.option("argumentAxis.visualRange")));this._argumentAxes[0].skipEventRising&&k(t,e.option("argumentAxis.visualRange"))?this._argumentAxes[0].skipEventRising=null:e.option("argumentAxis.visualRange",t),e._valueAxes.forEach(function(t){if(t.getOptions().optionPath){var n="".concat(t.getOptions().optionPath,".visualRange"),i=(0,I.convertVisualRangeObject)(t.visualRange(),!Q(e.option(n)));t.skipEventRising&&k(i,e.option(n))?t.skipEventRising=null:e.option(n,i)}})}}});ee.addPlugin(n(793)),ee.addPlugin(n(794)),ee.addPlugin(n(413).plugins.core),ee.addPlugin(n(413).plugins.chart),(0,M.default)("dxChart",ee),e.exports=ee},function(e,t,n){var i="#ffffff",r="#000000",o="#d3d3d3",a="#303030",s="#2b2b2b",l="#ff0000",u="#232323",c="#767676",d="none",h="solid",f="top",p="right",g="bottom",_="left",m="center",v="inside",y="outside",b=n(50),x=b.registerTheme,S=b.registerThemeAlias;x({name:"generic.light",isDefault:!0,font:{color:c,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:i,primaryTitleColor:u,secondaryTitleColor:c,gridColor:o,axisColor:c,title:{backgroundColor:i,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},"export":{backgroundColor:i,margin:10,font:{size:14,color:u,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},"default":{color:"#333",borderColor:"#ddd",backgroundColor:i},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:r,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:o},tooltip:{enabled:!1,border:{width:1,color:o,dashStyle:h,visible:!0},font:{color:u},color:i,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:m,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:r}},legend:{hoverMode:"includePoints",verticalAlignment:f,horizontalAlignment:p,position:y,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:h},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:i,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:p,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:p,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:r,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:m,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:y,font:{color:i},border:{visible:!1,width:1,color:o,dashStyle:h},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:_}},resolveLabelOverlapping:d},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:r,dashStyle:h,label:{visible:!0,position:v}},marker:{label:{}}},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:v}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:v}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:h,label:{visible:!1,font:{color:i,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:m},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:g,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:m},stripStyle:{label:{horizontalAlignment:m,verticalAlignment:f}},constantLineStyle:{label:{horizontalAlignment:p,verticalAlignment:f}},constantLines:[]},verticalAxis:{position:_,axisDivisionFactor:40,label:{alignment:p},stripStyle:{label:{horizontalAlignment:_,verticalAlignment:m}},constantLineStyle:{label:{horizontalAlignment:_,verticalAlignment:f}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:d,border:{color:o,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:h}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,zoomingMode:d,scrollingMode:d,synchronizeMultiAxes:!0, stickyHovering:!0,equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0},commonAnnotationSettings:{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:h,visible:!0},color:i,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:r},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:p,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:p,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:p,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:p,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:p,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:p,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:d},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:m,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:f,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:d,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:i,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:m,verticalAlignment:g},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:y,label:{indentFromTick:10}},rangeContainer:{orientation:y},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:p,verticalOrientation:g,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:p,verticalOrientation:g},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:p,verticalOrientation:g},trianglemarker:{offset:10,horizontalOrientation:_,verticalOrientation:f},textcloud:{offset:-1,horizontalOrientation:_,verticalOrientation:f}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:m,verticalAlignment:g},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:r,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:m,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:r,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:r,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:l,font:{color:i,size:11}},sliderHandle:{width:1,color:r,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:i,"stroke-width":1,"stroke-opacity":.7,font:{color:s,size:12}}},"layer:area":{borderWidth:1,borderColor:i,color:"#d2d2d2",hoveredBorderColor:a,selectedBorderWidth:2,selectedBorderColor:a,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:i,size:8,selectedStep:2,backStep:18,backColor:i,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:a,selectedBorderWidth:2,selectedBorderColor:a},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:a,selectedBorderWidth:2,selectedBorderColor:a},"layer:marker:image":{size:20},legend:{verticalAlignment:g,horizontalAlignment:p,position:v,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:i,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:_}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,stroke:"#000000","stroke-width":1,"stroke-opacity":.3,font:{color:"#ffffff",weight:300},shadow:{opacity:.8,offsetX:0,offsetY:1,blur:1,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:c,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:i,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},equalBarWidth:!0,barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:f,axisDivisionFactor:50,label:{alignment:m}},verticalAxis:{position:f,axisDivisionFactor:30,label:{alignment:p}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:p},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:p},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:_}},tooltip:{customizeTooltip:function(e){return{text:e.item.argument+" "+e.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:p,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(e){return e.item.argument+" "+e.valueText},position:"columns",font:{color:i},border:{visible:!1,width:1,color:o,dashStyle:h},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:m,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:r,weight:500},border:{visible:!1,width:2,color:i},customizeText:function(e){return e.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:i}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:i,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:p},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:i,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:p},border:{}}}}}),S("generic.light.compact","generic.light")},function(e,t,n){var i=n(50),r=i.registerTheme,o=i.registerThemeAlias,a="#ffffff",s="#000000",l="#2b2b2b",u="#b5b5b5",c="#303030",d="#686868",h="#c7c7c7",f="#8e8e8e",p="#b8b8b8",g="#494949";r({name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3","export":{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{"default":{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:l,border:{color:g},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:g}},valueErrorBar:{color:a}}},"chart:common:axis":{constantLineStyle:{color:a}},chart:{commonPaneSettings:{border:{color:g}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:a}},commonAnnotationSettings:{font:{color:"#929292"},border:{color:g},color:l,shadow:{opacity:.008,offsetY:4,blur:8}}},gauge:{rangeContainer:{backgroundColor:u},valueIndicators:{_default:{color:u},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:a,opacity:.32},minorTick:{color:a,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:u,sliderMarker:{color:u,font:{color:c}},sliderHandle:{color:a,opacity:.2},shutter:{color:l,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:s,font:{color:a}}},"layer:area":{borderColor:c,color:d,hoveredBorderColor:a,selectedBorderColor:a},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:a,selectedBorderColor:a},"layer:marker:pie":{hoveredBorderColor:a,selectedBorderColor:a},legend:{border:{color:"#3f3f3f"},font:{color:a}},controlBar:{borderColor:h,color:c}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:h,firstLastColor:h,barPositiveColor:p,barNegativeColor:f,winColor:p,lossColor:f,pointColor:c},bullet:{targetColor:f},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:a},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},"generic.light"),o("generic.dark.compact","generic.dark")},function(e,t,n){var i=n(50),r=i.registerTheme,o=i.registerThemeAlias,a="#ffffff",s="#000000",l="#cf00da",u="#f8ca00",c="#686868";r({name:"generic.contrast",defaultPalette:"Bright",font:{color:a},backgroundColor:s,primaryTitleColor:a,secondaryTitleColor:a,gridColor:a,axisColor:a,"export":{backgroundColor:s,font:{color:a},button:{"default":{color:a,borderColor:a,backgroundColor:s},hover:{color:a,borderColor:a,backgroundColor:"#cf00d7"},focus:{color:a,borderColor:"#cf00d7",backgroundColor:s},active:{color:s,borderColor:a,backgroundColor:a}},borderColor:a,menuButtonColor:s,activeBackgroundColor:a,activeColor:s,selectedBorderColor:l,selectedColor:l,shadowColor:"none"},tooltip:{border:{color:a},font:{color:a},color:s},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:a},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:a},border:{color:a}}}},"chart:common:axis":{constantLineStyle:{color:a}},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:s,border:{color:a}},scrollBar:{color:a},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:a,opacity:.7}},commonAnnotationSettings:{font:{color:a},border:{color:a},color:s}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:a},valueIndicators:{_default:{color:a},rangebar:{color:a,backgroundColor:s},twocolorneedle:{secondColor:a},trianglemarker:{color:a},textcloud:{color:a,text:{font:{color:s}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:a,opacity:.4},minorTick:{color:a,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:l,sliderMarker:{color:l},sliderHandle:{color:l,opacity:1},shutter:{opacity:.75},background:{color:s}},map:{background:{borderColor:a},layer:{label:{stroke:s,font:{color:a}}},"layer:area":{borderColor:s,color:c,hoveredBorderColor:a,selectedBorderColor:a,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:a},"layer:marker:dot":{borderColor:s,color:u,backColor:s,backOpacity:.32},"layer:marker:bubble":{color:u,hoveredBorderColor:a,selectedBorderColor:a},"layer:marker:pie":{hoveredBorderColor:a,selectedBorderColor:a},controlBar:{borderColor:a,color:s,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:a}}}},sparkline:{pointColor:s},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:a},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:a}},link:{opacity:.5,border:{visible:!0,width:1,color:a},hoverStyle:{opacity:.9}}}},"generic.light"),o("generic.contrast.compact","generic.contrast")},function(e,t,n){var i=n(50),r=i.registerTheme,o=i.registerThemeAlias,a="#f05b41",s="#fff",l="#333",u="#8899a8",c="#707070",d="#dee1e3";r({name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:s,primaryTitleColor:l,secondaryTitleColor:u,gridColor:d,axisColor:c,"export":{backgroundColor:s,font:{color:l},button:{"default":{color:l,borderColor:"#b1b7bd",backgroundColor:s},hover:{color:l,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:l,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:l,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:c}},tooltip:{color:s,border:{color:d},font:{color:l}},"chart:common":{commonSeriesSettings:{label:{border:{color:d}}}},chart:{commonPaneSettings:{border:{color:d}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}},commonAnnotationSettings:{font:{color:l},border:{color:d},color:s}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:.5}},sparkline:{pointColor:s,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:d,label:{font:{color:u}}}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}}},"generic.light"),o("generic.carmine.compact","generic.carmine")},function(e,t,n){var i=n(50),r=i.registerTheme,o=i.registerThemeAlias,a="#3debd3",s="#465672",l="#fff",u="#919bac",c="#c7ccd4",d="#596980";r({name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:s,primaryTitleColor:l,secondaryTitleColor:u,gridColor:d,axisColor:c,"export":{backgroundColor:s,font:{color:l},button:{"default":{color:l,borderColor:"#7a889e",backgroundColor:s},hover:{color:l,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:l,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:l,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:c}},tooltip:{color:"#62789e",border:{color:d},font:{color:l}},"chart:common":{commonSeriesSettings:{label:{border:{color:d}}}},chart:{commonPaneSettings:{border:{color:d}},commonAxisSettings:{breakStyle:{color:"#73869e"}},commonAnnotationSettings:{font:{color:l},border:{color:d},color:"#62789e"}},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a,text:{font:{color:s}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:s}}},sparkline:{pointColor:s,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:d,label:{font:{color:l}}}},map:{background:{borderColor:d},"layer:area":{color:"#97a3b6",borderColor:s}},rangeSelector:{shutter:{color:s},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:a,sliderMarker:{color:a,font:{color:"#000"}},sliderHandle:{color:a,opacity:.5}},bullet:{color:a},sankey:{link:{border:{color:s}},node:{border:{color:s}}}},"generic.dark"),o("generic.darkmoon.compact","generic.darkmoon")},function(e,t,n){var i=n(50),r=i.registerTheme,o=i.registerThemeAlias,a="#7ab8eb",s="#fff",l="#333",u="#99a1a8",c="#707070",d="#e8eaeb";r({name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:s,primaryTitleColor:l,secondaryTitleColor:u,gridColor:d,axisColor:c,"export":{backgroundColor:s,font:{color:l},button:{"default":{color:l,borderColor:"#c9d0d4",backgroundColor:s},hover:{color:l,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:l,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:l,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:c}},tooltip:{color:s,border:{color:d},font:{color:l}},"chart:common":{commonSeriesSettings:{label:{border:{color:d}}}},chart:{commonPaneSettings:{border:{color:d}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}},commonAnnotationSettings:{color:s,border:{color:d},font:{color:l}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:.5}},sparkline:{pointColor:s,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:d,label:{font:{color:u}}}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}}},"generic.light"),o("generic.softblue.compact","generic.softblue")},function(e,t,n){var i=n(50),r=i.registerTheme,o=i.registerThemeAlias,a="#9c63ff",s="#17171f",l="#f5f6f7",u="#fff",c="#b2b2b6",d="#343840";r({name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:s,primaryTitleColor:l,secondaryTitleColor:u,gridColor:d,axisColor:c,"export":{backgroundColor:s,font:{color:l},button:{"default":{color:l,borderColor:"#414152",backgroundColor:s},hover:{color:l,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:l,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:l,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:c}},tooltip:{color:s,border:{color:"#414152"},font:{color:l}},"chart:common":{commonSeriesSettings:{label:{border:{color:d}}}},chart:{commonPaneSettings:{border:{color:d}},commonAxisSettings:{breakStyle:{color:"#575e6b"}},commonAnnotationSettings:{font:{color:l},border:{color:"#414152"},color:s}},funnel:{item:{border:{color:s}}},sparkline:{pointColor:s,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:d,label:{font:{color:u}}}},rangeSelector:{shutter:{color:s},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:a,sliderMarker:{color:a,font:{color:"#fff"}},sliderHandle:{color:a,opacity:.5}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}},sankey:{link:{border:{color:s}},node:{border:{color:s}}}},"generic.dark"),o("generic.darkviolet.compact","generic.darkviolet")},function(e,t,n){var i=n(50),r=i.registerTheme,o=i.registerThemeAlias,a="#3cbab2",s="#f5f5f5",l="#28484f",u="#7eb2be",c="#657c80",d="#dedede";r({name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:s,primaryTitleColor:l,secondaryTitleColor:u,gridColor:d,axisColor:c,"export":{backgroundColor:s,font:{color:l},button:{"default":{color:l,borderColor:"#a2b4b8",backgroundColor:s},hover:{color:l,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:l,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:l,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:c}},tooltip:{color:"#fff",border:{color:d},font:{color:l}},"chart:common":{commonSeriesSettings:{label:{border:{color:d}}}},chart:{commonPaneSettings:{border:{color:d}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}},commonAnnotationSettings:{color:"#fff",border:{color:d},font:{color:l}}},funnel:{item:{border:{color:s}}},sparkline:{pointColor:s,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:d,label:{font:{color:u}}}},rangeSelector:{shutter:{color:s},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:.5}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}}},"generic.light"),o("generic.greenmist.compact","generic.greenmist")},function(e,t,n){function i(e,t,n){o({name:"material."+e+"."+t,rangeSelector:{selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n}},map:{"layer:marker:dot":{color:n},"layer:marker:bubble":{color:n},legend:{markerColor:n}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},"material."+t)}var r=n(50),o=r.registerTheme,a=r.registerThemeAlias,s="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",l="rgba(0,0,0,0.87)",u="rgba(0,0,0,0.54)",c="rgba(255,255,255,0.87)",d="rgba(255,255,255,0.54)",h="#363640",f="#ffffff",p="#000000",g="#b5b5b5",_="#686868",m="#c7c7c7",v="#8e8e8e",y="#b8b8b8",b="#494949",x="#818181";o({name:"material",defaultPalette:"Material",font:{family:s},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:s,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:f},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:f},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},"generic.light"),o({name:"material.light",gridColor:"#e0e0e0",axisColor:u,primaryTitleColor:l,legend:{font:{color:u}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},"material"),o({name:"material.dark",gridColor:"#515159",backgroundColor:h,axisColor:d,font:{color:d},primaryTitleColor:c,secondaryTitleColor:c,tooltip:{color:"#000"},"export":{backgroundColor:h,font:{color:"#dbdbdb"},button:{"default":{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:h},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:b}},valueErrorBar:{color:f}}},"chart:common:axis":{constantLineStyle:{color:f}},chart:{commonPaneSettings:{border:{color:b}},commonAxisSettings:{breakStyle:{color:x}},zoomAndPan:{dragBoxStyle:{color:f}},commonAnnotationSettings:{border:{color:"#000"},color:"#000"}},gauge:{rangeContainer:{backgroundColor:g},valueIndicators:{_default:{color:g},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:f,opacity:.32},minorTick:{color:f,opacity:.1},breakStyle:{color:x}},selectedRangeColor:g,sliderMarker:{color:g,font:{color:h}},sliderHandle:{color:f,opacity:.2},shutter:{color:f,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:p,font:{color:f}}},"layer:area":{borderColor:h,color:_,hoveredBorderColor:f,selectedBorderColor:f},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:f,selectedBorderColor:f},"layer:marker:pie":{hoveredBorderColor:f,selectedBorderColor:f},legend:{border:{color:"#3f3f3f"},font:{color:f}},controlBar:{borderColor:m,color:h}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:m,firstLastColor:m,barPositiveColor:y,barNegativeColor:v,winColor:y,lossColor:v,pointColor:h},bullet:{targetColor:v},funnel:{item:{border:{color:h}}},sankey:{label:{font:{color:f}}}},"material");var S={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var C in S)if(Object.prototype.hasOwnProperty.call(S,C)){var w=S[C];i(C,"light",w),i(C,"dark",w),a("material.".concat(C,".light.compact"),"material.".concat(C,".light")),a("material.".concat(C,".dark.compact"),"material.".concat(C,".dark"))}},function(e,t,n){var i=n(50),r="ios7.default",o="#767676",a="#d3d3d3",s="#000000";i.registerTheme({name:r,backgroundColor:"#ffffff",primaryTitleColor:s,secondaryTitleColor:o,gridColor:"#ececec",axisColor:o,legend:{font:{color:s}},tooltip:{font:{color:o}},"chart:common":{commonSeriesSettings:{label:{border:{color:a}}}},chart:{commonPaneSettings:{border:{color:a}}},rangeSelector:{scale:{tick:{color:s,opacity:.1},minorTick:{color:s,opacity:.03}}},treeMap:{group:{label:{font:{color:o}}}}},"generic.light")},function(e,t,n){var i=n(125),r=n(21);e.exports=i(r.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2106:"Invalid visible range",E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"})},function(e,t,n){function i(e){var t,n=this,i=n._animateStep;n._progress=n._calcProgress(e);for(t in n.params){var r=i[t]||i.base;r(n.element,n.params[t],n._progress,n._easing,n._currentParams,t)}return n.options.step&&n.options.step(n._easing(n._progress,0,1),n._progress),1!==n._progress||n.stop()}function r(e){return e-this._startTime>=this.delay&&(this.tick=i),!0}function o(e){return this._startTime=e,this.tick=this.delay?r:i,!0}function a(e,t,n){var i=this;i._progress=0,i.element=e,i.params=t,i.options=n,i.duration=n.partitionDuration?n.duration*n.partitionDuration:n.duration,i.delay=n.delay&&n.duration*n.delay||0,i._animateStep=n.animateStep||d,i._easing=c[n.easing]||c.easeOutCubic,i._currentParams={},i.tick=o}function s(e){var t=this;t._animationCount=0,t._timerId=null,t._animations={},t.element=e}var l=n(112),u=function(){},c={easeOutCubic:function(e,t,n){return 1===e?n:(1-Math.pow(1-e,3))*(n-t)+ +t},linear:function(e,t,n){return 1===e?n:e*(n-t)+ +t}};t.easingFunctions=c;var d={segments:function e(t,n,i,r,o){var a,s,l,u,c=n.from,d=n.to,e=[];for(l=0;l1)for(u=1;u0?-1:1)*t}function u(e,t,n){var i=e.side,r=e.element.measure([t[2]-t[0],t[3]-t[1]]),o="indside"===e.position?0:n[i],a=r[i]0?(r[e.side]-=e.size[e.side],o[e.primary+e.side]=a[e.primary+e.side],e.element.freeSpace()):e.element.move(a,s)}function h(){this._targets=[]}function f(e){var t,n,i=e.length,o=[];for(t=0;tn[2+e.primary]-n[e.primary]&&(n[2+t.primary]=i[2+t.primary]);var a=g(e,n,n);a[2+t.primary]>i[2+t.primary]&&(n[2+t.primary]=i[2+t.primary],a=g(e,n,n)),t.element.move(r),e.element.move(a,o)},freeSpace:function(){e.element.freeSpace(),t.element.freeSpace()}}}}var m=n(11).normalizeEnum,v=Math.min,y=Math.max,b=Math.round,x=0,S=1,C=2,w={left:x,center:S,right:C},k={top:x,center:S,bottom:C},T={horizontal:0,vertical:1},A={},E=2;A[x]=function(e,t,n){return[e,v(t,e+n)]},A[S]=function(e,t,n){return[y(e,(e+t-n)/2),v(t,(e+t+n)/2)]},A[C]=function(e,t,n){return[y(e,t-n),t]},h.prototype={constructor:h,dispose:function(){this._targets=null},add:function(e){this._targets.push(e)},forward:function(e,t){var n,i=e.slice(),r=f(this._targets),o=r.length,a=[];for(n=0;n2&&void 0!==arguments[2]?arguments[2]:[0,0],o=e.slice(),a=e.slice(),s=this._cache,l=0,u=s.length;for(i=0;ie+(n||0)||o.maxXt+(i||0)||o.maxY=0?i:0),e.radiusOuter=e.radiusLabels=h(e.radiusInner,e.radius),e.radiusLabels+=f,e.radiusInner=e.defaultRadius=d.min(e.radiusInner,e.radius),e.middleAngle=e.angle=-c(e.middleAngleCorrection-e.angle)},_getErrorBarBaseEdgeLength:function(){var e=this.getMarkerCoords();return d.PI*e.outerRadius*d.abs(e.startAngle-e.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(e,t,n){var i=this,r=i._getStyle(),o=i.getMarkerCoords(),a=o.innerRadius,s=o.outerRadius,l=i._getCoords(i.argument,_),u=o.x,c=o.y;n&&(a=0,s=0,u=l.x,c=l.y),i.graphic=e.arc(u,c,a,s,o.startAngle,o.endAngle).attr(r).data({"chart-data-point":i}).append(t)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=u.getCosAndSin(n.middleAngle),o=n.centerX+n.defaultRadius*r.cos,a=n.centerY-n.defaultRadius*r.sin;return o>i.minX&&oi.minY&&a=i.startAngle&&-n.phi<=i.endAngle:-n.phi<=i.startAngle&&-n.phi>=i.endAngle;return n.r>=i.innerRadius&&n.r<=i.outerRadius&&r}})},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(0).extend,o=r,a=n(1).isDefined,s=n(11).map,l=n(4).noop,u=n(107).chart,c=n(146).chart.bar,d=n(169).chart.area;t.chart={};var h={areErrorBarsVisible:l,_createErrorBarGroup:l,_checkData:function(e,t){var n=this.getValueFields();return u._checkData.call(this,e,t,{minValue:n[0],value:n[1]})&&e.minValue===e.minValue},getValueRangeInitialValue:u.getValueRangeInitialValue,_getPointDataSelector:function(e){var t=this,n=this.getValueFields(),i=n[0],r=n[1],o=this.getTagField(),a=this.getArgumentField();return function(e){return{tag:e[o],minValue:t._processEmptyValue(e[i]),value:t._processEmptyValue(e[r]),argument:e[a],data:e}}},_defaultAggregator:"range",_aggregators:{range:function(e,t){var n,r=e.intervalStart,o=e.data;if(o.length){var s=t.getValueFields(),l=s[0],u=s[1],c=o.reduce(function(e,t){var n=t[l],i=t[u];return a(n)&&a(i)?(e[l]=Math.min(e[l],Math.min(n,i)),e[u]=Math.max(e[u],Math.max(n,i)),e):e},(n={},i(n,l,1/0),i(n,u,-(1/0)),i(n,t.getArgumentField(),r),n));if(!isFinite(c[l])||!isFinite(c[u])){if(o.filter(function(e){return null===e[l]&&null===e[u]}).length!==o.length)return;c[l]=c[u]=null}return c}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,r=!t&&!i||t&&i,o=r?"vy":"vx",a=i?"minX":"minY",s=r?"vx":"vy",l=this.getPoints(),u=0;u=h[0]&&e<=h[1]?c[s]:void 0}if(this.checkAxisVisibleAreaCoord(!t,d)){n=d;break}}return n}};t.chart.rangebar=o({},c,h),t.chart.rangearea=o({},d,{_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=s(n,function(e){return e.getCoords(!0)});return{line:n,bottomLine:i,area:s(n,function(e){return e.getCoords()}).concat(i.slice().reverse()),singlePointSegment:n!==e}},_getDefaultSegment:function(e){var t=d._getDefaultSegment.call(this,e);return t.bottomLine=t.line,t},_removeElement:function(e){d._removeElement.call(this,e),e.bottomLine&&e.bottomLine.remove()},_drawElement:function(e,t){var n=this,i=d._drawElement.call(n,e,t);return i.bottomLine=n._bordersGroup&&n._createBorderElement(e.bottomLine,{"stroke-width":n._styles.normal.border["stroke-width"]}).append(n._bordersGroup),i},_applyStyle:function(e){var t=this,n=t._elementsGroup,i=t._bordersGroup;n&&n.smartAttr(e.elements),i&&i.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}),t.bottomLine&&t.bottomLine.attr({"stroke-width":e.border["stroke-width"]})})},_updateElement:function(e,t,n,i){var r={points:t.bottomLine},o=e.bottomLine;d._updateElement.apply(this,arguments),o&&(n?o.animate(r):o.attr(r))}},h)},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(208).chart.line,o=n(107).chart,a=n(169).chart.area,s=n(146),l=s.chart.bar,u=s.polar.bar,c=n(0).extend,d=n(3).each,h=c,f=d,p=n(4).noop;t.chart={},t.chart.bubble=h({},o,{_calculateErrorBars:p,_getMainColor:l._getMainColor,_createPointStyles:l._createPointStyles,_updatePointsVisibility:l._updatePointsVisibility,_getOptionsForPoint:l._getOptionsForPoint,_applyMarkerClipRect:r._applyElementsClipRect,_parsePointStyle:u._parsePointStyle,_createLegendState:a._createLegendState,_setMarkerGroupSettings:u._setMarkerGroupSettings,areErrorBarsVisible:p,_createErrorBarGroup:p,_checkData:function(e,t){return o._checkData.call(this,e,t,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(e,t){var n=this.getSizeField(),i=o._getPointDataSelector.call(this);return function(e){var t=i(e);return t.size=e[n],t}},_aggregators:{avg:function(e,t){var n,r=e.data,o=e.intervalStart;if(r.length){var a=t.getValueFields()[0],s=t.getSizeField(),l=r.reduce(function(e,t){return e[0]+=t[a],e[1]+=t[s],e[2]++,e},[0,0,0]);return n={},i(n,a,l[0]/l[2]),i(n,s,l[1]/l[2]),i(n,t.getArgumentField(),o),n}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var e=this,t=e._drawnPoints.length-1,n=e._labelsGroup,i=function(){n&&n.animate({opacity:1},{duration:e._defaultDuration})};f(e._drawnPoints||[],function(e,n){n.animate(e===t?i:void 0,{r:n.bubbleSize,translateX:n.x,translateY:n.y})})},_patchMarginOptions:function(e){return e.processBubbleSize=!0,e}})},function(e,t,n){var i=n(4).noop,r=n(3).each,o=n(107),a=n(11),s=n(0).extend,l=o.chart,u=n(146).chart.bar,c=s,d=r,h=i,f=a.map,p=isFinite,g=Math.max,_=.7,m="inside";t.pie=c({},u,{_setGroupsSettings:function(){l._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:h,_drawPoint:function(e){var t=e.point,n=this._legendCallback;l._drawPoint.call(this,e),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&n()},_getOldPoint:function(e,t,n){var i=(this._points||[])[n];return i&&(t[i.argument.valueOf()]=t[i.argument.valueOf()].filter(function(e){return e!==i})),i},adjustLabels:function(e){return(this._points||[]).reduce(function(t,n){if(n._label.isVisible())return n.setLabelTrackerData(),t=n.applyWordWrap(e)||t,n.updateLabelCoord(e),t},!1)},_applyElementsClipRect:h,getColor:h,areErrorBarsVisible:h,drawLabelsWOPoints:function(){var e=this;return e._options.label.position!==m&&(e._labelsGroup.append(e._extGroups.labelsGroup),(e._points||[]).forEach(function(e){e.drawLabel()}),!0)},getPointsCount:function(){var e=this;return this._data.filter(function(t){return e._checkData(t)}).length},setMaxPointsCount:function(e){this._pointsCount=e},_getCreatingPointOptions:function(e,t){return this._getPointOptions(e,t)},_updateOptions:function(e){this.labelSpace=0,this.innerRadius="pie"===this.type?0:e.innerRadius},_checkData:function(e,t){var n=u._checkData.call(this,e,t,{value:this.getValueFields()[0]});return this._options.paintNullPoints?n:n&&null!==e.value},_createGroups:l._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({"class":"dxc-markers"})},_getMainColor:function(e,t){var n=this.getPointsByArg(e.argument),i=t?n.indexOf(t):n.length;return this._options.mainSeriesColor(e.argument,i,this._pointsCount)},_getPointOptions:function(e){return this._parsePointOptions(this._preparePointOptions(),this._options.label,e)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(e,t,n){var i=this,r=e.color||i._getMainColor(t,n);return{normal:i._parsePointStyle(e,r,r),hover:i._parsePointStyle(e.hoverStyle,r,r),selection:i._parsePointStyle(e.selectionStyle,r,r),legendStyles:{normal:i._createLegendState(e,r),hover:i._createLegendState(e.hoverStyle,r),selection:i._createLegendState(e.selectionStyle,r)}}},_getArrangeMinShownValue:function(e,t){var n=this._options.minSegmentSize,i=0,r=0;return t=t||e.length,d(e,function(e,o){o.isVisible()&&(o.normalInitialValue=s[0]&&e<=s[1]?o.vx:void 0; }if(this.checkAxisVisibleAreaCoord(!t,a)){n=a;break}}return n},usePointsToDefineAutoHiding:function(){return!1}}),t.candlestick=o({},t.stock,{_parsePointStyle:function(e,n,i){var r=e.color||i,o=t.stock._parsePointStyle.call(this,e,n,r);return o.fill=r,o.hatching=e.hatching,o}})},function(e,t,n){function i(e,t,n,i){return e=g.clone(e),e.value=t,e.minValue=n,e.translate(),e.argument=e.argument+i,e}function r(e){for(var t,n,r=0,o=[],a=e.length;r=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function a(e){return H.indexOf(e)>-1?e:F}function s(e){var t=e.getOptions().hoverMode;return t===V?t:B}var l=n(10),u=n(5),c=n(19),d=n(0).extend,h=n(3).each,f=n(120),p=f.events,g=n(11),_=n(23),m=n(89),v=n(8).addNamespace,y=n(1).isDefined,b=n(11).normalizeEnum,x=Math.floor,S=h,C=n(4).noop,w=f.states.hoverMark,k=f.states.normalMark,T="dxChartTracker",A="."+T,E=v([_.down,_.move],T),O="legendClick",D="seriesClick",M="pointClick",I="chart-data-point",P="chart-data-series",L="chart-data-argument",R=100,V="none",B="allargumentpoints",F="includepoints",z="excludepoints",H=[F,z,V],N={ctor:function(e){var t=this,n={tracker:t};t._renderer=e.renderer,t._legend=e.legend,t._tooltip=e.tooltip,t._eventTrigger=e.eventTrigger,t._seriesGroup=e.seriesGroup,e.seriesGroup.off(A).on(v(p.showPointTooltip,T),n,t._showPointTooltip).on(v(p.hidePointTooltip,T),n,t._hidePointTooltip),t._renderer.root.off(A).on(E,n,t._pointerHandler).on(v(c.name,T),n,t._clickHandler).on(v(m.name,T),{timeout:300},C)},update:function(){},updateSeries:function(e,t){var n=this,i=!(e&&e.some(function(e){return e===n.hoveredSeries})||n._hoveredPoint&&n._hoveredPoint.series);n._storedSeries!==e&&(n._storedSeries=e||[]),i&&(n._clean(),n._renderer.initHatching()),t&&(n.clearSelection(),i||(n._hideTooltip(n.pointAtShownTooltip),n.clearHover()))},setCanvases:function(e,t){this._mainCanvas=e,this._canvases=t},repairTooltip:function(){var e=this.pointAtShownTooltip;e&&e.series&&e.isVisible()?this._showTooltip(e):this._hideTooltip(e,!0)},_setHoveredPoint:function(e){e!==this._hoveredPoint&&(this._releaseHoveredPoint(),e.hover(),this._hoveredPoint=e)},_releaseHoveredPoint:function(){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint))},_setHoveredSeries:function(e,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),e.hover(t),this.hoveredSeries=e},_releaseHoveredSeries:function(e,t){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection:function(){this._storedSeries.forEach(function(e){e&&(e.clearSelection(),e.getPoints().forEach(function(e){e.clearSelection()}))})},_clean:function(){var e=this;e.hoveredPoint=e.hoveredSeries=e._hoveredArgumentPoints=null,e._hideTooltip(e.pointAtShownTooltip)},clearHover:function(){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint()},_hideTooltip:function(e,t){var n=this;!n._tooltip||e&&n.pointAtShownTooltip!==e||(!t&&n.pointAtShownTooltip&&(n.pointAtShownTooltip=null),n._tooltip.hide())},_showTooltip:function(e){var t,n,i=this;if(e&&e.getOptions()){if(t=e.getTooltipFormatObject(i._tooltip),!y(t.valueText)&&!t.points||!e.isVisible())return;i.pointAtShownTooltip&&i.pointAtShownTooltip===e||(n={target:e});var r=e.getTooltipParams(i._tooltip.getLocation()),o=i._renderer.getRootOffset();if(r.x+=o.left,r.y+=o.top,!i._tooltip.show(t,r,n))return;i.pointAtShownTooltip=e}},_showPointTooltip:function(e,t){var n=e.data.tracker,i=n.pointAtShownTooltip;i&&i!==t&&n._hideTooltip(i),n._showTooltip(t)},_hidePointTooltip:function(e,t){e.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var e=this,t=function(t){var n=e._renderer.getRootOffset(),i=x(t.pageX-n.left),r=x(t.pageY-n.top);o(e._mainCanvas,i,r)||(e._pointerOut(),e._disableOutHandler())};u.on(l.getDocument(),E,t),this._outHandler=t}},_disableOutHandler:function(){this._outHandler&&u.off(l.getDocument(),E,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(e){this.clearHover(),(e||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip)},_triggerLegendClick:function(e,t){var n=this._eventTrigger;n(O,e,function(){!r(e.event,e.target)&&n(t,e)})},_hoverLegendItem:function(e,t){var n,i=this,r=i._legend.getItemByCoord(e,t),o=a(i._legend.getOptions().hoverMode);r?(n=i._storedSeries[r.id],n.isHovered()&&n.lastHoverMode===o||i._setHoveredSeries(n,o),i._tooltip.isEnabled()&&i._hideTooltip(i.pointAtShownTooltip)):i.clearHover()},_hoverArgument:function(e,t){var n=this,i=n._getArgumentHoverMode();y(e)&&(n._releaseHoveredPoint(),n._hoveredArgument=e,n._argumentIndex=t,n._notifySeries({action:"pointHover",notifyLegend:n._notifyLegendOnHoverArgument,target:{argument:e,fullState:w,argumentIndex:t,getOptions:function(){return{hoverMode:i}}}}))},_resetHoveredArgument:function(){var e,t=this;y(t._hoveredArgument)&&(e=t._getArgumentHoverMode(),t._notifySeries({action:"clearPointHover",notifyLegend:t._notifyLegendOnHoverArgument,target:{fullState:k,argumentIndex:t._argumentIndex,argument:t._hoveredArgument,getOptions:function(){return{hoverMode:e}}}}),t._hoveredArgument=null)},_notifySeries:function(e){this._storedSeries.forEach(function(t){t.notify(e)})},_pointerHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),r=x(e.pageX-n.left),o=x(e.pageY-n.top),a=t._getCanvas(r,o),s=i(e,P),l=i(e,I)||s&&s.getPointByCoord(r,o);if(l&&!l.getMarkerVisibility()&&(l=void 0),t._enableOutHandler(),t._legend.coordsIn(r,o))return void t._hoverLegendItem(r,o);if(t.hoveredSeries&&t.hoveredSeries!==t._stuckSeries&&t._releaseHoveredSeries(),!t._hoverArgumentAxis(r,o,e)&&(t._isPointerOut(a,l)&&t._pointerOut(),a||l)){if(s&&!l){if(l=s.getNeighborPoint(r,o),t._stickyHovering||!l||l.coordsIn(r,o)||(l=null),s!==t.hoveredSeries)return void t._setTimeout(function(){t._setHoveredSeries(s),t._setStuckSeries(e,s,r,o),t._pointerComplete(l,r,o)},s)}else{if(l){if(e.type!==_.move&&"touch"!==e.pointerType)return;return void(t.hoveredSeries?t._setTimeout(function(){t._pointerOnPoint(l,r,o,e)},l):t._pointerOnPoint(l,r,o,e))}t._setStuckSeries(e,void 0,r,o)&&t._stickyHovering?(s=t._stuckSeries,l=s.getNeighborPoint(r,o),t._releaseHoveredSeries(),l&&l.getMarkerVisibility()&&t._setHoveredPoint(l)):t._stickyHovering||t._pointerOut()}t._pointerComplete(l,r,o)}},_pointerOnPoint:function(e,t,n){this._resetHoveredArgument(),this._setHoveredPoint(e),this._pointerComplete(e,t,n)},_pointerComplete:function(e){this.pointAtShownTooltip!==e&&this._tooltip.isEnabled()&&this._showTooltip(e)},_clickHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),r=x(e.pageX-n.left),o=x(e.pageY-n.top),a=i(e,I),s=t._stuckSeries||i(e,P)||a&&a.series,l=t._argumentAxis;if(t._legend.coordsIn(r,o)){var u=t._legend.getItemByCoord(r,o);u&&t._legendClick(u,e)}else if(l&&l.coordsIn(r,o)){var c=i(e,L);y(c)&&t._eventTrigger("argumentAxisClick",{argument:c,event:e})}else s&&(a=a||s.getPointByCoord(r,o),a&&a.getMarkerVisibility()?t._pointClick(a,e):i(e,P)&&t._eventTrigger(D,{target:s,event:e}))},dispose:function(){var e=this;e._disableOutHandler(),e._renderer.root.off(A),e._seriesGroup.off(A)}},G=function(e){this.ctor(e)};d(G.prototype,N,{_pointClick:function(e,t){var n=this,i=n._eventTrigger,o=e.series;i(M,{target:e,event:t},function(){!r(t,o)&&i(D,{target:o,event:t})})},update:function(e){var t=this;N.update.call(this,e),t._argumentAxis=e.argumentAxis||{},t._axisHoverEnabled=t._argumentAxis&&b(t._argumentAxis.getOptions().hoverMode)===B,t._chart=e.chart,t._rotated=e.rotated,t._crosshair=e.crosshair,t._stickyHovering=e.stickyHovering},_getCanvas:function(e,t){for(var n=this,i=n._canvases||[],r=0;r0&&(0,_.isNumeric)(i[0])&&"discrete"!==o.type&&!a.isEmpty()&&(!a.breaks||!a.breaks.length)&&"zoom"!==t.getViewport().action){t.applyMargins();var c=t.getTranslator().from(s[0]),d=t.getTranslator().from(s[1]),h=c1&&o){var a=x((t+1)/r.length),s=a>1?x((t+1)/a):t;for(n=x((s-r.length)/2);n>0&&0!==r[0];)r.unshift((0,y.adjust)(r[0]-o)),n--;for(;r.lengthe.oldMinValue?(e.minValue-e.oldMinValue)/s(e):0,o=e.maxValue=a;)r.unshift(n);for(n=r[r.length-1];(n=(0,y.adjust)(n+i))<=o;)r.push(n)}for(;r[0]+i/10o;)r.pop()})}function f(e){e.forEach(function(e){var t=e.axis,n=t.getTranslator().getBusinessRange();n.min===n.minVisible&&(n.min=e.minValue),n.max===n.maxVisible&&(n.max=e.maxValue),n.minVisible=e.minValue,n.maxVisible=e.maxValue,n.min>n.minVisible&&(n.min=n.minVisible),n.max0?(e.maxValue=i,e.minValue=0):n<0&&(e.minValue=i,e.maxValue=0)})}function g(e){e.forEach(function(e){if(e.minorTickInterval){for(var t=[],n=e.minorTickInterval,i=e.tickInterval/n-1,r=1;r1){var n=o(t);if(n.length<2||!l(n))return;a(n),u(n);var i=c(n);d(n,i),p(n),h(n),g(n),n.forEach(function(e){r(e,k)}),f(n)}})}};e.exports=T},function(e,t,n){function i(e){return e}var r=n(1).isDefined,o=n(28).adjust,a=Math.round;e.exports={translate:function(e,t){var n=this,i=n._canvasOptions,o=n._categoriesToPoints[e.valueOf()],s=n.translateSpecialCase(e),l=i.startPointIndex||0,u=n._options.stick?0:.5;if(r(s))return a(s);if(!o&&0!==o)return null;t=t||0;var c=o+u-l+.5*t;return a(n._calculateProjection(i.interval*c))},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(e){var t=e.deltaScale||1;return 1-(1-t)/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(e,t){var n,i=this,r=i._categories,a=i._canvasOptions,s=i._options.stick,l=a.invert,u=a.interval*t,c=e/u,d=(i.visibleCategories||[]).length,h=parseInt((a.startPointIndex||0)+c+.5),f=parseInt(o(a.canvasLength/u)+(s?1:0))||1;l&&(h=parseInt((a.startPointIndex||0)+d-c+.5)-f),h<0&&(h=0),n=h+f,n>r.length&&(n=r.length,h=n-f,h<0&&(h=0));var p=r.slice(parseInt(h),parseInt(n)),g=i._getDiscreteInterval(p.length,a);return t=g/a.interval,e=i.translate(l?p[p.length-1]:p[0])*t-(a.startPoint+(s?0:g/2)),{min:p[0],max:p[p.length-1],translate:e,scale:t}},getMinScale:function(e){var t=this,n=t._canvasOptions,i=(t.visibleCategories||t._categories).length;return i+=(parseInt(.1*i)||1)*(e?-2:2),n.canvasLength/(Math.max(i,1)*n.interval)},getScale:function(e,t){var n=this,i=n._canvasOptions,o=n.getCanvasVisibleArea(),a=!n._options.stick&&1,s=r(e)?n.translate(e,-a):null,l=r(t)?n.translate(t,+a):null;return null===s&&(s=i.invert?o.max:o.min),null===l&&(l=i.invert?o.min:o.max),n.canvasLength/Math.abs(l-s)},isValid:function(e){return!!r(e)&&this._categoriesToPoints[e.valueOf()]>=0},getCorrectValue:i,to:function(e,t){var n=this._canvasOptions,i=this._categoriesToPoints[e.valueOf()],r=n.startPointIndex||0,o=i+(this._options.stick?0:.5)-r+(this._businessRange.invert?-1:1)*t*.5;return a(this._calculateProjection(n.interval*o))},from:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._canvasOptions,i=n.startPoint,r=this.visibleCategories||this._categories,o=r.length,s=this._options.stick?.5:0,l=a((e-i)/n.interval+s-.5-.5*t);return l>=o&&(l=o-1),l<0&&(l=0),n.invert&&(l=o-l-1),r[l]},_add:function(){return NaN},_toValue:i,isValueProlonged:!0}},function(e,t,n){var i=n(1),r=i.isNumeric,o=i.isDefined,a=n(22),s=a.addInterval,l=a.dateToMilliseconds,u=Math.floor,c=n(28).adjust;e.exports={_intervalize:function(e,t){if(o(e))return"datetime"===this._businessRange.dataType?(e=r(e)?new Date(e):new Date(e.getTime()),e=a.correctDateWithUnitBeginning(e,t)):e=c(u(c(e/t))*t,t),e},translate:function(e,t,n){var i=this,r=i.translateSpecialCase(e);return o(r)?Math.round(r):(n=n||i._options.interval,i.isValid(e,n)?i.to(e,t,n):null)},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(e){return"datetime"===this._businessRange.dataType?new Date(e):Number(e)},_fromValue:function(e){return this._parse(e)},_toValue:function(e){return this._parse(e)},isValid:function(e,t){var n=this,i=n._canvasOptions,o=i.rangeMin,a=i.rangeMax;return t=t||n._options.interval,null!==e&&!isNaN(e)&&(e="datetime"===n._businessRange.dataType&&r(e)?new Date(e):e,t!==n._options.interval&&(o=n._intervalize(o,t),a=n._intervalize(a,t)),!(e.valueOf()=s(a,t)))},to:function(e,t,n){var i=this;n=n||i._options.interval;var r=i._intervalize(e,n),o=s(r,n),a=i._to(r),l=i._to(o);return t?t>0&&(a=l):a=u((a+l)/2),a},_to:function(e){var t=this._canvasOptions,n=t.rangeMinVisible,i=t.rangeMaxVisible,r=e-n;return ei&&(r=s(i,this._options.interval)-n),this._conversionValue(this._calculateProjection(r*this._canvasOptions.ratioOfCanvasRange))},from:function(e,t){var n,i=this,r=i._options.interval,o=r,a=i._canvasOptions,u=a.rangeMinVisible,c=a.rangeMaxVisible;return"datetime"===i._businessRange.dataType&&(o=l(r)),n=i._calculateUnProjection((e-i._canvasOptions.startPoint)/i._canvasOptions.ratioOfCanvasRange),n=i._intervalize(s(n,o/2,t>0),r),nc&&(n=c),n},_add:function(){return NaN},isValueProlonged:!0}},function(e,t,n){function i(e){return null!==e?new Date(e):e}e.exports={_fromValue:i,_toValue:i,_add:n(22).addDateInterval}},function(e,t,n){var i=n(11),r=n(1).isDefined,o=i.raiseTo,a=i.getLog;e.exports={_fromValue:function(e){return null!==e?a(e,this._canvasOptions.base):e},_toValue:function(e){return null!==e?o(e,this._canvasOptions.base):e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this._fromValue(this.from(t.min))-this._fromValue(r(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){var i,o,a=this._canvasOptions,s=n-e,l=this.constructor.prototype.checkMinBarSize;return r(t)&&s>0?(i=l(this._fromValue(n/s),this._fromValue(t)-a.rangeMinVisible),o=Math.pow(a.base,this._fromValue(s)+i)-s):o=l(e,t),o}}},function(e,t,n){function i(e){return p.filter(function(t){return!e.some(function(e){return e===t})})}function r(e){return(e+1)%7}function o(e,t){for(var n=e.start,i=e.end;n!==i;){if(n===t)return!0;n=r(n)}return!1}function a(e,t){for(var n=0;e!==t;)e=r(e),n++;return n}function s(e,t){var n=[],i=new Date(t);return i.setDate(t.getDate()+1),t>e.from&&n.push({from:e.from,to:t}),ie){var t=s(i[n],e);2===t.length?i.splice(n,1,t[0],t[1]):1===t.length?i.splice(n,1,t[0]):i.splice(n,1)}};for(n=0;n=a&&t<=s&&(n=f.trimTime(t),l=new Date(n),l.setDate(n.getDate()+1),e.push({from:n,to:l})),e},[])}function h(e){return e.map(function(e){return{from:e.from,to:e.to,gapSize:f.convertMillisecondsToDateUnits(e.to-e.from)}})}var f=n(22),p=[0,1,2,3,4,5,6];t.generateDateBreaks=function(e,t,n,i,r){var o=l(n),a=u(e,t,o);return a.push.apply(a,d(e,t,r||[],o)),h(c(a,i||[]))}},function(e,t,n){function i(e){var t;return e=r.normalizeAngle(e),e>=315&&e<=360||e<45&&e>=0?t=1:e>=45&&e<135?t=2:e>=135&&e<225?t=3:e>=225&&e<315&&(t=4),t}var r=n(11),o=n(1).isDefined,a=n(0).extend,s=n(274),l=n(410).linear,u=n(409).tick,c=r.map,d=n(209),h=Math,f=h.abs,p=h.round,g=r.convertPolarToXY,_=a,m=n(4).noop,v=90,y=t,b=y.circular={_calculateValueMargins:function(e){var t=this._getViewportRange(),n=t.minVisible,i=t.maxVisible;return e&&e.length>1&&(n=ne[e.length-1].value?i:e[e.length-1].value),{minValue:n,maxValue:i}},applyMargins:function(){var e=this._calculateValueMargins(this._majorTicks),t=this._translator.getBusinessRange();t.addRange({minVisible:e.minValue,maxVisible:e.maxValue,interval:this._calculateRangeInterval(t.interval)}),this._translator.updateBusinessRange(t)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var e=this._options;return[e.startAngle,e.endAngle]},_updateRadius:function(e){var t=Math.min(e.width-e.left-e.right,e.height-e.top-e.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(e){this._center={x:e.left+(e.width-e.right-e.left)/2,y:e.top+(e.height-e.top-e.bottom)/2}},_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({cx:e.x,cy:e.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions:function(e){var t=this,n=e.originValue,i=e.wholeRange={},a=e.period;o(n)&&(n=t.validateUnit(n)),a>0&&e.argumentType===s.numeric&&(n=n||0,i.endValue=n+a,t._viewport=r.getVizRangeObject([n,i.endValue])),o(n)&&(i.startValue=n)},getMargins:function(){var e=this._options.tick,t=Math.max(e.visible?e.length/2+e.shift:0,0),n=this.getRadius(),i=this._center,r=i.x,o=i.y,s=this._majorTicks.map(function(e){return e.label&&e.label.getBBox()}).filter(function(e){return e}),l=a({},this._canvas,{left:r-n,top:o-n,right:this._canvas.width-(r+n),bottom:this._canvas.height-(o+n)}),u=d.calculateCanvasMargins(s,l);return Object.keys(u).forEach(function(e){return u[e]=u[e]x.width-x.originalRight&&(y-=f.x+f.width+S-(x.width-x.originalRight)),f.y+Cx.height-x.originalBottom&&(b-=f.y+f.height+C-(x.height-x.originalBottom))}return{x:m+y,y:v+b}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e.getCenter();return e._createPathElement(e._getGridPoints().points,n).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var e=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+e,t.y]}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=this._translator.translate(e,-t),r=g(this.getCenter(),n,i,this.getRadius());return{x:r.x,y:r.y,angle:i+n-v}},_getAdjustedStripLabelCoords:function(e){var t=e.labelBBox;return{translateY:e.label.attr("y")-t.y-t.height/2}},coordsIn:function(e,t){return r.convertXYToPolar(this.getCenter(),e,t).r>this.getRadius()},_rotateTick:function(e,t){var n=this.getCenter();e.rotate(t.angle,n.x,n.y)},_validateOverlappingMode:function(e){return s.validateOverlappingMode(e)},_validateDisplayMode:function(){return"standard"},_getStep:function(e){var t=this,n=t.getRadius()+(t._options.label.indentFromAxis||0),i=e.reduce(function(e,t){var n=e;return e.width=e&&u.angle<=t){n||(n=(o[s-1]||o[o.length-1]).coords,a.push((u.x+n.x)/2,(u.y+n.y)/2)),a.push(u.x,u.y);var c=(o[s+1]||o[0]).coords;i={x:(u.x+c.x)/2,y:(u.y+c.y)/2}}s++}return a.push(i.x,i.y),a.push(r.x,r.y),{points:a}},_createStrip:function(e){var t=e.points;return this._renderer.path(t,"area")},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-v},_setTickOffset:function(){this._tickOffset=!1}}),y.linear={applyMargins:b.applyMargins,_resetMargins:function(){this._reinitTranslator(this._getViewportRange())},_setVisualRange:m,_getStick:l._getStick,_getSpiderCategoryOption:m,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},_updateRadius:b._updateRadius,getRadius:b.getRadius,getCenter:b.getCenter,getAngles:b.getAngles,_updateCenter:b._updateCenter,_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this.getRadius()}},_createAxisElement:l._createAxisElement,_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({points:[e.x,e.y,e.x+this.getRadius(),e.y]}).rotate(this.getAngles()[0]-v,e.x,e.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(e,t){return[e.x-t/2,e.y,e.x+t/2,e.y]},_getLabelAdjustedCoord:function(e){var t=this,n=e.labelCoords,i=n.y,o=r.getCosAndSin(n.angle),a=t._options.label.indentFromAxis||0,s=e.labelBBox,l=n.x-f(a*o.sin)+f(s.width/2*o.cos)-s.width/2,u=i+(i-s.y)-f(s.height/2*o.sin)+f(a*o.cos);return{x:l,y:u}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return e._renderer.circle(i.cx,i.cy,i.r).attr(n).sharp()}},_getGridPoints:function(e){var t=this.getCenter(),n=r.getDistance(t.x,t.y,e.x,e.y);return n>this.getRadius()?{cx:null,cy:null,r:null}:{cx:t.x,cy:t.y,r:n}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=g(this.getCenter(),n,0,this._translator.translate(e,t));return{x:i.x,y:i.y,angle:n-v}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_getCanvasStartEnd:function(){return{start:0,end:this.getRadius()}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter();return{x:n.x,y:n.y,innerRadius:e,outerRadius:t}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,0,360)},_getAdjustedStripLabelCoords:b._getAdjustedStripLabelCoords,_getStripLabelCoords:function(e,t){var n=this,i=e+(t-e)/2,r=n.getCenter(),o=p(r.y-i);return{x:r.x,y:o,align:s.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:e}},_createConstantLine:function(e,t){var n=this._getConstantLineGraphicAttributes(e);return this._renderer.circle(n.cx,n.cy,n.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(e){var t=this,n=t.getCenter(),i=p(n.y-e);return{x:n.x,y:i}},_checkAlignmentConstantLineLabels:m,_rotateTick:function(e,t,n){!n&&e.rotate(t.angle+v,t.x,t.y)},_validateOverlappingMode:b._validateOverlappingMode,_validateDisplayMode:b._validateDisplayMode,_getStep:function(e){var t=i(this.getAngles()[0]),n=this._options.label.minSpacing,r=2===t||4===t?function(e){return e.width+n}:function(e){return e.height},o=e.reduce(function(e,t){return h.max(e,r(t))},0);return s.getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",o)}},y.linearSpider=_({},y.linear,{_createPathElement:function(e,t){return this._renderer.path(e,"area").attr(t).sharp()},setSpiderTicks:function(e){this._spiderTicks=e},_getGridLineDrawer:function(){var e=this;return function(t,n,i){return e._createPathElement(e._getGridPoints(t.coords).points,n)}},_getGridPoints:function(e){var t=this.getCenter(),n=r.getDistance(t.x,t.y,e.x,e.y);return this._getGridPointsByRadius(n)},_getGridPointsByRadius:function(e){var t=this.getCenter();return e>this.getRadius()?{points:null}:{points:c(this._spiderTicks,function(n){var i=r.getCosAndSin(n.coords.angle);return{x:p(t.x+e*i.cos),y:p(t.y+e*i.sin)}})}},_getStripGraphicAttributes:function(e,t){var n=this._getGridPointsByRadius(t).points,i=this._getGridPointsByRadius(e).points;return{points:[i,n.reverse()]}},_createStrip:y.circularSpider._createStrip,_getConstantLineGraphicAttributes:function(e){return this._getGridPointsByRadius(e)},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)}})},function(e,t,n){function i(e,t){var n,i=t.label||{},o=i.position||"inside",a=!1;e._checkAlignmentConstantLineLabels(i);var s;return{options:t,labelOptions:i,labelPosition:o,label:null,line:null,getParsedValue:function(){return a?n:(n=e.validateUnit(t.value,"E2105","constantLine"),a=!0,n)},draw:function(){if(!(0,r.isDefined)(t.value)||e._translator.getBusinessRange().isEmpty())return this;var n=e._getCanvasStartEnd(),a=this.getParsedValue();this.coord=e._getConstantLinePos(a,n.start,n.end);var s=t.displayBehindSeries?e._axisConstantLineGroups.under:e._axisConstantLineGroups.above,l=s[o];if(!l){var u=e._isHorizontal?i.verticalAlignment:i.horizontalAlignment;l=s[u]}if(!(0,r.isDefined)(this.coord))return this;var c=e._createConstantLine(this.coord,{stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle});return this.line=c.append(s.inside),this.label=i.visible?e._drawConstantLineLabels(a,i,this.coord,l):null,this.updatePosition(),this},removeLabel:function(){this.label&&this.label.remove()},updatePosition:function(t){var n=e._getCanvasStartEnd(),i=e._getConstantLinePos(this.getParsedValue(),n.start,n.end);(0,r.isDefined)(i)&&(this.coord=i,t&&s?(this.label&&this.label.attr(e._getConstantLineLabelsCoords(s,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(s)),this.label&&this.label.animate(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(e._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(this.coord)),e._rotateConstantLine(this.line,this.coord)))},saveCoords:function(){s=this.coord}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(1)},function(e,t,n){function i(e,t){var n,i=t.label||{};return{options:t,label:null,rect:null,_getCoord:function(){var n=e._getCanvasStartEnd(),i=e._translator.getBusinessRange();return e._getStripPos(t.startValue,t.endValue,n.start,n.end,i)},_drawLabel:function(t){return e._renderer.text(i.text,t.x,t.y).css((0,o.patchFontOptions)((0,a.extend)({},e.getOptions().label.font,i.font))).attr({align:"center","class":i.cssClass}).append(e._axisStripLabelGroup)},draw:function(){if(!e._translator.getBusinessRange().isEmpty()&&((0,r.isDefined)(t.startValue)||(0,r.isDefined)(t.endValue))&&(0,r.isDefined)(t.color)){var n=this._getCoord();if(this.labelCoords=i.text?e._getStripLabelCoords(n.from,n.to,i):null,n.outOfCanvas||!(0,r.isDefined)(n.to)||!(0,r.isDefined)(n.from))return;this.rect=e._createStrip(e._getStripGraphicAttributes(n.from,n.to)).attr({fill:t.color}).append(e._axisStripGroup),this.label=i.text?this._drawLabel(this.labelCoords):null}},removeLabel:function(){},updatePosition:function(i){var r=this._getCoord();i&&n?(this.label&&this.label.attr(e._getStripLabelCoords(n.from,n.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(n.from,n.to)),this.label&&this.label.animate(e._getStripLabelCoords(r.from,r.to,t.label)),this.rect&&this.rect.animate(e._getStripGraphicAttributes(r.from,r.to))):(this.label&&this.label.attr(e._getStripLabelCoords(r.from,r.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(r.from,r.to)))},saveCoords:function(){n=this._getCoord()}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(1),o=n(11),a=n(0)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){var r=0;return"right"===t?r=e.width-e.right+n:"left"===t&&(r=e.left-n-i),r}function o(e,t,n,i){var r=0;return"top"===t?r=e.top-n:"bottom"===t&&(r=e.height-e.bottom+i+n),r}var a=n(5),s=i(a),l=n(8),u=i(l),c=n(0),d=n(275),h=i(d),f=n(1),p=n(4),g=n(56),_=i(g),m=Math.min,v=Math.max,y=2,b=function(e,t){this._translator=new h.default.Translator2D({},{},{}),this._scroll=e.rect().append(t),this._addEvents()};b.prototype={_addEvents:function(){var e=this,t=this._scroll.element;s.default.on(t,_.default.start,function(e){u.default.fireEvent({type:"dxc-scroll-start",originalEvent:e,target:t})}),s.default.on(t,_.default.move,function(n){var i=-n.offset.x*e._scale,r=-n.offset.y*e._scale,o=e._offset-(e._layoutOptions.vertical?r:i)/e._scale;e._applyPosition(o,o+e._translator.canvasLength/e._scale),u.default.fireEvent({type:"dxc-scroll-move",originalEvent:n,target:t,offset:{x:i,y:r}})}),s.default.on(t,_.default.end,function(n){u.default.fireEvent({type:"dxc-scroll-end",originalEvent:n,target:t,offset:{x:-n.offset.x*e._scale,y:-n.offset.y*e._scale}})})},update:function(e){var t=this,n=e.position,i=e.rotated,r=i?"right":"top",o=i?"left":"bottom";return n!==r&&n!==o&&(n=r),t._scroll.attr({rotate:e.rotated?0:-90,rotateX:0,rotateY:0,fill:e.color,width:e.width,opacity:e.opacity}),t._layoutOptions={width:e.width,offset:e.offset,vertical:i,position:n},t},init:function(e,t){var n=this,i="discrete"===e.axisType;return n._translateWithOffset=i&&!t&&1||0,n._translator.update((0,c.extend)({},e,{minVisible:null,maxVisible:null,visibleCategories:null},i&&{min:null,max:null}||{}),n._canvas,{isHorizontal:!n._layoutOptions.vertical,stick:t}),n},getOptions:function(){return this._layoutOptions},setPane:function(e){var t,n=this._layoutOptions.position;return t="left"===n||"top"===n?e[0]:e[e.length-1],this.pane=t.name,this},updateSize:function(e){this._canvas=(0,c.extend)({},e);var t=this._layoutOptions,n=t.position,i=t.offset,a=t.width;this._scroll.attr({translateX:r(e,n,i,a),translateY:o(e,n,i,a)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var e=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[e.position]=e.width+e.offset,t},draw:p.noop,shift:p.noop,hideTitle:p.noop,hideOuterElements:p.noop,prepareAnimation:p.noop,setPosition:function(e,t){var n=this,i=n._translator,r=(0,f.isDefined)(e)?i.translate(e,-n._translateWithOffset):i.translate("canvas_position_start"),o=(0,f.isDefined)(t)?i.translate(t,n._translateWithOffset):i.translate("canvas_position_end");n._offset=m(r,o),n._scale=i.getScale(e,t),n._applyPosition(m(r,o),v(r,o))},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(e,t){var n=this,i=n._translator.getCanvasVisibleArea();e=v(e,i.min),e=m(e,i.max),t=m(t,i.max),t=v(t,i.min);var r=Math.abs(t-e);n._scroll.attr({y:e,height:ra&&(r=a),r}function r(e,t,n){var i=n.pageX-e.left,r=n.pageY-e.top;return i>=t.x1&&i<=t.x2&&r>=t.y1&&r<=t.y2}function o(e){return function(t){var n=e.getRootOffset(),o=e.getCanvas();return r(n,o,t)?(e.rootOffset=n,e.canvas=o,e.startCoord=i(n,o,e.rotated,t),e.triggerStart(),void e.rect.attr({x:o.x1,y:o.y1,width:o.width,height:o.height}).append(e.root)):void(t.cancel=!0)}}function a(e){return function(t){var n=i(e.rootOffset,e.canvas,e.rotated,t),r={};e.curCoord=n,r[e.rotated?"y":"x"]=Math.min(e.startCoord,n),r[e.rotated?"height":"width"]=Math.abs(e.startCoord-n),e.rect.attr(r)}}function s(e){return function(t){e.triggerEnd(),e.rect.remove()}}function l(e){var t=e.chart,n=e.renderer,i=e.rotated,r=n.rect(0,0,0,0).attr(e.shutterOptions),l={rect:r,root:n.root,rotated:i,triggerStart:function(){t._eventTrigger("zoomStart")},triggerEnd:function(){var e=t._argumentAxes[0].getTranslator(),n=Math.min(this.startCoord,this.curCoord),i=Math.max(this.startCoord,this.curCoord);t._eventTrigger("zoomEnd",{rangeStart:e.from(n),rangeEnd:e.from(i)})},dispose:function(){n.root.off(c),r.dispose()},getRootOffset:function(){return n.getRootOffset()},getCanvas:function(){var e=t._canvas,n=t.panes,i=n[0].canvas,r=n[n.length-1].canvas;return{x1:i.left,y1:i.top,x2:e.width-r.right,y2:e.height-r.bottom,width:e.width-i.left-r.right,height:e.height-i.top-r.bottom}}};return n.root.off(c).on(d,{direction:i?"vertical":"horizontal",immediate:!0},o(l)).on(h,a(l)).on(f,s(l)),l}var u=n(56),c=".shutter-zoom",d=u.start+c,h=u.move+c,f=u.end+c;e.exports={name:"shutter_zoom",init:function(){var e=this.option("shutterZoom")||{};e.enabled&&(this._shutterZoom=l({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:e}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom}}function o(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.width+e.x&&i>=e.y&&i<=e.height+e.y}function a(e,t){return t&&(e=e.sort(function(e,n){return e===t?-1:n===t?1:0})),e}function s(e){return!e.getTranslator().getBusinessRange().isEmpty()}var l=n(1),u=n(0),c=n(11),d=n(128),h=n(286),f=i(h),p=n(56),g=i(p),_=".zoomAndPanNS",m=g.default.start+_,v=g.default.move+_,y=g.default.end+_,b=f.default.pinchstart+_,x=f.default.pinch+_,S=f.default.pinchend+_,C="dxc-scroll-start"+_,w="dxc-scroll-move"+_,k="dxc-scroll-end"+_,T=300,A=5,E=Math.min,O=Math.max,D=Math.abs;e.exports={name:"zoom_and_pan",init:function(){function e(t){t.originalEvent&&e(t.originalEvent),t.cancelable!==!1&&(t.cancel=!0)}function t(t,n,i){var r=t.options,o=t.actionData,a=[];r.argumentAxis[n]&&a.push(P.getArgumentAxis()),r.valueAxis[n]&&(a=a.concat(o.valueAxes)),a.reduce(function(e,t){return e?e:s(t)?t.handleZooming(null,{end:!0},i,n).isPrevented:e},!1)&&e(i)}function n(e,t,n,i,r){function o(e,n,r,o,a){var d={zoomed:!1};return n&&e.filter(s).forEach(function(e){var n=e.getOptions(),s=e.visualRange(),h=e.getTranslator().getEventScale(o),f=-i(o,a,r,h);d=(0,u.extend)(!0,d,e.getTranslator().zoom(f,h,e.getZoomBounds()));var p=e.adjustRange((0,c.getVizRangeObject)([d.min,d.max])),g=e.isZoomingLowerLimitOvercome(t,h,p);if((0,l.isDefined)(s)&&s.startValue.valueOf()===p.startValue.valueOf()&&s.endValue.valueOf()===p.endValue.valueOf()){if("touch"===o.pointerType&&"discrete"===n.type){var _=e.isExtremePosition(!1),m=e.isExtremePosition(!0),v=h>1&&!g,y=h<1&&(!_||!m),b=1===h&&!(_&&(f<0&&!n.inverted||f>0&&n.inverted)||m&&(f>0&&!n.inverted||f<0&&n.inverted));d.enabled=v||y||b}}else e.handleZooming(g?null:p,{start:!0,end:!0},o,t),g||(d.zoomed=!0,d.deltaTranslate=f-d.translate)}),d}function a(e,t,n,i){n.zoomed&&(t.offset[i]=(e.offset?e.offset[i]:t.offset[i])+n.deltaTranslate)}function d(e,t,n,i){n.zoomed&&(t.center[i]=e[i]+n.deltaTranslate)}var h=P.option("rotated"),f=e.actionData,p=e.options,g={},_={};f.fallback||(g=o(P._argumentAxes,p.argumentAxis[t],h?"y":"x",n,f),_=o(f.valueAxes,p.valueAxis[t],h?"x":"y",n,f),P._requestChange(["VISUAL_RANGE"]),a(n,f,g,h?"y":"x"),a(n,f,_,h?"x":"y"));var m=r(n);return d(m,f,g,h?"y":"x"),d(m,f,_,h?"x":"y"),g.zoomed||_.zoomed||(f.center=m),g.zoomed||_.zoomed||f.fallback||g.enabled||_.enabled}function i(e,t,n,i){function r(e,n,r,o,a,s){var l=!1;return n&&e.forEach(function(e){var n=s&&e!==s,u=o.scale||1,c=e.getTranslator().zoom(-i(o,a,r,u),u,e.getZoomBounds()),d={startValue:c.min,endValue:c.max},h=e.isZoomingLowerLimitOvercome(t,u,d);e.handleZooming(h?null:d,{start:!0,end:n},o,t),h?e.handleZoomEnd():l=!0}),l}var o=P.option("rotated"),a=e.actionData,l=e.options,u=!0;if(a.fallback)u&=r(P._argumentAxes,l.argumentAxis[t],o?"y":"x",n,a,P.getArgumentAxis()),u|=r(a.valueAxes,l.valueAxis[t],o?"x":"y",n,a);else{var c=[];l.argumentAxis[t]&&c.push(P.getArgumentAxis()),l.valueAxis[t]&&(c=c.concat(a.valueAxes)),c.filter(s).forEach(function(e){e.handleZooming(null,{start:!0},n,t)}),u=u&&c.length}u&&P._requestChange(["VISUAL_RANGE"])}function h(e,t){var n=P._argumentAxes.filter(function(t){return o(r(t.getCanvas()),e)});return{fallback:P._lastRenderingTime>T,cancel:!n.length||!(0,l.isDefined)(t),action:t,curAxisRect:n.length&&r(n[0].getCanvas()),valueAxes:n.length&&P._valueAxes.filter(function(t){return o(r(t.getCanvas()),e)}),offset:{x:0,y:0},center:e,startCenter:e}}function f(e,t){var n=L.getRootOffset();return{x:E(O(t.pageX-n.left,e.x),e.width+e.x),y:E(O(t.pageY-n.top,e.y),e.height+e.y)}}function p(e){var t=L.getRootOffset(),n=e.pointers[0].pageX,i=e.pointers[1].pageX,r=e.pointers[0].pageY,o=e.pointers[1].pageY;return{x:E(n,i)+D(i-n)/2-t.left,y:E(r,o)+D(o-r)/2-t.top}}function g(e){var t=L.getRootOffset();return{x:e.pageX-t.left,y:e.pageY-t.top}}function M(e,t,n){return e.offset[n]-t.offset[n]}function I(e){e.cancelable!==!1&&(e.preventDefault(),e.stopPropagation()),P._stopCurrentHandling()}var P=this,L=this._renderer,R={dragStartHandler:function(e){var n,i=R.options,r="touch"===e.pointerType,o=i.argumentAxis.pan||i.valueAxis.pan,a=i.argumentAxis.zoom||i.valueAxis.zoom,s=(0,l.isDefined)(i.panKey)&&e[(0,c.normalizeEnum)(i.panKey)+"Key"],u=i.dragToZoom;if(e._cancelPreventDefault=!0,r){if(i.allowTouchGestures&&o){var d=!R.panningVisualRangeEnabled()||R.skipEvent;n=d?null:"pan"}}else u&&o&&s?n="pan":!u&&o?n="pan":u&&a&&(n="zoom");var p=h(g(e),n);return p.cancel?(R.skipEvent=!1,void(e.cancelable!==!1&&(e.cancel=!0))):(R.actionData=p,void("zoom"===n?(p.startCoords=f(p.curAxisRect,e),p.rect=L.rect(0,0,0,0).attr(i.dragBoxStyle).append(L.root)):t(R,"pan",e)))},dragHandler:function(e){var t=P.option("rotated"),i=R.options,r=R.actionData,o="touch"===e.pointerType;if(e._cancelPreventDefault=!0,r&&(!o||R.panningVisualRangeEnabled()))if("zoom"===r.action){I(e);var a=r.curAxisRect,s=r.startCoords,l=f(a,e),u=i.argumentAxis.zoom,c=i.valueAxis.zoom,d={x:E(s.x,l.x),y:E(s.y,l.y),width:D(s.x-l.x),height:D(s.y-l.y)};u&&c||(!u&&!t||!c&&t?(d.x=a.x,d.width=a.width):(d.y=a.y,d.height=a.height)),r.rect.attr(d)}else if("pan"===r.action){n(R,"pan",e,M,function(e){return e.offset});var h=Math.abs(e.offset.y-r.offset.y),p=Math.abs(e.offset.x-r.offset.x);if(o&&(h>A&&h>Math.abs(r.offset.x)||p>A&&p>Math.abs(r.offset.y)))return;I(e)}},dragEndHandler:function(e){var t=P.option("rotated"),n=R.options,r=R.actionData,o="touch"===e.pointerType,s=r&&"pan"===r.action&&!r.fallback&&0===r.offset.x&&0===r.offset.y;if(r&&(!o||R.panningVisualRangeEnabled())&&!s){if((!o||!R.actionData.isNative)&&I(e),"zoom"===r.action){var l=function(t,n,i,o,s,l){t=a(t,l);var u=s[i],c=o[i],d=!1;return n&&D(u-c)>A&&t.some(function(t){var n=t.getTranslator();if(!n.getBusinessRange().isEmpty()){var i=l&&t!==l,o=[n.from(c),n.from(u)],a=t.isZoomingLowerLimitOvercome(r.action,n.getMinScale(!0),o),s=t.handleZooming(a?null:o,{start:!!i,end:!!i},e,r.action);return a?t.handleZoomEnd():d=!0,l&&s.isPrevented}}),d},u=f(r.curAxisRect,e),c=l(P._argumentAxes,n.argumentAxis.zoom,t?"y":"x",r.startCoords,u,P.getArgumentAxis()),d=l(r.valueAxes,n.valueAxis.zoom,t?"x":"y",r.startCoords,u);(d||c)&&P._requestChange(["VISUAL_RANGE"]),r.rect.dispose()}else"pan"===r.action&&i(R,"pan",e,M);R.actionData=null}},pinchStartHandler:function(n){var i=h(p(n),"zoom");return i.isNative=!R.panningVisualRangeEnabled(),i.cancel?void e(n):(R.actionData=i,void t(R,"zoom",n))},pinchHandler:function(e){if(R.actionData){var t=n(R,"zoom",e,function(e,t,n,i){return p(e)[n]-t.center[n]+(t.center[n]-t.center[n]*i)},p);R.defineTouchBehavior(!t,e),!t&&(R.actionData=null)}},pinchEndHandler:function(e){R.actionData&&(i(R,"zoom",e,function(e,t,n,i){return t.center[n]-t.startCenter[n]+(t.startCenter[n]-t.startCenter[n]*i)}),R.actionData=null)},cleanup:function(){L.root.off(_),R.actionData&&R.actionData.rect&&R.actionData.rect.dispose(),R.actionData=null,L.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(s){if(R.cleanup(),s.argumentAxis.pan||L.root.on(C,e),!s.argumentAxis.none||!s.valueAxis.none){R.options=s;var l=P.option("rotated");(s.argumentAxis.zoom||s.valueAxis.zoom)&&s.allowMouseWheel&&L.root.on(d.name+_,function(e){function t(t,n,i,r){t=a(t,r);var o=!1;return t.some(function(t){var a=t.getTranslator();if(!a.getBusinessRange().isEmpty()){var s=r&&t!==r,l=a.getMinScale(i>0),u=a.zoom(-(n-n*l),l,t.getZoomBounds()),c={startValue:u.min,endValue:u.max},d=t.isZoomingLowerLimitOvercome("zoom",l,c),h=t.handleZooming(d?null:c,{start:!!s,end:!!s},e,"zoom");return d?t.handleZoomEnd():o=!0,r&&h.isPrevented}}),!!o}var n,i=g(e),u=!1;if(s.valueAxis.zoom){if(n=P._valueAxes.filter(function(e){return o(r(e.getCanvas()),i)}),0===n.length){var c=P._valueAxes.reduce(function(e,t){return!e&&t.coordsIn(i.x,i.y)&&(e=t.getCanvas()),e},null);c&&(n=P._valueAxes.filter(function(e){return o(r(e.getCanvas()),{x:c.left,y:c.top})}))}u|=t(n,l?i.x:i.y,e.delta)}if(s.argumentAxis.zoom){var d=P._argumentAxes.some(function(e){return!(!o(r(e.getCanvas()),i)&&!e.coordsIn(i.x,i.y))});u|=d&&t(P._argumentAxes,l?i.y:i.x,e.delta,P.getArgumentAxis())}u&&(P._requestChange(["VISUAL_RANGE"]),R.panningVisualRangeEnabled(n)&&I(e))}),s.allowTouchGestures&&(s.argumentAxis.zoom||s.valueAxis.zoom)&&L.root.on(b,{passive:!1},R.pinchStartHandler).on(x,{passive:!1},R.pinchHandler).on(S,R.pinchEndHandler),L.root.on(m,{immediate:!0,passive:!1},R.dragStartHandler).on(v,{immediate:!0,passive:!1},R.dragHandler).on(y,R.dragEndHandler),s.argumentAxis.pan&&L.root.on(C,function(e){R.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},I(e),t(R,"pan",e)}).on(w,function(e){I(e),n(R,"pan",e,M,function(e){return e.offset})}).on(k,function(e){I(e),i(R,"pan",e,M),R.actionData=null})}},defineTouchBehavior:function(e,t){R.actionData&&(R.actionData.isNative=e),e||I(t)},panningVisualRangeEnabled:function(e){if(e&&e.length)return e.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)});var t=P._valueAxes.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)}),n=P._argumentAxes.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)});return t||n}};this._zoomAndPan=R},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(e){e.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=b;return e.forEach(function(e){t|=e.fullState}),S[t]}function o(e){return(0,u.isNumeric)(e)?e>1?e=1:e<0&&(e=0):e=void 0,e}var a=n(120),s=n(11),l=n(0),u=n(1),c=n(3),d=n(109),h=i(d),f=n(9),p=i(f),g=n(266),_=n(4),m=n(414),v=i(m),y=["startAngle","innerRadius","segmentsDirection","type"],b=a.states.normalMark,x=5,S=[a.states.resetItem,a.states.applyHover,a.states.applySelected,a.states.applySelected],C=g.BaseChart.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,l.extend)(!0,{},this.callBase(),{piePercentage:o(this._themeManager.getOptions("diameter")),minPiePercentage:o(this._themeManager.getOptions("minDiameter"))})},_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT"},_disposeCore:function(){w.remove(this),this.callBase()},_groupSeries:function(){var e=this.series;this._groupsData={groups:[{series:e,valueOptions:{valueType:"numeric"}}],argumentOptions:e[0]&&e[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var e=(new v.default.Translator1D).setCodomain(360,0);return{getTranslator:function(){return e},setBusinessRange:function(t){e.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.series.map(function(e){var t=new h.default.Range;return t.addRange(e.getRangeData().val),e.getValueAxis().setBusinessRange(t),t})},_specialProcessSeries:function(){(0,c.each)(this.series,function(e,t){t.arrangePoints()})},_checkPaneName:function(){return!0},_processSingleSeries:function(e){this.callBase(e),e.arrangePoints()},_handleSeriesDataUpdated:function(){var e=0;this.series.forEach(function(t){e=Math.max(t.getPointsCount(),e)}),this.series.forEach(function(t){t.setMaxPointsCount(e)}),this.callBase()},_getLegendOptions:function(e){var t=this.callBase(e),n=t.legendData;return n.argument=e.argument,n.argumentIndex=e.argumentIndex,n.points=[e],t},_getLegendTargets:function(){var e=this,t={};(e.series||[]).forEach(function(e){e.getPoints().forEach(function(n){var i=n.argument.valueOf(),r=e.getPointsByArg(i).indexOf(n),o=i.valueOf().toString()+r;t[o]=t[o]||[];var a=t[o].push(n);n.index=t[o][a-2]?t[o][a-2].index:Object.keys(t).length-1,n.argumentIndex=r})});var n=[];return(0,c.each)(t,function(t,i){i.forEach(function(t,i){if(0===i)return void n.push(e._getLegendOptions(t));var r=n[n.length-1];r.legendData.points.push(t),r.visible||(r.visible=t.isVisible())})}),n},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(e,t){var n,i=this,r=i._canvas,o=!1;return n=i.layoutManager.applyPieChartSeriesLayout(r,e,!0),e.forEach(function(e){e.correctPosition(n,r),o=e.drawLabelsWOPoints()||o}),o&&(n=i.layoutManager.applyPieChartSeriesLayout(r,e,t.hideLayoutLabels)),e.forEach(function(e){e.hideLabels()}),i._sizeGroupLayout={x:n.centerX,y:n.centerY,radius:n.radiusOuter,drawOptions:t},n},_getLayoutSeriesForEqualPies:function(e,t){var n=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(e,t);return e.forEach(function(e){e.correctPosition(i,n),e.drawLabelsWOPoints()}),this.layoutManager.correctPieLabelRadius(e,i,n),i},_updateSeriesDimensions:function(e){var t,n,i,r=this,o=r._getVisibleSeries(),s=o.length,l=e.sizeGroupLayout;s&&(i=l?r._getLayoutSeriesForEqualPies(o,l):r._getLayoutSeries(o,e),n=(i.radiusOuter-i.radiusInner-a.pieSeriesSpacing*(s-1))/s,t=i.radiusInner,r._setCenter({x:i.centerX,y:i.centerY}),o.forEach(function(e){e.correctRadius({radiusInner:t,radiusOuter:t+n}),t+=n+a.pieSeriesSpacing}))},_renderSeries:function(e,t,n){return this._calculateSeriesLayout(e,t),!e.sizeGroupLayout&&this.getSizeGroup()?(w.queue(this),void this._clearCanvas()):void this._renderSeriesElements(e,t,n)},_getLegendCallBack:function(){var e=this,t=this._legend,n=this._getLegendTargets().map(function(e){return e.legendData});return function(i){n.forEach(function(n){var o=[],a=t.getActionCallback({index:n.id});e.series.forEach(function(e){var t=e.getPointsByKeys(n.argument,n.argumentIndex);o.push.apply(o,t)}),i&&i.argument===n.argument&&i.argumentIndex===n.argumentIndex&&o.push(i),a(r(o))})}},_locateLabels:function(e){var t,n,i=0;do t=this._resolveLabelOverlapping(e),n=this._adjustSeriesLabels("shift"===e);while((t||n)&&++i=270?e.right:e.left).push(t),e},t||{left:[],right:[]})}function t(e,t){var n=!1;return o&&(e.left.reverse(),e.right.reverse()),n=g.overlapping.resolveLabelOverlappingInOneDirection(e.left,r._canvas,!1,t),g.overlapping.resolveLabelOverlappingInOneDirection(e.right,r._canvas,!1,t)||n}function n(e,t){return(0,s.getVerticallyShiftedAngularCoords)(e,-t,r._center)}function i(e,t){return{x:e.x,y:e.y-t}}var r=this,o="anticlockwise"===r.option("segmentsDirection"),a=r.series.reduce(function(e,t){return(e[t.getOptions().label.position]||e.outside).push(t),e},{inside:[],columns:[],outside:[]}),l=!1;return a.inside.length>0&&(l=t(a.inside.reduce(function(e,t){return t.getVisiblePoints().reduce(function(e,t){return e.left.push(t),e},e)},{left:[],right:[]}),i)||l),l=a.columns.reduce(function(n,r){return t(e(r),i)||n},l),a.outside.length>0&&(l=t(a.outside.reduce(function(t,n){return e(n,t)},null),n)||l),l},_setCenter:function(e){this._center=e},_disposeSeries:function(e){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:_.noop,_renderTrackers:_.noop,_trackerType:"PieTracker",_createScrollBar:_.noop,_updateAxesLayout:_.noop,_applyClipRects:_.noop,_appendAdditionalSeriesGroups:_.noop,_prepareToRender:_.noop,_isLegendInside:_.noop,_renderAxes:_.noop,_shrinkAxes:_.noop,_isRotated:_.noop,_seriesPopulatedHandlerCore:_.noop,_reinitAxes:_.noop,_correctAxes:_.noop,_getExtraOptions:function(){var e=this;return{startAngle:e.option("startAngle"),innerRadius:e.option("innerRadius"),segmentsDirection:e.option("segmentsDirection"),type:e.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,c.each)(y,function(e,t){C.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"}),(0,p.default)("dxPieChart",C),e.exports=C;var w=function(){function e(e,t){var n=t.filter(function(t){return t._isVisible()&&t.getSizeGroup()===e}),i=Math.min.apply(null,n.map(function(e){return e.getSizeGroupLayout().radius})),r=n.filter(function(e){return e.getSizeGroupLayout().radius===i});n.forEach(function(e){return e.render({force:!0,sizeGroupLayout:r.length?r[0].getSizeGroupLayout():{}})})}function t(e,t){return e.filter(function(e){return e!==t})}function n(e,n){return t(e,n).concat(n)}var i=[],r={};return{queue:function(t){var o=t.getSizeGroup();i=n(i,t),clearTimeout(r[o]),r[o]=setTimeout(function(){e(o,i)})},remove:function(e){i=t(i,e),i.length||(r={})}}}()},function(e,t,n){var i=n(4).noop,r=n(9),o=n(0).extend,a=n(11),s=n(406).AdvancedChart,l="default",u=s.inherit({_themeSection:"polar",_createPanes:function(){return[{name:l}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(e){var t="argumentAxis"===e,n=t?"circular":"linear",i=this.option("useSpiderWeb");return i&&(n+="Spider"),{axisType:"polarAxes",drawingType:n}},_prepareAxisOptions:function(e,t){var n="argumentAxis"===e,i=this._themeManager,r=this.option("argumentAxis"),o=i.getOptions("argumentAxis",r)||{},s=isFinite(o.startAngle)?a.normalizeAngle(o.startAngle):0;return{type:this.option("useSpiderWeb")&&n?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:n,startAngle:s,endAngle:s+360}},_optionChangesMap:{useSpiderWeb:"AXES_AND_PANES"},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_calcCanvas:function(){var e=o({},this._canvas),t=this.getArgumentAxis(),n=t.getMargins();return Object.keys(n).forEach(function(t){return e[t]=e["original".concat(t[0].toUpperCase()).concat(t.slice(1))]+n[t]}),e},_renderAxes:function(e){var t=this,n=t._getValueAxis(),i=t.getArgumentAxis();i.draw(t._canvas),n.setSpiderTicks(i.getSpiderTicks());var r=t._calcCanvas();return i.updateSize(r),n.draw(r),r},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(e){var t=this._getValueAxis(),n=this.getArgumentAxis();if(e&&(e.width||e.height)){n.hideOuterElements();var i=this._calcCanvas();n.updateSize(i),t.updateSize(i)}},checkForMoreSpaceForPanesCanvas:function(){return this.layoutManager.needMoreSpaceForPanesCanvas([{canvas:this.getArgumentAxis().getCanvas()}],this._isRotated())},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyExtraSettings:i,_applyPointMarkersAutoHiding:i,_createScrollBar:i,_applyClipRects:i,_isRotated:i,_getCrosshairOptions:i,_isLegendInside:i});r("dxPolarChart",u),e.exports=u},function(e,t,n){e.exports=n(798)},function(e,t,n){function i(e,t,n){ var i,r=u({},e);return n=n||{},t&&(r.left+=n.left||0,r.right-=n.right||0,r.top+=n.top||0,r.bottom-=n.bottom||0,t.width>0&&(i=(r.right-r.left-t.width)/2,i>0&&(r.left+=i,r.right-=i)),t.height>0&&(i=(r.bottom-r.top-t.height)/2,i>0&&(r.top+=i,r.bottom-=i))),r}var r=n(3).each,o=Math.max,a=Math.min,s=Math.round,l=n(9),u=n(0).extend,c=n(48),d=n(148).dxBaseGauge,h=n(210).dxGauge,f=n(11).normalizeEnum,p=n(801),g=n(210).createIndicatorCreator,_=n(802),m=h.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(e){return e.isHorizontal?e.verticalOrientation:e.horizontalOrientation},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_linear",e},_updateScaleTickIndent:function(e){var t,n,i,r=e.label.indentFromTick,o=e.tick.length,a=this._scale.measureLabels(u({},this._canvas)),s=e.isHorizontal?a.height+a.y:0,l=r>0;e.isHorizontal?(t=l?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0},i=o*t[e.verticalOrientation],n=a.y):(t=l?{center:.5,left:0,right:1}:{center:.5,left:1,right:0},i=o*t[e.horizontalOrientation],n=-a.width),e.label.indentFromAxis=-r+(l?-i+n:i-s),this._scale.updateOptions(e)},_shiftScale:function(e,t){var n=this,i=u({},n._canvas),r=t.isHorizontal,o=n._scale;i[r?"left":"top"]=n._area[r?"startCoord":"endCoord"],i[r?"right":"bottom"]=i[r?"width":"height"]-n._area[r?"endCoord":"startCoord"],o.draw(i),o.shift({left:-e.x,top:-e.y})},_setupCodomain:function(){var e=this,t=e.option("geometry")||{},n="vertical"===f(t.orientation),i=-100,r=100;e._area={vertical:n,x:0,y:0,startCoord:i,endCoord:r},e._rangeContainer.vertical=n,e._translator.setCodomain(i,r)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return this._area.vertical?"left"===e.horizontalOrientation?(t.inner=1,t.outer=0):"center"===e.horizontalOrientation&&(t.inner=t.outer=.5):"top"===e.verticalOrientation?(t.inner=1,t.outer=0):"center"===e.verticalOrientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){var i=this._area.vertical;t>=0?e.max+=t+n[i?"width":"height"]:e.min-=-t+n[i?"width":"height"],e.indent=n[i?"height":"width"]/2},_measureMainElements:function(e,t){var n=this,i=n._area.x,s=n._area.y,l=1e3,u=0,c=0,d=n._scale;return r(e.concat(d),function(e,n){var r=n.measure?n.measure({x:i+n.getOffset(),y:s+n.getOffset()}):t;void 0!==r.max&&(u=o(u,r.max)),void 0!==r.min&&(l=a(l,r.min)),r.indent>0&&(c=o(c,r.indent))}),{minBound:l,maxBound:u,indent:c}},_applyMainLayout:function(e,t){var n,r,o=this,a=o._measureMainElements(e,t),l=o._area;l.vertical?(n=i(o._innerRect,{width:a.maxBound-a.minBound}),r=(n.left+n.right)/2-(a.minBound+a.maxBound)/2,l.startCoord=n.bottom-a.indent,l.endCoord=n.top+a.indent,l.x=s(l.x+r)):(n=i(o._innerRect,{height:a.maxBound-a.minBound}),r=(n.top+n.bottom)/2-(a.minBound+a.maxBound)/2,l.startCoord=n.left+a.indent,l.endCoord=n.right-a.indent,l.y=s(l.y+r)),o._translator.setCodomain(l.startCoord,l.endCoord),o._innerRect=n},_getElementLayout:function(e){return{x:s(this._area.x+e),y:s(this._area.y+e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=t.vertical?e._canvas.height:e._canvas.width;return n>t.totalSize&&(n=t.totalSize),n=.8*n},_getDefaultSize:function(){var e=this.option("geometry")||{};return"vertical"===e.orientation?{width:100,height:300}:{width:300,height:100}},_factory:c.clone(d.prototype._factory)}),v=m.prototype._factory.indicators={};m.prototype._factory.createIndicator=g(v),v._default=p._default,v.rectangle=p.rectangle,v.rhombus=p.rhombus,v.circle=p.circle,v.trianglemarker=p.trianglemarker,v.textcloud=p.textcloud,v.rangebar=p.rangebar,m.prototype._factory.RangeContainer=_,l("dxLinearGauge",m),e.exports=m},function(e,t,n){var i=n(0).extend,r=i,o=n(267).BaseThemeManager,a=o.inherit({ctor:function(e){this.callBase.apply(this,arguments),this._subTheme=e.subTheme},_initializeTheme:function(){var e,t=this;t._subTheme&&(e=r(!0,{},t._theme[t._subTheme],t._theme),r(!0,t._theme,e)),t.callBase.apply(t,arguments)}});e.exports={ThemeManager:a}},function(e,t,n){function i(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._element.off(v).on(v,e.data),t._showTooltip(e)}function r(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._showTooltip(e)}function o(e){var t=e.data.tracker;t._element.off(v),t._hideTooltip(g)}function a(e){e.data.tracker._hideTooltip()}function s(e){e.preventDefault();var t=x;t&&t!==e.data.tracker&&t._hideTooltip(g),t=x=e.data.tracker,t._showTooltip(e),t._touch=!0}function l(){var e=x;e&&(e._touch||(e._hideTooltip(g),x=null),e._touch=null)}function u(){var e=x;e&&(e._hideTooltip(g),x=null)}var c=n(5),d=n(15),h=n(10),f=n(47).add,p=n(128),g=100,_=d.inherit({ctor:function(e){var t=this;t._element=e.renderer.g().attr({"class":"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(e.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){var e=t._tooltipEvent.target,n=e["gauge-data-target"],i=e["gauge-data-info"];t._targetEvent=null,t._tooltipTarget!==e&&t._callbacks["tooltip-show"](n,i)&&(t._tooltipTarget=e)},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){var e=this;return e._dispose(),e.deactivate(),e._element.linkOff(),e._element=e._context=e._callbacks=null,e},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(e,t,n){return e.data({"gauge-data-target":t,"gauge-data-info":n}).append(this._element),this},detach:function(e){return e.remove(),this},setTooltipState:function(e){var t,n=this;return n._element.off(m).off(b).off(y),e&&(t={tracker:n},n._element.on(m,t).on(b,t).on(y,t)),n},setCallbacks:function(e){return this._callbacks=e,this},_showTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=null,t._tooltipTarget!==e.target&&(t._tooltipEvent=e,t._showTooltipCallback())},_hideTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()}}),m={"mouseover.gauge-tooltip":i,"mouseout.gauge-tooltip":o},v={"mousemove.gauge-tooltip":r},y={};y[p.name+".gauge-tooltip"]=a;var b={"touchstart.gauge-tooltip":s},x=null;f(function(){c.subscribeGlobal(h.getDocument(),{"touchstart.gauge-tooltip":l,"touchend.gauge-tooltip":u})}),e.exports=_},function(e,t,n){var i=n(276),r=i.BaseIndicator,o=i.BaseTextCloudMarker,a=i.BaseRangeBar,s=Number,l=n(11).normalizeEnum,u=r.inherit({_move:function(){var e=this,t=e._actualPosition-e._zeroPosition;e._rootElement.move(e.vertical?0:t,e.vertical?t:0),e._trackerElement&&e._trackerElement.move(e.vertical?0:t,e.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var e,t,n,i,r=this._options,o=r.width/2,a=r.length/2,s=this._zeroPosition;return o>10||(o=10),a>10||(a=10),this.vertical?(e=r.x-a,t=r.x+a,n=s+o,i=s-o):(e=s-o,t=s+o,n=r.y+a,i=r.y-a),{points:[e,n,e,i,t,i,t,n]}},_render:function(){var e=this;e._zeroPosition=e._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(e){var t=this.vertical?e.x:e.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var e=this,t=e._options,n=e._actualPosition,i={x:n,y:n,value:e._currentValue,color:t.color,offset:t.width/2};return e.vertical?i.x=t.x:i.y=t.y,i}}),c=u.inherit({_render:function(){var e,t,n,i,r=this,o=r._options;r.callBase();var a=r._zeroPosition;r.vertical?(e=o.x-o.length/2,t=o.x+o.length/2,n=a+o.width/2,i=a-o.width/2):(e=a-o.width/2,t=a+o.width/2,n=o.y+o.length/2,i=o.y-o.length/2),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr({points:[e,n,e,i,t,i,t,n]})}}),d=u.inherit({_render:function(){var e,t,n,i,r=this,o=r._options;r.callBase(),r.vertical?(e=o.x,t=r._zeroPosition,n=o.length/2||0,i=o.width/2||0):(e=r._zeroPosition,t=o.y,n=o.width/2||0,i=o.length/2||0),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr({points:[e-n,t,e,t-i,e+n,t,e,t+i]})}}),h=u.inherit({_render:function(){var e,t,n=this,i=n._options;n.callBase(),n.vertical?(e=i.x,t=n._zeroPosition):(e=n._zeroPosition,t=i.y);var r=i.length/2||0;n._element=n._element||n._renderer.circle().append(n._rootElement),n._element.attr({cx:e,cy:t,r:r})}}),f=u.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.length>0&&e._options.width>0},_isVisible:function(){return!0},_render:function(){var e,t,n,i,r=this,o=r._options,a={stroke:"none","stroke-width":0,"stroke-linecap":"square"};r.callBase(),r.vertical?(e=o.x,n=r._zeroPosition,t=e+s(r._inverted?o.length:-o.length),a.points=[e,n,t,n-o.width/2,t,n+o.width/2]):(n=o.y,e=r._zeroPosition,i=n+s(r._inverted?o.length:-o.length),a.points=[e,n,e-o.width/2,i,e+o.width/2,i]),o.space>0&&(a["stroke-width"]=Math.min(o.space,o.width/4)||0,a.stroke=a["stroke-width"]>0?o.containerBackgroundColor||"none":"none"),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr(a).sharp()},_getTrackerSettings:function(){var e,t,n,i,r,o=this,a=o._options,l=a.width/2,u=s(a.length);return l>10||(l=10),u>20||(u=20),o.vertical?(e=t=a.x,t=e+(o._inverted?u:-u),n=o._zeroPosition+l,i=o._zeroPosition-l,r=[e,n,t,n,t,i,e,i]):(n=a.y,i=n+(o._inverted?u:-u),e=o._zeroPosition-l,t=o._zeroPosition+l,r=[e,n,e,i,t,i,t,n]),{points:r}},measure:function(e){var t,n,i=this,r=s(i._options.length);return i.vertical?(t=n=e.x,i._inverted?n=t+r:t=n-r):(t=n=e.y,i._inverted?n=t+r:t=n-r),{min:t,max:n,indent:i._options.width/2}},getTooltipParameters:function(){var e=this,t=e._options,n=(e._inverted?t.length:-t.length)/2,i=e.callBase();return e.vertical?i.x+=n:i.y+=n,i.offset=t.length/2,i}}),p=o.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,t=this,n=t._actualPosition,i=t._actualPosition;return t.vertical?(n=t._options.x,e=t._inverted?"top-left":"top-right"):(i=t._options.y,e=t._inverted?"right-top":"right-bottom"),{x:n,y:i,type:e}},measure:function(e){var t,n,i,r=this,o=s(r._options.arrowLength)||0;return r._measureText(),r.vertical?(i=r._textFullHeight,r._inverted?(t=e.x,n=e.x+o+r._textFullWidth):(t=e.x-o-r._textFullWidth,n=e.x)):(i=r._textFullWidth,r._inverted?(t=e.y,n=e.y+o+r._textFullHeight):(t=e.y-o-r._textFullHeight,n=e.y)),{min:t,max:n,indent:i}}}),g=a.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,t,n=this,i=n._options,r=s(i.size);n.vertical?n._inverted?(e=i.x,t=i.x+r):(e=i.x-r,t=i.x):n._inverted?(e=i.y,t=i.y+r):(e=i.y-r,t=i.y),n._minSide=e,n._maxSide=t,n._minBound=e,n._maxBound=t},_getSpace:function(){var e=this._options;return e.space>0?s(e.space):0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0||e.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var e=this,t=s(e._options.text.indent);t>0?(e._lineStart=e._maxSide,e._lineEnd=e._maxSide+t,e._textPosition=e._lineEnd+(e.vertical?2:e._textHeight/2),e._maxBound=e._textPosition+(e.vertical?e._textWidth:e._textHeight/2)):t<0&&(e._lineStart=e._minSide,e._lineEnd=e._minSide+t,e._textPosition=e._lineEnd-(e.vertical?2:e._textHeight/2),e._minBound=e._textPosition-(e.vertical?e._textWidth:e._textHeight/2))},_getPositions:function(){var e,t,n,i,r=this,o=r._startPosition,a=r._endPosition,s=r._space,l=r._basePosition,u=r._actualPosition;return ou?(e=l,t=u):(e=u,t=l),n=e+s,i=t-s),{start:o,end:a,main1:e,main2:t,back1:n,back2:i}},_buildItemSettings:function(e,t){var n=this,i=n._minSide,r=n._maxSide,o=n.vertical?[i,e,i,t,r,t,r,e]:[e,i,e,r,t,r,t,i];return{points:o}},_updateTextPosition:function(){var e=this;e._text.attr(e.vertical?{x:e._textPosition,y:e._actualPosition+e._textVerticalOffset}:{x:e._actualPosition,y:e._textPosition+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n,i=this,r=i._actualPosition;i.vertical?(i._basePosition>=r?(e=r,t=r+2):(e=r-2,t=r),n=[i._lineStart,e,i._lineStart,t,i._lineEnd,t,i._lineEnd,e]):(i._basePosition<=r?(e=r-2,t=r):(e=r,t=r+2),n=[e,i._lineStart,e,i._lineEnd,t,i._lineEnd,t,i._lineStart]),i._line.attr({points:n}).sharp()},_getTooltipPosition:function(){var e=this,t=(e._minSide+e._maxSide)/2,n=(e._basePosition+e._actualPosition)/2;return e.vertical?{x:t,y:n}:{x:n,y:t}},measure:function(e){var t,n,i,r=this,o=s(r._options.size),a=s(r._options.text.indent);return r._measureText(),r.vertical?(t=n=e.x,r._inverted?n+=o:t-=o,r._hasText&&(i=r._textHeight/2,a>0&&(n+=a+r._textWidth),a<0&&(t+=a-r._textWidth))):(t=n=e.y,r._inverted?n+=o:t-=o,r._hasText&&(i=r._textWidth/2,a>0&&(n+=a+r._textHeight),a<0&&(t+=a-r._textHeight))),{min:t,max:n,indent:i}}});t._default=g,t.rectangle=c,t.rhombus=d,t.circle=h,t.trianglemarker=f,t.textcloud=p,t.rangebar=g},function(e,t,n){var i=n(415),r=Number,o=Math.max,a=n(11).normalizeEnum,s=i.inherit({_processOptions:function(){var e=this;if(e.vertical=e._options.vertical,e._inner=e._outer=0,e.vertical)switch(a(e._options.horizontalOrientation)){case"left":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}else switch(a(e._options.verticalOrientation)){case"top":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(){return!0},_createRange:function(e,t){var n,i=this,r=i._inner,o=i._outer,a=i._translator.translate(e.start),s=i._translator.translate(e.end),l=t.x,u=t.y,c=e.startWidth,d=e.endWidth;return n=i.vertical?[l-c*r,a,l-d*r,s,l+d*o,s,l+c*o,a]:[a,u+c*o,a,u-c*r,s,u-d*r,s,u+d*o],i._renderer.path(n,"area")},measure:function(e){var t,n={};return n.min=n.max=e[this.vertical?"x":"y"],t=this._options.width,t=r(t)||o(r(t.start),r(t.end)),n.min-=this._inner*t,n.max+=this._outer*t,n}});e.exports=s},function(e,t,n){e.exports=n(416)},function(e,t,n){var i=n(276),r=i.BaseIndicator,o=i.BaseTextCloudMarker,a=i.BaseRangeBar,s=n(11),l=Number,u=s.getCosAndSin,c=s.convertAngleToRendererSpace,d=r.inherit({_move:function(){var e=this,t=e._options,n=c(e._actualPosition);e._rootElement.rotate(n,t.x,t.y),e._trackerElement&&e._trackerElement.rotate(n,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(e){return e.radius-l(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var e=this._options,t=this._getRadius(),n=this._getIndentFromCenter(),i=e.x,r=e.y-(t+n)/2,o=e.width/2,a=(t-n)/2;return o>10||(o=10),a>10||(a=10),{points:[i-o,r-a,i-o,r+a,i+o,r+a,i+o,r-a]}},_render:function(){var e=this;e._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(e){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(e){var t={max:e.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-l(this._options.indentFromCenter)),t},getTooltipParameters:function(){var e=this._options,t=u(this._actualPosition),n=(this._getRadius()+this._getIndentFromCenter())/2;return{x:e.x+t.cos*n,y:e.y-t.sin*n,value:this._currentValue,color:e.color,offset:e.width/2}}}),h=d.inherit({_isVisible:function(e){var t=this._adjustOffset(Number(this._options.indentFromCenter),e.radius),n=this._adjustOffset(Number(this._options.offset),e.radius);return e.radius-t-n>0},getOffset:function(){return 0},_adjustOffset:function(e,t){var n=Number(this._options.beginAdaptingAtRadius),i=t/n;return i<1&&(e=Math.floor(e*i)),e||0},_getIndentFromCenter:function(e){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var e=this._options;return e.radius-this._adjustOffset(Number(e.offset),e.radius)},_renderSpindle:function(){var e,t=this,n=t._options,i=n.radius,r=2*this._adjustOffset(l(n.spindleSize)/2,i);e=2*this._adjustOffset(l(n.spindleGapSize)/2,i)||0,e>0&&(e=e<=r?e:r),r>0&&(t._spindleOuter=t._spindleOuter||t._renderer.circle().append(t._rootElement),t._spindleInner=t._spindleInner||t._renderer.circle().append(t._rootElement),t._spindleOuter.attr({"class":"dxg-spindle-border",cx:n.x,cy:n.y,r:r/2}),t._spindleInner.attr({"class":"dxg-spindle-hole",cx:n.x,cy:n.y,r:e/2,fill:n.containerBackgroundColor}))},_render:function(){var e=this;e.callBase(),e._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),f=h.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),r=t.x-t.width/2,o=r+l(t.width);e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[r,i,r,n,o,n,o,i]})}}),p=h.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),r=t.x-t.width/2,o=t.x+t.width/2;e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[r,i,t.x,n,o,i]})}}),g=h.inherit({_renderPointer:function(){var e,t,n=this,i=n._options,r=i.x-i.width/2,o=i.x+i.width/2,a=i.y-this._getRadius(),s=i.y-this._getIndentFromCenter(),u=l(i.secondFraction)||0;u>=1?e=t=s:u<=0?e=t=a:(t=a+(s-a)*u,e=t+l(i.space)),n._firstElement=n._firstElement||n._renderer.path([],"area").append(n._rootElement),n._spaceElement=n._spaceElement||n._renderer.path([],"area").append(n._rootElement),n._secondElement=n._secondElement||n._renderer.path([],"area").append(n._rootElement),n._firstElement.attr({points:[r,s,r,e,o,e,o,s]}),n._spaceElement.attr({points:[r,e,r,t,o,t,o,e],"class":"dxg-hole",fill:i.containerBackgroundColor}),n._secondElement.attr({points:[r,t,r,a,o,a,o,t],"class":"dxg-part",fill:i.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),_=d.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(e){return e.radius>0},_render:function(){var e=this,t=e._options,n=t.x,i=t.y-t.radius,r=t.width/2||0,o=i-l(t.length);e._element=e._element||e._renderer.path([],"area").append(e._rootElement);var a={points:[n,i,n-r,o,n+r,o],stroke:"none","stroke-width":0,"stroke-linecap":"square"};t.space>0&&(a["stroke-width"]=Math.min(t.space,t.width/4)||0,a.stroke=a["stroke-width"]>0?t.containerBackgroundColor||"none":"none"),e._element.attr(a).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var e=this._options,t=e.x,n=e.y-e.radius-e.length/2,i=e.width/2,r=e.length/2;return i>10||(i=10),r>10||(r=10),{points:[t-i,n-r,t-i,n+r,t+i,n+r,t+i,n-r]}},measure:function(e){return{min:e.radius,max:e.radius+l(this._options.length)}},getTooltipParameters:function(){var e=this._options,t=u(this._actualPosition),n=e.radius+e.length/2,i=this.callBase();return i.x=e.x+t.cos*n,i.y=e.y-t.sin*n,i.offset=e.length/2,i}}),m=o.inherit({_isEnabled:function(){return!0},_isVisible:function(e){return e.radius>0},_getTextCloudOptions:function(){var e=this,t=u(e._actualPosition),n=s.normalizeAngle(e._actualPosition);return{x:e._options.x+t.cos*e._options.radius,y:e._options.y-t.sin*e._options.radius,type:n>270?"left-top":n>180?"top-right":n>90?"right-bottom":"bottom-left"}},measure:function(e){var t=this,n=l(t._options.arrowLength)||0;t._measureText();var i=t._textFullHeight+n,r=t._textFullWidth+n;return{min:e.radius,max:e.radius,horizontalOffset:r,verticalOffset:i,inverseHorizontalOffset:r,inverseVerticalOffset:i}}}),v=a.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(e){return e.radius-l(this._options.size)>0},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){var e=this;e._maxSide=e._options.radius,e._minSide=e._maxSide-l(e._options.size)},_getSpace:function(){var e=this._options;return e.space>0?180*e.space/e.radius/Math.PI:0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0},_setTextItemsSides:function(){var e=this,t=e._options,n=l(t.text.indent);e._lineFrom=t.y-t.radius,e._lineTo=e._lineFrom-n,e._textRadius=t.radius+n},_getPositions:function(){var e,t,n=this,i=n._basePosition,r=n._actualPosition;return i>=r?(e=i,t=r):(e=r,t=i),{start:n._startPosition,end:n._endPosition,main1:e,main2:t,back1:Math.min(e+n._space,n._startPosition),back2:Math.max(t-n._space,n._endPosition)}},_buildItemSettings:function(e,t){var n=this;return{x:n._options.x,y:n._options.y,innerRadius:n._minSide,outerRadius:n._maxSide,startAngle:t,endAngle:e}},_updateTextPosition:function(){var e=this,t=u(e._actualPosition),n=e._options.x+e._textRadius*t.cos,i=e._options.y-e._textRadius*t.sin;n+=t.cos*e._textWidth*.6,i-=t.sin*e._textHeight*.6,e._text.attr({x:n,y:i+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n=this,i=n._options.x;n._basePosition>n._actualPosition?(e=i-2,t=i):n._basePosition0},_createRange:function(e,t){var n=this,i=(e.startWidth+e.endWidth)/2;return n._renderer.arc(t.x,t.y,t.radius-n._inner*i,t.radius+n._outer*i,n._translator.translate(e.end),n._translator.translate(e.start)).attr({"stroke-linejoin":"round"})},measure:function(e){var t=this._options.width;return t=r(t)||o(r(t.start),r(t.end)),{min:e.radius-this._inner*t,max:e.radius+this._outer*t}}});e.exports=s},function(e,t,n){e.exports=n(807).dxBarGauge},function(e,t,n){function i(e,t,n){e.startAngle=t0?A(i.indent):0,r.lineWidth=i.connectorWidth>0?A(i.connectorWidth):0,r.lineColor=i.connectorColor||null,e=n._renderer.text(v(n._translator,r.formatOptions),0,0).attr(r.textOptions).css(r.fontStyles).append(n._barsGroup),t=e.getBBox(),e.remove(),r.textY=t.y,r.textWidth=t.width,r.textHeight=t.height),x.prototype._applyMainLayout.call(n),n._renderBars()},_measureMainElements:function(){var e={maxRadius:this._area.radius};return this._context.textEnabled&&(e.horizontalMargin=this._context.textWidth,e.verticalMargin=this._context.textHeight,e.inverseHorizontalMargin=this._context.textWidth/2,e.inverseVerticalMargin=this._context.textHeight/2),e},_renderBars:function(){var e,t=this,n=D({},t._themeManager.theme(),t.option()),i=t._area,r=n.relativeInnerRadius>0&&n.relativeInnerRadius<1?A(n.relativeInnerRadius):.1;e=i.radius,t._context.textEnabled&&(t._textIndent=s(u(t._textIndent,e/2)),e-=t._textIndent),t._outerRadius=l(e),t._innerRadius=l(e*r),t._barSpacing=n.barSpacing>0?A(n.barSpacing):0,D(t._context,{backgroundColor:n.backgroundColor,x:i.x,y:i.y,startAngle:i.startCoord,endAngle:i.endCoord,baseAngle:t._translator.translate(t._baseValue)}),t._arrangeBars()},_arrangeBars:function(){var e,t=this,n=t._outerRadius-t._innerRadius,i=t._context,r=t._bars.length;t._beginValueChanging(),i.barSize=r>0?c((n-(r-1)*t._barSpacing)/r,1):0;var o=r>1?c(u((n-r*i.barSize)/(r-1),t._barSpacing),0):0,a=u(l((n+o)/i.barSize),r);t._setBarsCount(r),n=t._outerRadius,i.textRadius=n,i.textIndent=t._textIndent,t._palette.reset();var s=i.barSize+o,d=t._palette.generateColors(a);for(e=0;e0?e._dummyBackground&&(e._dummyBackground.dispose(),e._dummyBackground=null):(e._dummyBackground||(e._dummyBackground=e._renderer.arc().attr({"stroke-linejoin":"round"})),e._dummyBackground.attr({x:e._context.x,y:e._context.y,outerRadius:e._outerRadius,innerRadius:e._innerRadius,startAngle:e._context.endAngle,endAngle:e._context.startAngle,fill:e._context.backgroundColor}).append(e._barsGroup))},_updateBars:function(){this._bars.forEach(function(e){return e.applyValue()}),this._checkOverlap()},_checkOverlap:function(){var e=this,t=e._bars,n=g(e._getOption("resolveLabelOverlapping",!0));if("none"!==n)for(var i=t.concat().sort(function(e,t){return e.getValue()-t.getValue()}),r=0,o=1;r0){for(e=0;ei){for(var r=e._bars.length,o=i;os&&(u+=u0&&(i=V.dateUnitIntervals[o-1]),i}function f(e,t,n){return e?n?e=(0,V.getNextDateUnit)(e):e+=t:e=t,e}function p(e,t,n,i){var r,o,a,s=e.minorTickInterval,l=e.tickInterval,u="datetime"===e.valueType,c=e.axisDivisionFactor||{};if(!l)do{if(r=f(l,s,u),l===r)break;l=r,u&&(r=(0,V.dateToMilliseconds)(l)),o=ce((n-t)/r),a=de(i/(c[l]||Ee))||1}while(r&&o>a);return{tickInterval:l,minorTickInterval:s,bounds:{minVisible:t,maxVisible:n},ticks:[]}}function g(e,t,n,i){var r,o=(0,I.isDefined)(i.minVisible)?i.minVisible:i.min,a=(0,I.isDefined)(i.maxVisible)?i.maxVisible:i.max,s=e._categoriesInfo,l={};if(e.type===me)r=p(e,o,a,t);else{var u=ne.default.tickGenerator({axisType:e.type,dataType:e.valueType,logBase:e.logarithmBase,axisDivisionFactor:e.axisDivisionFactor,minorAxisDivisionFactor:e.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:n,rangeIsEmpty:i.isEmpty()})({min:o,max:a,categories:(0,I.isDefined)(s)?s.categories:[]},t,e.tickInterval,e.forceUserTickInterval,void 0,e.minorTickInterval,e.minorTickCount),c=u.ticks.length;l.minVisible=u.ticks[0]a?u.ticks[c-1]:a,r={tickInterval:u.tickInterval,minorTickInterval:0===e.minorTickInterval?0:u.minorTickInterval,bounds:l,ticks:u.ticks}}return r}function _(e,t){var n,i,r,o,a=!1,s=t.startValue,l=t.endValue,u=e?e.getBoundRange().arg:new z.default.Range,c="datetime"===t.valueType,d=t.minRange;if(t.type===_e){var h=new z.default.Range({minVisible:s,maxVisible:l});h.addRange(u),u=h,r=e?e.argCategories:t.categories||!e&&s&&l&&[s,l],r=r||[],t._categoriesInfo=o=(0,R.getCategoriesInfo)(r,s,l)}return t.type===me&&(s=t.startValue=S(t.startValue,c,d),l=t.endValue=S(t.endValue,c,d),u.minVisible=S(u.minVisible,c,d),u.maxVisible=S(u.maxVisible,c,d),u.min=S(u.min,c,d),u.max=S(u.max,c,d)),(0,I.isDefined)(s)&&(0,I.isDefined)(l)?(a=o?o.inverted:s>l,n=o?o.start:a?l:s,i=o?o.end:a?s:l):(0,I.isDefined)(s)||(0,I.isDefined)(l)?(n=s,i=l):o&&(n=o.start,i=o.end),u.addRange({invert:a,min:n,max:i,minVisible:n,maxVisible:i,dataType:t.valueType}),u.addRange({categories:e?void 0:r,base:t.logarithmBase,axisType:t.type,dataType:t.valueType}),e&&u.sortCategories(r),u}function m(e,t){return!(0,I.isDefined)(e)||!(0,I.isDefined)(t)}function v(e,t,n){var i=e.text(t,Ae,Ae).css((0,R.patchFontOptions)(n)).append(e.root),r=i.getBBox();return i.remove(),r}function y(e){return function(t,n,i,r,o){return n&&t&&(!(0,I.isDefined)(o)||o.years||o.months>=6||e/Ee0?ce(Math.abs((0,B.adjust)((0,R.getLog)(r,10)))):0}function k(e,t,n,i){return e.marker.label.font=e.label.font,e.color=e.marker.color=e.tick.color,e.opacity=e.marker.opacity=e.tick.opacity,e.width=e.marker.width=e.tick.width,e.placeholderSize=(e.placeholderHeight||0)+i,e.argumentType=e.valueType,e.visible=t,e.isHorizontal=!0,e.calculateMinors=!0,e.semiDiscreteInterval=e.minRange,t||(e.minorTick.length=e.tick.length=n),e.label.indentFromAxis=e.label.topIndent+i,e}function T(e,t,n){function i(t){var i=t.target.range,r=e.minRange?(0,V.addInterval)(i.startValue,e.minRange):void 0,o=e.maxRange?(0,V.addInterval)(i.startValue,e.maxRange):void 0;r&&r>i.endValue||o&&ot}function s(e,t){for(var n=0,i=t?t.length-1:0,r=e;i-n>1;){var o=n+i>>1;if(r=t[o],r===e)return e;et[1].getCloudBorder();t[0].setOverlapped(n),t[1].setOverlapped(n),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(e)},_applyAreaTrackersPosition:function(){var e=this,t=e._sliders[0].getPosition(),n=e._sliders[1].getPosition();e._selectedAreaTracker.attr({points:i(t,e._verticalRange[0],n,e._verticalRange[1])}).css({cursor:Math.abs(e._params.translator.getScreenRange()[1]-e._params.translator.getScreenRange()[0]-n+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(e){var t,n=this,r=n._verticalRange,o=n._sliders[0].getPosition(),a=n._sliders[1].getPosition();if(n._isCompactMode)t=[o+Math.ceil(n._shutterOffset),(r[0]+r[1])/2,a-Math.floor(n._shutterOffset),(r[0]+r[1])/2];else{var s=n._params.axis.getVisibleArea();t=[i(s[0],r[0],Math.max(o-Math.floor(n._shutterOffset),s[0]),r[1]),i(s[1],r[0],Math.min(a+Math.ceil(n._shutterOffset),s[1]),r[1])]}e?n._shutter.animate({points:t},p):n._shutter.attr({points:t})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(e,t){e=e||{};var n=this,i=n._params.translator,r=i.getBusinessRange(),o="discrete"===r.axisType?function(e,t){return eo==e>(i[0].getPosition()+i[1].getPosition())/2-r&&n._moveSelectedArea(e+r,!1,t),o=e}var n=this,i=n._sliders,r=(i[0].getPosition()+i[1].getPosition())/2-e,o=e;return t.complete=function(e){n._dockSelectedArea(e)},t},_dockSelectedArea:function(e){var t=this._params.translator,n=this._sliders;n[0]._position=t.to(n[0].getValue(),-1),n[1]._position=t.to(n[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged(e)},moveSelectedArea:function(e,t){this._moveSelectedArea(e,!0,t),this._dockSelectedArea(t)},_moveSelectedArea:function(e,t,n){var i=this,r=i._params.translator,o=i._sliders,a=o[1].getPosition()-o[0].getPosition(),l=e-a/2,u=e+a/2;lr.getScreenRange()[1]&&(u=r.getScreenRange()[1],l=u-a);var c=s(r.from(l,-1),i._values);o[0].setDisplayValue(c),o[1].setDisplayValue(s(r.from(r.to(c,-1)+a,1),i._values)),o[0]._position=l,o[1]._position=u,i._applyTotalPosition(t),i._isOnMoving&&i._processSelectionChanged(n)},placeSliderAndBeginMoving:function(e,t,n){var i,r=this,l=r._params.translator,u=r._sliders,c=e0?1:-1,h=c>0?a:o,f=c>0?o:a,p=[],g=[];g[c]=l.from(e,d),g[1-c]=l.from(t,-d),p[1-c]=t,l.isValueProlonged&&(h(e,l.to(g[c],d))&&(g[c]=l.from(e,-d)),h(t,l.to(g[c],-d))&&(g[1-c]=g[c])),r._minRange&&(i=l.to(l.add(s(g[c],r._values),r._minRange,-d),-d),h(t,i)&&(g[1-c]=l.add(g[c],r._minRange,-d)),i=l.to(l.add(l.getRange()[1-c],r._minRange,d),-d),f(e,i)&&(g[1-c]=l.getRange()[1-c],g[c]=l.add(g[1-c],r._minRange,d),p[1-c]=e)),g[0]=s(g[0],r._values),g[1]=s(g[1],r._values),p[c]=l.to(g[c],d),u[0].setDisplayValue(g[0]),u[1].setDisplayValue(g[1]),u[0]._position=p[0],u[1]._position=p[1],r._applyTotalPosition(!0),r._isOnMoving&&r._processSelectionChanged(n);var _=r.beginSliderMoving(1-c,t);return u[1-c]._sliderGroup.stopAnimation(),r._shutter.stopAnimation(),_(t),_},beginSliderMoving:function(e,t){function n(e,t){var n;if(e!==f){if(g(e+v,h)&&(n=i._allowSlidersSwap,n&&!r.isValueProlonged&&i._minRange&&(n=r.isValid(r.add(l[1-d].getValue(),i._minRange,-p))),n)){i._changeMovingSlider(d),d=1-d,p=-p;var o=g;g=_,_=o,m=-p*Math.abs(m),v=-m}if(_(e+m,h)){n=!0;var a=l[d],y=l[1-d].getValue(),b=Math.max(Math.min(e+m,c),u);n&&r.isValueProlonged&&(n=!g(b,r.to(y,p))),n&&i._minRange&&(n=!g(b,r.to(r.add(y,i._minRange,p),p))),n&&i._maxRange&&(n=!_(b,r.to(r.add(y,i._maxRange,p),p))),a._setValid(n),a.setDisplayValue(n?s(r.from(b,p),i._values):a.getValue()),a._position=b,i._applyTotalPosition(!1),a.toForeground(),i._isOnMoving&&i._processSelectionChanged(t)}}f=e}var i=this,r=i._params.translator,l=i._sliders,u=r.getScreenRange()[0],c=r.getScreenRange()[1],d=e,h=l[1-d].getPosition(),f=t,p=d>0?1:-1,g=d>0?o:a,_=d>0?a:o,m=l[d].getPosition()-t,v=g(l[d].getPosition(),t)?-m:m;return n.complete=function(e){l[d]._setValid(!0),i._dockSelectedArea(e)},n},_changeMovingSlider:function(e){var t,n=this,i=n._params.translator,r=n._sliders,o=r[1-e].getPosition(),a=e>0?1:-1;r[e].setDisplayValue(s(i.from(o,a),n._values)),t=i.from(o,-a),i.isValueProlonged?t=i.from(o,a):n._minRange&&(t=i.add(t,n._minRange,-a)),r[1-e].setDisplayValue(s(t,n._values)),r[e]._setValid(!0),r[e]._marker._update(),r[0]._position=r[1]._position=o},foregroundSlider:function(e){this._sliders[e].toForeground()}},t.SlidersController=d},function(e,t,n){function i(e){return u.touchEvents||u.pointer?d:cs?l=s:ct._range[1]-i?(s=-d+t._range[1],o=s-i,p(),g+=o):(o=c=0,s=i):d-t._range[0]t.width||i.height>t.height?i:t,n._timeout=setTimeout(function(){e(i,r),n._textSize=i},o),e(t)},setText:function(e){this._text=e},setPosition:function(e){this._position=e,this._update()},applyOptions:function(e,t){var n=this;n._range=t,n._paddingLeftRight=e.paddingLeftRight,n._paddingTopBottom=e.paddingTopBottom,n._textHeight=null,n._colors=[e.invalidRangeColor,e.color],n._area.attr({fill:e.color}),n._border.attr({fill:e.borderColor}),n._label.css(r(e.font)),n._update()},getTracker:function(){return this._tracker},setValid:function(e){this._area.attr({fill:this._colors[Number(e)]})},setColor:function(e){this._area.attr({fill:e})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(e){var t=this;t._isOverlapped!==e&&(e?t._border.append(t._group):t._isOverlapped&&t._border.remove(),t._isOverlapped=e)},getBorderPosition:function(){return this._borderPosition}},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e||T.event,n=t.originalEvent,i=t.touches,r=!!n&&n.pointerType,o=!!n&&n.touches,a=n&&void 0!==r&&(r===(n.MSPOINTER_TYPE_TOUCH||"touch")||r===(n.MSPOINTER_TYPE_MOUSE||"mouse")&&1===n.buttons),s=i&&i.length>0||o&&o.length>0;return 1===t.which||a||s}function a(e){var t=e.originalEvent,n=e.touches,i=t&&t.touches;return n&&n.length>1||i&&i.length>1||null}function s(e){a(e)||e.preventDefault()}function l(e){a(e)||(e.stopPropagation(),e.preventDefault())}function u(e){return e&&e.type&&0===e.type.indexOf("touch")}function c(e){var t=e.originalEvent,n=0;return e.pageX?n=e.pageX:t&&t.pageX&&(n=t.pageX),t&&t.touches&&(t.touches.length>0?n=t.touches[0].pageX:t.changedTouches.length>0&&(n=t.changedTouches[0].pageX)),n}function d(e,t,n,i){function a(e){h&&(h=!1,f&&(f.complete(e),f=null))}var s,l,d,h=!1,f=null,p=(s={},r(s,v.default.move,function(t){var r,s;l===u(t)&&(o(t)||a(t),h&&(r=c(t),s=i(),f?f(r-s,t):n.manualRangeSelectionEnabled&&Math.abs(d-r)>=k&&(f=e.placeSliderAndBeginMoving(d-s,r-s,t))))}),r(s,v.default.up,function(t){var r;h&&(r=c(t),!f&&n.moveSelectedRangeByClick&&Math.abs(d-r)=0&&i<1?i:0,bottom:r>=0&&r<1?r:0},t._valueAxis=n.getOptions("valueAxisRangeSelector")||{},t._hideChart=!1,t._series=t._calculateSeries(e),t._seriesFamilies=[]};g.prototype={constructor:g,_calculateSeries:function(e){var t,n,r=this,o=[],s=e.dataSource||[],l=r._themeManager,c=l.getOptions("seriesTemplate"),h=c?u.processSeriesTemplate(c,s):e.chart.series,f=r._valueAxis;for(e.dataSource&&!h&&(t=e.dataSourceField||"arg",h={argumentField:t,valueField:t},r._hideChart=!0),h=Array.isArray(h)?h:h?[h]:[],n=0;n0){var _=new i.Series({renderer:e.renderer,argumentAxis:e.argumentAxis,valueAxis:e.valueAxis,incidentOccurred:e.incidentOccurred},g);o.push(_)}}if(o.length){var m={groups:[{series:o,valueAxis:e.valueAxis,valueOptions:{type:f.type,valueType:t?e.valueType:f.valueType}}],argumentOptions:{categories:e.categories,argumentType:e.valueType,type:e.axisType}},v=d.validateData(s,m,e.incidentOccurred,l.getOptions("dataPrepareSettings"));for(r.argCategories=m.categories,n=0;n4?4:D(n),i*n)}var f,p=n(5),g=i(p),_=n(7),m=i(_),v=n(10),y=i(v),b=n(418),x=i(b),S=n(8),C=i(S),w=n(128),k=n(11),T=m.default.getNavigator(),A=Math,E=A.abs,O=A.sqrt,D=A.round,M=C.default.addNamespace,I=Date.now,P="dxVectorMap",L="start",R="move",V="end",B="zoom",F="hover-on",z="hover-off",H="click",N="focus-on",G="focus-move",j="focus-off",W=500,U=5,Y=20,X=5,q=10,K=100,$=50,Z=300;l(),r.prototype={constructor:r,dispose:function(){var e=this;e._detachHandlers(),e._disposeEvents(),e._focus.dispose(),e._root=e._focus=e._docHandlers=e._rootHandlers=null},_eventNames:[L,R,V,B,H,F,z,N,j,G],_startClick:function(e,t){if(t){var n=u(e);this._clickState={x:n.x,y:n.y,threshold:a(e)?Y:U,time:I()}}},_endClick:function(e,t){var n=this._clickState;if(n){if(t&&I()-n.time<=W){var i=n.threshold,r=u(e);E(r.x-n.x)<=i&&E(r.y-n.y)<=i&&this._fire(H,{data:t,x:r.x,y:r.y,$event:e})}this._clickState=null}},_startDrag:function(e,t){if(t){var n=u(e),i=this._dragState={x:n.x,y:n.y,data:t};this._fire(L,{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(e,t){var n=this._dragState;if(n){var i=u(e),r=a(e)?q:X;(n.active||E(i.x-n.x)>r||E(i.y-n.y)>r)&&(n.x=i.x,n.y=i.y,n.active=!0,n.data=t||{},this._fire(R,{x:n.x,y:n.y,data:n.data}))}},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire(V,{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n=this,i=n._wheelLock,r=I();if(!(r-i.time<=$)){r-i.dirTime>Z&&(i.dir=0);var o=h(e.delta/120||0,i);if(0!==o){var a=u(e);n._fire(B,{delta:o,x:a.x,y:a.y}),i.time=i.dirTime=r}}}},_startZoom:function(e,t){if(a(e)&&t){var n,i,r=this._zoomState=this._zoomState||{};r.pointer1&&r.pointer2||(void 0===r.pointer1&&(r.pointer1=c(e)||0,n=d(e,r.pointer1),r.x1=r.x1_0=n.x,r.y1=r.y1_0=n.y),void 0===r.pointer2&&(i=c(e)||1,i!==r.pointer1&&(n=d(e,i),n&&(r.x2=r.x2_0=n.x,r.y2=r.y2_0=n.y,r.pointer2=i,r.ready=!0,this._endDrag()))))}},_moveZoom:function(e){var t,n=this._zoomState;n&&a(e)&&(void 0!==n.pointer1&&(t=d(e,n.pointer1),t&&(n.x1=t.x,n.y1=t.y)),void 0!==n.pointer2&&(t=d(e,n.pointer2),t&&(n.x2=t.x,n.y2=t.y)))},_endZoom:function(e){var t=this._zoomState;if(t&&a(e)){if(t.ready){var n=o(t.x1_0,t.y1_0,t.x2_0,t.y2_0),i=o(t.x1,t.y1,t.x2,t.y2);this._fire(B,{ratio:i/n,x:(t.x1_0+t.x2_0)/2,y:(t.y1_0+t.y2_0)/2})}this._zoomState=null}},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelHover():void(a(e)!==n||i._hoverTarget===e.target||i._hoverState&&i._hoverState.data===t||(i._cancelHover(),t&&(i._hoverState={data:t},i._fire(F,{data:t})),i._hoverTarget=e.target))},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire(z,{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelFocus():void(a(e)===n&&(i._focus.turnOff(),t&&i._focus.turnOn(t,u(e))))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){function t(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}var n=this;n._docHandlers={},n._rootHandlers={},n._rootHandlers[f.start]=n._docHandlers[f.start]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(r&&(e.preventDefault(),e.stopPropagation()),n._startClick(e,r),n._startDrag(e,r),n._startZoom(e,r),n._startHover(e,r),n._startFocus(e,r))},n._docHandlers[f.move]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(n._moveDrag(e,r),n._moveZoom(e,r),n._moveHover(e,r),n._moveFocus(e,r))},n._docHandlers[f.end]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(n._endClick(e,r),n._endDrag(e,r),n._endZoom(e,r))},n._rootHandlers[f.wheel]=function(e){if(n._cancelFocus(),n._isWheelEnabled){var i=t(e);i&&(e.preventDefault(),e.stopPropagation(),n._wheelZoom(e,i))}},n._wheelLock={dir:0}},_createProjectionHandlers:function(e){function t(){n._cancelFocus()}var n=this;e.on({center:t,zoom:t})},reset:function(){var e=this;e._clickState=null,e._endDrag(),e._cancelHover(),e._cancelFocus()},setOptions:function(e){var t=this;t.reset(),t._detachHandlers(),t._isTouchEnabled=!!(0,k.parseScalar)(e.touchEnabled,!0),t._isWheelEnabled=!!(0,k.parseScalar)(e.wheelEnabled,!0),t._attachHandlers()},_detachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"","-webkit-user-select":""}).off(M("MSHoldVisual",P)).off(M("contextmenu",P)),g.default.off(y.default.getDocument(),e._docHandlers),e._root.off(e._rootHandlers)},_attachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(M("MSHoldVisual",P),function(e){e.preventDefault()}).on(M("contextmenu",P),function(e){a(e)&&e.preventDefault(); }),g.default.on(y.default.getDocument(),e._docHandlers),e._root.on(e._rootHandlers)}};var Q=function(e){var t,n,i=this,r=null,o=null,a=!1,s=null;i.dispose=function(){clearTimeout(s),i.turnOn=i.turnOff=i.cancel=i.dispose=i=e=r=o=s=null},i.turnOn=function(i,l){function u(e){a=!e,e&&(r=o,clearTimeout(s),s=null)}i===o&&a||(a=!1,o=i,r?(t=l.x,n=l.y,o===r?(e(G,{data:o,x:t,y:n}),u(!0)):e(N,{data:o,x:t,y:n,done:u})):(t=l.x,n=l.y,e(N,{data:o,x:t,y:n,done:u})))},i.turnOff=function(){o=null,r&&!a&&(s=s||setTimeout(function(){s=null,e(j,{data:r}),r=null},K))},i.cancel=function(){clearTimeout(s),r&&e(j,{data:r}),r=o=s=null}};x.default.makeEventEmitter(r),t.Tracker=r},function(e,t,n){function i(){this._store={}}var r=n(25);i.prototype={constructor:i,dispose:function(){return this._store=null,this},_get:function(e,t){var n=this._store[e]||(this._store[e]={});return n[t]||(n[t]={callbacks:r()})},set:function(e,t,n){var i=this._get(e,t);return i.data=n,i.callbacks.fire(n),this},bind:function(e,t,n){var i=this._get(e,t);return i.callbacks.add(n),i.data&&n(i.data),this},unbind:function(e,t,n){var i=this._get(e,t);return i.callbacks.remove(n),this}},t.DataExchanger=i},function(e,t,n){function i(e,t,n){var i,r,o=t.length,a=[];for(i=0;i=r;--t)i[t].dispose(),i.splice(t,1);for(o.layoutControl.suspend(),t=0;tr?i/r>=2?(o.rect[0]-=i,o.right=!0):(o.rect[0]-=r,o.rect[2]+=r):r/i>=2?(o.rect[2]+=r,o.center=null):(o.rect[0]-=i,o.rect[2]+=i)):(a.items&&(a.rect[2]=(o.rect[0]+o.rect[2])/2),s.items&&(s.rect[0]=(o.rect[0]+o.rect[2])/2))})}function a(e,t){var n=!1;return o(e),g(e,function(e,i){i.items&&(n=s(i,t)||n)}),n}function s(e,t){var n=e.rect,i=n[2]-n[0],r=n[3]-n[1],o=0,a=0,s=0,l=n[2],u=n[3],c=n[0],d=n[1],_=[],m=!1;return g(e.items,function(h,g){if(g.width>i||g.height>r)return _.push(null),m=!0,t||!1;if(o+g.width>i&&(a+=s,o=s=0),a+g.height>r)return _.push(null),m=!0,t||!1;s=p(s,g.height);var v=e.horInversion?n[2]-g.width-o:n[0]+o,y=e.verInversion?n[3]-g.height-a:n[1]+a;o+=g.width,l=f(l,v),u=f(u,y),c=p(c,v+g.width),d=p(d,y+g.height),_.push([v,y])}),!t&&m||(o=0,e.right?o=n[2]-n[0]-c+l:e.center&&(o=h((n[2]-n[0]-c+l)/2)),g(e.items,function(e,t){var n=_[e];n?t.item.locate(n[0]+o,n[1]):t.item.resize(null)}),e.rect=[l,u,c,d],e.items=null),m}function l(e,t){var n=r(e,t);a(n)&&a(n,!0)}function u(){var e=this;e._items=[],e._suspended=0,e._updateLayout=function(){e._update()}}var c=n(13).inArray,d=n(3).each,h=Math.round,f=Math.min,p=Math.max,g=d,_=c,m={left:0,center:1,right:2},v={top:0,bottom:1};u.prototype={constructor:u,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0===--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(_(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,g(this._items,function(t,n){n.resize(e)}),l({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}},t.LayoutControl=u},function(e,t,n){function i(e){var t=le(e);return t=t in xe?xe[t]:xe.single,null!==t&&(t={state:{},single:t}),t}function r(e,t){return(e[t]||{}).name}function o(){}function a(e){this.raw=e}function s(e){this.raw=e}function l(e){return re(e.features)}function u(e){var t;return e&&(l(e)?t=s:1===e.length&&e[0]&&l(e[0])?(t=s,e=e[0]):re(e)&&(t=a)),new(t=t||o)(e)}function c(e){return e?l(e)?[e]:e:[]}function d(e,t,n){t.call(n,e)}function h(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]=0&&(i.color=i._colors[n.paletteIndex]),i}function O(e,t,n){de(e,function(e,i){var r=D(i.callback(t,i.field),i.partition);r>=0&&(n[e]=i.values[r])})}function D(e,t){var n=0,i=t.length-1,r=-1;if(t[n]<=e&&e<=t[i])if(e===t[i])r=i-1;else{for(;i-n>1;){var o=n+i>>1;e0){var s=r.createDiscretePalette(a.palette,a.paletteSize);for(i=0,n=[];i1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}function H(e){for(var t=e.length,n=e[t-1],i=0,r=0,o=0,a=1/0,s=-(1/0),l=1/0,u=-(1/0),c=0;cr&&(r=o.area,n=o)}return n?[n.center,[ee(n.area),ee(n.area)]]:[[],[]]}function j(e){var t,n,i=e.length,r=0;for(t=0;tr&&(r=o[2],n=o)}return n||[[],[]]}function W(e){var t=this,n=e.renderer;t._params=e,t._layers=[],t._layerByName={},t._rect=[0,0,0,0],t._clip=n.clipRect(),t._background=n.rect().attr({"class":"dxm-background"}).data(e.dataKey,{name:"background"}).append(n.root),t._container=n.g().attr({"class":"dxm-layers","clip-path":t._clip.id}).append(n.root).enableLinks(),t._subscribeToTracker(e.tracker,n,e.eventTrigger)}var U=n(4).noop,Y=n(0).extend,X=n(3).each,q=Number,K=String,$=Math.abs,Z=Math.round,Q=Math.min,J=Math.max,ee=Math.sqrt,te=n(86),ne=n(1).isFunction,ie=n(1).isDefined,re=Array.isArray,oe=n(11),ae=oe.parseScalar,se=oe.patchFontOptions,le=oe.normalizeEnum,ue=U,ce=Y,de=X,he=Array.prototype.concat,fe="area",pe="line",ge="marker",_e=0,me=1,ve=2,ye=[0,1,2,2],be=1,xe={none:null,single:-1,multiple:NaN};o.prototype.count=function(){return 0},a.prototype={constructor:a,count:function(){return this.raw.length},item:function(e){return this.raw[e]},geometry:function(e){return{coordinates:e.coordinates}},attributes:function(e){return e.attributes}},s.prototype={constructor:s,count:function(){return this.raw.features.length},item:function(e){return this.raw.features[e]},geometry:function(e){return e.geometry},attributes:function(e){return e.properties}};var Se={Point:ge,MultiPoint:pe,LineString:pe,MultiLineString:pe,Polygon:fe,MultiPolygon:fe},Ce=function(e,t){var n=le(e.type),i=le(e.elementType),r=ce({},we);if(t.count()>0){var o=t.geometry(t.item(0));n=ke[n]?n:_(o),ce(r,ke[n]),r.fullType=r.type=n,Te[n]&&ce(r,Te[n](o)),Ae[n]&&(i=Ae[n][i]?i:Ae[n]._default,ce(r,Ae[n][i]),r.elementType=i,r.fullType+=":"+i)}return r},we={setup:ue,reset:ue,arrange:ue,updateGrouping:ue,getDefaultColor:ue},ke={};ke[fe]={projectLabel:G,transform:k,transformLabel:T,draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:ue,getLabelOffset:function(e){return h(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=g(e.borderWidth,null),r=g(e.opacity,null);return{root:[{"class":"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:r},{"class":"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":g(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:g(e.hoveredOpacity,r)},{"class":"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":g(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:g(e.selectedOpacity,r)}]}},setState:function(e,t,n){m(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){Oe(e)},getDefaultColor:ue},ke[pe]={projectLabel:j,transform:k,transformLabel:A,draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:ue,getLabelOffset:function(e){return f(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=g(e.borderWidth,null),i=g(e.opacity,null);return{root:[{"class":"dxm-line",stroke:t,"stroke-width":n,opacity:i},{"class":"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":g(e.hoveredBorderWidth,n),opacity:g(e.hoveredOpacity,i)},{"class":"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":g(e.selectedBorderWidth,n),opacity:g(e.selectedOpacity,i)}]}},setState:function(e,t,n){m(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){Oe(e)},getDefaultColor:ue},ke[ge]={project:v,transform:C,draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:ue,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[Z((e.size[0]+J(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{"class":"dxm-marker"},{"class":"dxm-marker dxm-marker-hovered"},{"class":"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){m(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){Oe(e),De(e)},getDefaultColor:function(e,t){return e.params.themeManager.getAccentColor(t)}};var Te={};Te[fe]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?S:x}},Te[pe]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?x:b}};var Ae={};Ae[ge]={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){t.dot.attr({filter:r.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?q(t.size):0,i=n,r=n+(t.selectedStep>0?q(t.selectedStep):0),o=i+(t.backStep>0?q(t.backStep):0),a=r+(t.backStep>0?q(t.backStep):0),s=t.color||null,l=t.borderColor||null,u=g(t.borderWidth,null),c=g(t.opacity,null),d=t.backColor||null,h=g(t.backOpacity,null);e.dot=[{r:n/2,stroke:l,"stroke-width":u,fill:s,opacity:c},{r:i/2,stroke:t.hoveredBorderColor||l,"stroke-width":g(t.hoveredBorderWidth,u),fill:t.hoveredColor||s,opacity:g(t.hoveredOpacity,c)},{r:r/2,stroke:t.selectedBorderColor||l,"stroke-width":g(t.selectedBorderWidth,u),fill:t.selectedColor||s,opacity:g(t.selectedOpacity,c)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:o/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:a/2,stroke:"none","stroke-width":0,fill:d,opacity:h}]},_setState:function(e,t,n){m(e,t,n,"dot"),m(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){t.bubble.attr({r:r.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,r=g(t.borderWidth,null),o=g(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":r,fill:n,opacity:o},{stroke:t.hoveredBorderColor||i,"stroke-width":g(t.hoveredBorderWidth,r),fill:t.hoveredColor||t.color,opacity:g(t.hoveredOpacity,o)},{stroke:t.selectedBorderColor||i,"stroke-width":g(t.selectedBorderWidth,r),fill:t.selectedColor||t.color,opacity:g(t.selectedOpacity,o)}]},_setState:function(e,t,n){m(e,t,n,"bubble")},arrange:function(e,t){var n,i=[],r=i.length=t.length,o=e.settings,a=o.dataField,s=o.minSize>0?q(o.minSize):0,l=o.maxSize>s?q(o.maxSize):s;if(!o.sizeGroups){for(n=0;n0?q(r.size):0)/2,h=90,f=h,g=!1;s=o.reduce(function(e,t){return e+(t||0)},0),0===s&&(g=!0,s=360/o.length),o.forEach(function(e,t){h=f,f+=g?s:(e||0)/s*360,u.arc(0,0,0,d,h,f).attr({"stroke-linejoin":"round",fill:a[t]}).data(c,n).append(l)}),t.border.attr({r:d})},_getStyles:function(e,t){var n=g(t.opacity,null),i=t.borderColor||null,r=g(t.borderWidth,null);e.pie=[{opacity:n},{opacity:g(t.hoveredOpacity,n)},{opacity:g(t.selectedOpacity,n)}],e.border=[{stroke:i,"stroke-width":r},{stroke:t.hoveredBorderColor||i,"stroke-width":g(t.hoveredBorderWidth,r)},{stroke:t.selectedBorderColor||i,"stroke-width":g(t.selectedBorderWidth,r)}]},_setState:function(e,t,n){m(e,t,n,"pie"),m(e,t,n,"border")},arrange:function(e,t){var n,i,r=t.length,o=e.settings.dataField,a=0;for(n=0;na&&(a=i.length);if(a>0){var s=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0,extensionMode:"alternate"});i=s.generateColors(a),e.settings._colors=i,e.grouping.color={callback:ue,field:"",partition:[],values:[]},e.params.dataExchanger.set(e.name,"color",{partition:[],values:i})}}},image:{_draw:function(e,t,n){t.image=e.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i){t.image.attr({href:p(i,e.settings.dataField)})},_getStyles:function(e,t){var n=t.size>0?q(t.size):0,i=n+(t.hoveredStep>0?q(t.hoveredStep):0),r=n+(t.selectedStep>0?q(t.selectedStep):0),o=g(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:o},{x:-i/2,y:-i/2,width:i,height:i,opacity:g(t.hoveredOpacity,o)},{x:-r/2,y:-r/2,width:r,height:r,opacity:g(t.selectedOpacity,o)}]},_setState:function(e,t,n){m(e,t,n,"image")}}};var Ee=function(e,t,n,i,r){if(i&&t&&t.length>1){var o=r(t.length-1);e.grouping[n]={callback:ne(i)?i:L,field:i,partition:t,values:o},e.params.dataExchanger.set(e.name,n,{partition:t,values:o,defaultColor:e.settings.color})}},Oe=function(e){Ee(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,function(t){for(var n=e.params.themeManager.createDiscretePalette(e.settings.palette,t),i=[],r=0;r0?q(n.minSize):0,i=n.maxSize>=t?q(n.maxSize):0,r=0,o=[];if(e>1)for(r=0;r0&&(t._params.notifyDirty(),t._update(void 0!==e.type&&e.type!==t._context.str.type||void 0!==e.elementType&&e.elementType!==t._context.str.elementType)),t._transformCore()},_update:function(e){var t=this,n=t._context;e&&(n.str.reset(n),n.root.clear(),n.labelRoot&&n.labelRoot.clear(),t._params.tracker.reset(),t._destroyHandles(),n.str=Ce(t._options,t._data),n.str.setup(n),t.proxy.type=n.str.type,t.proxy.elementType=n.str.elementType),n.settings=P(n,t._options),n.hasSeparateLabel=!(!n.settings.label.enabled||!n.str.hasLabelsGroup),n.hover=!!ae(n.settings.hoverEnabled,!0),n.selection&&de(n.selection.state,function(e,t){t&&t.resetSelected()}),n.selection=i(n.settings.selectionMode),n.hasSeparateLabel?n.labelRoot||(n.labelRoot=n.renderer.g().attr({"class":"dxm-layer-labels"}).linkOn(t._container,{name:n.name+"-labels",after:n.name}).linkAppend(),t._transformCore()):n.labelRoot&&(n.labelRoot.linkRemove().linkOff(),n.labelRoot=null),e&&t._createHandles(),R(n),n.str.arrange(n,t._handles),n.str.updateGrouping(n),t._updateHandles(),t._params.notifyReady()},_destroyHandles:function(){var e,t=this._handles,n=t.length;for(e=0;es?(s=n,u=[i]):n===s&&u.push(i);return s===a&&(l=u=[]),{minIndexes:l,maxIndexes:u}}function r(e,t,n,i){return T(e,function(e,r){var o,a,s=null;return void 0!==e&&(s={},o=w(e),s[t]=o?D(r):e[t],a=o?e:e[n],s[n]=null===a?i?void 0:a:O(a),s=void 0!==s[t]&&void 0!==s[n]?s:null),s})}function o(e,t,n,i){var r=-1,o=0,a=1,s=1e-4;return T(e,function(e){var l={};return l[t]=e[t],b(e[n]-i)i?l[n]=a:l[n]=r,l})}function a(e,t,n,i){return n!==i.first&&n!==i.last||(e=t.firstLastColor),(i.min||[]).indexOf(n)>=0&&(e=t.minColor),(i.max||[]).indexOf(n)>=0&&(e=t.maxColor),e}function s(e,t){return function(){var n=a(void 0,t,this.index,e);return n?{visible:!0,border:{color:n}}:{}}}function l(e,t,n){return function(){var i=this.index,r="winloss"===t.type,o=r?t.winlossThreshold:0,s=r?n[i][t.valueField]:this.value,l=r?t.winColor:t.barPositiveColor,u=r?t.lossColor:t.barNegativeColor;return{color:a(s>=o?l:u,t,i,e)}}}var u=n(420),c=n(269),d=n(271),h=1,f=50,p=4,g=250,_=30,m=2,v={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},y=Math,b=y.abs,x=y.round,S=y.max,C=y.min,w=isFinite,k=n(11),T=k.map,A=k.normalizeEnum,E=n(1).isDefined,O=Number,D=String,M=u.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:g,height:_},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){var e=this;e._series&&e._series.dispose(),e._series=e._seriesGroup=e._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var e=this._allOptions,t=this._canvas,n=e.pointSize&&Math.ceil(e.pointSize/2)+m,i=e.type;return"bar"!==i&&"winloss"!==i&&(e.showFirstLast||e.showMinMax)?{width:t.width,height:t.height,left:t.left+n,right:t.right+n,top:t.top+n,bottom:t.bottom+n}:t},_prepareOptions:function(){var e=this;e._allOptions=e.callBase(),e._allOptions.type=A(e._allOptions.type),v[e._allOptions.type]||(e._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({"class":"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({"class":"dxsl-series-labels"})},_createSeries:function(){this._series=new d.Series({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis },{widgetType:"chart",type:"line"})},_updateSeries:function(){var e=this,t=e._series;e._prepareDataSource();var n=e._prepareSeriesOptions();t.updateOptions(n);var i={groups:[{series:[t]}]};i.argumentOptions={type:"bar"===n.type?"discrete":void 0},e._simpleDataSource=c.validateData(e._simpleDataSource,i,e._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[t.getArgumentField()],n.customizePoint=e._getCustomizeFunction(),t.updateData(e._simpleDataSource),t.createPoints(),e._groupsDataCategories=i.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var e=this,t=e._allOptions,n=t.argumentField,i=t.valueField,a=e._dataSourceItems()||[],s=r(a,n,i,e.option("ignoreEmptyPoints"));"winloss"===t.type?(e._winlossDataSource=s,e._simpleDataSource=o(s,n,i,t.winlossThreshold)):e._simpleDataSource=s},_prepareSeriesOptions:function(){var e=this,t=e._allOptions,n="winloss"===t.type?"bar":t.type;return{visible:!0,argumentField:t.argumentField,valueField:t.valueField,color:t.lineColor,width:t.lineWidth,widgetType:"chart",type:n,opacity:n.indexOf("area")!==-1?e._allOptions.areaOpacity:void 0,point:{size:t.pointSize,symbol:t.pointSymbol,border:{visible:!0,width:m},color:t.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:t.lineColor,width:t.lineWidth,visible:"bar"!==n}}},_getCustomizeFunction:function(){var e,t=this,n=t._allOptions,i=t._winlossDataSource||t._simpleDataSource,r=t._getExtremumPointsIndexes(i);return e="winloss"===n.type||"bar"===n.type?l(r,n,t._winlossDataSource):s(r,n)},_getExtremumPointsIndexes:function(e){var t=this,n=t._allOptions,r=e.length-1,o={};return t._minMaxIndexes=i(e,n.valueField),n.showFirstLast&&(o.first=0,o.last=r),n.showMinMax&&(o.min=t._minMaxIndexes.minIndexes,o.max=t._minMaxIndexes.maxIndexes),o},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var e,t=this,n=t._series,i=n.type,r="bar"===i,o="winloss"===i,a=.15,s=.1,l=1,u=-1,c=n.getRangeData(),d=t._allOptions.minValue,h=E(d)&&w(d),f=t._allOptions.maxValue,p=E(f)&&w(f),g=(c.val.max-c.val.min)*a;r||o||"area"===i?(0!==c.val.min&&(c.val.min-=g),0!==c.val.max&&(c.val.max+=g)):(c.val.min-=g,c.val.max+=g),(h||p)&&(h&&p?(c.val.minVisible=C(d,f),c.val.maxVisible=S(d,f)):(c.val.minVisible=h?O(d):void 0,c.val.maxVisible=p?O(f):void 0),o&&(c.val.minVisible=h?S(c.val.minVisible,u):void 0,c.val.maxVisible=p?C(c.val.maxVisible,l):void 0)),n.getPoints().length>1&&r&&(e=(c.arg.max-c.arg.min)*s,c.arg.min=c.arg.min-e,c.arg.max=c.arg.max+e),c.arg.categories=t._groupsDataCategories,t._ranges=c},_getBarWidth:function(e){var t=this,n=t._canvas,i=e*p,r=n.width-n.left-n.right-i,o=x(r/e);return of&&(o=f),o},_correctPoints:function(){var e,t,n=this,i=n._allOptions.type,r=n._series.getPoints(),o=r.length;if("bar"===i||"winloss"===i)for(e=n._getBarWidth(o),t=0;t0&&(e._correctPoints(),e._series.draw(),e._seriesGroup.append(e._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._tooltip;if(0===n.length)return{};var r=e._minMaxIndexes,o=t.valueField,a=n[0][o],s=n[n.length-1][o],l=E(r.minIndexes[0])?n[r.minIndexes[0]][o]:a,u=E(r.maxIndexes[0])?n[r.maxIndexes[0]][o]:a,c=i.formatValue(a),d=i.formatValue(s),h=i.formatValue(l),f=i.formatValue(u),p={firstValue:c,lastValue:d,minValue:h,maxValue:f,originalFirstValue:a,originalLastValue:s,originalMinValue:l,originalMaxValue:u,valueText:["Start:",c,"End:",d,"Min:",h,"Max:",f]};return"winloss"===t.type&&(p.originalThresholdValue=t.winlossThreshold,p.thresholdValue=i.formatValue(t.winlossThreshold)),p}});T(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],function(e){M.prototype._optionChangesMap[e]="OPTIONS"}),n(9)("dxSparkline",M),e.exports=M,M.addPlugin(n(147).plugin)},function(e,t,n){e.exports=n(829)},function(e,t,n){var i=n(3).each,r=n(420),o=.02,a=.98,s=.1,l=.9,u=300,c=30,d=1,h=2,f=Number,p=isFinite,g=r.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:u,height:c,left:d,right:d,top:h,bottom:h},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var e=this._renderer;this._zeroLevelPath=e.path(void 0,"line").attr({"class":"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=e.path(void 0,"line").attr({"class":"dxb-target","stroke-linecap":"square"}),this._barValuePath=e.path(void 0,"line").attr({"class":"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var e,t,n,i,r,o,a=this;a._allOptions=e=a.callBase();var s=void 0===a._allOptions.value,l=void 0===a._allOptions.target;a._tooltipEnabled=!(s&&l),s&&(a._allOptions.value=0),l&&(a._allOptions.target=0),e.value=r=f(e.value),e.target=o=f(e.target),void 0===a._allOptions.startScaleValue&&(a._allOptions.startScaleValue=or?o:r),e.startScaleValue=t=f(e.startScaleValue),e.endScaleValue=n=f(e.endScaleValue),n0?(e=a<=0?0:a,t=c>=u?u:c=0?0:u,t=ce?e:c),e=r.translate(e),t=r.translate(t),{points:[e,h,t,h,t,d,e,d],fill:i.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var e=this,t=e._valueAxis.getTranslator(),n=e._argumentAxis.getTranslator().translate(0);return{points:[n,t.translate(o),n,t.translate(a)],stroke:e._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var e=this,t=e._allOptions;0>t.endScaleValue||0t.endScaleValue||n1;)n=i+r>>1,e=0},t._selectionList=[]}),n(73).addChange({code:"SELECTION_MODE",handler:function(){var e=this,t=d(e._getOption("selectionMode",!0)),n=e._selectionList,i="none"===t?f:"multiple"===t?g:p;if(i===p&&n.length>1){var r=n.pop();e.clearSelection(),n.push(r)}else i===f&&e.clearSelection();e._selectionMode=i},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),l(a,"_applyTilesAppearance",function(){this._selectionList.length&&i(this._nodes,this._selectionList)});var m=[r,o];a._applySelectionState=function(e,t){var n=this._nodes[e];n.setState(_,t),this._eventTrigger("selectionChanged",{node:n.proxy})},a._selectNode=function(e,t){var n=this;if(n._selectionMode!==f){n._context.suspend();var i=n._selectionList,r=h(e,i);if(t&&r===-1){if(n._selectionMode===p&&i.length){var o=i.pop();n._applySelectionState(o,!1)}i.push(e),n._applySelectionState(e,!0)}else!t&&r>=0&&(i.splice(r,1),n._applySelectionState(e,!1));n._context.resume()}},a.clearSelection=function(){var e,t=this,n=t._selectionList,i=n.length;if(t._selectionMode!==f){for(t._context.suspend(),e=0;eh?[l,s,o-l,s,p,h,p,a,f,a,f,h]:[f,s,p,s,p,a,f,a]})},normalizeValues:function(e){var t=e.reduce(function(e,t){return e+t.value},0);return e.map(function(e){return e.value/t})}}},function(e,t,n){function i(e,t,n){var i=t.border,r=n.border,o=a(i.visible)?i.visible:r.visible,s=a(i.width)?i.width:r.width;return{fill:e,hatching:t.hatching,stroke:i.color||r.color,"stroke-width":o?s:0}}function r(e,t){var n=this,r=t.data;n.code=0,n.widget=e,n.figure=t.figure,n.argument=r.argument,n.value=r.value,n.data=r.dataItem,n.percent=t.percent,n.id=t.id,n.color=t.color,n.states={normal:i(t.color,t.itemOptions,t.itemOptions),hover:i(t.color,t.itemOptions.hoverStyle,t.itemOptions),selection:i(t.color,t.itemOptions.selectionStyle,t.itemOptions)}}var o=["normal","hover","selection","selection"],a=n(1).isDefined;r.prototype={getState:function(){return o[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(e,t){t?this.code|=e:this.code&=~e,this.widget._applyTilesAppearance()},select:function(e){var t=this.widget._getOption("selectionMode",!0);"none"!==t&&e!==this.isSelected()&&(this.widget._suspend(),e&&"multiple"!==t&&this.widget.clearSelection(),this.setState(2,e),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(e){this.widget._showTooltip(this.id,e)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}},e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return s(e)||a(e,t)||c(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}function s(e){if(Array.isArray(e))return e}function l(e){return h(e)||d(e)||c(e)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function d(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nn[2]&&(e.x=n[2]-t.width),e.yn[3]&&(e.y=n[3]-t.height),e}function k(e,t,n){e.reduce(function(e,t,i,r){var o=r[i+1];if(e>0){var a=t.getBoundingRect(),s=o?o.getBoundingRect().y+o.getBoundingRect().height:n,l=a.y-s,u=Math.min(l,e);r.slice(0,i+1).forEach(function(e){var t=e.getBoundingRect();e.shift(t.x,t.y-u)}),e-=u}return e},t)}var T=n(272),A=i(T),E=n(11),O=n(0),D=n(4),M="outside",I="inside",P=5,L=20,R=4,V=1;t.plugin={name:"lables",init:D.noop,dispose:D.noop,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({"class":this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var e=this._getOption("label"),t=this._getOption("adaptiveLayout"),n=this._rect,i=0,r=n[2]-n[0];if(this._labelRect=n.slice(),!this._labels.length||!g(e.position))return void((0,E.normalizeEnum)("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach(function(e){return!e.isVisible()&&e.draw(!0)}));var o=this._labels.map(function(e){return e.resetEllipsis(),e.getBoundingRect().width}).reduce(function(e,t){return Math.max(e,t)},0);return i=o+e.horizontalOffset+p(e.position),!t.keepLabels&&r-i0?i:0),this._labels.forEach(function(e){e.draw(!0)}),void("left"===e.horizontalAlignment?n[0]+=i:n[2]-=i))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var e,t=this,n=t._getOption("label"),i=y,r=t._getOption("inverted",!0);g(n.position)&&((0,E.normalizeEnum)(n.position)===M?i="left"===n.horizontalAlignment?v:m:(e=this._defaultLabelTextAlignment(),i="left"===n.horizontalAlignment?x(this._labelRect,this._rect,e):b(this._labelRect,this._rect,e))),t._labels.forEach(function(e,o){var a=t._items[o],s=a.getNormalStyle()["stroke-width"],l=r?s/2:-s/2,u=l?a.coords.map(function(e,t){return 1===t||3===t?e-l:2===t?e-s:0===t?e+s:e}):a.coords;if(!n.showForZeroValues&&0===a.value)return void e.draw(!1);g(n.position)&&t._correctLabelWidth(e,a.coords,n);var c=e.getBoundingRect(),d=w(i(u,c,n,r),c,t._labelRect);e.setFigureToDrawConnector(u),e.shift(d.x,d.y)}),t._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping:function(){var e=this,t=(0,E.normalizeEnum)(e._getOption("resolveLabelOverlapping",!0)),n=this._getOption("inverted",!0)?e._labels.slice().reverse():e._labels;if("hide"===t)n.reduce(function(e,t){return t.getBoundingRect().y0&&(u+=d-l),d+c.height>i?u&&u>d+c.height-i?(k(a.slice(0,o).reverse(),d+c.height-i,e._labelRect[1]),u-=d+c.height-i,n.shift(c.x,d-(d+c.height-i)),l=d-(d+c.height-i)+c.height):n.hide():l=d+c.height,[l,u]},[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(e,t,n){var i="left"===n.horizontalAlignment,r=i?this._labelRect[0]:t[2],o=i?t[0]:this._labelRect[2],a=o-r;e.getBoundingRect().width>a&&e.fit(a)},_createLabels:function(){var e=this,t=e._getOption("label"),n=S(t,e._getOption("inverted",!0));this._labelsGroup.clear(),t.visible&&(this._labels=e._items.map(function(i){var r=new A.default.Label({renderer:e._renderer,labelsGroup:e._labelsGroup,strategy:n});return r.setOptions(C(t,i.color,e._defaultLabelTextAlignment())),r.setData({item:i,value:i.value,percent:i.percent}),r.draw(!0),r}),this._labels.length&&g(t.position)&&this._requestChange(["LAYOUT"]))}},customize:function(e){e.prototype._proxyData.push(function(e,t){var n,i=this;return i._labels.forEach(function(r,o){var a=r.getBoundingRect();if(e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height){var s=g(i._getOption("label").position)?"outside":"inside";return n={id:o,type:s+"-label"},!0}}),n}),["label","resolveLabelOverlapping"].forEach(function(t){e.addChange({code:t.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:t})})},fontFields:["label.font"]}},function(e,t,n){var i=n(427).prototype,r=n(278).Tracker,o="__funnel_data_",a=n(1).isDefined,s=0;i._eventsMap.onItemClick={name:"itemClick"},i._eventsMap.onLegendClick={name:"legendClick"},t.plugin={name:"tracker",init:function(){var e=this,t=o+s++,n=function(t){var n=e._renderer.getRootOffset(),i=Math.floor(t.pageX-n.left),r=Math.floor(t.pageY-n.top);return e._hitTestTargets(i,r)};e._tracker=new r({widget:e,root:e._renderer.root,getData:function(e,i){var r=e.target,o=r[t];if(a(o))return o;var s=n(e);return i&&s&&"inside-label"!==s.type?void 0:s&&s.id},getNode:function(t){return e._items[t]},click:function(t){var i=n(t.event),r=i&&i.type,o="legend"===r?"legendClick":"itemClick";e._eventTrigger(o,{item:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var e=this._dataKey;this._items.forEach(function(t,n){t.element.data(e,n)})}}}},function(e,t,n){function i(e,t){var n=t.getRootOffset();return[(e[0]+e[2])/2+n.left,(e[1]+e[5])/2+n.top]}var r=n(4).noop;t.plugin={name:"funnel-tooltip",init:r,dispose:r,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(e,t){var n=t||e.coords&&i(e.coords,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},_showTooltip:function(e,t){var n=this,i=n._tooltip,r=n._items[e],o=n._tooltipIndex===e||i.show({value:r.value,valueText:i.formatValue(r.value),percentText:i.formatValue(r.percent,"percent"),percent:r.percent,item:r},{x:0,y:0,offset:0},{item:r});o?n._moveTooltip(r,t):i.hide(),n._tooltipIndex=o?e:-1}},customize:function(e){e.addPlugin(n(108).plugin)}}},function(e,t,n){var i=n(428),r=n(854).setTooltipCustomOptions;i.addPlugin(n(96).plugin),i.addPlugin(n(106).plugin),i.addPlugin(n(855).plugin),i.addPlugin(n(122).plugin),i.addPlugin(n(108).plugin),r(i),e.exports=i},function(e,t,n){function i(e,t,n){var i=t.border,r=n.border,o=s(i.visible)?i.visible:r.visible,a=s(i.width)?i.width:r.width,l=s(i.opacity)?i.opacity:s(r.opacity)?r.opacity:1,u=s(t.opacity)?t.opacity:s(n.opacity)?n.opacity:1;return{fill:t.color||e,"stroke-width":o?a:0,stroke:t.border.color||n.border.color,"stroke-opacity":l,opacity:u,hatching:t.hatching}}function r(e,t,i){var r=n(11).patchFontOptions;e.useNodeColors&&(e.font.color=i.color);var o=!!s(e.border.visible)&&e.border.visible,a=s(e.border.width)?e.border.width:0,l=s(e.border.color)?e.border.color:e.font.color,u=s(e.border.opacity)?e.border.opacity:1,c={filter:t};return o&&a&&(c.stroke=l,c["stroke-width"]=o?a:0,c["stroke-opacity"]=u),{attr:c,css:r(e.font)}}function o(e,t){var n=this,r=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.options=t.options,n.rect=t.rect,n.title=t.rect._name,n.coords={x:t.rect.x+t.rect.width/2+r.left,y:t.rect.y+t.rect.height/2+r.top},n.id=t.id,n.linksIn=t.linksIn,n.linksOut=t.linksOut,this.states={normal:i(this.color,n.options,n.options),hover:i(this.color,n.options.hoverStyle,n.options)}}var a=["normal","hover"],s=n(1).isDefined;o.prototype={compileAttrs:function(){return i(this.color,this.options)},getState:function(){return a[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(e,t){var n=this;t?this.code|=e:this.code&=~e,t?this.linksIn.concat(this.linksOut).forEach(function(e){n.widget._links[e.index].setAdjacentNodeHover(!0)}):(this.widget._links.forEach(function(e){e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{title:this.title,weightIn:this.linksIn.reduce(function(e,t){return e+t.weight},0),weightOut:this.linksOut.reduce(function(e,t){return e+t.weight},0)}},"undefined"!=typeof e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(e,t){return r(e,t,this)}},e.exports=o},function(e,t,n){function i(e,t,n,i){var r=t.border,a=n.border,l=s(r.visible)?r.visible:a.visible,u=s(r.width)?r.width:a.width,c=s(r.opacity)?r.opacity:s(a.opacity)?a.opacity:1,d=s(t.opacity)?t.opacity:s(n.opacity)?n.opacity:1,h=t.color||e;return n.colorMode===o.COLOR_MODE_TARGET||n.colorMode===o.COLOR_MODE_SOURCE?h=e:n.colorMode===o.COLOR_MODE_GRADIENT&&i&&s(i.id)&&(h=i.id),{fill:h,"stroke-width":l?u:0,stroke:t.border.color||n.border.color,"stroke-opacity":c,opacity:d,hatching:t.hatching}}function r(e,t){var n=this,r=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.connection=t.connection,n.d=t.d,n.options=t.options,n.boundingRect=t.boundingRect,n.coords={x:t.boundingRect.x+t.boundingRect.width/2+r.left,y:t.boundingRect.y+t.boundingRect.height/2+r.top},n.states={normal:i(n.color,n.options,n.options,t.gradient),adjacentNodeHover:i(n.color,{opacity:0,border:{}},n.options,t.gradient),hover:i(n.color,{opacity:0,border:{}},n.options,t.gradient)},n.overlayStates={normal:i(n.color,{opacity:0,border:{}},n.options),adjacentNodeHover:i(n.color,n.options.hoverStyle,n.options),hover:i(n.color,n.options.hoverStyle,n.options)}}var o=n(429),a=["normal","adjacentNodeHover","hover"],s=n(1).isDefined;r.prototype={getState:function(){return a[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(e,t){t?this.code=e:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(2,e),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isAdjacentNodeHovered()&&(this.widget._suspend(),this.setState(1,e),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},"undefined"!=typeof e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}},e.exports=r},function(e,t,n){var i=.3,r="center",o="bottom",a=r,s=n(430),l=n(853),u={_weightPerPixel:null,_getCascadeIdx:function(e,t){var n=t.filter(function(t){return t.name===e})[0];return n.outgoing.length>0?n.lp:s.routines.maxOfArray(t.map(function(e){return e.lp}))},_getInWeightForNode:function(e,t){var n=0;return t.forEach(function(t){t[1]===e&&(n+=t[2])}),n},_getOutWeightForNode:function(e,t){var n=0;return t.forEach(function(t){t[0]===e&&(n+=t[2])}),n},_computeCascades:function(e){for(var t=this,n=s.struct.computeLongestPaths(e),i=s.routines.maxOfArray(n.map(function(e){return e.lp})),r=[],o=0;os.height?s.height-r[e[0]].out:a,d=r[e[1]].in+a>n.height?n.height-r[e[1]].in:a;o.push({from:{x:s.x,y:s.y+l,width:s.width,height:c,node:s,weight:e[2]},to:{x:n.x,y:n.y+u,width:n.width,height:d,node:n}}),r[e[0]].out+=a,r[e[1]].in+=a})})}),o.forEach(function(e){var t={d:i._spline(e.from,e.to),_boundingRect:{x:e.from.x+e.from.width,y:Math.min(e.from.y,e.to.y),width:e.to.x-(e.from.x+e.from.width),height:Math.max(e.from.x+e.from.height,e.to.y+e.to.height)-Math.min(e.from.y,e.to.y)},_weight:e.from.weight,_from:e.from.node,_to:e.to.node};a.push(t)}),this._fitAllNodesHeight(t,o),a},_fitNodeHeight:function(e,t,n){var i=this._findRectByName(t,e),r=0,o=0;n.forEach(function(t){t.from.node._name===e&&(o+=t.from.height),t.to.node._name===e&&(r+=t.to.height)}),i.height=Math.max(r,o)},_fitAllNodesHeight:function(e,t){for(var n=0;ne.x+e.width||t.x+t.width=e.y+e.height||t.y+t.height<=e.y)}};e.exports=u},function(e,t,n){var i=n(430),r={validate:function(e,t){var n=null;return this._hasCycle(e)&&(n="E2006",t("E2006")),n},_hasCycle:function(e){return i.struct.hasCycle(e)}};e.exports=r},function(e,t,n){function i(e){e.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(r({},t,{customizeTooltip:function(e){return"node"===e.type?l(t.customizeNodeTooltip,s)(e.info):"link"===e.type?l(t.customizeLinkTooltip,a)(e.info):{}},enabled:t.enabled}))},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}}Object.defineProperty(t,"__esModule",{value:!0}),t.setTooltipCustomOptions=i;var r=n(0).extend,o=n(1).isFunction,a=function(e){return{html:"".concat(e.source," > ").concat(e.target,"
Weight: ").concat(e.weight)}},s=function(e){return{html:"".concat(e.title,"
Incoming weight: ").concat(e.weightIn,"
Outgoing weight: ").concat(e.weightOut)}},l=function(e,t){return function(n){var i=o(e)?e.call(n,n):{},a=Object.prototype.hasOwnProperty.bind(i);return a("html")||a("text")||(i=r(i,t.call(n,n))),i}}},function(e,t,n){var i=n(428).prototype,r=n(278).Tracker,o="__sankey_data_",a=0;i._eventsMap.onNodeClick={name:"nodeClick"},i._eventsMap.onLinkClick={name:"linkClick"},t.plugin={name:"tracker",init:function(){var e=this,t=o+a++;e._tracker=new r({widget:e,root:e._renderer.root,getData:function(e){var n=e.target;return n[t]},getNode:function(t){return t