devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
10 lines • 3.36 MB
JavaScript
/*!
* DevExtreme (dx.all.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 o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.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=822)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];i in e&&!n||(e[i]=o)}return e},a=function e(t){t=t||{};var n=1,o=!1;for("boolean"==typeof t&&(o=t,t=arguments[1]||{},n++);n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a){var s,l=t[r],c=a[r],u=!1;"__proto__"!==r&&t!==c&&(o&&c&&(i(c)||(u=Array.isArray(c)))?(s=u?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,c)):void 0!==c&&(t[r]=c))}}return t};t.extend=a,t.extendFromObject=o},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},o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(e){var t=Object.prototype.toString.call(e);return"object"===("undefined"==typeof e?"undefined":i(e))?o[t]||"object":"undefined"==typeof e?"undefined":i(e)},r=function(e){return"boolean"==typeof e},s=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===a(e)},c=function(e){return null!==e&&void 0!==e},u=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))},p=function(e){return"object"===a(e)},f=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(a(e))===-1},m=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},y=function(e){return e&&u(e.then)},x=function(e){return e&&u(e.done)&&u(e.fail)};t.isBoolean=r,t.isExponential=s,t.isDate=l,t.isDefined=c,t.isFunction=u,t.isString=d,t.isNumeric=h,t.isObject=p,t.isEmptyObject=f,t.isPlainObject=g,t.isPrimitive=_,t.isWindow=m,t.isRenderer=v,t.isPromise=y,t.isDeferred=x,t.type=a},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},o=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}},a=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=o,t.reverseEach=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o="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},a=n(23),r=i(a),s=n(40),l=i(s),c=n(7),u=n(3),d=n(22),h=n(1),p=function(e,t){return(0,h.isDefined)(e)?e:t},f=function(e,t){var n=new c.Deferred,i=t||this,o=void 0,a={promise:n.promise(),abort:function(){clearTimeout(o),n.rejectWith(i)}},r=function(){var t=e.call(i);t&&t.done&&(0,h.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)};return o=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),a},g=[],_=[],m=[],v=void 0,y=function(e,t,n){if(v&&v!==e)return g.push(t),_.push(e),n=n||new c.Deferred,m.push(n),n;var i=v,o=m.length;v=e;var a=t();return a||(m.length>o?a=c.when.apply(this,m.slice(o)):n&&n.resolve()),v=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!v&&g.length&&("render"===_.shift()?x:b)(g.shift(),m.shift()),a||(0,c.when)()},x=function(e,t){return y("render",e,t)},b=function(e,t){return y("update",e,t)},w=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)})}},k=function(e,t,n){var i=[],o=0;return(0,u.each)(t,function(t,a){var r=0,s=n?n(a):a;(0,u.each)(e,function(e,t){var n=s[e];if(void 0!==n)return S(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(i.length=0,o=r),i.push(a))}),i},S=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,u.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},I=function(e){switch("undefined"==typeof e?"undefined":o(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}},T=function(e){var t=(0,h.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,u.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},D=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},E=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},A=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!P(e[i],t[i],n+1))return!1;for(var o in t)if(!(o in e))return!1;return!0},O=function(e,t){var n=I(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),o=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(o)||(o=i),{h:i,v:o}},B=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>=B||((0,h.isObject)(e)&&(0,h.isObject)(t)?A(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&E(e,t,n))},R=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},M=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},V=function(e){var t=(0,r.default)().serverDecimalSeparator;return(0,h.isDefined)(e)&&(e=e.toString().replace(".",t)),e},F=function(){},L=function(){return(new c.Deferred).resolve().promise()},H=function(e,t,n){for(var i=[],o=void 0,a=!n,r=0;r<e.length;r++)o=!!t(e[r],r),o===a&&i.push(e[r]);return i};t.ensureDefined=p,t.executeAsync=f,t.deferRender=x,t.deferRenderer=w,t.deferUpdate=b,t.deferUpdater=C,t.pairToObject=O,t.splitPair=I,t.findBestMatches=k,t.normalizeKey=T,t.denormalizeKey=D,t.equalByValue=P,t.getKeyHash=R,t.escapeRegExp=M,t.applyServerDecimalSeparator=V,t.noop=F,t.asyncNoop=L,t.grep=H},function(e,t,n){var i,o="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},a=n(112),r=n(0).extend,s=n(13),l=n(6),c=l.getWindow(),u=n(55),d=n(1),h=n(19),p=d.isWindow,f=d.isFunction,g=d.isString,_=n(18),m=n(175),v=n(225),y=n(61),x="dxEmptyEventType",b={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},w={focusin:"focus",focusout:"blur"},C=["blur","focusout","focus","focusin","load"],k=["touchmove","wheel","mousewheel"],S=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},I=new m,T=0,D=function(){var e={};return a.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,o){return e[t]&&e[t][n]&&e[t][n].apply(i,o)}}}(),E=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||p(i))n.apply(W,t);else{if(g(i)||!("length"in i))throw _.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},A=function(e){return function(){E(arguments,e)}},O=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});c.addEventListener("test",null,t)}catch(e){}return e},B=y(O),P=function(e,t){var n=I.get(e);t=t||"";var o=t.split("."),a=o.slice(1),r=!!o[0];t=o[0]||x,n||(n={},I.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,c){var u=function(i,o){var a,r,s=[i],l=i.currentTarget,u=i.relatedTarget;t in b&&(a=u&&l&&(u===l||l.contains(u))),void 0!==o&&s.push(o),D.callMethod(t,"handle",e,[i,c]),a||(r=n.apply(l,s)),r===!1&&(i.preventDefault(),i.stopPropagation())},d=function(t,n){if(!i||t.type!==i)if(t.data=c,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)S(a,o)&&(t.currentTarget=a,u(t,n)),a=a.parentNode;else u(t,n)},h={handler:n,wrappedHandler:d,selector:o,type:t,data:c,namespace:a.join("."),namespaces:a,guid:++T};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&r;g&&(g=!D.callMethod(t,"setup",e,[c,a,n])),g&&(l.nativeHandler=R(t),B()&&k.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,b[t]||t,l.nativeHandler,p)),D.callMethod(t,"add",e,[h])},removeHandler:function(i,o){var s=function(t){var r=n[t];if(!r.handleObjects.length)return void delete n[t];var s;r.handleObjects=r.handleObjects.filter(function(n){var r=a.length&&!M(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return r||(s=n.handler,D.callMethod(t,"remove",e,[n])),r});var l=!r.handleObjects.length,c=l&&t!==x;c&&(D.callMethod(t,"teardown",e,[a,s]),r.nativeHandler&&r.removeListener(),delete n[t])};if(r)s(t);else for(var l in n)s(l);var c=0===Object.keys(n).length;c&&I.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!M(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[x]&&n[x].handleObjects.forEach(o)}}},R=function(e){return function(t,n){var i=P(this,e);t=W.Event(t),i.callHandlers(t,n)}},M=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},V=function(e){return function(t,n,i,o,a){a||(a=o,o=void 0),"string"!=typeof i&&(o=i,i=void 0),a||"string"!=typeof n||(a=o||i,i=void 0,o=void 0),e(t,n,i,o,a)}},F=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},L=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)}},H=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)}},z=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":o(n))){var i=Array.prototype.slice.call(arguments,0);for(var a in n)i[1]=a,i[i.length-1]=n[a],t.apply(this,i)}else t.apply(this,arguments)}},N=function(e,t){var n=w[e]||e,o=function(e,t){return"click"===e&&"a"===t.localName};o(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},$=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=u({on:A(V(z(function(e,t,n,i,o){var a=P(e,t);a.addHandler(o,n,i)}))),one:A(V(function(e,t,n,i,o){var a=function i(){W.off(e,t,n,i),o.apply(this,arguments)};W.on(e,t,n,i,a)})),off:A(F(z(function(e,t,n,i){var o=P(e,t);o.removeHandler(i,n)}))),trigger:A(L(function(e,t,n){var i=t.type,o=P(e,t.type);D.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=D.getField(i,"noBubble")||t.isPropagationStopped()||C.indexOf(i)!==-1;if(!a){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(c);for(var u=0;s[u]&&!t.isPropagationStopped();){var d=P(s[u],t.type);d.callHandlers(r(t,{currentTarget:s[u]}),n),u++}}(e.nodeType||p(e))&&(D.callMethod(i,"_default",e,[t,n]),N(i,e))})),triggerHandler:A(L(function(e,t,n){var i=P(e,t.type);i.callHandlers(t,n)}))}),G=function(e){e&&(W.Event=e,W.Event.prototype=e.prototype)};G(H(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof W.Event||l.hasWindow()&&e instanceof c.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof W.Event||r(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),q("which",$,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++T}));var q=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(q);var j=h(),K=h();W.set=function(e){j.fire(),W.inject(e),G(e.Event),K.fire()},W.subscribeGlobal=function(){E(arguments,V(function(){var e=arguments;W.on.apply(this,e),j.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),W.off.apply(this,t)}),K.add(function(){W.on.apply(this,e)})}))},W.forcePassiveFalseEventNames=k,W.passiveEventHandlersSupported=B,e.exports=W},function(e,t,n){var i=n(13),o="undefined"!=typeof window,a=o&&window;a||(a={},a.window=a),e.exports={hasWindow:function(){return o},getWindow:function(){return a},hasProperty:function(e){return this.hasWindow()&&e in a},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()?a.navigator:{userAgent:""}}}},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(19),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=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 c;return["done","fail"].forEach(function(i){var r="done"===i?e:t;this[i](function(){if(!r)return void n["done"===i?"resolve":"reject"].apply(this,arguments);var e=r&&r.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(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?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;c.prototype[t+"With"]=function(e,i){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),o.fire(e,i)),this}}),t.fromPromise=function(e,t){if(a(e))return e;if(o(e)){var n=new c;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 c).resolveWith(t,[e])};var u=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new c,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,i++,i===e.length&&o.resolveWith(n,e)}},s=0;s<e.length;s++)a(e[s])?e[s].promise().done(r(s)).fail(o.reject):i++;return i===e.length&&o.resolveWith(n,e),o.promise()};t.setStrategy=function(e){c=e.Deferred,u=e.when},t.Deferred=function(){return new c},t.when=function(){return u.apply(this,arguments)}},function(e,t,n){var i=n(2),o=n(141),a=n(18),r=n(103),s=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),o.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.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}};o.add(l),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(18),c=i(l),u=n(63),d=n(0),h=n(3),p={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"},f={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)},x=function(e){return m(e)||(y(e)||_(e))&&"mouse"===e.pointerType},b=function(e){return e&&"dxmousewheel"===e.type},w=function(e){return v(e)||(y(e)||_(e))&&"touch"===e.pointerType},C=function(e){return"keyboard"===g(e)},k=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},S=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},I=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},T=function(e){return v(e)?(e.originalEvent.touches||[]).length:_(e)?(e.pointers||[]).length:0},D=function(e){var t=e.target,n=(0,a.default)(t),i=n.is("input, textarea, select");if(n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event"))return!0;if(b(e)){if(n.is("textarea")&&n.hasClass("dx-texteditor-input"))return!1;var o=t.isContentEditable&&n.closest("div[contenteditable='true']").is(":focus"),r=n.is("input[type='number'], textarea, select")&&n.is(":focus");return r||o}return x(e)?i||e.which>1:w(e)?i&&(0,u.focused)(n):void 0},E=function(e){return e},A=function(e){E=e},O=function(e){return E(s.default.Event(e,e),e)},B=function(e,t){var n=O(e);return t&&(0,d.extend)(n,t),n},P=function(e){var t=B(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},R=function e(t,n){if(!n)throw c.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(" "))},M=function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return n=t?p[n.toLowerCase()]||n:f[n]||String.fromCharCode(n)},V=function(e){return e.key||String.fromCharCode(e.which)};e.exports={eventSource:g,isPointerEvent:y,isMouseEvent:x,isDxMouseWheelEvent:b,isTouchEvent:w,isKeyboardEvent:C,isFakeClickEvent:k,hasTouches:T,eventData:S,eventDelta:I,needSkipEvent:D,createEvent:B,fireEvent:P,addNamespace:R,setEventFixMethod:A,normalizeKeyName:M,getChar:V}},function(e,t,n){var i=n(18),o=n(1),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,o=this;if(!e)return o;for(n in e)i=e[n],t="function"==typeof o.prototype[n]&&"function"==typeof i,o.prototype[n]=t?a(o.parent.prototype,n,i):i;return o},l=function(){var e,t,n,i=this,o=!i.hasOwnProperty("_includedCtors")&&!i.hasOwnProperty("_includedPostCtors");for(o&&(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},c=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},u=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||o.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,a=t.constructor._includedCtors,r=t.constructor._includedPostCtors;for(e=0;e<a.length;e++)a[e].call(t);for(n&&n.apply(t,arguments),e=0;e<r.length;e++)r[e].call(t)};return t.prototype=r(this),d(this,t),t.inherit=this.inherit,t.abstract=u,t.redefine=s,t.include=l,t.subclassOf=c,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=u,e.exports=h},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(54),r=n(23),s=function(e){return Array.isArray(e)&&!e.length},l=function(e){return Array.isArray(e)?e:[e]},c=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return o(e,function(e,i){var o=h(i,t);o!==-1&&n.push(i)}),n},u=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return o(e,function(e,i){var o=h(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,s){var l={},c=0,u=r().useLegacyVisibleIndex;return o(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}),u||o(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[c];)c++;l[c]=[this],c++}}),c=0,a.orderEach(l,function(e,n){o(n,function(){e>=0&&(this[t]=c++)})}),u&&o(e,function(){i(this[t])||s&&!s(this)||(this[t]=c++)}),c},h=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},p=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=c,t.removeDuplicates=u,t.normalizeIndexes=d,t.inArray=h,t.merge=p},function(e,t,n){var i,o=n(2),a=n(23),r=n(13),s=n(6),l=s.getWindow(),c=n(5),u=n(11).inArray,d=n(1),h=d.isDefined,p=d.isRenderer,f=n(226),g=function(){var e=r.getActiveElement();e&&e!==r.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=o(e),i=o(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),r=i.parents(),s=Math.min(a.length,r.length),l=-s;l<0;l++)if(a.get(l)===r.get(l))return a.get(l)},v=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=o(n||"body"),a=i.filter(t).add(i.find(t)),r=0;r<a.length;r++)c.triggerHandler(a[r],e)}},y=function(){var e=0;return function(t){return(t||"")+e++}}(),x="data-options",b=function(e){var t=o(e).attr(x)||"";return a().optionsParser(t)},w=function(e,t){var n=[],i="["+x+"]",a=e.find(i).add(e.filter(i));return a.each(function(e,i){var a=o(i),r=b(i);for(var s in r)(!t||u(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},C=function(e){if(!l.WinJS)return o(f.parseHTML(e));var t=o("<div>");return l.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=function(e){e=o(e);var t=e.length&&e.filter(function(){var e=o(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=o("<div>").append(e),e.html())},S=function e(t){var n=h(t)&&(t.nodeType||p(t))?o(t):o("<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},I=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},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))},D=function(e,t){return!!t&&(t=r.isTextNode(t)?t.parentNode:t,r.isDocument(e)?e.documentElement.contains(t):e.contains(t))},E=function(e){return i(e)},A=function(e){i=e};A(function(e){return e&&e.get(0)});var O=function(e,t,n){var i=l.getComputedStyle(o(e).get(0)),a=n&&n.includePaddings;return o("<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:a?i.paddingTop:"",paddingRight:a?i.paddingRight:"",paddingBottom:a?i.paddingBottom:"",paddingLeft:a?i.paddingLeft:"",visibility:"hidden",whiteSpace:"nowrap",position:"absolute","float":"left"})};t.setPublicElementWrapper=A,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=b,t.createComponents=w,t.extractTemplateMarkup=k,t.normalizeTemplateElement=S,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=T,t.toggleAttr=I,t.contains=D,t.getPublicElement=E,t.createTextElementHiddenCopy=O},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},o=n(55),a=n(4).noop,r={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),o=0;o<i.length;o++)if(i[o]===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,o="string"==typeof e.className,a=o?e.className:this.getAttribute(e,"class")||"",r=a.split(" "),s=r.indexOf(t);n&&s<0&&(i=a?a+" "+t:t),!n&&s>=0&&(r.splice(s,1),i=r.join(" ")),void 0!==i&&(o?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)}):a}};e.exports=o(r)},function(e,t,n){var i=n(2),o=n(55),a=n(0).extend,r=n(3).each,s=n(46).format,l=n(32).humanize,c=n(82);n(82);var u="-",d=a(!0,{},n(345)),h=n(346),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(u))},f=function(e,t){return e[t]||{}},g=function(e,t,n){for(var i,o=f(e,t)[n];!o&&!i;)t=p(t),t?o=f(e,t)[n]:i=!0;return o},_={},m=o({_dictionary:d,load:function(e){a(!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,o,a){var r,s=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(_[a]=l(a)),n+(r||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||c.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")||(r(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?_:a({},_,this.getMessagesByLocales()[c.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=g(this._dictionary,t||c.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),o=n(6),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,c=n(3).each,u=n(10),d=n(18),h=n(19),p=n(130),f=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},x={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 o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,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)]:[],o=480===r.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:a}}},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)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";
return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},b=u.inherit({ctor:function(e){this._window=e&&e.window||r,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),o.hasWindow()&&(this._recalculateOrientation(),p.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]),w.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||o.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=a.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.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(c(x,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(f),w=new b;_.changeCallback.add(function(e,t){w.detachCssClasses(t),w.attachCssClasses(e)}),w.isForced()||"win"!==w.current().platform||w.current({version:[10]}),e.exports=w},function(e,t,n){function i(e,t){for(var n,i=0,o=e.length,a=[];i<o;)n=t(e[i],i),null!==n&&a.push(n),i++;return a}function o(e,t){return i(t,function(t){return e[t]?e[t]:null})}function a(e,t,n,i){var o=i;return v(t,function(t,i){e[i]&&(e[i]-=n,o-=n)}),o}function r(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-D<e&&e<+D?e:0}function c(e){var t=l(M(e.x)),n=l(M(e.y)),i=l(V(e.width+e.x)),o=l(V(e.height+e.y)),a={x:t,y:n,width:i-t,height:o-n};return a.isEmpty=!(a.x||a.y||a.width||a.height),a}function u(e,t,n){var i=H(O(n*E).toFixed(3)),o=H(B(n*E).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,u=P(a*i)+P(r*o),d=P(a*o)+P(r*i),h=t[0]+(s-t[0])*i+(l-t[1])*o,p=t[1]-(s-t[0])*o+(l-t[1])*i;return c({x:h-u,y:p-d,width:2*u,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 p(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,o=N(t,e.base)+i*n;return W(o,e.base)}:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e+i*n;return t&&o*e<=0?0:o}}function f(e,n,i,o){var a=_.isDefined(n.startValue),r=_.isDefined(n.endValue),s="discrete"!==e.axisType;o=o||i;var l=p(e,!1),c=a?n.startValue:o.min,u=r?n.endValue:o.max,d=n.length,h=o.categories;if(s&&!_.isDefined(c)&&!_.isDefined(u))return{startValue:c,endValue:u};if(b(d))if(s)"datetime"!==e.dataType||w(d)||(d=x(d)),r&&!a||!r&&!a?(b(i.max)&&(u=u>i.max?i.max:u),c=l(u,d,-1)):a&&!r&&(b(i.min)&&(c=c<i.min?i.min:c),u=l(c,d));else if(d=parseInt(d),!isNaN(d)&&isFinite(d))if(d--,r||a){if(a&&!r){var f=t.getCategoriesInfo(h,c,void 0);u=f.categories[d]}else if(!a&&r){var g=t.getCategoriesInfo(h,void 0,u);c=g.categories[g.categories.length-1-d]}}else u=h[h.length-1],c=h[h.length-1-d];return s&&(b(i.max)&&u>i.max&&(u=i.max),b(i.min)&&c<i.min&&(c=i.min)),{startValue:c,endValue:u}}var g=n(4).noop,_=n(1),m=n(0).extend,v=n(3).each,y=n(31).adjust,x=n(25).dateToMilliseconds,b=_.isDefined,w=_.isNumeric,C=_.isExponential,k=Math,S=k.round,I=Math.sqrt,T=Math.PI,D=1e10,E=T/180,A=Math.LN10,O=Math.cos,B=Math.sin,P=Math.abs,R=Math.log,M=Math.floor,V=Math.ceil,F=Math.max,L=isNaN,H=Number,z=NaN,N=function(e,t){return e?Math.log(e)/Math.log(t):z},$=function(e){return y(N(e,10))},W=function(e,t){return Math.pow(t,e)},G=function(e){return(e%360+360)%360},q=function(e){return 90-e},j=function(e){return T*e/180},K=function(e){var t=j(e);return{cos:O(t),sin:B(t)}},U=1e-14,Y=function(e,t,n,i){var o=n-e,a=i-t;return Math.sqrt(a*a+o*o)},X=function(e){var t,n=P(e);return L(n)?z:n>0?(n=R(n)/A,t=V(n),t-n<U?t:M(n)):0},Z=function(e,t,n){var i,o=F(X(e),X(t)),a=-X(P(t-e)/n);return L(o)||L(a)?null:(P(o)<=4?(i="fixedPoint",a<0&&(a=0),a>4&&(a=4)):(i="exponential",a+=o-1,a>3&&(a=3)),{type:i,precision:a})},Q=function(e,t){if(t>20&&(t=20),w(e))return H(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=o(e,t),i.push(k.ceil(n/i.length)),n=a(e,t,k.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:r,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[r(e[t])]=1;return function(e,t){var n=r(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 o,a=90;return n=b(n)?n+t-a:0,o=K(n),{x:S(e.x+i*o.cos),y:S(e.y+i*o.sin)}},convertXYToPolar:function(e,t,n){var i=Y(e.x,e.y,t,n),o=k.atan2(n-e.y,t-e.x);return{phi:S(G(180*o/k.PI)),r:S(i)}},processSeriesTemplate:function(e,t){var n,o,a,r=_.isFunction(e.customizeSeries)?e.customizeSeries:g,s=e.nameField,l={},c=[],u=0;for(t=t||[],o=t.length;u<o;u++)a=t[u],s in a&&(n=l[a[s]],n||(n=l[a[s]]={name:a[s],nameFieldValue:a[s]},c.push(n.name)));return i(c,function(e){var t=l[e];return m(t,r.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=b(t)?t:e[0],n=b(n)?n:e[e.length-1];var o,a,r,s=i(e,function(e){return b(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),c=s.indexOf(n.valueOf()),u=!1;return l<0&&(l=0),c<0&&(c=e.length-1),c<l&&(a=c,c=l,l=a,u=!0),o=e.slice(l,c+1),r=o.length-1,{categories:o,start:o[u?r:0],end:o[u?0:r],inverted:u}},setCanvasValues:s,updatePanesCanvases:function(e,t,n){var i=0;v(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var o=0,a=e.padding||10,r=n?t.width-t.left-t.right:t.height-t.top-t.bottom,l=(r-a*(e.length-1))/i,c=n?"left":"top",u=n?"right":"bottom";v(e,function(e,n){var i=S(n.weight*l);n.canvas=n.canvas||{},m(n.canvas,t),n.canvas[c]=t[c]+o,n.canvas[u]=t[u]+(r-i-o),o=o+i+a,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,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=S(I(o*o+a*a-r*r)),l=(i?+s:-s)||o;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=f,t.getAddFunction=p,t.getLog=N,t.getAdjustedLog10=$,t.raiseTo=W,t.normalizeAngle=G,t.convertAngleToRendererSpace=q,t.degreesToRadians=j,t.getCosAndSin=K,t.getDecimalOrder=X,t.getAppropriateFormat=Z,t.getDistance=Y,t.roundValue=Q,t.getPower=J,t.rotateBBox=u,t.normalizeBBox=c},function(e,t,n){var i=n(2),o=n(5),a=n(15),r=n(13),s=n(12),l=n(109),c=n(9),u=n(26),d=n(113),h=n(85),p=n(58).compare,f="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=c.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===u.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,o=c.eventDelta(c.eventData(e),this._startEventData),a=_(o.x)>g||_(o.y)>g;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=a.real(),n=t.generic||t.ios&&p(t.version,[9,3])>=0||t.android&&p(t.version,[5])>=0,r=function(t){return n||i(t).closest("."+e).length},s=null,l=null,u=function(e){var t=e.originalEvent,n=l===t||t&&t.DXCLICK_FIRED,i=!e.which||1===e.which;i&&!s&&r(e.target)&&!n&&(t&&(t.DXCLICK_FIRED=!0),l=t,c.fireEvent({type:f,originalEvent:e}))};y=y.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",u)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,r(e.target)||this.callBase(e)},end:function(e){r(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",u)}})}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},d=function(e){var o=i(e.target);n||!t||o.is(t)||i(t).is("label")||!m(o)||s.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",p=r.getDocument();o.subscribeGlobal(p,c.addNamespace(u.down,h),l),o.subscribeGlobal(p,c.addNamespace("click",h),d)}}(),h({emitter:y,bubble:!0,events:[f]}),t.name=f},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,o=this._options.stopOnFalse,a=n.length;for(n[a]=0;n[a]<i.length;n[a]++){var r=i[n[a]].apply(e,t);if(r===!1&&o)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 o=0;o<n.length;o++)i<=n[o]&&n[o]--;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 o=function(e){return new i(e)};e.exports=o},function(e,t,n){var i=n(104),o=n(18);e.exports=i(o.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