devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
10 lines • 1.16 MB
JavaScript
/*!
* DevExtreme (dx.mobile.js)
* Version: 18.1.3
* Build date: Tue May 15 2018
*
* Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";!function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=750)}([function(t,e,i){var n=i(1).isPlainObject,o=function(t,e,i){t=t||{};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];n in t&&!i||(t[n]=o)}return t},a=function t(e){e=e||{};var i=1,o=!1;for("boolean"==typeof e&&(o=e,e=arguments[1]||{},i++);i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var s in a){var r,l=e[s],c=a[s],h=!1;e!==c&&(o&&c&&(n(c)||(h=Array.isArray(c)))?(r=h?l&&Array.isArray(l)?l:[]:l&&n(l)?l:{},e[s]=t(o,r,c)):void 0!==c&&(e[s]=c))}}return e};e.extend=a,e.extendFromObject=o},function(t,e,i){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(t){var e=Object.prototype.toString.call(t);return"object"===("undefined"==typeof t?"undefined":n(t))?o[e]||"object":"undefined"==typeof t?"undefined":n(t)},s=function(t){return"boolean"==typeof t},r=function(t){return u(t)&&t.toString().indexOf("e")!==-1},l=function(t){return"date"===a(t)},c=function(t){return null!==t&&void 0!==t},h=function(t){return"function"==typeof t},d=function(t){return"string"==typeof t},u=function(t){return"number"==typeof t&&isFinite(t)||!isNaN(t-parseFloat(t))},p=function(t){return"object"===a(t)},f=function(t){var e;for(e in t)return!1;return!0},_=function(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t),i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return"function"==typeof i&&Object.toString.call(i)===Object.toString.call(Object)},m=function(t){return["object","array","function"].indexOf(a(t))===-1},g=function(t){return null!=t&&t===t.window},v=function(t){return!(!t.jquery&&!t.dxRenderer)},y=function(t){return t&&h(t.then)},b=function(t){return t&&h(t.done)&&h(t.fail)};e.isBoolean=s,e.isExponential=r,e.isDate=l,e.isDefined=c,e.isFunction=h,e.isString=d,e.isNumeric=u,e.isObject=p,e.isEmptyObject=f,e.isPlainObject=_,e.isPrimitive=m,e.isWindow=g,e.isRenderer=v,e.isPromise=y,e.isDeferred=b,e.type=a},function(t,e,i){var n=i(215);t.exports=n.get()},function(t,e,i){var n=function(t,e,i,n){var o=i(e[t],t);null!=o&&n.push(o)},o=function(t,e){var i=[];if("length"in t)for(var o=0;o<t.length;o++)n(o,t,e,i);else for(var a in t)n(a,t,e,i);return[].concat.apply([],i)},a=function(t,e){if(t){if("length"in t)for(var i=0;i<t.length&&e.call(t[i],i,t[i])!==!1;i++);else for(var n in t)if(e.call(t[n],n,t[n])===!1)break;return t}};e.map=o,e.each=a},function(t,e,i){var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=i(29),s=i(7),r=s.when,l=s.Deferred,c=i(3).each,h=i(1),d=function(t,e){return h.isDefined(t)?t:e},u=function(t,e){var i,n=new l,o=e||this,a={promise:n.promise(),abort:function(){clearTimeout(i),n.rejectWith(o)}},s=function(){var e=t.call(o);e&&e.done&&h.isFunction(e.done)?e.done(function(){n.resolveWith(o)}):n.resolveWith(o)};return i=(arguments[2]||setTimeout)(s,"number"==typeof e?e:0),a},p=[],f=[],_=[],m=function(t,e,i){if(n&&n!==t)return p.push(e),f.push(t),i=i||new l,_.push(i),i;var o=n,a=_.length;n=t;var s=e();return s||(_.length>a?s=r.apply(this,_.slice(a)):i&&i.resolve()),n=o,i&&s&&s.done&&s.done(i.resolve).fail(i.reject),!n&&p.length&&("render"===f.shift()?g:v)(p.shift(),_.shift()),s},g=function(t,e){return m("render",t,e)},v=function(t,e){return m("update",t,e)},y=function(t){return function(){var e=this;return m("render",function(){return t.call(e)})}},b=function(t){return function(){var e=this;return m("update",function(){return t.call(e)})}},C=function(t,e,i){var n=[],o=0;return c(e,function(e,a){var s=0,r=i?i(a):a;c(t,function(t,e){var i=r[t];if(void 0!==i)return x(i,e)?void s++:(s=-1,!1)}),s<o||(s>o&&(n.length=0,o=s),n.push(a))}),n},x=function(t,e){if(Array.isArray(t)&&Array.isArray(e)){var i=!1;return c(t,function(t,n){if(n!==e[t])return i=!0,!1}),!i}return t===e},w=function(t){switch("undefined"==typeof t?"undefined":o(t)){case"string":return t.split(/\s+/,2);case"object":return[t.x||t.h,t.y||t.v];case"number":return[t];default:return t}},S=function(t){switch("undefined"==typeof t?"undefined":o(t)){case"string":return t.split(/\s+/,4);case"object":return[t.x||t.h||t.left,t.y||t.v||t.top,t.x||t.h||t.right,t.y||t.v||t.bottom];case"number":return[t];default:return t}},I=function(t){var e=h.isString(t)?t:t.toString(),i=e.match(/[^a-zA-Z0-9_]/g);return i&&c(i,function(t,i){e=e.replace(i,"__"+i.charCodeAt()+"__")}),e},T=function(t){var e=t.match(/__\d+__/g);return e&&e.forEach(function(e){var i=parseInt(e.replace("__",""));t=t.replace(e,String.fromCharCode(i))}),t},D=function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!k(t[n],e[n],i+1))return!1;return!0},E=function(t,e,i){for(var n in t)if(t.hasOwnProperty(n)&&!k(t[n],e[n],i+1))return!1;for(n in e)if(!(n in t))return!1;return!0},k=function(t,e,i){if(t===e)return!0;var n=3;return i=i||0,i>=n||(h.isObject(t)&&h.isObject(e)?E(t,e,i):Array.isArray(t)&&Array.isArray(e)?D(t,e,i):!(!h.isDate(t)||!h.isDate(e))&&t.getTime()===e.getTime())},B=function(t){if(h.isObject(t)||Array.isArray(t))try{var e=JSON.stringify(t);return"{}"===e?t:e}catch(e){return t}return t},A=function(t){return t.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},M=function(t){var e=a().serverDecimalSeparator;return h.isDefined(t)&&(t=t.toString().replace(".",e)),t},O=function(){},P=function(t,e,i){for(var n,o=[],a=!i,s=0;s<t.length;s++)n=!!e(t[s],s),n===a&&o.push(t[s]);return o};e.ensureDefined=d,e.executeAsync=u,e.deferRender=g,e.deferRenderer=y,e.deferUpdate=v,e.deferUpdater=b,e.splitPair=w,e.splitQuad=S,e.findBestMatches=C,e.normalizeKey=I,e.denormalizeKey=T,e.equalByValue=k,e.getKeyHash=B,e.escapeRegExp=A,e.applyServerDecimalSeparator=M,e.noop=O,e.grep=P},function(t,e,i){var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=i(107),s=i(0).extend,r=i(12),l=i(6),c=l.getWindow(),h=i(55),d=i(1),u=i(19),p=d.isWindow,f=d.isFunction,_=d.isString,m=i(17),g=i(171),v=i(216),y="dxEmptyEventType",b={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},C={focusin:"focus",focusout:"blur"},x=["blur","focusout","focus","focusin","load"],w=function(t,e){return!p(t)&&"#document"!==t.nodeName&&r.elementMatches(t,e)},S=new g,I=0,T=function(){var t={};return a.add(function(e,i){t[e]=i}),{getField:function(e,i){return t[e]&&t[e][i]},callMethod:function(e,i,n,o){return t[e]&&t[e][i]&&t[e][i].apply(n,o)}}}(),D=function t(e,i){var n=e[0];if(n)if(r.isNode(n)||p(n))i.apply(F,e);else{if(_(n)||!("length"in n))throw m.Error("E0025");var o=Array.prototype.slice.call(e,0);Array.prototype.forEach.call(n,function(e){o[0]=e,t(o,i)})}},E=function(t){return function(){D(arguments,t)}},k=function(t,e){var i=S.get(t);e=e||"";var o=e.split("."),a=o.slice(1),s=!!o[0];e=o[0]||y,i||(i={},S.set(t,i)),i[e]||(i[e]={handleObjects:[],nativeHandler:null});var l=i[e];return{addHandler:function(i,o,c){var h=function(n,o){var a,s,r=[n],l=n.currentTarget,h=n.relatedTarget;e in b&&(a=h&&l&&(h===l||l.contains(h))),void 0!==o&&r.push(o),T.callMethod(e,"handle",t,[n,c]),a||(s=i.apply(l,r)),s===!1&&(n.preventDefault(),n.stopPropagation())},d=function(e,i){if(!n||e.type!==n)if(e.data=c,e.delegateTarget=t,o)for(var a=e.target;a&&a!==t;)w(a,o)&&(e.currentTarget=a,h(e,i)),a=a.parentNode;else h(e,i)},u={handler:i,wrappedHandler:d,selector:o,type:e,data:c,namespace:a.join("."),namespaces:a,guid:++I};l.handleObjects.push(u);var p=1===l.handleObjects.length,f=p&&s,_=B(e);f&&(f=!T.callMethod(e,"setup",t,[c,a,_])),f&&(l.nativeHandler=_,l.removeListener=r.listen(t,b[e]||e,l.nativeHandler)),T.callMethod(e,"add",t,[u])},removeHandler:function(n,o){var r=function(e){var s=i[e];if(!s.handleObjects.length)return void delete i[e];var r;s.handleObjects=s.handleObjects.filter(function(i){var s=a.length&&!A(i.namespaces,a)||n&&i.handler!==n||o&&i.selector!==o;return s||(r=i.handler,T.callMethod(e,"remove",t,[i])),s});var l=!s.handleObjects.length,c=l&&e!==y;c&&(T.callMethod(e,"teardown",t,[a,r]),s.nativeHandler&&s.removeListener(),delete i[e])};if(s)r(e);else for(var l in i)r(l);var c=0===Object.keys(i).length;c&&S.delete(t)},callHandlers:function(t,e){var n=!1,o=function(i){n||a.length&&!A(i.namespaces,a)||(i.wrappedHandler(t,e),n=t.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&i[y]&&i[y].handleObjects.forEach(o)}}},B=function(t){return function(e,i){var n=k(this,t);e=F.Event(e),n.callHandlers(e,i)}},A=function(t,e){for(var i=0;i<e.length;i++)if(t.indexOf(e[i])<0)return!1;return!0},M=function(t){return function(e,i,n,o,a){a||(a=o,o=void 0),"string"!=typeof n&&(o=n,n=void 0),a||"string"!=typeof i||(a=o||n,n=void 0,o=void 0),t(e,i,n,o,a)}},O=function(t){return function(e,i,n,o){"function"==typeof n&&(o=n,n=void 0),t(e,i,n,o)}},P=function(t){return function(e,i,n){"string"==typeof i&&(i={type:i}),i.target||(i.target=e),i.currentTarget=e,i.delegateTarget||(i.delegateTarget=e),!i.type&&i.originalEvent&&(i.type=i.originalEvent.type),t(e,i instanceof F.Event?i:F.Event(i),n)}},$=function(t){return function(e,i){return this instanceof F.Event?(e||(e={}),"string"==typeof e&&(e={type:e}),i||(i={}),void t.call(this,e,i)):new F.Event(e,i)}},H=function(t){var e=function(e,i){if(i&&i.indexOf(" ")>-1){var n=Array.prototype.slice.call(arguments,0);i.split(" ").forEach(function(e){n[1]=e,t.apply(this,n)})}else t.apply(this,arguments)};return function(t,i){if("object"===("undefined"==typeof i?"undefined":o(i))){var n=Array.prototype.slice.call(arguments,0);for(var a in i)n[1]=a,n[n.length-1]=i[a],e.apply(this,n)}else e.apply(this,arguments)}},R=function(t,e){var i=C[t]||t,o=function(t,e){return"click"===t&&"a"===e.localName};o(t,e)||f(e[i])&&(n=t,e[i](),n=void 0)},V=function(t){var e=function(t){var e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!t.which&&void 0!==t.button&&e.test(t.type)},i=function(t){return null==t.which&&0===t.type.indexOf("key")};if(i(t))return null!=t.charCode?t.charCode:t.keyCode;if(e(t)){var n={1:1,2:3,3:1,4:2};return n[t.button]}return t.which},F=h({on:E(M(H(function(t,e,i,n,o){var a=k(t,e);a.addHandler(o,i,n)}))),one:E(M(function(t,e,i,n,o){var a=function n(){F.off(t,e,i,n),o.apply(this,arguments)};F.on(t,e,i,n,a)})),off:E(O(H(function(t,e,i,n){var o=k(t,e);o.removeHandler(n,i)}))),trigger:E(P(function(t,e,i){var n=e.type,o=k(t,e.type);T.callMethod(n,"trigger",t,[e,i]),o.callHandlers(e,i);var a=T.getField(n,"noBubble")||e.isPropagationStopped()||x.indexOf(n)!==-1;if(!a){var r=[],l=function t(e){var i=e.parentNode;i&&(r.push(i),t(i))};l(t),r.push(c);for(var h=0;r[h]&&!e.isPropagationStopped();){var d=k(r[h],e.type);d.callHandlers(s(e,{currentTarget:r[h]}),i),h++}}(t.nodeType||p(t))&&(T.callMethod(n,"_default",t,[e,i]),R(n,t))})),triggerHandler:E(P(function(t,e,i){var n=k(t,e.type);n.callHandlers(e,i)}))}),L=function(t){t&&(F.Event=t,F.Event.prototype=t.prototype)};L($(function(t,e){var i=this,n=!1,o=!1,a=!1;s(i,t),(t instanceof F.Event||l.hasWindow()&&t instanceof c.Event)&&(i.originalEvent=t,i.currentTarget=void 0),t instanceof F.Event||s(i,{isPropagationStopped:function(){return!!(n||i.originalEvent&&i.originalEvent.propagationStopped)},stopPropagation:function(){n=!0,i.originalEvent&&i.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,i.originalEvent&&i.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||i.originalEvent&&i.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,i.originalEvent&&i.originalEvent.preventDefault()}}),N("which",V,i),0===t.type.indexOf("touch")&&(delete e.pageX,delete e.pageY),s(i,e),i.guid=++I}));var N=function(t,e,i){Object.defineProperty(i||F.Event.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&e(this.originalEvent)},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})};v(N);var W=u(),z=u();F.set=function(t){W.fire(),F.inject(t),L(t.Event),z.fire()},F.subscribeGlobal=function(){D(arguments,M(function(){var t=arguments;F.on.apply(this,t),W.add(function(){var e=Array.prototype.slice.call(t,0);e.splice(3,1),F.off.apply(this,e)}),z.add(function(){F.on.apply(this,t)})}))},t.exports=F},function(t,e,i){var n=i(12),o="undefined"!=typeof window,a=o&&window;a||(a={},a.window=a),t.exports={hasWindow:function(){return o},getWindow:function(){return a},hasProperty:function(t){return this.hasWindow()&&t in a},defaultScreenFactorFunc:function(t){return t<768?"xs":t<992?"sm":t<1200?"md":"lg"},getCurrentScreenFactor:function(t){var e=t||this.defaultScreenFactorFunc,i=n.getDocumentElement().clientWidth;return e(i)},openWindow:function(){return this.hasProperty("open")?a.open():null},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(t,e,i){var n=i(1),o=n.isPromise,a=n.isDeferred,s=i(0).extend,r=i(19),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=function(){var t=this;this._state="pending",this._promise={},l.forEach(function(e){var i=e.method;this[i+"Callbacks"]=new r,this[i]=function(){return this[i+"With"](this._promise,arguments)}.bind(this),this._promise[e.handler]=function(e){if(!e)return this;var n=t[i+"Callbacks"];return n.fired()?e.apply(t[i+"Context"],t[i+"Args"]):n.add(function(t,i){e.apply(t,i)}.bind(this)),this}}.bind(this)),this._promise.always=function(t){return this.done(t).fail(t)},this._promise.catch=function(t){return this.then(null,t)},this._promise.then=function(t,e){var i=new c;return["done","fail"].forEach(function(n){var s="done"===n?t:e;this[n](function(){if(!s)return void i["done"===n?"resolve":"reject"].apply(this,arguments);var t=s&&s.apply(this,arguments);a(t)?t.done(i.resolve).fail(i.reject):o(t)?t.then(i.resolve,i.reject):i.resolve.apply(this,t?[t]:arguments)})}.bind(this)),i.promise()},this._promise.state=function(){return t._state},this._promise.promise=function(e){return e?s(e,t._promise):t._promise},this._promise.promise(this)};l.forEach(function(t){var e=t.method,i=t.state;c.prototype[e+"With"]=function(t,n){var o=this[e+"Callbacks"];return"pending"===this.state()&&(this[e+"Args"]=n,this[e+"Context"]=t,i&&(this._state=i),o.fire(t,n)),this}}),e.fromPromise=function(t,e){if(a(t))return t;if(o(t)){var i=new c;return t.then(function(){i.resolveWith.apply(i,[e].concat([[].slice.call(arguments)]))},function(){i.rejectWith.apply(i,[e].concat([[].slice.call(arguments)]))}),i}return(new c).resolveWith(e,[t])};var h=function(){if(1===arguments.length)return e.fromPromise(arguments[0]);for(var t=[].slice.call(arguments),i=[],n=0,o=new c,s=function(e){return function(a){i[e]=this,t[e]=arguments.length>1?[].slice.call(arguments):a,n++,n===t.length&&o.resolveWith(i,t)}},r=0;r<t.length;r++)a(t[r])?t[r].promise().done(s(r)).fail(o.reject):n++;return n===t.length&&o.resolveWith(i,t),o.promise()};e.setStrategy=function(t){c=t.Deferred,h=t.when},e.Deferred=function(){return new c},e.when=function(){return h.apply(this,arguments)}},function(t,e,i){var n=i(2),o=i(137),a=i(17),s=i(99),r=function(t,e,i){i?e[t]=i:i=e,s.name(i,t),o.fire(t,i)},l=function(t,e){n.fn[t]=function(i){var n,o="string"==typeof i;if(o){var s=i,r=[].slice.call(arguments).slice(1);this.each(function(){var i=e.getInstance(this);if(!i)throw a.Error("E0009",t);var o=i[s],l=o.apply(i,r);void 0===n&&(n=l)})}else this.each(function(){var t=e.getInstance(this);t?t.option(i):new e(this,i)}),n=this;return n}};o.add(l),t.exports=r},function(t,e,i){var n=i(2),o=i(5),a=i(17),s=i(56).focused,r=i(0).extend,l=i(3).each,c=function(){var t={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(e){var i="other";return l(t,function(t){if(this.test(e.type))return i=t,!1}),i}}(),h=function(t){return"dx"===c(t)},d=function(t){return"mouse"===c(t)},u=function(t){return"touch"===c(t)},p=function(t){return"pointer"===c(t)},f=function(t){return d(t)||(p(t)||h(t))&&"mouse"===t.pointerType},_=function(t){return u(t)||(p(t)||h(t))&&"touch"===t.pointerType},m=function(t){return"keyboard"===c(t)},g=function(t){return 0===t.screenX&&!t.offsetX&&0===t.pageX},v=function(t){return{x:t.pageX,y:t.pageY,time:t.timeStamp}},y=function(t,e){return{x:e.x-t.x,y:e.y-t.y,time:e.time-t.time||1}},b=function(t){return u(t)?(t.originalEvent.touches||[]).length:h(t)?(t.pointers||[]).length:0},C=function(t){var e=n(t.target),i=e.is("input, textarea, select");return!!e.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||("dxmousewheel"===t.type?e.is("input[type='number'], textarea, select")&&e.is(":focus"):f(t)?i||t.which>1:_(t)?i&&s(e):void 0)},x=function(t){return t},w=function(t){x=t},S=function(t){return x(o.Event(t,t),t)},I=function(t,e){var i=S(t);return e&&r(i,e),i},T=function(t){var e=I(t.originalEvent,t);return o.trigger(t.delegateTarget||e.target,e),e},D=function t(e,i){if(!i)throw a.Error("E0017");return"string"==typeof e?e.indexOf(" ")===-1?e+"."+i:t(e.split(/\s+/g),i):(l(e,function(t,n){e[t]=n+"."+i}),e.join(" "))};t.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:_,isKeyboardEvent:m,isFakeClickEvent:g,hasTouches:b,eventData:v,eventDelta:y,needSkipEvent:C,createEvent:I,fireEvent:T,addNamespace:D,setEventFixMethod:w}},function(t,e,i){var n=i(17),o=i(1),a=function(t,e,i){return function(){var n=this.callBase;this.callBase=t[e];try{return i.apply(this,arguments)}finally{this.callBase=n}}},s=function(t){var e=function(){};return e.prototype=t.prototype,new e},r=function(t){var e,i,n,o=this;if(!t)return o;for(i in t)n=t[i],e="function"==typeof o.prototype[i]&&"function"==typeof n,o.prototype[i]=e?a(o.parent.prototype,i,n):n;return o},l=function(){var t,e,i,n=this;for(i=0;i<arguments.length;i++){t=arguments[i],t.ctor&&n._includedCtors.push(t.ctor),t.postCtor&&n._includedPostCtors.push(t.postCtor);for(e in t)"ctor"!==e&&"postCtor"!==e&&(n.prototype[e]=t[e])}return n},c=function(t){return this.parent===t||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(t)},h=function(){throw n.Error("E0001")},d=function(){var t=Object.prototype.hasOwnProperty;return function(e,i){for(var n in e){if(!t.call(e,n))return;i[n]=e[n]}}}(),u=function(){};u.inherit=function(t){var e=function(){if(!this||o.isWindow(this)||"function"!=typeof this.constructor)throw n.Error("E0003");var t,e=this,i=e.ctor,a=e.constructor._includedCtors,s=e.constructor._includedPostCtors;for(t=0;t<a.length;t++)a[t].call(e);for(i&&i.apply(e,arguments),t=0;t<s.length;t++)s[t].call(e)};return e.prototype=s(this),d(this,e),e.inherit=this.inherit,e.abstract=h,e.redefine=r,e.include=l,e.subclassOf=c,e.parent=this,e._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],e._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],e.prototype.constructor=e,e.redefine(t),e},u.abstract=h,t.exports=u},function(t,e,i){var n=i(1).isDefined,o=i(3).each,a=i(53),s=function(t){return Array.isArray(t)&&!t.length},r=function(t){return Array.isArray(t)?t:[t]},l=function(t,e){if(!Array.isArray(t)||0===t.length||!Array.isArray(e)||0===e.length)return[];var i=[];return o(t,function(t,n){var o=d(n,e);o!==-1&&i.push(n)}),i},c=function(t,e){if(!Array.isArray(t)||0===t.length)return[];if(!Array.isArray(e)||0===e.length)return t.slice();var i=[];return o(t,function(t,n){var o=d(n,e);o===-1&&i.push(n)}),i},h=function(t,e,i,s){var r={},l=0;return o(t,function(t,o){t=o[e],n(t)&&(r[t]=r[t]||[],o===i?r[t].unshift(o):r[t].push(o),delete o[e])}),a.orderEach(r,function(t,i){o(i,function(){t>=0&&(this[e]=l++)})}),o(t,function(){n(this[e])||s&&!s(this)||(this[e]=l++)}),l},d=function(t,e){if(!e)return-1;var i=Array.isArray(e)?e:e.toArray();return i.indexOf(t)},u=function(t,e){for(var i=0;i<e.length;i++)t[t.length]=e[i];return t};e.isEmpty=s,e.wrapToArray=r,e.intersection=l,e.removeDuplicates=c,e.normalizeIndexes=h,e.inArray=d,e.merge=u},function(t,e,i){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=i(55),a=i(4).noop,s={querySelectorAll:function(t,e){return t.querySelectorAll(e)},elementMatches:function(t,e){var i=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(e){for(var i=this.querySelectorAll(t.document||t.ownerDocument,e),n=0;n<i.length;n++)if(i[n]===t)return!0}.bind(this);return i.call(t,e)},createElement:function(t,e){return e=e||this._document,e.createElement(t)},createElementNS:function(t,e,i){return i=i||this._document,i.createElementNS(t,e)},createTextNode:function(t,e){return e=e||this._document,e.createTextNode(t)},isNode:function(t){return"object"===("undefined"==typeof t?"undefined":n(t))&&"nodeType"in t},isElementNode:function(t){return t&&t.nodeType===Node.ELEMENT_NODE},isTextNode:function(t){return t&&t.nodeType===Node.TEXT_NODE},isDocument:function(t){return t&&t.nodeType===Node.DOCUMENT_NODE},removeElement:function(t){var e=t&&t.parentNode;e&&e.removeChild(t)},insertElement:function(t,e,i){t&&e&&t!==e&&(i?t.insertBefore(e,i):t.appendChild(e))},setAttribute:function(t,e,i){t.setAttribute(e,i)},removeAttribute:function(t,e){t.removeAttribute(e)},setProperty:function(t,e,i){t[e]=i},setText:function(t,e){t&&(t.textContent=e)},setClass:function(t,e,i){if(1===t.nodeType&&e)if(t.classList)i?t.classList.add(e):t.classList.remove(e);else{var n=t.className.split(" "),o=n.indexOf(e);i&&o<0&&(t.className=t.className?t.className+" "+e:e),!i&&o>=0&&(n.splice(o,1),t.className=n.join(" "))}},setStyle:function(t,e,i){t.style[e]=i||""},_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(t){return t in this._document},listen:function(t,e,i,n){return t&&"addEventListener"in t?(t.addEventListener(e,i,n),function(){t.removeEventListener(e,i)}):a}};t.exports=o(s)},function(t,e,i){var n,o=i(2),a=i(12),s=i(6),r=s.getWindow(),l=i(5),c=i(17),h=i(11).inArray,d=i(1),u=d.isDefined,p=d.isRenderer,f=i(217),_=function(){var t=a.getActiveElement();t&&t!==a.getBody()&&t.blur&&t.blur()},m=function(){var t=r.getSelection();if(t&&"Caret"!==t.type)if(t.empty)t.empty();else if(t.removeAllRanges)try{t.removeAllRanges()}catch(t){}},g=function(t,e){var i=o(t),n=o(e);if(i[0]===n[0])return i[0];for(var a=i.parents(),s=n.parents(),r=Math.min(a.length,s.length),l=-r;l<0;l++)if(a.get(l)===s.get(l))return a.get(l)},v=function(t){var e=".dx-visibility-change-handler";return function(i){for(var n=o(i||"body"),a=n.filter(e).add(n.find(e)),s=0;s<a.length;s++)l.triggerHandler(a[s],t)}},y=function(){var t=0;return function(e){return(e||"")+t++}}(),b="data-options",C=function(t){var e,i=o(t).attr(b)||"";"{"!==i.trim().charAt(0)&&(i="{"+i+"}");try{e=new Function("return "+i)()}catch(t){throw c.Error("E3018",t,i)}return e},x=function(t,e){var i=[],n="["+b+"]",a=t.find(n).add(t.filter(n));return a.each(function(t,n){var a=o(n),s=C(n);for(var r in s)(!e||h(r,e)>-1)&&a[r]&&(a[r](s[r]),i.push(a[r]("instance")))}),i},w=function(t){if(!r.WinJS)return o(f.parseHTML(t));var e=o("<div>");return r.WinJS.Utilities.setInnerHTMLUnsafe(e.get(0),t),e.contents()},S=function t(e){var i=u(e)&&(e.nodeType||p(e))?o(e):o("<div>").html(e).contents();return 1===i.length&&(i.is("script")?i=t(i.html().trim()):i.is("table")&&(i=i.children("tbody").contents())),i},I=function(t,e,i){i?t.attr(e,i):t.removeAttr(e)},T=function(t,e){var i=t.originalEvent&&t.originalEvent.clipboardData||r.clipboardData;return 1===arguments.length?i&&i.getData("Text"):void(i&&i.setData("Text",e))},D=function(t,e){return!!e&&(e=a.isTextNode(e)?e.parentNode:e,a.isDocument(t)?t.body.contains(e):t.contains(e))},E=function(t){return n(t)},k=function(t){n=t};k(function(t){return t&&t.get(0)}),e.setPublicElementWrapper=k,e.resetActiveElement=_,e.createMarkupFromString=w,e.triggerShownEvent=v("dxshown"),e.triggerHidingEvent=v("dxhiding"),e.triggerResizeEvent=v("dxresize"),e.getElementOptions=C,e.createComponents=x,e.normalizeTemplateElement=S,e.clearSelection=m,e.uniqueId=y,e.closestCommonParent=g,e.clipboardText=T,e.toggleAttr=I,e.contains=D,e.getPublicElement=E},function(t,e,i){var n=i(2),o=i(6),a=o.getNavigator(),s=o.getWindow(),r=i(0).extend,l=i(1).isPlainObject,c=i(3).each,h=i(10),d=i(17),u=i(19),p=i(121),f=i(52),_=i(154).sessionStorage,m=i(73),g=i(29),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(t){var e=/windows phone/i.test(t)||t.match(/WPDesktop/),i=!e&&/Windows(.*)arm(.*)Tablet PC/i.test(t),n=!e&&!i&&/msapphost/i.test(t);if(e||i||n){var o=t.match(/windows phone (\d+).(\d+)/i)||t.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=t.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:e?"phone":i?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(t){if(/ip(hone|od|ad)/i.test(t)){var e=/ip(hone|od)/i.test(t),i=t.match(/os (\d+)_(\d+)_?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]:[],o=480===s.screen.height,a=o?"B":"A";return{deviceType:e?"phone":"tablet",platform:"ios",version:n,grade:a}}},android:function(t){if(/android|htc_|silk/i.test(t)){var e=/mobile/i.test(t),i=t.match(/android (\d+)\.(\d+)\.?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]:[],o=n.length>1&&(n[0]<4||4===n[0]&&n[1]<4),a=o?"B":"A";return{deviceType:e?"phone":"tablet",platform:"android",version:n,grade:a}}}},C=h.inherit({ctor:function(t){this._window=t&&t.window||s,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=u(),o.hasWindow()&&(this._recalculateOrientation(),p.add(this._recalculateOrientation.bind(this)))},current:function(t){if(t)return this._currentDevice=this._getDevice(t),this._forced=!0,void this.changed.fire();if(!this._currentDevice){t=void 0;try{t=this._getDeviceOrNameFromWindowScope()}catch(e){t=this._getDeviceNameFromSessionStorage()}finally{t||(t=this._getDeviceNameFromSessionStorage()),t&&(this._forced=!0)}this._currentDevice=this._getDevice(t)}return this._currentDevice},real:function(){return r({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(t){var e=[],i=this._realDevice;return t=t||this.current(),t.deviceType&&(e.push("dx-device-"+t.deviceType),"desktop"!==t.deviceType&&e.push("dx-device-mobile")),e.push("dx-device-"+i.platform),i.version&&i.version.length&&e.push("dx-device-"+i.platform+"-"+i.version[0]),x.isSimulator()&&e.push("dx-simulator"),g().rtlEnabled&&e.push("dx-rtl"),e},attachCssClasses:function(t,e){this._deviceClasses=this._getCssClasses(e).join(" "),n(t).addClass(this._deviceClasses)},detachCssClasses:function(t){n(t).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(t){return!1}},forceSimulator:function(){this._isSimulator=!0},_getDevice:function(t){if("genericPhone"===t&&(t={deviceType:"phone",platform:"generic",generic:!0}),l(t))return this._fromConfig(t);var e;if(t){if(e=v[t],!e)throw d.Error("E0005")}else e=a.userAgent;return this._fromUA(e)},_getDeviceOrNameFromWindowScope:function(){var t;return o.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(t=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),t},_getDeviceNameFromSessionStorage:function(){var t=_();if(t){var e=t.getItem("dx-force-device");try{return JSON.parse(e)}catch(t){return e}}},_fromConfig:function(t){var e=r({},y,this._currentDevice,t),i={phone:"phone"===e.deviceType,tablet:"tablet"===e.deviceType,android:"android"===e.platform,ios:"ios"===e.platform,win:"win"===e.platform,generic:"generic"===e.platform};return r(e,i)},_fromUA:function(t){var e;if(c(b,function(i,n){return e=n(t),!e}),e)return this._fromConfig(e);var i=/(mac os)/.test(t.toLowerCase()),n=y;return n.mac=i,n},_changeOrientation:function(){var t=n(this._window),e=t.height()>t.width()?"portrait":"landscape";this._currentOrientation!==e&&(this._currentOrientation=e,this.fireEvent("orientationChanged",[{orientation:e}]))},_recalculateOrientation:function(){var t=n(this._window).width();this._currentWidth!==t&&(this._currentWidth=t,this._changeOrientation())}}).include(f),x=new C;m.changeCallback.add(function(t,e){x.detachCssClasses(e),x.attachCssClasses(t)}),x.isForced()||"win"!==x.current().platform||x.current({version:[10]}),t.exports=x},function(t,e,i){var n=i(2),o=i(55),a=i(0).extend,s=i(3).each,r=i(39).format,l=i(36).humanize,c=i(81);i(81);var h="-",d=a(!0,{},i(320)),u=i(321),p=function(t){var e=u[t];return e?"root"!==e&&e:t.substr(0,t.lastIndexOf(h))},f=function(t,e){return t[e]||{}},_=function(t,e,i){for(var n,o=f(t,e)[i];!o&&!n;)e=p(e),e?o=f(t,e)[i]:n=!0;return o},m={},g=o({_dictionary:d,load:function(t){a(!0,this._dictionary,t)},_localizablePrefix:"@",setup:function(t){this._localizablePrefix=t},localizeString:function(t){var e=this,i=new RegExp("(^|[^a-zA-Z_0-9"+e._localizablePrefix+"-]+)("+e._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),n=e._localizablePrefix+e._localizablePrefix;return t.replace(i,function(t,i,o,a){var s,r=e._localizablePrefix+a;return o!==n&&(s=e.format(a)),s||(m[a]=l(a)),i+(s||r)})},_messageLoaded:function(t,e){return void 0!==_(this._dictionary,e||c.locale(),t)},localizeNode:function(t){var e=this;n(t).each(function(t,i){i.nodeType&&(3===i.nodeType?i.nodeValue=e.localizeString(i.nodeValue):n(i).is("iframe")||(s(i.attributes||[],function(t,i){if("string"==typeof i.value){var n=e.localizeString(i.value);i.value!==n&&(i.value=n)}}),n(i).contents().each(function(t,i){e.localizeNode(i)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(t){return t?m:a({},m,this.getMessagesByLocales()[c.locale()])},getFormatter:function(t){return this._getFormatterBase(t)||this._getFormatterBase(t,"en");
},_getFormatterBase:function(t,e){var i=_(this._dictionary,e||c.locale(),t);if(i)return function(){var t=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return t.unshift(i),r.apply(this,t)}},format:function(t){var e=this.getFormatter(t),i=Array.prototype.slice.call(arguments,1);return e&&e.apply(this,i)||""}});t.exports=g},,function(t,e,i){var n=i(101);t.exports=n({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.",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",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(t,e,i){var n=i(2),o=i(5),a=i(14),s=i(12),r=i(13),l=i(105),c=i(9),h=i(25),d=i(108),u=i(84),p=i(59).compare,f="dxclick",_=10,m=Math.abs,g=function(t){return n(t).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},y=d.inherit({ctor:function(t){this.callBase(t),this._makeElementClickable(n(t))},_makeElementClickable:function(t){t.attr("onclick")||t.attr("onclick","void(0)")},start:function(t){this._blurPrevented=t.isDefaultPrevented(),this._startTarget=t.target,this._startEventData=c.eventData(t)},end:function(t){return this._eventOutOfElement(t,this.getElement().get(0))||t.type===h.cancel?void this._cancel(t):(g(t.target)||this._blurPrevented||r.resetActiveElement(),this._accept(t),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(t)}.bind(this))))},_eventOutOfElement:function(t,e){var i=t.target,n=!r.contains(e,i)&&e!==i,o=c.eventDelta(c.eventData(t),this._startEventData),a=m(o.x)>_||m(o.y)>_;return n||a},_fireClickEvent:function(t){this._fireEvent(f,t,{target:r.closestCommonParent(this._startTarget,t.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var t="dx-native-click",e=a.real(),i=e.generic||e.ios&&p(e.version,[9,3])>=0||e.android&&p(e.version,[5])>=0,s=function(e){return i||n(e).closest("."+t).length},r=null,l=null,h=function(t){var e=t.originalEvent,i=l!==e,n=!t.which||1===t.which;n&&!r&&s(t.target)&&i&&(l=e,c.fireEvent({type:f,originalEvent:t}))};y=y.inherit({_makeElementClickable:function(t){s(t)||this.callBase(t),o.on(t,"click",h)},configure:function(e){this.callBase(e),e.useNative&&this.getElement().addClass(t)},start:function(t){r=null,s(t.target)||this.callBase(t)},end:function(t){s(t.target)||this.callBase(t)},cancel:function(){r=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",h)}})}(),function(){var t=a.real().generic;if(!t){var e=null,i=!1,l=function(t){e=t.target,i=t.isDefaultPrevented()},d=function(t){var o=n(t.target);i||!e||o.is(e)||n(e).is("label")||!g(o)||r.resetActiveElement(),e=null,i=!1},u="NATIVE_CLICK_FIXER",p=s.getDocument();o.subscribeGlobal(p,c.addNamespace(h.down,u),l),o.subscribeGlobal(p,c.addNamespace("click",u),d)}}(),u({emitter:y,bubble:!0,events:[f]}),e.name=f},function(t,e,i){var n=function(t){this._options=t||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};n.prototype._fireCore=function(t,e){var i=this._firingIndexes,n=this._list,o=this._options.stopOnFalse,a=i.length;for(i[a]=0;i[a]<n.length;i[a]++){var s=n[i[a]].apply(t,e);if(s===!1&&o)break}i.pop()},n.prototype.add=function(t){return"function"!=typeof t||this._options.unique&&this.has(t)||this._list.push(t),this},n.prototype.remove=function(t){var e=this._list,i=this._firingIndexes,n=e.indexOf(t);if(n>-1&&(e.splice(n,1),this._firing&&i.length))for(var o=0;o<i.length;o++)n<=i[o]&&i[o]--;return this},n.prototype.has=function(t){var e=this._list;return t?e.indexOf(t)>-1:!!e.length},n.prototype.empty=function(t){return this._list=[],this},n.prototype.fireWith=function(t,e){var i=this._queue;if(e=e||[],e=e.slice?e.slice():e,this._options.syncStrategy)this._firing=!0,this._fireCore(t,e);else{if(i.push([t,e]),this._firing)return;for(this._firing=!0;i.length;){var n=i.shift();this._fireCore(n[0],n[1])}}return this._firing=!1,this._fired=!0,this},n.prototype.fire=function(){this.fireWith(this,arguments)},n.prototype.fired=function(){return this._fired};var o=function(t){return new n(t)};t.exports=o},function(t,e,i){function n(){if(!k.hasWindow())return null;var t,e=D("<div>",y).addClass("dx-theme-marker").appendTo(y.documentElement);try{return(t=e.css("fontFamily"))?(t=t.replace(/["']/g,""),t.substr(0,U.length)!==U?null:t.substr(U.length)):null}finally{e.remove()}}function o(t){function e(){w=null,F.fire(),F.empty()}var i;w=t,a()?e():(i=Date.now(),I=setInterval(function(){var t=a(),n=!t&&Date.now()-i>15e3;n&&M.log("W0004",w),(t||n)&&(clearInterval(I),I=void 0,e())},10))}function a(){return!w||n()===w}function s(){var t=D(W,y);t.length&&(C={},b=D(O.createMarkupFromString("<link rel=stylesheet>"),y),t.each(function(){var t=D(this,y),e=t.attr(z),i=t.attr("href"),n="true"===t.attr(K);C[e]={url:i,isActive:n}}),t.last().after(b),t.remove())}function r(t){var e=t.split("."),i=null;if(C){if(t in C)return t;H(C,function(t,n){var o=t.split(".");if(o[0]===e[0]&&!(e[1]&&e[1]!==o[1]||e[2]&&e[2]!==o[2]))return i&&!n.isActive||(i=t),!n.isActive&&void 0})}return i}function l(t){try{t!==y&&(C=null)}catch(t){C=null}y=t}function c(t){t=t||{},l(t.context||E.getDocument()),y&&(s(),x=void 0,S=void 0,h(t))}function h(t){if(!arguments.length)return x=x||n();f(L()),t=t||{},"string"==typeof t&&(t={theme:t});var e,i=t._autoInit,a=t.loadCallback;if(x=t.theme||x,i&&!x&&(x=d(R.current())),x=r(x),x&&(e=C[x]),a&&F.add(a),e)b.attr("href",C[x].url),!F.has()&&!t._forceTimeout||I?w&&(w=x):o(x);else{if(!i)throw M.Error("E0021",x);F.fire(),F.empty()}S=/material/.test(x||n()),g(),p(V.originalViewPort(),x)}function d(t){var e=t.platform,i=t.version&&t.version[0];switch(e){case"ios":e+="7";break;case"android":e+="5";break;case"win":e+=i&&8===i?"8":"10"}return e}function u(t){t=t||h();var e=[],i=t&&t.split(".");return i&&(e.push("dx-theme-"+i[0],"dx-theme-"+i[0]+"-typography"),i.length>1&&e.push("dx-color-scheme-"+i[1]+(m()?"-"+i[2]:""))),e}function p(t,e){T=u(e).join(" "),D(t).addClass(T);var i=function(){var e=k.hasWindow()&&B.devicePixelRatio;if(e&&!(e<2)){var i=D("<div>");i.css("border",".5px solid transparent"),D("body").append(i),1===i.outerHeight()&&(D(t).addClass(G),T+=" "+G),i.remove()}};i()}function f(t){D(t).removeClass(T)}function _(t){F.add(t)}function m(){return S}function g(){var t=x||n();/win8/.test(t)&&M.log("W0010","The 'win8' theme","16.1","Use the 'generic' theme instead."),/win10/.test(t)&&M.log("W0010","The 'win10' theme","17.2","Use the 'generic' theme instead."),/android/.test(t)&&M.log("W0010","The 'android5' theme","18.1","Use the 'material' theme instead.")}function v(){if(c({_autoInit:!0,_forceTimeout:!0}),D(W,y).length)throw M.Error("E0022");j.resolve()}var y,b,C,x,w,S,I,T,D=i(2),E=i(12),k=i(6),B=k.getWindow(),A=i(7).Deferred,M=i(21),O=i(13),P=i(50),$=P.add,H=i(3).each,R=i(14),V=i(73),F=i(231),L=V.value,N=V.changeCallback,W="link[rel=dx-theme]",z="data-theme",K="data-active",G="dx-hairlines",U="dx.",j=new A;k.hasWindow()?v():$(v),N.add(function(t,e){j.done(function(){f(e),p(t)})}),R.changed.add(function(){c({_autoInit:!0})}),e.current=h,e.ready=_,e.init=c,e.attachCssClasses=p,e.detachCssClasses=f,e.themeNameFromDevice=d,e.waitForThemeLoad=o,e.isMaterial=m,e.resetTheme=function(){b&&b.attr("href","about:blank"),x=null,w=null,S=!1}},function(t,e,i){var n=i(101),o=i(17);t.exports=n(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}",E1036:"Validation rules are not defined for any form item",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 JSZip script is referenced after the DevExtreme scripts or not referenced at all",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the '{0}' error",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects"})},function(t,e,i){var n=i(17),o=i(10),a=i(53),s=i(1),r=i(3).each,l=i(71),c=l.unwrap,h=l.isWrapped,d=l.assign,u=function(t){return t.replace(/\[/g,".").replace(/\]/g,"")},p=function(t,e,i){return i=i||{},"this"===e?m(t,i):m(t[e],i)},f=function(t,e,i,o){if("this"===e)throw new n.Error("E4016");var a=t[e];o.unwrapObservables&&h(a)?d(a,i):t[e]=i},_=function(t){return t=t||{},t.unwrapObservables=void 0===t.unwrapObservables||t.unwrapObservables,t},m=function(t,e){return e.unwrapObservables?c(t):t},g=function(t){if(arguments.length>1&&(t=[].slice.call(arguments)),!t||"this"===t)return function(t){return t};if("string"==typeof t){t=u(t);var e=t.split(".");return function(t,i){i=_(i);for(var n=i.functionsAsIs,o=m(t,i),a=0;a<e.length&&o;a++){var r=m(o[e[a]],i);!n&&s.isFunction(r)&&(r=r.call(o)),o=r}return o}}return Array.isArray(t)?v(t):s.isFunction(t)?t:void 0},v=function(t){for(var e={},i=0,n=t.length;i<n;i++){var o=t[i];e[o]=g(o)}return function(t,i){var n;return r(e,function(e){var o,a,s,r,l=this(t,i);if(void 0!==l){for(o=n||(n={}),a=e.split("."),s=a.length-1,r=0;r<s;r++)o=o[a[r]]={};o[a[r]]=l}}),n}},y=function(t,e,i,n){if(s.isDefined(i))return i;var o={};return f(t,e,o,n),o},b=function(t){t=u(t||"this").split(".");var e=t.length-1;return function(i,n,o){o=_(o);var r=m(i,o);t.forEach(function(t,i){var l=p(r,t,o),c=!o.functionsAsIs&&s.isFunction(l)&&!h(l);i===e?o.merge&&s.isPlainObject(n)&&(!s.isDefined(l)||s.isPlainObject(l))?(l=y(r,t,l,o),a.deepExtendArraySafe(l,n,!1,!0)):c?r[t](n):f(r,t,n,o):(l=y(r,t,l,o),c&&(l=l.call(r)),r=l)})}},C=function(t,e){return t instanceof Date?t.getTime():t&&t instanceof o&&t.valueOf?t.valueOf():e||"string"!=typeof t?t:t.toLowerCase()};e.compileGetter=g,e.compileSetter=b,e.toComparable=C},function(t,e,i){function n(t){return C[b(t)]||""}function o(t,e,i){var n=new Date(t.getTime()),o=h(e)?F(e.toLowerCase()):e;return o.years&&n.setFullYear(n.getFullYear()+o.years*i),o.quarters&&n.setMonth(n.getMonth()+3*o.quarters*i),o.months&&n.setMonth(n.getMonth()+o.months*i),o.weeks&&n.setDate(n.getDate()+7*o.weeks*i),o.days&&n.setDate(n.getDate()+o.days*i),o.hours&&n.setTime(n.getTime()+36e5*o.hours*i),o.minutes&&n.setTime(n.getTime()+6e4*o.minutes*i),o.seconds&&n.setTime(n.getTime()+1e3*o.seconds*i),o.milliseconds&&n.setTime(n.getTime()+o.milliseconds*i),n}var a=i(1),s=i(33).adjust,r=i(3).each,l=i(36).camelize,c=a.isObject,h=a.isString,d=a.isDate,u=a.isDefined,p=["millisecond","second","minute","hour","day","week","month","quarter","year"],f=function t(e){switch(e){case"millisecond":return 1;case"second":return 1e3*t("millisecond");case"minute":return 60*t("second");case"hour":return 60*t("minute");case"day":return 24*t("hour");case"week":return 7*t("day");case"month":return 30*t("day");case"quarter":return 3*t("month");case"year":return 365*t("day");default:return 0}},_=function(t,e,i){var n=e.getTime()-t.getTime(),o=f(i)||1;return Math.floor(n/o)},m=function(t,e){var i=b(t);switch(i){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return e?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},g=function(t){var e,i,n,o=["millisecond","second","minute","hour","day","month","year"],a={};for(e=o.length-1;e>=0;e--)n=o[e],i=Math.floor(t/f(n)),i>0&&(a[n+"s"]=i,t-=y(n,i));return a},v=function(t){var e=0;return c(t)&&r(t,function(t,i){e+=y(t.substr(0,t.length-1),i)}),h(t)&&(e=y(t,1)),e},y=function(t,e){return f(t)*e},b=function(t){var e,i=-1;return h(t)?t:c(t)?(r(t,function(t,n){for(e=0;e<p.length;e++)n&&(t===p[e]+"s"||t===p[e])&&i<e&&(i=e)}),p[i]):""},C={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},x=function(t){return Math.floor(t/3)},w=function(t){return 3*x(t)},S=function(t,e,i,n){t=new Date(t.getTime());var o,a=new Date(t.getTime()),s=b(e);switch(s){case"second":t=new Date(1e3*Math.floor(a.getTime()/1e3));break;case"minute":t=new Date(6e4*Math.floor(a.getTime()/6e4));break;case"hour":t=new Date(36e5*Math.floor(a.getTime()/36e5));break;case"year":t.setMonth(0);case"m