devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
10 lines • 1.27 MB
JavaScript
/*!
* DevExtreme (dx.viz.js)
* Version: 18.2.18
* 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=829)}([function(e,t,n){var i=n(1).isPlainObject,r=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(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<arguments.length;n++){var o=arguments[n];if(null!=o)for(var a in o){var s,l=t[a],u=o[a],c=!1;"__proto__"!==a&&t!==u&&(r&&u&&(i(u)||(c=Array.isArray(u)))?(s=c?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[a]=e(r,s,u)):void 0!==u&&(t[a]=u))}}return t};t.extend=o,t.extendFromObject=r},function(e,t,n){var 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},r={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},o=function(e){var t=Object.prototype.toString.call(e);return"object"===("undefined"==typeof e?"undefined":i(e))?r[t]||"object":"undefined"==typeof e?"undefined":i(e)},a=function(e){return"boolean"==typeof e},s=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===o(e)},u=function(e){return null!==e&&void 0!==e},c=function(e){return"function"==typeof e},d=function(e){return"string"==typeof e},h=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},f=function(e){return"object"===o(e)},p=function(e){var t;for(t in e)return!1;return!0},g=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)},_=function(e){return["object","array","function"].indexOf(o(e))===-1},m=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},y=function(e){return e&&c(e.then)},b=function(e){return e&&c(e.done)&&c(e.fail)};t.isBoolean=a,t.isExponential=s,t.isDate=l,t.isDefined=u,t.isFunction=c,t.isString=d,t.isNumeric=h,t.isObject=f,t.isEmptyObject=p,t.isPlainObject=g,t.isPrimitive=_,t.isWindow=m,t.isRenderer=v,t.isPromise=y,t.isDeferred=b,t.type=o},function(e,t,n){var i=n(224);e.exports=i.get()},function(e,t,n){var i=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n},r=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&t.call(e[n],n,e[n])!==!1;n++);else for(var i in e)if(t.call(e[i],i,e[i])===!1)break;return e}},o=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;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}}var 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},o=n(23),a=i(o),s=n(40),l=i(s),u=n(7),c=n(3),d=n(22),h=n(1),f=function(e,t){return(0,h.isDefined)(e)?e:t},p=function(e,t){var n=new u.Deferred,i=t||this,r=void 0,o={promise:n.promise(),abort:function(){clearTimeout(r),n.rejectWith(i)}},a=function(){var t=e.call(i);t&&t.done&&(0,h.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)};return r=(arguments[2]||setTimeout)(a,"number"==typeof t?t:0),o},g=[],_=[],m=[],v=void 0,y=function(e,t,n){if(v&&v!==e)return g.push(t),_.push(e),n=n||new u.Deferred,m.push(n),n;var i=v,r=m.length;v=e;var o=t();return o||(m.length>r?o=u.when.apply(this,m.slice(r)):n&&n.resolve()),v=i,n&&o&&o.done&&o.done(n.resolve).fail(n.reject),!v&&g.length&&("render"===_.shift()?b:x)(g.shift(),m.shift()),o||(0,u.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)})}},w=function(e){return function(){var t=this;return y("update",function(){return e.call(t)})}},C=function(e,t,n){var i=[],r=0;return(0,c.each)(t,function(t,o){var a=0,s=n?n(o):o;(0,c.each)(e,function(e,t){var n=s[e];if(void 0!==n)return k(n,t)?void a++:(a=-1,!1)}),a<r||(a>r&&(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,c.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},T=function(e){switch("undefined"==typeof e?"undefined":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}},E=function(e){var t=(0,h.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,c.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},A=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<e.length;i++)if(!P(e[i],t[i],n+1))return!1;return!0},I=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!P(e[i],t[i],n+1))return!1;for(var r in t)if(!(r in e))return!1;return!0},D=function(e,t){var n=T(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),r=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(r)||(r=i),{h:i,v:r}},M=3,P=function(e,t,n){return n=n||0,e=(0,d.toComparable)(e,!0),t=(0,d.toComparable)(t,!0),e===t||n>=M||((0,h.isObject)(e)&&(0,h.isObject)(t)?I(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&O(e,t,n))},V=function(e){if(e instanceof l.default)return e.toString();if((0,h.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,"\\$&")},L=function(e){var t=(0,a.default)().serverDecimalSeparator;return(0,h.isDefined)(e)&&(e=e.toString().replace(".",t)),e},B=function(){},F=function(){return(new u.Deferred).resolve().promise()},z=function(e,t,n){for(var i=[],r=void 0,o=!n,a=0;a<e.length;a++)r=!!t(e[a],a),r===o&&i.push(e[a]);return i};t.ensureDefined=f,t.executeAsync=p,t.deferRender=b,t.deferRenderer=S,t.deferUpdate=x,t.deferUpdater=w,t.pairToObject=D,t.splitPair=T,t.findBestMatches=C,t.normalizeKey=E,t.denormalizeKey=A,t.equalByValue=P,t.getKeyHash=V,t.escapeRegExp=R,t.applyServerDecimalSeparator=L,t.noop=B,t.asyncNoop=F,t.grep=z},function(e,t,n){var i,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},o=n(112),a=n(0).extend,s=n(13),l=n(6),u=l.getWindow(),c=n(55),d=n(1),h=n(19),f=d.isWindow,p=d.isFunction,g=d.isString,_=n(18),m=n(175),v=n(225),y=n(61),b="dxEmptyEventType",x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},S={focusin:"focus",focusout:"blur"},w=["blur","focusout","focus","focusin","load"],C=["touchmove","wheel","mousewheel"],k=function(e,t){return!f(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},T=new m,E=0,A=function(){var e={};return o.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,r){return e[t]&&e[t][n]&&e[t][n].apply(i,r)}}}(),O=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||f(i))n.apply(W,t);else{if(g(i)||!("length"in i))throw _.Error("E0025");var r=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){r[0]=t,e(r,n)})}},I=function(e){return function(){O(arguments,e)}},D=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});u.addEventListener("test",null,t)}catch(e){}return e},M=y(D),P=function(e,t){var n=T.get(e);t=t||"";var r=t.split("."),o=r.slice(1),a=!!r[0];t=r[0]||b,n||(n={},T.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,r,u){var c=function(i,r){var o,a,s=[i],l=i.currentTarget,c=i.relatedTarget;t in x&&(o=c&&l&&(c===l||l.contains(c))),void 0!==r&&s.push(r),A.callMethod(t,"handle",e,[i,u]),o||(a=n.apply(l,s)),a===!1&&(i.preventDefault(),i.stopPropagation())},d=function(t,n){if(!i||t.type!==i)if(t.data=u,t.delegateTarget=e,r)for(var o=t.target;o&&o!==e;)k(o,r)&&(t.currentTarget=o,c(t,n)),o=o.parentNode;else c(t,n)},h={handler:n,wrappedHandler:d,selector:r,type:t,data:u,namespace:o.join("."),namespaces:o,guid:++E};l.handleObjects.push(h);var f,p=1===l.handleObjects.length,g=p&&a;g&&(g=!A.callMethod(t,"setup",e,[u,o,n])),g&&(l.nativeHandler=V(t),M()&&C.indexOf(t)>-1&&(f={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,f)),A.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,A.callMethod(t,"remove",e,[n])),a});var l=!a.handleObjects.length,u=l&&t!==b;u&&(A.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)}}},V=function(e){return function(t,n){var i=P(this,e);t=W.Event(t),i.callHandlers(t,n)}},R=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},L=function(e){return function(t,n,i,r,o){o||(o=r,r=void 0),"string"!=typeof i&&(r=i,i=void 0),o||"string"!=typeof n||(o=r||i,i=void 0,r=void 0),e(t,n,i,r,o)}},B=function(e){return function(t,n,i,r){"function"==typeof i&&(r=i,i=void 0),e(t,n,i,r)}},F=function(e){return function(t,n,i){"string"==typeof n&&(n={type:n}),n.target||(n.target=t),n.currentTarget=t,n.delegateTarget||(n.delegateTarget=t),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),e(t,n instanceof W.Event?n:W.Event(n),i)}},z=function(e){return function(t,n){return this instanceof W.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new W.Event(t,n)}},N=function(e){var t=function(t,n){if(n&&n.indexOf(" ")>-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"===("undefined"==typeof n?"undefined":r(n))){var i=Array.prototype.slice.call(arguments,0);for(var o in n)i[1]=o,i[i.length-1]=n[o],t.apply(this,i)}else t.apply(this,arguments)}},H=function(e,t){var n=S[e]||e,r=function(e,t){return"click"===e&&"a"===t.localName};r(e,t)||p(t[n])&&(i=e,t[n](),i=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},W=c({on:I(L(N(function(e,t,n,i,r){var o=P(e,t);o.addHandler(r,n,i)}))),one:I(L(function(e,t,n,i,r){var o=function i(){W.off(e,t,n,i),r.apply(this,arguments)};W.on(e,t,n,i,o)})),off:I(B(N(function(e,t,n,i){var r=P(e,t);r.removeHandler(i,n)}))),trigger:I(F(function(e,t,n){var i=t.type,r=P(e,t.type);A.callMethod(i,"trigger",e,[t,n]),r.callHandlers(t,n);var o=A.getField(i,"noBubble")||t.isPropagationStopped()||w.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))&&(A.callMethod(i,"_default",e,[t,n]),H(i,e))})),triggerHandler:I(F(function(e,t,n){var i=P(e,t.type);i.callHandlers(t,n)}))}),j=function(e){e&&(W.Event=e,W.Event.prototype=e.prototype)};j(z(function(e,t){var n=this,i=!1,r=!1,o=!1;a(n,e),(e instanceof W.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof W.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=++E}));var U=function(e,t,n){Object.defineProperty(n||W.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(),$=h();W.set=function(e){Y.fire(),W.inject(e),j(e.Event),$.fire()},W.subscribeGlobal=function(){O(arguments,L(function(){var e=arguments;W.on.apply(this,e),Y.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),W.off.apply(this,t)}),$.add(function(){W.on.apply(this,e)})}))},W.forcePassiveFalseEventNames=C,W.passiveEventHandlersSupported=M,e.exports=W},function(e,t,n){var i=n(13),r="undefined"!=typeof window,o=r&&window;o||(o={},o.window=o),e.exports={hasWindow:function(){return r},getWindow:function(){return o},hasProperty:function(e){return this.hasWindow()&&e in o},defaultScreenFactorFunc:function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},getCurrentScreenFactor:function(e){var t=e||this.defaultScreenFactorFunc,n=i.getDocumentElement().clientWidth;return t(n)},getNavigator:function(){return this.hasWindow()?o.navigator:{userAgent:""}}}},function(e,t,n){var i=n(1),r=i.isPromise,o=i.isDeferred,a=n(0).extend,s=n(19),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(i){var a="done"===i?e:t;this[i](function(){if(!a)return void n["done"===i?"resolve":"reject"].apply(this,arguments);var e=a&&a.apply(this,arguments);o(e)?e.done(n.resolve).fail(n.reject):r(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,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;s<e.length;s++)o(e[s])?e[s].promise().done(a(s)).fail(r.reject):i++;return i===e.length&&r.resolveWith(n,e),r.promise()};t.setStrategy=function(e){u=e.Deferred,c=e.when},t.Deferred=function(){return new u},t.when=function(){return c.apply(this,arguments)}},function(e,t,n){var i=n(2),r=n(141),o=n(18),a=n(103),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}}var r=n(2),o=i(r),a=n(5),s=i(a),l=n(18),u=i(l),c=n(63),d=n(0),h=n(3),f={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow","delete":"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},p={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},g=function(){var e={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(t){var n="other";return(0,h.each)(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),_=function(e){return"dx"===g(e)},m=function(e){return"mouse"===g(e)},v=function(e){return"touch"===g(e)},y=function(e){return"pointer"===g(e)},b=function(e){return m(e)||(y(e)||_(e))&&"mouse"===e.pointerType},x=function(e){return e&&"dxmousewheel"===e.type},S=function(e){return v(e)||(y(e)||_(e))&&"touch"===e.pointerType},w=function(e){return"keyboard"===g(e)},C=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},k=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},T=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},E=function(e){return v(e)?(e.originalEvent.touches||[]).length:_(e)?(e.pointers||[]).length:0},A=function(e){var t=e.target,n=(0,o.default)(t),i=n.is("input, textarea, select");if(n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event"))return!0;if(x(e)){if(n.is("textarea")&&n.hasClass("dx-texteditor-input"))return!1;var r=t.isContentEditable&&n.closest("div[contenteditable='true']").is(":focus"),a=n.is("input[type='number'], textarea, select")&&n.is(":focus");return a||r}return b(e)?i||e.which>1:S(e)?i&&(0,c.focused)(n):void 0},O=function(e){return e},I=function(e){O=e},D=function(e){return O(s.default.Event(e,e),e)},M=function(e,t){var n=D(e);return t&&(0,d.extend)(n,t),n},P=function(e){var t=M(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},V=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)},L=function(e){return e.key||String.fromCharCode(e.which)};e.exports={eventSource:g,isPointerEvent:y,isMouseEvent:b,isDxMouseWheelEvent:x,isTouchEvent:S,isKeyboardEvent:w,isFakeClickEvent:C,hasTouches:E,eventData:k,eventDelta:T,needSkipEvent:A,createEvent:M,fireEvent:P,addNamespace:V,setEventFixMethod:I,normalizeKeyName:R,getChar:L}},function(e,t,n){var i=n(18),r=n(1),o=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},a=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,r=this;if(!e)return r;for(n in e)i=e[n],t="function"==typeof r.prototype[n]&&"function"==typeof i,r.prototype[n]=t?o(r.parent.prototype,n,i):i;return r},l=function(){var e,t,n,i=this,r=!i.hasOwnProperty("_includedCtors")&&!i.hasOwnProperty("_includedPostCtors");for(r&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},u=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw i.Error("E0001")},d=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),h=function(){};h.inherit=function(e){var t=function(){if(!this||r.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,o=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<o.length;e++)o[e].call(t);for(n&&n.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=a(this),d(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=s,t.include=l,t.subclassOf=u,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},h.abstract=c,e.exports=h},function(e,t,n){var i=n(1).isDefined,r=n(3).each,o=n(54),a=n(23),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;n<t.length;n++)e[e.length]=t[n];return e};t.isEmpty=s,t.wrapToArray=l,t.intersection=u,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=h,t.merge=f},function(e,t,n){var i,r=n(2),o=n(23),a=n(13),s=n(6),l=s.getWindow(),u=n(5),c=n(11).inArray,d=n(1),h=d.isDefined,f=d.isRenderer,p=n(226),g=function(){var e=a.getActiveElement();e&&e!==a.getBody()&&e.blur&&e.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<o.length;a++)u.triggerHandler(o[a],e)}},y=function(){var e=0;return function(t){return(t||"")+e++}}(),b="data-options",x=function(e){var t=r(e).attr(b)||"";return o().optionsParser(t)},S=function(e,t){var n=[],i="["+b+"]",o=e.find(i).add(e.filter(i));return o.each(function(e,i){var o=r(i),a=x(i);for(var s in a)(!t||c(s,t)>-1)&&o[s]&&(o[s](a[s]),n.push(o[s]("instance")))}),n},w=function(e){if(!l.WinJS)return r(p.parseHTML(e));var t=r("<div>");return l.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},C=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("<div>").append(e),e.html())},k=function e(t){var n=h(t)&&(t.nodeType||f(t))?r(t):r("<div>").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,n){n?e.attr(t,n):e.removeAttr(t)},E=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))},O=function(e){return i(e)},I=function(e){i=e};I(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("<div>").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=I,t.resetActiveElement=g,t.createMarkupFromString=w,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=S,t.extractTemplateMarkup=C,t.normalizeTemplateElement=k,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=E,t.toggleAttr=T,t.contains=A,t.getPublicElement=O,t.createTextElementHiddenCopy=D},function(e,t,n){var 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},r=n(55),o=n(4).noop,a={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var n=e.document||e.ownerDocument;if(!n)return!1;for(var i=this.querySelectorAll(n,t),r=0;r<i.length;r++)if(i[r]===e)return!0}.bind(this);return n.call(e,t)},createElement:function(e,t){return t=t||this._document,t.createElement(e)},createElementNS:function(e,t,n){return n=n||this._document,n.createElementNS(e,t)},createTextNode:function(e,t){return t=t||this._document,t.createTextNode(e)},isNode:function(e){return"object"===("undefined"==typeof e?"undefined":i(e))&&"nodeType"in e},isElementNode:function(e){return e&&e.nodeType===Node.ELEMENT_NODE},isTextNode:function(e){return e&&e.nodeType===Node.TEXT_NODE},isDocument:function(e){return e&&e.nodeType===Node.DOCUMENT_NODE},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){if(1===e.nodeType&&t)if(e.classList)n?e.classList.add(t):e.classList.remove(t);else{var i,r="string"==typeof e.className,o=r?e.className:this.getAttribute(e,"class")||"",a=o.split(" "),s=a.indexOf(t);n&&s<0&&(i=o?o+" "+t:t),!n&&s>=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)}):o}};e.exports=r(a)},function(e,t,n){var i=n(2),r=n(55),o=n(0).extend,a=n(3).each,s=n(46).format,l=n(32).humanize,u=n(82);n(82);var c="-",d=o(!0,{},n(345)),h=n(346),f=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(c))},p=function(e,t){return e[t]||{}},g=function(e,t,n){for(var i,r=p(e,t)[n];!r&&!i;)t=f(t),t?r=p(e,t)[n]:i=!0;return r},_={},m=r({_dictionary:d,load:function(e){o(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,function(e,n,r,o){var a,s=t._localizablePrefix+o;return r!==i&&(a=t.format(o)),a||(_[o]=l(o)),n+(a||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||u.locale(),e)},localizeNode:function(e){var t=this;i(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):i(n).is("iframe")||(a(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),i(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?_:o({},_,this.getMessagesByLocales()[u.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=g(this._dictionary,t||u.locale(),e);if(n)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(n),s.apply(this,e)}},format:function(e){var t=this.getFormatter(e),n=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,n)||""}});e.exports=m},function(e,t,n){var i=n(2),r=n(6),o=r.getNavigator(),a=r.getWindow(),s=n(0).extend,l=n(1).isPlainObject,u=n(3).each,c=n(10),d=n(18),h=n(19),f=n(130),p=n(52),g=n(158).sessionStorage,_=n(65),m=n(23),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},y={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},b={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var r=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),o=[];return r?o.push(parseInt(r[1],10),parseInt(r[2],10)):(r=e.match(/msapphost(\/(\d+).(\d+))?/i),r&&o.push(3===parseInt(r[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:o,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],r=480===a.screen.height,o=r?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:o}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.(\d+)\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],r=i.length>1&&(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){function i(e,t){for(var n,i=0,r=e.length,o=[];i<r;)n=t(e[i],i),null!==n&&o.push(n),i++;return o}function r(e,t){return i(t,function(t){return e[t]?e[t]:null})}function o(e,t,n,i){var r=i;return v(t,function(t,i){e[i]&&(e[i]-=n,r-=n)}),r}function a(e){return String(e).toLowerCase()}function s(e){e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right)}function l(e){return-A<e&&e<+A?e:0}function u(e){var t=l(R(e.x)),n=l(R(e.y)),i=l(L(e.width+e.x)),r=l(L(e.height+e.y)),o={x:t,y:n,width:i-t,height:r-n};return o.isEmpty=!(o.x||o.y||o.width||o.height),o}function c(e,t,n){var i=z(D(n*O).toFixed(3)),r=z(M(n*O).toFixed(3)),o=e.width/2,a=e.height/2,s=e.x+o,l=e.y+a,c=P(o*i)+P(a*r),d=P(o*r)+P(a*i),h=t[0]+(s-t[0])*i+(l-t[1])*r,f=t[1]-(s-t[0])*r+(l-t[1])*i;return u({x:h-c,y:f-d,width:2*c,height:2*d})}function d(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}}function h(e,t){return t?e:[e.startValue,e.endValue]}function f(e,t){return"datetime"===e.dataType?function(e,t){var n=arguments.length>2&&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=H(t,e.base)+i*n;return W(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=u<i.min?i.min:u),c=l(u,d));else if(d=parseInt(d),!isNaN(d)&&isFinite(d))if(d--,a||o){if(o&&!a){var p=t.getCategoriesInfo(h,u,void 0);c=p.categories[d]}else if(!o&&a){var g=t.getCategoriesInfo(h,void 0,c);u=g.categories[g.categories.length-1-d]}}else c=h[h.length-1],u=h[h.length-1-d];return s&&(x(i.max)&&c>i.max&&(c=i.max),x(i.min)&&u<i.min&&(u=i.min)),{startValue:u,endValue:c}}var g=n(4).noop,_=n(1),m=n(0).extend,v=n(3).each,y=n(31).adjust,b=n(25).dateToMilliseconds,x=_.isDefined,S=_.isNumeric,w=_.isExponential,C=Math,k=C.round,T=Math.sqrt,E=Math.PI,A=1e10,O=E/180,I=Math.LN10,D=Math.cos,M=Math.sin,P=Math.abs,V=Math.log,R=Math.floor,L=Math.ceil,B=Math.max,F=isNaN,z=Number,N=NaN,H=function(e,t){return e?Math.log(e)/Math.log(t):N},G=function(e){return y(H(e,10))},W=function(e,t){return Math.pow(t,e)},j=function(e){return(e%360+360)%360},U=function(e){return 90-e},Y=function(e){return E*e/180},$=function(e){var t=Y(e);return{cos:D(t),sin:M(t)}},X=1e-14,K=function(e,t,n,i){var r=n-e,o=i-t;return Math.sqrt(o*o+r*r)},q=function(e){var t,n=P(e);return F(n)?N:n>0?(n=V(n)/I,t=L(n),t-n<X?t:R(n)):0},Z=function(e,t,n){var i,r=B(q(e),q(t)),o=-q(P(t-e)/n);return F(r)||F(o)?null:(P(r)<=4?(i="fixedPoint",o<0&&(o=0),o>4&&(o=4)):(i="exponential",o+=r-1,o>3&&(o=3)),{type:i,precision:o})},J=function(e,t){if(t>20&&(t=20),S(e))return z(w(e)?e.toExponential(t):e.toFixed(t))},Q=function(e){return e.toExponential().split("e")[1]};m(t,{decreaseGaps:function(e,t,n){var i;do i=r(e,t),i.push(C.ceil(n/i.length)),n=o(e,t,C.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;++t)i[a(e[t])]=1;return function(e,t){var n=a(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return v(e||{},function(e,n){/^(cursor|opacity)$/i.test(e)||(e="color"===e?"fill":"font-"+e),t[e]=n}),t},convertPolarToXY:function(e,t,n,i){var r,o=90;return n=x(n)?n+t-o:0,r=$(n),{x:k(e.x+i*r.cos),y:k(e.y+i*r.sin)}},convertXYToPolar:function(e,t,n){var i=K(e.x,e.y,t,n),r=C.atan2(n-e.y,t-e.x);return{phi:k(j(180*r/C.PI)),r:k(i)}},processSeriesTemplate:function(e,t){var n,r,o,a=_.isFunction(e.customizeSeries)?e.customizeSeries:g,s=e.nameField,l={},u=[],c=0;for(t=t||[],r=t.length;c<r;c++)o=t[c],s in o&&(n=l[o[s]],n||(n=l[o[s]]={name:o[s],nameFieldValue:o[s]},u.push(n.name)));return i(u,function(e){var t=l[e];return m(t,a.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=x(t)?t:e[0],n=x(n)?n:e[e.length-1];var r,o,a,s=i(e,function(e){return x(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),u=s.indexOf(n.valueOf()),c=!1;return l<0&&(l=0),u<0&&(u=e.length-1),u<l&&(o=u,u=l,l=o,c=!0),r=e.slice(l,u+1),a=r.length-1,{categories:r,start:r[c?a:0],end:r[c?0:a],inverted:c}},setCanvasValues:s,updatePanesCanvases:function(e,t,n){var i=0;v(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var r=0,o=e.padding||10,a=n?t.width-t.left-t.right:t.height-t.top-t.bottom,l=(a-o*(e.length-1))/i,u=n?"left":"top",c=n?"right":"bottom";v(e,function(e,n){var i=k(n.weight*l);n.canvas=n.canvas||{},m(n.canvas,t),n.canvas[u]=t[u]+r,n.canvas[c]=t[c]+(a-i-r),r=r+i+o,s(n.canvas)})},unique:function(e){var t={};return i(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:i,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=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=H,t.getAdjustedLog10=G,t.raiseTo=W,t.normalizeAngle=j,t.convertAngleToRendererSpace=U,t.degreesToRadians=Y,t.getCosAndSin=$,t.getDecimalOrder=q,t.getAppropriateFormat=Z,t.getDistance=K,t.roundValue=J,t.getPower=Q,t.rotateBBox=c,t.normalizeBBox=u},function(e,t,n){var i=n(2),r=n(5),o=n(15),a=n(13),s=n(12),l=n(109),u=n(9),c=n(26),d=n(113),h=n(85),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(104);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},function(e,t,n){var i=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(e,t){var n=this._firingIndexes,i=this._list,r=this._options.stopOnFalse,o=n.length;for(n[o]=0;n[o]<i.length;n[o]++){var a=i[n[o]].apply(e,t);if(a===!1&&r)break}n.pop()},i.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},i.prototype.remove=function(e){var t=this._list,n=this._firingIndexes,i=t.indexOf(e);if(i>-1&&(t.splice(i,1),this._firing&&n.length))for(var r=0;r<n.length;r++)i<=n[r]&&n[r]--;return this},i.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-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(104),r=n(18);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 ke