tiseza_oss_live/Scripts/dx.web.js

106 lines
2.9 MiB

/*!
* DevExtreme (dx.web.js)
* Version: 19.2.5
* Build date: Mon Dec 16 2019
*
* Copyright (c) 2012 - 2019 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=892)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,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],u=a[r],d=!1;"__proto__"!==r&&t!==u&&(o&&u&&(i(u)||(d=Array.isArray(u)))?(s=d?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,u)):void 0!==u&&(t[r]=u))}}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)},u=function(e){return null!==e&&void 0!==e},d=function(e){return"function"==typeof e},c=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&&d(e.then)},w=function(e){return e&&d(e.done)&&d(e.fail)};t.isBoolean=r,t.isExponential=s,t.isDate=l,t.isDefined=u,t.isFunction=d,t.isString=c,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=w,t.type=a},function(e,t,n){var i=n(215);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(28),r=i(a),s=n(34),l=i(s),u=n(6),d=n(18),c=n(3),h=n(1),p=function(e,t){return(0,h.isDefined)(e)?e:t},f=function(e,t){var n=new u.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 u.Deferred,m.push(n),n;var i=v,o=m.length;v=e;var a=t();return a||(m.length>o?a=u.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()?w:x)(g.shift(),m.shift()),a||(0,u.when)()},w=function(e,t){return y("render",e,t)},x=function(e,t){return y("update",e,t)},b=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,c.each)(t,function(t,a){var r=0,s=n?n(a):a;(0,c.each)(e,function(e,t){var n=s[e];if(void 0!==n)return I(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(i.length=0,o=r),i.push(a))}),i},I=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,c.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},S=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}},D=function(e){var t=(0,h.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,c.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},T=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){var n=S(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}},O=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},A=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},P=function(e){var t=(0,r.default)().serverDecimalSeparator;return(0,h.isDefined)(e)&&(e=e.toString().replace(".",t)),e},B=function(){},M=function(){return(new u.Deferred).resolve().promise()},F=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},R=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!L(e[i],t[i],n+1))return!1;return!0},V=function(e,t,n){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!L(e[i],t[i],n+1))return!1;for(var o in t)if(!(o in e))return!1;return!0},H=3,L=function(e,t,n){return n=n||0,e=(0,d.toComparable)(e,!0),t=(0,d.toComparable)(t,!0),e===t||n>=H||((0,h.isObject)(e)&&(0,h.isObject)(t)?V(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&R(e,t,n))};t.ensureDefined=p,t.executeAsync=f,t.deferRender=w,t.deferRenderer=b,t.deferUpdate=x,t.deferUpdater=C,t.pairToObject=E,t.splitPair=S,t.findBestMatches=k,t.normalizeKey=D,t.denormalizeKey=T,t.getKeyHash=O,t.escapeRegExp=A,t.applyServerDecimalSeparator=P,t.noop=B,t.asyncNoop=M,t.grep=F,t.equalByValue=L},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(114),r=n(0).extend,s=n(12),l=n(7),u=l.getWindow(),d=n(53),c=n(1),h=n(26),p=c.isWindow,f=c.isFunction,g=c.isString,_=n(21),m=n(180),v=n(216),y=n(61),w="dxEmptyEventType",x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},b={focusin:"focus",focusout:"blur"},C=["blur","focus","load"],k=["touchmove","wheel","mousewheel","touchstart"],I=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},S=new m,D=0,T=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)})}},O=function(e){return function(){E(arguments,e)}},A=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});u.addEventListener("test",null,t)}catch(e){}return e},P=y(A),B=function(e,t){var n=S.get(e);t=t||"";var o=t.split("."),a=o.slice(1),r=!!o[0];t=o[0]||w,n||(n={},S.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,u){var d=function(i,o){var a,r,s=[i],l=i.currentTarget,d=i.relatedTarget;t in x&&(a=d&&l&&(d===l||l.contains(d))),void 0!==o&&s.push(o),T.callMethod(t,"handle",e,[i,u]),a||(r=n.apply(l,s)),r===!1&&(i.preventDefault(),i.stopPropagation())},c=function(t,n){if(!i||t.type!==i)if(t.data=u,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)I(a,o)&&(t.currentTarget=a,d(t,n)),a=a.parentNode;else t.currentTarget=t.delegateTarget||t.target,d(t,n)},h={handler:n,wrappedHandler:c,selector:o,type:t,data:u,namespace:a.join("."),namespaces:a,guid:++D};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&r;g&&(g=!T.callMethod(t,"setup",e,[u,a,n])),g&&(l.nativeHandler=M(t),P()&&k.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,p)),T.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&&!F(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return r||(s=n.handler,T.callMethod(t,"remove",e,[n])),r});var l=!r.handleObjects.length,u=l&&t!==w;u&&(T.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 u=0===Object.keys(n).length;u&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!F(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[w]&&n[w].handleObjects.forEach(o)}}},M=function(e){return function(t,n){var i=B(this,e);t=W.Event(t),i.callHandlers(t,n)}},F=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},R=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)}},V=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},H=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)}},L=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)}},$=function(e,t){var n=b[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)},N=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=d({on:O(R(z(function(e,t,n,i,o){var a=B(e,t);a.addHandler(o,n,i)}))),one:O(R(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:O(V(z(function(e,t,n,i){var o=B(e,t);o.removeHandler(i,n)}))),trigger:O(H(function(e,t,n){var i=t.type,o=B(e,t.type);T.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=T.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(u);for(var d=0;s[d]&&!t.isPropagationStopped();){var c=B(s[d],t.type);c.callHandlers(r(t,{currentTarget:s[d]}),n),d++}}(e.nodeType||p(e))&&(T.callMethod(i,"_default",e,[t,n]),$(i,e))})),triggerHandler:O(H(function(e,t,n){var i=B(e,t.type);i.callHandlers(t,n)}))}),j=function(e){e&&(W.Event=e,W.Event.prototype=e.prototype)};j(L(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof W.Event||l.hasWindow()&&e instanceof u.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,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++D}));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 G=h(),K=h();W.set=function(e){G.fire(),W.inject(e),j(e.Event),K.fire()},W.subscribeGlobal=function(){E(arguments,R(function(){var e=arguments;W.on.apply(this,e),G.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=P,e.exports=W},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(26),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],u=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new u;return["done","fail"].forEach(function(r){var s="done"===r?e:t;this[r](function(){if(!s)return void n["done"===r?"resolve":"reject"].apply(this,arguments);var e=s&&s.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,i.isDefined(e)?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;u.prototype[t+"With"]=function(e,i){var 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 u;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new u).resolveWith(t,[e])};var d=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new u,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){u=e.Deferred,d=e.when},t.Deferred=function(){return new u},t.when=function(){return d.apply(this,arguments)}},function(e,t,n){var i=n(12),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){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(21),u=i(l),d=n(65),c=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)},w=function(e){return m(e)||(y(e)||_(e))&&"mouse"===e.pointerType},x=function(e){return e&&"dxmousewheel"===e.type},b=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},I=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},S=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},D=function(e){return v(e)?(e.originalEvent.touches||[]).length:_(e)?(e.pointers||[]).length:0},T=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(x(e)){var o=n.is("textarea")&&n.hasClass("dx-texteditor-input");if(o)return!1;var r=t.isContentEditable||t.hasAttribute("contenteditable");if(r)return!1;var s=n.is("input[type='number'], textarea, select")&&n.is(":focus");return s}return w(e)?i||e.which>1:b(e)?i&&(0,d.focused)(n):void 0},E=function(e){return e},O=function(e){E=e},A=function(e){return E(s.default.Event(e,e),e)},P=function(e,t){var n=A(e);return t&&(0,c.extend)(n,t),n},B=function(e){var t=P(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},M=function e(t,n){if(!n)throw u.default.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):((0,h.each)(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},F=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)},R=function(e){return e.key||String.fromCharCode(e.which)};e.exports={eventSource:g,isPointerEvent:y,isMouseEvent:w,isDxMouseWheelEvent:x,isTouchEvent:b,isKeyboardEvent:C,isFakeClickEvent:k,hasTouches:D,eventData:I,eventDelta:S,needSkipEvent:T,createEvent:P,fireEvent:B,addNamespace:M,setEventFixMethod:O,normalizeKeyName:F,getChar:R}},function(e,t,n){var i=n(2),o=n(153),a=n(21),r=n(131),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(53),s=i(r),l=n(0),u=n(3),d=n(45),c=n(33),h=n(76),p=i(h),f=n(463),g=i(f),_=(0,l.extend)(!0,{},g.default),m=function(e,t){return e[t]||{}},v={},y=(0,s.default)({engine:function(){return"base"},_dictionary:_,load:function(e){(0,l.extend)(!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=t._localizablePrefix+a,s=void 0;return o!==i&&(s=t.format(a)),s||(v[a]=(0,c.humanize)(a)),n+(s||r)})},localizeNode:function(e){var t=this;(0,a.default)(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):(0,a.default)(n).is("iframe")||((0,u.each)(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),(0,a.default)(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?v:(0,l.extend)({},v,this.getMessagesByLocales()[p.default.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=this,i=p.default.getValueByClosestLocale(function(t){return m(n._dictionary,t)[e]});if(i)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(i),d.format.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=y},function(e,t,n){var i,o=n(2),a=n(28),r=n(12),s=n(7),l=s.getWindow(),u=n(5),d=n(14).inArray,c=n(1),h=c.isDefined,p=c.isRenderer,f=n(217),g=function(){var e=r.getActiveElement(),t=r.getBody();if(e&&e!==t&&e.blur)try{e.blur()}catch(e){t.blur()}},_=function(){var e=l.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},m=function(e,t){var n=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++)u.triggerHandler(a[r],e)}},y=function(){var e=0;return function(t){return(t||"")+e++}}(),w="data-options",x=function(e){var t=o(e).attr(w)||"";return a().optionsParser(t)},b=function(e,t){var n=[],i="["+w+"]",a=e.find(i).add(e.filter(i));return a.each(function(e,i){var a=o(i),r=x(i);for(var s in r)(!t||d(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())},I=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},S=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))},T=function(e){return i(e)},E=function(e){i=e};E(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=E,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=b,t.extractTemplateMarkup=k,t.normalizeTemplateElement=I,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=S,t.contains=D,t.getPublicElement=T,t.createTextElementHiddenCopy=O},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(53),r=i(a),s=n(4),l=1,u=3,d=9,c={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=this,i=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var i=e.document||e.ownerDocument;if(!i)return!1;for(var o=n.querySelectorAll(i,t),a=0;a<o.length;a++)if(o[a]===e)return!0};return i.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":o(e))&&"nodeType"in e},isElementNode:function(e){return e&&e.nodeType===l},isTextNode:function(e){return e&&e.nodeType===u},isDocument:function(e){return e&&e.nodeType===d},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="string"==typeof e.className,o=i?e.className:this.getAttribute(e,"class")||"",a=o.split(" "),r=a.indexOf(t),s=void 0;n&&r<0&&(s=o?o+" "+t:t),!n&&r>=0&&(a.splice(r,1),s=a.join(" ")),void 0!==s&&(i?e.className=s:this.setAttribute(e,"class",s))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):s.noop}};e.exports=(0,r.default)(c)},,function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(47),r=n(28),s=function(e){return Array.isArray(e)&&!e.length},l=function(e){return Array.isArray(e)?e:[e]},u=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return o(e,function(e,i){var o=h(i,t);o!==-1&&n.push(i)}),n},d=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},c=function(e,t,n,s){var l={},u=0,d=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}),d||o(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}}),u=0,a.orderEach(l,function(e,n){o(n,function(){e>=0&&(this[t]=u++)})}),d&&o(e,function(){i(this[t])||s&&!s(this)||(this[t]=u++)}),u},h=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},p=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e},f=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]};t.isEmpty=s,t.wrapToArray=l,t.intersection=u,t.removeDuplicates=d,t.normalizeIndexes=c,t.inArray=h,t.merge=p,t.find=f},function(e,t,n){var i=n(21),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=Object.prototype.hasOwnProperty.bind(i),a=!o("_includedCtors")&&!o("_includedPostCtors");for(a&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},u=function(e){var t=Object.prototype.hasOwnProperty.bind(this)("parent"),n=!t&&this.parent;if(n){var i=Object.getPrototypeOf(this);return i===e||i.subclassOf(e)}return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},d=function(){throw i.Error("E0001")},c=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),c(this,t),t.inherit=this.inherit,t.abstract=d,t.redefine=s,t.include=l,t.subclassOf=u,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},h.abstract=d,e.exports=h},function(e,t,n){var i=n(2),o=n(7),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,u=n(3).each,d=n(15),c=n(21),h=n(26),p=n(130),f=n(82),g=n(288).sessionStorage,_=n(73),m=n(28),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},y={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},w={generic: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),o=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||n||i||o)return{deviceType:t?"phone":n?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:o}},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]||0,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}}}},x=d.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]),b.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 c.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,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;return u(w,function(n,i){return t=i(e),!t}),t?this._fromConfig(t):y},_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),b=new x;_.changeCallback.add(function(e,t){b.detachCssClasses(t),b.attachCssClasses(e)}),e.exports=b},function(e,t,n){var i=n(2),o=n(5),a=n(111),r=n(0).extend,s=n(14).inArray,l=n(3).each,u=n(4),d=n(1),c=n(12),h=n(161),p=n(162),f=n(65),g=n(8),_=n(140),m=n(133),v=n(20),y="UIFeedback",w="dx-widget",x="dx-state-active",b="dx-state-disabled",C="dx-state-invisible",k="dx-state-hover",I="dx-state-focused",S=30,D=400,T="Focus",E=h.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return r(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,_keyboardProcessor:void 0})},_feedbackShowTimeout:S,_feedbackHideTimeout:D,_init:function(){this.callBase(),this._initContentReadyAction()},_clearInnerOptionCache:function(e){this[e+"Cache"]={}},_cacheInnerOptions:function(e,t){var n=e+"Cache";this[n]=r(this[n],t)},_getOptionsFromContainer:function(e){var t=e.name,n=e.fullName,i=e.value,o={};if(t===n)o=i;else{var a=n.split(".").pop();o[a]=i}return o},_innerOptionChanged:function(e,t){var n=this._getOptionsFromContainer(t);e&&e.option(n),this._cacheInnerOptions(t.name,n)},_getInnerOptionsCache:function(e){return this[e+"Cache"]},_initInnerOptionCache:function(e){this._clearInnerOptionCache(e),this._cacheInnerOptions(e,this.option(e))},_bindInnerWidgetOptions:function(e,t){this._options[t]=r({},e.option()),e.on("optionChanged",function(e){this._options[t]=r({},e.component.option())}.bind(this))},_getAriaTarget:function(){return this._focusTarget()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(w),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){var e=this.option("hint");this.$element().attr("title",e?e:null)},_renderContent:function(){var e=this;u.deferRender(function(){if(!e._disposed)return e._renderContentImpl()}).done(function(){e._disposed||e._fireContentReadyAction()})},_renderContentImpl:u.noop,_fireContentReadyAction:u.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(C,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=g.addNamespace(v.name,y);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){g.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+b)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusEventTarget(),t=this.NAME+T,n=g.addNamespace("focusin",t);n=n+" "+g.addNamespace("focusout",t),c.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+g.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+T,t=g.addNamespace("focusin",e),n=g.addNamespace("focusout",e),a=this._focusEventTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),c.hasDocumentProperty("onbeforeactivate")){var r=g.addNamespace("beforeactivate",e);o.on(this._focusEventTarget(),r,function(e){i(e.target).is(f.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget:function(){return this._focusTarget()},_focusInHandler:function(e){if(!e.isDefaultPrevented()){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})}},_focusOutHandler:function(e){if(!e.isDefaultPrevented()){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})}},_updateFocusState:function(e,t){var n=e.target;s(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(I,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(I)},_isFocused:function(){return this._hasFocusClass()},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._disposeKeyboardProcessor(),this._keyboardProcessor=new p({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.keyName,i=e.which,o=this._supportedKeys(t),a=o[n]||o[i];if(void 0!==a){var r=a.bind(this);return r(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._disposeKeyboardProcessor()},_disposeKeyboardProcessor:function(){this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=g.addNamespace(_.start,y),r=g.addNamespace(_.end,y);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),r,t),e.option("hoverStateEnabled")){var s=new a(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,r,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:u.noop,_hoverEndHandler:u.noop,_attachFeedbackEvents:function(){var e,t,n=this,r=n._activeStateUnit,s=g.addNamespace(m.active,y),l=g.addNamespace(m.inactive,y);if(o.off(n._eventBindingTarget(),s,r),o.off(n._eventBindingTarget(),l,r),n.option("activeStateEnabled")){var u=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,r,{timeout:n._feedbackShowTimeout},function(t){e=e||new a(u),e.execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,r,{timeout:n._feedbackHideTimeout},function(e){t=t||new a(u,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(x,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(k,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(b,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(d.isPlainObject(t[0]))return void l(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=d.isDefined(n)?n.toString():null,e.target.attr(t,n)};if(d.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();l(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return r(n,i)}}});e.exports=E},function(e,t,n){var i=n(21),o=n(15),a=n(47),r=n(1),s=n(3).each,l=n(89),u=l.unwrap,d=l.isWrapped,c=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n){return n=n||{},"this"===t?_(e,n):_(e[t],n)},f=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&d(a)?c(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?u(e):e},m=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=("defaultValue"in n),a=_(e,n),s=0;s<t.length;s++){if(!a){if(null==a&&o)return n.defaultValue;break}var l=t[s];if(o&&r.isObject(a)&&!(l in a))return n.defaultValue;var u=_(a[l],n);!i&&r.isFunction(u)&&(u=u.call(a)),a=u}return a}}return Array.isArray(e)?v(e):r.isFunction(e)?e:void 0},v=function(e){for(var t={},n=0,i=e.length;n<i;n++){var o=e[n];t[o]=m(o)}return function(e,n){var i;return s(t,function(t){var o,a,r,s,l,u=this(e,n);if(void 0!==u){for(o=i||(i={}),a=t.split("."),s=a.length-1,l=0;l<s;l++)r=a[l],r in o||(o[r]={}),o=o[r];o[a[s]]=u}}),i}},y=function(e,t,n,i){if(r.isDefined(n))return n;var o={};return f(e,t,o,i),o},w=function(e){e=h(e||"this").split(".");var t=e.length-1;return function(n,i,o){o=g(o);var s=_(n,o);e.forEach(function(e,n){var l=p(s,e,o),u=!o.functionsAsIs&&r.isFunction(l)&&!d(l);n===t?o.merge&&r.isPlainObject(i)&&(!r.isDefined(l)||r.isPlainObject(l))?(l=y(s,e,l,o),a.deepExtendArraySafe(l,i,!1,!0)):u?s[e](i):f(s,e,i,o):(l=y(s,e,l,o),u&&(l=l.call(s)),s=l)})}},x=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof o&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=m,t.compileSetter=w,t.toComparable=x,t.bracketsToDots=h},function(e,t,n){var i=n(128),o=n(21);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 key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1057:'The {0} widget does not support asynchronous validation rules in the "{1}" edit mode',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config."})},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(12),s=n(11),l=n(113),u=n(8),d=n(23),c=n(116),h=n(90),p=n(52).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=c.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=u.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===d.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=u.eventDelta(u.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,d=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,u.fireEvent({type:f,originalEvent:e}))};y=y.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",d)},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",d)}})}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},c=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,u.addNamespace(d.down,h),l),o.subscribeGlobal(p,u.addNamespace("click",h),c)}}(),h({emitter:y,bubble:!0,events:[f]}),t.name=f},function(e,t,n){var i=n(128);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",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",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){function i(e){return x[w(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=d(t)?z(t.toLowerCase()):a.isNumeric(t)?m(t):t;return o.years&&i.setFullYear(i.getFullYear()+o.years*n),o.quarters&&i.setMonth(i.getMonth()+3*o.quarters*n),o.months&&i.setMonth(i.getMonth()+o.months*n),o.weeks&&i.setDate(i.getDate()+7*o.weeks*n),o.days&&i.setDate(i.getDate()+o.days*n),o.hours&&i.setTime(i.getTime()+36e5*o.hours*n),o.minutes&&i.setTime(i.getTime()+6e4*o.minutes*n),o.seconds&&i.setTime(i.getTime()+1e3*o.seconds*n),o.milliseconds&&i.setTime(i.getTime()+o.milliseconds*n),i}var a=n(1),r=n(30).adjust,s=n(3).each,l=n(33).camelize,u=a.isObject,d=a.isString,c=a.isDate,h=a.isDefined,p=["millisecond","second","minute","hour","day","week","month","quarter","year"],f=function e(t){switch(t){case"millisecond":return 1;case"second":return 1e3*e("millisecond");case"minute":return 60*e("second");case"hour":return 60*e("minute");case"day":return 24*e("hour");case"week":return 7*e("day");case"month":return 30*e("day");case"quarter":return 3*e("month");case"year":return 365*e("day");default:return 0}},g=function(e,t,n){var i=t.getTime()-e.getTime(),o=f(n)||1;return Math.floor(i/o)},_=function(e,t){var n=w(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},m=function(e){var t,n,i,o=["millisecond","second","minute","hour","day","month","year"],a={};for(t=o.length-1;t>=0;t--)i=o[t],n=Math.floor(e/f(i)),n>0&&(a[i+"s"]=n,e-=y(i,n));return a},v=function(e){var t=0;return u(e)&&s(e,function(e,n){t+=y(e.substr(0,e.length-1),n)}),d(e)&&(t=y(e,1)),t},y=function(e,t){return f(e)*t},w=function(e){var t,n=-1;return d(e)?e:u(e)?(s(e,function(e,i){for(t=0;t<p.length;t++)i&&(e===p[t]+"s"||e===p[t])&&n<t&&(n=t)}),p[n]):""},x={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},b=function(e){return Math.floor(e/3)},C=function(e){return 3*b(e)},k=function(e,t,n,i){e=new Date(e.getTime());var o,a,r=new Date(e.getTime()),s=w(t);switch(s){case"second":e=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e=Z(e,i||0),e.setHours(0,0,0,0);break;case"quarter":o=C(e.getMonth()),a=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),a!==o&&e.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&ie(r,e),e},I=function(e){return le.correctDateWithUnitBeginning(e,"day")},S=function(e){var t=le.trimTime(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},D=function(e,t){var n,i=0;return n={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},s(n,function(e,t){t&&i++}),0===i&&0!==ae(e,t)&&(n.hour=!0,i++),n.count=i,n},T=function(e,t,n){var i=n?-1:1;return c(e)?o(e,t,i):r(e+t*i,t)},E=function(e,t,n){var i,o=[];for(o.push(c(e)?new Date(e.getTime()):e),i=e;i<t;)i=T(i,n),o.push(i);return o},O=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),1):"year"===e?new Date(t.getFullYear(),0,t.getDate()):"decade"===e?new Date(K(t),t.getMonth(),t.getDate()):"century"===e?new Date(G(t),t.getMonth(),t.getDate()):void 0},A=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),M(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(K(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(G(t)+90,t.getMonth(),t.getDate()):void 0},P=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),1);return"month"===e?n:(n.setMonth(0),"year"===e?n:("decade"===e&&n.setFullYear(K(t)),"century"===e&&n.setFullYear(G(t)),n))},B=function(e,t){var n=new Date(t);return n.setDate(M(t)),"month"===e?n:(n.setMonth(11),n.setDate(M(n)),"year"===e?n:("decade"===e&&n.setFullYear(K(t)+9),"century"===e&&n.setFullYear(G(t)+99),n))},M=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},F=function(e,t,n){return le[l("same "+e)](t,n)},R=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},V=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},H=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},L=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},z=function(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.weeks=1;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t},$=function(e,t){return N(e,t)&&e.getDate()===t.getDate()},N=function(e,t){return W(e,t)&&e.getMonth()===t.getMonth()},W=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},j=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},q=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},G=function(e){return e&&e.getFullYear()-e.getFullYear()%100},K=function(e){return e&&e.getFullYear()-e.getFullYear()%10},U=function(){return"yyyy/MM/dd"},Y=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},X=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},Z=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},Q=function(e,t){var n=le.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},J=function(e,t,n,i){return"date"===i&&(t=t&&le.correctDateWithUnitBeginning(t,"day"),n=n&&le.correctDateWithUnitBeginning(n,"day"),e=e&&le.correctDateWithUnitBeginning(e,"day")),ne(e,t,n)===e},ee=function(e){var t=Math.floor(e),n=e%1*60;return{hours:t,minutes:n}},te=function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()<n.minutes||e.getHours()<n.hours)&&i.setHours(n.hours,n.minutes,0,0),i},ne=function(e,t,n){var i=e;return h(e)?(h(t)&&e<t&&(i=t),h(n)&&e>n&&(i=n),i):e},ie=function(e,t){if(h(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},oe=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},ae=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},re=function(e){return new Date(e)},se=function(e,t,n){for(var i=new Date(e.getTime()),o=[];i<t;)o.push(new Date(i.getTime())),i=this.addInterval(i,n);return o},le={dateUnitIntervals:p,convertMillisecondsToDateUnits:m,dateToMilliseconds:v,getNextDateUnit:_,convertDateUnitToMilliseconds:y,
getDateUnitInterval:w,getDateFormatByTickInterval:i,getDatesDifferences:D,correctDateWithUnitBeginning:k,trimTime:I,setToDayEnd:S,roundDateByStartDayHour:te,dateTimeFromDecimal:ee,addDateInterval:o,addInterval:T,getSequenceByInterval:E,getDateIntervalByString:z,sameDate:$,sameMonthAndYear:N,sameMonth:N,sameYear:W,sameDecade:j,sameCentury:q,sameView:F,getDifferenceInMonth:H,getDifferenceInMonthForCells:L,getFirstYearInDecade:K,getFirstDecadeInCentury:G,getShortDateFormat:U,getViewFirstCellDate:O,getViewLastCellDate:A,getViewDown:V,getViewUp:R,getLastMonthDay:M,getLastMonthDate:X,getFirstMonthDate:Y,getFirstWeekDate:Z,normalizeDateByWeek:Q,getQuarter:b,getFirstQuarterMonth:C,dateInRange:J,roundToHour:oe,normalizeDate:ne,getViewMinBoundaryDate:P,getViewMaxBoundaryDate:B,fixTimezoneGap:ie,getTimezonesDifference:ae,makeDate:re,getDatesInterval:g,getDatesOfInterval:se};e.exports=le},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(43),a=i(o),r=n(3),s=n(25),l=i(s),u=n(16),d=i(u),c=n(68),h=i(c),p=n(229),f=i(p),g=n(460),_=i(g),m=n(231),v=i(m),y=n(461),w=i(y),x=function(e,t,n){if(e.pointerEvents&&n.msie)return _.default;var i=t.tablet,o=t.phone;return!e.touch||i||o?e.touch?f.default:v.default:w.default},b=x(a.default,d.default.real(),l.default);(0,r.each)(b.map,function(e,t){(0,h.default)(e,new b(e,t))});var C={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};e.exports=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(36),r=i(a),s=n(40),l=i(s);(0,o.extend)(t,l.default,r.default,{modules:[]})},function(e,t,n){var i=n(0).extend,o=n(7),a=o.getNavigator(),r=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,u=/(edge)\/((\d+)?[\w.]+)/,d=/(mozilla)(?:.*? rv:([\w.]+))/,c=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||u.exec(e)||e.indexOf("compatible")<0&&d.exec(e)||r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&(t.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(i="chrome",o=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("fxios")>=0?(i="mozilla",o=/fxios\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(i="safari",o=/(?:version|phantomjs)\/([0-9.]+)/.exec(e),o=o&&o[1]):(i="unknown",o=/applewebkit\/([0-9.]+)/.exec(e),o=o&&o[1])),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:c},c(a.userAgent))},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(38),o=n(1).type,a="dxTranslator",r=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=c(e);return{left:t.x,top:t.y}},u=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=c(e),n.y=o||0):void 0===o?(n=c(e),n.x=i||0):(n={x:i||0,y:o||0,z:0},h(e,n)),e.css({transform:_(n)}),(d(i)||d(o))&&p(e)},d=function(e){return"string"===o(e)&&"%"===e[e.length-1]},c=function(e){var t=e.length?i.data(e.get(0),a):null;if(!t){var n=e.css("transform")||_({x:0,y:0}),o=n.match(r),s=o&&o[1];o?(o=o[2].split(","),"3d"===s?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],t={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),a,t)},p=function(e){e.length&&i.removeData(e.get(0),a)},f=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),p(e),t&&(e.get(0).offsetHeight,e.css("transition",n))},g=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},_=function(e){e.x=e.x||0,e.y=e.y||0;var t=d(e.x)?e.x:e.x+"px",n=d(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=u,t.locate=l,t.clearCache=p,t.parseTranslate=g,t.getTranslate=c,t.getTranslateCss=_,t.resetPosition=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=i(o),r=n(21),s=i(r),l={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:function(e){"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw s.default.Error("E3018",t,e)}}},u=["decimalSeparator","thousandsSeparator"],d=function(){if(!arguments.length)return l;var e=arguments.length<=0?void 0:arguments[0];u.forEach(function(t){if(e[t]){var n="Now, the "+t+" is selected based on the specified locale.";s.default.log("W0003","config",t,"19.2",n)}}),a.default.extend(l,e)};"undefined"!=typeof DevExpress&&DevExpress.config&&d(DevExpress.config),e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(40),r=i(a);(0,o.extend)(t,r.default,{modules:[],foreachNodes:function(e,t){for(var n=0;n<e.length;n++)t(e[n])!==!1&&e[n].hasChildren&&e[n].children.length&&this.foreachNodes(e[n].children,t)}})},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function o(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function a(e,t){var n,a=r(t||0)+2,s=e.toString().split("."),l=e,d=Math.abs(e),c=u(e),h=d>1?10:0;return 1===s.length?e:(c||(u(t)&&(a=s[0].length+i(t)),e=d,e=e-Math.floor(e)+h),a=o()&&i(e)>6||a>7?15:7,c||(n=parseFloat(e.toPrecision(a)).toString().split("."),n[0]!==h.toString())?parseFloat(l.toPrecision(a)):parseFloat(s[0]+"."+n[1]))}function r(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}function s(e,t){if(e<0&&t%2!==1)return NaN;var n=Math.pow(Math.abs(e),1/t);return t%2===1&&e<0?-n:n}function l(e,t,n,i){var o=1e-8;if(Math.abs(e)<o){if(e=t,t=n,n=i,Math.abs(e)<o)return e=t,t=n,Math.abs(e)<o?[]:[-t/e];var a=t*t-4*e*n;return Math.abs(a)<o?[-t/(2*e)]:a>0?[(-t+Math.sqrt(a))/(2*e),(-t-Math.sqrt(a))/(2*e)]:[]}var r,l,u=(3*e*n-t*t)/(3*e*e),d=(2*t*t*t-9*e*t*n+27*e*e*i)/(27*e*e*e);if(Math.abs(u)<o)r=[s(-d,3)];else if(Math.abs(d)<o)r=[0].concat(u<0?[Math.sqrt(-u),-Math.sqrt(-u)]:[]);else{var c=d*d/4+u*u*u/27;if(Math.abs(c)<o)r=[-1.5*d/u,3*d/u];else if(c>0)l=s(-d/2-Math.sqrt(c),3),r=[l-u/(3*l)];else{l=2*Math.sqrt(-u/3);var h=Math.acos(3*d/u/l)/3,p=2*Math.PI/3;r=[l*Math.cos(h),l*Math.cos(h-p),l*Math.cos(h-2*p)]}}for(var f=0;f<r.length;f++)r[f]-=t/(3*e);return r}var u=n(1).isExponential,d=function(e){return 0===e?0:e/Math.abs(e)},c=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},h=function(e,t,n){return e>=t&&e<=n};t.sign=d,t.fitIntoRange=c,t.inRange=h,t.adjust=a,t.getPrecision=r,t.getExponent=i,t.getRoot=s,t.solveCubicEquation=l},function(e,t,n){function i(){if(!B.hasWindow())return null;var e,t=A("<div>",k).addClass("dx-theme-marker").appendTo(k.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,""),e.substr(0,Z.length)!==Z?null:e.substr(Z.length)):null}finally{t.remove()}}function o(e){function t(){T=null,W.fire(),W.empty()}var n;T=e,a()?t():(n=Date.now(),E=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&R.log("W0004",T),(e||i)&&(clearInterval(E),E=void 0,t())},10))}function a(){return!T||i()===T}function r(){var e=A(K,k);e.length&&(S={},I=A(V.createMarkupFromString("<link rel=stylesheet>"),k),e.each(function(){var e=A(this,k),t=e.attr(U),n=e.attr("href"),i="true"===e.attr(Y);S[t]={url:n,isActive:i}}),e.last().after(I),e.remove())}function s(e){var t=e?e.split("."):[],n=null;if(S){if(e in S)return e;z(S,function(e,i){var o=e.split(".");if(!(t[0]&&o[0]!==t[0]||t[1]&&t[1]!==o[1]||t[2]&&t[2]!==o[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==k&&(S=null)}catch(e){S=null}k=e}function u(e){e=e||{},l(e.context||P.getDocument()),k&&(r(),D=void 0,d(e))}function d(e){if(!arguments.length)return D=D||i();p(j()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(D=s(e.theme||D),D&&(t=S[D]),a&&W.add(a),t)I.attr("href",S[D].url),!W.has()&&!e._forceTimeout||E?T&&(T=D):o(D);else{if(!n)throw R.Error("E0021",D);W.fire(),W.empty()}w(),h(N.originalViewPort(),D)}function c(e){e=e||d();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(_(e)?"-"+n[2]:""))),t}function h(e,t){O=c(t).join(" "),A(e).addClass(O);var n=function(){var t=B.hasWindow()&&M.devicePixelRatio;if(t&&!(t<2)){var n=A("<div>");n.css("border",".5px solid transparent"),A("body").append(n),1===n.outerHeight()&&(A(e).addClass(X),O+=" "+X),n.remove()}};n()}function p(e){A(e).removeClass(O)}function f(e){W.add(e)}function g(e,t){return t||(t=D||i()),new RegExp(e).test(t)}function _(e){return g("material",e)}function m(e){return g("ios7",e)}function v(e){return g("generic",e)}function y(e){return g("dark",e)}function w(){m()&&R.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead.")}function x(e,t){var n="Roboto, RobotoFallback, Arial",i="Arial",o=P.getDocument(),a=o.createElement("span");a.style.position="absolute",a.style.top="-9999px",a.style.left="-9999px",a.style.visibility="hidden",a.style.fontFamily=i,a.style.fontSize="250px",a.style.fontWeight=t,a.innerHTML=e,o.body.appendChild(a);var r=a.offsetWidth;a.style.fontFamily=n;var s=a.offsetWidth;return a.parentNode.removeChild(a),r!==s}function b(e,t){var n=15,i=2e3;return new q(function(o){var a=function(){x(e,t)&&r()},r=function(){clearInterval(s),clearTimeout(l),o()},s=setInterval(a,n),l=setTimeout(r,i)})}function C(){if(u({_autoInit:!0,_forceTimeout:!0}),A(K,k).length)throw R.Error("E0022");Q.resolve()}var k,I,S,D,T,E,O,A=n(2),P=n(12),B=n(7),M=B.getWindow(),F=n(6).Deferred,R=n(19),V=n(11),H=n(49),L=H.add,z=n(3).each,$=n(16),N=n(73),W=n(233),j=N.value,q=n(67),G=N.changeCallback,K="link[rel=dx-theme]",U="data-theme",Y="data-active",X="dx-hairlines",Z="dx.",Q=new F;B.hasWindow()?C():L(C),G.add(function(e,t){Q.done(function(){p(t),h(e)})}),$.changed.add(function(){u({_autoInit:!0})}),t.current=d,t.ready=f,t.init=u,t.attachCssClasses=h,t.detachCssClasses=p,t.waitForThemeLoad=o,t.isMaterial=_,t.isIos7=m,t.isGeneric=v,t.isDark=y,t.isWebFontLoaded=x,t.waitWebFont=b,t.resetTheme=function(){I&&I.attr("href","about:blank"),D=null,T=null}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(53),a=i(o),r=n(1),s=n(3),l=i(s),u=n(14),d=n(21),c=i(d),h=n(220),p=n(188),f=n(212),g=n(221),_=i(g),m=n(445),v=i(m),y=n(76),w=n(51),x=i(w),b=n(446),C=i(b),k=0,I="undefined"!=typeof Intl,S={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},D={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},T=(0,a.default)({engine:function(){return"base"},_getPatternByFormat:function(e){return S[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return l.default.each(t.split(/\W+/),function(e,t){l.default.each(D,function(e,i){(0,u.inArray)(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return _.default.getMonthNames(e)},getDayNames:function(e){return _.default.getDayNames(e)},getQuarterNames:function(e){return _.default.getQuarterNames(e)},getPeriodNames:function(e){return _.default.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n=void 0;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,(0,r.isString)(t))return t=S[t.toLowerCase()]||t,x.default.convertDigits((0,h.getFormatter)(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n=this,i=void 0,o=void 0,a=void 0;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||S[t.toLowerCase()]){a=function(e){var i=n.format(e,t);return x.default.convertDigits(i,!0)};try{o=(0,p.getFormat)(a)}catch(e){}}else o=t;if(o)return e=x.default.convertDigits(e,!0),(0,f.getParser)(o,this)(e);if(c.default.log("W0012"),i=new Date(e),i&&!isNaN(i.getTime()))return i}},firstDayOfWeekIndex:function(){var e=(0,y.getValueByClosestLocale)(function(e){return v.default[e]});return void 0===e?k:e}});I&&T.inject(C.default),e.exports=T},function(e,t,n){var i=n(3).map,o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},u=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(s(e).replace(/-/g," "))},c=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()&&"-"!==n&&")"!==n&&"/"!==n||n in h,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=s,t.camelize=u,t.humanize=d,t.titleize=c,t.underscore=l,t.captionize=p},function(e,t,n){var i=n(15),o=i.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(16),h=i(c),p=n(5),f=i(p),g=n(74),_=i(g),m=n(9),v=i(m),y=n(31),w=i(y),x=n(87),b=i(x),C=n(17),k=i(C),I=n(8),S=n(0),D=n(99),T=n(56),E=n(11),O=n(20),A=function(e){function t(){var e;o(this,t);for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var s=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i)));return s._feedbackHideTimeout=100,s}return r(t,e),s(t,[{key:"_clean",value:function(){delete this._inkRipple,delete this._$content,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return"desktop"===h.default.real().deviceType&&!h.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return w.default.isMaterial(w.default.current())},options:{useInkRipple:!0}}])}},{key:"_executeClickAction",value:function(e){this._clickAction({validationGroup:this._validationGroupConfig,event:e})}},{key:"_findGroup",value:function(){var e=this.$element();return this.option("validationGroup")||b.default.findGroup(e,this._modelByElement(e))}},{key:"_getAnonymousTemplateName",value:function(){return"content"}},{key:"_getContentData",value:function(){var e=this.option(),t=e.icon,n=e.text,i=e.type,o=e._templateData;return(0,S.extend)({icon:"back"!==i||t?t:"back",text:n},o)}},{key:"_getDefaultOptions",value:function(){return(0,S.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",iconPosition:"left",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1,_templateData:{},stylingMode:"contained"})}},{key:"_getSubmitAction",value:function(){var e=this;return this._createAction(function(t){var n=t.event;if(e._needValidate){var i=e._validationGroupConfig;if(i){var o=i.validate(),a=o.status,r=o.complete;e._validationStatus=a,"pending"===a&&(e._needValidate=!1,e._setDisabled(!0),e._waitForValidationCompleting(r))}}else e._needValidate=!0;"valid"!==e._validationStatus&&n.preventDefault(),n.stopPropagation()})}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-button"),this._renderType(),this._renderStylingMode(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._updateContent()}},{key:"_initTemplates",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initTemplates",this).call(this),this._defaultTemplates.content=new D.FunctionTemplate(function(t){var n=t.model,i=void 0===n?{}:n,o=t.container,a=i.text,r=i.icon,s=(0,T.getImageContainer)(r),l=a&&(0,d.default)("<span>").text(a).addClass("dx-button-text"),u=(0,d.default)(o);u.append(l),"left"===e.option("iconPosition")?u.prepend(s):(s.addClass("dx-icon-right"),u.append(s))})}},{key:"_optionChanged",value:function(e){var n=e.name,i=e.previousValue;switch(n){case"onClick":this._renderClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._refreshType(i),this._updateContent(),this._updateAriaLabel();break;case"_templateData":break;case"template":case"iconPosition":this._updateContent();break;case"stylingMode":this._renderStylingMode();break;case"useInkRipple":case"useSubmitBehavior":this._invalidate();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_refreshType",value:function(e){var t=this.option("type"),n=this.$element();e&&n.removeClass("dx-button-"+e).addClass("dx-button-"+t),n.hasClass("dx-button-has-icon")||"back"!==t||this._updateContent()}},{key:"_renderClick",value:function(){var e={excludeValidators:["readOnly"]};this.option("useSubmitBehavior")&&(e.afterExecute=function(e){var t=e.component;return setTimeout(function(){return t._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",e);var t=this.$element(),n=(0,I.addNamespace)(O.name,this.NAME);f.default.off(t,n),f.default.on(t,n,this._executeClickAction.bind(this))}},{key:"_renderInkRipple",value:function(){var e=this.option(),t=e.text,n=e.icon,i=e.type,o=!t&&n||"back"===i,a={};o&&(0,S.extend)(a,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=_.default.render(a)}},{key:"_renderStylingMode",value:function(){var e=this.$element(),t=this.option("stylingMode"),n="dx-button-mode-"+t;if(["dx-button-mode-contained","dx-button-mode-text","dx-button-mode-outlined"].forEach(e.removeClass.bind(e)),["contained","text","outlined"].indexOf(t)===-1){var i=this._getDefaultOptions().stylingMode;n="dx-button-mode-"+i}e.addClass(n)}},{key:"_renderSubmitInput",value:function(){var e=this._getSubmitAction();this._needValidate=!0,this._validationStatus="valid",this._$submitInput=(0,d.default)("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),f.default.on(this._$submitInput,"click",function(t){return e({event:t})})}},{key:"_renderType",value:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)}},{key:"_setDisabled",value:function(e){this.option("disabled",e)}},{key:"_supportedKeys",value:function(){var e=this,n=function(t){t.preventDefault(),e._executeClickAction(t)};return(0,S.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{space:n,enter:n})}},{key:"_toggleActiveState",value:function(e,n,i){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_toggleActiveState",this).call(this,e,n,i),this._inkRipple){var o={element:this._$content,event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_updateAriaLabel",value:function(){var e=this.option(),t=e.icon,n=e.text;"image"===(0,T.getImageSourceType)(t)&&(t=t.indexOf("base64")===-1?t.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var i=n||t||"";i=i.toString().trim(),this.setAria("label",i.length?i:null)}},{key:"_updateContent",value:function(){var e=this.$element(),t=this._getContentData(),n=t.icon,i=t.text;this._$content?this._$content.empty():this._$content=(0,d.default)("<div>").addClass("dx-button-content").appendTo(e),e.toggleClass("dx-button-has-icon",!!n).toggleClass("dx-button-icon-right",!!n&&"left"!==this.option("iconPosition")).toggleClass("dx-button-has-text",!!i);var o=this._getAnonymousTemplateName()===this.option("template"),a=this._getTemplateByOption("template"),r=(0,d.default)(a.render({model:t,container:(0,E.getPublicElement)(this._$content),transclude:o}));r.hasClass("dx-template-wrapper")&&(this._$content.replaceWith(r),this._$content=r,this._$content.addClass("dx-button-content")),this.option("useSubmitBehavior")&&this._renderSubmitInput()}},{key:"_waitForValidationCompleting",value:function(e){var t=this;e.then(function(e){return t._validationStatus=e.status,t._setDisabled(!1),"valid"===t._validationStatus&&t._$submitInput.get(0).click(),e})}},{key:"_validationGroupConfig",get:function(){return b.default.getGroupConfig(this._findGroup())}}]),t}(k.default);(0,v.default)("dxButton",A),e.exports=A},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(6),l=n(170),u=n(45),d=n(3),c=n(0),h=n(18),p=n(4),f=n(167),g=i(f),_=n(41),m=n(64),v=i(m),y=n(47),w=n(7),x=n(5),b=i(x),C="dx-selection-disabled",k="dx-datagrid-group-opened",I="dx-datagrid-group-closed",S="dx-datagrid-expand",D="nodata",T={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}};e.exports=function(){var t=function(){var e,t,n=arguments[1],o=this.calculateCellValue(n);return(0,r.isDefined)(o)?i(this.dataType)?(t=arguments[0],T[t](o)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(o)/e)*e):void 0:null},n=function(e,t){return(0,r.isFunction)(e)&&(0,r.isFunction)(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback:e===t},i=function(e){return"date"===e||"datetime"===e},o=function(e){e.get(0).textContent="\xa0"},f=function(e){var t=e.data&&e.data(),n=t&&t.dxComponents,i=n&&n[0];return i&&t[i]};return{renderNoDataText:function(e){var t=this;if(e=e||this.element()){var n=t.addWidgetPrefix(D),i=e.find("."+n).last(),o=this._dataController.isEmpty(),r=this._dataController.isLoading();i.length||(i=(0,a.default)("<span>").addClass(n).appendTo(e)),o&&!r?i.removeClass("dx-hidden").text(t._getNoDataText()):i.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var i,o=this;o._loadPanel&&o._loadPanel.$element().remove(),i=o.option("loadPanel"),i&&("auto"===i.enabled?!n:i.enabled)?(i=(0,c.extend)({shading:!1,message:i.text,position:function(){var t=(0,a.default)((0,w.getWindow)());return e.height()>t.height()?{of:t,boundary:e,collision:"fit"}:{of:e}},container:t},i),o._loadPanel=o._createComponent((0,a.default)("<div>").appendTo(t),g.default,i)):o._loadPanel=null},getIndexByKey:function(e,t,n){var i,o=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var a=0;a<t.length;a++)if(i=(0,r.isDefined)(n)?t[a][n]:t[a],(0,p.equalByValue)(e,i)){o=a;break}}return o},combineFilters:function(e,t){var n,i=[];for(t=t||"and",n=0;n<e.length;n++)e[n]&&(i.length&&i.push(t),i.push(e[n]));if(1===i.length&&(i=i[0]),i.length)return i},checkChanges:function(e,t){var n,i=0;for(n=0;n<t.length;n++)e[t[n]]&&i++;return e.length&&e.length===i},equalFilterParameters:function(t,n){var i;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(!e.exports.equalFilterParameters(t[i],n[i]))return!1;return!0}return(0,r.isFunction)(t)&&t.columnIndex>=0&&(0,r.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,h.toComparable)(t.filterValue)===(0,h.toComparable)(n.filterValue):(0,h.toComparable)(t)==(0,h.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=v.default.format(e,t.format)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){var i,o,a="(";for(i=0;i<t.length;i++)o=t[i],a+=(i>0?", ":"")+e.exports.getSummaryText(o,n);return a+=")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return n?(0,u.format)(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){e=e||[];var t,n;for(t=(0,_.normalizeSortingInfo)(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,n){var i=[],o=e.dataField||e.name,a=(0,l.getGroupInterval)(e);return a?((0,d.each)(a,function(r,s){i.push(n?{selector:o,groupInterval:s,isExpanded:r<a.length-1}:t.bind(e,s))}),i):(n?i=[{selector:o,isExpanded:!1}]:(i=function t(n){var t=e.calculateCellValue(n);return void 0!==t&&""!==t||(t=null),t},e.sortingMethod&&(i=[{selector:i,compare:e.sortingMethod.bind(e)}])),i)},equalSortParameters:function(t,i,o){var a;if(t=e.exports.normalizeSortingInfo(t),i=e.exports.normalizeSortingInfo(i),Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;for(a=0;a<t.length;a++)if(!n(t[a].selector,i[a].selector)||t[a].desc!==i[a].desc||t[a].groupInterval!==i[a].groupInterval||!o&&Boolean(t[a].isExpanded)!==Boolean(i[a].isExpanded))return!1;return!0}return(!t||!t.length)==(!i||!i.length)},getPointsByColumns:function(e,t,n,i){var o,a,r,s,l,u,d=e.length,c=!1,h=i||0,p=[];for(a=0;a<=d;a++)a<d&&(r=e.eq(a),s=r.offset(),u="rtl"===r.css("direction")),o={index:h,x:s?s.left+(!n&&u^a===d?r[0].getBoundingClientRect().width:0):0,y:s?s.top+(n&&a===d?r[0].getBoundingClientRect().height:0):0,columnIndex:h},!n&&a>0&&(l=e.eq(a-1).offset(),l.top<o.y&&(o.y=l.top)),t&&(c=t(o)),c||p.push(o),h++;return p},createObjectWithChanges:function(e,t){var n=e?Object.create(Object.getPrototypeOf(e)):{},i=(0,c.extendFromObject)({},e);return(0,y.deepExtendArraySafe)(n,i,!0,!0),(0,y.deepExtendArraySafe)(n,t,!0,!0)},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var n,i=(0,a.default)(e);!(0,r.isDefined)(t.value)||t.data&&t.data.isContinuation||t.row.isNewRow?o(i):(n=t.component.getView("rowsView"),i.addClass(S).addClass(C),(0,a.default)("<div>").addClass(t.value?k:I).appendTo(i),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),i))}}},setEmptyText:o,isDateType:i,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},focusAndSelectElement:function(e,t){b.default.trigger(t,"focus");var n=e.option("editing.selectTextOnEditStart"),i=e.getController("keyboardNavigation"),o=i&&i._isFastEditingStarted();if(n&&!o&&t.is(".dx-texteditor-input")){var a=f(t.closest(".dx-texteditor"));(0,s.when)(a&&a._loadItemDeferred).done(function(){t.get(0).select()})}},getWidgetInstance:f,getLastResizableColumnIndex:function(e,t){for(var n=e.some(function(e){return e&&!e.command&&!e.fixed&&e.allowResizing!==!1}),i=e.length-1;e[i];i--){var o=e[i],a=t&&t[i],r=!n||o.allowResizing!==!1;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return i},isElementInCurrentGrid:function(e,t){if(t&&t.length){var n=t.closest("."+e.getWidgetContainerClass()).parent();return n.is(e.component.$element())}return!1;
}}}()},function(e,t,n){var i=n(128),o=n(21),a={},r=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:r,errorHandler:s,_errorHandler:l},e.exports=a},function(e,t,n){var i,o=n(180),a=n(12),r=n(5),s=n(181),l=new o,u=new s,d=function(){},c=function(){},h=t.setDataStrategy=function(e){u.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){d(e);var n=t.call(this,e);return c(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)r.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=u,t.beforeCleanData=function(e){d=e},t.afterCleanData=function(e){c=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(a.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},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(2),a=n(7).getWindow(),r=n(5),s=n(21),l=n(11).getPublicElement,u=n(0).extend,d=n(1),c=n(3),h=n(27),p=n(228),f=n(113),g=n(43),_=n(78),m=n(137),v=n(8),y=n(6),w=y.when,x=y.Deferred,b=v.addNamespace(m,"dxFX"),C=d.isFunction,k=d.isPlainObject,I=n(4).noop,S=/^([+-])=(.*)/i,D="dxAnimData",T="dxAnimQueue",E="transform",O={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ue(e,t.from);var n=this,i=new x,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?w(i,o).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,o=this,a=Date.now()+t.delay,s=new x,l=new x,u=new x,d=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,d),r.off(e,b)},r.one(e,d,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,b),r.on(e,b,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){u.reject()},t.duration+t.delay+ce._simulatedTransitionEndDelay),w(l,u).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ue(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&c.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},A={initAnimation:function(e,t){ue(e,t.from)},animate:function(e,t){var n=new x,i=this;return t?(c.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=u({},this.currentValue);n[E]&&(n[E]=c.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,b),r.on(e,b,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return c.each(e.match(/(\w|\d)+\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],u=e.duration;return p.getEasing(e.easing)(i,r,s,l,u)};return c.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(r[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(o[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},P={initAnimation:function(){},animate:function(){return(new x).resolve().promise()},stop:I,isSynchronous:!0},B=function(e){e=e||{};var t={transition:g.transition()?O:A,frame:A,noAnimation:P},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},M=function(e,t,n,i){c.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},F=function(e,t){return M(e,t,function(e){return k(e)},"a plain object")},R=function(e,t){return M(e,t,function(e){return"string"==typeof e},"a string")},V={setup:function(){}},H={validateConfig:function(e){R(e,"css")},setup:function(){}},L={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},z={validateConfig:function(e){F(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=u({of:a},L[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=S.exec(e)))return parseInt(t[1]+"1")*t[2]}},$={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},N={validateConfig:function(e){F(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:V,slide:z,slideIn:z,slideOut:z,fade:$,fadeIn:$,fadeOut:$,pop:N,css:H},j=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},q={type:"custom",from:{},to:{},duration:400,start:I,complete:I,easing:"ease",delay:0},G={duration:400,easing:"ease",delay:0},K=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(D,e),ce.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},U=function(e){var t=e.element,n=e.config;if(t.removeData(D),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},Y=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){U(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},X=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),Q=function(e){r.off(e.element,Z),r.on(e.element,Z,function(){ce.stop(e.element)}),e.deferred.always(function(){r.off(e.element,Z)})},J=function(e,t){var n="css"===t.type?G:q,i=u(!0,{},n,t),a=j(i),r=B(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:K,start:Y,stop:X,deferred:new x};return C(a.validateConfig)&&a.validateConfig(i),Q(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new x).resolve().promise();var i=J(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),ae(e)||re(e,n)},ne=function(e){return e.data(T)||[]},ie=function(e,t){e.data(T,t)},oe=function(e){e.removeData(T)},ae=function(e){return!!e.data(D)},re=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&oe(t),se(i).done(function(){ae(t)||e(t)})}},se=function(e){return e.setup(),ce.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=_.calculate(e,t.position),l=e.offset(),d=e.position();d.top>l.top&&(r=n.scrollTop()),d.left>l.left&&(i=n.scrollLeft()),u(t,{left:s.h.location-l.left+d.left-i,top:s.v.location-l.top+d.top-r}),delete t.position}},ue=function(e,t){c.each(t,function(t,n){try{e.css(t,d.isFunction(n)?n():n)}catch(e){}})},de=function(e,t){var n=o(e),i=ne(n);c.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ae(n)||re(n,i);var a=n.data(D);a&&a.stop(t),n.removeData(D),oe(n)},ce={off:!1,animationTypes:W,animate:ee,createAnimation:J,isAnimating:ae,stop:de,_simulatedTransitionEndDelay:100};e.exports=ce},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(15),u=i(l),d=n(26),c=i(d),h=n(4),p=n(1),f=n(14),g=n(3),_=n(19),m=i(_),v=n(10),y=i(v),w=n(7),x="dxDataGrid",b=u.default.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,g.each)(this.callbackNames()||[],function(e,n){var i=t.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,t[this]=(0,c.default)(i)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=y.default.format(e)),t[e]):y.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){var n;return(0,p.isFunction)(e)?(n=this.component._createAction(e.bind(this),t),function(e){n({event:e})}):(this._actions[e]=this.component._createActionByOption(e,t),void(this._actionConfigs[e]=t))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,g.each)(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-"+t.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e=this.component.NAME===x?null:"container";return this.addWidgetPrefix(e)}}),C=b,k=C.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),I=b.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,w.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,c.default)(),this.resizeCompleted=(0,c.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0,i=e.get(0).offsetHeight;return i+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,i=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,a.default)("<div>").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!i),i&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){s.default.trigger(this.element(),"focus")}}),S=1e6,D=function(e,t){var n=t.modules,i=t.modulesOrder,o=t.controllerTypes||{},a=t.viewTypes||{};t.controllerTypes||(i&&n.sort(function(e,t){var n=(0,f.inArray)(e.name,i),o=(0,f.inArray)(t.name,i);return n<0&&(n=S),o<0&&(o=S),n-o}),(0,g.each)(n,function(){var e=this.controllers,t=this.name,n=this.views;e&&(0,g.each)(e,function(e,n){if(o[e])throw m.default.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(C)))throw n.subclassOf(C),m.default.Error("E1002",t,e);o[e]=n}),n&&(0,g.each)(n,function(e,n){if(a[e])throw m.default.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(I)))throw m.default.Error("E1004",t,e);a[e]=n})}),(0,g.each)(n,function(){var e=this.extenders;e&&(e.controllers&&(0,g.each)(e.controllers,function(e,t){o[e]&&(o[e]=o[e].inherit(t))}),e.views&&(0,g.each)(e.views,function(e,t){a[e]&&(a[e]=a[e].inherit(t))}))}),t.controllerTypes=o,t.viewTypes=a);var r=function(e,t,n){var i=n.publicMethods();i&&(0,g.each)(i,function(i,o){if(!n[o])throw m.default.Error("E1006",t,o);if(e[o])throw m.default.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}})},s=function(t){var n={};return(0,g.each)(t,function(t,i){var o=new i(e);o.name=t,r(e,t,o),n[t]=o}),n};e._controllers=s(o),e._views=s(a)},T=function(e,t,n){n=n||[],e._controllers&&(0,g.each)(e._controllers,function(){this[t]&&this[t].apply(this,n)}),e._views&&(0,g.each)(e._views,function(){this[t]&&this[t].apply(this,n)})};e.exports={modules:[],View:I,ViewController:k,Controller:C,registerModule:function(e,t){var n,i=this.modules;for(n=0;n<i.length;n++)if(i[n].name===e)return;t.name=e,i.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=(0,h.grep)(this.modules,function(t){return t.name!==e}),delete this.controllerTypes,delete this.viewTypes},processModules:D,callModuleItemsMethod:T}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){return/^(or|\|\||\|)$/i.test(e)}function r(e){return/^(and|&&|&)$/i.test(e)}function s(e,t){var n,i;return function(){var o=this;return i=arguments,n||(n=setTimeout(function(){n=void 0,i&&e.call(o,i)},(0,u.isFunction)(t)?t():t)),n}}function l(e,t){var n=[],i=s(function(){e.call(this,n),n=[]},t);return function(e){if(Array.isArray(e)){var t;(t=n).push.apply(t,o(e))}return i.call(this,n)}}var u=n(1),d=i(u),c=n(12),h=i(c),p=n(49),f=n(7),g=n(3),_=n(18),m=n(6),v="DEVEXTREME_XHR_ERROR_UNLOAD",y=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},w=function(e){return Array.isArray(e)||(e=[e]),(0,g.map)(e,function(e){var t={selector:(0,u.isFunction)(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},x=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n?n:e};return(0,p.add)(function(){var t=(0,f.getWindow)();h.default.listen(t,"beforeunload",function(){e=!0})}),function(t,i){return e?v:t.status<400?n(i):t.statusText}}(),b={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},C=function(){var e,t=0,n=function(){0===t&&(e=new m.Deferred),t++},i=function(){t--,t<1&&e.resolve()},o=function(){var n=0===t?(new m.Deferred).resolve():e;return n.promise()},a=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:a}}(),k=function(e,t,n){if(Array.isArray(e)){for(var i,o=(0,g.map)(t,function(e,t){return t}),a=0;a<o.length;a++)if(i=o[a],(0,_.toComparable)(t[i],!0)!=(0,_.toComparable)(n[i],!0))return!1;return!0}return(0,_.toComparable)(t,!0)==(0,_.toComparable)(n,!0)},I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",S=function(e){function t(e){return I.charAt(e)}Array.isArray(e)||(e=D(String(e)));for(var n="",i=0;i<e.length;i+=3){var o=e[i],a=e[i+1],r=e[i+2];n+=(0,g.map)([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n},D=function(e){var t,n,i=[];for(n=0;n<e.length;n++)t=e.charCodeAt(n),t<128?i.push(t):t<2048?i.push(192+(t>>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},T=function(e){return"!"===e[0]&&Array.isArray(e[1])},E=function(e){return"and"===e||"or"===e},O=function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!d.default.isFunction(t)||!(Array.isArray(n)||d.default.isFunction(n)||E(n)))},A=function(){var e=new m.Deferred;return e.resolve.apply(e,arguments).promise()},P=function(){var e=new m.Deferred;return e.reject.apply(e,arguments).promise()},B={XHR_ERROR_UNLOAD:v,normalizeBinaryCriterion:y,normalizeSortingInfo:w,errorMessageFromXhr:x,aggregators:b,keysEqual:k,throttleChanges:l,trivialPromise:A,rejectedPromise:P,isDisjunctiveOperator:a,isConjunctiveOperator:r,processRequestResultLock:C,isUnaryOperation:T,isGroupCriterion:O,base64_encode:S};e.exports=B},function(e,t,n){var i=n(156),o=n(482),a={array:i,remote:o},r=function(){var e=Array.isArray(arguments[0])?"array":"remote";return a[e].apply(this,arguments)};e.exports=r,e.exports.queryImpl=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(14),a=n(12),r=n(4),s=n(61),l=i(s),u=n(7),d=i(u),c=n(16),h=i(c),p=n(88),f=i(p),g=d.default.getNavigator(),_=g.maxTouchPoints,m=g.msMaxTouchPoints,v=g.pointerEnabled,y=d.default.hasProperty.bind(d.default),w={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},x=function(e){return!!f.default.styleProp(e)},b=function(){var e=h.default.real(),t=e.platform,n=e.version,i=e.mac,a=n&&n[0]<4&&"android"===t,r=!a&&(0,o.inArray)(t,["ios","android"])>-1||i;return r},C=function(e){if("text"===e)return!0;var t=(0,a.createElement)("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},k=function(e,t){return(e("ontouchstart")||!!t)&&!e("callPhantom")},I=function(e,t){var n=(0,r.ensureDefined)(t,!0),i=(0,r.ensureDefined)(t,!1);return e("PointerEvent")&&n||i},S=k(y,_),D=I(y,v),T=!!_||!!m;t.touchEvents=S,t.pointerEvents=D,t.touch=S||D&&T,t.transition=(0,l.default)(function(){return x("transition")}),t.transitionEndEventName=(0,l.default)(function(){return w[f.default.styleProp("transition")]}),t.animation=(0,l.default)(function(){return x("animation")}),t.nativeScrolling=b(),t.styleProp=f.default.styleProp,t.stylePropPrefix=f.default.stylePropPrefix,t.supportProp=x,t.inputType=C},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(27),r=n(33).camelize,s=n(4).noop,l=n(11).getPublicElement,u=n(3).each,d=n(1).isDefined,c=n(14).inArray,h=n(0).extend,p=n(25),f=n(52).compare,g=n(10),_=n(16),m=n(9),v=n(35),y=n(31),w=n(59),x=n(100).EmptyTemplate,b=n(11),C=n(177),k=n(7);n(298);var I="dx-popup",S="dx-popup-wrapper",D="dx-popup-fullscreen",T="dx-popup-fullscreen-width",E="dx-popup-normal",O="dx-popup-content",A="dx-popup-draggable",P="dx-popup-title",B="dx-closebutton",M="dx-popup-bottom",F="dx-template-wrapper",R="dx-popup-flex-height",V="dx-popup-inherit-height",H=["cancel","clear","done"],L="default",z="normal",$="text",N="contained",W=p.msie&&11===parseInt(p.version),j=p.safari&&f(p.version,[11])<0,q={"static":"",inherit:V,flex:R},G=function(e){var t=_.current(),n=t.platform,i="bottom",o="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}},K=w.inherit({_getDefaultOptions:function(){return h(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=y.current();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"desktop"===_.real().deviceType&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===_.real().deviceType&&!_.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return y.isMaterial(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){var e={show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}},t={show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}};return this.option("fullScreen")?e:t},_init:function(){this.callBase(),this.$element().addClass(I),this._wrapper().addClass(S),this._$popupContent=this._$content.wrapInner(i("<div>").addClass(O)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass(D,e).toggleClass(E,!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new x,this._defaultTemplates.bottom=new x},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:_.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("<div>").addClass(P).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(P),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,o){var a=this._getTemplateByOption(e),r=a instanceof x;if(r){var s=h(o,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons")});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:s}});var u=n.children("div");return n.replaceWith(u),u}var d=i(a.render({container:l(n)}));return d.hasClass(F)&&(n.replaceWith(d),n=d),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:l(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return function(e,t,n){var o=i("<div>").addClass(B);this._createComponent(o,v,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),i(n).append(o)}.bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=_.current().platform,o=0;return u(t,function(t,a){var r=d(a.shortcut),s=r?G(a.shortcut):a;if(r&&"ios"===i&&o<2&&(s.toolbar="top",o++),s.toolbar=a.toolbar||s.toolbar||"top",s&&s.toolbar===e){r&&h(s,{location:a.location},this._getToolbarItemByAlias(a));var l="generic"===i;"done"===a.shortcut&&l||"cancel"===a.shortcut&&!l?n.unshift(s):n.push(s)}}.bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getLocalizationKey:function(e){return"done"===e.toLowerCase()?"OK":r(e,!0)},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(c(n,H)<0)return!1;var o=h({text:g.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?L:z,stylingMode:t.option("useFlatToolbarButtons")?$:N},e.options||{}),a=I+"-"+n;return this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=i("<div>").addClass(a).appendTo(r);t._createComponent(s,v,o)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=i("<div>").addClass(M).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(M),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=H;u(e,function(e,t){var n=I+"-"+t;c(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getContainer:function(){return this.option("fullScreen")?i(o):this.callBase()},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(e){e||this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass(A,this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||s)();var e=this.overlayContent().get(0),t=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(t,e)),this._setHeightClasses(this.overlayContent(),t)},_heightStrategyChangeOffset:function(e,t){return e===q.flex?-t:0},_chooseHeightStrategy:function(e){var t="auto"===e.style.width||""===e.style.width,n=q.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(t||j?W||(n=q.inherit):n=q.flex),n},_getHeightCssStyles:function(e,t){var n={},o=this._getOptionValue("maxHeight",t),a=this._getOptionValue("minHeight",t),r=this._splitPopupHeight(),s=r.header+r.footer+r.contentVerticalOffsets+r.popupVerticalOffsets+this._heightStrategyChangeOffset(e,r.popupVerticalPaddings);if(e===q.static){if(!this._isAutoHeight()||o||a){var l=t.getBoundingClientRect().height-s;n={height:Math.max(0,l),minHeight:"auto",maxHeight:"auto"}}}else{var u=i(this._getContainer()).get(0),d=C.addOffsetToMaxHeight(o,-s,u),c=C.addOffsetToMinHeight(a,-s,u);n={height:"auto",minHeight:c,maxHeight:d}}return n},_setHeightClasses:function(e,t){var n="";for(var i in q)q[i]!==t&&(n+=" "+q[i]);e.removeClass(n).addClass(t)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:C.getVisibleHeight(e&&e.get(0)),footer:C.getVisibleHeight(t&&t.get(0)),contentVerticalOffsets:C.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:C.getVerticalOffsets(this.$content().get(0),!0),popupVerticalPaddings:C.getVerticalOffsets(this.$content().get(0),!1)}},_useFixedPosition:function(){return this.callBase()||this.option("fullScreen");
},_toggleSafariFullScreen:function(e){var t=this._useFixedPosition()&&e&&!this._isShown;t?this._bodyScrollTop=e?o.pageYOffset:void 0:this._toggleSafariScrolling(!e)},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),k.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass(T,this.overlayContent().outerWidth()===i(o).width())},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){return this.option("fullScreen")?void a.move(this._$content,{top:0,left:0}):((this.option("forceApplyBindings")||s)(),this.callBase.apply(this,arguments))},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry();break;case"bottomTemplate":this._renderBottom(),this._renderGeometry();break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),t&&this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),b.triggerResizeEvent(this._$content);break;case"fullScreen":this._toggleFullScreenClass(e.value),this._toggleSafariFullScreen(e.value),this._renderGeometry(),b.triggerResizeEvent(this._$content);break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return l(this._$popupContent)},overlayContent:function(){return this._$content}});m("dxPopup",K),e.exports=K},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(1),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),r=function(e){switch("undefined"==typeof e?"undefined":i(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}},s=function(e){var t=r(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(o)||(o=n),isFinite(a)||(a=i),{top:i,right:o,bottom:a,left:n}},l=function(){var e,t,n,i=arguments[0],a=[].slice.call(arguments).slice(1);if(o.isFunction(i))return i.apply(this,a);for(var r=0;r<a.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=a[r],"string"===o.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),i=i.replace(t,n);return i},u=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.quadToObject=s,t.format=l,t.replaceAll=u,t.isEmpty=d},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){function n(){var t={};return p.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new w(t)}function i(e){var t=e.type;return delete e.type,v.create(t,e)}function o(e){return new w({load:function(){return f.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}var a;return"string"==typeof e&&(e={paginate:!1,store:o(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof v?{store:e}:c({},e),void 0===e.store&&(e.store=[]),a=e.store,"load"in e?a=n():Array.isArray(a)?a=new y(a):g.isPlainObject(a)&&(a=i(c({},a))),e.store=a,e}function r(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=r(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?o(e,n):p.map(e,t):e}function o(e,t){return p.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}return i(e,n?_.normalizeSortingInfo(n).length:0)}function u(e,t){return e&&!Array.isArray(e)&&e.data&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}}var d=n(15),c=n(0).extend,h=n(4),p=n(3),f=n(62),g=n(1),_=n(41),m=n(138),v=n(92),y=n(71),w=n(141),x=n(82),b=n(37).errors,C=n(14),k=n(227),I=n(6),S=I.when,D=I.Deferred,T=g.isString,E=g.isNumeric,O=g.isBoolean,A=g.isDefined,P="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(P),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var B=d.inherit({ctor:function(e){var t=this,n=this;e=a(e);var o=0!==e.pushAggregationTimeout?_.throttleChanges(this._onPush,function(){return void 0===e.pushAggregationTimeout?5*n._changedTime:e.pushAggregationTimeout}):this._onPush;this._changedTime=0,this._onPushHandler=function(e){t._aggregationTimeoutId=o.call(t,e)},this._store=e.store,this._store.on("push",this._onPushHandler),this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=!!A(e.reshapeOnPush)&&e.reshapeOnPush,p.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,A(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._store.off("push",this._onPushHandler),this._disposeEvents(),clearTimeout(this._aggregationTimeoutId),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),p.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return E(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return O(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return E(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=r(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return O(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return T(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return k.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==P&&t.fireEvent("loadError",arguments)})},_fireChanged:function(e){var t=new Date;this.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t._fireChanged()})},loadSingle:function(e,t){function n(){return r instanceof w&&!r._byKeyViaLoad()}var i=this,o=new D,a=this.key(),r=this._store,s=this._createStoreLoadOptions(),l=function(e){!A(e)||C.isEmpty(e)?o.reject(new b.Error("E4009")):(Array.isArray(e)||(e=[e]),o.resolve(i._applyMapFunction(e)[0]))};return this._scheduleFailCallbacks(o),arguments.length<2&&(t=e,e=a),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===a||n()?r.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],r.load(s))}().fail(o.reject).done(l),o.promise()},load:function(){function e(){if(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=new D;return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=h.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_onPush:function(e){var t=this;if(this._reshapeOnPush)this.load();else{this.fireEvent("changing",[{changes:e}]);var n=this.group(),i=this.items(),o=0,a=this.paginate()||n?e.filter(function(e){return"update"===e.type}):e;n&&(o=Array.isArray(n)?n.length:1),this._mapFunc&&a.forEach(function(e){"insert"===e.type&&(e.data=t._mapFunc(e.data))}),m.applyBatch(this.store(),i,a,o,!0),this._fireChanged([{changes:e}])}},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof w&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=c({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),p.each(i,function(e,i){o.length&&o.push("or"),o.push([i,n,t])}),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){function n(n,a){function r(){var o=c(u(n,a),e);i.fireEvent("customizeLoadResult",[o]),S(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}i._disposed||o(t)&&r()}var i=this;return e.data?(new D).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return o._isLoaded=!0,o._totalCount=isFinite(r.totalCount)?r.totalCount:-1,t.resolve(a,r)}function i(){o.store().totalCount(s).done(function(e){r.totalCount=e,n()}).fail(t.reject)}var o=this,a=e.data,r=e.extra,s=e.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),g.isPlainObject(r)||(r={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.length<o._pageSize)&&(o._isLastPage=!0),s.requireTotalCount&&!isFinite(r.totalCount)?i():n())},_applyMapFunction:function(e){return this._mapFunc?l(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e}}).include(x);t.DataSource=B,t.normalizeDataSourceOptions=a,t.normalizeLoadResult=u},function(e,t,n){var i=n(1),o=n(89),a=function(){function e(){}return function(t){return e.prototype=t,new e}}(),r=function(e,t){var n,o,a=[];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.push(n);for(a.sort(function(e,t){var n=i.isNumeric(e),o=i.isNumeric(t);return n&&o?e-t:n&&!o?-1:!n&&o?1:e<t?-1:e>t?1:0}),o=0;o<a.length;o++)n=a[o],t(n,e[n])},s=function(e,t,n,i){!i&&o.isWrapped(e[t])?o.assign(e[t],n):e[t]=n},l=function e(t,n,o,a){var r,l;for(var u in n)if(r=t[u],l=n[u],"__proto__"!==u&&t!==l){if(i.isPlainObject(l)){var d=o?i.isObject(r):i.isPlainObject(r);l=e(d?r:{},l,o,a)}void 0!==l&&r!==l&&s(t,u,l,a)}return t};t.clone=a,t.orderEach=r,t.deepExtendArraySafe=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(38),s=i(r),l=n(26),u=i(l),d=n(4),c=i(d),h=n(7),p=i(h),f=n(8),g=n(101),_=n(0),m=n(34),v=i(m),y=n(17),w=i(y),x=n(59),b=i(x),C=n(87),k=i(C),I=n(5),S=i(I),D="dx-state-readonly",T="dx-invalid",E="dx-invalid-message",O="dx-invalid-message-content",A="dx-invalid-message-auto",P="dx-invalid-message-always",B="dx-show-invalid-badge",M="dx-validation-target",F=100,R="valid",V="invalid",H="editorReadOnly",L=function(e){var t="";return e&&e.forEach(function(e){e.message&&(t+=(t?"<br />":"")+e.message)}),t},z=w.default.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,u.default)(),this.callBase.apply(this,arguments);var e=this.$element();e&&s.default.data(e[0],M,this)},_initOptions:function(e){this.callBase.apply(this,arguments),this.option(k.default.initValidationOptions(e))},_init:function(){this.callBase(),this._initInnerOptionCache("validationTooltipOptions");var e=this.$element();e.addClass(B)},_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:R,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:c.default.noop,_setOptionsByReference:function(){this.callBase(),(0,_.extend)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_focusInHandler:function(e){var t=this,n="auto"===this.option("validationMessageMode");return this._canValueBeChangedByClick()&&n&&(this._$validationMessage&&this._$validationMessage.removeClass(A),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(function(){return t._$validationMessage&&t._$validationMessage.addClass(A)},150)),this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_renderValidationState:function(){var e=this.option("isValid")&&this.option("validationStatus")!==V,t=this.option("validationMessageMode"),n=this.$element(),i=this.option("validationErrors");if(!i&&this.option("validationError")&&(i=[this.option("validationError")]),n.toggleClass(T,!e),this.setAria(V,!e||void 0),p.default.hasWindow()){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=null);var o=L(i);if(!e&&o){this._$validationMessage=(0,a.default)("<div>").addClass(E).html(o).appendTo(n);var r=this._getValidationMessageTarget();this._validationMessage=this._createComponent(this._$validationMessage,b.default,(0,_.extend)({integrationOptions:{},templatesRenderAsynchronously:!1,target:r,shading:!1,width:"auto",height:"auto",container:n,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._getInnerOptionsCache("validationTooltipOptions"))),this._$validationMessage.toggleClass(A,"auto"===t).toggleClass(P,"always"===t);var s="dx-"+new v.default;this._validationMessage.$content().addClass(O).attr("id",s),this.setAria("describedby",s),this._setValidationMessageMaxWidth(),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}}},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(F,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=(0,g.getDefaultAlignment)(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},a="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(o.h=-o.h),"below"!==e&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:n+a[0],at:n+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass(D,!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),n=(0,f.addNamespace)("keydown",H);S.default.off(t,n),e&&S.default.on(t,n,function(e){"backspace"===(0,f.normalizeKeyName)(e)&&e.preventDefault()})},_dispose:function(){var e=this.$element()[0];s.default.data(e,M,null),clearTimeout(this.showValidationMessageTimeout),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":this.option(k.default.synchronizeValidationOptions(e,this.option()));break;case"validationErrors":case"validationStatus":this.option(k.default.synchronizeValidationOptions(e,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"validationTooltipOptions":this._innerOptionChanged(this._validationMessage,e);break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}});e.exports=z},function(e,t,n){var i=n(12),o=n(53),a=n(7),r=n(61),s=[],l=function(){return"complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll},u=r(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){d.fire(),e()})}),d={add:function(e){var t=a.hasWindow();t&&l()?e():(s.push(e),t&&u())},fire:function(){s.forEach(function(e){return e()}),s=[]}};e.exports=o(d)},,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(53),r=i(a),s=n(14),l=n(4),u=n(3),d=n(1),c=n(286),h=i(c),p=n(28),f=i(p),g=n(21),_=i(g),m=n(218),v=n(115),y=i(v),w=n(441),x=i(w),b="undefined"!=typeof Intl,C=4,k=10,I=["currency","fixedpoint","exponential","percent","decimal"],S={1:"K",2:"M",3:"B",4:"T"},D={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},T=(0,r.default)({engine:function(){return"base"},numericFormats:I,defaultLargeNumberFormatPostfixes:S,_parseNumberFormatString:function(e){var t=void 0,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),(0,u.each)(t,function(e,t){(0,s.inArray)(t,I)>-1?n.formatType=t:t in D&&(n.power=D[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i=void 0,o=void 0;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,C)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n=this._calculateNumberPower(e,k),i=this._getNumberByPower(e,n,k),o=void 0;return void 0===t.precision&&(t.precision=1),i.toFixed(t.precision||0)>=k&&(n++,i/=k),o=(n>=0?"+":"")+n.toString(),this._formatNumberCore(i,"fixedpoint",t)+"E"+o},_addZeroes:function(e,t){var n=Math.pow(10,t),i=e<0?"-":"";e=(Math.abs(e)*n>>>0)/n;for(var o=e.toString();o.length<t;)o="0"+o;return i+o},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,f.default)().thousandsSeparator)+(t[1]?(0,f.default)().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*e),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():(0,m.toFixed)(e,n.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",(0,f.default)().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?"function"==typeof e?e:((0,d.isPlainObject)(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var n=this.format(90,"decimal");if("string"!=typeof e||"0"===n[1])return e;var i=t?n[1]:"0",o=t?"0":n[1],a=t?n[0]:"9",r=new RegExp("["+i+"-"+a+"]","g");return e.replace(r,function(e){return String.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-i.charCodeAt(0)))})},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this._getSeparators(),i=new RegExp("[0-9"+(0,l.escapeRegExp)(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),o=this.format(-1,t).replace(i,"1"),a=e.replace(i,"1");return a===o?-1:1},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if(t=t&&t.formatter||t,"function"==typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):this.convertDigits(h.default.getFormatter(t.type,this._getSeparators())(e))},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!=typeof t&&_.default.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+(0,l.escapeRegExp)(n)+"]","g"),o=e.replace(i,"").replace(n,".").replace(/\.$/g,"");if("."===o||""===o)return null;if(this._calcSignificantDigits(o)>15)return NaN;var a=+o;return a*this.getSign(e,t)}},_calcSignificantDigits:function(e){var t=e.split("."),n=o(t,2),i=n[0],a=n[1],r=function(e){for(var t=-1,n=0;n<e.length;n++)if("0"!==e[n]){t=n;break}return t>-1?e.length-t:0},s=0;return i&&(s+=r(i.split(""))),a&&(s+=r(a.split("").reverse())),s}});T.inject(y.default),b&&T.inject(x.default),e.exports=T},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var r=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(r<s)return-1;if(r>s)return 1}return 0}},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,o=n(3).each,a=n(15),r=a.inherit(e),s=r,l=new s(e),u={},d=function(t,n){o(t,function(t){i(l[t])?!n&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(n&&(u[t]=e[t]),e[t]=l[t])})};return d(e,!0),e.inject=function(e){s=s.inherit(e),l=new s,d(e)},e.resetInjection=function(){t(e,u),s=r,l=new r},e}},function(e,t){e.exports=window.jQuery},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(2),r=i(a),s=n(5),l=i(s),u=n(481),d=i(u),c=n(19),h=i(c),p=n(0),f=n(3),g=n(4),_=n(1),m=n(190),v=i(m),y=n(18),w=n(46),x=n(291),b=i(x),C=n(6),k="dxItemDeleting",I=-1,S=function(e){return e!==I},D=d.default.inherit({_setOptionsByReference:function(){this.callBase(),(0,p.extend)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:I,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=(0,y.compileGetter)(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataSource&&this._dataSource.key()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new b.default({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){if(!e._disposed){var n=(0,w.normalizeLoadResult)(t).data;e._dataSource._applyMapFunction(n)}}):(new C.Deferred).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=v.default;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,f.each)(e,function(e,i){var o=t._getIndexByKey(i);S(o)&&n.push(o)}),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done(function(){return e._normalizeSelectedItems()}),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t=void 0,n=void 0,i=void 0,o=void 0;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,_.isDefined)(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(o=this.option("selectedItems")||[],n=this._editStrategy.getIndexByItemData(o[0]),this.option("selectionRequired")&&!S(n))return this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",o[0]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(o));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!S(n))return this._syncSelectionOptions("selectedIndex");(0,_.isDefined)(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",I));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var a=this._getIndexByKey(i[0]);if(!S(a))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new C.Deferred).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=(0,_.isDefined)(t)&&t.length;return n||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),
e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionSilent("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}return(new C.Deferred).resolve().promise()},_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,r.default)(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){if(this.option("selectionByClick")){var t=e.currentTarget;this.isItemSelected(t)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget)}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,r.default)(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),i=this._isItemSelected(n);this._processSelectableItem(t,i)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var o=t._selectionChangePromise;if(!t._rendering){var a=[],r=void 0,s=[];t._editStrategy.beginCache();for(var l=0;l<n.length;l++)r=t._getIndexByKey(n[l]),a.push(r),t._addSelection(r);for(var u=0;u<i.length;u++)r=t._getIndexByKey(i[u]),s.push(r),t._removeSelection(r);t._editStrategy.endCache(),t._updateSelection(a,s)}(0,C.when)(o).done(function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:g.noop,_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);S(e)&&(this._processSelectableItem(t,!1),l.default.triggerHandler(t,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){h.default.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);S(e)&&(this._processSelectableItem(t,!0),l.default.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t)},_optionChanged:function(e){var t=this;switch(e.name){case"selectionMode":"multi"===e.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name).done(function(){return t._normalizeSelectedItems()});break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(k))return(new C.Deferred).resolve().promise();e.data(k,!0);var t=new C.Deferred,n={cancel:!1},i=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return(0,C.when)(i).always(function(o){var a=!i,r=!a&&"resolved"===i.state(),s=!!arguments.length,l=a||r&&!s||r&&o;(0,C.when)((0,C.fromPromise)(n.cancel)).always(function(){e.data(k,!1)}).done(function(e){l&&!e?t.resolve():t.reject()}).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new C.Deferred).resolve().promise();var t=new C.Deferred,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw h.default.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new C.Deferred;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)(0,r.default)(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof w.DataSource||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(S(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n))if("single"===this.option("selectionMode"))this._selection.setSelection([n]);else{var i=this.option("selectedItemKeys")||[];this._selection.setSelection([].concat(o(i),[n]))}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(S(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.isItemSelected(i)&&this._selection.deselect([i])}}},_deleteItemElementByIndex:function(e){this._updateSelectionAfterDelete(e),this._updateIndicesAfterIndex(e),this._editStrategy.deleteItemAtIndex(e)},_afterItemElementDeleted:function(e,t){var n=this._dataSource?"dataSource":"items";this._simulateOptionChange(n),this._itemEventHandler(e,"onItemDeleted",t,{beforeExecute:function(){e.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(e){var t=this,n=new C.Deferred,i=this._editStrategy.getItemElement(e),o=this._editStrategy.getNormalizedIndex(e),a=this._itemResponseWaitClass();return S(o)?this._waitDeletingPrepare(i).done(function(){i.addClass(a);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done(function(){t._deleteItemElementByIndex(o),t._afterItemElementDeleted(i,e),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){i.removeClass(a),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new C.Deferred,i=this,o=this._editStrategy,a=o.getItemElement(e),r=o.getItemElement(t),s=o.getNormalizedIndex(e),l=o.getNormalizedIndex(t),u=this._dataSource?"dataSource":"items",d=S(s)&&S(l)&&s!==l;return d?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){r[o.itemPlacementFunc(s,l)](a),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===u&&i._simulateOptionChange(u),i._itemEventHandler(a,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=D},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r="dx-icon",s="dx-svg-icon",l=function(e){return!(!e||"string"!=typeof e)&&(/^\s*<svg[^>]*>(.|\r\n|\r|\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon")},u=function(e){switch(l(e)){case"image":return(0,a.default)("<img>").attr("src",e).addClass(r);case"fontIcon":return(0,a.default)("<i>").addClass(r+" "+e);case"dxIcon":return(0,a.default)("<i>").addClass(r+" "+r+"-"+e);case"svg":return(0,a.default)("<i>").addClass(r+" "+s).append(e);default:return null}};t.getImageSourceType=l,t.getImageContainer=u},function(e,t,n){var i=n(28),o=n(220).getFormatter,a=n(221),r=n(1),s=r.isString,l=r.isDate,u=r.isNumeric,d="number",c="yyyy/MM/dd",h="yyyy/MM/dd HH:mm:ss",p=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,f=/^(\d{2}):(\d{2})(:(\d{2}))?$/,g=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],_=3,m=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!l(e)&&Date.parse(e),n=u(i)?new Date(i):e),n},v=function(e){var t=e.match(p),n=function(e){return+e||0};if(t){var i=t[1],o=--t[3],a=t[5],r=0,s=0;r=n(t[14]),s=n(t[16]),"-"===t[13]&&(r=-r,s=-s);var l=n(t[6])-r,u=n(t[8])-s,d=n(t[10]),c=function(e){return e=e||"",n(e)*Math.pow(10,_-e.length)},h=c(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,u,d,h)):new Date(i,o,a,l,u,d,h)}if(t=e.match(f))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},y=function(e,t){var n=e.match(p),i="";{if(n){for(var o=1;o<g.length;o++)n[o]&&(i+=g[o]||n[o]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(i+=n[15]?"xxx":n[16]?"xx":"x"),i}if(n=e.match(f))return n[3]?"HH:mm:ss":"HH:mm"}},w=function(e){return"number"==typeof e?new Date(e):m(e,!i().forceIsoDateParsing)},x=function(e,t){return t?l(e)?t===d?e&&e.valueOf?e.valueOf():null:o(t,a)(e):null:e},b=function(e){if("number"==typeof e)return d;if(s(e)){var t;return i().forceIsoDateParsing&&(t=y(e)),t?t:e.indexOf(":")>=0?h:c}return e?null:void 0};e.exports={dateParser:m,deserializeDate:w,serializeDate:x,getDateSerializationFormat:b}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(){return u||(u=a()),u}function a(){var e=(0,l.getWindow)(),t=e&&e.Quill||n(577);if(!t)throw s.default.Error("E1041","Quill");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getQuill=void 0;var r=n(19),s=i(r),l=n(7),u=void 0;t.getQuill=o},function(e,t,n){e.exports=n(478)},function(e,t){e.exports=window.ko},function(e,t,n){var i=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};e.exports=i},function(e,t,n){var i=n(6).Deferred,o=n(12),a=n(453),r=n(7),s=r.getWindow(),l=n(0).extendFromObject,u=n(1).isDefined,d=n(67),c=n(53),h="success",p="error",f="timeout",g="nocontent",_="parsererror",m=function(e){return 200<=e&&e<300},v=function(e){return 204!==e},y=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")},w=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},x=function(e){e.parentNode.removeChild(e)},b=function(e){return o.getHead().appendChild(e)},C=function(e){var t=w({text:e});b(t),x(t)},k=function(e){var t=w({src:e});return new d(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),x(t)};for(var r in i)o.listen(t,r,a);b(t)})},I=function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]},S=function(e){var t;return e.data&&!e.upload&&"GET"!==B(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},D=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText},T=function(e,t,n){var i=D(t);switch(n){case"jsonp":C(i);break;case"script":C(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,_,n)}break;default:e.resolve(i,h,t)}},E=function(e){if(!r.hasWindow())return!0;var t=!1,n=o.createElement("a"),i=o.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},O=function(e,t){return e&&setTimeout(function(){t.customStatus=f,t.abort()},e)},A=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}},P=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||s.location.href;return i||e.cache||(n=n||{},n._=Date.now()),n&&!e.upload&&(i||(n=y(n)),"GET"===B(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}},B=function(e){return(e.method||"GET").toUpperCase()},M=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||S(e),t.Accept=t.Accept||I(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},F=function(e){var t,n=a.getXhr(),o=new i,r=o.promise(),l=!u(e.async)||e.async,d=e.dataType,c=e.timeout||0;e.crossDomain=E(e.url);var f="jsonp"===d||"script"===d;void 0===e.cache&&(e.cache=!f);var _=A(e),y=M(e),w=P(e,y),x=w.url,b=w.parameters;if(_&&(s[_]=function(e){o.resolve(e,h,n)}),e.crossDomain&&f){var C=function(){o.reject(n,p)},I=function(){"jsonp"!==d&&o.resolve(null,h,n)};return k(x).then(I,C),r}if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(B(e),x,l,e.username,e.password),l&&(n.timeout=c,t=O(c,n,o)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),m(n.status)?v(n.status)?T(o,n,d):o.resolve(null,g,n):o.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var S in e.xhrFields)n[S]=e.xhrFields[S];"arraybuffer"===e.responseType&&(n.responseType=e.responseType);for(var D in y)Object.prototype.hasOwnProperty.call(y,D)&&u(y[D])&&n.setRequestHeader(D,y[D]);return e.beforeSend&&e.beforeSend(n),n.send(b),r.abort=function(){n.abort()},r};e.exports=c({sendRequest:F})},function(e,t,n){var i=n(1).isFunction,o=function(){},a=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):o},r={info:a("info"),warn:a("warn"),error:a("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=r,t.debug=s},function(e,t,n){var i=n(1),o=n(22),a=n(51),r=n(32),s=n(53);n(115),e.exports=s({format:function(e,t){var n=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),o=i.isNumeric(e)||i.isDate(e);return n&&o?i.isFunction(t)?t(e):(i.isString(t)&&(t={type:t}),i.isNumeric(e)?a.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){var o=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(o)}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){var a=function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")};n.unshift(a)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i,a;if(e.length>1)for(n=o.getDatesDifferences(e[0],e[1]),a=1;a<e.length-1;a++)i=o.getDatesDifferences(e[a],e[a+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var a,r,s,l={week:"day"},u=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},d=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&d(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),u(r,s,!0),s=o.getDateUnitInterval(n||"second"),u(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i=n(2),o=n(12),a=function(e,t){if(!r(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=!0,u=e.isContentEditable;return l=a||u?!o:s?e.href||i:i},r=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return a(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&a(t,n)},focused:function(e){var t=i(e).get(0);return o.getActiveElement()===t}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.BindableTemplate=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(2),u=i(l),d=n(69),c=n(5),h=n(137),p=i(h),f=n(1),g=function(){var e=function(e,t,n){return t(function(){return e},n)},t=function(e,t,n,i,o){var a={},r=n.slice(),s=n.map(function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(a[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||o(a)})});return function(){s.forEach(function(e){return e()})}};return function(n,i,o,a,r){var s=void 0,l=e(n,i,function(e){return s&&s(),(0,f.isPrimitive)(e)?void r(e):void(s=t(e,i,o,a,r))});return function(){s&&s(),l&&l()}}}();t.BindableTemplate=function(e){function t(e,n,i,r){o(this,t);var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s._render=e,s._fields=n,s._fieldsMap=r||{},s._watchMethod=i,s}return r(t,e),s(t,[{key:"_renderCore",value:function(e){var t=this,n=(0,u.default)(e.container),i=g(e.model,this._watchMethod,this._fields,this._fieldsMap,function(i){n.empty(),t._render(n,i,e.model)});return(0,c.on)(n,p.default,i),n.contents()}}]),t}(d.TemplateBase)},function(e,t,n){var i=n(6),o=n(7),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||(s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(3).each,o=n(114),a=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),o.fire(e,n)};a.callbacks=o,e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateBase=t.renderedCallbacks=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(12),u=n(26),d=i(u),c=n(11),h=n(21),p=i(h),f=t.renderedCallbacks=(0,d.default)({syncStrategy:!0});t.TemplateBase=function(){function e(){o(this,e)}return a(e,[{key:"render",value:function(e){e=e||{};var t=e.onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),f.fire(n,e.container),t&&t(),n}},{key:"_ensureResultInContainer",value:function(e,t){if(t){var n=(0,s.default)(t),i=(0,c.contains)(n.get(0),e.get(0));if(n.append(e),!i){var o=(0,l.getBody)().contains(n.get(0));o&&(0,c.triggerShownEvent)(e)}}}},{key:"_renderCore",value:function(){throw p.default.Error("E0001")}}]),e}()},function(e,t,n){var i=n(2),o=n(38),a=n(14).wrapToArray,r=n(14).inArray,s=n(3),l=n(11).contains,u=n(68),d=n(8),c=n(158),h=n(90),p="dxdragstart",f="dxdrag",g="dxdragend",_="dxdragenter",m="dxdragleave",v="dxdrop",y="dxDragEventsCount",w=[],x=[],b=[],C={setup:function(e,t){var n=r(e,w)!==-1;n||(w.push(e),x.push([]),b.push(t||{}))},add:function(e,t){var n=r(e,w);this.updateEventsCounter(e,t.type,1);var i=t.selector;r(i,x[n])===-1&&x[n].push(i)},updateEventsCounter:function(e,t,n){if([_,m,v].indexOf(t)>-1){var i=o.data(e,y)||0;o.data(e,y,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=o.data(e,y);if(!t){var n=r(e,w);w.splice(n,1),x.splice(n,1),b.splice(n,1),o.removeData(e,y)}}};u(_,C),u(m,C),u(v,C);var k=function(e){var t=r(e.get(0),w),n=x[t].filter(function(e){return e}),i=e.find(n.join(", "));return r(void 0,x[t])!==-1&&(i=i.add(e)),i},I=function(e){var t=r(e.get(0),w);return b[t]},S=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},D=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},T=c.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=a(e.targetElements||(null===e.targetElements?[]:w));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=d.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(f,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),n=t===this._currentDropTarget;n||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};d.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(w,function(o,a){if(n._checkDropTargetActive(a)){var r=i(a);s.each(k(r),function(o,a){var s=i(a);n._checkDropTarget(I(r),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return t=t||i===e||l(i,e),!t}),t},_checkDropTarget:function(e,t,n){var o=t.get(0)===i(n.target).get(0);if(o)return!1;var a=S(e,t);if(n.pageX<a.left)return!1;if(n.pageY<a.top)return!1;var r=D(e,t);return!(n.pageX>a.left+r.width)&&(!(n.pageY>a.top+r.height)&&(!(e.checkDropTarget&&!e.checkDropTarget(t,n))&&t))},_end:function(e){var t=d.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}});h({emitter:T,events:[p,f,g]}),t.move=f,t.start=p,t.end=g,t.enter=_,t.leave=m,t.drop=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(41),a=n(42),r=i(a),s=n(37),l=n(92),u=i(l),d=n(138),c=i(d),h=u.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw s.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,r.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=c.default.indexByKey(this,this._array,e);return t===-1?(0,o.rejectedPromise)(s.errors.Error("E4009")):(0,o.trivialPromise)(this._array[t])},_insertImpl:function(e){return c.default.insert(this,this._array,e)},_pushImpl:function(e){c.default.applyBatch(this,this._array,e)},_updateImpl:function(e,t){return c.default.update(this,this._array,e,t)},_removeImpl:function(e){return c.default.remove(this,this._array,e)},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=h},function(e,t){e.exports=window.Globalize},function(e,t,n){var i=n(2),o=n(49),a=o.add,r=n(26)(),s=i(),l=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,a=l();e=o?n:i("body"),r.fire(o?l():i(),a)}}();a(function(){l(".dx-viewport")}),t.value=l,t.changeCallback=r,t.originalViewPort=function(){return s}},function(e,t,n){var i=n(2),o="dx-inkripple",a="dx-inkripple-wave",r="dx-inkripple-showing",s="dx-inkripple-hiding",l=2,u=4e3,d=300,c=1e3,h=0,p=function(e){e=e||{},void 0===e.useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||l,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:y(e.useHoldAnimation)};return{showWave:m.bind(this,t),hideWave:x.bind(this,t)}},f=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("<div>").addClass(o).appendTo(e)),t},g=function(e,t){for(var n=f(e),o=n.children("."+a).toArray(),r=o.length;r<t;r++){var s=i("<div>").appendTo(n).addClass(a);o.push(s[0])}return i(o)},_=function(e,t){var n,i,o=t.element,a=o.outerWidth(),r=o.outerHeight(),s=parseInt(Math.sqrt(a*a+r*r)),l=Math.min(u,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(r-l)/2;else{var d=t.event,c=t.element.offset(),h=d.pageX-c.left,p=d.pageY-c.top;n=h-l/2,i=p-l/2}return{left:n,top:i,height:l,width:l}},m=function(e,t){var n=g(t.element,e.wavesNumber).eq(t.wave||h);e.hidingTimeout&&clearTimeout(e.hidingTimeout),w(n),n.css(_(e,t)),e.showingTimeout=setTimeout(v.bind(this,e,n),0)},v=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)},y=function(e){return{showingScale:e?c:d,hidingScale:d,hidingOpacity:d}},w=function(e){e.removeClass(s).css("transitionDuration","")},x=function(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=g(t.element,t.wavesNumber).eq(t.wave||h),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(s).removeClass(r).css("transitionDuration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(w.bind(this,n),a)};e.exports={render:p}},,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(53),a=i(o),r=n(442),s=i(r),l=n(443),u=i(l),d="en";e.exports=(0,a.default)({locale:function(){var e=d;return function(t){return t?void(e=t):e}}(),getValueByClosestLocale:function(e){for(var t=this.locale(),n=e(t),i=void 0;!n&&!i;)t=(0,u.default)(s.default,t),t?n=e(t):i=!0;return void 0===n&&t!==d?e(d):n}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o={toXml:function(e,t,n){var o=["<",e];for(var a in t){var r=t[a];(0,i.isDefined)(r)&&o.push(" ",a,'="',r,'"')}return(0,i.isDefined)(n)&&""!==n?o.push(">",n,"</",e,">"):o.push(" />"),o.join("")}};t.default=o},function(e,t,n){var i,o=n(2),a=n(4),r=n(3).each,s=n(7),l=s.getWindow(),u=n(12),d=n(1).isWindow,c=n(0).extend,h=n(25),p=n(27),f=n(43),g=/left|right/,_=/top|bottom/,m=/fit|flip|none/,v=h.safari,y=function(e){var t={h:"center",v:"center"},n=a.splitPair(e);return n&&r(n,function(){var e=String(this).toLowerCase();g.test(e)?t.h=e:_.test(e)&&(t.v=e)}),t},w=function(e){return a.pairToObject(e)},x=function(e){var t=a.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return m.test(n)||(n="none"),m.test(i)||(i=n),{h:n,v:i}},b=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},C=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},k=function(e,t){var n=0;return e.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},I=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},S=function(e){e.myLocation=e.atLocation+b(e.atAlign)*e.atSize-b(e.myAlign)*e.mySize+e.offset},D={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var n=c({},e,{myAlign:C(e.myAlign),atAlign:C(e.atAlign),offset:-e.offset});S(n),n.oversize=k(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},T=function(){var e=o("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},E={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},O=function(e,t){var n=o(e),a=n.offset(),r=c(!0,{},E,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var s=y(t.my),h=y(t.at),p=o(t.of).length&&t.of||l,g=w(t.offset),_=x(t.collision),m=t.boundary,b=w(t.boundaryOffset),C={mySize:n.outerWidth(),myAlign:s.h,atAlign:h.h,offset:g.h,
collision:_.h,boundaryOffset:b.h},O={mySize:n.outerHeight(),myAlign:s.v,atAlign:h.v,offset:g.v,collision:_.v,boundaryOffset:b.v};if(p.preventDefault)C.atLocation=p.pageX,O.atLocation=p.pageY,C.atSize=0,O.atSize=0;else if(p=o(p),d(p[0]))C.atLocation=p.scrollLeft(),O.atLocation=p.scrollTop(),C.atSize=p[0].innerWidth>=p[0].outerWidth?p[0].innerWidth:p.width(),O.atSize=p[0].innerHeight>=p[0].outerHeight||v?p[0].innerHeight:p.height();else if(9===p[0].nodeType)C.atLocation=0,O.atLocation=0,C.atSize=p.width(),O.atSize=p.height();else{var A=p.offset();C.atLocation=A.left,O.atLocation=A.top,C.atSize=p.outerWidth(),O.atSize=p.outerHeight()}S(C),S(O);var P=function(){var e=o(l),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),s=u.getDocumentElement(),d=f.touch?s.clientWidth/t:1,c=f.touch?s.clientHeight/n:1;void 0===i&&T();var h=t,p=n;if(m){var g=o(m),_=g.offset();a=_.left,r=_.top,h=g.width(),p=g.height()}return{h:{min:a+C.boundaryOffset,max:a+h/d-C.mySize-C.boundaryOffset},v:{min:r+O.boundaryOffset,max:r+p/c-O.mySize-O.boundaryOffset}}}();C.oversize=k(C,P.h),O.oversize=k(O,P.v),C.collisionSide=I("h",C,P.h),O.collisionSide=I("v",O,P.v),D[C.collision]&&D[C.collision](C,P.h),D[O.collision]&&D[O.collision](O,P.v);var B=function(e){return t.precise?e:Math.round(e)};return c(!0,r,{h:{location:B(C.myLocation),oversize:B(C.oversize),fit:C.fit,flip:C.flip,collisionSide:C.collisionSide},v:{location:B(O.myLocation),oversize:B(O.oversize),fit:O.fit,flip:O.flip,collisionSide:O.collisionSide},precise:t.precise}),r},A=function(e,t){var n=o(e);if(!t)return n.offset();p.resetPosition(n,!0);var i=n.offset(),a=t.h&&t.v?t:O(n,t),r=function(e){return t.precise?e:Math.round(e)};return p.move(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a},P=function(e){return e=o(e).get(0),d(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()};A.inverseAlign||(A.inverseAlign=C),A.normalizeAlign||(A.normalizeAlign=y),e.exports={calculateScrollbarWidth:T,calculate:O,setup:A,offset:P}},function(e,t,n){var i=n(54),o=n(28),a=o().useJQuery;i&&a!==!1&&o({useJQuery:!0}),e.exports=function(){return i&&o().useJQuery}},function(e,t,n){var i=n(2),o=n(7),a=o.getNavigator(),r=n(43),s=n(31),l=n(0).extend,u=n(16),d=n(9),c=n(17),h="dx-loadindicator",p="dx-loadindicator-wrapper",f="dx-loadindicator-content",g="dx-loadindicator-icon",_="dx-loadindicator-segment",m="dx-loadindicator-segment-inner",v="dx-loadindicator-image",y=c.inherit({_getDefaultOptions:function(){return l(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=s.current();return this.callBase().concat([{device:function(){var e=u.real(),t="android"===e.platform&&!/chrome/i.test(a.userAgent);return t},options:{viaImage:!0}},{device:function(){return s.isIos7(e)},options:{_animatingSegmentCount:11}},{device:function(){return s.isMaterial(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return s.isGeneric(e)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass(h)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(p),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").addClass(f),this._$wrapper.append(this._$content)},_renderMarkup:function(){!r.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("<div>").addClass(g),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("<div>").addClass(_).addClass(_+t);e&&n.append(i("<div>").addClass(m)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(v),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});d("dxLoadIndicator",y),e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=function t(n,i,o,a,r,s){function l(e,r,s){(0,m.when)(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var u,d,c,h;for(r=r||0,d=r;d<n.length;d++){if(e&&d>r&&d%1e4===0&&new Date-y>=300)return y=new Date,c=new m.Deferred,setTimeout(l(c,d,!1),0),c;if(u=n[d],!s){if(a.unshift(u),o&&i(a,d)===!1)return;if(u.children&&(h=t(u.children,i,o,a),e&&h))return c=new m.Deferred,h.done(l(c,d,!0)),c}if(s=!1,!o&&i(a,d)===!1)return;a.shift(),n[d]!==u&&d--}};return t}function a(e){return(0,d.map)(["year","quarter","month"],function(t,n){return(0,c.extend)({},e,{groupInterval:t,groupIndex:n})})}function r(e,t,n,i){var o=[];return(0,d.each)(t||[],function(t,l){if(!t||0!==t.indexOf("__")){for(var d,c=1,h=n.length?n+"."+t:t,p=i[h],f=(0,u.compileGetter)(h);!(0,s.isDefined)(l)&&e[c];)l=f(e[c]),c++;!p&&(0,s.isDefined)(l)&&(p=(0,s.type)(l)),d=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?d=d.concat(a(d[0])):"object"===p&&(d=r(e,l,h,i)),o.push.apply(o,d)}}),o}var s=n(1),l=n(62),u=n(18),d=n(3),c=n(0),h=n(32),p=n(64),f=n(46),g=n(71),_=i(g),m=n(6),v=t.setFieldProperty=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];Object.prototype.hasOwnProperty.call(o,t)&&!i||(o[t]=a),e[t]=n};t.sendRequest=function(e){return(0,l.sendRequest)(e)};var y=new Date;t.foreachTree=o(!1),t.foreachTreeAsync=o(!0),t.findField=function(e,t){var n,i;if(e&&(0,s.isDefined)(t))for(n=0;n<e.length;n++)if(i=e[n],i.name===t||i.caption===t||i.dataField===t||i.index===t)return n;return-1},t.formatValue=function(e,t){var n={value:e,valueText:(0,p.format)(e,t.format)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0,o=e(t),a=e(n),r=(0,s.isDefined)(o),l=(0,s.isDefined)(a);return r&&l&&(o>a?i=1:o<a&&(i=-1)),r&&!l&&(i=1),!r&&l&&(i=-1),i}},t.createPath=function(e){var t,n=[];for(t=e.length-1;t>=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r<t.length;r++)a=t[r],a[o]&&a[o].length&&e(a[o],n,i+1,o)},t.mergeArraysByMaxValue=function(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push(Math.max(e[n]||0,t[n]||0));return i},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:e.headerName&&e.headerName!==t&&e.oppositePath?i=e.oppositePath.length:(0,d.each)(o,function(e,t){i=Math.max(i,t.length)});n[i+1]&&n[i].expanded;)i++;return i},t.discoverObjectFields=function(e,n){var i=t.getFieldsDataType(n);return r(e,e[0],"",i)},t.getFieldsDataType=function(e){var t={};return(0,d.each)(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var w={month:function(e){return(0,h.getMonthNames)()[e-1]},quarter:function(e){return(0,h.format)(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return(0,h.getDayNames)()[e]}};t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||v(e,"format",w[e.groupInterval]);else if("number"===e.dataType){var t=(0,s.isNumeric)(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&v(e,"customizeText",function(n){var i=n.value+t,o=(0,p.format)(i,e.format);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push((0,c.extend)({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.storeDrillDownMixin={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return i?n=i[e](t):(n=new m.Deferred,(0,m.when)(o).done(function(o){i=new _.default(o),i[e](t).done(n.resolve).fail(n.reject)}).fail(n.reject)),n}}var i,o=this.getDrillDownItems(e,t),a=new f.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()});return a}},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var i=n(458),o=n(3).each,a=n(1).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new i(this))},setEventsStrategy:function(e){"function"==typeof e&&(e=e(this)),this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?o(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){var i=n(46).DataSource,o=n(0).extend,a=n(46).normalizeDataSourceOptions,r="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",u="_dataSourceLoadingChangedHandler",d="_dataSourceFromUrlLoadMode",c="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=c in this?this[c]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=r in this?this[r]():{},t=this._dataSourceType?this._dataSourceType():i,n=a(n,{fromUrlLoadMode:d in this&&this[d]()}),this._dataSource=new t(o(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),u in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(t){this[s](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[u].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};e.exports=h},function(e,t,n){function i(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return s({},e,{items:i(u(e.items),t.slice(1)).toArray()})})),e}function o(e,t){var n=[];return l(e,function(e,i){var o=r(t,function(e){return i.selector===e.selector});o.length<1&&n.push(i)}),n.concat(t)}function a(e,t,n){t=t||{};var a=t.filter;if(a&&(e=e.filter(a)),n)return e;var r=t.sort,s=t.select,u=t.group,c=t.skip,h=t.take;return u&&(u=d(u),u.keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(r||u)&&(r=d(r||[]),u&&!u.keepInitialKeyOrder&&(r=o(u,r)),l(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s)),u&&(e=i(e,u)),(h||c)&&(e=e.slice(c||0,h)),e}var r=n(4).grep,s=n(0).extend,l=n(3).each,u=n(156),d=n(41).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},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(7),u=i(l),d=n(0),c=n(28),h=i(c),p=n(21),f=i(p),g=n(11),_=n(130),m=i(_),v=n(4),y=i(v),w=n(3),x=n(1),b=n(14),C=n(131),k=i(C),I=n(38),S=i(I),D=n(112),T=i(D),E=T.default.abstract,O="dx-rtl",A="dx-visibility-change-handler",P="VisibilityChange",B=T.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,h.default)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=(0,a.default)(e),k.default.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_getSynchronizableOptionsForCreateComponent:function(){return["rtlEnabled","disabled","templatesRenderAsynchronously"]},_visibilityChanged:E,_dimensionChanged:E,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);m.default.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==E},_renderComponent:function(){this._initMarkup(),u.default.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=(0,d.extend)({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass(A)},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:null===n?"":n,height:null===i?"":i})},_isCssUpdateRequired:function(e,t,n){return!!((0,x.isDefined)(n)||(0,x.isDefined)(t)||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+P;s.default.off(e.$element(),t),s.default.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+P,n="dxshown."+this.NAME+P;e._isHidden=!e._isVisible(),s.default.off(e.$element(),t),s.default.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),s.default.off(e.$element(),n),s.default.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==E&&u.default.hasWindow()},_clean:y.default.noop,_modelByElement:function(){var e=this.option("modelByElement")||y.default.noop;return e(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw f.default.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&m.default.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass(O,e)},_createComponent:function(e,t,n){var i=this,o=this;n=n||{};var r=y.default.grep(this._getSynchronizableOptionsForCreateComponent(),function(e){return!(e in n)}),s=o.option("nestedComponentOptions")||y.default.noop,l=(0,d.extend)({integrationOptions:this.option("integrationOptions")},s(this));r.forEach(function(e){l[e]=i.option(e)}),o._extendConfig(n,l);var u;if((0,x.isString)(t)){var c=(0,a.default)(e)[t](n);u=c[t]("instance")}else e&&(u=t.getInstance(e),u?u.option(n):u=new t(e,n));if(u){var h=function(e){(0,b.inArray)(e.name,r)>=0&&u.option(e.name,e.value)};o.on("optionChanged",h),u.on("disposing",function(){o.off("optionChanged",h)})}return u},_extendConfig:function(e,t){(0,w.each)(t,function(t,n){e[t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:n})},_defaultActionConfig:function(){return(0,d.extend)(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return(0,d.extend)(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t];if(!n)return;var i=n.name;0!==i.indexOf("aria-")&&i.indexOf("dx-")===-1&&"role"!==i&&"style"!==i&&"tabindex"!==i||e.removeAttribute(i)}},_removeClasses:function(e){var t=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)});e.className=t.join(" ")},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return(0,g.getPublicElement)(this.$element())},dispose:function(){var e=this.$element().get(0);S.default.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)},resetOption:function(e){this.callBase(e),"width"!==e&&"height"!==e||(0,x.isDefined)(this.initialOption(e))||this.$element().css(e,"")}});B.getInstance=function(e){return k.default.getInstanceByElement((0,a.default)(e),this)},B.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=B},function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=m[t]?"#"+m[t]:t,t=o(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=a(t[0]),this.g=a(t[1]),this.b=a(t[2]),this.a=a(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=d(this.r,this.g,this.b)}function o(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;n<i;++n)if(t=v[n].re.exec(e))return v[n].process(t);return null}function a(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function r(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r-s;if(a=r,o=0===r?0:1-s/r,r===s)i=0;else switch(r){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function l(e,t,n){var i,o,a,r,s,l,u,d;switch(r=Math.floor(e%360/60),a=(100-t)*n/100,s=(n-a)*(e%60/60),o=a+s,i=n-s,r){case 0:l=n,u=o,d=a;break;case 1:l=i,u=n,d=a;break;case 2:l=a,u=n,d=o;break;case 3:l=a,u=i,d=n;break;case 4:l=o,u=a,d=n;break;case 5:l=n,u=a,d=i}return[Math.round(2.55*l),Math.round(2.55*u),Math.round(2.55*d)]}function u(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function d(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a+r,l=s/2;if(a===r)i=o=0;else{var d=a-r;o=l>.5?d/(2-s):d/s,i=u(e,t,n,d),i/=6}return{h:y(360*i),s:y(100*o),l:y(100*l)}}function c(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,o,a;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=o=a=n;else{var r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=p(s,r,c("r",e)),o=p(s,r,c("g",e)),a=p(s,r,c("b",e))}return[y(255*i),y(255*o),y(255*a)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var m={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=l(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=f(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],y=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=a(this.r+e),t.g=a(this.g+e),t.b=a(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=a(y(this.r*(1-t)+n.r*t)),o.g=a(y(this.g*(1-t)+n.g*t)),o.b=a(y(this.b*(1-t)+n.b*t)),o},toHex:function(){return r(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(_(e)&&_(t)&&_(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=f(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(15),u=i(l),d=n(0),c=n(14),h=n(3),p=n(82),f=i(p),g=n(21),_=i(g),m=n(4),v=n(1),y=i(v),w=n(51),x=i(w),b=n(10),C=i(b),k=n(67),I=i(k),S=n(6),D={valid:"valid",invalid:"invalid",pending:"pending"},T=function(){function e(){r(this,e),this.NAME="base"}return s(e,[{key:"defaultMessage",value:function(e){return C.default.getFormatter("validation-"+this.NAME)(e)}},{key:"defaultFormattedMessage",value:function(e){return C.default.getFormatter("validation-"+this.NAME+"-formatted")(e)}},{key:"_isValueEmpty",value:function(e){return!H.required.validate(e,{})}},{key:"validate",value:function(e,t){var n=this,i=Array.isArray(e)?e:[e],o=!0;return i.length?i.every(function(e){return o=n._validate(e,t)}):o=this._validate(null,t),o}}]),e}(),E=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="required",e}return a(t,e),s(t,[{key:"_validate",value:function(e,t){return!!y.default.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&y.default.isDefined(t.trim)||(e=e.trim()),""!==e))}}]),t}(T),O=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="numeric",e}return a(t,e),s(t,[{key:"_validate",value:function(e,t){return!(t.ignoreEmptyValue===!1||!this._isValueEmpty(e))||(t.useCultureSettings&&y.default.isString(e)?!isNaN(x.default.parse(e)):y.default.isNumeric(e))}}]),t}(T),A=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="range",e}return a(t,e),s(t,[{key:"_validate",value:function(e,t){if(t.ignoreEmptyValue!==!1&&this._isValueEmpty(e))return!0;var n=H.numeric.validate(e,t),i=y.default.isDefined(e)&&""!==e,o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!y.default.isDate(e)&&!i)return!1;if(y.default.isDefined(a))return y.default.isDefined(r)?o>=a&&o<=r:o>=a;if(y.default.isDefined(r))return o<=r;throw _.default.Error("E0101")}}]),t}(T),P=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="stringLength",e}return a(t,e),s(t,[{key:"_validate",value:function(e,t){return e=y.default.isDefined(e)?String(e):"",!t.trim&&y.default.isDefined(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||H.range.validate(e.length,(0,d.extend)({},t))}}]),t}(T),B=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="custom",e}return a(t,e),s(t,[{key:"validate",value:function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&y.default.isFunction(n.option)&&n.option("dataGetter"),o=y.default.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(0,d.extend)(a,o),t.validationCallback(a)}}]),t}(T),M=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="async",e}return a(t,e),s(t,[{key:"validate",value:function(e,t){if(y.default.isDefined(t.reevaluate)||(0,d.extend)(t,{reevaluate:!0}),t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&y.default.isFunction(n.option)&&n.option("dataGetter"),o=y.default.isFunction(i)&&i(),a={value:e,validator:n,rule:t};o&&(0,d.extend)(a,o);var r=t.validationCallback(a);if(!y.default.isPromise(r))throw _.default.Error("E0103");return this._getWrappedPromise((0,S.fromPromise)(r).promise())}},{key:"_getWrappedPromise",value:function(e){var t=new S.Deferred;return e.then(function(e){t.resolve(e)},function(e){var n={isValid:!1};y.default.isDefined(e)&&(y.default.isString(e)?n.message=e:y.default.isObject(e)&&y.default.isDefined(e.message)&&y.default.isString(e.message)&&(n.message=e.message)),t.resolve(n)}),t.promise()}}]),t}(B),F=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="compare",e}return a(t,e),s(t,[{key:"_validate",value:function(e,t){if(!t.comparisonTarget)throw _.default.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;(0,d.extend)(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}]),t}(T),R=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="pattern",e}return a(t,e),s(t,[{key:"_validate",value:function(e,t){if(t.ignoreEmptyValue!==!1&&this._isValueEmpty(e))return!0;var n=t.pattern;return y.default.isString(n)&&(n=new RegExp(n)),
n.test(e)}}]),t}(T),V=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.NAME="email",e}return a(t,e),s(t,[{key:"_validate",value:function(e,t){return!(t.ignoreEmptyValue===!1||!this._isValueEmpty(e))||H.pattern.validate(e,(0,d.extend)({},t,{pattern:/^[\d\w._-]+@([\d\w._-]+\.)+[\w]+$/i}))}}]),t}(T),H={required:new E,numeric:new O,range:new A,stringLength:new P,custom:new B,async:new M,compare:new F,pattern:new R,email:new V},L=u.default.inherit({ctor:function(e){this.group=e,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo()},validate:function(){var e=this,t={isValid:!0,brokenRules:[],validators:[],status:D.valid,complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,h.each)(this.validators,function(n,i){var o=i.validate();t.isValid=t.isValid&&o.isValid,o.brokenRules&&(t.brokenRules=t.brokenRules.concat(o.brokenRules)),t.validators.push(i),o.status===D.pending&&e._addPendingValidator(i),e._subscribeToChangeEvents(i)}),this._pendingValidators.length?t.status=D.pending:(t.status=t.isValid?D.valid:D.invalid,this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(t)),this._updateValidationInfo(t),(0,d.extend)({},this._validationInfo.result)},_subscribeToChangeEvents:function(e){e.on("validating",this._onValidatorStatusChanged),e.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents:function(e){e.off("validating",this._onValidatorStatusChanged),e.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents:function(){var e=this;(0,h.each)(this.validators,function(t,n){e._unsubscribeFromChangeEvents(n)})},_updateValidationInfo:function(e){this._validationInfo.result=e,e.status===D.pending&&(this._validationInfo.deferred||(this._validationInfo.deferred=new S.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator:function(e){var t=(0,m.grep)(this._pendingValidators,function(t){return t===e})[0];t||this._pendingValidators.push(e)},_removePendingValidator:function(e){var t=(0,c.inArray)(e,this._pendingValidators);t>=0&&this._pendingValidators.splice(t,1)},_orderBrokenRules:function(e){var t=[];return(0,h.each)(this.validators,function(n,i){var o=(0,m.grep)(e,function(e){return e.validator===i});o.length&&(t=t.concat(o))}),t},_updateBrokenRules:function(e){if(this._validationInfo.result){var t=this._validationInfo.result.brokenRules,n=(0,m.grep)(t,function(t){return t.validator!==e.validator});e.brokenRules&&(t=n.concat(e.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(t)}},_onValidatorStatusChanged:function(e){return e.status===D.pending?void this._addPendingValidator(e.validator):void this._resolveIfComplete(e)},_resolveIfComplete:function(e){if(this._removePendingValidator(e.validator),this._updateBrokenRules(e),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?D.valid:D.invalid,this._validationInfo.result.isValid=this._validationInfo.result.status===D.valid;var t=(0,d.extend)({},this._validationInfo.result,{complete:null}),n=this._validationInfo.deferred;this._resetValidationInfo(),this._raiseValidatedEvent(t),n&&setTimeout(function(){n.resolve(t)})}},_raiseValidatedEvent:function(e){this.fireEvent("validated",[e])},_resetValidationInfo:function(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo:function(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator:function(e){var t=(0,c.inArray)(e,this.validators);t>-1&&(this.validators.splice(t,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:e}))},registerValidator:function(e){(0,c.inArray)(e,this.validators)<0&&(this.validators.push(e),this._synchronizeValidationInfo())},reset:function(){(0,h.each)(this.validators,function(e,t){t.reset()}),this._pendingValidators=[],this._resetValidationInfo()}}).include(f.default),z={groups:[],getGroupConfig:function(e){var t=(0,m.grep)(this.groups,function(t){return t.group===e});if(t.length)return t[0]},findGroup:function(e,t){var n=e.parents(".dx-validationgroup").first();return n.length?n.dxValidationGroup("instance"):t},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new L(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=(0,c.inArray)(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e){var t=e.rule,n=e.validator,i=e.name;y.default.isDefined(t.message)||(n.defaultFormattedMessage&&y.default.isDefined(i)?t.message=n.defaultFormattedMessage(i):t.message=n.defaultMessage())},_addBrokenRule:function(e){var t=e.result,n=e.rule;t.brokenRule||(t.brokenRule=n),t.brokenRules||(t.brokenRules=[]),t.brokenRules.push(n)},validate:function(e,t,n){var i=this,o={name:n,value:e,brokenRule:null,brokenRules:null,isValid:!0,validationRules:t,pendingRules:null,status:D.valid,complete:null},a=[];return(0,h.each)(t||[],function(t,r){var s=H[r.type],l=void 0;if(!s)throw _.default.Error("E0100");return y.default.isDefined(r.isValid)&&r.value===e&&!r.reevaluate?!!r.isValid||(o.isValid=!1,i._addBrokenRule({result:o,rule:r}),!1):(r.value=e,"async"===r.type?(a.push({rule:r,ruleValidator:s}),!0):(l=s.validate(e,r),r.isValid=l,l||(o.isValid=!1,i._setDefaultMessage({rule:r,validator:s,name:n}),i._addBrokenRule({result:o,rule:r})),!!r.isValid&&void 0))}),o.isValid&&!o.brokenRules&&a.length&&(o=this._validateAsyncRules({value:e,items:a,result:o,name:n})),o.status=o.pendingRules?D.pending:o.isValid?D.valid:D.invalid,o},_validateAsyncRules:function(e){var t=this,n=e.result,i=e.value,o=e.items,a=e.name,r=[];return(0,h.each)(o,function(e,o){var s=o.ruleValidator.validate(i,o.rule);if(y.default.isPromise(s)){n.pendingRules||(n.pendingRules=[]),n.pendingRules.push(o.rule);var l=s.then(function(e){var n=t._getPatchedRuleResult(e);return t._updateRuleConfig({rule:o.rule,ruleResult:n,validator:o.ruleValidator,name:a}),n});r.push(l)}else t._updateRuleConfig({rule:o.rule,ruleResult:t._getPatchedRuleResult(s),validator:o.ruleValidator,name:a})}),r.length&&(n.complete=I.default.all(r).then(function(e){return t._getAsyncRulesResult({result:n,values:e})})),n},_updateRuleConfig:function(e){var t=e.rule,n=e.ruleResult,i=e.validator,o=e.name;t.isValid=n.isValid,n.isValid||(y.default.isDefined(n.message)&&y.default.isString(n.message)&&n.message.length?t.message=n.message:this._setDefaultMessage({rule:t,validator:i,name:o}))},_getPatchedRuleResult:function(e){var t=void 0,n=!0;return y.default.isObject(e)?(t=(0,d.extend)({},e),y.default.isDefined(t.isValid)||(t.isValid=n)):t={isValid:y.default.isBoolean(e)?e:n},t},_getAsyncRulesResult:function(e){var t=this,n=e.values,i=e.result;return(0,h.each)(n,function(e,n){if(n.isValid===!1){i.isValid=n.isValid;var o=i.pendingRules[e];t._addBrokenRule({result:i,rule:o})}}),i.pendingRules=null,i.complete=null,i.status=i.isValid?D.valid:D.invalid,i},registerValidatorInGroup:function(e,t){var n=z.addGroup(e);n.registerValidator.call(n,t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=z.getGroupConfig(e);if(n){n.removeRegisteredValidator.call(n,t);var i=n.validators;this._shouldRemoveGroup(e,i)&&this.removeGroup(e)}},initValidationOptions:function(e){var t=this,n={};if(e){var i=["isValid","validationStatus","validationError","validationErrors"];i.forEach(function(i){i in e&&(0,d.extend)(n,t.synchronizeValidationOptions({name:i,value:e[i]},e))})}return n},synchronizeValidationOptions:function(e,t){var n=e.name,i=e.value;switch(n){case"validationStatus":var o=i===D.valid||i===D.pending;return t.isValid!==o?{isValid:o}:{};case"isValid":var a=t.validationStatus,r=a;return i&&a===D.invalid?r=D.valid:i||a===D.invalid||(r=D.invalid),r!==a?{validationStatus:r}:{};case"validationErrors":var s=i&&i.length?i[0]:null;return t.validationError!==s?{validationError:s}:{};case"validationError":var l=t.validationErrors;if(!i&&l)return{validationErrors:null};if(i&&!l)return{validationErrors:[i]};if(i&&l&&i!==l[0])return l[0]=i,{validationErrors:l.slice()}}return{}},validateGroup:function(e){var t=z.getGroupConfig(e);if(!t)throw _.default.Error("E0110");return t.validate()},resetGroup:function(e){var t=z.getGroupConfig(e);if(!t)throw _.default.Error("E0110");return t.reset()}};z.initGroups(),e.exports=z},function(e,t,n){var i=n(33).camelize,o=n(61),a=n(1),r=n(12),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},u=o(function(){return r.createElement("dx").style}),d=function(e,t){e=i(e,!0);for(var n,o=0,a=s.length;o<a;o++){var r=s[o],l=r+e,u=i(l);if(n=t(u,r),void 0===n&&(n=t(l,r)),void 0!==n)break}return n||""},c=function(e){if(e in u())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=1;n<s.length;n++){var i=s[n].toLowerCase()+e;if(i in u())return i}return t},h=function(e){return d(e,function(e,t){if(e in u())return l[t]})},p=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],f=function(e,t){return a.isNumeric(t)&&p.indexOf(e)===-1&&(t+="px"),t},g=function(e,t,n){if(e){n=a.isNumeric(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}},_=function(e,t){g(e,"width",t)},m=function(e,t){g(e,"height",t)};t.styleProp=c,t.stylePropPrefix=h,t.normalizeStyleProp=f,t.setWidth=_,t.setHeight=m},function(e,t,n){var i=n(63).logger,o=n(53);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){var i=n(2),o=n(49),a=n(12),r=n(5),s=n(38),l=n(15),u=n(0).extend,d=n(14).inArray,c=n(3).each,h=n(68),p=n(8),f=n(23),g=n(132),_="dxEventManager",m="dxEmitter",v=l.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.add(function(){var e=a.getDocument();r.subscribeGlobal(e,p.addNamespace(f.down,_),this._pointerDownHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(f.move,_),this._pointerMoveHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace([f.up,f.cancel].join(" "),_),this._pointerUpHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(g.name,_),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){p.isMouseEvent(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return c(t,function(e,t){return i=i||n[e]!==t,!i}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),o.push(i))}for(var n=this,o=[],a=i(e.target);a.length;){var r=s.data(a.get(0),m)||[];c(r,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=d(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,o=i?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),y=new v,w="dxEmitterSubscription",x=function(e){var t=e.emitter,n=e.events[0],i=e.events;c(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,w)||{},o=s.data(e,m)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,m,o),s.data(e,w,i)},add:function(e,t){var i=s.data(e,m),o=i[n];o.configure(u({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,w),o=s.data(e,m),r=o[n];delete t[a];var l=!0;c(i,function(e,n){return l=l&&!t[n]}),l&&(y.isActive(e)&&y.resetEmitter(r),r&&r.dispose(),delete o[n])}})})};e.exports=x},function(e,t,n){var i=n(8),o=n(116),a=n(90),r=Math.abs,s="dxhold",l=750,u=5,d=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>u||r(t.y)>u},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:d,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(15),o=i.abstract,a=n(82),r=n(3).each,s=n(37),l=n(41),u=n(18).compileGetter,d=n(84),c=d.queryByOptions,h=n(6).Deferred,p=n(4).noop,f={},g=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=u(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return c(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return c(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,push:function(e){this._pushImpl(e),this.fireEvent("push",[e])},_pushImpl:p,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);g.create=function(e,t){if(!(e in f))throw s.errors.Error("E4020",e);return new f[e](t)},g.registerClass=function(e,t){return t&&(f[t]=e),e},g.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return g.registerClass(i,n),i}}(g.inherit),e.exports=g},function(e,t,n){e.exports=n(515)},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(43),u=i(l),d=n(25),c=i(d),h=n(4),p=i(h),f=n(1),g=i(f),_=n(0),m=n(11),v=n(7),y=i(v),w=n(12),x=i(w),b=n(16),C=i(b),k=n(9),I=i(k),S=n(85),D=i(S),T=n(65),E=i(T),O=n(8),A=i(O),P=n(247),B=i(P),M=n(310),F=i(M),R=n(246),V=i(R),H=n(6),L="dxScrollable",z="dxScrollableStrategy",$="dx-scrollable",N="dx-scrollable-disabled",W="dx-scrollable-container",j="dx-scrollable-wrapper",q="dx-scrollable-content",G="dx-scrollable-customizable-scrollbars",K="vertical",U="horizontal",Y="both",X=function(){return[{device:function(){return!u.default.nativeScrolling},options:{useNative:!1}},{device:function(e){return!C.default.isSimulator()&&"desktop"===C.default.real().deviceType&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:u.default.touch,showScrollbar:"onHover"}}]},Z=D.default.inherit({_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{disabled:!1,onScroll:null,direction:K,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(X(),[{device:function(){return u.default.nativeScrolling&&"android"===C.default.real().platform&&!c.default.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===C.default.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass($),t=this._$container=(0,a.default)("<div>").addClass(W),n=this._$wrapper=(0,a.default)("<div>").addClass(j),i=this._$content=(0,a.default)("<div>").addClass(q);x.default.hasDocumentProperty("onbeforeactivate")&&c.default.msie&&c.default.version<12&&s.default.on(e,A.default.addNamespace("beforeactivate",L),function(e){(0,a.default)(e.target).is(E.default.focusable)||e.preventDefault()}),i.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==C.default.real().deviceType||y.default.getNavigator().platform.indexOf("Mac")>-1&&c.default.webkit||this.$element().addClass(G)},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this;this._updateBounds(),this.option("rtlEnabled")&&this.option("direction")!==K&&p.default.deferUpdate(function(){var t=e._container().get(0),n=t.scrollWidth-t.clientWidth;p.default.deferRender(function(){e.scrollTo({left:n})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};s.default.off(this._$wrapper,"."+L),s.default.on(this._$wrapper,A.default.addNamespace(B.default.init,L),t,this._initHandler.bind(this)),s.default.on(this._$wrapper,A.default.addNamespace(B.default.start,L),e.handleStart.bind(e)),s.default.on(this._$wrapper,A.default.addNamespace(B.default.move,L),e.handleMove.bind(e)),s.default.on(this._$wrapper,A.default.addNamespace(B.default.end,L),e.handleEnd.bind(e)),s.default.on(this._$wrapper,A.default.addNamespace(B.default.cancel,L),e.handleCancel.bind(e)),s.default.on(this._$wrapper,A.default.addNamespace(B.default.stop,L),e.handleStop.bind(e)),s.default.off(this._$container,"."+L),s.default.on(this._$container,A.default.addNamespace("scroll",L),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass(N,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+U).removeClass("dx-scrollable-"+K).removeClass("dx-scrollable-"+Y).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(z,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new V.default(this):new F.default.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&y.default.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===K?"left":e===U?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(g.default.isPlainObject(e)){var t=p.default.ensureDefined(e.left,e.x),n=p.default.ensureDefined(e.top,e.y);return{left:g.default.isDefined(t)?-t:void 0,top:g.default.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==K?-e:void 0,top:i!==U?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===K?t!==U:e===U?t!==K:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(Y)&&e.vertical&&e.horizontal?this._allowedDirectionValue=Y:this._isDirection(U)&&e.horizontal?this._allowedDirectionValue=U:this._isDirection(K)&&e.vertical?this._allowedDirectionValue=K:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return(0,m.getPublicElement)(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return(0,H.when)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-p.default.ensureDefined(e.left,t.left),top:t.top-p.default.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){var n=(0,a.default)(e),i=this.$content().find(e).length,o=n.parents("."+$).length-n.parents("."+q).length===0;if(i&&o){var r={top:0,left:0},s=this.option("direction");s!==K&&(r.left=this.getScrollElementPosition(n,U,t)),s!==U&&(r.top=this.getScrollElementPosition(n,K,t)),this.scrollTo(r)}},getScrollElementPosition:function(e,t,n){n=n||{};var i=t===K,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left"),l=s-r,u=e[i?"outerHeight":"outerWidth"](),d=i?this.scrollTop():this.scrollLeft(),c=i?this.clientHeight():this.clientWidth(),h=d-l+o,p=d-l-u+c-a;return h<=0&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});(0,I.default)(L,Z),e.exports=Z,e.exports.deviceDependentOptions=X},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=a.isDefined,s=a.isPromise,l=n(0).extend,u=n(14).inArray,d=n(3).each,c=n(6),h=n(11).getPublicElement,p=c.Deferred,f=n(21),g=n(12),_=n(74),m=n(10),v=n(9),y=n(244),w=".dx-state-disabled",x="dx-selectbox",b="dx-selectbox-popup",C="dx-selectbox-container",k="dx-selectbox-popup-wrapper",I=y.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return l({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){var e=t.escape&&t.escape.apply(this,arguments);return this._cancelEditing(),!r(e)||e},enter:function(e){var n=this.option("opened"),i=this._input().val().trim(),o=i&&this._list&&!this._list.option("focusedElement");if(!i&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(this._valueChangeEventHandler(),n&&this._toggleOpenState()),n;if(t.enter&&t.enter.apply(this,arguments))return n}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return l(this.callBase(),{placeholder:m.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){r(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass(x),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(C)},_renderInkRipple:function(){this._inkRipple=_.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass(b)},_popupWrapperClass:function(){return this.callBase()+" "+k},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=u(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(w).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",h(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new p).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new p).resolve()},_setNextItem:function(e){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)},_setNextValue:function(e){var t=this._dataSource.isLoaded()?(new p).resolve():this._dataSource.load();t.done(function(){var t=this._getSelectedIndex(),n=this._dataSource.pageSize(),i=this._dataSource.isLastPage(),o=t===this._items().length-1;n&&!i&&o&&e>0?(this._popup||this._createPopup(),this._list._loadNextPage().done(this._setNextItem.bind(this,e))):this._setNextItem(e)}.bind(this))},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;
this.callBase(t?null:e),t||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!r(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=l(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&l(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=i(t.option("focusedElement")),o=t._getItemData(n);this._updateField(o)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderField():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):o.noop},_selectionChangeHandler:function(e){d(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._restoreInputText(),this._wasSearch()&&e){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||0===this.option("minSearchLength");if(t&&this._dataSource){if(this._searchTimer)return;var n=this._getActualSearchValue();n&&this._wasSearch(!0),this._filterDataSource(n||null)}else this._setListOption("items",[])}e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_isValueEqualInputText:function(){var e=this.option("selectedItem"),t=this._displayGetter(e),n=t?String(t):"",i=this._searchValue();return n===i},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_restoreInputText:function(){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var e=this.option("selectedItem");return this.option("acceptCustomValue")?void this._updateField(e):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?void this._clearTextValue():void(this._isValueEqualInputText()||this._renderInputValue().always(function(t){var n=o.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this)))}.bind(this))},_focusOutHandler:function(e){this._preventNestedFocusEvent(e)||(this._clearSearchTimer(),this._restoreInputText()),this.callBase(e)},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_isFocused:function(){var e=g.getActiveElement();return this.callBase()&&i(e).closest(this._input()).length>0},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new p;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=o.ensureDefined(n,t.customItem);return r(n)&&f.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),f.Error("E0121");s(t)?c.fromPromise(t).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_clearValueHandler:function(e){return this.callBase(e),!1},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=o.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"selectedItem":e.previousValue!==e.value&&this.callBase(e);break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});v("dxSelectBox",I),e.exports=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(337),a=i(o);e.exports=a.default},,,function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionTemplate=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(69),l=n(11);t.FunctionTemplate=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._render=e,n}return a(t,e),r(t,[{key:"_renderCore",value:function(e){return(0,l.normalizeTemplateElement)(this._render(e))}}]),t}(s.TemplateBase)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyTemplate=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(2),u=i(l),d=n(69);t.EmptyTemplate=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_renderCore",value:function(){return(0,u.default)()}}]),t}(d.TemplateBase)},function(e,t,n){var i=n(28),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t,n){function i(e,t,n){var i=[],o=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},a=function(e){return D(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(a(e.getMonth()+1)),i.push("-"),i.push(a(e.getDate())),t&&o()||(i.push("T"),i.push(a(e.getHours())),i.push(":"),i.push(a(e.getMinutes())),i.push(":"),i.push(a(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(D(e.getMilliseconds(),3))),n||i.push("Z")),i.join("")}function o(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);if(t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length){t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3]));var a=(o[4]||"").slice(0,3);a=D(a,3,!0),t.setMilliseconds(Number(a))}return t}function a(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function r(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,o=n(e).split("/"),a=t.split("/");for(o.pop();a.length;)i=a.shift(),".."===i?o.pop():o.push(i);return o.join("/")}var s="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},l=n(15),u=n(0).extend,d=n(1),c=n(3),h=n(3).each,p=n(62),f=n(34),g=d.isDefined,_=d.isPlainObject,m=n(4).grep,v=n(6).Deferred,y=n(37).errors,w=n(41),x=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,b=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,C=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,k="application/json;odata=verbose",I=function(e){return"string"===d.type(e)?e.split():e},S=function(e){return/\./.test(e)},D=function(e,t,n){for(e=String(e);e.length<t;)e=n?e+"0":"0"+e;return e},T=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},E=function(e,t,n){function o(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw y.Error("E4002")}})}t=u({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var r=(t.method||"get").toLowerCase(),s="get"===r,l=s&&n.jsonp,d=u({},t.params),c=s?d:o(t.payload),h=!s&&T(d),p=t.url,f=!s&&k;return h&&(p+=(p.indexOf("?")>-1?"&":"?")+h),l&&(c.$format="json"),{url:p,data:c,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:r,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[k,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},O=function e(t,n,i){var o=new v,s=E(t,n,i);return p.sendRequest(s).always(function(n,l){var u,d={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},c=B(n,l,d,s),h=c.error,p=c.data,f=c.nextUrl;h?h.message!==w.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(c.count)?o.resolve(c.count):o.reject(new y.Error("E4018")):f&&!i.isPaged?(a(f)||(f=r(s.url,f)),e(t,{url:f},i).fail(o.reject).done(function(e){o.resolve(p.concat(e))})):(isFinite(c.count)&&(u={totalCount:c.count}),o.resolve(p,u))}),o.promise()},A=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||t.indexOf("inner exception")!==-1););return t},P=function(e,t,n){if("nocontent"===t)return null;var i="Unknown error",o=e,a=200,r={requestOptions:n};if("success"!==t){a=e.status,i=w.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var s=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);if(s){i=A(s)||i,r.errorDetails=s,200===a&&(a=500);var l=Number(s.code);isFinite(l)&&l>=400&&(a=l)}return a>=400||0===a?(r.httpStatus=a,u(Error(i),r)):null},B=function(e,t,n,i){var o,a=P(e,t,i);return a?{error:a}:_(e)?(o="d"in e&&(Array.isArray(e.d)||d.isObject(e.d))?M(e,t):F(e,t),V(o,n),o):{data:e}},M=function(e){var t=e.d;return g(t)?(g(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},F=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},R=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),V=function e(t,n){n=n||{},h(t,function(i,a){if(null!==a&&"object"===("undefined"==typeof a?"undefined":s(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes,l=!r||"String"!==r[i];if(l&&x.test(a)&&(t[i]=new f(a)),n.deserializeDates!==!1)if(a.match(b)){var u=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(u.valueOf()+60*u.getTimezoneOffset()*1e3)}else C.test(a)&&(t[i]=new Date(o(t[i]).valueOf()))}})},H=function(e){return"datetime'"+i(e,!0,!0)+"'"},L=function(e){return"'"+e.replace(/'/g,"''")+"'"},z=function(e){return e instanceof R?e.valueOf():e.replace(/\./g,"/")},$=function e(t){return t instanceof Date?i(t,!1,!1):t instanceof f?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":N(t)},N=function(e){return e instanceof Date?H(e):e instanceof f?"guid'"+e+"'":e instanceof R?e.valueOf():"string"==typeof e?L(e):String(e)},W=function(e,t){switch(t){case 2:case 3:return N(e);case 4:return $(e);default:throw y.Error("E4002")}},j=function(e,t){if(_(e)){var n=[];return h(e,function(e,i){n.push(z(e)+"="+W(i,t))}),n.join()}return W(e,t)},q={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof R?e:new R(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof R?e:new R(e+"f")},Decimal:function(e){return e instanceof R?e:new R(e+"m")}},G=function(e,t){if(null===t)return null;var n=q[e];if(!n)throw y.Error("E4014",e);return n(t)},K=function(e,t){if(t)return e<4?z(t.join()):m(t,S,!0).join()},U=function(e,t,n){var i=function(){var e={};return t&&c.each(I(t),function(){e[z(this)]=1}),n&&c.each(I(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[z(t.join("."))]=1)}),c.map(e,function(e,t){return t}).join()},o=function(){var e=function(e){var t=function e(t){var n="",i=[],o=[];return c.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),_(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+c.map(i,z).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+c.map(o,z).join()),n+=")"),n},n=[];return c.each(e,function(e,i){n.push(e+t(i))}),n.join()},i=function(e,t,n){var i=function e(t,n,i){var o=i(n,t.shift(),t);o!==!1&&e(t,o,i)};c.each(e,function(e,o){i(o.split("."),t,n)})},o={};if(t||n)return t&&i(I(t),o,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(m(I(n),S),o,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(o)};return e<4?i():o()};t.sendRequest=O,t.serializePropName=z,t.serializeValue=W,t.serializeKey=j,t.keyConverters=q,t.convertPrimitiveValue=G,t.generateExpand=U,t.generateSelect=K,t.EdmLiteral=R},function(e,t,n){var i=n(524),o=n(9);o("dxList",i),e.exports=i},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(74),l=n(48),u=n(9),d=n(8),c=n(20),h="dx-checkbox",p="dx-checkbox-icon",f="dx-checkbox-checked",g="dx-checkbox-container",_="dx-checkbox-text",m="dx-checkbox-has-text",v="dx-checkbox-indeterminate",y=100,w=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space:e})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}}])},_canValueBeChangedByClick:function(){return!0},_feedbackHideTimeout:y,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass(g),this.setAria("role","checkbox"),this.$element().addClass(h),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<span>").addClass(p).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("<span>").addClass(_)),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(m)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(m)))},_renderClick:function(){var e=this,t=d.addNamespace(c.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass(f,Boolean(t)),e.toggleClass(v,n),this._getSubmitElement().val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});u("dxCheckBox",w),e.exports=w},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(t,n,i,o,r,s){var u=l(n,i.originalEvent,s);if(!u){var d=f.default.normalizeKeyName(i);"enter"===d||"space"===d?(a(i.target,n),o&&o({event:i})):"tab"===d?r.addClass(_):e.exports.selectView(t,n,i)}}function a(e,t){var n=(0,d.default)(e),i=n.attr("aria-label"),o=r(i,t.element()),a=o.index(n);S=(0,g.extend)({},{ariaLabel:i,index:a},{viewInstance:t})}function r(e,t){var n,i=(0,d.default)(t);return n=e?i.find('[aria-label="'+e+'"][tabindex]'):i.find("[tabindex]")}function s(e){for(var t in e){var n=e[t],i=void 0;if(i=(0,d.default)(n).first(),i.length)return i}}function l(e,t,n){var i={event:t,handled:!1};return n?n(i):e._createActionByOption("onKeyDown")(i),i.handled}var u=n(2),d=i(u),c=n(5),h=i(c),p=n(8),f=i(p),g=n(0),_="dx-state-focused",m="dx-cell-focus-disabled",v=".dx-row-focused",y=".dx-datagrid-rowsview .dx-row",w=y+" > td",x=".dx-treelist-rowsview .dx-row",b=x+" > td",C={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:[""+v,y+"[tabindex]",w+"[tabindex]",""+w,x+"[tabindex]",b+"[tabindex]",""+b],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},k=!1,I=!1,S=null;e.exports={hiddenFocus:function(e){I=!0,e.focus(),I=!1},registerKeyboardAction:function(e,t,n,i,a,r){if(!t.option("useLegacyKeyboardNavigation")){var s=(0,d.default)(t.element());h.default.on(n,"keydown",i,function(n){return o(e,t,n,a,s,r)}),h.default.on(n,"mousedown",i,function(){k=!0,s.removeClass(_)}),h.default.on(n,"focusin",i,function(){k||I||s.addClass(_),k=!1})}},restoreFocus:function(e){if(!e.option("useLegacyKeyboardNavigation")&&S){var t=S.viewInstance;if(t){var n=r(S.ariaLabel,t.element()),i=n.eq(S.index);S=null,h.default.trigger(i,"focus")}}},selectView:function(e,t,n){var i=f.default.normalizeKeyName(n);if(n.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var o=Object.keys(C),a=o.indexOf(e);a>=0&&a<o.length;){a="upArrow"===i?--a:++a;var r=o[a],l=C[r],u=s(l);if(u&&u.length){u.attr("tabindex",t.option("tabindex")||0),h.default.trigger(u,"focus"),u.removeClass(m);break}}},setTabIndex:function(e,t){e.option("useLegacyKeyboardnavigation")||t.attr("tabindex",e.option("tabindex")||0)}}},,,,,function(e,t,n){var i=n(2),o=n(28),a=n(7).getWindow(),r=n(1),s=n(3).each,l=n(15),u=n(21),d=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||a,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if("jQueryEvent"in i||!i.event||!o().useJQuery||Object.defineProperty(i,"jQueryEvent",{get:function(){return u.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event},set:function(e){u.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event=e}}),this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var a=this._executeAction(e);if(!i.cancel)return n&&n.call(this._context,e),a}},_validateAction:function(e){var t=this._excludeValidators,n=d.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=d.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});d.executors={},d.registerExecutor=function(e,t){return r.isPlainObject(e)?void s(e,d.registerExecutor):void(d.executors[e]=t)},d.unregisterExecutor=function(){var e=[].slice.call(arguments);s(e,function(){delete d.executors[this]})},d.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){r.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var c=function(e){return function(t){if(t.args.length){var n=t.args[0],o=n[t.validatingTargetName]||n.element;o&&e(i(o))&&(t.cancel=!0)}}};d.registerExecutor({disabled:{validate:c(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:c(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=d},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(28),s=n(0).extend,l=n(457).OptionManager,u=n(18).bracketsToDots,d=n(15),c=n(111),h=n(21),p=n(4),f=n(1),g=n(47),_=n(6),m=_.Deferred,v=_.when,y=n(26),w=n(82),x=n(131),b=n(16),C=f.isFunction,k=p.noop,I=function(){function e(){o(this,e),this._postponedOperations={}}return a(e,[{key:"add",value:function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new m;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];f.isDefined(t)&&(t.promises&&t.promises.length?v.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}}}]),e}(),S=function(e,t){if("string"!=typeof e)return e;var n={};return n[e]=t,n},D=d.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){var t=this;return Object.keys(this._deprecatedOptions).filter(function(n){return e===t._deprecatedOptions[n].alias})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_defaultOptionsRules:function(){return[]},_getOptionByRules:function(e){var t=this._defaultOptionsRules();return Array.isArray(e)&&(t=t.concat(e)),this._convertRulesToOptions(t)},_setOptionsByDevice:function(e){var t=this._getOptionByRules(e);this._setOptionByStealth(t)},_convertRulesToOptions:function(e){for(var t={},n=b.current(),i=function(e,t){var n=[];return Array.prototype.push.call(n,t),1===n.length&&f.isEmptyObject(n[0])||p.findBestMatches(e,n).length>0},o=0;o<e.length;o++){var a,r=e[o],l=r.device||{};a=C(l)?l(n):i(n,l),a&&s(t,r.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=C(t)&&C(n)?t.toString()===n.toString():p.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){var t=this;this.NAME=x.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||y(),this._disposingCallbacks=e._disposingCallbacks||y(),this.postponedOperations=new I,this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=this._getDefaultOptions(),this._optionManager=new l(this._options,this._getOptionsByReference(),this._deprecatedOptions),this._optionManager.onChanging(function(e,n,i){t._initialized&&t._optionChanging(e,n,i)}),this._optionManager.onDeprecated(function(e,n){t._logDeprecatedWarning(e,n)}),this._optionManager.onChanged(function(e,n,i){t._notifyOptionChanged(e,n,i)}),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";h.log("W0001",this.NAME,e,t.since,n)},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._optionManager.dispose(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&(this.postponedOperations.callPostponedOperations(),!this._initializing&&!this._initialized)){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._updateLockCount--,this._initialized=!0}}},_optionChanging:k,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),a=0;a<o.length;a++){var r=o[a],l={name:r.split(/[.[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[s(i._defaultActionArgs(),l)]),i._optionChangedAction(s({},l)),i._disposed||this._cancelOptionChange===l.name||i._optionChanged(l)}},initialOption:function(e){if(!this._initialOptions){this._initialOptions=this._getDefaultOptions();var t=this._getOptionByRules(this._getOptionByStealth("defaultOptionsRules"));this._optionManager.setValueByReference(this._initialOptions,t)}return this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),f.isPlainObject(o)||(o={actionValue:o}),n=n||new c(e,s(t,i._defaultActionConfig())),n.execute.call(n,s(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,o,a=this,s=function(){
if(!i){if(t=t||{},"string"!=typeof e)throw h.Error("E0008");0===e.indexOf("on")&&(i=a._getEventName(e)),o=a.option(e)}if(n||o||t.beforeExecute||t.afterExecute||a.hasEvent(i)){if(!n){var s=t.beforeExecute;t.beforeExecute=function(e){s&&s.apply(a,arguments),a.fireEvent(i,e.args)},n=a._createAction(o,t)}if(r().wrapActionsBeforeExecute){var l=a.option("beforeActionExecute")||k,u=l(a,n,t)||n;return u.apply(a,arguments)}return n.apply(a,arguments)}};if(!r().wrapActionsBeforeExecute){var l=a.option("onActionCreated")||k;s=l(a,s,t)||s}return s},_getOptionByStealth:function(e){return this._optionManager.getValueSilently(e)},_setOptionByStealth:function(e,t){this._optionManager.setValueSilently(S(e,t))},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return Object.prototype.hasOwnProperty.call(t,e)},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},_getOptionValue:function(e,t){var n=this.option(e);return C(n)?n.bind(t)():n},option:function(e,t){if(arguments.length<2&&"object"!==f.type(e))return this._optionManager.getValue(e);this.beginUpdate();try{this._optionManager.setValue(S(e,t))}finally{this.endUpdate()}},resetOption:function(e){var t=this;if(e){var n=void 0;if(e.search(/\.|\[/)!==-1){e=u(e);var i=e.split(".");i.forEach(function(e){n=n?n[e]:t.initialOption(e)})}else n=this.initialOption(e);n=f.isObject(n)?g.clone(n):n,this.beginUpdate(),this._optionManager.setValue(S(e,n),!1),this.endUpdate()}}}).include(w);e.exports=D,e.exports.PostponedOperations=I},function(e,t,n){var i=n(7),o=i.hasWindow()?i.getWindow():{},a=n(61),r=1e3/60,s=function(e){return setTimeout(e,r)},l=function(e){clearTimeout(e)},u=a(function(){var e=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame,t=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.oCancelAnimationFrame||o.msCancelAnimationFrame;if(e&&t&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(o,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},l=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return u(),s.apply(o,arguments)},t.cancelAnimationFrame=function(){u(),l.apply(o,arguments)}},function(e,t,n){var i=n(181);e.exports=new i},function(e,t,n){var i=n(0);e.exports={_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,(0,i.extend)({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(26),s=n(0).extend,l=n(8),u=a.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=r(),this._acceptCallback=r()},getElement:function(){return this._$element},validate:function(e){return!l.isDxMouseWheelEvent(e)},validatePointers:function(e){return 1===l.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){s(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=l.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(72),a=i(o),r=n(76),s=i(r);if(a.default&&a.default.load){var l={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};a.default.locale()||(a.default.load(l),a.default.locale("en")),s.default.inject({locale:function(e){return e?void a.default.locale(e):a.default.locale().locale}})}},function(e,t,n){e.exports=n(308)},function(e,t,n){e.exports=n(545)},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(2),a=n(57),r=n(1).isDate,s=n(3).each,l=n(32),u=function(){return["year","day","month","day"]},d=6e4,c=60*d*24,h=365*c,p=function(e){var t="undefined"==typeof e?"undefined":i(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},f={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("<div>").addClass("dx-dateview-formatter-container");return o("<span>").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("<span>").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:d,ONE_DAY:c,ONE_YEAR:h,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:u()},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e;return function(){var t="yyyy-MM-ddTHH:mmZ",n="2000-01-01T01:01Z",i=o("<input>").attr("type","datetime");i.val(n),i.val()&&(e=t)}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),f.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:u().concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:u().concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=f.FORMATS_INFO[t].getStandardPattern();return a.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.dateParser(e);return r(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(e.valueOf()),a=f.FORMATS_INFO[n];return s(a.components,function(){var e=f.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())}),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;t<e.length;++t)e[t].length>i&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return l.formatUsesMonthName(e)},formatUsesDayName:function(e){return l.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=p(e),o=9;i&&!f.formatUsesMonthName(i)||(o=f.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||f.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+f.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};f.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t){var n=new Date(t.getTime());return n.setFullYear(e),l.format(n,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t){var n=new Date(t.getTime());return n.setDate(e),l.format(n,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e){return l.getMonthNames()[e]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return l.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return l.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=f},function(e,t,n){e.exports=n(567)},function(e,t,n){var i={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}};e.exports=i},,,,,,function(e,t,n){var i=n(0).extend,o=n(63),a=n(45),r=n(129),s="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return d([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:r([].slice.call(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),u(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},u=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,c(e)])},d=function(e){var t,n,o,a;return t=e[0],e=e.slice(1),n=l(t,e),a=c(t),o=u(t,n),i(new Error(o),{__id:t,__details:n,url:a})},c=function(e){return s+e};return n}},function(e,t,n){e.exports="19.2.5"},function(e,t,n){var i=n(7),o=n(12),a=n(26),r=n(49),s=n(61),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var u,d=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},c=function(){var n=d();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i)}},h=s(function(){e=d()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!u&&t.has()&&(u=o.listen(i.getWindow(),"resize",c))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&u&&(u(),u=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(38),o=n(5),a=n(180),r=n(1).isDefined,s=n(137),l="dxComponents",u="dxPrivateComponent",d=new a,c=0,h=t.name=function(e,t){if(r(t))return void d.set(e,t);if(!d.has(e)){var n=u+c++;return d.set(e,n),n}return d.get(e)};t.attachInstanceToElement=function(e,t,n){var a=i.data(e.get(0)),r=h(t.constructor);a[r]=t,n&&o.one(e,s,function(){n.call(t)}),a[l]||(a[l]=[]),a[l].push(r)},t.getInstanceByElement=function(e,t){var n=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(2),o=n(5),a=n(12),r=n(61),s=n(68),l=n(8),u="dxmousewheel",d="dxWheel",c=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(c(),d),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+d)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:u,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(u,h),t.name=u},function(e,t,n){var i,o=n(15),a=n(4),r=n(11).contains,s=n(16),l=n(8),u=n(23),d=n(116),c=n(90),h="dxactive",p="dxinactive",f=30,g=400,_=o.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=d.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new _(0,a.noop),this._inactive=new _(0,a.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=r(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),o=l.isMouseEvent(e),r=s.isSimulator(),u=r||!o,d=a.ensureDefined(this.activeTimeout,f),c=a.ensureDefined(this.inactiveTimeout,g);this._active=new _(u?d:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new _(u?c:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==u.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});m.lock=function(e){var t=i?i.lockInactive():a.noop;e.done(t)},c({emitter:m,events:[h,p]}),t.lock=m.lock,t.active=h,t.inactive=p},function(e,t,n){var i=n(2),o=n(15),a=n(3).each,r=n(131),s="dx-state-invisible",l="dx-state-disabled",u="dx-item-content-placeholder",d=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},c=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,r.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<div>").addClass(u);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),o=d(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});c.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=c},function(e,t,n){var i=n(5),o=n(11),a=n(12),r=n(15),s=n(68),l=n(20),u=n(8),d="dxdblclick",c="dxDblClick",h=u.addNamespace(l.name,c),p=300,f=r.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-p},add:function(){this._handlerCount<=0&&i.on(a.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp<p?(u.fireEvent({type:d,target:o.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(a.getDocument(),h))}});s(d,new f),t.name=d},function(e,t,n){var i=n(7),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(21);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(176),a.excelExporter=n(455),a.VERSION=n(129),a.Class=n(15),a.DOMComponent=n(85),a.registerComponent=n(9),a.devices=n(16),a.Color=n(86);var s=n(113);a.EventsMixin=n(82),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(459).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(11).createComponents,a.utils.triggerShownEvent=n(11).triggerShownEvent,a.utils.triggerHidingEvent=n(11).triggerHidingEvent,a.utils.resetActiveElement=n(11).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(227).create,a.utils.dom=n(11),a.utils.common=n(4),a.utils.date=n(22),a.utils.browser=n(25),a.utils.inflector=n(33),a.utils.iterator=n(3),a.utils.readyCallbacks=n(49),a.utils.resizeCallbacks=n(130),a.utils.console=n(63),a.utils.string=n(45),a.utils.support=n(43),a.utils.ajax=n(62),a.viewPort=n(73).value,a.hideTopOverlay=n(213),a.formatHelper=n(64),a.config=n(28),a.animationPresets=n(183).presets,a.fx=n(39),a.TransitionExecutor=n(289).TransitionExecutor,a.AnimationPresetCollection=n(183).PresetCollection,a.events=n(290),a.events.click=n(20),a.events.utils=n(8),a.events.GestureEmitter=n(158),a.localization=n(462),a.templateRendered=n(69).renderedCallbacks,a.setTemplateEngine=n(159).setTemplateEngine,e.exports=a},function(e,t,n){var i=n(2),o=n(38).beforeCleanData,a=n(5),r=n(68),s="dxremove",l="dxRemoveEvent";o(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,a.triggerHandler(n,s))}}),r(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n,i="string"==typeof t?t.split():t.slice();i.length;)if(n=i.shift(),n in e)return!0;return!1}function a(e,t,n,i){var o,r;if(i){for(var s=0;s<t.length;s++)if(o=t[s].items||t[s].collapsedItems||[],r=a(e,o||[],n,i-1))return r}else if(g(e,t,n)>=0)return t}function r(e,t,n,i){return i?a(e,t,n,i)||[]:t}function s(e,t){if(e.key()&&!t._dataByKeyMap){for(var n={},i=0,o=t.length;i<o;i++)n[JSON.stringify(e.keyOf(t[i]))]=t[i];t._dataByKeyMap=n}}function l(e,t){if(e._dataByKeyMap)return e._dataByKeyMap[JSON.stringify(t)]}function u(e,t){return!e._dataByKeyMap||e._dataByKeyMap[JSON.stringify(t)]}function d(e,t,n){e._dataByKeyMap&&(e._dataByKeyMap[JSON.stringify(t)]=n)}function c(e,t,n,i,o){n.forEach(function(n){var a="insert"===n.type?t:r(e,t,n.key,i);switch(s(e,a),n.type){case"update":h(e,a,n.key,n.data,!0);break;case"insert":p(e,a,n.data,o&&(0,m.isDefined)(n.index)?n.index:-1,!0);break;case"remove":f(e,a,n.key,!0)}})}function h(e,t,n,i,a){var r,s=!0,u=e.key();if(u){if(o(i,u)&&!(0,S.keysEqual)(u,n,e.keyOf(i)))return!a&&(0,S.rejectedPromise)(C.errors.Error("E4017"));if(r=l(t,n),!r){var d=g(e,t,n);if(d<0)return!a&&(0,S.rejectedPromise)(C.errors.Error("E4009"));r=t[d]}}else r=n;if(I.default.deepExtendArraySafe(r,i,s),!a)return(0,y.default)().useLegacyStoreResult?(0,S.trivialPromise)(n,i):(0,S.trivialPromise)(r,n)}function p(e,t,n,i,o){var a,r,s=e.key();if(r=(0,m.isPlainObject)(n)?(0,b.extend)({},n):n,s){if(a=e.keyOf(r),void 0===a||"object"===("undefined"==typeof a?"undefined":_(a))&&(0,m.isEmptyObject)(a)){if(Array.isArray(s))throw C.errors.Error("E4007");a=r[s]=String(new x.default)}else if(void 0!==t[g(e,t,a)])return!o&&(0,S.rejectedPromise)(C.errors.Error("E4008"))}else a=r;if(i>=0?t.splice(i,0,r):t.push(r),d(t,a,r),!o)return(0,S.trivialPromise)((0,y.default)().useLegacyStoreResult?n:r,a)}function f(e,t,n,i){var o=g(e,t,n);if(o>-1&&t.splice(o,1),!i)return(0,S.trivialPromise)(n)}function g(e,t,n){var i=e.key();if(!u(t,n))return-1;for(var o=0,a=t.length;o<a;o++)if((0,S.keysEqual)(i,e.keyOf(t[o]),n))return o;return-1}var _="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},m=n(1),v=n(28),y=i(v),w=n(34),x=i(w),b=n(0),C=n(37),k=n(47),I=i(k),S=n(41);e.exports.applyBatch=c,e.exports.update=h,e.exports.insert=p,e.exports.remove=f,e.exports.indexByKey=g},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ChildDefaultTemplate=void 0;var r=n(69);t.ChildDefaultTemplate=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.name=e,n}return a(t,e),t}(r.TemplateBase)},function(e,t,n){var i=n(5),o=n(38),a=n(15),r=n(16),s=n(68),l=n(8),u=n(23),d="dxHoverStart",c="dxhoverstart",h=l.addNamespace(u.enter,d),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(u.leave,p),_=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){o.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,a),o.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){l.isTouchEvent(e)||r.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=o.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){o.removeData(e,this._handlerArrayKeyPath)}}),m=_.inherit({ctor:function(){this._eventNamespace=d,this._eventName=c,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=_.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(c,new m),s(f,new v),t.start=c,t.end=f},function(e,t,n){function i(e){return e&&m(e.then)}function o(e){return(new k).resolve(e).promise()}function a(e,t){if(!m(t))throw y.Error("E4011",e)}function r(e){throw y.Error("E4012",e)}function s(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?g.errorMessageFromXhr(t,n):null}return function(n){var i;i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error"),i.message!==g.XHR_ERROR_UNLOAD&&e.reject(i)}}function l(e,t){var n,s=e._loadFunc;return a(T,s),n=s.apply(e,[t]),Array.isArray(n)?n=o(n):null===n||void 0===n?n=o([]):i(n)||r(T),S(n)}function u(e,t){var n,a=e._totalCountFunc;if(!m(a))throw y.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||r(D),n=o(n)),S(n)}function d(e,t,n){var r,s=e._byKeyFunc;return a(E,s),r=s.apply(e,[t,n]),i(r)||(r=o(r)),S(r)}function c(e,t,n,i){if(t.__rawData)i(t.__rawData);else{var o=t.__rawDataPromise||l(t,n);t._cacheRawData&&(t.__rawDataPromise=o),o.always(function(){delete t.__rawDataPromise}).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}}function h(e,t,n,i){n=n||{};var o={};"userData"in n&&(o.userData=n.userData),c(e,t,o,function(o){var a,r,s,l,u=x(o,{errorHandler:t._errorHandler}),d=[];i||(a=b(u,n),a===u?s=o.slice(0):d.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(r=b(u,n,!0),r===u?l=o.length:d.push(r.count().done(function(e){l=e}))),I.apply(f,d).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}function p(e,t,n){c(e,t,{},function(i){for(var o,a=t.key(),r=0,s=i.length;r<s;r++)if(o=i[r],g.keysEqual(a,t.keyOf(i[r]),n))return void e.resolve(o);e.reject(y.Error("E4009"))})}var f=n(2),g=n(41),_=n(138),m=n(1).isFunction,v=n(28),y=n(37).errors,w=n(92),x=n(156),b=n(84).queryByOptions,C=n(6),k=C.Deferred,I=C.when,S=C.fromPromise,D="totalCount",T="load",E="byKey",O="insert",A="update",P="remove",B=w.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[T],this._totalCountFunc=e[D],this._byKeyFunc=e[E],this._insertFunc=e[O],this._updateFunc=e[A],this._removeFunc=e[P]},createQuery:function(){throw y.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new k;return"raw"!==this._loadMode||this._totalCountFunc?(u(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_pushImpl:function(e){this.__rawData&&_.applyBatch(this,this.__rawData,e)},_loadImpl:function(e){var t=new k;return"raw"===this._loadMode?h(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new k;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):d(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this,r=n._insertFunc,l=new k;return a(O,r),t=r.apply(n,[e]),i(t)||(t=o(t)),S(t).done(function(t){v().useLegacyStoreResult?l.resolve(e,t):l.resolve(t||e,n.keyOf(t))}).fail(s(l)),l.promise()},_updateImpl:function(e,t){var n,r=this._updateFunc,l=new k;return a(A,r),n=r.apply(this,[e,t]),i(n)||(n=o(n)),S(n).done(function(n){v().useLegacyStoreResult?l.resolve(e,t):l.resolve(n||t,e)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,r=new k;return a(P,n),t=n.apply(this,[e]),i(t)||(t=o()),S(t).done(function(){r.resolve(e)}).fail(s(r)),r.promise()}});e.exports=B},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(2),a=n(7),r=a.getWindow(),s=n(11).getPublicElement,l=n(12),u=n(5),d=n(9),c=n(4),h=n(0).extend,p=n(25),f=n(27),g=n(78),_=n(1),m=n(30),v=n(8),y=n(44),w="dx-popover",x="dx-popover-wrapper",b="dx-popover-arrow",C="dx-popover-without-title",k={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},I={left:-1,top:-1,center:0,right:1,bottom:1},S={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},D={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},T=p.mozilla,E=function(e,t){var n=e.option(t);return O(n)},O=function(e){return _.isObject(e)?e.name:e},A=function(e,t){var n=e.option(t);return _.isObject(n)&&n.delay},P=function(e,t){var n,i,a,r,d=e.option("target"),c=_.isString(d),h=E(e,t+"Event");if(h&&!e.option("disabled")){r=v.addNamespace(h,e.NAME),i=e._createAction(function(){n=A(e,t+"Event"),this._clearEventsTimeouts(),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){i({event:e,target:o(e.currentTarget)})};var p="_"+t+"EventHandler";if(c)e[p]=a,u.on(l.getDocument(),r,d,a);else{var f=s(o(d));e[p]=void 0,u.on(f,r,a)}}},B=function(e,t,n,i){var a=i||E(e,n+"Event");if(a){a=v.addNamespace(a,e.NAME);var r="_"+n+"EventHandler";e[r]?u.off(l.getDocument(),a,t,e[r]):u.off(s(o(t)),a)}},M=y.inherit({_getDefaultOptions:function(){return h(this.callBase(),{target:r,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!a.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass(w),this._wrapper().addClass(x)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){B(this,e,"show"),B(this,e,"hide")},_attachEvents:function(){P(this,"show"),P(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass(b).prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===i(e.to)&&h(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(C,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:c.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=g.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip);var i=this._isHorizontalSide()||this._isVerticalSide();i&&this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),f.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var e=g.calculate(this._$content,this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this._$content.width()-e.h.oversize;this._$content.width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this._$content.height()-e.v.oversize,i=this._$popupContent.height()-e.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var e=c.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var a=this._isPopoverInside(),r=(a?-1:1)*I[this._positionSide],s=i?this._$arrow.height():this._$arrow.width(),l=this._getContentBorderWidth(this._positionSide),u=r*(s-l);i?n+=u:t+=u}return h({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(D[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?k[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){this._$arrow.css(k[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",i=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=o(this._position.of),r=g.offset(a)||{top:0,left:0},s=g.offset(this._$content),l=this._$arrow[i](),u=s[n],d=this._$content[i](),c=r[n],h=a.get(0).preventDefault?0:a[i](),p=Math.max(u,c),f=Math.min(u+d,c+h);t="start"===this.option("arrowPosition")?p-u:"end"===this.option("arrowPosition")?f-u-l:(p+f)/2-u-l/2;var _=this._getContentBorderWidth(e),v=m.fitIntoRange(t-_+this.option("arrowOffset"),_,d-l-2*_);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),S),t=g.setup.normalizeAlign(e.my),n=g.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderWrapperPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderWrapperDimensions:function(){
this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=h({},this._transformStringPosition(this.option("position"),S));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=g.setup.normalizeAlign(e.my),n=g.setup.normalizeAlign(e.at),i=I[t.h]===I[n.h]&&I[t.v]===I[n.v]?-1:1,o=Math.abs(I[t.h]-i*I[n.h]),a=Math.abs(I[t.v]-i*I[n.v]);return o>a?n.h:n.v},_resetContentHeight:function(){if(this.callBase(),T){var e=this._$popupContent.css("overflow");this._$popupContent.css("overflow","visible"),this._$popupContent.css("overflow",e)}},_isVerticalSide:function(e){return e=e||this._positionSide,"top"===e||"bottom"===e},_isHorizontalSide:function(e){return e=e||this._positionSide,"left"===e||"right"===e},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),n=O(e.previousValue);this.hide(),B(this,this.option("target"),t,n),P(this,t);break;case"visible":this._clearEventTimeout(e.value?"show":"hide"),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});d("dxPopover",M),e.exports=M},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(15),s=n(179),l=n(8),u="dxListEditDecorator",d=l.addNamespace(s.start,u),c=l.addNamespace(s.swipe,u),h=l.addNamespace(s.end,u),p=r.inherit({ctor:function(e){this._list=e,this._init()},_init:a,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(e.$itemElement,d,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,c,this._itemSwipeUpdateHandler.bind(this)),o.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a,afterBag:a,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:a,handleClick:a,handleKeyboardEvents:a,handleEnterPressing:a,handleContextMenu:a,_swipeStartHandler:a,_swipeUpdateHandler:a,_swipeEndHandler:a,visibilityChange:a,getExcludedSelectors:a,dispose:a});e.exports=p},function(e,t,n){e.exports=n(357)},function(e,t,n){var i=n(21),o=n(0).extend,a=n(3).each,r=n(14).inArray,s=n(1).isDefined,l=n(22),u=l.dateToMilliseconds,d=4,c={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},h={bysecond:function(e,t){e.setSeconds(t)},byminute:function(e,t){e.setMinutes(t)},byhour:function(e,t){e.setHours(t)},bymonth:function(e,t){e.setMonth(t)},bymonthday:function(e,t){if(t<0){var n=new Date(e);p(n,1,-1);var i=n.getDate();i>=Math.abs(t)?p(e,1,t):p(e,2,t)}else e.setDate(t),E(e,t)},byday:function(e,t,n,i,o){var a=e.getDay(),r=m[n];t+=t>=r==r>a?7:0,e.setDate(e.getDate()-a+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-m[n],r=o.getTime()-a*u("day"),s=a+1;s>d?e.setTime(r+7*t*u("day")):e.setTime(r+7*(t-1)*u("day"));var l=(e.getTimezoneOffset()-o.getTimezoneOffset())*u("minute");l&&e.setTime(e.getTime()+l)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},p=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},f={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n,i=new Date(e),o=d-i.getDay()+m[t]-1,a=u("day");e.getDay()<m[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o);var r=new Date(i.getFullYear(),0,1),s=(r.getTimezoneOffset()-i.getTimezoneOffset())*u("minute");return n=1+(i-r+s)/a,Math.ceil(n/7)},byyearday:function(e){var t=new Date(e.getFullYear(),0,0),n=e.getTimezoneOffset()-t.getTimezoneOffset(),i=e-t-n*u("minute"),o=u("day");return Math.floor(i/o)}},g=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],_=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],m={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},v={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},y=function(){return(new Date).getTimezoneOffset()},w=function(e){var t=[];return e.rule&&(t=I(e)),!!t.length},x=function(e){var t=e.interval,n=e.freq,i={},o=c[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=c.daily),i[o]=t,i},b=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)n[i]=j(e[i],t);return n},C=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=b(i,e),a=/\d{8}$/,r=0,s=o.length;r<s;r++)if(i[r].match(a)){var l=A(e,o[r]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[r].getTime()&&(n=!0);return n},k=function(e,t,n,i,o){var a,r=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(r=!1),a=e.getTime()<=n,a&&r},I=function(e){var t,n=[],i=P(e.rule),o={},r=i.rule,s=e.start;if(!i.isValid||!r.freq)return n;r.interval=x(r),t=U(r,e.firstDayOfWeek);var l=e.end?e.end.getTime()-e.start.getTime():u("day"),d={exception:e.exception,min:e.min,dateRules:t,rule:r,recurrenceStartDate:s,recurrenceEndDate:e.end,duration:l};if(t.length&&r.count){var c=0;J(t,new Date(s),new Date(s),r).forEach(function(t,n){t<e.max&&(c++,o=S(c,o,t,n,d,!0))})}else Q(t,new Date(s),r).forEach(function(t,n){for(var i=0;k(t,s,e.max,r,i);)i++,o=S(i,o,t,n,d),t=O(t,s,r,n)});return r.bysetpos&&a(o,function(e,t){o[e]=T(t,r.bysetpos)}),a(o,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},S=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),D(n,i,o,a)&&t[e].push(n),t},D=function(e,t,n,i){if(!C(e,n.exception)){var o=l.sameDate(e,n.recurrenceEndDate)&&n.recurrenceEndDate.getTime()>e.getTime()?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||te(e,[n.dateRules[t]],n.rule.wkst)}return!1},T=function(e,t){var n=[];return t.split(",").forEach(function(t){t=Number(t);var i=t>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},E=function(e,t){e.getDate()!==t&&e.setDate(t)},O=function(e,t,n,i){var o=new Date(e),a=!0;if(e=l.addInterval(e,n.interval),"DAILY"!==n.freq||s(n.byhour)||t.getHours()===e.getHours()||(e=new Date(e.getTime()-(o.getHours()-t.getHours())*u("hour"))),"MONTHLY"===n.freq&&!n.byday){var r=t.getDate();n.bymonthday&&(r=Number(n.bymonthday.split(",")[i]),r<0&&(o.setMonth(o.getMonth()+1,1),h.bymonthday(o,r),e=o,a=!1)),a&&E(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var d=Number(n.byyearday.split(",")[i]);h.byyearday(e,d)}var c=U(n);for(var p in c[i])h[p]&&h[p](e,c[i][p],n.wkst)}return e},A=function(e,t){return{years:e.getFullYear()-t.getFullYear(),months:e.getMonth()-t.getMonth(),days:e.getDate()-t.getDate(),hours:e.getHours()-t.getHours(),minutes:e.getMinutes()-t.getMinutes(),seconds:e.getSeconds()-t.getSeconds()}},P=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=W(e),t.isValid=M(t.rule,e)),t},B=[],M=function(e,t){return!($(e)||r(e.freq,_)===-1||R(e)||L(e)||z(e)||V(e)||H(e)||F(e))||(N(t),!1)},F=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},R=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},V=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},H=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},L=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},z=function(e){var t=G(e),n=!1;return a(t,function(e,t){if(!Object.prototype.hasOwnProperty.call(m,t))return n=!0,!1}),n},$=function(e){var t=!1;return a(e,function(e){if(r(e,g)===-1)return t=!0,!1}),t},N=function(e){r(e,B)===-1&&(i.log("W0006",e),B.push(e))},W=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var u=parseInt(t.interval);isNaN(u)||(t.interval=u)}else t.interval=1;return t.freq&&t.until&&(t.until=j(t.until)),t},j=function(e,t){if("string"!=typeof e)return e;var n=e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/);if(!n)return null;var i=void 0!==n[8],o=t?t.getTimezoneOffset():ie.getTimeZoneOffset(),a=new(Function.prototype.bind.apply(Date,q(n)));return o=6e4*o,i&&(a=new Date(a.getTime()-o)),a},q=function(e){return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),e},G=function(e){var t=[];return e.byday&&(t=Array.isArray(e.byday)?e.byday:e.byday.split(",")),t},K=function(e){var t=6e4*ie.getTimeZoneOffset();return e=new Date(e.getTime()+t),e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(s(t)&&(e.fdow=t),e.wkst||(e.wkst=s(t)?v[t]:"MO"),e.byweekno&&!e.byday){for(var i=Object.keys(m),o=0;o<m[e.wkst];o++)i.push(i.shift());e.byday=i.join(",")}for(var a in h)if(e[a]){var r=e[a].split(","),l=Y(a,r);n=n.length?Z(l,n):l}return n},Y=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=X(e,t[i]),n.push(a)}return n},X=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=m[t]),n},Z=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)for(var r=0,s=t.length;r<s;r++)n.push(o({},e[i],t[r]));return n},Q=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=ee(t,e,n.wkst);for(var l in r)h[l]&&h[l](s,r[l],n.wkst,n.freq,n.fdow);Array.isArray(s)?i=i.concat(s):i.push(new Date(s))}return i.length||i.push(t),i},J=function(e,t,n,i){for(var o=[],a=i.count,r=0,s=ee(t,e,i.wkst);r<a;){for(var u=Q(e,s,i),d=[],c=0;c<u.length;c++)u[c].getTime()>=n.getTime()&&d.push(u[c]);var h=d.length;r+=h;var p=r-a;for(r>a&&d.splice(h-p,p),c=0;c<d.length;c++)o.push(d[c]);var f=i.interval;"days"===Object.keys(f)[0]&&(f={weeks:1}),s=l.addInterval(s,f)}return o},ee=function(e,t,n){var i=new Date(e),o=i.getDay();return t.length&&s(t[0].byday)?i.setDate(i.getDate()-o+m[n]-(o<m[n]?7:0)):i.setDate(1),i},te=function(e,t,n){for(var i=!1,o=0;o<t.length;o++){var a=t[o],r=!0;for(var s in a){var l="bymonthday"===s&&a[s]<0;f[s]&&!l&&a[s]!==f[s](e,n)&&(r=!1)}i=i||r}return i||!t.length},ne=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=K(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}},ie={getRecurrenceString:ne,getRecurrenceRule:P,getAsciiStringByDate:K,getDatesByRecurrence:I,dateInRecurrenceRange:w,getDateByAsciiString:j,daysFromByDayRule:G,getTimeZoneOffset:y};e.exports=ie},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(){return u||(u=a()),u}function a(){var e=(0,l.getWindow)(),t=e&&e.DevExpress&&e.DevExpress.diagram||n(766);if(!t)throw s.default.Error("E1041","devexpress-diagram");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagram=void 0;var r=n(19),s=i(r),l=n(7),u=void 0;t.getDiagram=o},,,,,,,function(e,t,n){var i=n(181);e.exports=new i},function(e,t,n){var i=n(5),o=n(25),a=n(12),r=n(15),s=n(8),l="dxPointerEvents",u=r.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.getDocument(),i.off(e,this._originalEvents)}});e.exports=u},function(e,t,n){var i=n(2),o=n(73),a="dx-swatch-",r=function(e){var t=i(e),n=t.closest('[class^="'+a+'"], [class*=" '+a+'"]'),r=o.value();if(!n.length)return r;var s=new RegExp("(\\s|^)("+a+".*?)(\\s|$)"),l=n[0].className.match(s)[2],u=r.children("."+l);return u.length||(u=i("<div>").addClass(l).appendTo(r)),u};e.exports={getSwatchContainer:r}},function(e,t,n){var i=n(15),o=n(1),a=n(3),r=n(18).compileGetter,s=n(18).toComparable,l=n(6).Deferred,u=n(37),d=n(41),c=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=c.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=c.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=s(e),t=s(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?1:0},_=c.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var o=0,a=this.rules.length;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),u=r.compare||g,d=u(s,l);if(d)return r.desc?-d:d}return n-i}}),m=function(){function e(e,n,i){return function(o){o=s(e(o));var a=t(n)?o===n:o==n;return i&&(a=!a),a}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=m(e[1]);if("!"===t)return function(e){return!n(e)};throw u.errors.Error("E4003",t)}var i=function(e){var t=[],n=!1,i=!1;return a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&n!==i)throw new u.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=d.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}},l=function(e){return o.isDefined(e)?e.toString():""},c=function(t){t=d.normalizeBinaryCriterion(t);var n=r(t[0]),i=t[1],o=t[2];switch(o=s(o),i.toLowerCase()){case"=":return e(n,o);case"<>":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))<o};case">=":return function(e){return s(n(e))>=o};case"<=":return function(e){return s(n(e))<=o};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(o)};case"endswith":return function(e){var t=s(l(n(e))),i=l(o);return!(t.length<i.length)&&t.lastIndexOf(o)===t.length-o.length};case"contains":return function(e){return s(l(n(e))).indexOf(o)>-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(o)===-1}}throw u.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:d.isGroupCriterion(e)?i(e):d.isUnaryOperation(e)?n(e):c(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=c.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=r(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new h(a.map(t,function(t){return{key:t,items:e[t]}}))}}}),w=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=r(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),x=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),b=function e(t,n){n=n||{},t instanceof c||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),u._errorHandler(e)},a=function(e){var n,o=(new l).fail(i),a=e.step,r=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=a(s,t.current());o.resolve(r?r(s):s)}catch(e){o.reject(e)}return o.promise()},s=function(e,t,n){return a(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return a(d.aggregators[e])},f=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),m(new w(t,e))},g=function(e){return f(r(e))},m=function(t){return e(t,n)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return m(new _(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof _)return m(t.thenBy(e,n,i));throw u.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),m(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),m(new x(t,e,n))},select:f,groupBy:function(e){return m(new y(t,e))},aggregate:s,count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return p("count")},sum:function(e){return e?g(e).sum():p("sum")},min:function(e){return e?g(e).min():p("min")},max:function(e){return e?g(e).max():p("max")},avg:function(e){return e?g(e).avg():p("avg")}}};e.exports=b},function(e,t,n){var i=n(1),o=n(3),a=n(28),r=n(0).extend,s=n(185),l=n(102),u=l.serializePropName,d=n(37).errors,c=n(41),h=i.isFunction,p=2,f=function(){var e,t,n,s=function(e){return function(t,n){return t+" "+e+" "+n}},h=function(e,n){return function(i,o){var a=[e,"("];return t&&(i=i.indexOf("tolower(")===-1?"tolower("+i+")":i,o=o.toLowerCase()),n?a.push(o,",",i):a.push(i,",",o),a.push(")"),a.join("")}},p={"=":s("eq"),"<>":s("ne"),">":s("gt"),">=":s("ge"),"<":s("lt"),"<=":s("le"),startswith:h("startswith"),endswith:h("endswith")},f=r({},p,{contains:h("substringof",!0),notcontains:h("not substringof",!0)}),g=r({},p,{contains:h("contains"),notcontains:h("not contains")}),_=function(t){t=c.normalizeBinaryCriterion(t);var i=t[1],o=4===e?g:f,a=o[i.toLowerCase()];if(!a)throw d.Error("E4003",i);var r=t[0],s=t[2];return n&&n[r]&&(s=l.convertPrimitiveValue(n[r],s)),a(u(r),l.serializeValue(s,e))},m=function(e){var t=e[0],n=y(e[1]);if("!"===t)return"not ("+n+")";throw d.Error("E4003",t)},v=function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new d.Error("E4019");i.push("("+y(o)+")"),t=n,n="and"}else n=c.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},y=function(e){return Array.isArray(e[0])?v(e):c.isUnaryOperation(e)?m(e):_(e)};return function(o,r,s,l){return n=s,t=i.isDefined(l)?l:a().oDataFilterToLower,e=r,y(o)}}(),g=function(e){function t(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&h(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,o,a,s=[],d=[],c=e.expand,g=e.version||p,_=function(){return i||void 0!==o},m=function e(t){for(var n=0;n<t.length;n++){if(h(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(a||(s.length&&(t.$orderby=s.join(",")),i&&(t.$skip=i),void 0!==o&&(t.$top=o),t.$select=l.generateSelect(g,n)||void 0,t.$expand=l.generateExpand(g,c,n)||void 0),d.length){var r=d.length<2?d[0]:d,u=e&&e.fieldTypes,h=e&&e.filterToLower;t.$filter=f(r,g,u,h)}return a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==g?t.$inlinecount="allpages":t.$count="true"),t};return{optimize:function(e){t(e)},exec:function(t){return l.sendRequest(g,{url:t,params:r(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(_())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],a=!!e[n][1];if("string"!=typeof o)return!1;i=u(o),a&&(i+=" desc"),t=t||[],t.push(i)}s=t},slice:function(e,t){return!_()&&(i=e,void(o=t))},filter:function(e){return!_()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!m(e)&&(d.length&&d.push("and"),void d.push(e)))},select:function(e){return!n&&!h(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){a=!0}}};s.odata=g,t.odata=g},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(88),s=n(61),l=n(11),u=n(49),d=u.add,c=n(30),h=n(4).noop,p=n(1).isDefined,f=n(8),g=n(116),_=c.sign,m=Math.abs,v=0,y=1,w=2,x=10,b=0,C=180,k=function(){return r.styleProp("pointer-events")},I=s(function(){var e="dx-gesture-cover",t="desktop"===a.real().deviceType;if(!k()||!t)return h;var n=i("<div>").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),d(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),S=function(e,t){var n=I();n(e,t)},D=g.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==w},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=v},start:function(e){return e._needSkipEvent||f.needSkipEvent(e)?void this._cancel(e):(this._startEvent=f.createEvent(e),this._startEventData=f.eventData(e),this._stage=y,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),C))},move:function(e){if(this._stage===y&&this._directionConfirmed(e)){if(this._stage=w,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===v)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===w&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.eventData(e)),i=m(n.x),o=m(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),u="horizontal"===s&&a,d="vertical"===s&&r;return l||u||d||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||f.isDxMouseWheelEvent(e)?b:x},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.eventData(e));this._startEvent.pageX+=_(n.x)*t,this._startEvent.pageY+=_(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){var t=this._stage===w;t&&S(e,this.getElement().css("cursor"))},_clearSelection:function(e){f.isDxMouseWheelEvent(e)||f.isTouchEvent(e)||l.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===w?this._end(e):this._stage===y&&this._stop(e),this._stage=v},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:h,_start:h,_move:h,_stop:h,_end:h});D.initialTouchBoundary=x,D.touchBoundary=function(e){return p(e)?void(x=e):x},e.exports=D},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){d[e]=t}function a(e){if((0,s.isString)(e)){if(c=d[e],!c)throw u.default.Error("E0020",e)}else c=e}function r(){return c}Object.defineProperty(t,"__esModule",{value:!0}),t.registerTemplateEngine=o,t.setTemplateEngine=a,t.getCurrentTemplateEngine=r;var s=n(1),l=n(21),u=i(l),d={},c=void 0},function(e,t,n){var i=n(179),o=n(5),a=n(85),r=n(3).each,s=n(8),l=n(0).extend,u=n(131),d="dxSwipeable",c="dx-swipeable",h={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},p=a.inherit({_getDefaultOptions:function(){return l(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass(c),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),r(h,function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),o.on(this.$element(),n,this._eventData,function(e){return i({event:e})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.off(this.$element(),"."+d)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}}});u.name(p,d),e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(4),l=n(0),u=n(21),d=n(11),c=n(16),h=i(c),p=n(85),f=i(p),g=n(476),_=n(69),m=n(99),v=n(100),y=n(139),w=n(33),x=3,b="template",C="[data-options*='dxTemplate']",k="dx-template-wrapper",I=new m.FunctionTemplate(function(e){var t=e.model.widget;if(t){var n=(0,a.default)("<div>"),i=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var o=t;t=(0,w.camelize)("dx-"+t),(0,u.log)("W0001","dxToolbar - 'widget' item field",o,"16.1","Use: '"+t+"' instead")}return e.parent?e.parent._createComponent(n,t,i):n[t](i),n}return(0,a.default)()}),S=f.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{integrationOptions:{watchMethod:function(e,t,n){return n=n||{},n.skipImmediate||t(e()),s.noop},templates:{"dx-polymorph-widget":I},createTemplate:function(e){return new g.Template(e)}}})},_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates()},_dispose:function(){this._cleanTemplates(),this.callBase()},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var e=this.$element().contents().filter(C),t={};e.each(function(e,n){var i=(0,d.getElementOptions)(n).dxTemplate;if(i){if(!i.name)throw(0,u.Error)("E0023");(0,a.default)(n).addClass(k).detach(),t[i.name]=t[i.name]||[],t[i.name].push(n)}});for(var n in t){var i=this._findTemplateByDevice(t[n]);i&&this._saveTemplate(n,i)}},_saveTemplate:function(e,t){var n=this.option("integrationOptions.templates");n[e]=this._createTemplate(t)},_findTemplateByDevice:function(e){var t=(0,s.findBestMatches)(h.default.current(),e,function(e){return(0,d.getElementOptions)(e).dxTemplate})[0];return e.forEach(function(e){e!==t&&(0,a.default)(e).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),i=n.filter(function(e,t){var n=t.nodeType===x,i=(0,a.default)(t).text().trim().length<1;return!(n&&i)}),o=i.length<1;e[t]||o||(e[t]=this._createTemplate(n))},_getAnonymousTemplateName:function(){return b},_createTemplateIfNeeded:function(e){var t=function(e){return(0,r.isRenderer)(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?(0,d.normalizeTemplateElement)(e):e,this.option("integrationOptions.createTemplate")(e)},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return(0,r.isFunction)(e)?new m.FunctionTemplate(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!(0,r.isDefined)(n))return new v.EmptyTemplate;var i=!1,o=this._acquireTemplate(n,function(e){return e.nodeType||(0,r.isRenderer)(e)&&!(0,a.default)(e).is("script")?new m.FunctionTemplate(function(){return e}):(i=!0,this._createTemplate(e))}.bind(this)),s=o.render(t);return i&&o.dispose&&o.dispose(),s}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){if(null==e)return new v.EmptyTemplate;
if(e instanceof y.ChildDefaultTemplate)return this._defaultTemplates[e.name];if(e instanceof _.TemplateBase)return e;if((0,r.isFunction)(e.render)&&!(0,r.isRenderer)(e))return this._addOneRenderedCall(e);if(e.nodeType||(0,r.isRenderer)(e))return t((0,a.default)(e));if("string"==typeof e){var n=this.option("integrationOptions.skipTemplates")||[],i=null;return n.indexOf(e)===-1&&(i=this._renderIntegrationTemplate(e)),i||this._defaultTemplates[e]||t(e)}return this._acquireTemplate(e.toString(),t)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_addOneRenderedCall:function(e){var t=e.render.bind(e);return(0,l.extend)({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})},_renderIntegrationTemplate:function(e){var t=this.option("integrationOptions.templates")[e];if(t&&!(t instanceof _.TemplateBase)){var n=this.option("templatesRenderAsynchronously");if(!n)return this._addOneRenderedCall(t)}return t}});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(15),u=i(l),d=n(14),c=n(3),h=n(8),p="compositionstart",f="compositionend",g="keydown",_="KeyboardProcessor",m=u.default.inherit({_keydown:(0,h.addNamespace)(g,_),_compositionStart:(0,h.addNamespace)(p,_),_compositionEnd:(0,h.addNamespace)(f,_),ctor:function(e){var t=this;e=e||{},e.element&&(this._element=(0,a.default)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){var n=t._focusTarget&&t._focusTarget!==e.target&&(0,d.inArray)(e.target,t._focusTarget)<0,i=t._isComposingJustFinished&&229===e.which||t._isComposing||n;t._isComposingJustFinished=!1,i||t.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),s.default.on(this._element,this._keydown,this._processFunction),s.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(s.default.off(this._element,this._keydown,this._processFunction),s.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new m;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){var t={keyName:(0,h.normalizeKeyName)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&(0,c.each)(this._childProcessors,function(t,n){n.process(e)})},toggleProcessing:function(e){var t=e.type;this._isComposing=t===p,this._isComposingJustFinished=!this._isComposing}});e.exports=m},function(e,t,n){var i=n(2),o=n(5),a=n(43),r=n(16),s=n(15),l=n(68),u=n(8),d=n(91),c="dxContexMenu",h=u.addNamespace("contextmenu",c),p=u.addNamespace(d.name,c),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);o.on(t,h,this._contextMenuHandler.bind(this)),(a.touch||r.isSimulator())&&o.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){u.isMouseEvent(e)&&!r.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return u.fireEvent({type:f,originalEvent:e})},teardown:function(e){o.off(e,"."+c)}});l(f,new g),t.name=f},function(e,t,n){function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(18),u=n(165),d=n(4),c=n(57),h=n(3),p=2e5,f=function(){function e(t){r(this,e),t=(0,d.ensureDefined)(t,{}),this._keyGetter=(0,l.compileGetter)(this._getKeyExpr(t)),this._nameGetter=(0,l.compileGetter)(this._getNameExpr(t)),this._isDirGetter=(0,l.compileGetter)(this._getIsDirExpr(t)),this._sizeGetter=(0,l.compileGetter)(t.sizeExpr||"size"),this._dateModifiedGetter=(0,l.compileGetter)(t.dateModifiedExpr||"dateModified"),this._thumbnailGetter=(0,l.compileGetter)(t.thumbnailExpr||"thumbnail")}return s(e,[{key:"getItems",value:function(e){return[]}},{key:"renameItem",value:function(e,t){}},{key:"createFolder",value:function(e,t){}},{key:"deleteItems",value:function(e){}},{key:"moveItems",value:function(e,t){}},{key:"copyItems",value:function(e,t){}},{key:"uploadFileChunk",value:function(e,t,n){}},{key:"abortFileUpload",value:function(e,t,n){}},{key:"downloadItems",value:function(e){}},{key:"getItemContent",value:function(e){}},{key:"getFileUploadChunkSize",value:function(){return p}},{key:"_getItemsByType",value:function(e,t){return this.getItems(e).filter(function(e){return e.isDirectory===t})}},{key:"_convertDataObjectsToFileItems",value:function(e,t){var n=this,i=[];return(0,h.each)(e,function(e,o){var a=n._createFileItem(o,t);i.push(a)}),i}},{key:"_createFileItem",value:function(e,t){var n=new g(t,this._nameGetter(e),(!!this._isDirGetter(e)));return n.size=this._sizeGetter(e),void 0===n.size&&(n.size=0),n.dateModified=(0,c.deserializeDate)(this._dateModifiedGetter(e)),void 0===n.dateModified&&(n.dateModified=new Date),n.isDirectory&&(n.hasSubDirs=this._hasSubDirs(e)),n.key=this._keyGetter(e),n.key||(n.key=n.relativeName),n.thumbnail=this._thumbnailGetter(e)||"",n.dataItem=e,n}},{key:"_hasSubDirs",value:function(e){return!0}},{key:"_getKeyExpr",value:function(e){return e.keyExpr||this._defaultKeyExpr}},{key:"_defaultKeyExpr",value:function(e){return 2===arguments.length?void(e.__KEY__=arguments[1]):Object.prototype.hasOwnProperty.call(e,"__KEY__")?e.__KEY__:null}},{key:"_getNameExpr",value:function(e){return e.nameExpr||"name"}},{key:"_getIsDirExpr",value:function(e){return e.isDirectoryExpr||"isDirectory"}}]),e}(),g=function(){function e(t,n,i){r(this,e),this.name=n,this.pathInfo=t&&[].concat(a(t))||[],this.parentPath=this._getPathByPathInfo(this.pathInfo),this.key=this.relativeName=(0,u.pathCombine)(this.parentPath,n),this.isDirectory=i||!1,this.isRoot=!1,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""}return s(e,[{key:"getFullPathInfo",value:function(){var e=[].concat(a(this.pathInfo));return!this.isRoot&&e.push({key:this.key,name:this.name}),e}},{key:"getExtension",value:function(){return this.isDirectory?"":(0,u.getFileExtension)(this.name)}},{key:"equals",value:function(e){return e&&this.key===e.key}},{key:"createClone",value:function(){var t=new e(this.pathInfo,this.name,this.isDirectory);return t.key=this.key,t.size=this.size,t.dateModified=this.dateModified,t.thumbnail=this.thumbnail,t.tooltipText=this.tooltipText,t.hasSubDirs=this.hasSubDirs,t.dataItem=this.dataItem,t}},{key:"_getPathByPathInfo",value:function(e){return e.map(function(e){return e.name}).join(u.PATH_SEPARATOR)}}]),e}(),_=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null,"Files",!0));return e.key="__dxfmroot_394CED1B-58CF-4925-A5F8-042BC0822B31_51558CB8-C170-4655-A9E0-C454ED8EA2C1",e.relativeName="",e.isRoot=!0,e}return o(t,e),t}(g);e.exports.FileProvider=f,e.exports.FileManagerItem=g,e.exports.FileManagerRootItem=_},function(e,t,n){var i=n(3),o="/",a=function(e){var t=e.lastIndexOf(".");return t!==-1?e.substr(t):""},r=function(e){var t=e.lastIndexOf(o);return t!==-1?e.substr(t+o.length):e},s=function(e){var t=e.lastIndexOf(o);return t!==-1?e.substr(0,t):""},l=function(e,t){if(!e||"/"===e)return[];for(var n=[],i="",a=0;a<e.length;a++){var r=e.charAt(a);if(r===o){var s=e.charAt(a+1);s!==o&&(i&&(n.push(i),i=""),r=s),a++}i+=r}if(i&&n.push(i),t)for(var l=0;l<n.length;l++)n[l]=d(0===l?"":n[l-1],n[l]);return n},u=function(e){return e.replace(/\//g,"//")},d=function(){var e="";return(0,i.each)(arguments,function(t,n){n&&(e&&(e+=o),e+=n)}),e},c=function(e){for(var t=["B","KB","MB","GB","TB"],n=0,i=e;i>=1024&&n<=t.length-1;)i/=1024,n++;return i=Math.round(10*i)/10,i+" "+t[n]};e.exports.getFileExtension=a,e.exports.getName=r,e.exports.getParentPath=s,e.exports.getPathParts=l,e.exports.getEscapedFileName=u,e.exports.pathCombine=d,e.exports.getDisplayFileSize=c,e.exports.PATH_SEPARATOR=o},function(e,t,n){var i=n(2),o=n(294),a=n(5),r=n(34),s=n(9),l=n(4),u=n(11),d=n(65).focused,c=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(11).getPublicElement,g=n(19),_=n(78),m=n(101).getDefaultAlignment,v=n(514).default,y=n(10),w=n(8),x=n(93),b=n(20),C=n(16),k=n(99).FunctionTemplate,I=n(44),S="dx-dropdowneditor",D="dx-dropdowneditor-input-wrapper",T="dx-dropdowneditor-icon",E="dx-dropdowneditor-overlay",O="dx-dropdowneditor-overlay-flipped",A="dx-dropdowneditor-active",P="dx-dropdowneditor-field-clickable",B="dx-dropdowneditor-field-template-wrapper",M="ios"===C.current().platform,F=x.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return p({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&a.trigger(t,"focus"),e.preventDefault()}},escape:function(e){return this.option("opened")&&e.preventDefault(),this.close(),!0},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0},home:e,end:e})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:v}])},_getDefaultOptions:function(){return p(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:y.format("OK"),cancelButtonText:y.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1,useHiddenSubmitElement:!1})},_getDefaultPopupPosition:function(){var e=m();return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform;return t},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+D)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._initInnerOptionCache("dropDownOptions")},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass(S),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner(i("<div>").addClass(D)),this._$container=this.$element().children().eq(0),this._setDefaultAria()},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){var e=!!this._getFieldTemplate();e||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue();var e=this.callBase();e.always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var n=this,o=d(this._input()),r=this._$container;this._disposeKeyboardProcessor();var s=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,l=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;s&&s.removeChild(this._$beforeButtonsContainer[0]),l&&l.removeChild(this._$afterButtonsContainer[0]),this._detachFocusEvents(),r.empty();var c=i("<div>").addClass(B).appendTo(r);e.render({model:t,container:u.getPublicElement(c),onRendered:function(){var e=n._input();if(!e.length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),o&&a.trigger(e,"focus")}}),r.prepend(this._$beforeButtonsContainer),r.append(this._$afterButtonsContainer)},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new k(function(e){var t=i("<div>").addClass(T);i(e.container).append(t)})},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=w.addNamespace(b.name,e.NAME),i=e.option("openOnFieldClick");a.off(t,n),a.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass(P,i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_attachFocusOutHandler:function(){M&&(this._detachFocusOutEvents(),a.on(this._inputWrapper(),w.addNamespace("focusout",this.NAME),function(e){var t=e.relatedTarget,n=this.content?i(this.content()).closest("."+E):this._$popup;if(t&&this.option("opened")){var o=0===i(t).closest("."+E,n).length;o&&this.close()}}.bind(this)))},_detachFocusOutEvents:function(){M&&a.off(this._inputWrapper(),w.addNamespace("focusout",this.NAME))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!d(this._input())&&a.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass(A,e),this._setPopupOption("visible",e),this.setAria({expanded:e}),this.setAria("owns",(e||void 0)&&this._popupContentId,this.$element())},_createPopup:function(){this._$popup||(this._$popup=i("<div>").addClass(E).addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,I,p(this._popupConfig(),this._getInnerOptionsCache("dropDownOptions"))),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId:function(e){this._popupContentId="dx-"+new r,this.setAria("id",this._popupContentId,e)},_contentReadyHandler:l.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:p(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass(O,e.position.v.flip)},_popupShowingHandler:l.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=_.setup(this.$element()).top,n=_.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:u.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=e.target,n=i(t),o=this.getButton("dropDown"),a=o&&o.$element(),r=!!n.closest(this.$element()).length,s=!!n.closest(a).length,l=!r&&!s;return l},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(a.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){a.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=l.splitPair(t);c(n,function(e,t){p(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_updatePopupWidth:l.noop,_popupOptionChanged:function(e){var t=this._getOptionsFromContainer(e);this._setPopupOption(t),Object.keys(t).indexOf("width")!==-1&&void 0===t.width&&this._updatePopupWidth()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":h(e.value)?this._renderField():this._invalidate();break;case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._cacheInnerOptions("dropDownOptions",e.value);break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return f(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(o);s("dxDropDownEditor",F),e.exports=F},function(e,t,n){var i=n(2),o=n(4).noop,a=n(10),r=n(9),s=n(0).extend,l=n(80),u=n(59),d=n(6).Deferred,c=n(31),h="dx-loadpanel",p="dx-loadpanel-wrapper",f="dx-loadpanel-indicator",g="dx-loadpanel-message",_="dx-loadpanel-content",m="dx-loadpanel-content-wrapper",v="dx-loadpanel-pane-hidden",y=u.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return c.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_initOptions:function(){this.callBase.apply(this,arguments),this.option("templatesRenderAsynchronously",!1)},_render:function(){this.callBase(),this.$element().addClass(h),this._wrapper().addClass(p)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(_),this._$contentWrapper=i("<div>").addClass(m),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new d,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("<div>").addClass(g).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("<div>").addClass(f).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+g).remove(),this.$content().find("."+f).remove()},_togglePaneVisible:function(){this.$content().toggleClass(v,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",y),e.exports=y},function(e,t,n){var i=n(2),o=n(31),a=n(9),r=n(4).grep,s=n(0).extend,l=n(14),u=n(3),d=n(585),c=n(586),h=n(298),p=n(139).ChildDefaultTemplate,f={actionSheet:d,dropDownMenu:c},g="dx-toolbar-item-auto-hide",_="dx-toolbar-text-auto-hide",m="dx-toolbar-item-invisible",v=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu",menuContainer:void 0})},_defaultOptionsRules:function(){var e=o.current();return this.callBase().concat([{device:function(){return o.isIos7(e)},options:{submenuType:"actionSheet"}}])},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._defaultTemplates.actionSheetItem=new p("item")},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),this._menuStrategy.renderMenuItems()},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(g),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass(_),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find("."+g);if(t.length){e=e||this.$element().width(),i(t).removeClass(m);for(var n=this._getItemsWidth();t.length&&e<n;){var o=t.eq(-1);n-=o.outerWidth(),o.addClass(m),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=r(this.option("items")||[],function(t){return e._isMenuItem(t)}),n=this._itemContainer().children("."+g+"."+m).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var o=[].slice.call(n).map(function(t){var n=e._getItemData(t),o=i(t).children(),a=o.children();return s({menuItemTemplate:function(){e._restoreItems.push({container:o,item:a});var t=i("<div>").addClass(g);return t.append(a)}},n)});return l.merge(o,t)},_getToolbarItems:function(){var e=this;return r(this.option("items")||[],function(t){return!e._isMenuItem(t)})},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=f[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("items")||[],t=!1;return u.each(e,function(e,n){"auto"===n.locateInMenu?t=!0:"always"===n.locateInMenu&&n.widget&&(t=!0)}),t},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto","float":"none"}),u.each(this._restoreItems||[],function(e,t){i(t.container).append(t.item)}),this._restoreItems=[];var e=this.$element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems())},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",n);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});a("dxToolbar",v),e.exports=v},function(e,t,n){e.exports=n(334),e.exports.show=n(259).show,e.exports.hide=n(259).hide},function(e,t,n){var i=n(1),o=n(14).inArray,a=n(3),r=["year","month","day"],s=["year","month","day","hour","minute"];e.exports=function(){var t=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},n=function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},l=function(e){return"date"===e||"datetime"===e},u=function(e){return i.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:a.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},d=function(e,o){var a,r,s,u=this,d=t(u,o);if(Array.isArray(e)&&i.isDefined(e[0])&&i.isDefined(e[1]))return r=[d,">=",e[0]],s=[d,"<=",e[1]],l(u.dataType)&&n(e[1])&&(a=new Date(e[1].getTime()),"date"===u.dataType&&a.setDate(e[1].getDate()+1),s=[d,"<",a]),[r,"and",s]},c=function(n,i,o){var a,r,s,l=this,d=u(n),c=t(l,o);switch("headerFilter"===o?s=e.exports.getGroupInterval(l)[d.length-1]:"datetime"===l.dataType&&(s="minute"),s){case"year":a=new Date(d[0],0,1),r=new Date(d[0]+1,0,1);break;case"month":a=new Date(d[0],d[1],1),r=new Date(d[0],d[1]+1,1);break;case"quarter":a=new Date(d[0],3*d[1],1),r=new Date(d[0],3*d[1]+3,1);break;case"hour":a=new Date(d[0],d[1],d[2],d[3]),r=new Date(d[0],d[1],d[2],d[3]+1);break;case"minute":a=new Date(d[0],d[1],d[2],d[3],d[4]),r=new Date(d[0],d[1],d[2],d[3],d[4]+1);break;case"second":a=new Date(d[0],d[1],d[2],d[3],d[4],d[5]),r=new Date(d[0],d[1],d[2],d[3],d[4],d[5]+1);break;default:a=new Date(d[0],d[1],d[2]),r=new Date(d[0],d[1],d[2]+1)}switch(i){case"<":return[c,"<",a];case"<=":return[c,"<",r];case">":return[c,">=",r];case">=":return[c,">=",a];case"<>":return[[c,"<",a],"or",[c,">=",r]];default:return[[c,">=",a],"and",[c,"<",r]]}},h=function(n,o,a){var r=this,s=t(r,a),l=e.exports.getGroupInterval(r);if("headerFilter"===a&&l&&i.isDefined(n)){var u,d,c,h=(""+n).split("/"),p=Number(h[h.length-1]);u=l[h.length-1],d=[s,">=",p],c=[s,"<",p+u];var f=[d,"and",c];return f}return[s,o||"=",n]};return{defaultCalculateFilterExpression:function(e,n,o){var a=this,r=t(a,o),s=a.calculateDisplayValue&&"search"===o,u=s&&a.lookup&&a.lookup.dataType||a.dataType,p=null;if("headerFilter"!==o&&"filterBuilder"!==o||null!==e)if("string"!==u||a.lookup&&!s){if("between"===n)return d.apply(a,[e,o]);if(l(u)&&i.isDefined(e))return c.apply(a,arguments);if("number"===u)return h.apply(a,arguments);"object"!==u&&(p=[r,n||"=",e])}else p=[r,n||"contains",e];else p=[r,n||"=",null],"string"===u&&(p=[p,"="===n?"or":"and",[r,n||"=",""]]);return p},getGroupInterval:function(e){
var t,n=[],a=["year","month","day","hour","minute","second"],u=e.headerFilter&&e.headerFilter.groupInterval,d="quarter"===u?"month":u;return l(e.dataType)&&null!==u?(n="datetime"===e.dataType?s:r,t=o(d,a),t>=0?(n=a.slice(0,t),n.push(u),n):n):i.isDefined(u)?Array.isArray(u)?u:[u]:void 0}}}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(7),u=n(5),d=i(u),c=n(38),h=i(c),p=n(23),f=i(p),g=n(20),_=i(g),m=n(135),v=i(m),y=n(25),w=i(y),x=n(4),b=n(88),C=i(b),k=n(11),I=n(1),S=i(I),D=n(3),T=i(D),E=n(0),O=n(101),A=n(40),P=i(A),B=n(36),M=n(342),F=i(M),R="scroll-container",V="group-space",H="content",L="table",z="table-fixed",$="content-fixed",N="dx-row",W="dx-col-fixed",j="dx-group-row",q="dx-master-detail-row",G="filter-row",K="cell-updated-animation",U="0.0001px",Y="dxCellHintVisible",X="dx-field-item-content",Z={render:function(e){e.container.append(e.content)}},Q=function(e,t){function n(e){return setTimeout(function(){i=o=null},e)}var i,o,r;d.default.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(r),"touchstart"===e.type?(i=e.target,o=e.currentTarget,r=n(1e3)):r=n()}),d.default.on(t,[_.default.name,v.default.name,f.default.down].join(" "),".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var n=t.event;i&&(n.target=i,n.currentTarget=o),(0,a.default)(n.target).closest("a").length||(t.rowIndex=e.getRowIndex(n.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,k.getPublicElement)((0,a.default)(n.currentTarget)),t.columns=e.getColumns(),n.type===f.default.down?e._rowPointerDown(t):n.type===_.default.name?e._rowClick(t):e._rowDblClick(t)))}))},J=function(e){return"auto"===e?"":S.default.isNumeric(e)?e+"px":e},ee=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n},te=function(e,t){if(e&&t){var n,i,o=e.attributes,a=t.attributes;for(i=0;i<o.length;i++)n=o[i].nodeName,t.hasAttribute(n)||e.removeAttribute(n);for(i=0;i<a.length;i++)e.setAttribute(a[i].nodeName,a[i].nodeValue)}};t.ColumnsView=P.default.View.inherit(F.default).inherit({_createScrollableOptions:function(){var e=this,t=e.option("scrolling"),n=e.option("scrolling.useNative"),i=(0,E.extend)({pushBackValue:0},t,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===n&&(n=!0),"auto"===n?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!n,i.useSimulatedScrollbar=!n),i},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||(0,O.getDefaultAlignment)(this.option("rtlEnabled")),i=s.default.createElement("td");i.style.textAlign=n;var o=(0,a.default)(i);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,o),t.cssClass&&o.addClass(t.cssClass),"expand"===t.command&&(o.addClass(t.cssClass),o.addClass(this.addWidgetPrefix(V))),t.colspan>1?o.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(i.style.minWidth=J(t.minWidth||t.width)),t.width&&ee(i,t,J(t.width))),w.default.mozilla&&e.column.fixed&&o.addClass(W),o},_createRow:function(e){var t=(0,a.default)("<tr>").addClass(N);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,i=(0,a.default)("<table>").addClass(n.addWidgetPrefix(L)).addClass(n.addWidgetPrefix(z));if(e&&!t?(i.append(n._createColGroup(e)),w.default.safari&&i.append((0,a.default)("<thead>").append("<tr>")),n.setAria("role","presentation",i)):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,a.default)("<tbody>").appendTo(i)),t)return i;w.default.mozilla&&d.default.on(i,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&d.default.on(i,"mousemove",".dx-row > td",this.createAction(function(e){var t,i=e.event,o=(0,a.default)(i.target),r=(0,a.default)(i.currentTarget),s=r.parent(),l=s.hasClass("dx-data-row"),u=s.hasClass("dx-header-row"),d=s.hasClass(j),c=s.hasClass(q),h=s.hasClass(n.addWidgetPrefix(G)),p=n._columnsController.getVisibleColumns(),f=s.data("options"),g=r.index(),_=f&&f.cells&&f.cells[g],m=_?_.column:p[g],v=w.default.msie?1:0;c||h||l&&(!l||!m||m.cellTemplate)||u&&(!u||!m||m.headerCellTemplate)||d&&(!d||!m||void 0!==m.groupIndex&&m.groupCellTemplate)||(o.data(Y)&&(o.removeAttr("title"),o.data(Y,!1)),t=o[0].scrollWidth-o[0].clientWidth-v,t>0&&!S.default.isDefined(o.attr("title"))&&(o.attr("title",o.text()),o.data(Y,!0)))}));var o=function(e){var t,i,o=(0,a.default)(e.currentTarget),r=(0,a.default)(e.target).closest("."+X),s=o.parent().data("options"),l=s&&s.cells&&s.cells[o.index()];if(o.closest("table").is(e.delegateTarget))return i=(0,E.extend)({},l,{cellElement:(0,k.getPublicElement)(o),event:e,eventType:e.type}),r.length&&(t=r.data("dx-form-item"),t.column&&(i.column=t.column,i.columnIndex=n._columnsController.getVisibleIndex(i.column.index))),i};return d.default.on(i,"mouseover",".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)}),d.default.on(i,"mouseout",".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)}),d.default.on(i,_.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellClick",t)}),d.default.on(i,v.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellDblClick",t)}),Q(n,i),i},_isNativeClick:x.noop,_rowPointerDown:x.noop,_rowClick:x.noop,_rowDblClick:x.noop,_createColGroup:function(e){var t,n,i,o=(0,a.default)("<colgroup>");for(t=0;t<e.length;t++)for(i=e[t].colspan||1,n=0;n<i;n++)o.append(this._createCol(e[t]));return o},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=U);var n=(0,a.default)("<col>");return C.default.setWidth(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter(function(e){return!e.async}),n=e.filter(function(e){return e.async});this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,l.getWindow)().setTimeout(function(){t._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,t){for(var n,i=new Date;e.length;){n=e.shift();var o=n.options,r=o.model,l=s.default.getDocument();if(t&&!(0,a.default)(o.container).closest(l).length||(n.template.render(o),r&&r.column&&this._updateCell(o.container,r)),t&&new Date-i>30){this._renderDelayedTemplatesCoreAsync(e);break}}},_processTemplate:function(e){var t,n,i=this;return e&&e.render&&!S.default.isRenderer(e)?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:S.default.isFunction(e)?n={render:function(t){var n=e((0,k.getPublicElement)(t.container),t.model);n&&(n.nodeType||S.default.isRenderer(n))&&t.container.append(n)}}:(t=S.default.isString(e)?e:(0,a.default)(e).attr("id"),t?(i._templatesCache[t]||(i._templatesCache[t]=i.getTemplate(e)),n=i._templatesCache[t]):n=i.getTemplate(e)),n},renderTemplate:function(e,t,n,i){var o,a=this,r=a._processTemplate(t,n),s=n.column,l="data"===n.rowType;if(r){if(n.component=a.component,o=s&&(s.renderAsync&&l||a.option("renderAsync")&&(s.renderAsync!==!1&&(s.command||s.showEditorAlways)&&l||"filter"===n.rowType)),(r.allowRenderToDetachedContainer||i)&&!o)return r.render({container:e,model:n}),!0;a._delayedTemplates.push({template:r,options:{container:e,model:n},async:o})}return!1},_getBodies:function(e){return(0,a.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(e,t){var n=this.option("rowTemplate")&&this._getBodies(this._tableElement||e);if(n&&n.filter("."+N).length){var i=(0,a.default)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",i),i.append(t)}return t},_appendRow:function(e,t,n){n=n||Z,n.render({content:t,container:e})},_resizeCore:function(){var e=this,t=e._scrollLeft;t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){e=e||{};var t,n=this;e.columns=n._columnsController.getVisibleColumns();var i=e.change&&e.change.changeType;return t=n._createTable(e.columns,"append"===i||"prepend"===i||"update"===i),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this,o=i._getRows(t.change),a=t.change&&t.change.columnIndices||[],r=t.change&&t.change.changeTypes||[];for(n=0;n<o.length;n++)i._renderRow(e,(0,E.extend)({row:o[n],columnIndices:a[n],changeType:r[n]},t))},_renderRow:function(e,t){var n,i,o=this;t.columnIndices||(t.row.cells=[]),n=o._createRow(t.row),i=o._wrapRowIfNeed(e,n),"remove"!==t.changeType&&o._renderCells(n,t),o._appendRow(e,i);var a=(0,E.extend)({columns:t.columns},t.row);o._addWatchMethod(a,t.row),o._rowPrepared(i,a,t.row)},_needRenderCell:function(e,t){return!t||t.indexOf(e)>=0},_renderCells:function(e,t){var n,i=this,o=0,a=t.row,r=t.columns;for(n=0;n<r.length;n++)this._needRenderCell(n,t.columnIndices)&&i._renderCell(e,(0,E.extend)({column:r[n],columnIndex:o,value:a.values&&a.values[o],oldValue:a.oldValues&&a.oldValues[o]},t)),r[n].colspan>1?o+=r[n].colspan:o++},_updateCells:function(e,t,n){var i=e.children(),o=t.children(),a=this.option("highlightChanges"),r=this.addWidgetPrefix(K);n.forEach(function(e,t){var n=i.eq(e),s=o.eq(t);n.replaceWith(s),a&&!s.hasClass("dx-command-expand")&&s.addClass(r)}),te(e.get(0),t.get(0))},_setCellAriaAttributes:function(e,t){"freeSpace"!==t.rowType&&(this.setAria("selected",!1,e),this.setAria("role","gridcell",e),this.setAria("colindex",t.columnIndex+1,e))},_renderCell:function(e,t){var n,i=this,o=i._getCellOptions(t);return t.columnIndices?t.row.cells&&(t.row.cells[o.columnIndex]=o):t.row.cells.push(o),n=i._createCell(o),i._setCellAriaAttributes(n,o),i._renderCellContent(n,o),e.get(0).appendChild(n.get(0)),n},_renderCellContent:function(e,t){var n=this._getCellTemplate(t);n&&!this.renderTemplate(e,n,t)||this._updateCell(e,t)},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType};return this._addWatchMethod(t),t},_addWatchMethod:function(e,t){if(this.option("repaintChangesOnly")){var n=[];return t=t||e,t.watch=t.watch||function(e,i){var o=e(t.data),a=function(){var n=e(t.data);JSON.stringify(o)!==JSON.stringify(n)&&(i(n,o),o=n)};n.push(a);var r=function(){var e=n.indexOf(a);e>=0&&n.splice(e,1)};return r},t.update=t.update||function(t){this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&(e.row=t),n.forEach(function(e){e()})},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,k.getPublicElement)((0,a.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){h.default.data(e.get(0),"options",t),t.rowElement=(0,k.getPublicElement)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if((0,B.checkChanges)(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=T.default.map(n,function(e){var t=e.visibleWidth||e.width;return S.default.isDefined(t)?t:"auto"});return void this.setColumnWidths({widths:i,optionNames:t})}this._requireReady||this.render()},getCellIndex:function(e){var t=e.length?e[0].cellIndex:-1;return t},getTableElements:function(){return this._tableElement||(0,a.default)()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:x.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(R)).not("."+t.addWidgetPrefix($));t._skipScrollChanged=!1,S.default.isDefined(e)&&S.default.isDefined(e.left)&&t._scrollLeft!==e.left&&(t._scrollLeft=e.left,i&&i.scrollLeft(Math.round(e.left)),t._skipScrollChanged=!0)},_wrapTableInScrollContainer:function(e){var t,n=this;return t=(0,a.default)("<div>"),d.default.on(t,"scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}),t.addClass(n.addWidgetPrefix(H)).addClass(n.addWidgetPrefix(R)).append(e).appendTo(n.element()),n.setAria("role","presentation",t),t},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:x.noop,_getWidths:function(e){var t,n,i=[],o=this.option("legacyRendering");return e&&T.default.each(e,function(e,a){t=a.offsetWidth,a.getBoundingClientRect&&(n=a.getBoundingClientRect(),n.width>t-1&&(t=o?Math.ceil(n.width):n.width)),i.push(t)}),i},getColumnWidths:function(e){var t,n,i=this,o=[];if((this.option("forceApplyBindings")||x.noop)(),e=e||i._getTableElement()){t=e.children("tbody").children();for(var a=0;a<t.length;a++){var r=t.eq(a),s="none"!==r.get(0).style.display&&!r.hasClass("dx-state-invisible");if(!r.is("."+j)&&!r.is("."+q)&&s){n=r.children("td");break}}o=i._getWidths(n)}return o},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e){var t,n,i,o,a,r=e.widths,s=e.$tableElement,l=e.columns,u=e.fixed,d=this.option("columnAutoWidth"),c=this.option("legacyRendering");if(s=s||this._getTableElement(),s&&s.length&&r)for(a=0,t=s.children("colgroup").children("col"),C.default.setWidth(t,"auto"),l=l||this.getColumns(null,s),n=0;n<l.length;n++){if(!c&&d&&!u&&(i=l[n].width,i&&!l[n].command)){i=l[n].visibleWidth||i,i=J(i),o=J(l[n].minWidth||i);for(var h=h||s.children().children(".dx-row").not("."+j).not("."+q),p=0;p<h.length;p++){var f=this.getVisibleColumnIndex(n,p),g=h[p].cells[f];g&&(ee(g,l[n],i),g.style.minWidth=o)}}l[n].colspan?a+=l[n].colspan:(i=r[a],"adaptiveHidden"===i&&(i=U),"number"==typeof i&&(i=i.toFixed(3)+"px"),C.default.setWidth(t.eq(a),S.default.isDefined(i)?i:"auto"),a++)}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){var t=this._getRowElements().eq(e);return t.children()},_getCellElement:function(e,t){var n,i=this,o=i.getCellElements(e),a=i._getVisibleColumnIndex(o,e,t);if(o.length&&a>=0&&(n=o.eq(a)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=(0,a.default)(),i=t.getTableElements();if(T.default.each(i,function(i,o){n=n.add(t._getRowElements((0,a.default)(o)).eq(e))}),n.length)return n},getCellElement:function(e,t){return(0,k.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,k.getPublicElement)(t).get)for(var i=0;i<t.length;i++)n.push(t[i]);else n=t;return n},_getVisibleColumnIndex:function(e,t,n){var i;return S.default.isString(n)?(i=this._columnsController.columnOption(n,"index"),this._columnsController.getVisibleIndex(i)):n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),n=this.getCellElements(e.rowIndex),n&&n.length>0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElementsCore:function(e){if(e=e||this._getTableElement()){var t=this.option("rowTemplate")&&e.find("> tbody."+N);return t&&t.length?t:e.find("> tbody > ."+N+", > ."+N)}return(0,a.default)()},_getRowElements:function(e){return this._getRowElementsCore(e)},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this,n=t.element(),i=t.option("rtlEnabled");n&&n.css(i?{paddingLeft:e}:{paddingRight:e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},,,,function(e,t,n){var i=n(136);n(232),n(474),n(489),n(117),n(498),n(186),n(499),n(500),n(20),n(163),n(135),n(70),n(91),n(140),n(23),n(179),n(293),e.exports=i},function(e,t,n){var i=n(187).fileSaver,o=n(439),a=n(225),r=n(452),s=n(1).isFunction,l=n(6).Deferred;t.export=function(e,t,n){if(!e)return(new l).resolve();var o=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,u={fileName:t.fileName,format:t.format,cancel:!1};return s(o)&&o(u),u.cancel?(new l).resolve():n(e,t).then(function(e){s(a)&&a(),s(r)&&(u.data=e,r(u)),u.cancel||i.saveAs(u.fileName,t.format,e,t.proxyUrl,t.forceProxy)})},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(182)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(454).getData},t.svg={creator:r.svgCreator,getData:r.getData}},function(e,t,n){var i=n(7).getWindow(),o=n(1),a=["auto","none","inherit","initial"],r=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:r(t,["padding"+n,"padding"+i]),border:r(t,["border"+n+"Width","border"+i+"Width"]),margin:r(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},u=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,u=e.getBoundingClientRect()[t],d=r?u:0;return d<=0?(d=parseFloat(o[t]||e.style[t])||0,d-=l(t,o,a)):d-=a.padding+a.border,n.paddings&&(d+=a.padding),n.borders&&(d+=a.border),n.margins&&(d+=a.margin),d},d=function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight},c=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*d(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(a.indexOf(e)>-1)return t?null:e;if(o.isString(e)&&(e=c(e,n)),o.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},_=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=u,t.getElementBoxParams=s,t.addOffsetToMaxHeight=p,t.addOffsetToMinHeight=f,t.getVerticalOffsets=g,t.getVisibleHeight=_,t.parseHeight=c},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(4),s=n(0).extend,l=n(14).inArray,u=n(3).each,d=n(1),c=n(7),h=n(27),p=n(30).fitIntoRange,f=n(85),g=n(8),_=n(70),m=d.isPlainObject,v=d.isFunction,y=n(11),w="dxResizable",x="dx-resizable",b="dx-resizable-resizing",C="dx-resizable-handle",k="dx-resizable-handle-top",I="dx-resizable-handle-bottom",S="dx-resizable-handle-left",D="dx-resizable-handle-right",T="dx-resizable-handle-corner",E=g.addNamespace(_.start,w),O=g.addNamespace(_.move,w),A=g.addNamespace(_.end,w),P={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},B=f.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass(x)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");u(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("<div>");n.addClass(C).addClass(C+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[E]=this._dragStartHandler.bind(this),t[O]=this._dragHandler.bind(this),t[A]=this._dragEndHandler.bind(this),o.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null},_toggleResizingClass:function(e){this.$element().toggleClass(b,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+C),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset,l=this._getAreaScrollOffset();e.maxLeftOffset=r.left-s.left-l.scrollX,e.maxRightOffset=s.left+t.width-r.left-o+l.scrollX,e.maxTopOffset=r.top-s.top-l.scrollY,e.maxBottomOffset=s.top+t.height-r.top-a+l.scrollY}},_getBorderWidth:function(e,t){if(d.isWindow(e.get(0)))return 0;var n=e.css(P[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),r=o.width+a.x*(n.left?-1:1),s=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(r),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),u=a.y-((l.height||s)-s),d=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?u:0),left:i.left+(n.left?d:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),y.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=r.pairToObject(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,u=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},d=function(e,t){return(1+.2*u(t))%1*e},c=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>d(t.h,e.x)&&(h+=t.h),l>d(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||c(e.x,t.h)?0:h,y:!n.top&&!n.bottom||c(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(T+"-top-left"),o=t.hasClass(T+"-top-right"),a=t.hasClass(T+"-bottom-left"),r=t.hasClass(T+"-bottom-right");return{top:t.hasClass(k)||n||o,left:t.hasClass(S)||n||a,bottom:t.hasClass(I)||a||r,right:t.hasClass(D)||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t=!v(e)&&!m(e),n={scrollY:0,scrollX:0};if(t){var o=i(e)[0];d.isWindow(o)&&(n.scrollX=o.pageXOffset,n.scrollY=o.pageYOffset)}return n},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},d.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",p(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",p(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":c.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":c.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+C).remove()}});a(w,B),e.exports=B},function(e,t,n){var i=n(8),o=n(158),a=n(90),r="dxswipestart",s="dxswipe",l="dxswipeend",u={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},d={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},c={horizontal:u,vertical:d},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return c[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(r,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(14).inArray,o=n(7),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var o=i(n,e);o!==-1&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(26),a=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(45),a=i(o),r=n(51),s=i(r),l=n(32),u=i(l),d=n(1),c=n(188),h=n(287);n(115);var p=1632,f={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},g=/a+/g,_=/E/g,m=/dE+/g,v=/L/g,y=/h/g,w=/\//g,x=/\[/g,b=/]/g,C=/./g,k=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=p&&t<p+10)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(w,"\\/").split("'").map(function(e,t){return t%2===0?e.replace(g,"AM/PM").replace(m,"d").replace(_,"d").replace(v,"M").replace(y,"H").replace(x,"\\[").replace(b,"\\]"):e?e.replace(C,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){var t=(u.default.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=(0,c.getFormat)(function(t){return u.default.format(t,e)});return n&&(n=this._convertDateFormatToOpenXml(n),n=this._getLanguageInfo(t)+n),n},_getLanguageInfo:function(e){var t=(0,h.getLanguageId)(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i=void 0,o=void 0;return o="currency"===e?s.default.getOpenXmlCurrencyFormat(n):f[e.toLowerCase()],o&&(i=a.default.format(o,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,i){if((0,d.isDefined)(e)){if("date"===n)return k._convertDateFormat(e);if((0,d.isString)(e)&&f[e.toLowerCase()])return k._convertNumberFormat(e,t,i)}}}},function(e,t,n){var i=n(112),o=n(3).each,a=n(0).extend,r=n(16),s=n(39),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},u="preset_",d=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return r.current().android||r.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return u+e},_createAndroidSlideAnimationConfig:function(e,t){
var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===r?l.from={left:a,opacity:e}:"backward"===r?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===r?l.to={left:-a,opacity:e}:"backward"===r?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o(this._registeredPresets,function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];o(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=d;var c=new d;t.presets=c},function(e,t,n){var i=n(234);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},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};n(117);var a=n(72),r=i(a),s=n(51),l=i(s),u=n(21),d=i(u);if(n(72),r.default&&r.default.formatNumber){var c={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{"native":"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###","long":{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},"short":{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"}},standard:"\xa4#,##0.00",accounting:"\xa4#,##0.00;(\xa4#,##0.00)","short":{standard:{"1000-count-one":"\xa40K","1000-count-other":"\xa40K","10000-count-one":"\xa400K","10000-count-other":"\xa400K","100000-count-one":"\xa4000K","100000-count-other":"\xa4000K","1000000-count-one":"\xa40M","1000000-count-other":"\xa40M","10000000-count-one":"\xa400M","10000000-count-other":"\xa400M","100000000-count-one":"\xa4000M","100000000-count-other":"\xa4000M","1000000000-count-one":"\xa40B","1000000000-count-other":"\xa40B","10000000000-count-one":"\xa400B","10000000000-count-other":"\xa400B","100000000000-count-one":"\xa4000B","100000000000-count-other":"\xa4000B","1000000000000-count-one":"\xa40T","1000000000000-count-other":"\xa40T","10000000000000-count-one":"\xa400T","10000000000000-count-other":"\xa400T","100000000000000-count-one":"\xa4000T","100000000000000-count-other":"\xa4000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}\u2013{1}"}}}}};"en"===r.default.locale().locale&&(r.default.load(c),r.default.locale("en"));var h={},p=function(e){var t=void 0,n=void 0;return n="object"===("undefined"==typeof e?"undefined":o(e))?r.default.locale().locale+":"+JSON.stringify(e):r.default.locale().locale+":"+e,t=h[n],t||(t=h[n]=r.default.numberFormatter(e)),t},f={engine:function(){return"globalize"},_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):p(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i=void 0;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){var t=void 0;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):p(t)(e))},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&d.default.log("W0011");var n=r.default.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};l.default.resetInjection(),l.default.inject(f)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(7),u=i(l),d=n(5),c=i(d),h=n(19),p=i(h),f=n(1),g=i(f),_=n(63),m=u.default.getWindow(),v=u.default.getNavigator(),y={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},w=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){return"data:"+w[e]+";base64,"+t},_linkDownloader:function(e,t){var n=s.default.createElement("a");return n.download=e,n.href=t,n.target="_blank",n},_formDownloader:function(e,t,n,i){var o={method:"post",action:e,enctype:"multipart/form-data"},r=(0,a.default)("<form>").css({display:"none"}).attr(o);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+i+'" />'),r.appendTo("body"),c.default.trigger(r,"submit"),c.default.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,w[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(w[n],["."+y[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_click:function(e){try{e.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(n){var t=s.default.getDocument().createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,m,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}},_saveBlobAs:function(e,t,n){var i=this;if(this._blobSaved=!1,g.default.isDefined(v.msSaveOrOpenBlob))v.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(g.default.isDefined(m.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var o=m.URL||m.webkitURL||m.mozURL||m.msURL||m.oURL;if(g.default.isDefined(o)){var a=o.createObjectURL(n),r=this._linkDownloader(e,a);setTimeout(function(){o.revokeObjectURL(a),i._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(r)}else _.logger.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(e,t,n,i,o){if(e+="."+y[t],g.default.isDefined(i)&&p.default.log("W0001","Export","proxyURL","19.2","This option is no longer required"),o)this._saveByProxy(i,e,t,n);else if(g.default.isFunction(m.Blob))this._saveBlobAs(e,t,n);else if(g.default.isDefined(i)&&!g.default.isDefined(v.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{g.default.isDefined(v.userAgent.match(/iPad/i))||p.default.log("E1034");var a=this._linkDownloader(e,this._getDataUri(t,n));this._click(a)}}}},function(e,t,n){var i="\u060c",o=" .,:;/\\<>()-[]"+i,a=1632,r=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=a&&t<a+10},s=function(e,t,n){var i=e[t],a=e[t-1],s=e[t+1];if(!n){if("."===i||" "===i&&"."===a)return!0;if("-"===i&&!r(s))return!0}return o.indexOf(i)<0&&n===r(i)},l=function(e,t){if(!r(e[t]))for(;t>0&&!r(e[t-1])&&("."===e[t-1]||o.indexOf(e[t-1])<0);)t--;return t},u=function(e,t,n,i){var o=0,a=[],u=function(t){return e[o]!==t[o]&&(void 0===i||r(e[o])===i)};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(u).length){o=l(e,o);do{if(i=r(e[o]),!a.length&&!i&&r(t[0][o]))break;a.push(o),n.unshift(o),o++}while(e[o]&&s(e,o,i));break}return 1!==a.length||"0"!==e[n[0]-1]&&"\u0660"!==e[n[0]-1]||n.unshift(n[0]-1),a},d=function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("\u0660"+n,n+n)),e},c=function(e,t,n,i){var o,a,s;if(!r(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(a=t[t.length-1]+1,s=a<i.length?i[a]:a;t.length<l;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=d(e,t,n,i)},h=function(e,t){return Array.isArray(e)?e.map(function(e){return(t(e)||"").toString()}):(t(e)||"").toString()},p=/[a-zA-Z]/g,f=function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(e.match(p)||"'"===e)?i[t]:-1});return e=e.split("").map(function(e,t){var n=e,i=o.indexOf(t)>=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")},g=function(e){var t=[],n=h(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),o=n,a={},r=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return r.forEach(function(r){var s=u(n,h(r.date,e),t,r.isDigit),l="M"!==r.pattern||a.d?r.pattern:"L";o=c(o,s,l,i),a[l]=s.length}),o=f(o,n,t,i),t.length?o:void 0};t.getFormat=g},function(e,t,n){function i(e,t){var n=r.createElement("div"),i=e.cloneNode(!0);return t&&l(i).css("backgroundColor",t),n.appendChild(i),n.innerHTML}function o(e){var t=!0;return e.indexOf("xmlns:xlink")===-1&&(e=e.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function a(e){return e.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}var r=n(12),s=n(7).getWindow(),l=n(2);t.getSvgMarkup=function(e,t){return o(a(i(e,t)))},t.getSvgElement=function(e){return r.isNode(e)?e:(new s.DOMParser).parseFromString(e,"image/svg+xml").childNodes[0]}},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(14).inArray,a=n(483),r=a.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):o(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==("undefined"==typeof e?"undefined":i(e)))return n.indexOf(e);for(var o=0,a=n.length;o<a;o++)if(this._equalKeys(e,n[o]))return o;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=function(){function e(t,n,i){o(this,e),this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=n,this.name=t,this.options=i||{}}return a(e,[{key:"_addPlaceMarker",value:function(e){this.$placeMarker=(0,s.default)("<div>").appendTo(e)}},{key:"_addToContainer",value:function(e){var t=this.$placeMarker,n=this.$container;t?t.replaceWith(e):e.appendTo(n)}},{key:"_attachEvents",value:function(){throw"Not implemented"}},{key:"_create",value:function(){throw"Not implemented"}},{key:"_isRendered",value:function(){return!!this.instance}},{key:"_isVisible",value:function(){var e=this.editor,t=this.options;return t.visible||!e.option("readOnly")}},{key:"_isDisabled",value:function(){throw"Not implemented"}},{key:"_shouldRender",value:function(){return this._isVisible()&&!this._isRendered()}},{key:"dispose",value:function(){var e=this.instance,t=this.$placeMarker;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var t=this._create(),n=t.instance,i=t.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(e)}},{key:"update",value:function(){return this._shouldRender()&&this.render(),!!this.instance}}]),e}();t.default=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),r=i(a),s=n(55),l=i(s),u=n(0),d=n(1),c=n(138),h=i(c),p=n(41),f=n(6),g=n(312),_=n(12),m=n(4),v="__dx_key__";t.default=l.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(t){var n=e._dataSource;n&&!n.isLoaded()&&(e._correctionIndex=0),e._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=e._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=this,n=(0,r.default)(),i=this.key();return this.itemElements().each(function(o,a){var s=(0,r.default)(a),l=t._getItemData(s);if(i?(0,p.keysEqual)(i,t.keyOf(l),e):t._isItemEquals(l,e))return n=s,!1}),n},_dataSourceChangedHandler:function(e,t){t&&t.changes?this._modifyByChanges(t.changes):this.callBase(e,t)},_isItemEquals:function(e,t){e&&e[v]&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_partialRefresh:function(){var e=this;if(this.option("repaintChangesOnly")){var t=function(t){return t&&void 0!==t[v]?t[v]:e.keyOf(t)},n=(0,g.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),t,this._isItemEquals);if(n&&this._itemsCache.length)return this._modifyByChanges(n,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=(0,u.extend)(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map(function(t,n){var i;return i={},o(i,v,e[n]),o(i,"data",t),i}))}catch(t){this._itemsCache=(0,u.extend)([],e)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,n,i){var o=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var a=t[h.default.indexByKey(e,t,n.key)];a&&h.default.update(e,t,n.key,n.data).done(function(){o._renderItem(t.indexOf(a),a,null,o._findItemElementByKey(n.key))})}},_insertByChange:function(e,t,n,i){var o=this;(0,f.when)(i||h.default.insert(e,t,n.data,n.index)).done(function(){o._beforeItemElementInserted(n),o._renderItem((0,d.isDefined)(n.index)?n.index:t.length,n.data),o._afterItemElementInserted(),o._correctionIndex++})},_updateSelectionAfterRemoveByChange:function(e){var t=this.option("selectedIndex");t>e?this.option("selectedIndex",t-1):t===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var t=this.option("selectedIndex");e.index<=t&&this.option("selectedIndex",t+1)},_afterItemElementInserted:m.noop,_removeByChange:function(e,t,n,i){var o=this,a=i?n.index:h.default.indexByKey(e,t,n.key),r=i?n.oldItem:t[a];if(r){var s=this._findItemElementByKey(n.key),l=this._extendActionArgs(s);this._waitDeletingPrepare(s).done(function(){i?(o._updateIndicesAfterIndex(a-1),o._afterItemElementDeleted(s,l),o._updateSelectionAfterRemoveByChange(a)):(o._deleteItemElementByIndex(a),o._afterItemElementDeleted(s,l))}),this._correctionIndex--}},_modifyByChanges:function(e,t){var n=this,i=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},a=this._dataSource,r=a&&a.paginate(),s=a&&a.group();(r||s)&&(e=e.filter(function(e){return"insert"!==e.type||void 0!==e.index})),e.forEach(function(e){return n["_"+e.type+"ByChange"](o,i,e,t)}),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,n){var i=e.children(this._itemSelector()).get(n);(0,_.insertElement)(e.get(0),t.get(0),i)},_optionChanged:function(e){switch(e.name){case"items":var t=this._partialRefresh(e.value);t||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}})},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o,a,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(2),l=n(7).getWindow(),u=n(5),d=n(45),c=n(9),h=n(27),p=n(311),f=n(25),g=n(33).dasherize,_=n(0).extend,m=n(161),v=n(11).getPublicElement,y=n(8),w=n(23),x=n(70),b=n(78),C=n(1),k=n(4).noop,I=n(73),S=n(4),D=n(100).EmptyTemplate,T=n(6),E=T.when,O=T.fromPromise,A="dxDraggable",P=y.addNamespace(x.start,A),B=y.addNamespace(x.move,A),M=y.addNamespace(x.end,A),F=y.addNamespace(x.enter,A),R=y.addNamespace(x.leave,A),V=y.addNamespace(w.down,A),H="clone",L=function(){function e(t,n){i(this,e),this._preventScroll=!0,this._component=n,"vertical"===t?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._limitProps={start:"left",end:"right"})}return r(e,[{key:"updateScrollable",value:function(e,t){var n=this;e.some(function(e){return n._trySetScrollable(e,t)})||(n._$scrollable=null,n._scrollSpeed=0)}},{key:"isScrolling",value:function(){return!!this._scrollSpeed}},{key:"isScrollable",value:function(e){var t=this;return("auto"===e.css(t._overFlowAttr)||e.hasClass("dx-scrollable-container"))&&e.prop(t._scrollSizeProp)>e[t._sizeAttr]()}},{key:"_trySetScrollable",value:function(e,t){var n,i=this,o=s(e),a=i._component.option("scrollSensitivity"),r=i.isScrollable(o);return r&&(n=i._calculateDistanceToBorders(o,t),a>n[i._limitProps.start]?i._preventScroll||(i._scrollSpeed=-i._calculateScrollSpeed(n[i._limitProps.start]),i._$scrollable=o):a>n[i._limitProps.end]?i._preventScroll||(i._scrollSpeed=i._calculateScrollSpeed(n[i._limitProps.end]),i._$scrollable=o):(r=!1,i._preventScroll=!1)),r}},{key:"_calculateDistanceToBorders",value:function(e,t){var n,i=e.get(0);return i?(n=i.getBoundingClientRect(),{left:t.x-n.left,top:t.y-n.top,right:n.right-t.x,bottom:n.bottom-t.y}):{}}},{key:"_calculateScrollSpeed",value:function(e){var t=this._component,n=t.option("scrollSensitivity"),i=t.option("scrollSpeed");return Math.ceil(Math.pow((n-e)/n,2)*i)}},{key:"scrollByStep",value:function(){var e,t=this;if(t._$scrollable&&t._scrollSpeed){if(t._$scrollable.hasClass("dx-scrollable-container")){var n=t._$scrollable.closest(".dx-scrollable"),i=n.data("dxScrollable")||n.data("dxScrollView");i&&(e=i.scrollOffset(),e[t._limitProps.start]+=t._scrollSpeed,i.scrollTo(e))}else e=t._$scrollable[t._scrollValue]()+t._scrollSpeed,t._$scrollable[t._scrollValue](e);var o=t._component._dragMoveArgs;o&&t._component._dragMoveHandler(o)}}},{key:"reset",value:function(){this._$scrollable=null,this._scrollSpeed=0,this._preventScroll=!0}},{key:"isOutsideScrollable",value:function(e,t){var n=this._component;if(!n._$scrollable||!e.closest(n._$scrollable).length)return!1;var i=n._$scrollable.get(0).getBoundingClientRect(),o=i[this._limitProps.start],a=i[this._sizeAttr],r="width"===this._sizeAttr?t.pageX:t.pageY;return r<o||r>o+a}}]),e}(),z=p.inherit({ctor:function(e){this.callBase(),this._strategy=e},_step:function(){var e=this._strategy._horizontalScrollHelper,t=this._strategy._verticalScrollHelper;e&&e.scrollByStep(),t&&t.scrollByStep()}}),$=m.inherit({reset:k,dragMove:k,dragEnter:k,dragLeave:k,dragEnd:k,_getDefaultOptions:function(){return _(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference:function(){this.callBase.apply(this,arguments),_(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new z(this),this._horizontalScrollHelper=new L("horizontal",this),this._verticalScrollHelper=new L("vertical",this)},_normalizeCursorOffset:function(e){return C.isObject(e)&&(e={h:e.x,v:e.y}),e=S.splitPair(e).map(function(e){return parseFloat(e)}),{left:e[0],top:1===e.length?e[0]:e[1]}},_getNormalizedCursorOffset:function(e,t){return C.isFunction(e)&&(e=e.call(this,t)),this._normalizeCursorOffset(e)},_calculateElementOffset:function(e){var t=void 0,n=void 0,i=e.event,o=s(e.itemElement),a=s(e.dragElement),r=this._dragElementIsCloned(),l=this.option("cursorOffset"),u={left:0,top:0},d=this._initialLocate=h.locate(a);return(r||e.initialOffset||l)&&(t=e.initialOffset||o.offset(),l&&(u=this._getNormalizedCursorOffset(l,e),isFinite(u.left)&&(t.left=i.pageX),isFinite(u.top)&&(t.top=i.pageY)),n=a.offset(),t.top-=n.top+(u.top||0)-d.top,t.left-=n.left+(u.left||0)-d.left),t},_initPosition:function(e){var t=s(e.dragElement),n=this._calculateElementOffset(e);n&&this._move(n,t),this._startPosition=h.locate(t)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(e){var t=this.NAME;return g(t)+(e?"-"+e:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var e=this.$element(),t=e.children(".dx-template-wrapper");return t.length?t:e},_attachEventHandlers:function(){var e=this;if(!this.option("disabled")){var t=this._$content(),n=this._getItemsSelector(),i=this.option("allowMoveByClick"),o={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:function(t,n){var i=e.option("group"),o=e._getSourceDraggable().option("group");return!e._verticalScrollHelper.isOutsideScrollable(t,n)&&!e._horizontalScrollHelper.isOutsideScrollable(t,n)&&(o&&o===i);
}};i&&(t=this._getArea(),u.on(t,V,o,this._pointerDownHandler.bind(this))),">"===n[0]&&(n=n.slice(1)),u.on(t,P,n,o,this._dragStartHandler.bind(this)),u.on(t,B,o,this._dragMoveHandler.bind(this)),u.on(t,M,o,this._dragEndHandler.bind(this)),u.on(t,F,o,this._dragEnterHandler.bind(this)),u.on(t,R,o,this._dragLeaveHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix(H))},_getDragTemplateArgs:function(e,t){return{container:v(t),model:{itemData:this.option("itemData"),itemElement:v(e)}}},_createDragElement:function(e){var t=e,n=this.option("clone"),i=this._getContainer(),o=this.option("dragTemplate");return o?(o=this._getTemplate(o),t=s("<div>").appendTo(i),o.render(this._getDragTemplateArgs(e,t))):n&&(t=s("<div>").appendTo(i),e.clone().css({width:e.css("width"),height:e.css("height")}).appendTo(t)),t.toggleClass(this._addWidgetPrefix(H),t.get(0)!==e.get(0))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){u.off(this._$content(),"."+A),u.off(this._getArea(),"."+A)},_move:function(e,t){h.move(t||this._$dragElement,e)},_getDraggableElement:function(e){var t=this._getSourceElement();if(t)return t;var n=this.option("allowMoveByClick");if(n)return this.$element();var i=s(e&&e.target),o=this._getItemsSelector();if(">"===o[0]){var a=this._$content().find(o);a.is(i)||(i=i.closest(a))}return i},_getSourceElement:function(){var e=this._getSourceDraggable();return e._$sourceElement},_pointerDownHandler:function(e){if(!y.needSkipEvent(e)){var t={},n=this.$element(),i=this.option("dragDirection");"horizontal"!==i&&"both"!==i||(t.left=e.pageX-n.offset().left+h.locate(n).left-n.width()/2),"vertical"!==i&&"both"!==i||(t.top=e.pageY-n.offset().top+h.locate(n).top-n.height()/2),this._move(t,n),this._getAction("onDragMove")(this._getEventArgs(e))}},_isValidElement:function(e,t){var n=this.option("handle"),i=s(e.originalEvent&&e.originalEvent.target);return!(n&&!i.closest(n).length)&&(!!t.length&&!t.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(e){var t=void 0,n=void 0,i=void 0,o=this._getDraggableElement(e);if(!this._$sourceElement){if(!this._isValidElement(e,o))return void(e.cancel=!0);var a=this._getDragStartArgs(e,o);if(this._getAction("onDragStart")(a),a.cancel)return void(e.cancel=!0);this.option("itemData",a.itemData),this._setSourceDraggable(),this._$sourceElement=o,n=o.offset(),t=this._$dragElement=this._createDragElement(o),this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),i="fixed"===t.css("position"),this._initPosition(_({},a,{dragElement:t.get(0),initialOffset:i&&n}));var r=this._getArea(),s=this._getAreaOffset(r),l=this._getBoundOffset(),u=r.outerWidth(),d=r.outerHeight(),c=t.width(),h=t.height(),p={left:t.offset().left-s.left,top:t.offset().top-s.top};r.length&&(e.maxLeftOffset=p.left-l.left,e.maxRightOffset=u-p.left-c-l.right,e.maxTopOffset=p.top-l.top,e.maxBottomOffset=d-p.top-h-l.bottom),this.option("autoScroll")&&this._startAnimator()}},_getAreaOffset:function(e){var t=e&&b.offset(e);return t?t:{left:0,top:0}},_toggleDraggingClass:function(e){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),e)},_toggleDragSourceClass:function(e,t){var n=t||this._$sourceElement;n&&n.toggleClass(this._addWidgetPrefix("source"),e)},_getBoundOffset:function(){var e=this.option("boundOffset");return C.isFunction(e)&&(e=e.call(this)),d.quadToObject(e)},_getArea:function(){var e=this.option("boundary");return C.isFunction(e)&&(e=e.call(this)),s(e)},_getContainer:function(){var e=this.option("container");return void 0===e&&(e=I.value()),s(e)},_dragMoveHandler:function(e){if(this._dragMoveArgs=e,!this._$dragElement)return void(e.cancel=!0);var t=e.offset,n=this._startPosition;this._move({left:n.left+t.x,top:n.top+t.y}),this._updateScrollable(e);var i=this._getEventArgs(e);if(this._getAction("onDragMove")(i),i.cancel!==!0){var o=this._getTargetDraggable();o.dragMove(e)}},_updateScrollable:function(e){var t=this,n=t._getSourceElement();if(t._$scrollable=null,n.parents().toArray().some(function(e){var n=s(e);if(t._horizontalScrollHelper.isScrollable(n)||t._verticalScrollHelper.isScrollable(n))return t._$scrollable=n,!0}),t.option("autoScroll")){var i=s(l),o={x:e.pageX-i.scrollLeft(),y:e.pageY-i.scrollTop()},a=t.getElementsFromPoint(o);t._verticalScrollHelper.updateScrollable(a,o),t._horizontalScrollHelper.updateScrollable(a,o)}},getElementsFromPoint:function(e){var t=this._$dragElement.get(0).ownerDocument;if(f.msie){var n=t.msElementsFromPoint(e.x,e.y);return n?Array.prototype.slice.call(n):[]}return t.elementsFromPoint(e.x,e.y)},_defaultActionArgs:function(){var e=this.callBase.apply(this,arguments),t=this.option("component");return t&&(e.component=t,e.element=t.element()),e},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable();return{event:e,itemData:t.option("itemData"),itemElement:v(t._$sourceElement),fromComponent:t.option("component")||t,toComponent:n.option("component")||n,fromData:t.option("data"),toData:n.option("data")}},_getDragStartArgs:function(e,t){var n=this._getEventArgs(e);return{event:n.event,itemData:n.itemData,itemElement:t,fromData:n.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(e){var t=this,n=this._getEventArgs(e),i=this._getEventArgs(e),o=this._getTargetDraggable(),a=!0;try{this._getAction("onDragEnd")(n)}finally{E(O(n.cancel)).done(function(e){e||(o!==t&&o._getAction("onDrop")(i),i.cancel||(o.dragEnd(n),a=!1))}).always(function(){a&&t._revertItemToInitialPosition(),t.reset(),o.reset(),t._stopAnimator(),t._horizontalScrollHelper.reset(),t._verticalScrollHelper.reset(),t._resetDragElement(),t._resetSourceElement(),t._resetTargetDraggable(),t._resetSourceDraggable()})}},_dragEnterHandler:function(e){this._setTargetDraggable();var t=this._getSourceDraggable();t.dragEnter(e)},_dragLeaveHandler:function(e){this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset();var t=this._getSourceDraggable();t.dragLeave(e)},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this.callBase.apply(this,arguments),this._defaultTemplates.content=new D)},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var e=this._getAnonymousTemplateName()===this.option("contentTemplate"),t=this._getTemplateByOption("contentTemplate");t&&s(t.render({container:this.element(),transclude:e}))},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":this["_"+t+"Action"]=this._createActionByOption(t);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":this._resetDragElement();break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;default:this.callBase(e)}},_getTargetDraggable:function(){return o||this},_getSourceDraggable:function(){return a||this},_setTargetDraggable:function(){var e=this.option("group"),t=this._getSourceDraggable();e&&e===t.option("group")&&(o=this)},_setSourceDraggable:function(){a=this},_resetSourceDraggable:function(){a=null},_resetTargetDraggable:function(){o=null},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()}});c(A,$),e.exports=$},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(5),h=i(c),p=n(9),f=i(p),g=n(0),_=n(4),m=n(7),v=i(m),y=n(33),w=i(y),x=n(1),b=n(88),C=i(b),k=n(3),I=n(25),S=i(I),D=n(134),T=i(D),E=n(55),O=i(E),A="dx-box",P=".dx-box",B="dx-box-item",M="dxBoxItemData",F={row:"minWidth",col:"minHeight"},R={row:"maxWidth",col:"maxHeight"},V=1,H={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},L={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},z={row:"row",col:"column"},$=function(e,t,n){if(n=C.default.normalizeStyleProp(t,n),e.style[C.default.styleProp(t)]=n,!v.default.hasWindow()){if(""===n||!(0,x.isDefined)(n))return;var i=w.default.dasherize(t),o=i+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(o)<0&&(e.attributes.style.value+=" "+o):e.setAttribute("style",o)}},N="dxBox",W="dxupdate."+N,j="dx-box-fallback-item",q={row:"nowrap",col:"normal"},G={row:"width",col:"height"},K={row:"height",col:"width"},U={row:"marginLeft",col:"marginTop"},Y={row:"marginRight",col:"marginBottom"},X={row:"marginTop",col:"marginLeft"},Z={row:"marginBottom",col:"marginRight"},Q={marginLeft:"marginRight",marginRight:"marginLeft"},J=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_renderVisible",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderVisible",this).call(this,e),(0,x.isDefined)(n)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:n})}}]),t}(T.default),ee=function(){function e(t,n){o(this,e),this._$element=t,this._option=n,this.initSize=_.noop,this.update=_.noop}return s(e,[{key:"renderBox",value:function(){this._$element.css({display:C.default.stylePropPrefix("flexDirection")+"flex"}),$(this._$element.get(0),"flexDirection",z[this._option("direction")])}},{key:"renderAlign",value:function(){this._$element.css({justifyContent:this._normalizedAlign()})}},{key:"_normalizedAlign",value:function(){var e=this._option("align");return e in H?H[e]:e}},{key:"renderCrossAlign",value:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})}},{key:"_normalizedCrossAlign",value:function(){var e=this._option("crossAlign");return e in L?L[e]:e}},{key:"renderItems",value:function(e){var t=C.default.stylePropPrefix("flexDirection"),n=this._option("direction");(0,k.each)(e,function(){var e=(0,d.default)(this),i=e.data(M);e.css({display:t+"flex"}).css(R[n],i.maxSize||"none").css(F[n],i.minSize||"0"),$(e.get(0),"flexBasis",i.baseSize||0),$(e.get(0),"flexGrow",i.ratio),$(e.get(0),"flexShrink",(0,x.isDefined)(i.shrink)?i.shrink:V),e.children().each(function(e,t){(0,d.default)(t).css({width:"auto",height:"auto",display:C.default.stylePropPrefix("flexDirection")+"flex",flexBasis:0}),$(t,"flexGrow",1),$(t,"flexDirection",(0,d.default)(t)[0].style.flexDirection||"column")})})}}]),e}(),te=function(){function e(t,n){o(this,e),this._$element=t,this._option=n}return s(e,[{key:"renderBox",value:function(){this._$element.css({fontSize:0,whiteSpace:q[this._option("direction")],verticalAlign:"top"}),h.default.off(this._$element,W),h.default.on(this._$element,W,this.update.bind(this))}},{key:"renderAlign",value:function(){var e=this._$items;if(e){var t=this._option("align"),n=this.totalItemSize,i=this._option("direction"),o=this._$element[G[i]](),a=o-n,r=0;switch(this._setItemsMargins(e,i,0),t){case"start":break;case"end":r=a,e.first().css(this._chooseMarginSide(U[i]),r);break;case"center":r=.5*a,e.first().css(this._chooseMarginSide(U[i]),r),e.last().css(this._chooseMarginSide(Y[i]),r);break;case"space-between":r=.5*a/(e.length-1),this._setItemsMargins(e,i,r),e.first().css(this._chooseMarginSide(U[i]),0),e.last().css(this._chooseMarginSide(Y[i]),0);break;case"space-around":r=.5*a/e.length,this._setItemsMargins(e,i,r)}}}},{key:"_setItemsMargins",value:function(e,t,n){e.css(this._chooseMarginSide(U[t]),n).css(this._chooseMarginSide(Y[t]),n)}},{key:"renderCrossAlign",value:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),i=this._$element[K[n]](),o=this;switch(t){case"start":break;case"end":(0,k.each)(e,function(){var e=(0,d.default)(this),t=e[K[n]](),a=i-t;e.css(o._chooseMarginSide(X[n]),a)});break;case"center":(0,k.each)(e,function(){var e=(0,d.default)(this),t=e[K[n]](),a=.5*(i-t);e.css(o._chooseMarginSide(X[n]),a).css(o._chooseMarginSide(Z[n]),a)});break;case"stretch":e.css(o._chooseMarginSide(X[n]),0).css(o._chooseMarginSide(Z[n]),0).css(K[n],"100%")}}}},{key:"_chooseMarginSide",value:function(e){return this._option("rtlEnabled")?Q[e]||e:e}},{key:"renderItems",value:function(e){var t=this;this._$items=e;var n=this._option("direction"),i=0,o=0,a=0;(0,k.each)(e,function(e,r){var s=(0,d.default)(r);s.css({display:"inline-block",verticalAlign:"top"}),s[G[n]]("auto"),s.removeClass(j);var l=s.data(M),u=l.ratio||0,c=t._baseSize(s),h=(0,x.isDefined)(l.shrink)?l.shrink:V;i+=u,o+=h*c,a+=c});var r=this._boxSize()-a,s=function(e){var n=e.data(M),a=t._baseSize(e),s=r>=0?n.ratio||0:((0,x.isDefined)(n.shrink)?n.shrink:V)*a,l=r>=0?i:o,u=l?Math.round(r*s/l):0;return a+u},l=0;(0,k.each)(e,function(e,t){var i=(0,d.default)(t),o=(0,d.default)(t).data(M),a=s(i);l+=a,i.css(R[n],o.maxSize||"none").css(F[n],o.minSize||"0").css(G[n],a),i.addClass(j)}),this.totalItemSize=l}},{key:"_baseSize",value:function(e){var t=(0,d.default)(e).data(M);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)}},{key:"_contentSize",value:function(e){return(0,d.default)(e)[G[this._option("direction")]]()}},{key:"_parseSize",value:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e}},{key:"_boxSize",value:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)}},{key:"_totalBaseSize",value:function(){var e=this,t=0;return(0,k.each)(this._$items,function(n,i){t+=e._baseSize(i)}),t}},{key:"initSize",value:function(){this._boxSize(this._$element[G[this._option("direction")]]())}},{key:"update",value:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(P).each(function(){e===(0,d.default)(this).parent().closest(P).get(0)&&h.default.triggerHandler(this,W)})}}}]),e}(),ne=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,g.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return S.default.msie},options:{_layoutStrategy:"fallback"}}])}},{key:"_itemClass",value:function(){return B}},{key:"_itemDataKey",value:function(){return M}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this.$element().addClass(A+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()}},{key:"_initLayout",value:function(){this._layout="fallback"===this.option("_layoutStrategy")?new te(this.$element(),this.option.bind(this)):new ee(this.$element(),this.option.bind(this))}},{key:"_initBoxQueue",value:function(){this._queue=this.option("_queue")||[]}},{key:"_queueIsNotEmpty",value:function(){return!this.option("_queue")&&!!this._queue.length}},{key:"_pushItemToQueue",value:function(e,t){this._queue.push({$item:e,config:t})}},{key:"_shiftItemFromQueue",value:function(){return this._queue.shift()}},{key:"_initMarkup",value:function(){this.$element().addClass(A),this._layout.renderBox(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._renderAlign(),this._renderActions()}},{key:"_renderActions",value:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}},{key:"_renderAlign",value:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()}},{key:"_renderItems",value:function(e){var n=this;for(this._layout.initSize(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItems",this).call(this,e);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,t,(0,g.extend)({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},i.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){n._isUpdated||n._layout.update(),n._isUpdated=!1,n._updateTimer=null})}},{key:"_renderItemContent",value:function(e){var n=e.itemData&&e.itemData.node;return n?this._renderItemContentByNode(e,n):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItemContent",this).call(this,e)}},{key:"_postprocessRenderItem",value:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)}},{key:"_createItemByTemplate",value:function(e,n){return n.itemData.box?e.source?e.source():(0,d.default)():l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createItemByTemplate",this).call(this,e,n)}},{key:"_visibilityChanged",value:function(e){e&&this._dimensionChanged()}},{key:"_dimensionChanged",value:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())}},{key:"_dispose",value:function(){clearTimeout(this._updateTimer),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_dispose",this).apply(this,arguments)}},{key:"_itemOptionChanged",value:function(e,n,i,o){"visible"===n&&this._onItemStateChanged({name:n,state:i,oldState:o!==!1}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemOptionChanged",this).call(this,e,n,i)}},{key:"_optionChanged",value:function(e){switch(e.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_itemOptions",value:function(){var e=this,n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemOptions",this).call(this);return n.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},n}},{key:"repaint",value:function(){this._dimensionChanged()}}]),t}(O.default);ne.ItemClass=J,(0,f.default)("dxBox",ne),e.exports=ne},function(e,t,n){e.exports=n(551)},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(15),s=n(32),l=r.abstract,u=r.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||i("<div>"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:a,customizeButtons:a,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){var n=s.parse(e,t);return n?n:s.parse(e)},renderInputMinMax:a,renderOpenedState:function(){this._updateValue()},popupConfig:l,renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.off(t,"mousedown"),o.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a,getLastPopupElement:a,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a,popupHiddenHandler:a,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:a,getDefaultDate:function(){return new Date},textChangedHandler:a,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(39),u=i(l),d=n(6),c=n(33),h={moveTo:function(e){var t=e.$element,n=e.position,i=e.direction||"left",o={},a=void 0;"right"===i&&(o.transform="translate("+n+"px, 0px)",a="custom"),"left"===i&&(o.left=n,a="slide"),"top"!==i&&"bottom"!==i||(o.top=n,a="slide"),u.default.animate(t,{type:a,to:o,duration:e.duration,complete:e.complete})},margin:function e(t){var n=t.$element,e=t.margin,i=t.direction||"left",o={};o["margin"+(0,c.camelize)(i,!0)]=e,u.default.animate(n,{to:o,duration:t.duration,complete:t.complete})},fade:function(e,t,n,i){u.default.animate(e,{type:"fade",to:t.to,from:t.from,duration:n,complete:i})},size:function e(t){var n=t.$element,e=t.size,i=t.direction||"left",o=t.marginTop||0,a=t.duration,r={};"right"===i||"left"===i?r.width=e:r.height=e,"bottom"===i&&(r.marginTop=o),u.default.animate(n,{to:r,duration:a,complete:t.complete})},complete:function(e){u.default.stop(e,!0)}},p=function(){function e(t){o(this,e),this._drawer=t}return a(e,[{key:"getDrawerInstance",value:function(){return this._drawer}},{key:"renderPanel",value:function(e,t){e&&e.render({container:this.getDrawerInstance().content(),onRendered:function(){t.resolve()}})}},{key:"renderPosition",value:function(e,t){var n=this.getDrawerInstance(),i=n.option("revealMode");this.prepareAnimationDeferreds(t);var o=this.getPositionRenderingConfig(e);this.useDefaultAnimation()?this.defaultPositionRendering(o,e,t):("slide"===i&&this.slidePositionRendering(o,e,t),"expand"===i&&this.expandPositionRendering(o,e,t))}},{key:"prepareAnimationDeferreds",value:function(e){var t=this.getDrawerInstance();this._contentAnimation=new d.Deferred,this._panelAnimation=new d.Deferred,this._shaderAnimation=new d.Deferred,t._animations.push(this._contentAnimation,this._panelAnimation,this._shaderAnimation),e?d.when.apply(s.default,t._animations).done(function(){t._animationCompleteHandler()}):t.resizeContent()}},{key:"getPositionRenderingConfig",value:function(e){var t=this.getDrawerInstance();return{direction:t.getDrawerPosition(),$panel:(0,s.default)(t.content()),$content:(0,s.default)(t.viewContent()),defaultAnimationConfig:this._defaultAnimationConfig(),size:this._getPanelSize(e)}}},{key:"useDefaultAnimation",value:function(){return!1}},{key:"_elementsAnimationCompleteHandler",value:function(){this._contentAnimation.resolve(),this._panelAnimation.resolve()}},{key:"_defaultAnimationConfig",value:function(){var e=this;return{complete:function(){e._elementsAnimationCompleteHandler()}}}},{key:"_getPanelOffset",value:function(e){var t=this.getDrawerInstance(),n=t.isHorizontalDirection()?t.getRealPanelWidth():t.getRealPanelHeight();return e?-(n-t.getMaxSize()):-(n-t.getMinSize())}},{key:"_getPanelSize",value:function(e){return e?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}},{key:"renderShaderVisibility",value:function(e,t,n){var i=this,o=this._getFadeConfig(e),a=this.getDrawerInstance();t?h.fade((0,s.default)(a._$shader),o,n,function(){i._drawer._toggleShaderVisibility(e),i._shaderAnimation.resolve()}):(a._toggleShaderVisibility(e),a._$shader.css("opacity",o.to))}},{key:"_getFadeConfig",value:function(e){return e?{to:1,from:0}:{to:0,from:1}}},{key:"getPanelContent",value:function(){return(0,s.default)(this.getDrawerInstance().content())}},{key:"getWidth",value:function(){return this.getDrawerInstance().$element().get(0).getBoundingClientRect().width}},{key:"setPanelSize",value:function(e){var t=this.getDrawerInstance(),n=this._getPanelSize(t.option("opened"));t.isHorizontalDirection()?(0,s.default)(t.content()).width(e?t.getRealPanelWidth():n):(0,s.default)(t.content()).height(e?t.getRealPanelHeight():n)}},{key:"needOrderContent",value:function(){return!1}}]),e}();e.exports=p,e.exports.animation=h},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(16),r=n(9),s=n(0).extend,l=n(17),u=n(35),d=n(142),c=n(83),h=n(103),p=n(31),f=n(139).ChildDefaultTemplate,g="dx-dropdownmenu",_="dx-dropdownmenu-popup",m="dx-dropdownmenu-popup-wrapper",v="dx-dropdownmenu-list",y="dx-dropdownmenu-button",w={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},x={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},b=l.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),s(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:h,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1,container:void 0,popupAutoResizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return p.isMaterial()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===a.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass(g),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new f("content")},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass(y),t=this._buttonOptions();this._button=this._createComponent(e,u,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=i("<div>").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,d,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(m).toggleClass(_,e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass(v),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{
role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(x[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(w[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(c);r("dxDropDownMenu",b),e.exports=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(38),a=i(o),r=n(26),s=i(r),l=n(19),u=i(l),d=n(85),c=i(d),h=n(0),p=n(3),f=n(87),g=i(f),_=n(569),m=i(_),v=n(9),y=i(v),w=n(6),x=n(34),b=i(x),C="dx-validator",k="valid",I="invalid",S="pending",D=c.default.inherit({_initOptions:function(e){this.callBase.apply(this,arguments),this.option(g.default.initValidationOptions(e))},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=(0,s.default)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){g.default.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(g.default.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,g.default.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),(0,h.extend)(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=this.$element()[0],n=a.default.data(t,"dx-validation-target"),i=this.option("adapter");if(!i){if(n)return i=new m.default(n,this),i.validationRequestsCallbacks.add(function(t){e._validationInfo.skipValidation||e.validate(t)}),void this.option("adapter",i);throw u.default.Error("E0120")}var o=i.validationRequestsCallbacks;o&&(Array.isArray(o)?o.push(function(t){e.validate(t)}):(u.default.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),o.add(function(t){e.validate(t)})))},_initMarkup:function(){this.$element().addClass(C),this.callBase()},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(g.default.synchronizeValidationOptions(e,this.option()));break;default:this.callBase(e)}},_getValidationRules:function(){var e=this;return this._validationRules||(this._validationRules=(0,p.map)(this.option("validationRules"),function(t,n){return(0,h.extend)({},t,{validator:e,index:n})})),this._validationRules},_findGroup:function(){var e=this.$element();return this.option("validationGroup")||g.default.findGroup(e,this._modelByElement(e))},_resetValidationRules:function(){delete this._validationRules},validate:function(e){var t=this,n=this.option("adapter"),i=this.option("name"),o=n.bypass&&n.bypass(),a=e&&void 0!==e.value?e.value:n.getValue(),r=n.getCurrentValidationError&&n.getCurrentValidationError(),s=this._getValidationRules(),l=this._validationInfo&&this._validationInfo.result;if(l&&l.status===S&&l.value===a)return(0,h.extend)({},l);var u=void 0;return o?u={isValid:!0,status:k}:r&&r.editorSpecific?(r.validator=this,u={isValid:!1,status:I,brokenRule:r,brokenRules:[r]}):u=g.default.validate(a,s,i),u.id=(new b.default).toString(),this._applyValidationResult(u,n),u.complete&&u.complete.then(function(e){e.id===t._validationInfo.result.id&&t._applyValidationResult(e,n)}),(0,h.extend)({},this._validationInfo.result)},reset:function(){var e=this.option("adapter"),t={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:k,complete:null};this._validationInfo.skipValidation=!0,e.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(t,e)},_updateValidationResult:function(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var n=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,h.extend)({},e,{complete:n})}},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated");return e.validator=this,this._updateValidationResult(e),t.applyValidationResults&&t.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===S?(this._validationInfo.deferred||(this._validationInfo.deferred=new w.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this.fireEvent("validating",[this._validationInfo.result])):void(this._validationInfo.result.status!==S&&(n(e),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null)))},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()}});(0,y.default)("dxValidator",D),e.exports=D},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(16),u=i(l),d=n(9),c=i(d),h=n(35),p=i(h),f=n(74),g=i(f),_=n(8),m=n(0),v=n(1),y=n(23),w=i(y),x=n(3),b=n(322),C=i(b),k=n(31),I=i(k),S=n(91),D=i(S),T=n(94),E=i(T),O=n(192),A=i(O),P=n(56),B=n(66),M="dx-tabs",F="dx-tabs-wrapper",R="dx-tabs-expanded",V="dx-tabs-stretched",H="dx-tabs-scrollable",L="dx-tabs-nav-buttons",z="dx-overflow-hidden",$="dx-tab",N="dx-tab-selected",W="dx-tabs-nav-button",j="dx-tabs-nav-button-left",q="dx-tabs-nav-button-right",G="dx-tab-text",K="dxTabData",U="chevronnext",Y="chevronprev",X=100,Z=5,Q=300,J=30,ee=A.default.inherit({_activeStateUnit:"."+$,_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=I.default.current();return this.callBase().concat([{device:function(){return"desktop"!==u.default.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===u.default.real().deviceType&&!u.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return I.default.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(M),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=X},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new B.BindableTemplate(function(e,t){(0,v.isPlainObject)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=(0,P.getImageContainer)(t.icon);e.wrapInner((0,a.default)("<span>").addClass(G)),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return $},_selectedItemClass:function(){return N},_itemDataKey:function(){return K},_initMarkup:function(){this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(z)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){var e=[V,R,z];this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(V),this.$element().removeClass(L).addClass(R))},_isItemsWidthExceeded:function(){var e=this._getSummaryItemsWidth(this._getVisibleItems(),!0);return e-1>this.$element().width()},_needStretchItems:function(){var e=this._getVisibleItems(),t=this.$element().width(),n=[];(0,x.each)(e,function(e,t){n.push((0,a.default)(t).outerWidth(!0))});var i=Math.max.apply(null,n);return i>t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=g.default.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,a.default)("<div>").addClass(F),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner((0,a.default)("<div>").addClass(H)).children();this._scrollable=this._createComponent(e,E.default,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(L,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-J,e?U:Y);var t=this._leftButton.$element();t.addClass(j),this.$element().prepend(t),this._rightButton=this._createNavButton(J,e?Y:U);var n=this._rightButton.$element();n.addClass(q),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,i=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,Z)},Z)}),o=(0,_.addNamespace)(D.default.name,"dxNavButton"),r=(0,_.addNamespace)(w.default.up,"dxNavButton"),l=(0,_.addNamespace)(w.default.out,"dxNavButton"),u=this._createComponent((0,a.default)("<div>").addClass(W),p.default,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),d=u.$element();return s.default.on(d,o,{timeout:Q},function(e){i({event:e})}.bind(this)),s.default.on(d,r,function(){n._clearInterval()}),s.default.on(d,l,function(){n._clearInterval()}),u},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_afterItemElementInserted:function(){this.callBase(),this._renderScrolling()},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._renderScrolling()}});ee.ItemClass=C.default,(0,c.default)("dxTabs",ee),e.exports=ee,e.exports.getTabsExpandedClass=R},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(344),a=i(o),r=a.default;e.exports={extend:function(e){r=r.inherit(e)},create:function(e){return new r(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.format||Ae[e.dataType];return fe.default.format(t,n)}function a(e){return e&&e.length>1&&"!"===e[0]&&!T(e)}function r(e){return a(e)?e[1]:e}function s(e,t){return a(e)?e[1]=t:e=t,e}function l(e,t){var n=function(e){return e.indexOf("!")!==-1},i=function(e){var t=e.slice(0);e.length=0,e.push("!",t)},o=function(e){var t=r(e);e.length=0,[].push.apply(e,t)};n(t)?a(e)||i(e):a(e)&&o(e)}function u(e,t){l(e,t);var n,i=r(e),o=function(e){return e.indexOf("!")===-1?e:e.substring(1)},a=function(e,t){for(n=0;n<e.length;n++)Array.isArray(e[n])||(e[n]=t)};return t=o(t),a(i,t),e}function d(e,t){var n=h(e);return t.filter(function(e){return e.value===n})[0]}function c(e){if(T(e))return De;for(var t="",n=0;n<e.length;n++){var i=e[n];if(!Array.isArray(i)){if(t&&t!==i)throw new re.errors.Error("E4019");"!"!==i&&(t=i)}}return t}function h(e){var t=r(e),n=c(t);return n||(n=De),t!==e&&(n="!"+n),n}function p(e){return e.lookup&&Pe||Oe[e.dataType||Ie]}function f(e){return Array.isArray(e)&&e.length}function g(e){var t=f(e.filterOperations)?e.filterOperations:p(e);return(0,ge.extend)([],t)}function _(e,t){var n=ke.default.getNameByFilterOperation(e);return t&&t[n]?t[n]:n}function m(e,t){for(var n=0;n<t.length;n++)if(t[n].value===e)return t[n];throw new de.default.Error("E1048",e)}function v(e,t){var n=e.filter(function(e){return e.name===t});return n.length?n[0]:null}function y(e,t,n){var i=g(e);return n.forEach(function(t){if(!e.filterOperations&&i.indexOf(t.name)===-1){var n=t&&t.dataTypes;n&&n.indexOf(e.dataType||Ie)>=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||Se,text:i.caption||me.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:ke.default.getIconByFilterOperation(e)||Se,text:_(e,t),value:e}})}function w(e){return e.defaultFilterOperation||g(e)[0]}function x(e,t){var n=[e.dataField,"",""],i=w(e);return Y(n,i,t),n}function b(e,t){var n=r(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function C(e){return e.indexOf("not")!==-1?["!",[e.substring(3).toLowerCase()]]:[e]}function k(e){var t=r(e);if(T(t))return!1;var n=t.some(function(e){return T(e)});return!n}function I(e,t){var n=r(t),i=h(n);return 1===n.length?n.unshift(e):n.push(e,i),t}function S(e,t){for(var n=0;n<t.length;n++){if(t[n].name===e)return t[n];if(t[n].dataField.toLowerCase()===e.toLowerCase())return t[n]}var i=q(t,!0).filter(function(t){return t.dataField.toLowerCase()===e.toLowerCase()});if(i.length>0)return i[0];throw new de.default.Error("E1047",e)}function D(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function T(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function E(e,t){for(var n=c(e).toLowerCase()||De,i=[],o=0;o<e.length;o++)D(e[o])?(i.push(P(e[o],t)),i.push(n)):T(e[o])&&(i.push(A(e[o],t)),i.push(n));return 0===i.length&&i.push(n),i}function O(e,t){var n=v(t,e[1]);return n&&n.name===e[1]}function A(e,t){return O(e,t)?e:(e.length<3&&(e[2]=e[1],e[1]=Te),e)}function P(e,t){return e?(e=(0,ge.extend)(!0,[],e),T(e)?[A(e,t),De]:a(e)?["!",T(e[1])?[A(e[1],t),De]:a(e[1])?[P(e[1],t),De]:E(e[1],t)]:E(e,t)):[De]}function B(e){return e.reduce(function(e,t){if((0,se.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&Be.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=he.default.defaultCalculateFilterExpression,(0,se.isDefined)(n.dataType)||(n.dataType=Ie),e.push(n)}return e},[])}function M(e,t,n,i){var o=S(e[0],t),a=A(e,n),r=n.length&&v(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,i]):o.createFilterExpression?o.createFilterExpression.apply(o,[a[2],a[1],i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function F(e,t,n,i){if(!(0,se.isDefined)(e))return null;if(a(e)){var o=F(e[1],t,n,i);return["!",o]}var s=r(e);if(T(s))return M(s,t,n,i)||null;for(var l=void 0,u=h(s),d=[],c=0;c<s.length;c++)D(s[c])?(l=F(s[c],t,n,i),l&&(c&&d.push(u),d.push(l))):T(s[c])&&(l=M(s[c],t,n,i),l&&(c&&d.push(u),d.push(l)));return d.length?d:null}function R(e){var t,n=r(e);if(0===n.length)return null;var i=[];for(t=0;t<n.length;t++)if(D(n[t])){var o=R(n[t]);o?n[t]=o:i.push(n[t])}else T(n[t])&&(Z(n[t])||i.push(n[t]));for(t=0;t<i.length;t++)b(n,i[t]);return 1===n.length?null:(n.splice(n.length-1,1),1===n.length&&(e=s(e,n[0])),0===e.length?null:e)}function V(e,t,n){if(""===t)return void n("");var i=e.lookup;if(i.items)n(i.calculateCellValue(t)||"");else{var o=new be.DataSource(i.dataSource);o.loadSingle(i.valueExpr,t).done(function(e){n(e?i.displayExpr?(0,le.compileGetter)(i.displayExpr)(e):e:"")}).fail(function(){n("")})}}function H(e,t,n,i){var a;return a=t===!0?e.trueText||xe.default.format("dxDataGrid-trueText"):t===!1?e.falseText||xe.default.format("dxDataGrid-falseText"):o(e,t),e.customizeText&&(a=e.customizeText.call(e,{value:t,valueText:a,target:i})),n&&n.customizeText&&(a=n.customizeText.call(n,{value:t,valueText:a,field:e,target:i})),a}function L(e,t,n,i){return t.map(function(t){return H(e,t,n,i)})}function z(e){return""===e||null===e}function $(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(z(t))return"";if(Array.isArray(t)){var o=new ae.Deferred;return ae.when.apply(this,L(e,t,n,i)).done(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some(function(e){return!z(e)})?t.map(function(e){return z(e)?"?":e}):"";o.resolve(i)}),o}return H(e,t,n,i)}function N(e,t){return e.some(function(e){return e.dataField===t})}function W(e,t,n){var i=n.dataField;G(i)&&(n.parentId=K(i),N(t,n.parentId)||N(e,n.parentId)||W(e,t,{id:n.parentId,dataType:"object",dataField:n.parentId,caption:j(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(n)}function j(e,t){var n="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(G(e))return e.split(".").forEach(function(e,t,i){n+=me.default.captionize(e),t!==i.length-1&&(n+=".")}),n;return me.default.captionize(e)}function q(e,t){for(var n=[],i=0;i<e.length;i++){var o=(0,ge.extend)(!0,{caption:j(e[i].dataField,t)},e[i]);o.id=o.name||o.dataField,t?W(e,n,o):n.push(o)}return n}function G(e){return e.lastIndexOf(".")!==-1}function K(e){return e.substring(0,e.lastIndexOf("."))}function U(e,t){if(G(e.dataField))for(var n=K(e.dataField),i=0;i<t.length;i++)if(t[i].dataField===n)return U(t[i],t)+"."+e.caption;return e.caption}function Y(e,t,n){var i=v(n,t);return i?(i.hasValue===!1?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]=Te,e[2]=null):"isnotblank"===t?(e[1]=Ee,e[2]=null):(i=v(n,e[1]),(i||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function X(e){var t;return t=null===e[2]?e[1]===Te?"isblank":"isnotblank":e[1]}function Z(e){return""!==e[2]}function Q(e,t){var n=(0,ge.extend)(!0,[],e),i=-1;return n.some(function(e,t){if("between"===e.name)return i=t,!0}),i!==-1?n[i]=(0,ge.extend)(ye.default.getConfig(t),n[i]):n.unshift(ye.default.getConfig(t)),n}function J(e,t){return e[0]===t}function ee(e,t){if(!e||0===e.length)return null;if(T(e)){var n=J(e,t);return n?null:e}return te(e,[t],!1)}function te(e,t,n){var i=[];return e.forEach(function(e){T(e)?J(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||D(e))&&i.push(e)}),0===i.length?null:(n&&(i.push(De),i.push(t)),1===i.length?i[0]:i)}function ne(e,t){if(null===e||0===e.length)return t;if(T(e))return J(e,t[0])?t:[e,De,t];var n=h(e);return n!==De?[t,"and",e]:te(e,t,!0)}function ie(e,t){if(null===e||0===e.length)return[];if(T(e))return J(e,t)?[e]:[];var n=h(e);if(n!==De)return[];var i=e.filter(function(e){return T(e)&&J(e,t)});return i}function oe(e,t){return null!==e&&0!==e.length&&(T(e)?e[0]===t:e.some(function(e){return(T(e)||D(e))&&oe(e,t)}))}var ae=n(6),re=n(37),se=n(1),le=n(18),ue=n(19),de=i(ue),ce=n(170),he=i(ce),pe=n(64),fe=i(pe),ge=n(0),_e=n(33),me=i(_e),ve=n(645),ye=i(ve),we=n(10),xe=i(we),be=n(46),Ce=n(646),ke=i(Ce),Ie="string",Se="icon-none",De="and",Te="=",Ee="<>",Oe={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Ae={date:"shortDate",datetime:"shortDateShortTime"},Pe=["=","<>","isblank","isnotblank"],Be=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"];t.isValidCondition=Z,t.isEmptyGroup=k,t.getOperationFromAvailable=m,t.updateConditionByOperation=Y,t.getCaptionWithParents=U,t.getItems=q,t.setGroupValue=u,t.getGroupMenuItem=d,t.getGroupValue=h,t.getAvailableOperations=y,t.removeItem=b,t.createCondition=x,t.createEmptyGroup=C,t.addItem=I,t.getField=S,t.isGroup=D,t.isCondition=T,t.getNormalizedFields=B,t.getNormalizedFilter=R,t.getGroupCriteria=r,t.convertToInnerStructure=P,t.getDefaultOperation=w,t.getCurrentValueText=$,t.getCurrentLookupValueText=V,t.getFilterOperations=g,t.getCaptionByOperation=_,t.getOperationValue=X,t.getFilterExpression=F,t.getCustomOperation=v,t.getMergedOperations=Q,t.syncFilters=ne,t.getMatchedConditions=ie,t.filterHasField=oe,t.removeFieldConditionsFromFilter=ee},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(393),s=i(r),l=n(9),u=i(l),d=n(22),c=i(d),h=n(0),p=n(7),f=i(p),g=c.default.dateToMilliseconds,_="dx-scheduler-date-time-indicator",m="dx-scheduler-time-panel-current-time-cell",v="dx-scheduler-header-panel-current-time-cell",y=s.default.inherit({_getToday:function(){var e=this.option("indicatorTime")||new Date;return this.invoke("convertDateByTimezone",e)||e},_needRenderDateTimeIndicator:function(){var e=this._getToday(),t=c.default.trimTime(this.getEndViewDate());return c.default.dateInRange(e,this._firstViewDate,new Date(t.getTime()+g("day")))},needRenderDateTimeIndication:function(){if(!f.default.hasWindow())return!1;var e=this._getToday();return e>=c.default.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o<i;o++){var a=this._createIndicator(n);a.width(this.getCellWidth()),this._groupedStrategy.shiftIndicator(a,e,t,o)}},_createIndicator:function(e){var t=(0,a.default)("<div>").addClass(_);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t<i?t:i},getIndicatorOffset:function(e){var t=this._getIndicatorDuration()-1,n=t*this.getRoundedCellWidth(e,e*this._getCellCount(),t);return n},_getIndicatorDuration:function(){var e=this._getToday(),t=new Date(this._firstViewDate),n=e.getTime()-t.getTime();return"workWeek"===this.option("type")&&(n-=this._getWeekendsCount(Math.round(n/g("day")))*g("day")),Math.ceil((n+1)/g("day"))},getIndicationHeight:function(){var e=this._getToday(),t=this.getCellHeight(),n=new Date(this._firstViewDate);this._needRenderDateTimeIndicator()&&n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var i=e.getTime()-n.getTime(),o=i/this.getCellDuration();return o*t},_dispose:function(){this._clearIndicatorUpdateInterval(),this.callBase.apply(this,arguments)},_refreshDateTimeIndication:function(){this._cleanDateTimeIndicator(),this._shader&&this._shader.clean(),this._renderDateTimeIndication()},_isCurrentTime:function(e){if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var t=this._getToday(),n=!1;e=new Date(e),e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());var i=new Date(e),o=new Date(e);return c.default.sameDate(t,e)&&(i=i.setMilliseconds(e.getMilliseconds()-this.getCellDuration()+1),o=o.setMilliseconds(e.getMilliseconds()+this.getCellDuration()),n=c.default.dateInRange(t,i,o)),n}},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this.option("indicatorTime")||new Date;t=c.default.sameDate(n,i)}return t},_getTimeCellClass:function(e){var t=this._getTimeCellDate(e),n=this.callBase(e);return this._isCurrentTime(t)?n+" "+m:n},_getHeaderPanelCellClass:function(e){var t=this.callBase(e);return this._isCurrentTimeHeaderCell(e)?t+" "+v:t},_cleanView:function(){this.callBase(),this._cleanDateTimeIndicator()},_dimensionChanged:function(){this.callBase(),this._refreshDateTimeIndication()},_cleanDateTimeIndicator:function(){this.$element().find("."+_).remove()},_cleanWorkSpace:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_optionChanged:function(e){switch(e.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":this.callBase(e),this._refreshDateTimeIndication();break;case"allDayExpanded":this.callBase(e),this._refreshDateTimeIndication();break;case"crossScrollingEnabled":this.callBase(e),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:this.callBase(e)}},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*g("minute"),shadeUntilCurrentTime:!0})}});(0,u.default)("dxSchedulerWorkSpace",y),e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(6),a=n(4),r=n(1),s=i(r),l={NoAccess:0,FileExists:1,FileNotFound:2,DirectoryExists:3,DirectoryNotFound:4,WrongFileExtension:5,MaxFileSizeExceeded:6,InvalidSymbols:7,Other:32767},u=function(e,t,n){t=t||a.noop,n=n||a.noop,Array.isArray(e)||(e=[e]);var i=e.map(function(e,i){return(0,o.when)(e).then(function(n){return s.default.isFunction(t)&&t({item:e,index:i,result:n}),n},function(e){return e||(e={}),e.index=i,s.default.isFunction(n)&&n(e),(new o.Deferred).resolve().promise()})});return o.when.apply(null,i)};e.exports=u,e.exports.ErrorCode=l},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(146),r=function(){function e(t){i(this,e);var n=(0,a.getDiagram)(),o=n.EventDispatcher;this.onChanged=new o,this._owner=t}return o(e,[{key:"raiseBarCommandExecuted",value:function(e,t){this.onChanged.raise("notifyBarCommandExecuted",parseInt(e),t)}},{key:"getCommandKeys",value:function(){throw"Not Implemented"}},{key:"setItemValue",value:function(e,t){}},{key:"setItemEnabled",value:function(e,t){}},{key:"setItemVisible",value:function(e,t){}},{key:"setEnabled",value:function(e){}},{key:"setItemSubItems",value:function(e,t){}},{key:"isVisible",value:function(){return!0}}]),e}();e.exports=r},,,,,,,function(e,t,n){var i=n(4).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?Object.keys(o).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(o[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},r={y:function(e){return"[0-9]+"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},u=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(o).map(function(i){var a=n.getMonthNames(o[i],t);return l(a,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},d={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(e,t,n){return t>2?n.getQuarterNames(o[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),
e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},c=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t){var n=e.getHours();t||12!==n?t&&12!==n&&e.setHours(n+12):e.setHours(0)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},p=function(e,t){var n=e[t],i=0;do t++,i++;while(e[t]===n);return i},f=function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n},g=function(e,t){for(var n,o="",a="",s=[],l=function(){a&&(s.push("'"+a+"'"),o+=i(a)+")",a="")},u=0;u<e.length;u++){var d=e[u],c="'"===d,h=r[d];if(!c||(n=!n,"'"===e[u-1]))if(h&&!n){var g=p(e,u),_=f(d,g);l(),s.push(_),o+="("+h(g,t)+")",u+=g-1}else a||(o+="("),a+=d}return l(),{patterns:s,regexp:new RegExp("^"+o+"$","i")}},_=function(){return h},m=function(e,t,n,i){var o=t[0],a=h[o],r=d[o];if(a&&r){var s=r(n,t.length,i);e[a]?e[a](s):a(e,s)}},v=function(e,t,n){var i=h[t],o="g"+i.substr(1);e[i](n[o]())},y=function(e){return e.map(function(e){return"'"===e[0]?"":"H"===e[0]?"h":e[0]})},w=function(e){var t=e.map(function(e){return c.indexOf(e)});return Math.max.apply(Math,t)},x=function(e){var t=e.filter(function(e){return c.indexOf(e)<0});return c.concat(t)},b=function(e,t){var n=g(e,t);return function(e){var i=n.regexp.exec(e);if(i){var o=new Date,a=new Date(o.getFullYear(),0,1),r=y(n.patterns),s=w(r),l=x(r);return l.forEach(function(e,l){if(e&&!(l<c.length&&l>s)){var u=r.indexOf(e);u>=0?m(a,n.patterns[u],i[u+1],t):v(a,e,o)}}),a}return null}};t.getParser=b,t.getRegExpInfo=g,t.getPatternSetters=_},function(e,t,n){var i=n(14).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(175),o=i.data=n(238);o.odata=n(504),e.exports=o},function(e,t,n){var i=n(38),o=n(12),a=n(7),r=a.getWindow(),s=n(1),l=n(88),u=n(177),d=n(217),c=function(e,t){return new h(e,t)},h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.getBody(),this.length=1,this):(t=t||o.getDocument(),"<"===e[0]?(this[0]=o.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.querySelectorAll(t,e)),this)):o.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):c(e.toArray?e.toArray():[e]):(this.length=0,this)};c.fn={dxRenderer:!0},h.prototype=c.fn;var p=function(e,t){for(var n=0;n<this.length;n++){var i=c(this[n]);i[e].apply(i,t)}return this},f=function(e,t,n){void 0!==n&&null!==n?o.setAttribute(e,t,n):o.removeAttribute(e,t)};h.prototype.show=function(){return this.toggle(!0)},h.prototype.hide=function(){return this.toggle(!1)},h.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},h.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else{var i=s.isString(this[0].className)?this[0].className:o.getAttribute(this[0],"class");if((i||"").split(" ").indexOf(t[n])>=0)return!0}return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i<n.length;i++)o.setClass(this[0],n[i],t);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(e){var t=e.toLowerCase().indexOf("width")>=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),a=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return p.call(this,e,arguments);var d=this[0];if(d){if(s.isWindow(d))return i?d["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(d)){var c=o.getDocumentElement(),h=o.getBody();return Math.max(h["scroll"+t],h["offset"+t],c["scroll"+t],c["offset"+t],c["client"+t])}if(0===arguments.length||"boolean"==typeof l){var f={paddings:a||i,borders:i,margins:l};return u.getSize(d,n,f)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=r.getComputedStyle(d),_=u.getElementBoxParams(n,g),m="border-box"===g.boxSizing;l=Number(l),i?l-=m?0:_.border+_.padding:a?l+=m?_.border:-_.padding:m&&(l+=_.border+_.padding)}return l+=s.isNumeric(l)?"px":"",o.setStyle(d,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!d.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(d.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=d.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n<e.length;n++){var i=e[n],a=this[0],r="TABLE"===a.tagName&&"TR"===i.tagName;r&&a.tBodies&&a.tBodies.length&&(a=a.tBodies[0]),o.insertElement(a,i.nodeType?i:i[0],t)}}},_=function(e,t){if(this[0]&&this[0].style&&!(null===t||"number"==typeof t&&isNaN(t))){e=l.styleProp(e);for(var n=0;n<this.length;n++)this[n].style[e]=l.normalizeStyleProp(e,t)}};h.prototype.css=function(e,t){if(s.isString(e)){if(2!==arguments.length){if(!this[0])return;e=l.styleProp(e);var n=r.getComputedStyle(this[0])[e]||this[0].style[e];return s.isNumeric(n)?n.toString():n}_.call(this,e,t)}else if(s.isPlainObject(e))for(var i in e)_.call(this,i,e[i]);return this},h.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return g.apply(this,[e,this[0].firstChild]),this},h.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return g.apply(this,[e]),this},h.prototype.prependTo=function(e){return e=c(e),e[0]&&o.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(o.insertElement(c(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=c(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(o.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return c(e)},h.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var a=s.isFunction(e)?e():e;return i.cleanDataRecursive(this[0],!1),o.setText(this[0],s.isDefined(a)?a:""),this},h.prototype.val=function(e){return 1===arguments.length?this.prop("value",s.isDefined(e)?e:""):this.prop("value")},h.prototype.contents=function(){if(!this[0])return c();var e=[];return e.push.apply(e,this[0].childNodes),c(e)},h.prototype.find=function(e){var t=c();if(!e)return t;var n,i=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var a=this[n];if(o.isElementNode(a)){var r=a.getAttribute("id"),s=r||"dx-query-children";r||f(a,"id",s),s="[id='"+s+"'] ";var l=s+e.replace(/([^\\])(,)/g,"$1, "+s);i.push.apply(i,o.querySelectorAll(a,l)),f(a,"id",r)}else o.isDocument(a)&&i.push.apply(i,o.querySelectorAll(a,e))}else for(n=0;n<this.length;n++)e=o.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&i.push(e);return t.add(i)};var m=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};h.prototype.filter=function(e){if(!e)return c();if(":visible"===e)return this.filter(m);if(":hidden"===e)return this.filter(function(e,t){return!m(e,t)});for(var t=[],n=0;n<this.length;n++){var i=this[n];if(o.isElementNode(i)&&"string"===s.type(e))o.elementMatches(i,e)&&t.push(i);else if(o.isNode(e)||s.isWindow(e))e===i&&t.push(i);else if(s.isFunction(e))e.call(i,n,i)&&t.push(i);else for(var a=0;a<e.length;a++)e[a]===i&&t.push(i)}return c(t)},h.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),i=0;i<this.length;i++)n.indexOf(this[i])===-1&&t.push(this[i]);return c(t)},h.prototype.is=function(e){return!!this.filter(e).length},h.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var i=this[n]?this[n].childNodes:[],a=0;a<i.length;a++)o.isElementNode(i[a])&&t.push(i[a]);return t=c(t),e?t.filter(e):t},h.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return c();for(var t=[],n=e.parentNode.childNodes||[],i=0;i<n.length;i++){var a=n[i];o.isElementNode(a)&&a!==e&&t.push(a)}return c(t)},h.prototype.each=function(e){for(var t=0;t<this.length&&e.call(this[t],t,this[t])!==!1;t++);},h.prototype.index=function(e){return e?(e=c(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},h.prototype.get=function(e){return this[e<0?this.length+e:e]},h.prototype.eq=function(e){return e=e<0?this.length+e:e,c(this[e])},h.prototype.first=function(){return this.eq(0)},h.prototype.last=function(){return this.eq(-1)},h.prototype.parent=function(e){if(!this[0])return c();var t=c(this[0].parentNode);return!e||t.is(e)?t:c()},h.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!o.isDocument(n[0]);)o.isElementNode(n[0])&&(!e||e&&n.is(e))&&t.push(n.get(0)),n=n.parent();return c(t)},h.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return c()},h.prototype.next=function(e){if(!this[0])return c();var t=c(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return c()},h.prototype.prev=function(){return this[0]?c(this[0].previousSibling):c()},h.prototype.add=function(e){for(var t=c(e),n=this.toArray(),i=0;i<t.length;i++){var o=t[i];n.indexOf(o)===-1&&n.push(o)}return c(n)};var v=[];h.prototype.splice=function(){return c(v.splice.apply(this,arguments))},h.prototype.slice=function(){return c(v.slice.apply(this,arguments))},h.prototype.toArray=function(){return v.slice.call(this)};var y=function(e){return s.isWindow(e)?e:e.defaultView};h.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var e=this[0].getBoundingClientRect(),t=y(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:e.top+t.pageYOffset-n.clientTop,left:e.left+t.pageXOffset-n.clientLeft}}},h.prototype.offsetParent=function(){if(!this[0])return c();for(var e=c(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=c(e[0].offsetParent);return e=e[0]?e:c(o.getDocumentElement())},h.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return e=this[0].getBoundingClientRect(),{top:e.top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),o={top:0,left:0};return"HTML"!==i[0].nodeName&&(o=i.offset()),o={top:o.top+parseFloat(i.css("borderTopWidth")),left:o.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-o.top-t,left:e.left-o.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach(function(e){var t=e.name;h.prototype[t]=function(n){if(this[0]){var i=y(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}}),h.prototype.data=function(e,t){if(this[0])return arguments.length<2?i.data.call(c,this[0],e):(i.data.call(c,this[0],e,t),this)},h.prototype.removeData=function(e){return this[0]&&i.removeData(this[0],e),this};var w=function(){return c.apply(this,arguments)};Object.defineProperty(w,"fn",{enumerable:!0,configurable:!0,get:function(){return c.fn},set:function(e){c.fn=e}}),e.exports={set:function(e){c=e},get:function(){return w}}},function(e,t,n){var i=["pageX","pageY","screenX","screenY","clientX","clientY"],o=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;if(n.length)return n[0][e]};e.exports=function(e){i.forEach(function(t){e(t,function(e){return o(t,e)})},this)}},function(e,t,n){var i=n(14).merge,o=n(12),a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,r={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var s=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment(),n=t.appendChild(o.createElement("div")),s=a.exec(e),l=s&&s[1].toLowerCase(),u=r[l]||r.default;n.innerHTML=u.startTags+e+u.endTags;for(var d=0;d<u.tagsCount;d++)n=n.lastChild;return i([],n.childNodes)},l=function(e){var t=a.exec(e);return t&&t[1]in r};t.parseHTML=s,t.isTablePart=l},function(e,t,n){function i(e){var t=(0,r.sign)(e);return t*Math.round(Math.abs(e))}function o(e,t){var n=Math.pow(s,t),o=n*s,a=i(e*o)/s;return i(a)/n}function a(e,t){var n=t||0,i=n>0?o.apply(void 0,arguments):e;return i.toFixed(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.toFixed=void 0;var r=n(30),s=10;t.toFixed=a},function(e,t,n){e.exports=function(e,t){if(t){for(var n={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":e},i=t.split(";"),o=0;o<i.length;o++)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[o]=i[o].replace(new RegExp(a,"g"),n[a]));return 2===i.length?i[0]+"_);"+i[1]:i[0]}}},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var o={3:"abbreviated",4:"wide",5:"narrow"},a={y:function(e,t,n){var o=e[n?"getUTCFullYear":"getFullYear"]();return 2===t&&(o%=100),i(o.toString(),t)},M:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"format")[r]:i((r+1).toString(),Math.min(t,2))},L:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"standalone")[r]:i((r+1).toString(),Math.min(t,2))},Q:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=Math.floor(r/3),l=o[t];return l?a.getQuarterNames(l)[s]:i((s+1).toString(),Math.min(t,2))},E:function(e,t,n,i){var a=e[n?"getUTCDay":"getDay"](),r=o[t<3?3:t];return i.getDayNames(r)[a]},a:function(e,t,n,i){var a=e[n?"getUTCHours":"getHours"](),r=a<12?0:1,s=o[t];return i.getPeriodNames(s)[r]},d:function(e,t,n){return i(e[n?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,n){return i(e[n?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,n){var o=e[n?"getUTCHours":"getHours"]();return i((o%12||12).toString(),Math.min(t,2))},m:function(e,t,n){return i(e[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,n){return i(e[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,n){return i(e[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,n){var o=n?0:e.getTimezoneOffset(),a=o>0?"-":"+",r=Math.abs(o),s=Math.floor(r/60),l=r%60,u=i(s.toString(),2),d=i(l.toString(),2);return a+u+(t>=3?":":"")+(t>1||l?d:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":a.x(e,t,n)},Z:function(e,t,n){return a.X(e,t>=5?3:2,n)}},r=function(e,t){return function(n){var i,o,r,s,l=0,u="'",d=!1,c="";if(!n)return null;if(!e)return n;var h="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i<e.length;i++)r=e[i],o=a[r],s=r===e[i+1],l++,s||(o&&!d&&(c+=o(n,l,h,t)),l=0),r!==u||s?!d&&o||(c+=r):d=!d,r===u&&s&&i++;return c}};e.exports.getFormatter=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(3),a=i(o),r=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["AM","PM"],u=["Q1","Q2","Q3","Q4"],d=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return a.default.map(e,function(e){return e.substr(0,n[t])})};e.exports={getMonthNames:function(e){return d(r,e)},getDayNames:function(e){return d(s,e)},getQuarterNames:function(e){return u},getPeriodNames:function(e){return l}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(77),r=i(a),s=n(450),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternFill:l.default.tryCreateTag(e.patternFill)},u.isEmpty(t)&&(t=null)),t},tryCreateFillFromSimpleFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,i=e.fillPatternColor;return!(0,o.isDefined)(t)||(0,o.isDefined)(n)&&(0,o.isDefined)(i)?(0,o.isDefined)(n)&&(0,o.isDefined)(i)?{patternFill:{patternType:n,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=l.default.copy(e.patternFill))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&l.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,o.isDefined)(e)||l.default.isEmpty(e.patternFill)},toXml:function(e){return r.default.toXml("fill",{},l.default.toXml(e.patternFill))}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(77),r=i(a),s={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t=void 0;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.rgb)&&!(0,o.isDefined)(e.theme)},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return r.default.toXml(e,{rgb:t.rgb,theme:t.theme})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(77),r=i(a),s=n(223),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:l.default.tryCreateTag(e.color)},u.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=l.default.copy(e.color))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&l.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.size)&&!(0,o.isDefined)(e.name)&&!(0,o.isDefined)(e.family)&&!(0,o.isDefined)(e.scheme)&&(!(0,o.isDefined)(e.bold)||!e.bold)&&(!(0,o.isDefined)(e.italic)||!e.italic)&&!(0,o.isDefined)(e.underline)&&l.default.isEmpty(e.color)},toXml:function(e){var t=[(0,o.isDefined)(e.bold)&&e.bold?r.default.toXml("b",{}):"",(0,o.isDefined)(e.size)?r.default.toXml("sz",{val:e.size}):"",(0,o.isDefined)(e.color)?l.default.toXml("color",e.color):"",(0,o.isDefined)(e.name)?r.default.toXml("name",{val:e.name}):"",(0,o.isDefined)(e.family)?r.default.toXml("family",{val:e.family}):"",(0,o.isDefined)(e.scheme)?r.default.toXml("scheme",{val:e.scheme}):"",(0,o.isDefined)(e.italic)&&e.italic?r.default.toXml("i",{}):"",(0,o.isDefined)(e.underline)?r.default.toXml("u",{val:e.underline}):""].join("");return r.default.toXml("font",{},t)}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var i=(0,H.default)("<canvas>")[0];return i.width=e+2*n,i.height=t+2*n,i.hidden=!0,i}function a(e,t){var n=e.toDataURL(t,ce),i=ee.atob(n.substring(("data:"+t+";base64,").length));return i}function r(e,t,n,i,o,a,r,s){var l,u,d,c,h,p,f=(e+n)/2,g=(t+i)/2,_=se(t-i,e-n),m=a?1:-1;_+=90*(ne/180)*(r?1:-1),l=ae(re(n-e,2)+re(i-t,2))/2,u=ae(oe(re(o,2)-re(l,2))),d=f+m*(u*le(_)),c=g+m*(u*ue(_)),h=se(t-c,e-d),p=se(i-c,n-d),s.arc(d,c,o,h,p,!r)}function s(e,t){var n,i=_e(e.attributes||{}),o=(0,q.extend)({},i,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),a=i.transform;return a&&(n=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.translateX=de(n[0]),o.translateY=n[1]?de(n[1]):0),n=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=de(n[0]),o.rotationX=n[1]&&de(n[1]),o.rotationY=n[2]&&de(n[2])),n=a.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.scaleX=de(n[0]),n.length>1?o.scaleY=de(n[1]):o.scaleY=o.scaleX)),c(e,o,t),o}function l(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=ie(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(n,i,o,a)}function u(e,t,n){var i=new J.Deferred,o=new ee.Image;return o.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,b(e,t),C(e,t,n),e.drawImage(o,t.x,t.y,t.width,t.height),e.restore(),i.resolve()},o.onerror=function(){i.resolve()},o.setAttribute("crossOrigin","anonymous"),o.src=t.href||t["xlink:href"],i}function d(e,t){var n,i,o,a=t.replace(/,/g," ").split(/([A-Z])/i).filter(function(e){return""!==e.trim()}),s=0;do switch(n=(a[s+1]||"").trim().split(" "),a[s]){case"M":e.moveTo(de(n[0]),de(n[1])),s+=2;break;case"L":for(var l=0;l<n.length/2;l++)e.lineTo(de(n[2*l]),de(n[2*l+1]));s+=2;break;case"C":e.bezierCurveTo(de(n[0]),de(n[1]),de(n[2]),de(n[3]),de(n[4]),de(n[5])),s+=2;break;case"a":i=a[s-1].trim().split(" "),o=i.length-1,r(de(i[o-1]),de(i[o]),de(i[o-1])+de(n[5]),de(i[o])+de(n[6]),de(n[0]),de(n[3]),de(n[4]),e),s+=2;break;case"A":i=a[s-1].trim().split(" "),o=i.length-1,r(de(i[o-1]),de(i[o]),de(n[5]),de(n[6]),de(n[0]),de(n[3]),de(n[4]),e),s+=2;break;case"Z":e.closePath(),s+=1;break;default:s++}while(s<a.length)}function c(e,t,n){var i,o=e.style||{};for(i in o)""!==o[i]&&(t[(0,Q.camelize)(i)]=o[i]);n&&K.default.isElementNode(e)&&(o=ee.getComputedStyle(e),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(e){e in o&&""!==o[e]&&(t[(0,Q.camelize)(e)]=o[e])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(e){e in o&&""!==o[e]&&"1"!==o[e]&&(t[e]=de(o[e]))})),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function h(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function p(e,t){var n=[];t.fontSize=t.fontSize||pe,t.fontFamily||fe,t.fill=t.fill||ge,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function f(e,t,n){p(e,t),x(e,t,n),t.text&&e.fillText(t.text,t.x||0,t.y||0),O(e,t,!0),g(e,t,n)}function g(e,t,n){if(t.textDecoration&&"none"!==t.textDecoration){var i=t.x,o=e.measureText(t.text).width,a=parseInt(t.fontSize,10),r=a*he<1?1:a*he,s=t.y;switch(t.textDecoration){case"line-through":s-=a/3+r/2;break;case"overline":s-=a-r;break;case"underline":s+=r}e.rect(i,s,o,r),P(e,t,n),O(e,t)}}function _(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function m(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function v(e,t,n,i){for(var o,a=[],r=0,l=0;l<e.length;l++){var u=e[l];if(void 0===u.tagName)y(u,t,n,i);else if("tspan"===u.tagName||"text"===u.tagName){var d=s(u,i.rootAppended),c=(0,q.extend)({},n,d);if("tspan"===u.tagName&&m(u)){v(u.childNodes,t,c,i);continue}c.textAlign="start",o&&void 0===d.x||(o={elements:[],options:[],widths:[],offsets:[]},a.push(o)),void 0!==d.y&&(r=0),void 0!==d.dy&&(r+=parseFloat(d.dy)),o.elements.push(u),o.options.push(c),o.offsets.push(r),p(t,c),o.widths.push(t.measureText(c.text).width)}}a.forEach(function(e){var o=e.widths.reduce(function(e,t){return e+t},0),a=0,r=0;"center"===n.textAlign&&(a=o/2),"end"===n.textAlign&&(a=o),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-a+r,t.y+=e.offsets[n],r+=i}),e.elements.forEach(function(n,o){v(n.childNodes,t,e.options[o],i)})})}function y(e,t,n,i){var o=e.tagName,a="text"===o||"tspan"===o||void 0===o,r="image"===o,c=(0,q.extend)({},n,s(e,i.rootAppended));if("hidden"!==c.visibility&&!c["hidden-for-export"]){t.save(),!r&&b(t,c),C(t,c,i),_(c);var h=void 0;switch(t.beginPath(),e.tagName){case void 0:f(t,c,i);break;case"text":case"tspan":v(e.childNodes,t,c,i);break;case"image":h=u(t,c,i);break;case"path":d(t,c.d);break;case"rect":l(t,c),t.closePath();break;case"circle":t.arc(c.cx,c.cy,c.r,0,2*ne,1)}return a||(x(t,c,i),P(t,c,i),O(t,c)),w(t,c,i,e),t.restore(),h}}function w(e,t,n,i){var o=n.gradients;if(0!==o.length){var a=h(t.fill);if(a&&o[a]){var r=i.getBBox(),s=e.createLinearGradient(r.x,0,r.x+r.width,0);o[a].forEach(function(e){var t=parseInt(e.offset.replace(/%/,""));s.addColorStop(t/100,e.stopColor)}),e.globalAlpha=t.opacity,e.fillStyle=s,e.fill()}}}function x(e,t,n){var i,o=h(t.filter);o&&(i=n.filters[o],i||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=i.offsetX,e.shadowOffsetY=i.offsetY,e.shadowColor=i.color,e.shadowBlur=i.blur)}function b(e,t){e.translate(t.translateX||0,t.translateY||0),t.translateX=void 0,t.translateY=void 0,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*ne/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),t.rotationAngle=void 0,t.rotationX=void 0,t.rotationY=void 0),isFinite(t.scaleX)&&(e.scale(t.scaleX,t.scaleY),t.scaleX=void 0,t.scaleY=void 0)}function C(e,t,n){t["clip-path"]&&(y(n.clipPaths[h(t["clip-path"])],e,{},n),e.clip(),t["clip-path"]=void 0)}function k(e,t){var n=new z.default(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function I(e){var t=[];return(0,j.each)(e.childNodes,function(e,n){var i=n.attributes;t.push({offset:i.offset.value,stopColor:i["stop-color"].value})}),t}function S(e){var t,n,i={};return(0,j.each)(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":i.blur=de(a.stdDeviation.value);break;case"offsetResult":i.offsetX=de(a.dx.value),i.offsetY=de(a.dy.value);break;case"floodResult":t=a["flood-color"]?a["flood-color"].value:"#000",n=a["flood-opacity"]?a["flood-opacity"].value:1,i.color=k(t,n)}}),i}function D(e,t){function n(){D(Array.prototype.slice.call(e,1),t,i)}var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new J.Deferred;if(0===e.length)return i.resolve();var o=t(e[0]);return(0,$.isPromise)(o)?o.then(n):n(),i}function T(e,t,n,i){return D(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var o=(0,q.extend)({},n,s(e,i.rootAppended));t.save(),b(t,o),C(t,o,i);var a=function(){t.restore()},r=T(e.childNodes,t,o,i);return(0,$.isPromise)(r)?r.then(a):a(),r;case"defs":return T(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=S(e);break;case"lineargradient":i.gradients[e.attributes.id.textContent]=I(e);break;default:return y(e,t,n,i)}})}function E(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,j.map)(n,function(e){return de(e)}),e.setLineDash(n))}function O(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(E(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function A(e,t,n){var i=s(t,n.rootAppended),a=o(i.width,i.height,0),r=a.getContext("2d");return T(t.childNodes,r,i,n),e.createPattern(a,"repeat")}function P(e,t,n){var i=t.fill;if(i&&"none"!==i){if(i.search(/url/)===-1)e.fillStyle=i;else{var o=n.patterns[h(i)];if(!o)return;e.fillStyle=A(e,o,n)}e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1}}function B(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}function M(){var e=K.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",e}function F(e,t,n){return T(e.childNodes,t.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:n})}function R(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:F,s=o(t,n,a),l=s.getContext("2d"),u=W.default.getSvgElement(e),d=void 0,c=K.default.isElementNode(e);return l.translate(a,a),K.default.getBody().appendChild(s),c||(d=M(),d.appendChild(u),K.default.getBody().appendChild(d)),u.attributes.direction&&(s.dir=u.attributes.direction.textContent),B(l,t,n,i,a),(0,J.fromPromise)(r(u,s,c&&Y.default.contains(K.default.getBody(),e))).then(function(){return s}).always(function(){d&&K.default.getBody().removeChild(d),K.default.getBody().removeChild(s)})}var V=n(2),H=i(V),L=n(86),z=i(L),$=n(1),N=n(189),W=i(N),j=n(3),q=n(0),G=n(12),K=i(G),U=n(11),Y=i(U),X=n(7),Z=i(X),Q=n(33),J=n(6),ee=Z.default.getWindow(),te=Math,ne=te.PI,ie=te.min,oe=te.abs,ae=te.sqrt,re=te.pow,se=te.atan2,le=te.cos,ue=te.sin,de=Number,ce=1,he=.05,pe="10px",fe="sans-serif",ge="#000",_e=function(e){
var t,n={};return(0,j.each)(e,function(e,i){t=i.textContent,isFinite(t)&&(t=de(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=t.width,o=t.height,r=t.backgroundColor;return(0,$.isFunction)(t.__parseAttributesFn)&&(_e=t.__parseAttributesFn),R(e,i,o,r,t.margin,t.svgToCanvas).then(function(e){return a(e,n)})},getData:function(e,n){var i=this;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format,o=(0,$.isFunction)(ee.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e);return o})},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new ee.Blob([i.buffer],{type:t})},_getBase64:function(e){return ee.btoa(e)}},t.getData=function(e,n){return t.imageCreator.getData(e,n)},t.testFormats=function(e){var t=o(100,100,0);return e.reduce(function(e,n){var i=("image/"+n).toLowerCase();return t.toDataURL(i).indexOf(i)!==-1?e.supported.push(n):e.unsupported.push(n),e},{supported:[],unsupported:[]})}},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(12),r=i(a),s=n(18),l=n(1),u=i(l),d=function(e,t){return 1/e===1/t},c=function(e,t){if(e=(0,s.toComparable)(e,!0),t=(0,s.toComparable)(t,!0),e&&t&&u.default.isRenderer(e)&&u.default.isRenderer(t))return t.is(e);var n=e!==e,i=t!==t;return!(!n||!i)||(0===e&&0===t?d(e,t):!(null!==e&&"object"===("undefined"==typeof e?"undefined":o(e))&&!r.default.isElementNode(e))&&e===t)};t.equals=c},function(e,t,n){function i(e){function t(){for(;r.length;){s=!0;var e=r.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}s=!1}function n(n,i){e?(r[0]&&i&&i(r[0]),r=[n]):r.push(n),s||t()}function i(){return s}var r=[],s=!1;return{add:n,busy:i}}var o=n(21),a=n(6).when;t.create=i,t.enqueue=i().add},function(e,t,n){var i=n(1).isFunction,o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,a={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},r=function(e,t,n,i){var o=3*e,a=3*(n-e)-o,r=1-o-a,s=3*t,l=3*(i-t)-s,u=1-s-l,d=function(e){return e*(o+e*(a+e*r))},c=function(e){return e*(s+e*(l+e*u))},h=function(e){for(var t,n=e,i=0;i<14&&(t=d(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return o+e*(2*a+3*e*r)};return function(e){return c(h(e))}},s={},l=function(e){e=a[e]||e;var t,n=e.match(o);n||(t="linear",n=a[t].match(o)),n=n.slice(1,5);for(var l=0;l<n.length;l++)n[l]=parseFloat(n[l]);var u=t||"cubicbezier_"+n.join("_").replace(/\./g,"p");return i(s[u])||(s[u]=function(e,t,i,o,a){return o*r(n[0],n[1],n[2],n[3])(t/a)+i}),u};t.setEasing=function(e){s=e},t.getEasing=function(e){return s[e]},t.convertTransitionTimingFuncToEasing=l},function(e,t,n){var i=n(16),o=n(0).extend,a=n(3).each,r=n(154),s={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},l=function(e){var t=[];return a(e.touches,function(e,n){t.push(o({pointerId:n.identifier},n))}),{pointers:t,pointerId:e.changedTouches[0].identifier}},u=function(e){return"ios"===i.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},d=r.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(u(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});d.map=s,d.normalize=l,e.exports=d},function(e,t,n){var i=n(3).each,o=n(49),a=n(12),r=function(e,t){o.add(function(){e.split(" ").forEach(function(e){a.listen(a.getDocument(),e,t,!0)})})},s=function(e,t,n){n=n||function(){};var o=[],a=function(e){var n=-1;return i(o,function(i,o){return!t(e,o)||(n=i,!1)}),n},s=function(e){a(e)===-1&&(n(e),o.push(e))},l=function(e){var t=a(e);t>-1&&o.splice(t,1)},u=function(e){o[a(e)]=e};r(e.dxpointerdown,s),r(e.dxpointermove,u),r(e.dxpointerup,l),r(e.dxpointercancel,l),this.pointers=function(){return o},this.reset=function(){o=[]}};e.exports=s},function(e,t,n){var i,o=n(0).extend,a=n(154),r=n(230),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},u=!1,d=function(){u||(i=new r(s,function(){return!0}),u=!0)},c=a.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});c.map=s,c.normalize=l,c.activate=d,c.resetObserver=function(){i.reset()},e.exports=c},function(e,t,n){var i=n(54),o=n(52).compare,a=n(128),r=n(79)();if(r&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473)},function(e,t,n){var i=n(26);e.exports=new i},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(21),o=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}};e.exports=o},function(e,t,n){var i=n(42),o=n(4),a=n(1),r=o.getKeyHash,s=n(15),l=n(6).Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function e(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,i=this.options.addedItems,a=this.options.removedItems,r=this.options.selectedItems,s=this.options.selectedItemKeys,e=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),e({selectedItems:r,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:n,addedItems:i,removedItems:a})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:o.equalByValue(e,t)},getSelectableItems:function(e){return e.filter(function(e){return!e.disabled})},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n){var o=encodeURI(JSON.stringify(e)).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,s=new l,u={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?s.resolve([]):this.options.load(u).done(function(n){var o=a.isPlainObject(n)?n.data:n;t?o=o.filter(t):r&&(o=i(o).filter(e).toArray()),s.resolve(o)}).fail(s.reject.bind(s)),s},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=r(e[t]);if(!a.isObject(n)){this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[];var i=this.options.keyHashIndices[n];i.push(t)}}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=i(n).filter(t).toArray());var o=n.length;return o?o>=this.options.totalCount()-this.options.disabledItemKeys.length||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.getSelectableItems(this.options.plainItems()),t=!1,n=!1,i=0;i<e.length;i++){var o=e[i],a=this.options.getItemData(o),r=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(r)?t=!0:n=!0)}return!!t&&(!n||void 0)}})},function(e,t,n){var i=n(60),o=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=o},function(e,t,n){var i=n(136);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(37).errorHandler},set:function(e){n(37).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(37)._errorHandler},set:function(e){n(37)._errorHandler=e}}),i.data.DataSource=n(501),i.data.query=n(42),i.data.Store=n(92),i.data.ArrayStore=n(71),i.data.CustomStore=n(141),i.data.LocalStore=n(502),i.data.base64_encode=n(41).base64_encode,i.data.Guid=n(34),i.data.utils={},i.data.utils.compileGetter=n(18).compileGetter,i.data.utils.compileSetter=n(18).compileSetter,i.EndpointSelector=n(503),i.data.queryImpl=n(42).queryImpl,i.data.queryAdapters=n(185);var o=n(41);i.data.utils.normalizeBinaryCriterion=o.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=o.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=o.errorMessageFromXhr,i.data.utils.aggregators=o.aggregators,i.data.utils.keysEqual=o.keysEqual,i.data.utils.isDisjunctiveOperator=o.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=o.isConjunctiveOperator,i.data.utils.processRequestResultLock=o.processRequestResultLock,i.data.utils.toComparable=n(18).toComparable,i.data.utils.multiLevelGroup=n(84).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(84).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(46).normalizeDataSourceOptions},function(e,t,n){var i=n(3).each,o=n(12),a=n(7).getWindow(),r=n(61),s="dxproxy.devexpress.com:8000",l={},u=r(function(){var e=o.createElement("a"),t=["protocol","hostname","port","pathname","search","hash"],n=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e};return function(o){e.href=o;var a={};return i(t,function(){a[this]=e[this]}),a.pathname=n(a.pathname),a}}),d=function(e){var t=u();return t(e)},c=function(){return a.location.pathname.split("/")[1]};e.exports={parseUrl:d,isProxyUsed:function(){return a.location.host===s},formatProxyUrl:function(e){var t=d(e);if(!/^(localhost$|127\.)/i.test(t.hostname))return e;var n=s+"/"+c()+"_"+t.port;l[n]=t.hostname+":"+t.port;var i="http://"+n+t.pathname+t.search;return i},formatLocalUrl:function(e){if(e.indexOf(s)<0)return e;var t=e;for(var n in l)if(Object.prototype.hasOwnProperty.call(l,n)&&e.indexOf(n)>=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&u.log("W4001",o):n[o]=t[o];return n}var a=n(1).isDefined,r=n(28),s=n(102),l=n(239),u=n(37).errors,d=n(42),c=n(92),h=n(241),p=n(6),f=p.when,g=p.Deferred;n(157);var _="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=c.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var r="string"==typeof a;t||(t=r?_:Object.keys(a),this._legacyAnonymousKey=t),r&&(a=i(t,a)),n=o(n,a)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=s.generateExpand(this._version,t.expand,t.select)||void 0,n.$select=s.generateSelect(this._version,t.select)||void 0),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n;if(e=e||{},n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes},t=a(e.urlOverride)?e.urlOverride:this._url,a(this._filterToLower)&&(n.filterToLower=this._filterToLower),e.customQueryParams){var i=h.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=h.formatFunctionInvocationUrl(t,i):n.params=i}return d(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new g;return f(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(r().useLegacyStoreResult?e:i||e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new g;return f(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(i){r().useLegacyStoreResult?n.resolve(e,t):n.resolve(i||t,e)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new g;return f(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o=0;o<i.length;o++){var a=i[o];t[a]=s.convertPrimitiveValue(n[a],e[a])}}else n[i]&&(t=s.convertPrimitiveValue(n[i],e));return t},_byKeyUrl:function(e,t){var n=t?l.formatLocalUrl(this._url):this._url,i=this._convertKey(e);return n+"("+encodeURIComponent(s.serializeKey(i,this._version))+")"}},"odata").include(h.SharedMethods);e.exports=m},function(e,t,n){var i=n(45),o=n(3),a=n(102);n(157);var r=2,s=function(e,t){return i.format("{0}({1})",e,o.map(t||{},function(e,t){return i.format("{0}={1}",t,e)}).join(","))},l=function(e,t){if(!e)return e;var n={};return o.each(e,function(e,i){n[e]=a.serializeValue(i,t)}),n},u={_extractServiceOptions:function(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||r,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates,this._filterToLower=e.filterToLower},_sendRequest:function(e,t,n,i){return a.sendRequest(this.version(),{url:e,method:t,params:n||{},payload:i},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},version:function(){return this._version}};t.SharedMethods=u,t.escapeServiceOperationParams=l,t.formatFunctionInvocationUrl=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(112),s=i(r),l=n(111),u=i(l),d=n(16),c=i(d),h=n(28),p=i(h),f=n(11),g=n(6),_=n(1),m=n(3),v=n(0),y=n(7),w=n(5),x=n(73),b=n(10),C=i(b),k=n(19),I=i(k),S=n(44),D=i(S),T=n(4),E=(0,y.getWindow)(),O={text:"OK",onClick:function(){return!0}},A="dx-dialog",P=A+"-wrapper",B=A+"-root",M=A+"-content",F=A+"-message",R=A+"-buttons",V=A+"-button",H="dx-button",L=s.default.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}}])}});t.FakeDialogComponent=L,t.title="",t.custom=function(e){function n(){return k.show(),o.promise()}function i(e){o.resolve(e),k.hide().done(function(){k.$element().remove()})}var o=new g.Deferred,r=(new L).option();e=(0,v.extend)(r,e);var s=(0,a.default)("<div>").addClass(A).appendTo((0,x.value)()),l="message"in e,d="messageHtml"in e;l&&I.default.log("W1013");var h=String(d?e.messageHtml:e.message),y=(0,a.default)("<div>").addClass(F).html(h),b=[],C=e.toolbarItems;C?I.default.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):C=e.buttons,(0,m.each)(C||[O],function(){var e=new u.default(this.onClick,{context:k});b.push({toolbar:"bottom",location:c.default.current().android?"after":"center",widget:"dxButton",options:(0,v.extend)({},this,{onClick:function(){var t=e.execute.apply(e,arguments);i(t)}})})});var k=new D.default(s,(0,v.extend)({title:e.title||t.title,showTitle:(0,T.ensureDefined)(e.showTitle,!0),dragEnabled:(0,T.ensureDefined)(e.dragEnabled,!0),height:"auto",width:function(){var t=(0,a.default)(E).height()>(0,a.default)(E).width(),n=(t?"p":"l")+"Width",i=Object.prototype.hasOwnProperty.call(e,n)?e[n]:e.width;return(0,_.isFunction)(i)?i():i},showCloseButton:e.showCloseButton||!1,ignoreChildEvents:!1,onContentReady:function(e){e.component.$content().addClass(M).append(y)},onShowing:function(e){e.component.bottomToolbar().addClass(R).find("."+H).addClass(V),(0,f.resetActiveElement)()},onShown:function(e){var t=e.component.bottomToolbar().find("."+H).first();(0,w.trigger)(t,"focus")},onHiding:function(){o.reject()},toolbarItems:b,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,p.default)().rtlEnabled,boundaryOffset:{h:10,v:0}},e.popupOptions));return k._wrapper().addClass(P),e.position&&k.option("position",e.position),k._wrapper().addClass(B),{show:n,hide:i}},t.alert=function(e,n,i){var o=(0,_.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,dragEnabled:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=(0,_.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,buttons:[{text:C.default.format("Yes"),onClick:function(){return!0}},{text:C.default.format("No"),onClick:function(){return!1}}],dragEnabled:i};return t.custom(o).show()}},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(4).noop,r=n(10),s=n(9),l=n(0).extend,u=n(35),d=n(55),c=n(44),h=n(142),p=n(66).BindableTemplate,f=n(6).Deferred,g="dx-actionsheet",_="dx-actionsheet-container",m="dx-actionsheet-popup-wrapper",v="dx-actionsheet-popover-wrapper",y="dx-actionsheet-cancel",w="dx-actionsheet-item",x="dxActionSheetItemData",b="dx-actionsheet-without-title",C=d.inherit({_getDefaultOptions:function(){return l(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:r.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new p(function(e,t){var n=new u(i("<div>"),l({onClick:t&&t.click},t));e.append(n.$element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return w},_itemDataKey:function(){return x},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("<div>").addClass(_),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass(b,!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!o.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,l(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass(v)},_createPopup:function(){this._createComponent(this._$popup,c,l(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:o},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:o}},to:{position:{my:"bottom",at:"bottom",of:o}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:o}},to:{position:{my:"top",at:"bottom",of:o}}}}})),this._popup._wrapper().addClass(m)},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a,t=this;this._$cancelButton=i("<div>").addClass(y).appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,u,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new f;return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",C),e.exports=C},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(2),a=n(7).getWindow(),r=n(5),s=n(34),l=n(9),u=n(4),d=n(1),c=n(0).extend,h=n(14).inArray,p=n(166),f=n(103),g=n(19),_=n(8),m=n(16),v=n(42),y=n(3).each,w=n(250),x=n(10),b=n(139).ChildDefaultTemplate,C=n(6).Deferred,k=n(295).default,I=".dx-list-item",S="dxListItemData",D="dx-dropdownlist-popup-wrapper",T="dx-skip-gesture-event",E="input",O=["startswith","contains","endwith","notcontains"],A=p.inherit({_supportedKeys:function(){var e=this.callBase();return c({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:u.noop,home:u.noop,end:u.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return c(this.callBase(),c(w._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:x.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:u.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new b("item")},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items()),t=new v(e).filter("disabled","<>",!0).toArray();return t},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return y(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup._wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();r.off(e,"mouseup"),r.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var e=this.option("dropDownOptions.container"),t=e&&o(e);if(t&&t.length&&!d.isWindow(t.get(0))){var n=[].slice.call(t.parents());n.unshift(t.get(0)),y(n,function(e,t){return t!==o("body").get(0)&&("hidden"===a.getComputedStyle(t).overflowY?(this._$customBoundaryContainer=o(t),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return D},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_getItemFromPlain:function(e,t){var n,o;return t&&"object"!==("undefined"==typeof e?"undefined":i(e))&&(t.itemByValue||(t.itemByValue={},n=this._getPlainItems(),n.forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),o=t.itemByValue[e]),o||(n=this._getPlainItems(),o=u.grep(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),o},_loadItem:function(e,t){var n=this._getItemFromPlain(e,t);return void 0!==n?(new C).resolve(n).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||this._dataSource.items()||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",u.ensureDefined(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,n){var i=o(n),a=this._valueGetter(i.data(S)),r=this._isSelectedValue(a,e);r?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(h(t,O)<0)throw g.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(I):o()},_popupConfig:function(){var e=this;return c(this.callBase(),{templatesRenderAsynchronously:!1,width:this.option("width"),onShowing:function(){e.$element().addClass(T)},onHidden:function(){e.$element().removeClass(T)},height:"auto",autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this._renderList()},_attachChildKeyboardEvents:function(){this._canListHaveFocus()||(this._childKeyboardProcessor=this._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._childKeyboardProcessor))},_fireContentReadyAction:u.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new s)._value;var e=this._$list=o("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,f,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlur(this._$list)},_renderPreventBlur:function(e){var t=_.addNamespace("mousedown","dxDropDownList");r.off(e,t),r.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase();var e=this.option("opened")||void 0;this.setAria({activedescendant:e&&this._list.getFocusedItemId(),controls:e&&this._listId})},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===m.real().deviceType},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(e.tabIndex=null,e._keyboardProcessor=this._childKeyboardProcessor),e},_canListHaveFocus:function(){return!1},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:u.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return _.addNamespace(E,this.NAME+"Search")},_getSetFocusPolicyEvent:function(){
return _.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),r.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&r.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){r.off(this._input(),this._getSearchEvent()),r.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()},_searchCanceled:function(){this._clearSearchTimer(),this._needPassDataSourceToList()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;return t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var e=this._shouldOpenPopup();e&&!this._isFocused()||(this.option("opened",e),e&&this._dimensionChanged())}},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=this._dataSource&&this._dataSource.items()||[],t=e.length,n=this._needPassDataSourceToList();return!(!n||!t)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this._popup&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth()+this.option("popupWidthExtension"))},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=d.isDefined(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupHeight:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=this._$customBoundaryContainer,n=e.offset().top-(t?t.offset().top:0),i=(t||o(a)).outerHeight(),r=Math.max(n,i-n-e.outerHeight());return Math.min(.5*i,r)},_clean:function(){this._list&&delete this._list,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&d.isObject(e)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(w,k);l("dxDropDownList",A),e.exports=A},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(56),l=n(11).getPublicElement,u=n(3).each,d=n(18).compileGetter,c=n(0).extend,h=n(39),p=n(20),f=n(179),g=n(43),_=n(10),m=n(74),v=n(16),y=n(532),w=n(35),x=n(8),b=n(31),C=n(7),k=n(118),I=n(94).deviceDependentOptions,S=n(192).default,D=n(66).BindableTemplate,T=n(6).Deferred,E=n(295).default,O="dx-list",A="dx-list-item",P="."+A,B="dx-list-item-icon-container",M="dx-list-item-icon",F="dx-list-group",R="dx-list-group-header",V="dx-list-group-body",H="dx-list-collapsible-groups",L="dx-list-group-collapsed",z="dx-list-group-header-indicator",$="dx-has-next",N="dx-list-next-button",W="dx-wrap-item-text",j=".dx-list-select-all",q="dxListItemData",G=70,K=d("items"),U=S.inherit({_activeStateUnit:[P,j].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t),a=i.is(e.option("focusedElement"));a&&(o(i,t),i=n(t)),e.option("focusedElement",l(i)),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.$element().height(),a=i(e.option("focusedElement")),r=!0;if(!a.length)return i();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;r=l<o+n&&l>n,r&&(a=s)}return a},o=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.$element().height()+t.outerHeight()),e.scrollTo(i)};return c(this.callBase(),{leftArrow:a.noop,rightArrow:a.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:_.format("dxList-pullingDownText"),pulledDownText:_.format("dxList-pulledDownText"),refreshingText:_.format("dxList-refreshingText"),pageLoadingText:_.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:_.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=b.current();return this.callBase().concat(I(),[{device:function(){return!g.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!g.nativeScrolling&&!v.isSimulator()&&"desktop"===v.real().deviceType&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===v.real().deviceType&&!v.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return b.isMaterial(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return A},_itemDataKey:function(){return q},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+F).children("."+V).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState()},reorderItem:function(e,t){var n=this.callBase(e,t);return n.done(function(){this._refreshItemElements()})},deleteItem:function(e){var t=this.callBase(e);return t.done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=G,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return c(this.callBase(),{paginate:a.ensureDefined(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),k,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=i(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(W),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new D(function(e,t){r.isPlainObject(t)?t.key&&e.text(t.key):e.text(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var n=s.getImageContainer(e.icon).addClass(M),o=i("<div>").addClass(B);o.append(n),t.prepend(o)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){!this._shouldAppendItems()&&C.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){return arguments.length?void(this._isLoadIndicationSuppressed=e):this._isLoadIndicationSuppressed},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this.$element().is(":visible");!e||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(u(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),b.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=x.addNamespace(p.name,this.NAME),t="."+R,n=this.$element(),a=this.option("collapsibleGroups");n.toggleClass(H,a),o.off(n,e,t),a&&o.on(n,e,t,function(e){this._createAction(function(e){var t=i(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",l(t.find("."+A).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new T;if(e.hasClass(L)===t)return n.resolve();var i=e.children("."+V),o=i.outerHeight(),a=0===o?i.height("auto").outerHeight():0;return e.toggleClass(L,t),h.animate(i,{type:"custom",from:{height:o},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=i(),this.$element().addClass(O),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?b.isMaterial()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(o)},G/2):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(e.itemElement))},_attachSwipeEvent:function(e){var t=x.addNamespace(f.end,this.NAME);o.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(){var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=i("<div>").addClass(F).appendTo(this._itemContainer()),o=i("<div>").addClass(R).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,o),s={index:e,itemData:t,container:l(o)};this._createItemByTemplate(r,s),b.isMaterial()&&i("<div>").addClass(z).prependTo(o),this._renderingGroupIndex=e;var d=i("<div>").addClass(V).appendTo(n);u(K(t)||[],function(e,t){this._renderItem(e,t,d)}.bind(this)),this._groupRenderAction({groupElement:l(n),groupIndex:e,groupData:t})},attachGroupHeaderInkRippleEvents:function(){var e=this,t="."+R,n=this.$element();o.on(n,"dxpointerdown",t,function(t){e._toggleActiveState(i(t.currentTarget),!0,t)}),o.on(n,"dxpointerup dxhoverend",t,function(t){e._toggleActiveState(i(t.currentTarget),!1)})},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataSource,n=this._getNextButton();this.$element().toggleClass($,e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=i("<div>").addClass(N),t=i("<div>").appendTo(e);return this._createComponent(t,w,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:b.isMaterial()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(C.hasWindow()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"useNative":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions(),this._invalidate();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"wrapItemText":this._$container.toggleClass(W,e.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"_listAttributes":break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+F),n=t.find("."+A);return c(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new T,n=this._itemContainer().find("."+F).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new T,n=this._itemContainer().find("."+F).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new T;return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)}):t.resolveWith(e),t.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e);this._scrollView.scrollToElement(t)}}).include(E);U.ItemClass=y,e.exports=U},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(8),u=i(l),d=n(4),c=n(3),h=n(16),p=i(h),f=n(15),g=i(f),_=n(309),m=i(_),v="dxNativeScrollable",y="dx-scrollable-native",w="dx-scrollable-scrollbar-simulated",x="dx-scrollable-scrollbars-hidden",b="vertical",C="horizontal",k=500,I=g.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=p.default.real(),t=e.platform;this._$element.addClass(y).addClass(y+"-"+t).toggleClass(x,!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:d.noop,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(w),this._renderScrollbar(b),this._renderScrollbar(C)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new m.default((0,a.default)("<div>").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:d.noop,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:d.noop,handleStop:d.noop,_eachScrollbar:function(e){e=e.bind(this),(0,c.each)(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location(),t=this._$container.get(0);return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(C)?e.left>=0:void 0,reachedRight:this._isDirection(C)?Math.abs(e.left)>=t.scrollWidth-t.clientWidth:void 0,reachedTop:this._isDirection(b)?e.top>=0:void 0,reachedBottom:this._isDirection(b)?Math.abs(e.top)>=t.scrollHeight-t.clientHeight-2*this.option("pushBackValue"):void 0}},handleScroll:function(e){return this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop(),i=t+n-2*e;n?i||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),k)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:d.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===b?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(b)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(C)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(y+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),s.default.off(this._$element,"."+v),s.default.off(this._$container,"."+v),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top+this.option("pushBackValue"))),this._$container.scrollLeft(Math.round(-t.left-e.left))},validate:function(e){return!this.option("disabled")&&((!u.default.isDxMouseWheelEvent(e)||!this._isScrolledInMaxDirection(e))&&!!this._allowedDirection())},_isScrolledInMaxDirection:function(e){var t=this._$container.get(0),n=void 0;return n=e.delta>0?e.shiftKey?!t.scrollLeft:!t.scrollTop:e.shiftKey?t.clientWidth+t.scrollLeft>=t.scrollWidth:t.clientHeight+t.scrollTop>=t.scrollHeight},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=I},function(e,t,n){var i=n(5),o=n(15),a=o.abstract,r=n(8),s=n(158),l=n(90),u=n(113),d=n(16).real(),c=n(52).compare,h="dxscrollinit",p="dxscrollstart",f="dxscroll",g="dxscrollend",_="dxscrollstop",m="dxscrollcancel",v=o.inherit(function(){var e=r.addNamespace("scroll","dxScrollEmitter");return{ctor:function(t){this._element=t,this._locked=!1;var n=this;this._proxiedScroll=function(e){n._scroll(e)},i.on(this._element,e,this._proxiedScroll)},_scroll:a,check:function(e,t){this._locked&&t()},dispose:function(){i.off(this._element,e,this._proxiedScroll)}}}()),y=v.inherit(function(){return{ctor:function(e,t){this.callBase(e),this._timeout=t},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout(function(){e._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}}()),w=y.inherit(function(){var e=400;return{ctor:function(t){this.callBase(t,e),this._lastWheelDirection=null},check:function(e,t){this._checkDirectionChanged(e),this.callBase(e,t)},_checkDirectionChanged:function(e){if(!r.isDxMouseWheelEvent(e))return void(this._lastWheelDirection=null);var t=e.shiftKey||!1,n=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!n}}}()),x=y.inherit(function(){var e=400;return{ctor:function(t){this.callBase(t,e)}}}());!function(){var e=d.ios&&c(d.version,[8])>=0,t=d.android&&c(d.version,[5])>=0;(e||t)&&(x=v.inherit(function(){return{_scroll:function(){this._locked=!0;var e=this;u.cancelAnimationFrame(this._scrollFrame),this._scrollFrame=u.requestAnimationFrame(function(){e._locked=!1})},check:function(e,t){u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame);var n=this,i=this.callBase;this._checkFrame=u.requestAnimationFrame(function(){i.call(n,e,t),n._locked=!1})},dispose:function(){this.callBase(),u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame)}}}()))}();var b=s.inherit(function(){var e=100,t=200,n=Math.round(1e3/60);return{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new x(e),this._wheelLocker=new w(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new x(e.scrollTarget),this._wheelLocker=new w(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){r.isDxMouseWheelEvent(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&r.isMouseEvent(e);r.isDxMouseWheelEvent(e)||t||this._accept(e)}.bind(this)),this._fireEvent(h,e),this._prevEventData=r.eventData(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=r.eventData(e),this._fireEvent(p,e),this._prevEventData=r.eventData(e)},_move:function(e){var n=r.eventData(e);this._fireEvent(f,e,{delta:r.eventDelta(this._prevEventData,n)});var i=r.eventDelta(this._savedEventData,n);i.time>t&&(this._savedEventData=this._prevEventData),this._prevEventData=r.eventData(e)},_end:function(t){var i=r.eventDelta(this._prevEventData,r.eventData(t)),o={x:0,y:0};if(!r.isDxMouseWheelEvent(t)&&i.time<e){var a=r.eventDelta(this._savedEventData,this._prevEventData),s=n/a.time;o={x:a.x*s,y:a.y*s}}this._fireEvent(g,t,{velocity:o})},_stop:function(e){this._fireEvent(_,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(m,e)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());l({emitter:b,events:[h,p,f,g,_,m]}),e.exports={init:h,start:p,move:f,end:g,stop:_,cancel:m}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(2),r=i(a),s=n(9),l=i(s),u=n(0),d=n(193),c=i(d),h=n(11),p=n(27),f=i(p),g=n(39),_=i(g),m="dxSortable",v="placeholder",y="clone",w=c.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_dragStartHandler:function(e){if(this.callBase.apply(this,arguments),e.cancel!==!0){var t=this._getSourceElement();this._updateItemPoints(),this.option("fromIndex",this._getElementIndex(t))}},_dragEnterHandler:function(){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var e=this.option("itemPoints"),t=e[e.length-1];if(t){var n=this.$element(),i=this._getSourceElement(),o=this._isVerticalOrientation(),a=o?i.outerHeight(!0):i.outerWidth(!0),s=n.get(0)[o?"scrollHeight":"scrollWidth"],l=n.get(0)[o?"scrollTop":"scrollLeft"],u=o?"top":"left",d=t[u],c=n.offset()[u],h=c+s-l-d;if(h<a&&o){var p=(0,r.default)(this._getItems()).last();this._$modifiedItem=p,this._modifiedItemMargin=p.get(0).style.marginBottom,p.css("marginBottom",a-h);var f=p.closest(".dx-sortable"),g=f.data("dxScrollable")||f.data("dxScrollView");g&&g.update()}}}},dragEnter:function(){this===this._getTargetDraggable()?this.option("toIndex",this.option("fromIndex")):this.option("toIndex",-1)},dragLeave:function(){this===this._getTargetDraggable()?this.option("toIndex",-1):this.option("toIndex",this.option("fromIndex"));
},dragEnd:function(e){var t=this._getSourceElement(),n=this._getSourceDraggable(),i=n.NAME!==this.NAME,o=this.option("toIndex");if(null!==o&&o>=0){var a=void 0,r=void 0;n!==this&&(a=this._fireAddEvent(e),a||(r=this._fireRemoveEvent(e))),i&&f.default.resetPosition(t),this.option("moveItemOnDrop")&&!a&&this._moveItem(t,o,r),n===this&&this._fireReorderEvent(e)}},dragMove:function(e){var t=this.option("itemPoints");if(t){for(var n=this._isVerticalOrientation(),i=n?"top":"left",o=n?e.pageY:e.pageX,a=void 0,r=t.length-1;r>=0;r--){var s=t[r+1]&&(t[r][i]+t[r+1][i])/2;if(!(s>o||void 0===s))break;a=t[r]}a&&(this._updatePlaceholderPosition(e,a),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var e=void 0;return this._isIndicateMode()&&(e=(0,r.default)("<div>").addClass(this._addWidgetPrefix(v)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=e,e},_getItems:function(){var e=this._getItemsSelector();return this._$content().find(e).not("."+this._addWidgetPrefix(v)).not("."+this._addWidgetPrefix(y)).toArray()},_allowReordering:function(){var e=this._getSourceDraggable(),t=this._getTargetDraggable();return e!==t||this.option("allowReordering")},_isValidPoint:function(e,t,n){var i=n||this._allowReordering();if(!i&&0!==t)return!1;if(!this._isIndicateMode())return!0;var o=this._getDraggableElement(),a=e.indexOf(o.get(0));return a===-1||t!==a&&(n||t!==a+1)},_getItemPoints:function(){var e=this,t=void 0,n=e._isVerticalOrientation(),i=e._getItems();if(t=i.map(function(t,n){var o=(0,r.default)(t).offset();return{dropInsideItem:!1,left:o.left,top:o.top,index:n,$item:(0,r.default)(t),width:(0,r.default)(t).outerWidth(),height:(0,r.default)(t).outerHeight(),isValid:e._isValidPoint(i,n)}}),t.length){var o=t[t.length-1];if(t.push({dropInsideItem:!1,index:t.length,top:n?o.top+o.height:o.top,left:n?o.left:o.left+o.width,isValid:this._isValidPoint(i,t.length)}),this.option("allowDropInsideItem")){var a=t;t=[];for(var s=0;s<a.length;s++)t.push(a[s]),a[s+1]&&t.push((0,u.extend)({},a[s],{dropInsideItem:!0,top:Math.floor((a[s].top+a[s+1].top)/2),left:Math.floor((a[s].left+a[s+1].left)/2),isValid:this._isValidPoint(i,s,!0)}))}}else t.push({dropInsideItem:!1,index:0,isValid:!0});return t},_updateItemPoints:function(){this.option("itemPoints",this._getItemPoints())},_getElementIndex:function(e){return this._getItems().indexOf(e.get(0))},_getDragTemplateArgs:function(e){var t=this.callBase.apply(this,arguments);return t.model.fromIndex=this._getElementIndex(e),t},_togglePlaceholder:function(e){this._$placeholderElement&&this._$placeholderElement.toggle(e)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(e,t){var n=this._getSourceDraggable()!==this._getTargetDraggable(),i=this.option("fromIndex");return null===e?i:Math.max(n||i>=e||t?e:e-1,0)},_updatePlaceholderPosition:function(e,t){var n=this._getSourceDraggable(),i=this._normalizeToIndex(t.index,t.dropInsideItem),o=(0,u.extend)(this._getEventArgs(e),{toIndex:i,dropInsideItem:t.dropInsideItem});return t.isValid&&this._getAction("onDragChange")(o),o.cancel||!t.isValid?void(t.isValid||this.option({dropInsideItem:!1,toIndex:null})):(this.option({dropInsideItem:t.dropInsideItem,toIndex:t.index}),this._getAction("onPlaceholderPrepared")((0,u.extend)(this._getEventArgs(e),{placeholderElement:(0,h.getPublicElement)(this._$placeholderElement),dragElement:(0,h.getPublicElement)(n._$dragElement)})),void this._updateItemPoints())},_makeWidthCorrection:function(e,t){var n=this;if(n._$scrollable&&n._$scrollable.width()<t){var i=n._$scrollable.width(),o=e.offset().left-n._$scrollable.offset().left,a=i-e.outerWidth()-o;t=o>0?i-o:a>0?i-a:i}return t},_updatePlaceholderSizes:function(e,t){var n=this,i=n.option("dropInsideItem"),o=t?(0,r.default)(t):n._getSourceElement(),a=n._isVerticalOrientation(),s="",l="";e.toggleClass(n._addWidgetPrefix("placeholder-inside"),i),(a||i)&&(s=o.outerWidth()),a&&!i||(l=o.outerHeight()),s=n._makeWidthCorrection(o,s),e.css({width:s,height:l})},_moveItem:function(e,t,n){var i=void 0,o=this._getItems(),a=o[t],r=this._getSourceDraggable();n&&(e=e.clone(),r._toggleDragSourceClass(!1,e)),a||(i=o[t-1]),this._moveItemCore(e,a,i)},_moveItemCore:function(e,t,n){t||n?n?e.insertAfter((0,r.default)(n)):e.insertBefore((0,r.default)(t)):e.appendTo(this.$element())},_getDragStartArgs:function(e,t){return(0,u.extend)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(t)})},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable(),i=n.option("dropInsideItem");return(0,u.extend)(this.callBase.apply(this,arguments),{fromIndex:t.option("fromIndex"),toIndex:this._normalizeToIndex(n.option("toIndex"),i),dropInsideItem:i})},_optionChanged:function(e){var t=e.name;switch(t){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+t+"Action"]=this._createActionByOption(t);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"fromIndex":case"animation":case"allowReordering":break;case"dropInsideItem":this._optionChangedDropInsideItem(e);break;case"toIndex":this._optionChangedToIndex(e);break;default:this.callBase(e)}},_optionChangedDropInsideItem:function(e){if(this._isIndicateMode()&&this._$placeholderElement){var t=this.option("toIndex"),n=this._getItems()[t];this._updatePlaceholderSizes(this._$placeholderElement,n)}},_isPositionVisible:function(e){var t,n=this.$element();if("hidden"!==n.css("overflow")?t=n.get(0):n.parents().each(function(){if("visible"!==(0,r.default)(this).css("overflow"))return t=this,!1}),t){var i=t.getBoundingClientRect(),o=this._isVerticalOrientation(),a=o?"top":"left",s=o?"bottom":"right";if(e[a]<i[a]||e[a]>i[s])return!1}return!0},_optionChangedToIndex:function(e){var t=e.value;if(this._isIndicateMode()){var n=null!==t&&t>=0;this._togglePlaceholder(n),n&&this._movePlaceholder()}else this._moveItems(e.previousValue,e.value)},_makeLeftCorrection:function(e,t){var n=this,i=n._$scrollable;return i&&n._isVerticalOrientation()&&i.scrollLeft()>t&&(e+=i.scrollLeft()-t),e},_movePlaceholder:function(){var e=this,t=e._$placeholderElement||e._createPlaceholder(),n=e._getItems(),i=e.option("toIndex"),o=n[i],a=n[i-1],s=e._isVerticalOrientation(),l=null,u=0;if(e._updatePlaceholderSizes(t,o),o){var d=(0,r.default)(o);l=d.offset(),u=parseFloat(d.css("marginLeft"))}else a&&(l=(0,r.default)(a).offset(),l.top+=s?(0,r.default)(a).outerHeight(!0):(0,r.default)(a).outerWidth(!0));l&&!e._isPositionVisible(l)&&(l=null),l&&(l.left=e._makeLeftCorrection(l.left,u),e._move(l,t)),t.toggle(!!l)},_getPositions:function(e,t,n,i){for(var o=[],a=0;a<e.length;a++){var r=0;null!==i&&null!==n?(n===-1?a>=i&&(r=t):i===-1?a>n&&(r=-t):n<i?a>n&&a<i&&(r=-t):n>i&&a>=i&&a<n&&(r=t),o.push(r)):o.push(r)}return o},_moveItems:function(e,t){for(var n=this.option("fromIndex"),i=this._isVerticalOrientation(),a=i?"top":"left",s=this._getDraggableElement(),l=i?(s.outerHeight()+s.outerHeight(!0))/2:(s.outerWidth()+s.outerWidth(!0))/2,d=this._getItems(),c=this._getPositions(d,l,n,e),h=this._getPositions(d,l,n,t),p=this.option("animation"),g=0;g<d.length;g++){var m=(0,r.default)(d[g]),v=c[g],y=h[g];null===t||null===n?(_.default.stop(m),f.default.resetPosition(m)):v!==y&&(_.default.stop(m),_.default.animate(m,(0,u.extend)({},p,{to:o({},a,y)})))}},_toggleDragSourceClass:function(e,t){var n=t||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||n&&n.toggleClass(this._addWidgetPrefix("source-hidden"),e)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(e){var t=this._getEventArgs(e);return this._getAction("onAdd")(t),t.cancel},_fireRemoveEvent:function(e){var t=this._getSourceDraggable(),n=this._getEventArgs(e);return t._getAction("onRemove")(n),n.cancel},_fireReorderEvent:function(e){var t=this._getEventArgs(e);this._getAction("onReorder")(t)}});(0,l.default)(m,w),e.exports=w},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(0),s=n(10),l=i(s),u=n(93),d=i(u),c=n(19),h=i(c),p=n(6);e.exports={_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e,t=this.$element(),n=this.option("searchEnabled"),i=this._addWidgetPrefix("search"),o=this._addWidgetPrefix("with-search");return n?(e=this._getSearchEditorOptions(),void(this._searchEditor?this._searchEditor.option(e):(t.addClass(o),this._$searchEditorElement=(0,a.default)("<div>").addClass(i).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,d.default,e)))):(t.removeClass(o),void this._removeSearchBox())},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions"),n=l.default.format("Search");return(0,r.extend)({mode:"search",placeholder:n,tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":n},onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new p.Deferred,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout(function(){e._valueChangeDeferred.resolve()},n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_cleanAria:function(e){this.setAria({role:null,activedescendant:null},e),e.attr("tabIndex",null)},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void h.default.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){return!this.option("focusedElement")&&this.option("searchEnabled")?void(this._searchEditor&&this._searchEditor.focus()):void this.callBase()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}}},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(89),a=n(18),r=n(4),s=n(1),l=n(0).extend,u=n(83),d=n(46),c=n(71),h=n(6).Deferred,p=l({},u,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new d.DataSource({store:new c(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=a.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=a.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new h;return e=this._unwrappedValue(e),s.isDefined(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail(function(){t.reject()}),t.promise()):t.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){return e=s.isDefined(e)?e:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),o.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},o=0,a=t.length;o<a;o++)n[t[o]]=e[t[o]];return n}return t&&"object"===("undefined"==typeof e?"undefined":i(e))&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=s.isDefined,o=this._compareValues(e,t);return!o&&n&&i(e)&&i(t)&&(o=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),o},_compareByCompositeKey:function(e,t,n){var i=s.isObject;if(!i(e)||!i(t))return!1;for(var o=0,a=n.length;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},_compareByKey:function(e,t,n){var i=r.ensureDefined,a=o.unwrap,s=i(a(e[n]),e),l=i(a(t[n]),t);return this._compareValues(s,l)},_compareValues:function(e,t){return a.toComparable(e,!0)===a.toComparable(t,!0)},_initDynamicTemplates:r.noop,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var e=this.option("valueExpr"),t=s.isString(e)&&"this"!==e||s.isFunction(e);return t?e:null},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});e.exports=p},function(e,t,n){e.exports=n(540)},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(1),u=i(l),d=n(11),c=n(9),h=i(c),p=n(0),f=n(17),g=i(f),_=n(100),m=n(7),v=n(562),y=i(v),w=n(563),x=i(w),b=n(564),C=i(b),k=n(197),I=n(20),S=i(I),D=n(39),T=i(D),E=n(6),O="dx-drawer",A="dx-drawer-wrapper",P="dx-drawer-panel-content",B="dx-drawer-content",M="dx-drawer-shader",F="dx-state-invisible",R="dx-drawer-opened",V="content",H=g.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:"content",target:void 0})},_getAnonymousTemplateName:function(){return V},_init:function(){this.callBase(),this._initStrategy(),this.$element().addClass(O),this._animations=[],this._animationPromise=void 0,this._whenPanelRendered=void 0,this._whenPanelRefreshed=void 0,this._initHideTopOverlayHandler(),this._initContentMarkup()},_initStrategy:function(){var e=this.option("openedStateMode"),t=this._getDefaultStrategy();"push"===e&&(t=y.default),"shrink"===e&&(t=x.default),"overlap"===e&&(t=C.default),this._strategy=new t(this)},_initContentMarkup:function(){this._$wrapper=(0,a.default)("<div>").addClass(A),this._$contentWrapper=(0,a.default)("<div>").addClass(B),this._$wrapper.append(this._$contentWrapper),this.$element().append(this._$wrapper)},_getDefaultStrategy:function(){return y.default},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hide.bind(this)},_initTemplates:function(){this.callBase(),this._defaultTemplates.panel=new _.EmptyTemplate,this._defaultTemplates.content=new _.EmptyTemplate},_initCloseOnOutsideClickHandler:function(){s.default.off(this._$contentWrapper,S.default.name),s.default.on(this._$contentWrapper,S.default.name,this._outsideClickHandler.bind(this))},_outsideClickHandler:function(e){var t=this.option("closeOnOutsideClick");u.default.isFunction(t)&&(t=t(e)),t&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&e.preventDefault(),this.hide(),this._toggleShaderVisibility(!1))},_initMarkup:function(){this.callBase(),this._toggleVisibleClass(this.option("opened")),this._renderPanelElement(),this._refreshModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._whenPanelRendered=new E.Deferred,this._strategy.renderPanel(this._getTemplate(this.option("template")),this._whenPanelRendered);var e=this.option("contentTemplate"),t=this._getTemplate(e),n=this._getAnonymousTemplateName()===e;t&&t.render({container:this.viewContent(),noModel:!0,transclude:n}),this._initCloseOnOutsideClickHandler(),this._refreshPositionClass()},_render:function(){var e=this;this._initSize(),this.callBase(),this._whenPanelRendered.always(function(){e._initSize(),e._strategy.setPanelSize("slide"===e.option("revealMode")||!e.isHorizontalDirection()),e._renderPosition(e.option("opened"),!1)})},_renderPanelElement:function(){this._$panel=(0,a.default)("<div>").addClass(P),this._$wrapper.append(this._$panel)},_refreshModeClass:function(e){e&&this.$element().removeClass(O+"-"+e),this.$element().addClass(O+"-"+this.option("openedStateMode"))},_refreshPositionClass:function(e){e&&this.$element().removeClass(O+"-"+e);var t=this.getDrawerPosition();this.$element().addClass(O+"-"+t),this._orderContent(t)},_orderContent:function(e){this._strategy.needOrderContent(e,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$contentWrapper):this._$wrapper.prepend(this._$panel)},_refreshRevealModeClass:function(e){e&&this.$element().removeClass(O+"-"+e),this.$element().addClass(O+"-"+this.option("revealMode"))},_renderShader:function(){this._$shader=this._$shader||(0,a.default)("<div>").addClass(M),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize:function(){var e=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||e,this._minSize=this.option("minSize")||0},getDrawerPosition:function(){var e=this.option("position"),t=this.option("rtlEnabled");return"before"===e?t?"right":"left":"after"===e?t?"left":"right":e},getOverlayTarget:function(){return this.option("target")||this._$wrapper},getOverlay:function(){return this._overlay},getMaxSize:function(){return this._maxSize},getMinSize:function(){return this._minSize},getRealPanelWidth:function(){return(0,m.hasWindow)()?u.default.isDefined(this.option("templateSize"))?this.option("templateSize"):this.getElementWidth(this._strategy.getPanelContent()):0},getElementWidth:function(e){var t=e.children();return t.length?t.eq(0).get(0).getBoundingClientRect().width:e.get(0).getBoundingClientRect().width},getRealPanelHeight:function(){return(0,m.hasWindow)()?u.default.isDefined(this.option("templateSize"))?this.option("templateSize"):this.getElementHeight(this._strategy.getPanelContent()):0},getElementHeight:function(e){var t=e.children();return t.length?t.eq(0).get(0).getBoundingClientRect().height:e.get(0).getBoundingClientRect().height},isHorizontalDirection:function(){var e=this.getDrawerPosition();return"left"===e||"right"===e},stopAnimations:function(e){T.default.stop(this._$shader,e),T.default.stop((0,a.default)(this.content()),e),T.default.stop((0,a.default)(this.viewContent()),e);var t=this.getOverlay();t&&T.default.stop((0,a.default)(t.$content()),e)},setZIndex:function(e){this._$shader.css("zIndex",e-1),this._$panel.css("zIndex",e)},resizeContent:function(){(0,d.triggerResizeEvent)(this.viewContent())},_isInvertedPosition:function(){var e=this.getDrawerPosition();return"right"===e||"bottom"===e},_renderPosition:function(e,t,n){if(this.stopAnimations(n),this._animations=[],t=u.default.isDefined(t)?t&&this.option("animationEnabled"):this.option("animationEnabled"),(0,m.hasWindow)()){var i=this.option("animationDuration");e&&this._toggleShaderVisibility(e),this._strategy.renderPosition(e,t),this._strategy.renderShaderVisibility(e,t,i)}},_animationCompleteHandler:function(){this.resizeContent(),this._animationPromise&&(this._animationPromise.resolve(),this._animations=[])},_getPositionCorrection:function(){return this._isInvertedPosition()?-1:1},_dispose:function(){k.animation.complete((0,a.default)(this.viewContent())),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._initSize(),this._strategy.setPanelSize("slide"===this.option("revealMode"))},_toggleShaderVisibility:function(e){this.option("shading")?(this._$shader.toggleClass(F,!e),this._$shader.css("visibility",e?"visible":"hidden")):this._$shader.toggleClass(F,!0)},_toggleVisibleClass:function(e){this.$element().toggleClass(R,e)},_refreshPanel:function(){var e=this;this._setInitialViewContentPosition(),this._cleanPanel(),this._renderPanelElement(),this._orderContent(this.getDrawerPosition()),this._whenPanelRefreshed=new E.Deferred,this._strategy.renderPanel(this._getTemplate(this.option("template")),this._whenPanelRefreshed),(0,m.hasWindow)()&&this._whenPanelRefreshed.always(function(){e._strategy.setPanelSize("slide"===e.option("revealMode")),e._renderPosition(e.option("opened"),!1,!0)})},_setInitialViewContentPosition:function(){(0,a.default)(this.viewContent()).css("paddingLeft",0),(0,a.default)(this.viewContent()).css("left",0),(0,a.default)(this.viewContent()).css("transform","translate(0px, 0px)")},_clean:function(){this._cleanFocusState(),this._cleanPanel()},_cleanPanel:function(){this._$panel&&this._$panel.remove(),this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panel)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"opened":this._renderPosition(e.value),this._toggleVisibleClass(e.value);break;case"position":this._refreshPositionClass(e.previousValue),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":case"target":this._initStrategy(),this._refreshModeClass(e.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initSize(),this._renderPosition(this.option("opened"),!1);break;case"revealMode":this._refreshRevealModeClass(e.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(e)}},content:function(){return(0,d.getPublicElement)(this._$panel)},viewContent:function(){return(0,d.getPublicElement)(this._$contentWrapper)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},toggle:function(e){return e=void 0===e?!this.option("opened"):e,this._animationPromise=new E.Deferred,this.option("opened",e),this._animationPromise.promise()}});(0,h.default)("dxDrawer",H),e.exports=H},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getElementMaxHeightByWindow=void 0;var o=n(2),a=i(o),r=n(7),s=.9;t.getElementMaxHeightByWindow=function(e){var t=(0,r.getWindow)(),n=e.offset().top-(0,a.default)(t).scrollTop(),i=(0,a.default)(t).innerHeight()-n-e.outerHeight();return Math.max(n,i)*s}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(34),h=i(c),p=n(7),f=n(5),g=i(f),_=n(9),m=i(_),v=n(26),y=i(v),w=n(1),x=n(3),b=n(0),C=n(14),k=n(6),I=n(62),S=i(I),D=n(48),T=i(D),E=n(35),O=i(E),A=n(255),P=i(A),B=n(25),M=i(B),F=n(16),R=i(F),V=n(8),H=i(V),L=n(20),z=i(L),$=n(10),N=i($),W=n(31),j=i(W),q=(0,p.getWindow)(),G="dx-fileuploader",K="dx-fileuploader-empty",U="dx-fileuploader-show-file-list",Y="dx-fileuploader-dragover",X="dx-fileuploader-wrapper",Z="dx-fileuploader-container",Q="dx-fileuploader-content",J="dx-fileuploader-input-wrapper",ee="dx-fileuploader-input-container",te="dx-fileuploader-input-label",ne="dx-fileuploader-input",ie="dx-fileuploader-files-container",oe="dx-fileuploader-file-container",ae="dx-fileuploader-file-info",re="dx-fileuploader-file-status-message",se="dx-fileuploader-file",le="dx-fileuploader-file-name",ue="dx-fileuploader-file-size",de="dx-fileuploader-button",ce="dx-fileuploader-button-container",he="dx-fileuploader-cancel-button",pe="dx-fileuploader-upload-button",fe="dx-fileuploader-invalid",ge=400,_e="chunkMetadata",me=function(){return(0,d.default)("<input>").attr("type","file")},ve=function(){return!!q.FormData},ye=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_supportedKeys",value:function(){var e=this,n=function(t){t.preventDefault();var n=e._selectButton.$element();g.default.trigger(n,z.default.name)};return(0,b.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{space:n,enter:n})}},{key:"_setOptionsByReference",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setOptionsByReference",this).call(this),(0,b.extend)(this._optionsByReference,{value:!0})}},{key:"_getDefaultOptions",value:function(){return(0,b.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{chunkSize:0,value:[],selectButtonText:N.default.format("dxFileUploader-selectFile"),uploadButtonText:N.default.format("dxFileUploader-upload"),labelText:N.default.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,readyToUploadMessage:N.default.format("dxFileUploader-readyToUpload"),uploadedMessage:N.default.format("dxFileUploader-uploaded"),uploadFailedMessage:N.default.format("dxFileUploader-uploadFailedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},onUploadStarted:null,onUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,invalidFileExtensionMessage:N.default.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:N.default.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:N.default.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return"desktop"===R.default.real().deviceType&&!R.default.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:function(){return"desktop"!==R.default.real().deviceType},options:{useDragOver:!1}},{device:function(){return!ve()},options:{uploadMode:"useForm"}},{device:function(){return M.default.msie||"desktop"!==R.default.real().deviceType},options:{nativeDropSupported:!1}},{device:function(){return j.default.isMaterial()},options:{_uploadButtonType:"default"}}])}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createUploadStartedAction(),this._createUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction()}},{key:"_setUploadStrategy",value:function(){var e=null;if(this.option("chunkSize")>0){var t=this.option("uploadChunk");e=t&&(0,w.isFunction)(t)?new ke(this):new Ce(this)}else{var n=this.option("uploadFile");e=n&&(0,w.isFunction)(n)?new De(this):new Se(this)}this._uploadStrategy=e}},{key:"_initFileInput",value:function(){var e=this;this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=me(),g.default.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),g.default.on(this._$fileInput,"click",function(t){return t.stopPropagation(),e.option("useNativeInputClick")||e._isCustomClickEvent})),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})}},{key:"_inputChangeHandler",value:function(){if(!this._doPreventInputChange){var e=this._$fileInput.val().replace(/^.*\\/,""),t=this._$fileInput.prop("files");if(!t||t.length){var n=t?this._getFiles(t):[{name:e}];this._changeValue(n),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}}},{key:"_shouldFileListBeExtended",value:function(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}},{key:"_removeDuplicates",value:function(e,t){for(var n=[],i=0;i<t.length;i++)this._isFileInArray(e,t[i])||n.push(t[i]);return n}},{key:"_isFileInArray",value:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.size===t.size&&i.name===t.name)return!0}return!1}},{key:"_changeValue",value:function(e){var t=this._shouldFileListBeExtended()?this.option("value").slice():[];"instantly"!==this.option("uploadMode")&&(e=this._removeDuplicates(t,e)),this.option("value",t.concat(e))}},{key:"_getFiles",value:function(e){var t=[];return(0,x.each)(e,function(e,n){return t.push(n)}),t}},{key:"_initLabel",value:function(){this._$inputLabel||(this._$inputLabel=(0,d.default)("<div>")),this._$inputLabel.text(this.option("labelText"))}},{key:"_focusTarget",value:function(){return this.$element().find("."+de)}},{key:"_getSubmitElement",value:function(){return this._$fileInput}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass(G),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0}},{key:"_render",value:function(){this._preventRecreatingFiles=!1,this._renderDragEvents(),this._renderFiles(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this)}},{key:"_createFileProgressBar",value:function(e){e.progressBar=this._createProgressBar(e.value.size),e.progressBar.$element().appendTo(e.$file),this._initStatusMessage(e),this._initCancelButton(e)}},{key:"_setStatusMessage",value:function(e,t){var n=this;setTimeout(function(){n.option("showFileList")&&(e.$statusMessage.text(n.option(t)),e.$statusMessage.css("display",""),e.progressBar.$element().remove())},ge)}},{key:"_createFiles",value:function(){var e=this,t=this.option("value");!this._files||0!==t.length&&this._shouldFileListBeExtended()||(this._preventFilesUploading(this._files),
this._files=null),this._files||(this._files=[]),(0,x.each)(t.slice(this._files.length),function(t,n){var i=e._createFile(n);e._validateFile(i),e._files.push(i)})}},{key:"_preventFilesUploading",value:function(e){var t=this;e.forEach(function(e){return t._uploadStrategy.abortUpload(e)})}},{key:"_validateFile",value:function(e){e.isValidFileExtension=this._validateFileExtension(e),e.isValidMinSize=this._validateMinFileSize(e),e.isValidMaxSize=this._validateMaxFileSize(e)}},{key:"_validateFileExtension",value:function(e){var t=this.option("allowedFileExtensions"),n=e.value.name.substring(e.value.name.lastIndexOf(".")).toLowerCase();if(0===t.length)return!0;for(var i=0;i<t.length;i++)if(n===t[i].toLowerCase())return!0;return!1}},{key:"_validateMaxFileSize",value:function(e){var t=e.value.size,n=this.option("maxFileSize");return!(n>0)||t<=n}},{key:"_validateMinFileSize",value:function(e){var t=e.value.size,n=this.option("minFileSize");return!(n>0)||t>=n}},{key:"_createUploadStartedAction",value:function(){this._uploadStartedAction=this._createActionByOption("onUploadStarted")}},{key:"_createUploadedAction",value:function(){this._uploadedAction=this._createActionByOption("onUploaded")}},{key:"_createProgressAction",value:function(){this._progressAction=this._createActionByOption("onProgress")}},{key:"_createUploadAbortedAction",value:function(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted")}},{key:"_createUploadErrorAction",value:function(){this._uploadErrorAction=this._createActionByOption("onUploadError")}},{key:"_createFile",value:function(e){return{value:e,loadedSize:0,onProgress:(0,y.default)(),onAbort:(0,y.default)(),onLoad:(0,y.default)(),onError:(0,y.default)(),onLoadStart:(0,y.default)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid:function(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize}}}},{key:"_renderFiles",value:function(){var e=this,t=this.option("value");this._$filesContainer?this._shouldFileListBeExtended()&&0!==t.length||this._$filesContainer.empty():this._$filesContainer=(0,d.default)("<div>").addClass(ie).appendTo(this._$content);var n=this.option("showFileList");n&&(0,x.each)(this._files,function(t,n){n.$file||e._renderFile(n)}),this.$element().toggleClass(U,n),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),this._$validationMessage&&this._$validationMessage.dxOverlay("instance").repaint()}},{key:"_renderFile",value:function(e){var t=e.value,n=(0,d.default)("<div>").addClass(oe).appendTo(this._$filesContainer);this._renderFileButtons(e,n),e.$file=(0,d.default)("<div>").addClass(se).appendTo(n);var i=(0,d.default)("<div>").addClass(ae).appendTo(e.$file);e.$statusMessage=(0,d.default)("<div>").addClass(re).appendTo(e.$file),(0,d.default)("<div>").addClass(le).text(t.name).appendTo(i),(0,w.isDefined)(t.size)&&(0,d.default)("<div>").addClass(ue).text(this._getFileSize(t.size)).appendTo(i),e.isValid()?e.$statusMessage.text(this.option("readyToUploadMessage")):(e.isValidFileExtension||e.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),e.isValidMaxSize||e.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),e.isValidMinSize||e.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),n.addClass(fe))}},{key:"_createValidationElement",value:function(e){return(0,d.default)("<span>").text(this.option(e))}},{key:"_updateFileNameMaxWidth",value:function(){var e=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,t="useButtons"===this.option("uploadMode")?1:0,n=this._$filesContainer.find("."+oe).first().width()||this._$filesContainer.width(),i=this._$filesContainer.find("."+ce).eq(0),o=i.width()*(e+t),a=this._$filesContainer.find("."+ue).eq(0),r=a.text();a.text("1000 Mb");var s=a.width();a.text(r),this._$filesContainer.find("."+le).css("maxWidth",n-o-s)}},{key:"_renderFileButtons",value:function(e,t){var n=this._getCancelButton(e);n&&t.append(n);var i=this._getUploadButton(e);i&&t.append(i)}},{key:"_getCancelButton",value:function(e){var t=this;return"useForm"===this.option("uploadMode")?null:(e.cancelButton=this._createComponent((0,d.default)("<div>").addClass(de+" "+he),O.default,{onClick:function(){return t._removeFile(e)},icon:"close",visible:this.option("allowCanceling"),integrationOptions:{}}),(0,d.default)("<div>").addClass(ce).append(e.cancelButton.$element()))}},{key:"_getUploadButton",value:function(e){var t=this;return e.isValid()&&"useButtons"===this.option("uploadMode")?(e.uploadButton=this._createComponent((0,d.default)("<div>").addClass(de+" "+pe),O.default,{onClick:function(){return t._uploadFile(e)},icon:"upload"}),e.onLoadStart.add(function(){return e.uploadButton.$element().remove()}),(0,d.default)("<div>").addClass(ce).append(e.uploadButton.$element())):null}},{key:"_removeFile",value:function(e){e.$file.parent().remove(),this._files.splice((0,C.inArray)(e,this._files),1);var t=this.option("value").slice();t.splice((0,C.inArray)(e.value,t),1),this._preventRecreatingFiles=!0,this.option("value",t),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1}},{key:"_toggleFileUploaderEmptyClassName",value:function(){this.$element().toggleClass(K,!this._files.length||this._hasInvalidFile(this._files))}},{key:"_hasInvalidFile",value:function(e){for(var t=0;t<e.length;t++)if(!e[t].isValid())return!0;return!1}},{key:"_getFileSize",value:function(e){for(var t=0,n=[N.default.format("dxFileUploader-bytes"),N.default.format("dxFileUploader-kb"),N.default.format("dxFileUploader-Mb"),N.default.format("dxFileUploader-Gb")],i=n.length-1;t<i&&e>=1024;)e/=1024,t++;return Math.round(e)+" "+n[t]}},{key:"_renderSelectButton",value:function(){var e=(0,d.default)("<div>").addClass(de).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(e,O.default,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{}}),"desktop"===R.default.real().deviceType?this._selectButton.option("onClick",this._selectButtonClickHandler.bind(this)):(g.default.off(e,"click"),g.default.on(e,"click",this._selectButtonClickHandler.bind(this)))}},{key:"_selectButtonClickHandler",value:function(){if(!this.option("useNativeInputClick")){if(this.option("disabled"))return!1;this._isCustomClickEvent=!0,g.default.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}},{key:"_renderUploadButton",value:function(){if("useButtons"===this.option("uploadMode")){var e=(0,d.default)("<div>").addClass(de).addClass(pe).appendTo(this._$content);this._uploadButton=this._createComponent(e,O.default,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{}})}}},{key:"_uploadButtonClickHandler",value:function(){this._uploadFiles()}},{key:"_shouldDragOverBeRendered",value:function(){return"useForm"!==this.option("uploadMode")||this.option("nativeDropSupported")}},{key:"_renderInputContainer",value:function(){this._$inputContainer=(0,d.default)("<div>").addClass(ee).appendTo(this._$inputWrapper),this._shouldDragOverBeRendered()||this._$inputContainer.css("display","none"),this._$fileInput.addClass(ne),this._renderInput(),this._$inputLabel.addClass(te).appendTo(this._$inputContainer)}},{key:"_renderInput",value:function(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content"))}},{key:"_selectButtonInputTemplate",value:function(e,t){var n=(0,d.default)(t),i=(0,d.default)("<span>").addClass("dx-button-text").text(e.text);return n.append(i).append(this._$fileInput),n}},{key:"_renderInputWrapper",value:function(){this._$inputWrapper=(0,d.default)("<div>").addClass(J).appendTo(this._$content)}},{key:"_renderDragEvents",value:function(){g.default.off(this._$inputWrapper,"."+this.NAME),this._shouldDragOverBeRendered()&&(this._dragEventsTargets=[],g.default.on(this._$inputWrapper,H.default.addNamespace("dragenter",this.NAME),this._dragEnterHandler.bind(this)),g.default.on(this._$inputWrapper,H.default.addNamespace("dragover",this.NAME),this._dragOverHandler.bind(this)),g.default.on(this._$inputWrapper,H.default.addNamespace("dragleave",this.NAME),this._dragLeaveHandler.bind(this)),g.default.on(this._$inputWrapper,H.default.addNamespace("drop",this.NAME),this._dropHandler.bind(this)))}},{key:"_useInputForDrop",value:function(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}},{key:"_dragEnterHandler",value:function(e){return!this.option("disabled")&&(this._useInputForDrop()||e.preventDefault(),this._updateEventTargets(e),void this.$element().addClass(Y))}},{key:"_dragOverHandler",value:function(e){this._useInputForDrop()||e.preventDefault()}},{key:"_dragLeaveHandler",value:function(e){this._useInputForDrop()||e.preventDefault(),this._updateEventTargets(e),this._dragEventsTargets.length||this.$element().removeClass(Y)}},{key:"_updateEventTargets",value:function(e){var t=this._dragEventsTargets.indexOf(e.target),n=t!==-1;"dragenter"===e.type?!n&&this._dragEventsTargets.push(e.target):n&&this._dragEventsTargets.splice(t,1)}},{key:"_dropHandler",value:function(e){if(this._dragEventsTargets=[],this.$element().removeClass(Y),!this._useInputForDrop()){e.preventDefault();var t=e.originalEvent.dataTransfer.files,n=this._getFiles(t);!this.option("multiple")&&n.length>1||(this._changeValue(this._filterFiles(n)),"instantly"===this.option("uploadMode")&&this._uploadFiles())}}},{key:"_filterFiles",value:function(e){if(!e.length)return e;var t=this.option("accept");if(!t.length)return e;for(var n=[],i=this._getAllowedFileTypes(t),o=0,a=e.length;o<a;o++)this._isFileTypeAllowed(e[o],i)&&n.push(e[o]);return n}},{key:"_getAllowedFileTypes",value:function(e){return e.length?e.split(",").map(function(e){return e.trim()}):[]}},{key:"_isFileTypeAllowed",value:function(e,t){for(var n=0,i=t.length;n<i;n++){var o=t[n];if("."===o[0]){if(o=o.replace(".","\\."),e.name.match(new RegExp(o+"$","i")))return!0}else if(o=o.replace("*",""),e.type.match(new RegExp(o,"i")))return!0}return!1}},{key:"_renderWrapper",value:function(){var e=(0,d.default)("<div>").addClass(X).appendTo(this.$element()),t=(0,d.default)("<div>").addClass(Z).appendTo(e);this._$content=(0,d.default)("<div>").addClass(Q).appendTo(t)}},{key:"_clean",value:function(){this._$fileInput.detach(),delete this._$filesContainer,this._files&&this._files.forEach(function(e){e.$file=null,e.$statusMessage=null}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_uploadFiles",value:function(){var e=this;ve()&&(0,x.each)(this._files,function(t,n){return e._uploadFile(n)})}},{key:"_uploadFile",value:function(e){this._uploadStrategy.upload(e)}},{key:"_updateProgressBar",value:function(e,t){e.progressBar&&e.progressBar.option({value:t.loaded,showStatus:!0}),this._progressAction({file:e.value,segmentSize:t.currentSegmentSize,bytesLoaded:t.loaded,bytesTotal:t.total,event:t.event,request:e.request})}},{key:"_updateTotalProgress",value:function(e,t){var n=e?Math.round(t/e*100):0;this.option("progress",n),this._setLoadedSize(t)}},{key:"_initStatusMessage",value:function(e){e.$statusMessage.css("display","none")}},{key:"_initCancelButton",value:function(e){var t=this;e.cancelButton.option("onClick",function(){t._preventFilesUploading([e]),t._removeFile(e)});var n=function(){setTimeout(function(){e.cancelButton.option({visible:!1})},ge)};e.onLoad.add(n),e.onError.add(n)}},{key:"_createProgressBar",value:function(e){return this._createComponent((0,d.default)("<div>"),P.default,{value:void 0,min:0,max:e,statusFormat:function(e){return Math.round(100*e)+"%"},showStatus:!1,statusPosition:"right"})}},{key:"_getTotalFilesSize",value:function(){var e=this;return this._totalFilesSize||(this._totalFilesSize=0,(0,x.each)(this._files,function(t,n){e._totalFilesSize+=n.value.size})),this._totalFilesSize}},{key:"_getTotalLoadedFilesSize",value:function(){var e=this;return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,x.each)(this._files,function(t,n){e._totalLoadedFilesSize+=n.loadedSize})),this._totalLoadedFilesSize}},{key:"_setLoadedSize",value:function(e){this._totalLoadedFilesSize=e}},{key:"_recalculateProgress",value:function(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}},{key:"_getValidationMessageTarget",value:function(){return this._$inputWrapper}},{key:"_optionChanged",value:function(e){var n=e.value;switch(e.name){case"height":case"width":this._updateFileNameMaxWidth(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e);break;case"value":!n.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e);break;case"name":this._initFileInput(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),e.value||this.reset();break;case"selectButtonText":this._selectButton.option("text",n);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",n);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",n);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":this._invalidate();break;case"labelText":this._$inputLabel.text(n);break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"extendSelection":break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._renderDragEvents();break;case"nativeDropSupported":this._invalidate();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"reset",value:function(){this.option("value",[])}}]),t}(T.default),we=function(){function e(t,n){o(this,e),this.file=t,this.chunkSize=n,this.index=0}return s(e,[{key:"read",value:function(){if(!this.file)return null;var e=this.createBlobResult(this.file,this.index,this.chunkSize);return e.isCompleted&&(this.file=null),this.index++,e}},{key:"createBlobResult",value:function(e,t,n){var i=t*n;return{blob:this.sliceFile(e,i,n),index:t,isCompleted:i+n>=e.size}}},{key:"sliceFile",value:function(e,t,n){return e.slice?e.slice(t,t+n):e.webkitSlice?e.webkitSlice(t,t+n):null}}]),e}(),xe=function(){function e(t){o(this,e),this.fileUploader=t}return s(e,[{key:"upload",value:function(e){e.isValid()&&!e.uploadStarted&&(this._prepareFileBeforeUpload(e),this._uploadCore(e))}},{key:"abortUpload",value:function e(t){var n=this;if(!(t._isError||t._isLoaded||t.isAborted)&&(t.request&&t.request.abort(),t.isAborted=!0,this._isCustomAbortUpload())){var e=this.fileUploader.option("abortUpload"),i=this._createAbortUploadArgument(t),o=null;try{var a=e(t.value,i);o=(0,k.when)(a)}catch(e){o=(new k.Deferred).reject(e).promise()}o.done(function(){return t.onAbort.fire()}).fail(function(e){return n._handleFileError(t,e)})}}},{key:"_createAbortUploadArgument",value:function(e){}},{key:"_uploadCore",value:function(e){}},{key:"_isCustomAbortUpload",value:function(){var e=this.fileUploader.option("abortUpload");return e&&(0,w.isFunction)(e)}},{key:"_handleFileError",value:function(e,t){e._isError=!0,e.onError.fire(t)}},{key:"_prepareFileBeforeUpload",value:function(e){e.$file&&this.fileUploader._createFileProgressBar(e),e.onLoadStart.add(this._onUploadStarted.bind(this,e)),e.onLoad.add(this._onLoadedHandler.bind(this,e)),e.onError.add(this._onErrorHandler.bind(this,e)),e.onAbort.add(this._onAbortHandler.bind(this,e)),e.onProgress.add(this._onProgressHandler.bind(this,e))}},{key:"_isStatusError",value:function(e){return 400<=e&&e<500||500<=e&&e<600}},{key:"_onUploadStarted",value:function(e,t){e.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:e.value,event:t,request:e.request})}},{key:"_onAbortHandler",value:function(e,t){this.fileUploader._uploadAbortedAction({file:e.value,event:t,request:e.request})}},{key:"_onErrorHandler",value:function(e,t){this.fileUploader._setStatusMessage(e,"uploadFailedMessage"),this.fileUploader._uploadErrorAction({file:e.value,event:void 0,request:e.request,error:t})}},{key:"_onLoadedHandler",value:function(e,t){e._isLoaded=!0,this.fileUploader._setStatusMessage(e,"uploadedMessage"),this.fileUploader._uploadedAction({file:e.value,event:t,request:e.request})}},{key:"_onProgressHandler",value:function(e,t){if(e){var n=this.fileUploader._getTotalFilesSize(),i=this.fileUploader._getTotalLoadedFilesSize(),o=Math.min(t.loaded,e.value.size),a=o-e.loadedSize;e.loadedSize=o,this.fileUploader._updateTotalProgress(n,i+a),this.fileUploader._updateProgressBar(e,this._getLoadedData(o,t.total,a,t))}}},{key:"_getLoadedData",value:function(e,t,n,i){return{loaded:e,total:t,currentSegmentSize:n}}}]),e}(),be=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.chunkSize=n.fileUploader.option("chunkSize"),n}return r(t,e),s(t,[{key:"_uploadCore",value:function(e){var t=e.value,n={name:t.name,loadedBytes:0,type:t.type,blobReader:new we(t,this.chunkSize),guid:new h.default,fileSize:t.size,count:Math.ceil(t.size/this.chunkSize),customData:{}};e.chunksData=n,this._sendChunk(e,n)}},{key:"_sendChunk",value:function(e,t){var n=this,i=t.blobReader.read();t.currentChunk=i,i&&this._sendChunkCore(e,t,i).done(function(){e.isAborted||(t.loadedBytes+=i.blob.size,e.onProgress.fire({loaded:t.loadedBytes,total:e.value.size}),i.isCompleted&&e.onLoad.fire(),n._sendChunk(e,t))}).fail(function(t){n._shouldHandleError(t)&&n._handleFileError(e,t)})}},{key:"_sendChunkCore",value:function(e,t,n){}},{key:"_shouldHandleError",value:function(e){}},{key:"_tryRaiseStartLoad",value:function(e){e.isStartLoad||(e.isStartLoad=!0,e.onLoadStart.fire())}},{key:"_getEvent",value:function(e){return null}}]),t}(xe),Ce=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_sendChunkCore",value:function(e,t,n){var i=this;return S.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){e.request=t},upload:{onloadstart:function(){return i._tryRaiseStartLoad(e)},onabort:function(){return e.onAbort.fire()}},data:this._createFormData({fileName:t.name,blobName:this.fileUploader.option("name"),blob:n.blob,index:n.index,count:t.count,type:t.type,guid:t.guid,size:t.fileSize})})}},{key:"_shouldHandleError",value:function(e){return this._isStatusError(e.status)}},{key:"_createFormData",value:function(e){var t=new q.FormData;return t.append(e.blobName,e.blob),t.append(_e,JSON.stringify({FileName:e.fileName,Index:e.index,TotalCount:e.count,FileSize:e.size,FileType:e.type,FileGuid:e.guid})),t}}]),t}(be),ke=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_sendChunkCore",value:function(e,t){this._tryRaiseStartLoad(e);var n=this._createChunksInfo(t),i=this.fileUploader.option("uploadChunk");try{var o=i(e.value,n);return(0,k.when)(o)}catch(e){return(new k.Deferred).reject(e).promise()}}},{key:"_createAbortUploadArgument",value:function(e){return this._createChunksInfo(e.chunksData)}},{key:"_shouldHandleError",value:function(e){return!0}},{key:"_createChunksInfo",value:function(e){return{bytesUploaded:e.loadedBytes,chunkCount:e.count,customData:e.customData,chunkBlob:e.currentChunk.blob,chunkIndex:e.currentChunk.index}}}]),t}(be),Ie=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_uploadCore",value:function(e){var t=this;e.loadedSize=0,this._uploadFile(e).done(function(){e.isAborted||e.onLoad.fire()}).fail(function(n){t._shouldHandleError(e,n)&&t._handleFileError(e,n)})}},{key:"_uploadFile",value:function(e){}},{key:"_shouldHandleError",value:function(e,t){}},{key:"_handleProgress",value:function(e,t){e._isError||(e._isProgressStarted=!0,e.onProgress.fire(t))}},{key:"_getLoadedData",value:function(e,n,i,o){var a=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getLoadedData",this).call(this,e,n,i,o);return a.event=o,a}}]),t}(xe),Se=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_uploadFile",value:function(e){var t=this;return S.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){e.request=t},upload:{onprogress:function(n){return t._handleProgress(e,n)},onloadstart:function(){return e.onLoadStart.fire()},onabort:function(){return e.onAbort.fire()}},data:this._createFormData(this.fileUploader.option("name"),e.value)})}},{key:"_shouldHandleError",value:function(e,t){return this._isStatusError(t.status)||!e._isProgressStarted}},{key:"_createFormData",value:function(e,t){var n=new q.FormData;return n.append(e,t),n}}]),t}(Ie),De=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_uploadFile",value:function(e){var t=this;e.onLoadStart.fire();var n=function(n){var i={loaded:n,total:e.size};t._handleProgress(e,i)},i=this.fileUploader.option("uploadFile");try{var o=i(e,n);return(0,k.when)(o)}catch(e){return(new k.Deferred).reject(e).promise()}}},{key:"_shouldHandleError",value:function(e,t){return!0}}]),t}(Ie);(0,m.default)("dxFileUploader",ye),e.exports=ye},function(e,t,n){var i=n(2),o=n(256),a=n(0).extend,r=n(1).isFunction,s=n(9),l="dx-progressbar",u="dx-progressbar-container",d="dx-progressbar-range-container",c="dx-progressbar-range",h="dx-progressbar-wrapper",p="dx-progressbar-status",f="dx-progressbar-animating-container",g="dx-progressbar-animating-segment",_=o.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:0,statusFormat:function(e){return"Progress: "+Math.round(100*e)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"android"===e.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass(l),this._$wrapper.addClass(h),this._$bar.addClass(u),this.setAria("role","progressbar"),i("<div>").addClass(d).appendTo(this._$wrapper).append(this._$bar),this._$range.addClass(c),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("<div>").addClass(p)},_renderIndeterminateState:function(){this._$segmentContainer=i("<div>").addClass(f);for(var e=this.option("_animatingSegmentCount"),t=0;t<e;t++)i("<div>").addClass(g).addClass(g+"-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition"),t=e.split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var n="dx-position-"+t[0];t[1]&&(n+="-"+t[1]),this._$wrapper.addClass(n)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");return e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),void this._setStatus()):void this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat");e=r(e)?e.bind(this):function(e){return e};var t=e(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});s("dxProgressBar",_),e.exports=_},function(e,t,n){var i=n(2),o=n(48),a=n(9),r=n(0).extend,s=n(7),l=n(39),u="dx-trackbar",d="dx-trackbar-container",c="dx-trackbar-range",h="dx-trackbar-wrapper",p=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass(u),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(h).appendTo(this.$element())},_renderContainer:function(){this._$bar=i("<div>").addClass(d).appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("<div>").addClass(c).appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){return l.stop(this._$range),e?void(!this._needPreventAnimation&&s.hasWindow()&&l.animate(this._$range,{type:"custom",duration:100,to:e})):void this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){l.stop(this._$range),this.callBase()}});a("dxTrackBar",p),e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(9),a=i(o),r=n(5),s=i(r),l=n(4),u=n(0),d=n(3),c=i(d),h=n(87),p=i(h),f=n(55),g=i(f),_="dx-validationsummary",m=_+"-item",v=_+"-item-data",y=g.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),(0,u.extend)(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this.$element(),t=this.option("validationGroup")||p.default.findGroup(e,this._modelByElement(e)),n=p.default.addGroup(t);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=t,this.groupSubscription=this._groupValidationHandler.bind(this),n.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=p.default.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return c.default.each(e,function(e,i){var o=(0,l.grep)(t,function(e){if(e.validator===i)return!0});o.length&&(n=n.concat(o))}),n},_groupValidationHandler:function(e){var t=this,n=this._getOrderedItems(e.validators,c.default.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator,index:e.index}}));this.validators=e.validators,c.default.each(this.validators,function(e,n){if(n._validationSummary!==t){var i=t._itemValidationHandler.bind(t),o=function(){n.off("validated",i),n._validationSummary=null,i=null};n.on("validated",i),n.on("disposing",o),n._validationSummary=t}}),this.option("items",n)},_itemValidationHandler:function(e){for(var t=e.isValid,n=e.validator,i=e.brokenRules,o=this.option("items"),a=!1,r=0,s=function(){var e=o[r];if(e.validator===n){var s=(0,l.grep)(i||[],function(t){return t.index===e.index})[0];if(t||!s)return o.splice(r,1),a=!0,"continue";s.message!==e.text&&(e.text=s.message,a=!0)}r++};r<o.length;){s()}c.default.each(i,function(e,t){var i=(0,l.grep)(o,function(e){return e.validator===n&&e.index===t.index})[0];i||(o.push({text:t.message,validator:n,index:t.index}),a=!0)}),a&&(o=this._getOrderedItems(this.validators,o),this.option("items",o))},_initMarkup:function(){this.$element().addClass(_),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return m},_itemDataKey:function(){return v},_postprocessRenderItem:function(e){s.default.on(e.itemElement,"click",function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()})},_dispose:function(){this.callBase(),this._unsubscribeGroup()}});(0,a.default)("dxValidationSummary",y),e.exports=y},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){i(this,e),this._converters={}}return o(e,[{key:"addConverter",value:function(e,t){this._converters[e]=t}},{key:"getConverter",value:function(e){return this._converters[e]}}]),e}(),r=new a;t.default=r},function(e,t,n){var i=n(2),o=n(334),a=n(0).extend,r=n(6).Deferred,s=n(73),l=null,u=null,d=function(e){e=a({position:"top"},e);var t=e.content;delete e.content;var n=i("<div>").html(t).appendTo(s.value());u=function(){n.remove()},l=new o(n,e)},c=function(){l&&(u(),l=null)};t.show=function(e){return c(),d(e),l.show()},t.hide=function(){return l?l.hide().done(c).promise():(new r).resolve()}},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(2),r=i(a),s=n(16),l=i(s),u=n(38),d=i(u),c=n(5),h=i(c),p=n(9),f=i(p),g=n(25),_=i(g),m=n(4),v=n(292),y=n(6),w=n(11),x=n(1),b=n(7),C=n(0),k=n(14),I=n(3),S=n(10),D=i(S),T=n(8),E=n(20),O=n(303),A=i(O),P=n(46),B=n(95),M=i(B),F=n(66),R="dxTagData",V="dx-tagbox",H="dx-tag-container",L="dx-tag",z="dx-tagbox-multi-tag",$="dx-tag-custom",N="dx-tag-remove-button",W="dx-tagbox-only-select",j="dx-tagbox-single-line",q="dx-tagbox-popup-wrapper",G="dx-tag-content",K="dx-tagbox-default-template",U="dx-tagbox-custom-template",Y="dx-native-click",X=-.3,Z=M.default.inherit({
_supportedKeys:function(){var e=this,t=arguments,n=this.callBase(),i=function(t){return e._list._keyboardProcessor.process(t)};return(0,C.extend)({},n,{backspace:function(e){if(this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},upArrow:function(o){var a=o.altKey||!e._list?n.upArrow:i;return a.apply(e,t)},downArrow:function(o){var a=o.altKey||!e._list?n.downArrow:i;return a.apply(e,t)},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e){var t=this._list&&null!==this._list.option("focusedElement"),n=this.option("acceptCustomValue")&&!t;return n?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler())):void(this.option("opened")&&(i(e),e.preventDefault()))},space:function(e){var t=this.option("opened"),n=this._shouldRenderSearchEvent();t&&!n&&(i(e),e.preventDefault())},leftArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||!t||this._$focusedTag){e.preventDefault();var n=t?"next":"prev";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}},rightArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||t||this._$focusedTag){e.preventDefault();var n=t?"prev":"next";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}}})},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=(0,A.default)(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e]("."+L);i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_scrollContainer:function(e){if(!this.option("multiline")&&(0,b.hasWindow)()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,i=t&&!_.default.webkit,o=!t||_.default.webkit||_.default.msie?1:-1;return n^!i?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,i=this._$focusedTag.position(),o=i.left,a=this._$tagsContainer.scrollLeft();if(n&&(o+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^o<0){var r=t&&_.default.msie?-1:1;a+=o*r}return a},_setNextValue:m.noop,_getDefaultOptions:function(){return(0,C.extend)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:D.default.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var t=this._getValue(),n=t.length;this.option("showMultiTagOnly")?e.text=D.default.getFormatter("dxTagBox-selected")(n):e.text=D.default.getFormatter("dxTagBox-moreSelected")(n-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._defaultTemplates.tag=new F.BindableTemplate(function(e,t){var n=(0,r.default)("<div>").addClass(G);(0,r.default)("<span>").text(t.text||t).appendTo(n),(0,r.default)("<div>").addClass(N).appendTo(n),e.append(n)},["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,r.default)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t=[],n=0,i=e.length;n<i;n++){var o=this._shouldUseDisplayValue(e[n]);t.push((0,r.default)("<option>").val(o?this._displayGetter(e[n]):e[n]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup:function(){this._tagElementsCache=(0,r.default)();var e=!this.option("multiline");this.$element().addClass(V).toggleClass(W,!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(j,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!(0,x.isDefined)(this.option("fieldTemplate"));this.$element().toggleClass(K,e).toggleClass(U,!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=(0,T.addNamespace)(E.name,"dxTagBoxTagRemove");h.default.off(this._$tagsContainer,t),h.default.on(this._$tagsContainer,t,"."+N,function(t){e({event:t})}),this._renderTypingEvent()},_renderSingleLineScroll:function(){var e=(0,T.addNamespace)("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");return h.default.off(t,e),"desktop"!==l.default.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")):void(n||h.default.on(t,e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=e.delta,n=this._$tagsContainer.scrollLeft();return this._$tagsContainer.scrollLeft(n+t*X),!1},_renderTypingEvent:function(){var e=this;h.default.on(this._input(),(0,T.addNamespace)("keydown",this.NAME),function(t){var n=(0,T.normalizeKeyName)(t);!e._isControlKey(n)&&e._isEditable()&&e._clearTagFocus()})},_popupWrapperClass:function(){return this.callBase()+" "+q},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,y.when)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler()},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||this._scrollContainer("end"),this.callBase(e)},_restoreInputText:function(){this._clearTextValue()},_focusOutHandler:function(e){this._preventNestedFocusEvent(e)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(e)},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._list.$element():this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){var e=this;this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")&&(this._list.registerKeyHandler("tab",function(t){return e._popupElementTabHandler(t)}),this._list.registerKeyHandler("escape",function(t){return e._popupElementEscHandler(t)}))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return(0,C.extend)(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){var n=t.value;e._selectAllValueChangeAction({value:n})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=this,t=new y.Deferred;return this._$tagsContainer=this._$textEditorInputContainer.addClass(H).addClass(Y),this._$tagsContainer.parent().addClass(Y),this._renderInputSize(),this._renderTags().done(function(){e._popup&&e._popup.refreshPosition(),t.resolve()}).fail(t.reject),t.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&this.callBase(e)},_shouldClearFilter:function(){var e=this.callBase(),t=this.option("showSelectionControls");return!t&&e},_renderInputSize:function(){var e=this._input(),t=e.val(),n=(0,x.isString)(t)&&t,i=5,o="",a="",r=this.option("searchEnabled")||this.option("acceptCustomValue");if(n&&r){var s=(0,w.createTextElementHiddenCopy)(e,t,{includePaddings:!0});s.insertAfter(e),o=s.outerWidth()+i,s.remove()}else t||(a=1);e.css("width",o),e.attr("size",a)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,x.isDefined)(t)&&e.length>t},_renderMultiTag:function(e){var t=(0,r.default)("<div>").addClass(L).addClass(z),n={multiTagElement:(0,w.getPublicElement)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(R,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:(0,w.getPublicElement)(t)}),t)},_getFilteredItems:function(e){var t=this,n=new v.SelectionFilterCreator(e),i=this._list&&this._list.option("selectedItems")||this.option("selectedItems"),o=n.getLocalFilter(this._valueGetter),a=i.filter(o),r=a.length===e.length,s=new y.Deferred;if(r)return s.resolve(a).promise();var l=this._dataSource,u=l.filter(),d=n.getCombinedFilter(this.option("valueExpr"),u),c=encodeURI(JSON.stringify(d)).length,h=c>this.option("maxFilterLength")?void 0:d,p=l.loadOptions(),f=p.customQueryParams,g=p.expand;return l.store().load({filter:h,customQueryParams:f,expand:g}).done(function(e,n){if(t._disposed)return void s.reject();var i=(0,P.normalizeLoadResult)(e,n),a=i.data,r=l._applyMapFunction(a);s.resolve(r.filter(o))}).fail(s.reject),s.promise()},_createTagsData:function(e,t){var n=this,i=[],o={},a="this"===this._valueGetterExpr(),r={};t.forEach(function(e){var t=a?JSON.stringify(e):n._valueGetter(e);r[t]=e});var s=[];e.forEach(function(e,t){var l=r[a?JSON.stringify(e):e];if(a&&!(0,x.isDefined)(l))s.push(n._loadItem(e,o).always(function(o){var a=n._createTagData(i,o,e,t);i.splice(t,0,a)}));else{var u=n._createTagData(i,l,e,t);i.splice(t,0,u)}});var l=new y.Deferred;return y.when.apply(this,s).always(function(){l.resolve(i)}),l.promise()},_createTagData:function(e,t,n,i){if((0,x.isDefined)(t))return this._selectedItems.push(t),t;var o=this.option("selectedItem"),a=this._valueGetter(o)===n?o:n;return a},_isGroupedData:function(){return this.option("grouped")&&!this._dataSource.group()},_getItemsByValues:function(e){var t=[];return e.forEach(function(e){var n=this._getItemFromPlain(e);(0,x.isDefined)(n)&&t.push(n)}.bind(this)),t},_getFilteredGroupedItems:function(e){var t=new y.Deferred;return this._dataSource.items().length?t.resolve(this._getItemsByValues(e)):this._dataSource.load().done(function(){t.resolve(this._getItemsByValues(e))}.bind(this)).fail(t.resolve([])),t.promise()},_loadTagsData:function(){var e=this,t=this._getValue(),n=new y.Deferred;this._selectedItems=[];var i=this._isGroupedData()?this._getFilteredGroupedItems(t):this._getFilteredItems(t);return i.done(function(i){var o=e._createTagsData(t,i);o.always(function(e){n.resolve(e)})}).fail(n.reject.bind(this)),n.promise()},_renderTags:function(){var e=this,t=new y.Deferred;return this._loadTagsData().always(function(n){return e._disposed?void t.reject():(e._renderTagsCore(n),e._renderEmptyState(),e._preserveFocusedTag||e._clearTagFocus(),void t.resolve())}),t.promise()},_renderTagsCore:function(e){var t=this;this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var n=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),o=this.option("maxDisplayedTags");e.forEach(function(e,a){return!(n&&i||n&&!i&&a-o>=-1)&&void t._renderTag(e,n||t._input())}),this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();(0,I.each)(e,function(e,n){var i=(0,r.default)(n),o=(0,k.inArray)(i.data(R),t);o<0&&i.remove()})}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find("."+L)},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:(0,w.getPublicElement)(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if((0,x.isDefined)(n)){var i=this._getTag(n),o=this._displayGetter(e),a=this._getItemModel(e,o);i?((0,x.isDefined)(o)&&(i.empty(),this._applyTagTemplate(a,i)),i.removeClass($)):(i=this._createTag(n,t),(0,x.isDefined)(e)?this._applyTagTemplate(a,i):(i.addClass($),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return(0,x.isObject)(e)&&t?e:(0,m.ensureDefined)(t,"")},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,o=0;o<n;o++){var a=t[o],s=d.default.data(a,R);if(e===s||(0,m.equalByValue)(e,s)){i=(0,r.default)(a);break}}return i},_createTag:function(e,t){return(0,r.default)("<div>").addClass(L).data(R,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._input().val("")},_removeTagHandler:function(e){var t=e.event;t.stopPropagation(),this._saveValueChangeEvent(t);var n=(0,r.default)(t.target).closest("."+L);this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(z))return void(this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags"))));var t=e.data(R);this._removeTagWithUpdate(t),this._refreshTagElements()},_updateField:m.noop,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){var t=this;if("useButtons"!==this.option("applyValueMode")){var n=this._getValue().slice();(0,I.each)(e.removedItems||[],function(e,i){t._removeTag(n,t._valueGetter(i))}),(0,I.each)(e.addedItems||[],function(e,i){t._addTag(n,t._valueGetter(i))}),this._updateWidgetHeight(),(0,m.equalByValue)(this._list.option("selectedItemKeys"),this.option("value"))||this.option("value",n)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){var n=this._valueIndex(t);n<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,n){var i=this,a=-1;return n&&"object"!==("undefined"==typeof e?"undefined":o(e))&&(n.indexByValues||(n.indexByValues={},t=t||this._getValue(),t.forEach(function(e,t){n.indexByValues[e]=t})),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),(0,I.each)(t,function(t,n){if(i._isValueEquals(e,n))return a=t,!1}),a)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return(0,x.isDefined)(t)?t:null},_valueChangeEventHandler:m.noop,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&this.callBase(e),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=e.height();this._renderInputSize();var n=e.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){this._list&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(delete this._userFilter,e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();if(e){var t=this._valueGetterExpr();if((0,x.isString)(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}}},_dataSourceFilterExpr:function(){var e=this,t=[];return(0,I.each)(this._getValue(),function(n,i){t.push(["!",[e._valueGetterExpr(),i]])}),t},_dataSourceFilterFunction:function(e){var t=this,n=this._valueGetter(e),i=!0;return(0,I.each)(this._getValue(),function(e,o){if(t._isValueEquals(o,n))return i=!1,!1}),i},_applyButtonHandler:function(){this.option("value",this._getSortedListValues()),this._clearTextValue(),this._clearFilter(),this.callBase()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],n=e.length?t.filter(function(t){return e.indexOf(t)!==-1}):[],i=n.length?e.filter(function(e){return t.indexOf(e)===-1}):e;return n.concat(i)},_getListValues:function(){var e=this;if(!this._list)return[];var t=this._getPlainItems(this._list.option("selectedItems")),n=[];return(0,I.each)(t,function(t,i){n[t]=e._valueGetter(i)}),n},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText();var e=this._getDefaultOptions().value,t=this.option("value");e&&0===e.length&&t&&e.length===t.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._tagTemplate},_removeDuplicates:function(e,t){var n=this,i=[];return(0,I.each)(e,function(e,o){var a=t.filter(function(e){return n._valueGetter(o)===n._valueGetter(e)});a.length||i.push(o)}),i},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e.value);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"value":this.callBase(e),this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":break;case"selectedItems":this._selectionChangedAction({addedItems:this._removeDuplicates(e.value,e.previousValue),removedItems:this._removeDuplicates(e.previousValue,e.value)});break;case"multiline":this.$element().toggleClass(j,!e.value),this._renderSingleLineScroll();break;case"maxFilterLength":break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,f.default)("dxTagBox",Z),e.exports=Z},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(39),u=i(l),d=n(20),c=i(d),h=n(16),p=i(h),f=n(0),g=n(4),_=n(11),m=n(3),v=i(m),y=n(1),w=n(9),x=i(w),b=n(8),C=i(b),k=n(192),I=i(k),S=n(6),D=n(66),T=n(56),E=n(31),O=i(E),A="dx-accordion",P="dx-accordion-wrapper",B="dx-accordion-item",M="dx-accordion-item-opened",F="dx-accordion-item-closed",R="dx-accordion-item-title",V="dx-accordion-item-body",H="dx-accordion-item-title-caption",L="dxAccordionItemData",z=I.default.inherit({_activeStateUnit:"."+B,_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===p.default.real().deviceType&&!p.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return O.default.isMaterial()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var e=this.$element();e.addClass(A),this._$container=(0,a.default)("<div>").addClass(P),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new D.BindableTemplate(function(e,t){if((0,y.isPlainObject)(t)){(0,y.isDefined)(t.title)&&!(0,y.isPlainObject)(t.title)&&e.text(t.title);var n=(0,T.getImageContainer)(t.icon);n&&n.appendTo(e)}else(0,y.isDefined)(t)&&e.text(String(t));e.wrapInner((0,a.default)("<div>").addClass(H))},["title","icon"],this.option("integrationOptions.watchMethod"))},_initMarkup:function(){var e=this;this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),(0,g.deferRender)(function(){var t=e._getSelectedItemIndices();e._renderSelection(t,[])})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return L},_itemClass:function(){return B},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+R)},_itemContents:function(){return this._itemElements().find("."+V)},_getItemData:function(e){return(0,a.default)(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){(0,a.default)(e.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(e,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(e){var t=this.callBase((0,f.extend)({},e,{contentClass:R,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var n=new S.Deferred;(0,y.isDefined)(this._deferredItems[e.index])?this._deferredItems[e.index]=n:this._deferredItems.push(n),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(e.index)>=0)&&n.resolve(),n.done(this.callBase.bind(this,(0,f.extend)({},e,{contentClass:V,container:(0,_.getPublicElement)((0,a.default)("<div>").appendTo((0,a.default)(t).parent()))})))},_attachItemTitleClickAction:function(e){var t=C.default.addNamespace(c.default.name,this.NAME);s.default.off(e,t),s.default.on(e,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemDXEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(F),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t)},_updateSelection:function(e,t){this._updateItems(e,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(e,t){var n=this._itemElements(),i=this;v.default.each(e,function(e,t){i._deferredItems[t].resolve();var o=n.eq(t).addClass(M).removeClass(F);i.setAria("hidden",!1,o.find("."+V))}),v.default.each(t,function(e,t){var o=n.eq(t).removeClass(M);i.setAria("hidden",!0,o.find("."+V))})},_updateItemHeightsWrapper:function(e){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(e)}.bind(this)):this._updateItemHeights(e)},_updateItemHeights:function(e){var t=this,n=t._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),S.when.apply(a.default,[].slice.call(this._itemElements()).map(function(n){return t._updateItemHeight((0,a.default)(n),i,e)})).done(function(){n&&n.resolveWith(t)})},_updateItemHeight:function(e,t,n){var i=e.children("."+R);u.default.isAnimating(e)&&u.default.stop(e);var o=e.outerHeight(),a=e.hasClass(M)?t+i.outerHeight()||e.height("auto").outerHeight():i.outerHeight();return this._animateItem(e,o,a,n,!!t)},_animateItem:function(e,t,n,i,o){var a;return i||t===n?(e.css("height",n),a=(new S.Deferred).resolve()):a=u.default.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),a.done(function(){e.hasClass(M)&&!o&&e.css("height",""),e.not("."+M).addClass(F)})},_splitFreeSpace:function(e){return e?e/this.option("selectedItems").length:e},_calculateFreeSpace:function(){var e=this.option("height");if(void 0!==e&&"auto"!==e){var t=this._itemTitles(),n=0;return v.default.each(t,function(e,t){n+=(0,a.default)(t).outerHeight()}),this.$element().height()-n}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_optionChanged:function(e){switch(e.name){case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",e.value?"multiple":"single");break;default:this.callBase(e)}},expandItem:function(e){return this._deferredAnimate=new S.Deferred,this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=new S.Deferred,this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});(0,x.default)("dxAccordion",z),e.exports=z},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(106),a=i(o);e.exports={registerKeyboardAction:function(e,t,n,i,o){var r=t.getController("keyboardNavigation");if(!(t.option("useLegacyKeyboardNavigation")||r&&!r.isKeyboardEnabled())){var s=function(e){t.executeAction("onKeyDown",e)};t.createAction("onKeyDown"),a.default.registerKeyboardAction(e,t,n,i,o,s)}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(36),a=i(o),r=n(41);t.createGroupFilter=function(e,t){var n,i=(0,r.normalizeSortingInfo)(t.group),o=[];for(n=0;n<e.length;n++)o.push([i[n].selector,"=",e[n]]);return t.filter&&o.push(t.filter),a.default.combineFilters(o)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return(0,f.isString)(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",(0,C.titleize)(t)+n}function a(e,t){var n=e._initProperties||{};(0,m.each)(t,function(t,i){Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])})}function r(e,t){a(e,t),(0,f.isDefined)(e.caption)||(0,E.setFieldProperty)(e,"caption",o(e))}function s(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function l(e){return e.some(function(e){return!!e.runningTotal})}function u(e){return e.rows.length||e.columns.length||e.values.length}var d=n(46),c=n(92),h=i(c),p=n(4),f=n(1),g=n(0),_=n(14),m=n(3),v=n(6),y=n(15),w=i(y),x=n(82),b=i(x),C=n(33),k=n(699),I=n(700),S=i(I),D=n(389),T=n(701),E=n(81),O={row:"rows",column:"columns",data:"values",filter:"filters"},A=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],P=["format","selector","customizeText","caption"],B=P.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=w.default.inherit(function(){function e(e,t){var n=e.remoteOperations||e.paginate?S.default:k.LocalStore;return new n((0,g.extend)((0,d.normalizeDataSourceOptions)(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i,o;return(0,f.isPlainObject)(t)&&t.load?i=e(t,n):(t&&!t.store&&(t={store:t}),o=t.store,"xmla"===o.type?i=new D.XmlaStore(o):(0,f.isPlainObject)(o)&&o.type||o instanceof h.default||Array.isArray(o)?i=e(t,n):o instanceof w.default&&(i=o)),i}function n(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}function i(e,t,i,o){var a=[],r=t&&t[i]||[],s=o&&o[i]||[];return(0,E.foreachTree)(e[i],function(e){var t=e[0],i=(0,E.createPath)(e);t.children&&r[i.length-1]&&!r[i.length-1].expanded&&i.length<r.length&&(!o||n(r,s,i.length))&&a.push(i.slice())},!0),a}function o(e,t,n,i){return t?(0,m.each)(i,function(i,o){if(n)e[o]=t[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===t[o])return;(0,E.setFieldProperty)(e,o,t[o])}}):a(e,i),e}function c(e,t){var n=[];return(0,m.each)(e,function(e,i){n.push(o({dataField:i.dataField,name:i.name},i,!0,t))}),n}function y(e){return e.name?e.name:e.dataField+""}function x(e,t){var n=[];return(0,m.each)(e||[],function(e,i){y(i)===t&&n.push(i)}),n}function b(e,t){return e=e||[],(0,m.each)(t,function(t,n){o(n,e[t],!1,A),r(n,P)}),t}function C(e,t){e=e||[];var n,i={};return(0,m.each)(t,function(e,o){n=y(o),i[n]||(i[n]=x(t,y(o)))}),(0,m.each)(i,function(t,n){b(x(e,t),n)}),t}function I(e,t){return e.filter(function(e){return e.groupName===t.groupName&&(0,f.isNumeric)(e.groupIndex)&&e.visible!==!1}).map(function(e){return(0,g.extend)(e,{areaIndex:t.areaIndex,area:t.area,expanded:(0,f.isDefined)(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:(0,f.isDefined)(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:(0,f.isDefined)(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals})}).sort(function(e,t){return e.groupIndex-t.groupIndex})}function M(e){e.sort(function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex})}function F(e,t){var n="data"===t||e.visible!==!1;return e.area===t&&!(0,
f.isDefined)(e.groupIndex)&&n}function R(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function V(e,t,n){var i=[],o={},r={},s=[],l=(0,E.getFieldsDataType)(e);return t?((0,m.each)(t,function(e,t){o[R(t,n)]=t}),(0,m.each)(e,function(e,t){var s,u=R(t,n),d=o[u]||r[u];d?(d._initProperties&&a(d,B),s=(0,g.extend)({},d,t,{_initProperties:null})):o[u]=s=t,(0,g.extend)(s,{dataType:l[t.dataField]}),delete o[u],r[u]=d,i.push(s)}),n&&(0,m.each)(o,function(e,t){i.push(t)})):i=e,i.push.apply(i,s),i}function H(e){var t,n=new v.Deferred,i=e._store,o=i&&i.getFields(e._fields);return(0,v.when)(o).done(function(i){e._storeFields=i,t=V(e._fields,i,e._retrieveFields),n.resolve(t)}).fail(n.reject),n}function L(e,t){var n=null,i=(t||[]).join(".");return i.length&&(0,E.foreachTree)(e,function(e){var t=e[0],o=(0,E.createPath)(e).join("."),a=(0,m.map)(e,function(e){return e.text}).reverse().join(".");if(i===o||t.key&&a===i)return n=e[0].index,!1}),n}function z(e,t,n,i){var o=t.values,a=(0,E.findField)(n.values,e.sortBySummaryField),r="rows"===i,s=r?t.columns:t.rows,l=r?t.grandTotalRowIndex:t.grandTotalColumnIndex,u=e.sortBySummaryPath||[],d=u.length?L(s,u):l;if(o&&o.length&&a>=0&&(0,f.isDefined)(d))return function(e){var t=r?e.index:d,n=r?d:e.index,i=((o[t]||[[]])[n]||[])[a];return(0,f.isDefined)(i)?i:null}}function $(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}function N(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=$(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:(0,E.getCompareFunction)(function(e){return e[r]}),l=!o&&z(e,t,n,i),u=l&&(0,E.getCompareFunction)(l),d=function(e,t){var n=u&&u(e,t)||s(e,t);return"desc"===a?-n:n};return d}function W(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];(0,E.foreachDataLevel)(e[n],function(a,s){var l=o[s]||{},u=r[s]=r[s]||N(l,e,t,n,i);a.sort(u)},a)}function j(e,t,n){W(t,e,"rows",n),W(t,e,"columns",n)}function q(e,t,n){return(0,E.foreachTreeAsync)(e[n],function(e){var i=e[0];i.text=i.text||(0,E.formatValue)(i.value,t[n][(0,E.createPath)(e).length-1])})}function G(e,t){return(0,v.when)(q(t,e,"columns"),q(t,e,"rows"))}function K(e){var t=new v.Deferred,n={};return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){var t=(0,E.createPath)(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function U(e,t){var n=[];return(0,m.each)(e,function(){F(this,t)&&n.push(this)}),n}var Y=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},X=function e(t,n){var i,o,a=-1;if(t)for(i=0;i<t.length;i++)o=t[i],void 0!==o.index&&(a=Math.max(a,o.index)),o.children?a=Math.max(a,e(o.children)):o.collapsedChildren&&(a=Math.max(a,e(o.collapsedChildren)));return(0,f.isDefined)(n)&&(a=Math.max(a,n)),a},Z=function(e,t,n,i){var o,a=X(n)+1,r=X(e,i)+1,s=[],l=!1,u=new v.Deferred;if(t.children&&t.children.length===n.length)for(var d=0;d<n.length;d++){var c=n[d];void 0!==c.index&&(void 0===t.children[d].index?(c.index=s[c.index]=r++,t.children[d]=c):s[c.index]=t.children[d].index)}else{for(l=!0,o=0;o<a;o++)s[o]=r++;t.children=n}return(0,v.when)((0,E.foreachTreeAsync)(t.children,function(e){l&&(e[0].index=s[e[0].index])})).done(function(){u.resolve(s)}),u},Q=function(e,t,n){var i=new v.Deferred,o=n>=0&&X(e,n)+1,a=[];return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){delete e[0].collapsedChildren})).done(function(){(0,v.when)((0,E.foreachTreeAsync)(t,function(t,n){var i=t[0];if(i.index>=0){var r=Y(e,(0,E.createPath)(t));if(r&&r.index>=0)a[i.index]=r.index;else if(o){var s=(0,E.createPath)(t.slice(1));r=Y(e,s);var l=s.length?r&&r.children:e;l&&(l[n]=i,i.index=a[i.index]=o++)}}})).done(function(){i.resolve(a)})}),i},J=function(e,t,n,i){var o,a,r,s,l,u,d=e.values;if(t)for(o=0;o<=t.length;o++)if(r=t[o],l=n[o],(0,f.isDefined)(l)||(l=e.grandTotalRowIndex),r&&(0,f.isDefined)(l))for(d[l]||(d[l]=[]),a=0;a<=r.length;a++)s=r[a],u=i[a],(0,f.isDefined)(u)||(u=e.grandTotalColumnIndex),(0,f.isDefined)(s)&&(0,f.isDefined)(u)&&(d[l][u]=s)};return{ctor:function(e){e=e||{};var n=this,i=t(e,function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._paginate=!!e.paginate,n._pageSize=e.pageSize||40,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,n._isFieldsModified=!1,(0,m.each)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);Object.prototype.hasOwnProperty.call(e,i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!(0,f.isDefined)(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?(0,g.extend)(n._createDescriptions(),e.descriptions):void 0,i||(0,g.extend)(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n,i=[];return t||"data"===e?(i=U(this._fields,e),M(i)):(n=this._descriptions||{},i=n[O[e]]||[]),i},fields:function(e){var t=this;return e&&(t._fields=V(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function e(t,n){var i,o=this,a=o._fields,e=a&&a[(0,f.isNumeric)(t)?t:(0,E.findField)(a,t)];return e&&n&&((0,m.each)(n,function(t,n){var o=(0,_.inArray)(t,A)<0;if((0,E.setFieldProperty)(e,t,n,o),"sortOrder"===t){i=e.levels||[];for(var a=0;a<i.length;a++)i[a][t]=n}}),r(e,P),o._descriptions=o._createDescriptions(e),o._isFieldsModified=!0,o.fireEvent("fieldChanged",[e])),e},getFieldValues:function(e,t,n){var i,o=this,a=this._fields&&this._fields[e],r=this.store(),s=[],l={columns:s,rows:[],values:this.getAreaFields("data"),filters:t?this._fields.filter(function(e){return e!==a&&e.area&&e.filterValues&&e.filterValues.length}):[],skipValues:!0},u=new v.Deferred;return n&&(i=n.searchValue,l.columnSkip=n.skip,l.columnTake=n.take),a&&r?((0,m.each)(a.levels||[a],function(){s.push((0,g.extend)({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:i}))}),r.load(l).done(function(e){l.columnSkip&&(e.columns=e.columns.slice(l.columnSkip)),l.columnTake&&(e.columns=e.columns.slice(0,l.columnTake)),G(l,e),l.columnTake||o._sort(l,e),u.resolve(e.columns)}).fail(u)):u.reject(),u},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){function t(){n._delayedLoadTask=void 0,n._descriptions?n._loadCore(e,i):(0,v.when)(H(n)).done(function(t){n._fieldsPrepared(t),n._loadCore(e,i)}).fail(i.reject).fail(n._loadErrorHandler)}var n=this,i=new v.Deferred;return e=e||{},n.beginLoading(),i.fail(function(e){n.fireEvent("loadError",[e])}).always(function(){n.endLoading()}),n.store()?n._delayedLoadTask=(0,p.executeAsync)(t):t(),i},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this,n=t.fields(),i={rows:[],columns:[],values:[],filters:[]};(0,m.each)(["row","column","data","filter"],function(t,i){(0,_.normalizeIndexes)(U(n,i),"areaIndex",e)}),(0,m.each)(n||[],function(e,t){var o=O[t.area],a=i[o],r=t.groupName;r&&!(0,f.isNumeric)(t.groupIndex)&&(t.levels=I(n,t)),!a||r&&(0,f.isNumeric)(t.groupIndex)||t.visible===!1&&"data"!==t.area&&"filter"!==t.area||(t.levels&&a!==i.filters&&a!==i.values?(a.push.apply(a,t.levels),t.filterValues&&t.filterValues.length&&i.filters.push(t)):a.push(t))}),(0,m.each)(i,function(e,t){M(t)});var o={};return(0,m.each)(i.values,function(e,t){var a=t.calculateSummaryValue;if((0,f.isFunction)(a)){var r=(0,T.createMockSummaryCell)(i,n,o);a(r)}}),i},_fieldsPrepared:function(e){var t=this;t._fields=e,(0,m.each)(e,function(e,t){t.index=e,r(t,B)});var n=c(e,["caption"]);t.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&(0,E.setFieldProperty)(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(e,t){var n=this;return arguments.length?(e=(0,g.extend)({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(n._descriptions?(n._fields=C(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),(0,v.when)(H(n)).done(function(i){n._fields=C(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)}).always(function(){n.endLoading()})))):{fields:c(n._fields,A),columnExpandedPaths:i(n._data,n._descriptions,"columns"),rowExpandedPaths:i(n._data,n._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_hasPagingValues:function(e,t,n){var i=t+"Take",o=t+"Skip",a=this._data.values,r=this._data[t+"s"],s="row"===t?"column":"row",l=[];if(e.path&&e.area===t){var u=Y(r,e.path);if(r=u&&u.children,!r)return!1}if(e.oppositePath&&e.area===s){var d=Y(r,e.oppositePath);if(r=d&&d.children,!r)return!1}for(var c=e[o];c<e[o]+e[i];c++)r[c]&&l.push(r[c].index);return l.every(function(e){if(void 0!==e)return"row"===t?(a[e]||[])[n]:(a[n]||[])[e]})},_processPagingCacheByArea:function(e,t,n){var i,o=n+"Take",a=n+"Skip",r=this._data[n+"s"],s="row"===n?"column":"row";if(e[o]){if(e.path&&e.area===n){var l=Y(r,e.path);r=l&&l.children||[]}if(e.oppositePath&&e.area===s){var u=Y(r,e.oppositePath);r=u&&u.children||[]}do if(i=r[e[a]],i&&void 0!==i.index){if(!this._hasPagingValues(e,s,i.index))break;e[a]++,e[o]--}while(i&&void 0!==i.index&&e[o]);if(e[o]){var d=Math.floor(e[a]/t)*t,c=Math.ceil((e[a]+e[o])/t)*t;e[a]=d,e[o]=c-d}}},_processPagingCache:function(e){var t=this._pageSize;if(!(t<0))for(var n=0;n<e.length;n++)this._processPagingCacheByArea(e[n],t,"row"),this._processPagingCacheByArea(e[n],t,"column")},_loadCore:function(e,t){var n=this,o=this._store,a=this._descriptions,r=e.reload||this.paginate()&&n._isFieldsModified,s=this.paginate(),l=O[e.area];if(e=e||{},o){(0,g.extend)(e,a),e.columnExpandedPaths=e.columnExpandedPaths||i(this._data,e,"columns",n._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||i(this._data,e,"rows",n._lastLoadOptions),s&&(e.pageSize=this._pageSize),l&&(e.headerName=l),n.beginLoading(),t.always(function(){n.endLoading()});var d=[e];if(n.fireEvent("customizeStoreLoadOptions",[d,r]),r||n._processPagingCache(d),d=d.filter(function(e){return!(e.rows.length&&0===e.rowTake||e.columns.length&&0===e.columnTake)}),!d.length)return void n._update(t);var c=d.map(function(e){return o.load(e)});v.when.apply(null,c).done(function(){for(var e=arguments,i=0;i<e.length;i++){var o=d[i],a=e[i],l=i===e.length-1;o.path?n.applyPartialDataSource(o.area,o.path,a,!!l&&t,o.oppositePath):s&&!r&&u(n._data)?n.mergePartialDataSource(a,!!l&&t):((0,g.extend)(n._data,a),n._lastLoadOptions=o,n._update(!!l&&t))}}).fail(t.reject)}else n._update(t)},_sort:function(e,t,n){var i=this._store;i&&!this._paginate&&j(e,t,n)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var e=this.getAreaFields("data"),t=this.getData();return!e.length||!t.values.length},_update:function(e){var t=this,n=t._descriptions,i=t._data,o=n.values,a=s(o);return(0,v.when)(G(n,i),K(i.rows),K(i.columns)).done(function(){a&&(t._sort(n,i,a),!t.isEmpty()&&(0,T.applyDisplaySummaryMode)(n,i)),t._sort(n,i),!t.isEmpty()&&l(o)&&(0,T.applyRunningTotal)(n,i),t._data=i,e!==!1&&(0,v.when)(e).done(function(){t._isFieldsModified=!1,t.fireEvent("changed"),(0,f.isDefined)(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),(0,f.isDefined)(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)}),e&&e.resolve(t._data)}),e},store:function(){return this._store},collapseHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,o=Y(i,t),a=n.getAreaFields(e)[t.length-1];return!(!o||!o.children)&&(n.fireEvent("expandValueChanging",[{area:e,path:t,expanded:!1}]),a&&(a.expanded=!1),o.collapsedChildren=o.children,delete o.children,n._update(),n.paginate()&&n.load(),!0)},collapseAll:function(e){var t=this,n=!1,i=this.field(e)||{},o=[(0,_.inArray)(i,this.getAreaFields(i.area))];i.expanded=!1,i&&i.levels&&(o=[],i.levels.forEach(function(e){o.push((0,_.inArray)(e,t.getAreaFields(i.area))),e.expanded=!1})),(0,E.foreachTree)(this._data[i.area+"s"],function(e){var t=e[0],i=(0,E.createPath)(e);t&&t.children&&o.indexOf(i.length-1)!==-1&&(t.collapsedChildren=t.children,delete t.children,n=!0)},!0),n&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,t&&t.levels&&t.levels.forEach(function(e){e.expanded=!0}),this.load())},expandHeaderItem:function(e,t){var n,i,o=this,a="column"===e?o._data.columns:o._data.rows,r=Y(a,t);return!(!r||r.children)&&(n=!!r.collapsedChildren,i={area:e,path:t,expanded:!0,needExpandData:!n},o.fireEvent("expandValueChanging",[i]),n?(r.children=r.collapsedChildren,delete r.collapsedChildren,o._update()):o.load(i),n)},mergePartialDataSource:function(e,t){var n,i,o=this,a=o._data;e&&e.values&&(e.rows=e.rows||[],e.columns=e.columns||[],n=Q(a.rows,e.rows,a.grandTotalColumnIndex),i=Q(a.columns,e.columns,a.grandTotalColumnIndex),(0,v.when)(n,i).done(function(n,i){(n.length||i.length)&&J(a,e.values,n,i),o._update(t)}))},applyPartialDataSource:function(e,t,n,i,o){var a,r,s,l,u=this,d=u._data,c="column"===e?d.columns:d.rows,h="column"===e?d.rows:d.columns;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],a=Y(c,t),r=o&&Y(h,o),a&&("column"===e?(l=Z(c,a,n.columns,d.grandTotalColumnIndex),s=r?Z(h,r,n.rows,d.grandTotalRowIndex):Q(d.rows,n.rows,d.grandTotalRowIndex)):(s=Z(c,a,n.rows,d.grandTotalRowIndex),l=r?Z(h,r,n.columns,d.grandTotalColumnIndex):Q(d.columns,n.columns,d.grandTotalColumnIndex)),(0,v.when)(s,l).done(function(t,o){("row"===e&&t.length||"column"===e&&o.length)&&J(d,n.values,t,o),u._update(i)})))},dispose:function(){var e=this,t=e._delayedLoadTask;this._disposeEvents(),t&&t.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()).include(b.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){var o=0,a=0,r=n/2;return e+i-(t+n)>1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e<t?(e<=t-r&&(a=parseInt((e-(t-r))/r,10)),o=t-(n-r*a)):o=t,o}var a=n(2),r=i(a),s=n(15),l=i(s),u=n(11),d=n(0),c=n(1),h="dx-expand",p=function(e){var t=0,n=e.offsetWidth;if(e.getBoundingClientRect){var i=e.getBoundingClientRect();t=i.width,t||(t=i.right-i.left),t<=n-1&&(t=n)}return t>0?t:n};t.AreaItem=l.default.inherit({_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return(0,r.default)("<div>")},_createTableElement:function(){return(0,r.default)("<table>")},_getCellText:function(e,t){var n=e.isWhiteSpace?"&nbsp":e.text||"&nbsp";return!t||n.indexOf("<")===-1&&n.indexOf(">")===-1||(n=(0,r.default)("<div>").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(e,t){var n,i,o,a,r,s,l,u,d=this,p=t.length,f=d.option("rtlEnabled"),g=[],_=d.option("encodeHtml"),m="colspan='",v="rowspan='";for(e.data("area",d._getAreaName()),e.data("data",t),e.css("width",""),g.push(d._getMainElementMarkup()),o=0;o<p;o++){n=t[o];var y=[];for(u=[],g.push("<tr "),a=0;a<n.length;a++){if(i=n[a],this._getRowClassNames(o,i,u),y.push("<td "),i){i.rowspan&&y.push(v+(i.rowspan||1)+"'"),i.colspan&&y.push(m+(i.colspan||1)+"'");var w={cellElement:s,cell:i,cellsCount:n.length,cellIndex:a,rowElement:r,rowIndex:o,rowsCount:p,rtlEnabled:f,classArray:[],cssArray:[]};d._applyCustomStyles(w),w.cssArray.length&&(y.push("style='"),y.push(w.cssArray.join(";")),y.push("'")),w.classArray.length&&(y.push("class='"),y.push(w.classArray.join(" ")),y.push("'")),y.push(">"),(0,c.isDefined)(i.expanded)&&y.push("<div class='dx-expand-icon-container'><span class='"+h+"'></span></div>"),l=this._getCellText(i,_)}else l="";y.push("<span "),(0,c.isDefined)(i.wordWrapEnabled)&&y.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),y.push(">"+l+"</span>"),i.sorted&&y.push("<span class='dx-icon-sorted'></span>"),y.push("</td>")}u.length&&(g.push("class='"),g.push(u.join(" ")),g.push("'")),g.push(">"),g.push(y.join("")),g.push("</tr>")}g.push(this._getCloseMainElementMarkup()),e.append(g.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,r,s,l,c=this,h=e.find("tr"),p=c._getAreaName(),f=c.option("onCellPrepared"),g=c.component.hasEvent("cellPrepared"),_=this.component._defaultActionArgs();if(f||g)for(s=0;s<t.length;s++)for(a=t[s],n=h.eq(s),l=0;l<a.length;l++)r=a[l],i=n.children().eq(l),o={area:p,rowIndex:s,columnIndex:l,cellElement:(0,u.getPublicElement)(i),cell:r},g?c.component._trigger("onCellPrepared",o):f((0,d.extend)(o,_))},_getRowHeight:function(e){var t=this._getRowElement(e),n=0,i=t.offsetHeight;if(t&&t.lastChild){if(t.getBoundingClientRect){var o=t.getBoundingClientRect();n=o.height,n<=i-1&&(n=i)}return n>0?n:i}return 0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=this,n=[],i=t.getRowsLength();for(e=0;e<i;e++)n.push(t._getRowHeight(e));return n},setRowsHeight:function(e){var t,n=this,i=0,o=e.length;for(t=0;t<o;t++)i+=e[t],n._setRowHeight(t,e[t]);this._tableHeight=i,this._tableElement[0].style.height=i+"px"},getColumnsWidth:function(){var e,t,n,i,o=this.getRowsLength(),a=[],r=[],s=function(e,t,n,i,o){var a,r;for(a=0;a<i;a++)for(r=0;r<o;r++)e[t+a]=e[t+a]||[],e[t+a][n+r]=!0};if(o)for(e=0;e<o;e++)for(a[e]=a[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;a[e][i];i++);s(a,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(r[i]=r[i]||p(t.cells[n]))}return r},setColumnsWidth:function(e){var t,n=0,i=this._tableElement[0],o="",a=this.getColumnsCount(),r=[];for(t=0;t<a;t++)r.push(e[t]||0);for(t=a;t<e.length&&e;t++)r[a-1]+=e[t];for(t=0;t<a;t++)n+=r[t],o+='<col style="width: '+r[t]+'px">';this._colgroupElement.html(o),this._tableWidth=n-this._groupWidth>.01?Math.ceil(n):n,i.style.width=this._tableWidth+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},groupWidth:function(e){return void 0===e?this._groupElement.width():e>=0?(this._groupWidth=e,this._groupElement[0].style.width=e+"px"):this._groupElement[0].style.width=e},groupHeight:function(e){return void 0===e?this._groupElement.height():(this._groupHeight=null,void(e>=0?(this._groupHeight=e,this._groupElement[0].style.height=e+"px"):this._groupElement[0].style.height=e))},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=(0,r.default)("<div>").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.groupWidth("100%"),e.groupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled"),i=n?"right":"left",a=parseFloat(t.tableElement()[0].style[i]),r=o(e,a,t._tableWidth,t._groupWidth);parseFloat(t._fakeTable[0].style[i])!==r&&(t._fakeTable[0].style[i]=r+"px")},_moveFakeTableTop:function(e){var t=this,n=parseFloat(t.tableElement()[0].style.top),i=o(e,n,t._tableHeight,t._groupHeight);parseFloat(t._fakeTable[0].style.top)!==i&&(t._fakeTable[0].style.top=i+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=(0,r.default)("<colgroup>").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,function(e){n.option("rtlEnabled")&&(0,c.isDefined)(e.scrollOffset.left)&&(e.scrollOffset.left=i.$content().width()-i._container().width()-e.scrollOffset.left),t(e)}),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.$content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.$content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n){e=n.cells;for(var i=0,o=e.length;i<o;++i)t+=e[i].colSpan}return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=t;return(0,g.isDefined)(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}function a(e){return e=e||{},JSON.stringify([e.fields,e.columnExpandedPaths,e.rowExpandedPaths])}var r=n(2),s=i(r),l=n(5),u=i(l),d=n(71),c=i(d),h=n(20),p=i(h),f=n(4),g=n(1),_=n(14),m=n(0),v=n(3),y=n(10),w=n(9),x=i(w),b=n(17),C=i(b),k=n(370),I=i(k),S=n(342),D=i(S),T=n(347),E=i(T),O=n(81),A=n(705),P=i(A),B=n(6),M=1,F="<div>",R=I.default.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),V=function(e,t){var n=[],i=!!t.groupName,o="exclude"===t.filterType;t.filterValues&&(0,v.each)(t.filterValues,function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())}),(0,O.foreachTree)(e,function(e){var t,a=e[0],r=(0,O.createPath)(e),s=i?(0,v.map)(e,function(e){return e.text}).reverse().join("/"):a.text;a.value=i?r.slice(0):a.key||a.value,t=i?r.join("/"):a.value&&a.value.valueOf(),a.children&&(a.items=a.children,a.children=null),(0,k.updateHeaderFilterItemSelectionState)(a,a.key&&(0,_.inArray)(s,n)>-1||(0,_.inArray)(t,n)>-1,o)})},H=C.default.inherit(D.default).inherit(E.default).inherit(k.headerFilterMixin).inherit({_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:(0,y.format)("dxDataGrid-headerFilterEmptyValue"),ok:(0,y.format)("dxDataGrid-headerFilterOK"),cancel:(0,y.format)("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new R(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&a(this._dataSource.state())!==a(e.value)?this._dataSource.state(e.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,i=(0,s.default)(F).addClass("dx-area-field-content").text(e.caption||e.dataField),a=(0,s.default)(F).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(i),r=o(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:a,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:a,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!e.groupIndex},showColumnLines:t})),e.groupName&&a.attr("item-group",e.groupName),a},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),P.default,(0,m.extend)({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=(0,s.default)(this).closest(".dx-sortable-old"),i=n.data("dxPivotGrid"),o=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!o&&o.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&(0,v.each)(e,function(e,t){n.eq(e).css("width",parseInt((0,s.default)(t).outerWidth(),10)+M)})):n=(0,s.default)(F).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=(0,s.default)(F);return(0,v.each)(n,function(e,t){var n=(0,s.default)("<div>").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append((0,s.default)(t));i.append(n)}),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,t.isMeasure===!0?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):t.isMeasure===!1&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,i=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),i&&e._applyChanges([o(n,i)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var o=i.state(),a=t.option("state");a&&i.state(a,!0),e(i,n),i.state(o,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState(function(i,o){e.forEach(function(e){var n=e.index;i.field(n,t)}),o?i.load():n._changedHandler()})},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=(0,s.default)(e.currentTarget).data("field"),i=(0,m.extend)(!0,{},o(t._dataSource,n)),a=(0,s.default)(e.target).hasClass("dx-header-filter"),r=t._dataSource,l=i.groupName?"tree":"list",u=r.paginate()&&"list"===l;a?t._headerFilterView.showHeaderFilterMenu((0,s.default)(e.currentTarget),(0,m.extend)(i,{type:l,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!u,load:function(e){var n=e.userData;if(n.store)return n.store.load(e);var o=new B.Deferred;return r.getFieldValues(i.index,t.option("headerFilter.showRelevantValues"),u?e:void 0).done(function(t){u?o.resolve(t):(n.store=new c.default(t),n.store.load(e).done(o.resolve).fail(o.reject))}).fail(o.reject),o},postProcess:function(e){return V(e,i),e}},apply:function(){t._applyChanges([i],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};return e?void u.default.on(e,p.default.name,".dx-area-field.dx-area-box",n):void u.default.on(t.$element(),p.default.name,".dx-area-field.dx-area-box",n)},_initTemplates:f.noop,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});(0,x.default)("dxPivotGridFieldChooserBase",H),e.exports=H},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(38),u=i(l),d=n(1),c=i(d),h=n(11),p="tr",f={VERTICAL:"vertical",HORIZONTAL:"horizontal",insertAllDayRow:function(e,t,n){if(e[n]){var i=e[n].find(p);i.length||(i=(0,a.default)(s.default.createElement(p)),i.append(e[n].get(0))),t.appendChild(i.get?i.get(0):i)}},makeTable:function(e){var t,n=s.default.createElement("tbody"),i=[],o=e.groupCount?e.rowCount/e.groupCount:e.rowCount,r=0,l=e.allDayElements,d=e.groupIndex,f=e.rowCount;(0,a.default)(e.container).append(n),l&&(this.insertAllDayRow(l,n,0),r++);for(var g=0;g<f;g++){t=s.default.createElement(p),n.appendChild(t);var _=(g+1)%o===0;e.rowClass&&(t.className=e.rowClass);for(var m=0;m<e.cellCount;m++){var v=s.default.createElement("td");t.appendChild(v),e.cellClass&&(c.default.isFunction(e.cellClass)?v.className=e.cellClass(g,m):v.className=e.cellClass);var y,w,x;if(e.getCellData&&(y=e.getCellData(v,g,m,d),w=y.key,x=y.value,w&&u.default.data(v,w,x)),e.cellTemplate&&e.cellTemplate.render){var b={model:{text:e.getCellText?e.getCellText(g,m):"",date:e.getCellDate?e.getCellDate(g):void 0},container:(0,h.getPublicElement)((0,a.default)(v)),index:g*e.cellCount+m};x&&(x.startDate&&(b.model.startDate=x.startDate),x.endDate&&(b.model.endDate=x.endDate),x.groups&&(b.model.groups=x.groups),x.allDay&&(b.model.allDay=x.allDay)),i.push(e.cellTemplate.render.bind(e.cellTemplate,b))}else e.getCellText&&(v.innerHTML="<div>"+e.getCellText(g,m)+"</div>")}l&&_&&(this.insertAllDayRow(l,n,r),r++)}return i},makeGroupedTable:function(e,t,n,i,o,a,r){var s=[];return s=e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o,r)},makeGroupedTableFromJSON:function(e,t,n){function i(){u=s.default.createElement("table"),_&&(u.className=_)}function o(e){return e[f]?e[f].length:0}function a(e,t,n,i){var o={element:s.default.createElement(h),childCount:t};v&&(o.element.className=v);var a=s.default.createTextNode(e);return"function"==typeof y?y(o.element,a,n,i):o.element.appendChild(a),o}function r(e){for(var t=0;t<e.length;t++){var n=o(e[t]),i=a(e[t][g],n,t,e[t]);d[c]||(d[c]=[]),d[c].push(i),n?r(e[t][f]):c++}}function l(){d.forEach(function(e){var t=s.default.createElement(p);m&&(t.className=m);for(var n=[],i=e.length-1;i>=0;i--){var o=e[i+1],a=e[i].childCount;o&&o.childCount&&(a*=o.childCount),n.push(a)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)}),u.appendChild(t)})}var u,d=[],c=0;n=n||{};var h=n.cellTag||"td",f=n.childrenField||"children",g=n.titleField||"title",_=n.groupTableClass,m=n.groupRowClass,v=n.groupCellClass,y=n.groupCellCustomContent;return i(),r(t),l(),u},_makeFlexGroupedRowCells:function(e,t,n,i){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=[],s=e.items,l=s.length,u=0;u<t*o;u++)for(var d=0;d<l;d++){var p=(0,a.default)("<div>"),f={};if(i&&i.render){var g={model:s[d],container:(0,h.getPublicElement)(p),index:u*l+d};e.data&&(g.model.data=e.data[d]),f.template=i.render.bind(i,g)}else p.text(s[d].text);var _=c.default.isFunction(n.groupHeaderClass)?n.groupHeaderClass(d):n.groupHeaderClass;
f.element=(0,a.default)("<div>").addClass(_).append(p),r.push(f)}return r},_makeVerticalGroupedRows:function(e,t,n){for(var i=[],o=1,r=[],s=function(e){e.template&&i.push(e.template)},l=0;l<e.length;l++){l>0&&(o=e[l-1].items.length*o);var u=this._makeFlexGroupedRowCells(e[l],o,t,n);u.forEach(s),r.push(u)}for(var d=[],c=r.length,h=0;h<c;h++)d.push((0,a.default)("<div>").addClass(t.groupHeaderRowClass));for(var p=c-1;p>=0;p--)for(var f=r[p].length,g=0;g<f;g++)d[p].append(r[p][g].element);return{elements:(0,a.default)("<div>").addClass("dx-scheduler-group-flex-container").append(d),cellTemplates:i}},_makeHorizontalGroupedRows:function(e,t,n,i,o){for(var r=1,s=e.length,l=[],u=[],d=o?n:1,c=function(e){return e.template&&u.push(e.template),e.element},h=0;h<s;h++){h>0&&(r=e[h-1].items.length*r);var p=this._makeGroupedRowCells(e[h],r,t,i,d);l.push((0,a.default)("<tr>").addClass(t.groupRowClass).append(p.map(c)))}for(var f=l[s-1].find("th").length,g=0;g<s;g++){var _=l[g].find("th"),m=f/_.length;o||(m*=n),(m>1&&1===d||o&&s>1)&&_.attr("colSpan",m)}return{elements:l,cellTemplates:u}},_makeGroupedRowCells:function(e,t,n,i,o){o=o||1,t*=o;for(var r=[],s=e.items,l=s.length,u=0;u<t;u++)for(var d=0;d<l;d++){var p=(0,a.default)("<div>"),f={};if(i&&i.render){var g={model:s[d],container:(0,h.getPublicElement)(p),index:u*l+d};e.data&&(g.model.data=e.data[d]),f.template=i.render.bind(i,g)}else p.text(s[d].text),p=(0,a.default)("<div>").append(p);p.addClass(n.groupHeaderContentClass);var _;_=c.default.isFunction(n.groupHeaderClass)?n.groupHeaderClass(d):n.groupHeaderClass,f.element=(0,a.default)("<th>").addClass(_).append(p),r.push(f)}return r}};e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(0).extend,r=n(9),s=n(203),l=n(22),u=n(267),d=n(730),c="dx-scheduler-timeline",h="dx-scheduler-group-table",p="dx-scheduler-work-space-horizontal-grouped",f="dx-scheduler-header-panel-cell",g="dx-scheduler-header-panel-week-cell",_="dx-scheduler-header-row",m="horizontal",v=1,y=10,w=l.dateToMilliseconds,x=s.inherit({_init:function(){this.callBase(),this.$element().addClass(c),this._$sidebarTable=i("<div>").addClass(h)},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(p,this._isHorizontalGroupedWorkSpace())},_getDefaultOptions:function(){return a(this.callBase(),{groupOrientation:"vertical"})},_getRightCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?0:n-1,o=this._isRTL()?"prev":"next";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getLeftCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?n-1:0,o=this._isRTL()?"next":"prev";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getRowCount:function(){return 1},_getCellCount:function(){return this._getCellCountInDay()*this.option("intervalCount")},getGroupTableWidth:function(){return this._$sidebarTable?this._$sidebarTable.outerWidth():0},_getTotalRowCount:function(e){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(e=e||1,this._getRowCount()*e)},_getDateByIndex:function(e){var t=new Date(this._firstViewDate),n=Math.floor(e/this._getCellCountInDay());return t.setTime(this._firstViewDate.getTime()+this._calculateCellIndex(0,e)*this._getInterval()+n*this._getHiddenInterval()),t},_getFormat:function(){return"shorttime"},_needApplyLastGroupCellClass:function(){return!0},_calculateHiddenInterval:function(e,t){var n=Math.floor(t/this._getCellCountInDay());return n*this._getHiddenInterval()},_getMillisecondsOffset:function(e,t){return t=this._calculateCellIndex(e,t),this._getInterval()*t+this._calculateHiddenInterval(e,t)},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?this._$dateTable.get(0).getBoundingClientRect().height:this.$element().get(0).getBoundingClientRect().height},_dateTableScrollableConfig:function(){var e,t=this.callBase(),n={direction:m,onStart:function(){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0))}.bind(this),onScroll:function(e){this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._headerScrollable&&this._headerScrollable.option("onScroll",e)}.bind(this)};return this.option("crossScrollingEnabled")?t:a(t,n)},_headerScrollableConfig:function(){var e=this.callBase();return a(e,{scrollByContent:!0})},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderDateHeader:function(){var e=this.callBase();if(this._needRenderWeekHeader()){for(var t=new Date(this._firstViewDate),n=[],o=this._getCellCountInDay(),a=this.option("dateCellTemplate"),r=0;r<this._getWeekDuration()*this.option("intervalCount");r++){var s=i("<th>"),l=this._formatWeekdayAndDay(t);if(a){var u={model:{text:l,date:new Date(t)},container:s,index:r};a.render(u)}else s.text(l);s.addClass(f).addClass(g).attr("colSpan",o),n.push(s),this._incrementDate(t)}var d=i("<tr>").addClass(_).append(n);e.before(d)}},_needRenderWeekHeader:function(){return!1},_incrementDate:function(e){e.setDate(e.getDate()+1)},_getWeekDuration:function(){return 1},_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new d,this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},_setHorizontalGroupHeaderCellsHeight:o,getIndicationWidth:function(){var e=this._getToday(),t=this.getCellWidth(),n=this._getIndicationFirstViewDate(),i=this._getHiddenInterval(),o=e.getTime()-n.getTime(),a=Math.ceil(o/w("day"))-1,r=o-a*i,s=r/this.getCellDuration();return s*t},_renderIndicator:function(e,t,n,i){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a:a);else for(var r=0;r<i;r++){var s=this._getCellCount()*this.getCellWidth()*r;o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a-s:a+s)}},_isVerticalShader:function(){return!1},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this._getToday();if(n=new Date(n),l.sameDate(i,n)){var o=new Date(n),a=new Date(n);a=a.setMilliseconds(n.getMilliseconds()+this.getCellDuration()),t=l.dateInRange(i,o,a)}}return t},_cleanView:function(){this.callBase(),this._$sidebarTable.empty()},_visibilityChanged:function(e){this.callBase(e)},_setTableSizes:function(){var e=this.getCellHeight(),t=this._getWorkSpaceMinHeight(),n=this._$sidebarTable.find("tr"),i=e*n.length;i<t&&(i=t),this._$sidebarTable.height(i),this._$dateTable.height(i),this.callBase()},_getWorkSpaceMinHeight:function(){var e=this._getWorkSpaceHeight(),t=this.$element().outerHeight(!0)-this.getHeaderPanelHeight()-2*v-y;return e<t&&(e=t),e},_makeGroupRows:function(e,t){var n="vertical"===this.option("groupOrientation")?u.VERTICAL:u.HORIZONTAL;return u.makeGroupedTable(n,e,{groupRowClass:this._getGroupRowClass(),groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),t)},_ensureGroupHeaderCellsHeight:function(e){var t=this._calculateMinCellHeight();return e<t?t:e},_calculateMinCellHeight:function(){var e=this._getDateTable(),t="."+this._getDateTableRowClass();return e.get(0).getBoundingClientRect().height/e.find(t).length-2*v},_getCellCoordinatesByIndex:function(e){return{cellIndex:e%this._getCellCount(),rowIndex:0}},_getCellByCoordinates:function(e,t){var n=this._groupedStrategy.prepareCellIndexes(e,t);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.cellIndex)},_getWorkSpaceWidth:function(){return this._$dateTable.outerWidth(!0)},_getGroupIndexByCell:function(e){return e.parent().index()},_getIndicationFirstViewDate:function(){return new Date(this._firstViewDate)},_getIntervalBetween:function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),r=(24-i+n)*w("hour"),s=l.getTimezonesDifference(o,e),u=e.getTime(),d=u-a-s,c=Math.floor(d/w("day")),h=d-c*w("day"),p=0,f=this._getCellCountInDay()*(c-this._getWeekendsCount(c)),g=u-l.trimTime(new Date(e)).getTime(),_=f*this.option("hoursInterval")*w("hour");return t||(e.getHours()<n?p=h-r+g:e.getHours()>=n&&e.getHours()<i?p=h:e.getHours()>=n&&e.getHours()>=i?p=h-(g-i*w("hour")):c||(_=d),_+=p),_},_getWeekendsCount:function(){return 0},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(e){var t=this.callBase(e),n=this.getCellWidth()*e;return this.option("rtlEnabled")&&(n*=-1),n+=t.left,{top:0,left:n,cellPosition:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft(),a=o/i,r=n.width()/i,s=e?a-r:a+r,u=this._getDateByIndex(a),d=this._getDateByIndex(s);return e&&(u=this._getDateByIndex(s),d=this._getDateByIndex(a)),t.left={hours:u.getHours(),minutes:u.getMinutes()>=30?30:0,date:l.trimTime(u)},t.right={hours:d.getHours(),minutes:d.getMinutes()>=30?30:0,date:l.trimTime(d)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(e<n.left.hours||e>n.right.hours)&&(o=!0),e===n.left.hours&&t<n.left.minutes&&(o=!0),e===n.right.hours&&t>n.right.minutes&&(o=!0),o},getIntervalDuration:function(e){return this.getCellDuration()},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(n<e.left.date||n>e.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth:function(){return 0},getWorkSpaceLeftOffset:function(){return 0},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?this.getScrollableContainer().get(0).getBoundingClientRect().width:0;this.option("templatesRenderAsynchronously")?setTimeout(function(){o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}):o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}});r("dxSchedulerTimeline",x),e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(398),s=i(r),l=n(740),u=i(l),d=n(0),c=n(19),h=i(c),p=n(22),f=i(p),g=n(1),_=i(g),m=n(31),v=i(m),y=f.default.dateToMilliseconds,w=2,x=15,b=20,C=18,k=28,I=function(){function e(t){o(this,e),this.instance=t,this._initPositioningStrategy()}return a(e,[{key:"_isAdaptive",value:function(){return this.instance.fire("isAdaptive")}},{key:"_correctCompactAppointmentCoordinatesInAdaptive",value:function(e,t){e.top=e.top+this.getCompactAppointmentTopOffset(t),e.left=e.left+this.getCompactAppointmentLeftOffset()}},{key:"_initPositioningStrategy",value:function(){this._positioningStrategy=this._isAdaptive()?new u.default(this):new s.default(this)}},{key:"getPositioningStrategy",value:function(){return this._positioningStrategy}},{key:"getAppointmentMinSize",value:function(){return w}},{key:"keepAppointmentSettings",value:function(){return!1}},{key:"getDeltaTime",value:function(){}},{key:"getAppointmentGeometry",value:function(e){return e}},{key:"needCorrectAppointmentDates",value:function(){return!0}},{key:"getDirection",value:function(){return"horizontal"}},{key:"createTaskPositionMap",value:function(e){delete this._maxAppointmentCountPerCell;var t=e&&e.length;if(t){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<t;i++){var o=this._getItemPosition(e[i]);this._isRtl()&&(o=this._correctRtlCoordinates(o)),n.push(o)}var a=this._getSortedPositions(n),r=this._getResultPositions(a);return this._getExtendedPositionMap(n,r)}}},{key:"_getDeltaWidth",value:function(e,t){var n=this.instance.fire("getResizableStep")||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)}},{key:"_correctRtlCoordinates",value:function(e){var t=e[0].width||this._getAppointmentMaxWidth();return e.forEach(function(e){e.appointmentReduced||(e.left-=t)}),e}},{key:"_getAppointmentMaxWidth",value:function(){return this.getDefaultCellWidth()}},{key:"_getItemPosition",value:function(e){for(var t=this._getAppointmentCoordinates(e),n=this.isAllDay(e),i=[],o=new Date(this.instance.fire("getField","startDate",e)),a=!!this.instance.fire("getField","recurrenceRule",e),r=0;r<t.length;r++){var s=this.calculateAppointmentHeight(e,t[r],a),l=this.calculateAppointmentWidth(e,t[r],a),u=l,c=null,h=[],p=t[r].rowIndex,f=t[r].cellIndex;if(this._needVerifyItemSize()||n){var g=t[r].hMax;this.isAppointmentGreaterThan(g,{left:t[r].left,width:l})&&(c="head",p=t[r].rowIndex,f=t[r].cellIndex,u=this._reduceMultiWeekAppointment(l,{left:t[r].left,right:g}),h=this._getAppointmentParts({sourceAppointmentWidth:l,reducedWidth:u,height:s},t[r],o),this._isRtl()&&(t[r].left=g))}(0,d.extend)(t[r],{height:s,width:u,allDay:n,rowIndex:p,cellIndex:f,appointmentReduced:c}),i=this._getAppointmentPartsPosition(h,t[r],i)}return i}},{key:"_getAppointmentPartsPosition",value:function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n}},{key:"_getAppointmentCoordinates",value:function(e){var t=[{top:0,left:0}];return this.instance.fire("needCoordinates",{startDate:this.startDate(e),originalStartDate:this.startDate(e,!0),appointmentData:e,callback:function(e){t=e}}),t}},{key:"_isRtl",value:function(){return this.instance.option("rtlEnabled")}},{key:"_getAppointmentParts",value:function(){return[]}},{key:"_getCompactAppointmentParts",value:function(e){var t=this.getDefaultCellWidth()||this.getAppointmentMinSize();return Math.round(e/t)}},{key:"_reduceMultiWeekAppointment",value:function(e,t){return e=this._isRtl()?Math.floor(t.left-t.right):t.right-Math.floor(t.left)}},{key:"calculateAppointmentHeight",value:function(){return 0}},{key:"calculateAppointmentWidth",value:function(){return 0}},{key:"isAppointmentGreaterThan",value:function(e,t){var n=t.left+t.width-e;return this._isRtl()&&(n=e+t.width-t.left),n>this.getDefaultCellWidth()/2}},{key:"isAllDay",value:function(){return!1}},{key:"cropAppointmentWidth",value:function(e,t){return this.instance.fire("isGroupedByDate")&&(e=t),e}},{key:"_getSortedPositions",value:function(e){for(var t=this,n=[],i=function(e){return Math.round(100*e)/100},o=function(e,t,n,o,a,r,s,l){return{i:e,j:t,top:i(n),left:i(o),cellPosition:a,isStart:r,allDay:s,__tmpIndex:l}},a=0,r=0,s=e.length;r<s;r++)for(var l=0,u=e[r].length;l<u;l++){var d=e[r][l],c=d.top,h=d.left,p=d.height,f=d.width,g=d.cellPosition,_=d.allDay,m=o(r,l,c,h,g,!0,_,a);a++;var v=o(r,l,c+p,h+f,g,!1,_,a);a++,n.push(m,v)}return n.sort(function(e,n){return t._sortCondition(e,n)})}},{key:"_fixUnstableSorting",value:function(e,t,n){if(0===e){if(t.__tmpIndex<n.__tmpIndex)return-1;if(t.__tmpIndex>n.__tmpIndex)return 1}return e}},{key:"_sortCondition",value:function(){}},{key:"_rowCondition",value:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return i?i:o?o:e.isStart-t.isStart}},{key:"_columnCondition",value:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return o?o:i?i:e.isStart-t.isStart}},{key:"_isSomeEdge",value:function(e,t){return e.i===t.i&&e.j===t.j}},{key:"_normalizeCondition",value:function(e,t,n){var i=e-t;return n||Math.abs(i)>1?i:0}},{key:"_getResultPositions",value:function(e){for(var t,n=[],i=[],o=[],a=[],r=0,s=0,l=0;l<e.length;l++){var u,d=e[l];if(d.isStart){for(t=void 0,u=0;u<i.length;u++)if(!i[u]){t=u,i[u]=!0;break}if(void 0===t)for(t=i.length,i.push(!0),u=0;u<n.length;u++)n[u].count++;n.push({index:t,count:i.length,i:d.i,j:d.j,sortedIndex:this._skipSortedIndex(t)?null:s++}),r<i.length&&(r=i.length)}else{var c=this._findIndexByKey(n,"i","j",d.i,d.j),h=n[c];if(n.splice(c,1),i[h.index]=!1,a.push(h),!n.length){i=[];for(var p=0;p<a.length;p++)a[p].count=r;a=[],r=0}o.push(h)}}return o.sort(function(e,t){var n=e.j-t.j,i=e.i-t.i;return i?i:n})}},{key:"_skipSortedIndex",value:function(e){return this.instance.fire("getMaxAppointmentsPerCell")&&e>this._getMaxAppointmentCountPerCell()-1}},{key:"_findIndexByKey",value:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;r<s;r++)if(e[r][t]===i&&e[r][n]===o){a=r;break}return a}},{key:"_getExtendedPositionMap",value:function(e,t){for(var n=0,i=[],o=0,a=e.length;o<a;o++){for(var r=[],s=0,l=e[o].length;s<l;s++)e[o][s].index=t[n].index,e[o][s].sortedIndex=t[n].sortedIndex,e[o][s].count=t[n++].count,r.push(e[o][s]),this._checkLongCompactAppointment(e[o][s],r);i.push(r)}return i}},{key:"_checkLongCompactAppointment",value:function(){}},{key:"_splitLongCompactAppointment",value:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(e.allDay),i=0;if(void 0!==n&&e.index>n-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;o<i;o++){var a=(0,d.extend)(!0,{},e);a.left=this._getCompactLeftCoordinate(e.left,o),a.cellIndex=a.cellIndex+o,a.sortedIndex=null,t.push(a)}}return t}},{key:"startDate",value:function e(t,n,i){var e=i&&i.startDate,o=this.instance._getStartDate(t,n),a=this.instance.fire("getField","text",t);if((e&&o>e||!e)&&(e=o),isNaN(e.getTime()))throw h.default.Error("E1032",a);return e}},{key:"endDate",value:function e(t,n,i){var e=this.instance._getEndDate(t),o=this.startDate(t,!0),a=this.startDate(t,!1,n);if(a.getTime()>e.getTime()||i){var r=n?n.initialStartDate||n.startDate:o,s=n?n.startDate:o,l=a.getTime()>e.getTime()?this.instance.fire("getField","endDate",t).getTime()-this.instance.fire("getField","startDate",t).getTime():e.getTime()-o.getTime();if(l=this._adjustDurationByDaylightDiff(l,o,e),e=new Date(a.getTime()>=r.getTime()?r.getTime():a.getTime()),i&&(e=new Date(e.getTime()+l)),!f.default.sameDate(o,e)&&s.getTime()<a.getTime()){var u=f.default.trimTime(e).getTime()-s.getTime(),d=l-u||l;e=new Date(f.default.trimTime(a).getTime()+d)}}if(!this.isAllDay(t)){var c=f.default.roundToHour(this.instance.fire("getEndViewDate"));e>c&&(e=c)}return e}},{key:"_adjustDurationByDaylightDiff",value:function(e,t,n){var i=this.instance.fire("getDaylightOffset",t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e}},{key:"_needAdjustDuration",value:function(e){return 0!==e}},{key:"_calculateDurationByDaylightDiff",value:function(e,t){return e+t*y("minute")}},{key:"_getAppointmentDurationInMs",value:function(e,t,n){var i;return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n,callback:function(e){i=e}}),i}},{key:"_getMaxNeighborAppointmentCount",value:function(){var e=this.instance.fire("getMaxAppointmentsPerCell");if(e)return 0;var t=this.getCompactAppointmentDefaultWidth()+this.getCompactAppointmentLeftOffset();return Math.floor(this.getDropDownAppointmentWidth()/t)}},{key:"_markAppointmentAsVirtual",value:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(t);e.count-n>this._getMaxNeighborAppointmentCount()&&(e.virtual={top:e.top,left:e.left,index:"tail"===e.appointmentReduced?e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex+"-tail",isAllDay:t})}},{key:"_getMaxAppointmentCountPerCellByType",value:function(e){var t=this._getMaxAppointmentCountPerCell();return _.default.isObject(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t}},{key:"getDropDownAppointmentWidth",value:function(e,t){return this.getPositioningStrategy().getDropDownAppointmentWidth(e,t)}},{key:"getDropDownAppointmentHeight",value:function(){return this.getPositioningStrategy().getDropDownAppointmentHeight()}},{key:"getDropDownButtonAdaptiveSize",value:function(){return k}},{key:"getDefaultCellWidth",value:function(){return this._defaultWidth}},{key:"getDefaultCellHeight",value:function(){return this._defaultHeight}},{key:"getDefaultAllDayCellHeight",value:function(){return this._allDayHeight}},{key:"getCompactAppointmentDefaultWidth",value:function(){return x}},{key:"getCompactAppointmentTopOffset",value:function(e){return this.getPositioningStrategy().getCompactAppointmentTopOffset(e)}},{key:"getCompactAppointmentLeftOffset",value:function(){return this.getPositioningStrategy().getCompactAppointmentLeftOffset()}},{key:"getAppointmentDataCalculator",value:function(){}},{key:"_customizeCoordinates",value:function(e,t,n,i,o){var a,r,s=e.index,l=t/n,u=e.top+s*l,d=u+i,c=e.width,h=e.left,p=this.getCompactAppointmentTopOffset(o);return e.isCompact&&(a=this.getCompactAppointmentDefaultWidth(),r=this.getCompactAppointmentLeftOffset(),d=e.top+p,h=e.left+(s-n)*(a+r)+r,this._isAdaptive()&&this._correctCompactAppointmentCoordinatesInAdaptive(e,o),l=a,c=a,this._markAppointmentAsVirtual(e,o)),{height:l,width:c,top:d,left:h,empty:this._isAppointmentEmpty(t,c)}}},{key:"_isAppointmentEmpty",value:function(e,t){return e<this._getAppointmentMinHeight()||t<this._getAppointmentMinWidth()}},{key:"_calculateGeometryConfig",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxHeight();(0,g.isNumeric)(o)||(o=e.count,a=(r-n.unlimited)/r);var s=(1-a)*r;return("auto"===t||(0,g.isNumeric)(t))&&(a=1,r-=i,s=i),{height:a*r,appointmentCountPerCell:o,offset:s}}},{key:"_getAppointmentCount",value:function(){}},{key:"_getDefaultRatio",value:function(){}},{key:"_getOffsets",value:function(){}},{key:"_getMaxHeight",value:function(){}},{key:"_needVerifyItemSize",value:function(){return!1}},{key:"needSeparateAppointment",value:function(e){return this.instance.fire("isGroupedByDate")&&e}},{key:"_getMaxAppointmentCountPerCell",value:function(){if(!this._maxAppointmentCountPerCell){var e,t=this.instance.fire("getMaxAppointmentsPerCell");t||(e=2),(0,g.isNumeric)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell}},{key:"_getDynamicAppointmentCountPerCell",value:function(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()}},{key:"hasAllDayAppointments",value:function(){return!1}},{key:"_isCompactTheme",value:function(){return"compact"===(v.default.current()||"").split(".").pop()}},{key:"_getAppointmentDefaultOffset",value:function(){return this.getPositioningStrategy().getAppointmentDefaultOffset()}},{key:"_getAppointmentDefaultHeight",value:function(){return this._getAppointmentHeightByTheme()}},{key:"_getAppointmentMinHeight",value:function(){return this._getAppointmentDefaultHeight()}},{key:"_getAppointmentHeightByTheme",value:function(){return this._isCompactTheme()?C:b}},{key:"_getAppointmentDefaultWidth",value:function(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()}},{key:"_getAppointmentMinWidth",value:function(){return this._getAppointmentDefaultWidth()}},{key:"_needVerticalGroupBounds",value:function(){return!1}},{key:"_needHorizontalGroupBounds",value:function(){return!1}}]),e}();e.exports=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(17),h=i(c),p=n(5),f=i(p),g=n(8),_=i(g),m=n(23),v=i(m),y=_.default.addNamespace(v.default.up,"dxDiagramPanel"),w=".dx-textbox",x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._createOnPointerUpAction()}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._attachPointerUpEvent()}},{key:"_attachPointerUpEvent",value:function(){var e=this;f.default.off(this.$element(),y),f.default.on(this.$element(),y,function(t){(0,d.default)(t.target).closest(w).length||e._onPointerUpAction()})}},{key:"_createOnPointerUpAction",value:function(){this._onPointerUpAction=this._createActionByOption("onPointerUp")}},{key:"_optionChanged",value:function(e){switch(e.name){case"onPointerUp":this._createOnPointerUpAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default);e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(146),a=n(0),r=n(187),s=n(1),l=n(7),u=n(10),d=i(u),c={widget:"separator"},h={SMALL_SELECT:"dx-diagram-select-sm",BUTTON_SELECT:"dx-diagram-select-b",BUTTON_COLOR:"dx-diagram-color-b"},p={getAllToolbarCommands:function(){var e=this,t=(0,o.getDiagram)(),n=t.DiagramCommand;return this.toolbarCommands||(this.toolbarCommands={separator:c,"export":{widget:"dxButton",icon:"export",text:d.default.format("dxDiagram-commandExport"),hint:d.default.format("dxDiagram-commandExport"),items:[{command:n.ExportSvg,text:d.default.format("dxDiagram-commandExportToSvg"),getParameter:function(t){return function(n){return e._exportTo(t,n,"SVG","image/svg+xml")}}},{command:n.ExportPng,text:d.default.format("dxDiagram-commandExportToPng"),getParameter:function(t){return function(n){return e._exportTo(t,n,"PNG","image/png")}}},{command:n.ExportJpg,text:d.default.format("dxDiagram-commandExportToJpg"),getParameter:function(t){return function(n){return e._exportTo(t,n,"JPEG","image/jpeg")}}}]},undo:{command:n.Undo,hint:d.default.format("dxDiagram-commandUndo"),text:d.default.format("dxDiagram-commandUndo"),icon:"undo"},redo:{command:n.Redo,hint:d.default.format("dxDiagram-commandRedo"),text:d.default.format("dxDiagram-commandRedo"),icon:"redo"},cut:{command:n.Cut,hint:d.default.format("dxDiagram-commandCut"),text:d.default.format("dxDiagram-commandCut"),icon:"cut"},copy:{command:n.Copy,hint:d.default.format("dxDiagram-commandCopy"),text:d.default.format("dxDiagram-commandCopy"),icon:"copy"},paste:{command:n.PasteInPosition,hint:d.default.format("dxDiagram-commandPaste"),text:d.default.format("dxDiagram-commandPaste"),icon:"paste",getParameter:function(e){return e.clickPosition}},selectAll:{command:n.SelectAll,hint:d.default.format("dxDiagram-commandSelectAll"),text:d.default.format("dxDiagram-commandSelectAll"),icon:"dx-diagram-i-button-select-all dx-diagram-i"},"delete":{command:n.Delete,hint:d.default.format("dxDiagram-commandDelete"),text:d.default.format("dxDiagram-commandDelete"),icon:"remove"},fontName:{command:n.FontName,hint:d.default.format("dxDiagram-commandFontName"),widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"]},fontSize:{command:n.FontSize,hint:d.default.format("dxDiagram-commandFontSize"),widget:"dxSelectBox",items:["8pt","9pt","10pt","11pt","12pt","14pt","16pt","18pt","20pt","22pt","24pt","26pt","28pt","36pt","48pt","72pt"],cssClass:h.SMALL_SELECT},bold:{command:n.Bold,hint:d.default.format("dxDiagram-commandBold"),text:d.default.format("dxDiagram-commandBold"),icon:"bold"},italic:{command:n.Italic,hint:d.default.format("dxDiagram-commandItalic"),text:d.default.format("dxDiagram-commandItalic"),icon:"italic"},underline:{command:n.Underline,hint:d.default.format("dxDiagram-commandUnderline"),text:d.default.format("dxDiagram-commandUnderline"),icon:"underline"},fontColor:{command:n.FontColor,text:d.default.format("dxDiagram-commandTextColor"),hint:d.default.format("dxDiagram-commandTextColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-color",cssClass:h.BUTTON_COLOR},lineColor:{command:n.StrokeColor,text:d.default.format("dxDiagram-commandLineColor"),hint:d.default.format("dxDiagram-commandLineColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-background",cssClass:h.BUTTON_COLOR},fillColor:{command:n.FillColor,text:d.default.format("dxDiagram-commandFillColor"),hint:d.default.format("dxDiagram-commandFillColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",cssClass:h.BUTTON_COLOR},textAlignLeft:{command:n.TextLeftAlign,hint:d.default.format("dxDiagram-commandAlignLeft"),text:d.default.format("dxDiagram-commandAlignLeft"),icon:"alignleft"},textAlignCenter:{command:n.TextCenterAlign,hint:d.default.format("dxDiagram-commandAlignCenter"),text:d.default.format("dxDiagram-commandAlignCenter"),icon:"aligncenter"},textAlignRight:{command:n.TextRightAlign,hint:d.default.format("dxDiagram-commandAlignRight"),text:d.default.format("dxDiagram-commandAlignRight"),icon:"alignright"},lock:{command:n.Lock,hint:d.default.format("dxDiagram-commandLock"),text:d.default.format("dxDiagram-commandLock"),icon:"dx-diagram-i-button-lock dx-diagram-i"},unlock:{command:n.Unlock,hint:d.default.format("dxDiagram-commandUnlock"),text:d.default.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-button-unlock dx-diagram-i"},bringToFront:{command:n.BringToFront,hint:d.default.format("dxDiagram-commandBringToFront"),text:d.default.format("dxDiagram-commandBringToFront"),icon:"dx-diagram-i-button-bring-to-front dx-diagram-i"},sendToBack:{command:n.SendToBack,hint:d.default.format("dxDiagram-commandSendToBack"),text:d.default.format("dxDiagram-commandSendToBack"),icon:"dx-diagram-i-button-send-to-back dx-diagram-i"},insertShapeImage:{command:n.InsertShapeImage,text:d.default.format("dxDiagram-commandInsertShapeImage"),icon:"dx-diagram-i-button-image-insert dx-diagram-i"},editShapeImage:{command:n.EditShapeImage,text:d.default.format("dxDiagram-commandEditShapeImage"),icon:"dx-diagram-i-button-image-edit dx-diagram-i"},deleteShapeImage:{command:n.DeleteShapeImage,text:d.default.format("dxDiagram-commandDeleteShapeImage"),icon:"dx-diagram-i-button-image-delete dx-diagram-i"},connectorLineType:{command:n.ConnectorLineOption,widget:"dxSelectBox",
hint:d.default.format("dxDiagram-commandConnectorLineType"),items:[{value:0,icon:"dx-diagram-i-connector-straight dx-diagram-i",hint:d.default.format("dxDiagram-commandConnectorLineStraight")},{value:1,icon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:d.default.format("dxDiagram-commandConnectorLineOrthogonal")}],displayExpr:"name",valueExpr:"value",cssClass:h.BUTTON_SELECT},connectorLineStart:{command:n.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,icon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:d.default.format("dxDiagram-commandConnectorLineNone")},{value:1,icon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:d.default.format("dxDiagram-commandConnectorLineArrow")}],displayExpr:"name",valueExpr:"value",hint:d.default.format("dxDiagram-commandConnectorLineStart"),cssClass:h.BUTTON_SELECT},connectorLineEnd:{command:n.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,icon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:d.default.format("dxDiagram-commandConnectorLineNone")},{value:1,icon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:d.default.format("dxDiagram-commandConnectorLineArrow")}],displayExpr:"name",valueExpr:"value",hint:d.default.format("dxDiagram-commandConnectorLineEnd"),cssClass:h.BUTTON_SELECT},autoLayout:{widget:"dxButton",text:d.default.format("dxDiagram-commandAutoLayout"),showText:"always",items:[{text:d.default.format("dxDiagram-commandAutoLayoutTree"),items:[{command:n.AutoLayoutTreeVertical,text:d.default.format("dxDiagram-commandAutoLayoutVertical")},{command:n.AutoLayoutTreeHorizontal,text:d.default.format("dxDiagram-commandAutoLayoutHorizontal")}]},{text:d.default.format("dxDiagram-commandAutoLayoutLayered"),items:[{command:n.AutoLayoutLayeredVertical,text:d.default.format("dxDiagram-commandAutoLayoutVertical")},{command:n.AutoLayoutLayeredHorizontal,text:d.default.format("dxDiagram-commandAutoLayoutHorizontal")}]}]},fullScreen:{command:n.Fullscreen,hint:d.default.format("dxDiagram-commandFullscreen"),text:d.default.format("dxDiagram-commandFullscreen"),icon:"dx-diagram-i dx-diagram-i-button-fullscreen",cssClass:h.BUTTON_COLOR}})},getToolbarCommands:function(e){var t=this.getAllToolbarCommands();return e?e.map(function(e){return t[e]}).filter(function(e){return e}):[t.export,t.separator,t.undo,t.redo,t.separator,t.fontName,t.fontSize,t.separator,t.bold,t.italic,t.underline,t.separator,t.fontColor,t.lineColor,t.fillColor,t.separator,t.textAlignLeft,t.textAlignCenter,t.textAlignRight,t.separator,t.connectorLineType,t.connectorLineStart,t.connectorLineEnd,t.separator,t.autoLayout,t.separator,t.fullScreen]},getAllPropertyPanelCommands:function(){var e=(0,o.getDiagram)(),t=e.DiagramCommand;return this.propertyPanelCommands||(this.propertyPanelCommands={units:{command:t.ViewUnits,text:d.default.format("dxDiagram-commandUnits"),widget:"dxSelectBox"},pageSize:{command:t.PageSize,text:d.default.format("dxDiagram-commandPageSize"),widget:"dxSelectBox",getValue:function(e){return JSON.parse(e)},setValue:function(e){return JSON.stringify(e)}},pageOrientation:{command:t.PageLandscape,text:d.default.format("dxDiagram-commandPageOrientation"),widget:"dxSelectBox",items:[{value:!0,title:d.default.format("dxDiagram-commandPageOrientationLandscape")},{value:!1,title:d.default.format("dxDiagram-commandPageOrientationPortrait")}]},pageColor:{command:t.PageColor,text:d.default.format("dxDiagram-commandPageColor"),widget:"dxColorBox"},showGrid:{command:t.ShowGrid,text:d.default.format("dxDiagram-commandShowGrid"),widget:"dxCheckBox"},snapToGrid:{command:t.SnapToGrid,text:d.default.format("dxDiagram-commandSnapToGrid"),widget:"dxCheckBox"},gridSize:{command:t.GridSize,text:d.default.format("dxDiagram-commandGridSize"),widget:"dxSelectBox"},zoomLevel:{command:t.ZoomLevel,text:d.default.format("dxDiagram-commandZoomLevel"),widget:"dxSelectBox"},autoZoom:{command:t.ToggleAutoZoom,text:d.default.format("dxDiagram-commandAutoZoom"),widget:"dxCheckBox"},simpleView:{command:t.ToggleSimpleView,text:d.default.format("dxDiagram-commandSimpleView"),widget:"dxCheckBox"}})},getDefaultPropertyPanelCommandGroups:function(){return[{commands:["units"]},{commands:["pageSize","pageOrientation","pageColor"]},{commands:["showGrid","snapToGrid","gridSize"]},{commands:["zoomLevel","autoZoom","simpleView"]}]},getPropertyPanelCommandsByGroups:function(e){var t=p.getAllPropertyPanelCommands(),n=[];return e.forEach(function(e,i){e.commands.forEach(function(e,o){n.push((0,a.extend)(t[e],{beginGroup:i>0&&0===o}))})}),n},getPropertyPanelCommands:function(e){return e=e||p.getDefaultPropertyPanelCommandGroups(),p.getPropertyPanelCommandsByGroups(e)},getAllContextMenuCommands:function(){var e=(0,o.getDiagram)(),t=e.DiagramCommand;return this.contextMenuCommands||(this.contextMenuCommands={separator:c,cut:{command:t.Cut,text:d.default.format("dxDiagram-commandCut"),icon:"cut"},copy:{command:t.Copy,text:d.default.format("dxDiagram-commandCopy"),icon:"copy"},paste:{command:t.PasteInPosition,text:d.default.format("dxDiagram-commandPaste"),getParameter:function(e){return e.clickPosition},icon:"paste"},selectAll:{command:t.SelectAll,text:d.default.format("dxDiagram-commandSelectAll"),icon:"dx-diagram-i-menu-select-all dx-diagram-i"},"delete":{command:t.Delete,text:d.default.format("dxDiagram-commandDelete"),icon:"remove"},bringToFront:{command:t.BringToFront,text:d.default.format("dxDiagram-commandBringToFront"),icon:"dx-diagram-i-menu-bring-to-front dx-diagram-i"},sendToBack:{command:t.SendToBack,text:d.default.format("dxDiagram-commandSendToBack"),icon:"dx-diagram-i-menu-send-to-back dx-diagram-i"},lock:{command:t.Lock,text:d.default.format("dxDiagram-commandLock"),icon:"dx-diagram-i-menu-lock dx-diagram-i"},unlock:{command:t.Unlock,text:d.default.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-menu-unlock dx-diagram-i"},insertShapeImage:{command:t.InsertShapeImage,text:d.default.format("dxDiagram-commandInsertShapeImage"),icon:"dx-diagram-i-menu-image-insert dx-diagram-i"},editShapeImage:{command:t.EditShapeImage,text:d.default.format("dxDiagram-commandEditShapeImage"),icon:"dx-diagram-i-menu-image-edit dx-diagram-i"},deleteShapeImage:{command:t.DeleteShapeImage,text:d.default.format("dxDiagram-commandDeleteShapeImage"),icon:"dx-diagram-i-menu-image-delete dx-diagram-i"}})},getContextMenuCommands:function(e){var t=this.getAllContextMenuCommands();return e?e.map(function(e){return t[e]}).filter(function(e){return e}):[t.cut,t.copy,t.paste,t.delete,t.separator,t.selectAll,t.separator,t.bringToFront,t.sendToBack,t.separator,t.lock,t.unlock,t.separator,t.insertShapeImage,t.editShapeImage,t.deleteShapeImage]},_exportTo:function(e,t,n,i){var o=(0,l.getWindow)();if(o&&o.atob&&(0,s.isFunction)(o.Blob)){var a=this._getBlobByDataURI(o,t,i),u=e.option("export");r.fileSaver.saveAs(u.fileName||"foo",n,a,u.proxyURL)}},_getBlobByDataURI:function(e,t,n){for(var i=e.atob(t.split(",")[1]),o=new Uint8Array(i.length),a=0;a<i.length;a++)o[a]=i.charCodeAt(a);return new e.Blob([o.buffer],{type:n})}};e.exports=p},,,,,,,,,,,,,,,function(e,t,n){function i(e){return e.split(",").slice(1).map(function(e){return e.split("").filter(function(e){return"#"===e||"0"===e}).length})}function o(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}function a(e){return e.toString().split("").reverse().join("")}function r(e){return e.indexOf("%")!==-1&&!e.match(/'[^']*%[^']*'/g)}function s(e){return e?e.length-e.replace(/[#]/g,"").length:0}function l(e){return e?e.length-e.replace(/[0]/g,"").length:0}function u(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length<t;)e+="0";return e}function d(e,t,n){if(!t.length)return e;for(var i=[],o=0;e;){var a=t[o];i.push(e.slice(0,a)),e=e.slice(a),o<t.length-1&&o++}return i.join(n)}function c(e,t){return e.split(x).map(function(e,n){var i=n%2;return!e&&i?x:i?e:e.replace(/[,#0]+/,t)}).join("")}function h(e){for(var t=!1,n=0;n<e.length;n++)if("'"===e[n]&&(t=!t),"."===e[n]&&!t)return n;return e.length}function p(e,t){return t=t||w,function(n){if("number"!=typeof n||isNaN(n))return"";var p=o(e),f=1/n===1/0,g=n>0||f,_=p[g?0:1];r(_)&&(n=100*n),g||(n=-n);var m=h(_),w=[_.substr(0,m),_.substr(m+1)],x=l(w[1]),C=x+s(w[1]),k=l(w[0]),I=s(w[0])?void 0:k,S=Math.floor(n).toString().length,D=v(C,0,b-S),T=i(w[0]).reverse(),E=y(n,D<0?0:D).split("."),O=u(a(E[0]),k,I),A=u(E[1],x,C);O=d(O,T,t.thousandsSeparator);var P=a(c(a(w[0]),O)),B=C?c(w[1],A):"",M=P+(B.match(/\d/)?t.decimalSeparator:"")+B;return M}}function f(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function g(e,t,n,i){var o,a,r,s=e;do r&&(o=a.length===r.length?"0":"1",e=i?o+e:e+o),a=r||t(f(s,n)),s=i?"1"+s:s+"1",r=t(f(s,n));while(a!==r&&(i?a.length===r.length:a.length<=r.length));if(i&&r.length>a.length){var l=t(12345).indexOf("12345")===-1;do e="1"+e;while(l&&f(e,n)<1e5)}return e}function _(e,t,n,i){var o=t(f(e,n,i)),a=e.split("."),r=a[0]+".3"+a[1].slice(1),s=f(r,n,i),l=t(s).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}function m(e){var t=".",n=e(1).indexOf("100")>=0;t=g(t,e,n,!0),t=g(t,e,n,!1);var i=_(t,e,n,!1),o=_(t,e,n,!0);return o==="-"+i?i:i+";"+o}var v=n(30).fitIntoRange,y=n(218).toFixed,w={thousandsSeparator:",",decimalSeparator:"."},x="'",b=15;t.getFormatter=p,t.getFormat=m},function(e,t,n){var i=n(76).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){var i=n(7).getWindow(),o=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=o},function(e,t,n){var i=n(2),o=n(15),a=n(0).extend,r=n(4),s=n(1),l=n(3),u=n(39),d=n(183),c=n(6),h=c.when,p=c.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a,r=this,s=[];return n=n||{},a=this._prepareElementAnimationConfig(t,n,o),a&&e.each(function(){var e=r._createAnimation(i(this),a,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=d.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=u.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=_},function(e,t,n){var i=n(5);t.on=i.on,t.one=i.one,t.off=i.off,t.trigger=i.trigger,t.triggerHandler=i.triggerHandler,t.Event=i.Event},function(e,t,n){var i=n(15),o=n(484),a=n(485),r=n(0).extend,s=n(4).noop,l=n(1).isDefined,u=n(6).Deferred;e.exports=i.inherit({ctor:function(e){this.options=r(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o(this.options):new a(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:s,key:s,keyOf:function(e){return e},load:function(){return(new u).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:s,filter:s}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e){return this.selectedItemKeys(e)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i){var o=this;return e=e||[],e=Array.isArray(e)?e:[e],o.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t){var n,i=this.options.plainItems(),o=i[e];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),r=this.options.keyOf(a);if(t=t||{},t.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(r):this._addSelectedItem(a,r),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],r);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([r],[a]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e)},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o=!1,a=this.options.keyOf,r=t[this._focusedItemIndex],s=this.options.getItemData(r),u=a(s),d=r&&this.isItemDataSelected(s);l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var c,h;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(h=a(this.options.getItemData(t[i])),this._removeSelectedItem(h),o=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(c=this.options.getItemData(t[i]),h=a(c),this._addSelectedItem(c,h),o=!0);return this.isDataItem(r)&&!d&&(this._addSelectedItem(s,u),o=!0),o},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this._selectionStrategy.getSelectableItems(this.options.plainItems()),n=0;n<t.length;n++){var i=t[n];if(this.isDataItem(i)){var o=this.options.getItemData(i),a=this.options.keyOf(o),r=this.isItemSelected(a);r||e||this._addSelectedItem(o,a),r&&e&&this._removeSelectedItem(a)}}return this.onSelectionChanged(),(new u).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}})},function(e,t,n){var i=n(4).getKeyHash,o=n(4).equalByValue,a=n(1),r=function(e,t){this.getLocalFilter=function(e,t,n,i){return t=void 0===t?o:t,l.bind(this,t,e,n,i)},this.getExpr=function(n){if(n){var i;return e.forEach(function(e,o){i=i||[];var r;o>0&&i.push(t?"and":"or"),r=a.isString(n)?u(n,e):d(n,e),i.push(r)}),i&&1===i.length&&(i=i[0]),i}},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),o=i;return t&&n&&(i?(o=[],o.push(i),o.push(n)):o=n),o};var n,r=function(e){if(!n){n={};for(var t=0;t<e.length;t++)n[i(e[t])]=!0}return n},s=function(e,t,n){return Array.isArray(n)?e.map(function(e){return t(e)}):e},l=function(n,o,l,u,d){var c,h,p=o(d);if(!l&&(c=i(p),!a.isObject(c))){var f=r(s(e,o,u));return f[c]?!t:!!t}for(h=0;h<e.length;h++)if(n(e[h],p))return!t;return!!t},u=function(e,n){if(void 0!==n)return[e,t?"<>":"=",n]},d=function(e,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=n&&n[r],l=u(r,s);if(!l)break;o>0&&i.push(t?"or":"and"),i.push(l)}return i}};t.SelectionFilterCreator=r},function(e,t,n){var i=n(30),o=n(3),a=n(21),r=n(8),s=n(116),l=n(90),u="dx",d="transform",c="translate",h="zoom",p="pinch",f="rotate",g="start",_="",m="end",v=[],y=function(e,t){v.push({name:e,args:t})};y(d,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),y(c,{translation:!0,deltaTranslation:!0}),y(h,{scale:!0,deltaScale:!0}),y(p,{scale:!0,deltaScale:!0}),y(f,{rotation:!0,deltaRotation:!0});var w=function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}},x=function(e){var t=e.pointers;return w(t[0],t[1])},b=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},C=function(e,t){return b(e)/b(t)},k=function(e,t){var n=e.x*t.x+e.y*t.y,o=b(e)*b(t);if(0===o)return 0;var a=i.sign(e.x*t.y-t.x*e.y),r=Math.acos(i.fitIntoRange(n/o,-1,1));return a*r},I=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},S=s.inherit({configure:function(e,t){t.indexOf(h)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(h,p)+"' event instead"),this.callBase(e)},validatePointers:function(e){return r.hasTouches(e)>1},start:function(e){this._accept(e);var t=x(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=x(e),n=this._getEventArgs(t);this._fireEventAliases(_,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(m,e,t)},_getEventArgs:function(e){return{scale:C(e,this._startVector),deltaScale:C(e,this._prevVector),rotation:k(e,this._startVector),deltaRotation:k(e,this._prevVector),translation:I(e,this._startVector),deltaTranslation:I(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},o.each(v,function(i,a){var r={};o.each(a.args,function(e){e in n&&(r[e]=n[e])}),this._fireEvent(u+a.name+e,t,r)}.bind(this))}}),D=v.reduce(function(e,t){return[g,_,m].forEach(function(n){e.push(u+t.name+n)}),e},[]);l({emitter:S,events:D}),o.each(D,function(e,n){t[n.substring(u.length)]=n})},function(e,t,n){e.exports={_waitAsyncTemplates:function(e){if(this._options.templatesRenderAsynchronously){this._asyncTemplatesTimers=this._asyncTemplatesTimers||[];var t=setTimeout(function(){e.call(this),clearTimeout(t)}.bind(this));this._asyncTemplatesTimers.push(t)}else e.call(this)},_cleanAsyncTemplatesTimer:function(){for(var e=this._asyncTemplatesTimers||[],t=0;t<e.length;t++)clearTimeout(e[t]);delete this._asyncTemplatesTimers}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){return Array.isArray(e)&&e.every(function(e){var t=2===Object.keys(e).length,n="key"in e&&"items"in e;return t&&n&&Array.isArray(e.items)})};t.default={_getSpecificDataSourceOption:function(){var e="key",t=this.option("dataSource"),n=!1,a={};return this._getGroupedOption()&&o(t)&&(a=t.reduce(function(t,o){var a=o.items.map(function(t){return(0,i.isObject)(t)||(t={text:t},n=!0),e in t||(t[e]=o.key),t});return t.concat(a)},[]),t={store:{type:"array",data:a},group:{selector:"key",keepInitialKeyOrder:!0}},n&&(t.searchExpr="text")),t}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(2),u=i(l),d=n(62),c=i(d),h=n(4),p=n(34),f=i(p),g=n(7),_=n(3),m=n(6),v=n(5),y=i(v),w=n(164),x=n(18),b=(0,g.getWindow)(),C="chunk",k=function(e){function t(e){o(this,t),e=(0,h.ensureDefined)(e,{});var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._endpointUrl=e.endpointUrl,n._hasSubDirsGetter=(0,x.compileGetter)(e.hasSubDirectoriesExpr||"hasSubDirectories"),n}return r(t,e),s(t,[{key:"getItems",value:function(e){var t=this;return this._getEntriesByPath(e).then(function(n){return t._convertDataObjectsToFileItems(n.result,e)})}},{key:"renameItem",value:function(e,t){return this._executeRequest("Rename",{pathInfo:e.getFullPathInfo(),name:t})}},{key:"createFolder",value:function(e,t){return this._executeRequest("CreateDir",{pathInfo:e.getFullPathInfo(),name:t}).done(function(){e&&!e.isRoot&&(e.hasSubDirs=!0)})}},{key:"deleteItems",value:function(e){var t=this;return e.map(function(e){return t._executeRequest("Remove",{pathInfo:e.getFullPathInfo()})})}},{key:"moveItems",value:function(e,t){var n=this;return e.map(function(e){return n._executeRequest("Move",{sourcePathInfo:e.getFullPathInfo(),destinationPathInfo:t.getFullPathInfo()})})}},{key:"copyItems",value:function(e,t){var n=this;return e.map(function(e){return n._executeRequest("Copy",{sourcePathInfo:e.getFullPathInfo(),destinationPathInfo:t.getFullPathInfo()})})}},{key:"uploadFileChunk",value:function(e,t,n){0===t.chunkIndex&&(t.customData.uploadId=new f.default);var i={destinationId:n.relativeName,chunkMetadata:JSON.stringify({UploadId:t.customData.uploadId,FileName:e.name,Index:t.chunkIndex,TotalCount:t.chunkCount,FileSize:e.size})},o=new b.FormData;o.append(C,t.chunkBlob),o.append("arguments",JSON.stringify(i)),o.append("command","UploadChunk");var a=new m.Deferred;return c.default.sendRequest({url:this._endpointUrl,method:"POST",dataType:"json",data:o,upload:{onprogress:h.noop,onloadstart:h.noop,onabort:h.noop},cache:!1}).done(function(e){!e.success&&a.reject(e)||a.resolve()}).fail(a.reject),a.promise()}},{key:"abortFileUpload",value:function(e,t,n){return this._executeRequest("AbortUpload",{uploadId:t.customData.uploadId})}},{key:"downloadItems",value:function(e){var t=this._getDownloadArgs(e),n=(0,u.default)("<form>").css({display:"none"}).attr({method:"post",action:t.url});["command","arguments"].forEach(function(e){(0,u.default)("<input>").attr({type:"hidden",name:e,value:t[e]}).appendTo(n)}),n.appendTo("body"),y.default.trigger(n,"submit"),setTimeout(function(){return n.remove()})}},{key:"getItemContent",value:function(e){var t=this._getDownloadArgs(e),n=new b.FormData;return n.append("command",t.command),n.append("arguments",t.arguments),c.default.sendRequest({url:t.url,method:"POST",responseType:"arraybuffer",data:n,upload:{onprogress:h.noop,onloadstart:h.noop,onabort:h.noop},cache:!1})}},{key:"_getDownloadArgs",value:function(e){var t=e.map(function(e){return e.getFullPathInfo()}),n={pathInfoList:t},i=JSON.stringify(n);return{url:this._endpointUrl,arguments:i,command:"Download"}}},{key:"_getItemsIds",value:function(e){return e.map(function(e){return e.relativeName})}},{key:"_getEntriesByPath",value:function(e){return this._executeRequest("GetDirContents",{pathInfo:e})}},{key:"_executeRequest",value:function(e,t){var n="GetDirContents"===e?"GET":"POST",i=new m.Deferred;return c.default.sendRequest({url:this._getEndpointUrl(e,t),method:n,dataType:"json",cache:!1}).then(function(e){!e.success&&i.reject(e)||i.resolve(e)},function(e){return i.reject(e)}),i.promise()}},{key:"_getEndpointUrl",value:function(e,t){var n=this._getQueryString({command:e,arguments:JSON.stringify(t)}),i=this._endpointUrl&&this._endpointUrl.indexOf("?")>0?"&":"?";return this._endpointUrl+i+n}},{key:"_getQueryString",value:function(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var o=n[i],a=e[o];if(void 0!==a)if(null===a&&(a=""),Array.isArray(a))this._processQueryStringArrayParam(o,a,t);else{var r=this._getQueryStringPair(o,a);t.push(r)}}return t.join("&")}},{key:"_processQueryStringArrayParam",value:function(e,t,n){var i=this;(0,_.each)(t,function(t,o){var a=i._getQueryStringPair(e,o);n.push(a)})}},{key:"_getQueryStringPair",value:function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)}},{key:"_hasSubDirs",value:function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t}},{key:"_getKeyExpr",value:function(e){return e.keyExpr||"key"}}]),t}(w.FileProvider);e.exports=k},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=n(4),u=n(1),d=n(6),c=n(18),h=n(164),p=function(e){function t(e){i(this,t),e=(0,l.ensureDefined)(e,{});var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._hasSubDirsGetter=(0,c.compileGetter)(e.hasSubDirectoriesExpr||"hasSubDirectories"),n._getItemsFunction=n._ensureFunction(e.getItems,function(){return[]}),n._renameItemFunction=n._ensureFunction(e.renameItem),n._createDirectoryFunction=n._ensureFunction(e.createDirectory),n._deleteItemFunction=n._ensureFunction(e.deleteItem),
n._moveItemFunction=n._ensureFunction(e.moveItem),n._copyItemFunction=n._ensureFunction(e.copyItem),n._uploadFileChunkFunction=n._ensureFunction(e.uploadFileChunk),n._abortFileUploadFunction=n._ensureFunction(e.abortFileUpload),n._downloadItemsFunction=n._ensureFunction(e.downloadItems),n._getItemsContentFunction=n._ensureFunction(e.getItemsContent),n._uploadChunkSize=e.uploadChunkSize,n}return a(t,e),r(t,[{key:"getItems",value:function(e){var t=this;return(0,d.when)(this._getItemsFunction(e)).then(function(n){return t._convertDataObjectsToFileItems(n,e)})}},{key:"renameItem",value:function(e,t){return this._renameItemFunction(e,t)}},{key:"createFolder",value:function(e,t){return this._createDirectoryFunction(e,t)}},{key:"deleteItems",value:function(e){var t=this;return e.map(function(e){return t._deleteItemFunction(e)})}},{key:"moveItems",value:function(e,t){var n=this;return e.map(function(e){return n._moveItemFunction(e,t)})}},{key:"copyItems",value:function(e,t){var n=this;return e.map(function(e){return n._copyItemFunction(e,t)})}},{key:"uploadFileChunk",value:function(e,t,n){return this._uploadFileChunkFunction(e,t,n)}},{key:"abortFileUpload",value:function(e,t,n){return this._abortFileUploadFunction(e,t,n)}},{key:"downloadItems",value:function(e){return this._downloadItemsFunction(e)}},{key:"getItemContent",value:function(e){return this._getItemsContentFunction(e)}},{key:"getFileUploadChunkSize",value:function(){return(0,l.ensureDefined)(this._uploadChunkSize,s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getFileUploadChunkSize",this).call(this))}},{key:"_hasSubDirs",value:function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t}},{key:"_getKeyExpr",value:function(e){return e.keyExpr||"key"}},{key:"_ensureFunction",value:function(e,t){return t=t||l.noop,(0,u.isFunction)(e)?e:t}}]),t}(h.FileProvider);e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(31),s=i(r),l=n(4),u=i(l),d=n(1),c=n(9),h=i(c),p=n(14),f=n(0),g=n(3),_=n(510),m=i(_),v=n(67),y=i(v),w=n(66),x=n(39),b=i(x),C="dx-toolbar",k="dx-toolbar-before",I="dx-toolbar-center",S="dx-toolbar-after",D="dx-toolbar-bottom",T="dx-toolbar-mini",E="dx-toolbar-item",O="dx-toolbar-label",A="dx-toolbar-button",P="dx-toolbar-items-container",B="dx-toolbar-group",M="dx-toolbar-compact",F="."+O,R="text",V="default",H="dxToolbarItemDataKey",L=m.default.inherit({compactMode:!1,ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_getSynchronizableOptionsForCreateComponent:function(){return this.callBase().filter(function(e){return"disabled"!==e})},_initTemplates:function(){this.callBase();var e=new w.BindableTemplate(function(e,t,n){(0,d.isPlainObject)(t)?(t.text&&e.text(t.text).wrapInner("<div>"),t.html&&e.html(t.html),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||R),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||V))):e.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:e,model:n,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._defaultTemplates.item=e,this._defaultTemplates.menuItem=e},_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return s.default.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+k,"."+I,"."+S].join(","))},_itemClass:function(){return E},_itemDataKey:function(){return H},_buttonClass:function(){return A},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_waitParentAnimationFinished:function(){var e=this,t=this.$element(),n=15;return new y.default(function(i){var o=function(){var e=!0;return t.parents().each(function(t,n){if(b.default.isAnimating((0,a.default)(n)))return e=!1,!1}),e&&i(),e},r=function t(){clearTimeout(e._waitParentAnimationTimeout),e._waitParentAnimationTimeout=setTimeout(function(){return o()||t()},n)};r()})},_render:function(){this.callBase(),this._renderItemsAsync(),s.default.isMaterial()&&y.default.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(C).toggleClass(D,"bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=(0,a.default)("<div>").addClass(P).appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;(0,g.each)(["before","center","after"],function(){var n="dx-toolbar-"+this,i=e.find("."+n);i.length||(t["_$"+this+"Section"]=i=(0,a.default)("<div>").addClass(n).appendTo(e))})},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(F),t=[];return e.each(function(e,n){var i=(0,a.default)(n).text(),o=(0,a.default)(n).css("fontWeight");t.push(s.default.waitWebFont(i,o))}),y.default.all(t)},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto","float":"none"});var t=this._$beforeSection.get(0).getBoundingClientRect(),n=this._$afterSection.get(0).getBoundingClientRect();this._alignCenterSection(t,n,e);var i=this._$toolbarItemsContainer.find(F).eq(0),o=i.parent();if(i.length){var r=t.width?t.width:i.position().left,s=o.hasClass(k)?0:r,l=o.hasClass(S)?0:n.width,u=0;o.children().not(F).each(function(){u+=(0,a.default)(this).outerWidth()});var d=e-u,c=Math.max(d-s-l,0);if(o.hasClass(k))this._alignSection(this._$beforeSection,c);else{var h=i.outerWidth()-i.width();i.css("maxWidth",c-h)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),o=i?t:e,a=i?e:t,r=this._$centerSection.get(0).getBoundingClientRect();(o.right>r.left||r.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,"float":o.width>a.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(F),i=n.toArray();t-=this._getCurrentLabelsPaddings(i);var o=this._getCurrentLabelsWidth(i),a=Math.abs(o-t);t<o?(i=i.reverse(),this._alignSectionLabels(i,a,!1)):this._alignSectionLabels(i,a,!0)},_alignSectionLabels:function(e,t,n){for(var i=function(e){return e.getBoundingClientRect().width},o=0;o<e.length;o++){var r,s=(0,a.default)(e[o]),l=Math.ceil(i(e[o]));n&&s.css("maxWidth","inherit");var u=Math.ceil(n?i(e[o]):l);if(!(u<t)){r=n?l+t:l-t,s.css("maxWidth",r);break}r=n?u:0,t-=u,s.css("maxWidth",r)}},_applyCompactMode:function(){var e=this.$element();e.removeClass(M),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>e.width()&&e.addClass(M)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach(function(e,n){t+=(0,a.default)(e).outerWidth()}),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach(function(e,n){t+=(0,a.default)(e).outerWidth()-(0,a.default)(e).width()}),t},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this["_$"+o+"Section"],r=!(!t.text&&!t.html),s=this.callBase(e,t,a,i);return s.toggleClass(this._buttonClass(),!r).toggleClass(O,r).addClass(t.cssClass),s},_renderGroupedItems:function(){var e=this;(0,g.each)(this.option("items"),function(t,n){var i=n.items,o=(0,a.default)("<div>").addClass(B),r=n.location||"center";i&&i.length&&((0,g.each)(i,function(t,n){e._renderItem(t,n,o,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(o))})},_renderItems:function(e){var t=this.option("grouped")&&e.length&&e[0].items;t?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass(T,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:u.default.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return(0,p.inArray)(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}},_dispose:function(){this.callBase(),clearTimeout(this._waitParentAnimationTimeout)}});(0,h.default)("dxToolbarBase",L),e.exports=L},function(e,t,n){var i=n(2),o=n(111),a=n(73),r=n(0).extend,s=n(1).isPlainObject,l=n(300),u=null,d=function(e,t,n){var d=s(e)?e:{message:e},c=d.onHidden;r(d,{type:t,displayTime:n,onHidden:function(e){i(e.element).remove(),new o(c,{context:e.model}).execute(arguments)}}),u=i("<div>").appendTo(a.value()),new l(u,d).show()};e.exports=d},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(12),r=n(5),s=n(49).add,l=n(4),u=n(1),d=n(0).extend,c=n(14).inArray,h=n(23),p=n(9),f=n(59),g=n(31),_="dx-toast",m=_+"-",v=m+"wrapper",y=m+"content",w=m+"message",x=m+"icon",b="dxToast",C=["info","warning","error","success"],k=[],I=8e3,S=null,D={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};s(function(){r.subscribeGlobal(a.getDocument(),h.down,function(e){for(var t=k.length-1;t>=0;t--)if(!k[t]._proxiedDocumentDownHandler(e))return})});var T=f.inherit({_getDefaultOptions:function(){return d(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",closeOnBackButton:!1,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:o}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:o}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform;return t&&n},options:{width:function(){return i(o).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(){return g.isMaterial()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("<div>").addClass(w).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),c(this.option("type").toLowerCase(),C)>-1&&this.$content().prepend(i("<div>").addClass(x)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(_),this._wrapper().addClass(v),this._$content.addClass(m+String(this.option("type")).toLowerCase()),this.$content().addClass(y),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();r.off(this._$content,t),this.option("closeOn"+e)&&r.on(this._$content,t,this.hide.bind(this))},_posStringToObject:function(){if(u.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",d({},D[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return S&&S!==this&&(clearTimeout(S._hideTimeout),S.hide()),S=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return S=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return k},_zIndexInitValue:function(){return this.callBase()+I},_dispose:function(){clearTimeout(this._hideTimeout),S=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this._$content.removeClass(m+e.previousValue),this._$content.addClass(m+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});p(b,T),e.exports=T},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(28),h=i(c),p=n(0),f=n(5),g=i(f),_=n(19),m=i(_),v=n(155),y=n(512),w=i(y),x=n(31),b=i(x),C="dx-fa-button-main",k="dx-fa-button-with-label",I="dx-fa-button-icon-close",S="dx-state-invisible",D=null,T=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){var e={icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",label:"",direction:"auto",actions:[],activeStateEnabled:!0,hoverStateEnabled:!0,indent:55,childIndent:40,childOffset:9,callOverlayRenderShading:!0,closeOnOutsideClick:!0};return(0,p.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),(0,p.extend)(e,(0,h.default)().floatingActionButtonConfig,{shading:!1}))}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return b.default.isMaterial()},options:{indent:72,childIndent:56,childOffset:8}}])}},{key:"_render",value:function(){this.$element().addClass(C),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()}},{key:"_renderLabel",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderLabel",this).call(this),this.$element().toggleClass(k,!!this._$label)}},{key:"_renderCloseIcon",value:function(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.closeIcon,I),this._$closeIcon.addClass(S)}},{key:"_renderClick",value:function(){this._clickAction=1===this._getVisibleActions().length?this._getActionComponent()._createActionByOption("onClick"):this._createAction(this._clickHandler),this._setClickAction()}},{key:"_getVisibleActions",value:function(e){var t=e||this.option("actions");return t.filter(function(e){return e.option("visible")})}},{key:"_getCurrentOptions",value:function(e){var t=D._getVisibleActions(e);return 1===t.length?(0,p.extend)(t[0]._options,{position:this._getPosition()}):(0,p.extend)(this._getDefaultOptions(),{visible:0!==t.length})}},{key:"_clickHandler",value:function(){var e=this._actionItems.filter(function(e){return e.option("actionVisible")}).sort(function(e,t){return e.option("index")-t.option("index")});if(1!==e.length){for(var t=e.length-1,n=0;n<e.length;n++)e[n].option("animation",this._getActionAnimation(e[n],n,t)),e[n].option("position",this._getActionPosition(e,n)),e[n]._$wrapper.css("position",this._$wrapper.css("position")),e[n].toggle();(0,h.default)().floatingActionButtonConfig.shading&&(this._isShadingShown=!this.option("shading"),this.option("shading",this._isShadingShown)),this._$icon.toggleClass(S),this._$closeIcon.toggleClass(S)}}},{key:"_updateZIndexStackPosition",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_updateZIndexStackPosition",this).call(this);var e=this._overlayStack();e.push(this)}},{key:"_renderActions",value:function(){var e=this,t=this.option("actions"),n=1;if(this._actionItems&&this._actionItems.length&&(this._actionItems.forEach(function(e){e.dispose(),e.$element().remove()}),this._actionItems=[]),this._actionItems=[],t.length!==n)for(var i=0;i<t.length;i++){var o=t[i],a=(0,d.default)("<div>").appendTo((0,v.getSwatchContainer)(o.$element()));g.default.off(a,"click"),g.default.on(a,"click",function(){e._clickHandler()}),o._options.actionComponent=o,o._options.parentPosition=this._getPosition(),o._options.actionVisible=o._options.visible,this._actionItems.push(this._createComponent(a,w.default,(0,p.extend)({},o._options,{visible:!1})))}}},{key:"_getActionAnimation",value:function(e,t,n){var i=30;return e._options.animation.show.delay=i*t,e._options.animation.hide.delay=i*(n-t),e._options.animation}},{key:"_getDirectionIndex",value:function(e,t){var n=1;if("auto"===t){var i=this.$content().height(),o=this.initialOption("indent")+this.initialOption("childIndent")*e.length-i,a=this.$content().offset().top;if(o<a)return-n;var r=this._getContainer().height()-i-a;return a>=r?-n:n}return"down"!==t?-n:n}},{key:"_getActionPosition",value:function(e,t){var n=e[t],i=this.initialOption("childOffset"),o=n._options.label&&!this._$label?this._isPositionLeft(this._getPosition())?i:-i:0,a=this.initialOption("indent")+this.initialOption("childIndent")*t,r=this._getDirectionIndex(e,this.option("direction"))*a,s=n._options.label?this._isPositionLeft(this._getPosition())?"left":"right":"center";return{of:this.$content(),at:s,my:s,offset:{x:o,y:r}}}},{key:"_outsideClickHandler",value:function(e){if(this._isShadingShown){var t=(0,d.default)(e.target)[0]===this._$wrapper[0];t&&this._clickHandler()}}},{key:"_setPosition",value:function(){this.option("visible")&&(this._hide(),this._show())}},{key:"_getPosition",value:function(){return this._getDefaultOptions().position}},{key:"_getInkRippleContainer",value:function(){return this.$content()}},{key:"_optionChanged",value:function(e){switch(e.name){case"actions":this._isVisible()&&this._renderIcon(),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":this._setPosition();break;case"label":this._isVisible()&&this._renderLabel(),this._setPosition();break;case"icon":this._isVisible()&&this._renderIcon();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(w.default);t.initAction=function(e){delete e._options.onInitializing;var t=!1;if(D){var n=D.option("actions");if(n.forEach(function(n){if(n._options.id===e._options.id)return t=!0,e}),delete D._options.position,t)1===n.length?D.option((0,p.extend)({},n[0]._options,{actions:n,position:D._getPosition()})):D.option((0,p.extend)(D._getCurrentOptions(n),{actions:n}));else{if(D._getVisibleActions(n).length>=D.option("maxSpeedDialActionCount"))return e.dispose(),void m.default.log("W1014");n.push(e),D.option((0,p.extend)(D._getCurrentOptions(n),{actions:n}))}}else{var i=(0,d.default)("<div>").appendTo((0,v.getSwatchContainer)(e.$element()));D=e._createComponent(i,T,(0,p.extend)({},e._options,{actions:[e]}))}},t.disposeAction=function(e){if(D){var t=D.option("actions"),n=t.length;t=t.filter(function(t){return t._options.id!==e}),n!==t.length&&(t.length?1===t.length?D.option((0,p.extend)({},t[0]._options,{actions:t})):D.option({actions:t}):(D.dispose(),D.$element().remove(),D=null))}},t.repaint=function(){if(D){var e=D._getVisibleActions(),t=1===e.length?e[0].option("icon"):D._getDefaultOptions().icon,n=1===e.length?e[0].option("label"):D._getDefaultOptions().label;D.option({actions:D.option("actions"),icon:t,closeIcon:D._getDefaultOptions().closeIcon,position:D._getPosition(),label:n,maxSpeedDialActionCount:D._getDefaultOptions().maxSpeedDialActionCount,direction:D._getDefaultOptions().direction})}}},function(e,t,n){var i=n(9),o=n(516);i("dxTextEditor",o),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(25),l=i(s),u=n(12),d=i(u),c=l.default.msie||l.default.safari,h=function(e){var t=void 0;try{t={start:e.selectionStart,end:e.selectionEnd}}catch(e){t={start:0,end:0}}return t},p=function(e,t){if(d.default.getBody().contains(e))try{e.selectionStart=t.start,e.selectionEnd=t.end}catch(e){}},f=function(e,t){return e=(0,a.default)(e).get(0),(0,r.isDefined)(t)?void(c&&d.default.getActiveElement()!==e||p(e,t)):h(e)};e.exports=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(5),s=i(r),l=n(8),u=n(14),d=n(11),c="dxMask",h="blur beforedeactivate",p=" ",f=function(){function e(t){o(this,e),this.editor=t,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}return a(e,[{key:"_getStrategyName",value:function(){return"base"}},{key:"editorOption",value:function(){var e;return(e=this.editor).option.apply(e,arguments)}},{key:"editorInput",value:function(){return this.editor._input()}},{key:"editorCaret",value:function(e){return e?void this.editor._caret(e):this.editor._caret()}},{key:"getHandler",value:function(e){var t=this["_"+e+"Handler"]||function(){};return t.bind(this)}},{key:"attachEvents",value:function(){var e=this,t=this.editorInput();this.getHandleEventNames().forEach(function(n){var i=(0,l.addNamespace)(n.toLowerCase(),c);s.default.on(t,i,e.getEventHandler(n))}),this._attachChangeEventHandlers()}},{key:"getHandleEventNames",value:function(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}},{key:"getEventHandler",value:function(e){return this["_"+e+"Handler"].bind(this)}},{key:"detachEvents",value:function(){s.default.off(this.editorInput(),"."+c)}},{key:"_attachChangeEventHandlers",value:function(){(0,u.inArray)("change",this.editorOption("valueChangeEvent").split(" "))!==-1&&s.default.on(this.editorInput(),(0,l.addNamespace)(h,c),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this.editor))}},{key:"_focusInHandler",value:function(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var e=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:e,end:e})}.bind(this.editor),0)}}},{key:"_focusOutHandler",value:function(e){this.editor._changeHandler(e),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}},{key:"_cutHandler",value:function(e){var t=this.editorCaret(),n=this.editorInput().val().substring(t.start,t.end);this.editor._maskKeyHandler(e,function(){return(0,d.clipboardText)(e,n)})}},{key:"_dropHandler",value:function(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}},{key:"_clearDragTimer",value:function(){clearTimeout(this._dragTimer)}},{key:"_keyDownHandler",value:function(){this._keyPressHandled=!1}},{key:"_pasteHandler",value:function(e){var t=this.editor;this._keyPressHandled=!0;var n=this.editorCaret();t._maskKeyHandler(e,function(){var i=(0,d.clipboardText)(e),o=t._maskRulesChain.text().substring(n.end),a=t._handleChain({text:i,start:n.start,length:i.length}),r=n.start+a;t._handleChain({text:o,start:r,length:o.length}),t._caret({start:r,end:r})})}},{key:"runWithoutEventProcessing",value:function(e){var t=this._keyPressHandled;this._keyPressHandled=!0,e(),this._keyPressHandled=t}},{key:"_backspaceHandler",value:function(){}},{key:"_delHandler",value:function(e){var t=this.editor;this._keyPressHandled=!0,t._maskKeyHandler(e,function(){return!t._hasSelection()&&t._handleKey(p)})}},{key:"clean",value:function(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout)}}]),e}();t.default=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(8),s=n(0),l=n(525),u=i(l),d=n(10),c=n(526),h=i(c),p=n(245),f=i(p),g="dx-list-item-selected",_="dx-list-item-response-wait",m=f.default.inherit({_supportedKeys:function(){var e=this,t=this,n=this.callBase(),i=function(e){t.option("allowItemDeleting")&&(e.preventDefault(),t.deleteItem(t.option("focusedElement")))},o=function(i,o){var a=e._editStrategy,r=e.option("focusedElement"),s=a.getNormalizedIndex(r),l=s===e._getLastItemIndex();if(!l||!e._isDataSourceLoading())if(i.shiftKey&&t.option("itemDragging.allowReordering")){var u=s+(o?-1:1),d=a.getItemElement(u);e.reorderItem(r,d),e.scrollToItem(r),i.preventDefault()}else{var c=e._editProvider,h=c.handleKeyboardEvents(s,o);h||(o?n.upArrow(i):n.downArrow(i))}},a=function(e){this._editProvider.handleEnterPressing()||n.enter.apply(this,arguments)},r=function(e){this._editProvider.handleEnterPressing()||n.space.apply(this,arguments)};return(0,s.extend)({},n,{del:i,upArrow:function(e){return o(e,!0)},downArrow:o,enter:a,space:r})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_setDeprecatedOptions:function(){this.callBase(),(0,s.extend)(this._deprecatedOptions,{allowItemReordering:{since:"19.2",alias:"itemDragging.allowReordering"}})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:(0,d.format)("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",allowItemReordering:!1,itemDragging:{}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"ios"===e.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new h.default(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new u.default(this):this.callBase()},_initMarkup:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return g},_itemResponseWaitClass:function(){return _},_itemClickHandler:function(e){var t=(0,a.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=this._editProvider.handleClick(t,e);n||this.callBase.apply(this,arguments)}},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(e){var t=(0,a.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=(0,r.isTouchEvent)(e)&&this._editProvider.handleContextMenu(t,e);return n?void(e.handledByEditProvider=!0):void this.callBase.apply(this,arguments)}},_itemContextMenuHandler:function(e){var t=(0,a.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e);return n?void e.preventDefault():void this.callBase.apply(this,arguments)}},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(e)},_clean:function(){this._disposeEditProvider(),this.callBase()},focusListItem:function(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"allowItemReordering":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(e){return this._itemElements().index(e)},getItemElementByFlatIndex:function(e){var t=this._itemElements();return e<0||e>=t.length?(0,a.default)():t.eq(e)},getItemByIndex:function(e){return this._editStrategy.getItemDataByIndex(e)}});e.exports=m},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(143),s=r.abstract,l=n(8),u=n(23),d=n(133),c="dxListEditDecorator",h=l.addNamespace(u.down,c),p=l.addNamespace(d.active,c),f="dx-list-item-content",g="dx-list-switchable-delete-ready",_="dx-list-switchable-menu-shield-positioning",m="dx-list-switchable-delete-top-shield",v="dx-list-switchable-delete-bottom-shield",y="dx-list-switchable-menu-item-shield-positioning",w="dx-list-switchable-delete-item-content-shield",x="dx-list-switchable-delete-button-container",b=r.inherit({_init:function(){this._$topShield=i("<div>").addClass(m),this._$bottomShield=i("<div>").addClass(v),this._$itemContentShield=i("<div>").addClass(w),o.on(this._$topShield,h,this._cancelDeleteReadyItem.bind(this)),o.on(this._$bottomShield,h,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){
return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(g)},_toggleShields:function(e,t){this._list.$element().toggleClass(_,t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,i=t.outerHeight(),o=e.offset().top,a=e.outerHeight(),r=o-n,s=i-a-r;this._$topShield.height(Math.max(r,0)),this._$bottomShield.height(Math.max(s,0))},_toggleContentShield:function(e,t){t?e.find("."+f).first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),o.off(e,u.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(y),o.on(e,p,a),o.one(e,u.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(y),o.off(e,p)},_prepareDeleteReady:function(e){e.addClass(g)},_forgetDeleteReady:function(e){e.removeClass(g)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_getDeleteButtonContainer:function(e){return e=e||this._$readyToDeleteItem,e.children("."+x)},_deleteItem:function(e){e=e||this._$readyToDeleteItem,this._getDeleteButtonContainer(e).detach(),e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});e.exports=b},function(e,t,n){var i={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}};e.exports=i},function(e,t,n){var i=n(2),o=n(16),a=n(7),r=n(10),s=n(9),l=n(11).getPublicElement,u=n(0).extend,d=n(4).noop,c=n(533),h=n(534),p=n(535),f=n(94),g=n(80),_=n(31),m=n(167),v="dx-scrollview",y=v+"-content",w=v+"-top-pocket",x=v+"-bottom-pocket",b=v+"-pull-down",C=v+"-scrollbottom",k=C+"-indicator",I=C+"-text",S=v+"-loadpanel",D={pullDown:c,swipeDown:h,simulated:p},T=!a.hasWindow(),E={finishLoading:d,release:d,refresh:d,_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},O=f.inherit(T?E:{_getDefaultOptions:function(){return u(this.callBase(),{pullingDownText:r.format("dxScrollView-pullingDownText"),pulledDownText:r.format("dxScrollView-pulledDownText"),refreshingText:r.format("dxScrollView-refreshingText"),reachBottomText:r.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=o.real();return"android"===e.platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return _.isMaterial()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(v),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=i("<div>").addClass(y);this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=i("<div>").addClass(w),t=this._$pullDown=i("<div>").addClass(b);e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=i("<div>").addClass(x),t=this._$reachBottom=i("<div>").addClass(C),n=i("<div>").addClass(k),o=new g(i("<div>")).$element(),a=this._$reachBottomText=i("<div>").addClass(I);this._updateReachBottomText(),t.append(n.append(o)).append(a),e.append(t),this._$content.append(e)},_initLoadPanel:function(){var e=i("<div>").addClass(S).appendTo(this.$element()),t={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,m,t)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=D[e];if(!t)throw Error("E1030",this.option("refreshStrategy"));this._strategy=new t(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(e){var t=this.callBase.apply(this,arguments);return"pullDown"!==e&&"reachBottom"!==e||this._tryRefreshPocketState(),t},_pullDownEnable:function(e){return 0===arguments.length?this._pullDownEnabled:void(this._$pullDown&&this._strategy&&(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),this._pullDownEnabled=e))},_reachBottomEnable:function(e){return 0===arguments.length?this._reachBottomEnabled:void(this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),this._reachBottomEnabled=e))},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){return arguments.length<1?this._loadingIndicatorEnabled:void(this._loadingIndicatorEnabled=e)},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},isEmpty:function(){return!i(this.content()).children().length},content:function(){return l(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},isFull:function(){return i(this.content()).height()>this._$container.height()},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});s("dxScrollView",O),e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(5),u=i(l),d=n(49),c=i(d),h=n(27),p=i(h),f=n(17),g=i(f),_=n(8),m=i(_),v=n(4),y=i(v),w=n(1),x=n(0),b=n(23),C=i(b),k="dxScrollbar",I="dx-scrollable-scrollbar",S=I+"-active",D="dx-scrollable-scroll",T="dx-scrollable-scroll-content",E="dx-scrollbar-hoverable",O="horizontal",A=15,P={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},B=g.default.inherit({_getDefaultOptions:function(){return(0,x.extend)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:P.onScroll,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass(E,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,a.default)("<div>").addClass(D),(0,a.default)("<div>").addClass(T).appendTo(this._$thumb),this.$element().addClass(I).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===P.onHover||e===P.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===O?"width":"height",this._prop=e===O?"left":"top"},_attachPointerDownHandler:function(){u.default.on(this._$thumb,m.default.addNamespace(C.default.down,k),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(S),M=this},feedbackOff:function(){this.$element().removeClass(S),M=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===P.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case P.onScroll:break;case P.onHover:e=e||!!this._isHovered;break;case P.never:e=!1;break;case P.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){(0,w.isPlainObject)(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),p.default.move(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize")),n=Math.round(this.option("baseContainerSize")),i=Math.round(this.option("baseContentSize"));isNaN(n)&&(n=e,i=t),this._baseContainerToContentRatio=i?n/i:n,this._realContainerToContentRatio=t?e/t:e;var o=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),A));this._thumbRatio=(e-o)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,o/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===P.never},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return(0,w.isPlainObject)(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===M&&(M=null),u.default.off(this._$thumb,"."+k)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:y.default.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),M=null;c.default.add(function(){u.default.subscribeGlobal(s.default.getDocument(),m.default.addNamespace(C.default.up,k),function(){M&&M.feedbackOff()})}),e.exports=B},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o,a,r=n(2),s=i(r),l=n(12),u=i(l),d=n(5),c=i(d),h=n(33),p=n(0),f=n(7),g=n(3),_=n(1),m=n(27),v=i(m),y=n(15),w=i(y),x=n(311),b=i(x),C=n(16),k=i(C),I=n(8),S=n(4),D=n(309),T=i(D),E=n(6),O=k.default.real,A="android"===O.platform,P="dxSimulatedScrollable",B="dxScrollableStrategy",M=P+"Cursor",F=P+"Keyboard",R="dx-scrollable-simulated",V="dx-scrollable-scrollbars-hidden",H="dx-scrollable-scrollbars-alwaysvisible",L="dx-scrollable-scrollbar",z="vertical",$="horizontal",N=A?.95:.92,W=.5,j=1,q=Math.round(1e3/60),G=40,K=500,U=j/5,Y=A?300:400,X=Y/q,Z=(1-Math.pow(N,X))/(1-N),Q={PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home",LEFT:"leftArrow",UP:"upArrow",RIGHT:"rightArrow",DOWN:"downArrow",TAB:"tab"},J=b.default.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:j,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?N:W},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),ee=J.inherit({VELOCITY_LIMIT:U,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return N},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),te=w.default.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){var t=this;this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===$?"x":"y",this._prop=e.direction===$?"left":"top",this._dimension=e.direction===$?"width":"height",this._scrollProp=e.direction===$?"scrollLeft":"scrollTop",(0,g.each)(e,function(e,n){t["_"+e]=n})},_initAnimators:function(){this._inertiaAnimator=new J(this),this._bounceAnimator=new ee(this)},_initScrollbar:function(){this._scrollbar=new T.default((0,s.default)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return e===!0?"onScroll":e===!1?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||c.default.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,Math.max(Math.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if((0,f.hasWindow)()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),n=this._getBaseDimension(e,this._dimension);this._scaleRatio=Math.round(t/n*100)/100}return this._scaleRatio||1},_getRealDimension:function(e,t){return Math.round(e.getBoundingClientRect()[t])},_getBaseDimension:function(e,t){var n="offset"+(0,h.titleize)(t);return e[n]},_moveContentByTranslator:function(e){var t=void 0,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};return i[this._prop]=t,this._translateOffset=t,0===t?void v.default.resetPosition(this._$content):void v.default.move(this._$content,i)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=this._bounceLocation=this._boundLocation(),t=e-this._location;this._velocity=t/Z},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e<this._minOffset&&t>=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=new E.Deferred,this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:(0,S.deferRenderer)(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!(0,I.isDxMouseWheelEvent)(e.originalEvent)){var t=(0,s.default)(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+t/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=W),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new E.Deferred,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var e=this;return this._stopScrolling(),(0,S.deferUpdate)(function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),(0,S.deferRender)(function(){e._moveScrollbar(),e._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(v.default.locate(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,S.deferUpdater)(function(){var e=this,t=this._containerSize(),n=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),o=this._getBaseDimension(this._$content.get(0),this._dimension);(0,S.deferRender)(function(){e._scrollbar.option({containerSize:t,contentSize:n,baseContainerSize:i,baseContentSize:o,scaleRatio:e._getScaleRatio()})})}),_moveToBounds:(0,S.deferRenderer)((0,S.deferUpdater)((0,S.deferRenderer)(function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()}))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var n=this._$content[0]["scroll"+(0,h.titleize)(this._dimension)]*this._getScaleRatio();t=Math.max(n,t)}return t},_validateEvent:function(e){var t=(0,s.default)(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:S.noop}),ne=w.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$wrapper=e._$wrapper,this._$content=e._$content,this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._$element.addClass(R),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection($)&&this._createScroller($),this._isDirection(z)&&this._createScroller(z),this._$element.toggleClass(H,"always"===this.option("showScrollbar")),this._$element.toggleClass(V,!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new te(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var n=this._getPropByDirection(t);if((0,_.isDefined)(e[n])){var i=this._scrollers[t];e[n]*=i._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done(function(e,n){t=e||n}),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e).done(this._stopAction)},_suppressDirections:function(e){return(0,I.isDxMouseWheelEvent)(e.originalEvent)?void this._prepareDirections(!0):(this._prepareDirections(),void this._eachScroller(function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i}))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[$]=e,this._validDirections[z]=e},_eachScroller:function(e){e=e.bind(this),(0,g.each)(this._scrollers,function(t,n){e(n,t)})},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){a=this},_resetActive:function(){a===this&&(a=null)},handleMove:function(e){return this._isLocked()?(e.cancel=!0,void this._resetActive()):(this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e,e.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e,t){t.x*=this._validDirections[$],t.y*=this._validDirections[z];var n=this._tryGetDevicePixelRatio();n&&(0,I.isDxMouseWheelEvent)(e.originalEvent)&&(t.x=Math.round(t.x/n*100)/100,t.y=Math.round(t.y/n*100)/100)},_tryGetDevicePixelRatio:function(){if((0,f.hasWindow)())return(0,f.getWindow)().devicePixelRatio},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e,e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._scrollAction()},_attachKeyboardHandler:function(){c.default.off(this._$element,"."+F),!this.option("disabled")&&this.option("useKeyboard")&&c.default.on(this._$element,(0,I.addNamespace)("keydown",F),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){var t=this;if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(function(){(0,I.normalizeKeyName)(e)===Q.TAB&&t._eachScroller(function(e){e._updateHandler()})}),this._$container.is(u.default.getActiveElement())){var n=!0;switch((0,I.normalizeKeyName)(e)){case Q.DOWN:this._scrollByLine({y:1});break;case Q.UP:this._scrollByLine({y:-1});break;case Q.RIGHT:this._scrollByLine({x:1});break;case Q.LEFT:this._scrollByLine({x:-1});break;case Q.PAGE_DOWN:this._scrollByPage(1);break;case Q.PAGE_UP:this._scrollByPage(-1);break;case Q.HOME:this._scrollToHome();break;case Q.END:this._scrollToEnd();break;default:n=!1}n&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){var t=this._tryGetDevicePixelRatio(),n=G;t&&(n=Math.abs(n/t*100)/100),this.scrollBy({top:(e.y||0)*-n,left:(e.x||0)*-n})},_scrollByPage:function(e){var t=this._wheelProp(),n=this._dimensionByProp(t),i={};i[t]=e*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===$?"left":"top"},_scrollToHome:function(){var e=this._wheelProp(),t={};t[e]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),n={};n[e]=this._$content[t]()-this._$container[t](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=this,n=arguments,i=this._createActionByOption(e);return function(){i((0,p.extend)(t._createActionArgs(),n))}},_createActionArgs:function(){var e=this._scrollers[$],t=this._scrollers[z],n=this.location();return this._scrollOffset={top:t&&-n.top,left:e&&-n.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),n=(0,g.map)(this._scrollers,function(n){return n["_"+e+"Handler"].apply(n,t)});return E.when.apply(s.default,n).promise()},location:function e(){var e=v.default.locate(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){c.default.off(this._$element,"."+M),!this.option("disabled")&&this._isHoverMode()&&(c.default.on(this._$element,(0,I.addNamespace)("mouseenter",M),this._cursorEnterHandler.bind(this)),c.default.on(this._$element,(0,I.addNamespace)("mouseleave",M),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){e=e||{},e.originalEvent=e.originalEvent||{},a||e.originalEvent._hoverHandled||(o&&o._cursorLeaveHandler(),o=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){o===this&&a!==o&&(this._eventHandler("cursorLeave"),o=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!a){var t=(0,s.default)(e),n=t.closest("."+R+":not(.dx-state-disabled)"),i=n.length&&n.data(B);o&&o!==i&&o._cursorLeaveHandler(),i&&i._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return(0,E.when)(t,(0,S.deferUpdate)(function(){var t=e._allowedDirections();return(0,S.deferRender)(function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)}),(0,E.when)().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[z],n=this._scrollers[$];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[$]&&this._scrollers[$]._updateBounds()},scrollBy:function(e){var t=this._scrollers[z],n=this._scrollers[$];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction()},validate:function(e){return!this.option("disabled")&&(!!this.option("bounceEnabled")||((0,I.isDxMouseWheelEvent)(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this,n=this._scrollers[this._wheelDirection(e)],i=n._reachedMin(),o=n._reachedMax(),a=!i||!o,r=!i&&!o,s=i&&e.delta>0,l=o&&e.delta<0,u=a&&(r||s||l);return u=u||void 0!==this._validateWheelTimer,u&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(function(){t._validateWheelTimer=void 0},K)),u},_validateMove:function(e){return!(!this.option("scrollByContent")&&!(0,s.default)(e.target).closest("."+L).length)&&this._allowedDirection()},getDirection:function(e){return(0,I.isDxMouseWheelEvent)(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===$?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case $:return $;case z:return z;default:return e&&e.shiftKey?$:z}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),o===this&&(o=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(R),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){c.default.off(this._$element,"."+M),c.default.off(this._$container,"."+F)}});t.SimulatedStrategy=ne,t.Scroller=te},function(e,t,n){var i=n(4).noop,o=n(15),a=o.abstract,r=n(113),s=o.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,r.cancelAnimationFrame(this._stepAnimationFrame)},_stepCore:function(){return this._isStopped()?void this._stop():this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=r.requestAnimationFrame(this._proxiedStepCore)))},_step:a,_isFinished:i,_stop:i,_complete:i,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});e.exports=s;
},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findChanges=void 0;var i=n(1),o=function(e,t){var n=t(e);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(e){return n}return n},a=function(e,t,n,i){var a=o(e,i);return t[n[a]]};t.findChanges=function(e,t,n,i){var r={},s={},l=0,u=0,d=[];e.forEach(function(e,t){var i=o(e,n);r[i]=t}),t.forEach(function(e,t){var i=o(e,n);s[i]=t});for(var c=Math.max(e.length,t.length),h=0;h<c+l;h++){var p=t[h],f=h-l+u,g=e[f],_=!p||g&&!a(g,t,s,n);if(_)g&&(d.push({type:"remove",key:n(g),index:h,oldItem:g}),u++,h--);else{var m=o(p,n),v=r[m],y=e[v];if(y){if(v!==f)return;i(y,p)||d.push({type:"update",data:p,key:n(p),index:h,oldItem:y})}else l++,d.push({type:"insert",data:p,index:h})}}return d}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(17),s=i(r),l=n(35),u=i(l),d=n(55),c=i(d),h=n(9),p=i(h),f=n(0),g=n(1),_=n(66),m="dx-buttongroup",v=m+"-wrapper",y=m+"-item",w=m+"-first-item",x=m+"-last-item",b=y+"-has-width",C="dx-shape-standard",k=c.default.inherit({_initTemplates:function(){var e=this;this.callBase(),this._defaultTemplates.item=new _.BindableTemplate(function(t,n,i){e._prepareItemStyles(t),e._createComponent(t,u.default,(0,f.extend)({},i,n,e._getBasicButtonOptions(),{_templateData:i,template:i.template||e.option("buttonTemplate")}))},["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))},_getBasicButtonOptions:function(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{itemTemplateProperty:null})},_prepareItemStyles:function(e){var t=e.data("dxItemIndex");0===t&&e.addClass(w);var n=this.option("items");n&&t===n.length-1&&e.addClass(x),e.addClass(C)},_renderItemContent:function(e){return e.container=(0,a.default)(e.container).parent(),this.callBase(e)},_renderItemContentByNode:function(e,t){return e.container=(0,a.default)(e.container.children().first()),this.callBase(e,t)},_focusTarget:function(){return this.$element().parent()},_keyboardEventBindingTarget:function(){return this._focusTarget()},_refreshContent:function(){this._prepareContent(),this._renderContent()},_itemClass:function(){return y},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)}}),I=s.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_setDeprecatedOptions:function(){this.callBase(),(0,f.extend)(this._deprecatedOptions,{itemTemplate:{since:"19.2",alias:"buttonTemplate"}})},_init:function(){this.callBase(),this._createItemClickAction()},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup:function(){this.setAria("role","group"),this.$element().addClass(m),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_renderButtons:function(){var e=this,t=(0,a.default)("<div>").addClass(v).appendTo(this.$element()),n=this.option("selectedItems"),i={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:function(t){var n=e.option("width");(0,g.isDefined)(n)&&(0,a.default)(t.itemElement).addClass(b)},onSelectionChanged:function(t){e._syncSelectionOptions(),e._fireSelectionChangeEvent(t.addedItems,t.removedItems)},onItemClick:function(t){e._itemClickAction(t)}};(0,g.isDefined)(n)&&n.length&&(i.selectedItems=n),this._buttonsCollection=this._createComponent(t,k,i)},_syncSelectionOptions:function(){this._setOptionSilent("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionSilent("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged:function(e){switch(e.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(e.name,e.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(e),this._buttonsCollection.itemElements().toggleClass(b,!!e.value);break;default:this.callBase(e)}}});(0,p.default)("dxButtonGroup",I),e.exports=I},function(e,t,n){e.exports=n(544)},function(e,t,n){var i=n(2),o=n(5),a=n(27),r=n(0).extend,s=n(86),l=n(10),u=n(16),d=n(9),c=n(48),h=n(119),p=n(93),f=n(193),g=n(20),_="dx-colorview",m="dx-colorview-container",v="dx-colorview-container-row",y="dx-colorview-container-cell",w="dx-colorview-palette",x="dx-colorview-palette-cell",b="dx-colorview-palette-handle",C="dx-colorview-palette-gradient",k="dx-colorview-palette-gradient-white",I="dx-colorview-palette-gradient-black",S="dx-colorview-hue-scale",D="dx-colorview-hue-scale-cell",T="dx-colorview-hue-scale-handle",E="dx-colorview-hue-scale-wrapper",O="dx-colorview-controls-container",A="dx-colorview-label-red",P="dx-colorview-label-green",B="dx-colorview-label-blue",M="dx-colorview-label-hex",F="dx-colorview-alpha-channel-scale",R="dx-colorview-alpha-channel-row",V="dx-colorview-alpha-channel-wrapper",H="dx-colorview-alpha-channel-label",L="dx-colorview-alpha-channel-handle",z="dx-colorview-alpha-channel-cell",$="dx-colorview-alpha-channel-border",N="dx-colorview-color-preview",W="dx-colorview-color-preview-container",j="dx-colorview-color-preview-container-inner",q="dx-colorview-color-preview-color-current",G="dx-colorview-color-preview-color-new",K=c.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e){var n=100/t._paletteWidth;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},i=function(e){var n=t._currentColor.hsv.s+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.s=n,l()},o=function(e){var n=100/t._paletteHeight;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},s=function(e){var n=t._currentColor.hsv.v+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.v=n,l()},l=function(){t._placePaletteHandle(),t._updateColorFromHsv(t._currentColor.hsv.h,t._currentColor.hsv.s,t._currentColor.hsv.v)},u=function(e){var n=360/(t._hueScaleWrapperHeight-t._hueScaleHandleHeight);return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1},d=function(e){t._currentColor.hsv.h+=e,t._placeHueScaleHandle();var n=a.locate(t._$hueScaleHandle);t._updateColorHue(n.top+t._hueScaleHandleHeight/2)},c=function(n){var i=1/t._alphaChannelScaleWorkWidth;return n.shiftKey&&(i*=t.option("keyStep")),i=i>.01?i:.01,i=e?-i:i},h=function(e){t._currentColor.a+=e,t._placeAlphaChannelHandle();var n=a.locate(t._$alphaChannelHandle);t._calculateColorTransparencyByScaleWidth(n.left+t._alphaChannelHandleWidth/2)};return r(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&d(u(e)):this._currentColor.hsv.v<100&&s(o(e))},downArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),d(-u(e))):this._currentColor.hsv.v>0&&s(-o(e))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&h(-c(t)):this._currentColor.hsv.s<100&&i(n(t))},leftArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&h(c(t)):this._currentColor.hsv.s>0&&i(-n(t))},enter:function(e){this._fireEnterKeyPressed(e)}})},_getDefaultOptions:function(){return r(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(e){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:e})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(e){e=e||"#000000";var t=new s(e);t.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(t)||(this._currentColor=t,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,t))},_setBaseColor:function(e){var t=e||"#000000",n=new s(t);if(!n.colorIsInvalid){var i=this._makeRgba(this.option("matchValue")!==this._makeRgba(n));i&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,n)}},_initMarkup:function(){this.callBase(),this.$element().addClass(_),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(e,t){t instanceof s||(t=new s(t)),e.css("backgroundColor",this._makeRgba(t))},_makeRgba:function(e){return e instanceof s||(e=new s(e)),"rgba("+[e.r,e.g,e.b,e.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var e=this.$element();this._$colorPickerContainer=i("<div>").addClass(m).appendTo(e),this._renderHtmlRows()},_renderHtmlRows:function(e){var t=this._$colorPickerContainer.find("."+v),n=t.length,o=this.option("editAlphaChannel")?2:1,a=n-o;if(a>0&&t.eq(-1).remove(),a<0){a=Math.abs(a);var r,s=[];for(r=0;r<a;r++)s.push(i("<div>").addClass(v));if(n)for(r=0;r<s.length;r++)t.eq(0).after(s[r]);else this._$colorPickerContainer.append(s)}},_renderHtmlCellInsideRow:function(e,t,n){return i("<div>").addClass(y).addClass(n).appendTo(t.find("."+v).eq(e))},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,x),t=i("<div>").addClass([C,k].join(" ")),n=i("<div>").addClass([C,I].join(" "));this._$palette=i("<div>").addClass(w).css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(e),this._paletteHeight=this._$palette.height(),this._paletteWidth=this._$palette.width(),this._renderPaletteHandle(),this._$palette.append([t,n])},_renderPaletteHandle:function(){this._$paletteHandle=i("<div>").addClass(b).appendTo(this._$palette),this._createComponent(this._$paletteHandle,f,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:function(){var e=a.locate(this._$paletteHandle);this._updateByDrag=!0,this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(e),this._calculateColorValue(e))}.bind(this)}),this._paletteHandleWidth=this._$paletteHandle.width(),this._paletteHandleHeight=this._$paletteHandle.height(),this._placePaletteHandle()},_placePaletteHandle:function(){a.move(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(e){var t=Math.floor(e.top+this._paletteHandleHeight/2);return 100-Math.round(100*t/this._paletteHeight)},_calculateColorSaturation:function(e){var t=Math.floor(e.left+this._paletteHandleWidth/2);return Math.round(100*t/this._paletteWidth)},_updateColorFromHsv:function(e,t,n){var i=this._currentColor.a;this._currentColor=new s("hsv("+[e,t,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,D);this._$hueScaleWrapper=i("<div>").addClass(E).appendTo(e),this._$hueScale=i("<div>").addClass(S).appendTo(this._$hueScaleWrapper),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=i("<div>").addClass(T).appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,f,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:function(){this._updateByDrag=!0,this._updateColorHue(a.locate(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}.bind(this)}),this._hueScaleHandleHeight=this._$hueScaleHandle.height(),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var e=this._hueScaleWrapperHeight,t=this._hueScaleHandleHeight,n=(e-t)*(360-this._currentColor.hsv.h)/360;e<n+t&&(n=e-t),n<0&&(n=0),a.move(this._$hueScaleHandle,{top:Math.round(n)})},_updateColorHue:function(e){var t=360-Math.round(360*(e-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),n=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,t=t<0?0:t,t>=360&&(this._isTopColorHue=!0,t=0),this._updateColorFromHsv(t,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=i("<div>").addClass(O).appendTo(e)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=i("<div>").addClass(W).appendTo(this._$controlsContainer),t=i("<div>").addClass(j).appendTo(e);this._$currentColor=i("<div>").addClass([N,G].join(" ")),this._$baseColor=i("<div>").addClass([N,q].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),t.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+v).eq(1).addClass(R),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:h,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:l.format("dxColorView-ariaRed"),labelClass:A}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:l.format("dxColorView-ariaGreen"),labelClass:P}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:l.format("dxColorView-ariaBlue"),labelClass:B})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(e){var t=i("<div>"),n=i("<label>").addClass(e.labelClass).text(e.labelText+":").append(t);o.off(n,g.name),o.on(n,g.name,function(e){e.preventDefault()});var a=e.editorType,s=r({value:e.value,onValueChanged:e.onValueChanged},{stylingMode:this.option("stylingMode")});a===h&&(s.min=e.min||0,s.max=e.max||255,s.step=e.step||1);var l=new a(t,s);return this._attachKeyboardProcessorToEditor(l),l.registerKeyHandler("enter",function(e){this._fireEnterKeyPressed(e)}.bind(this)),this.setAria("label",e.labelAriaText,t),n},_attachKeyboardProcessorToEditor:function(e){var t=e._keyboardProcessor;t&&t.attachChildProcessor().reinitialize(this._keyboardHandler,this)},hexInputOptions:function(){return{editorType:p,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:M,labelText:"#",labelAriaText:l.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=p.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var e=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,z),t=i("<div>").addClass($).appendTo(e),n=i("<div>").addClass(V).appendTo(t);this._$alphaChannelScale=i("<div>").addClass(F).appendTo(n),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(e)},_makeCSSLinearGradient:function(e){var t=this._currentColor,n=[t.r,t.g,t.b].join(","),i=t.toHex().replace("#",""),o=function(e,t){var n=this.option("rtlEnabled"),i="rgba("+e+", "+(n?"1":"0")+")",o="rgba("+e+", "+(n?"0":"1")+")",a="'#"+(n?"00":"")+t+"'",r="'#"+(n?"":"00")+t+"'";return["background-image: -webkit-linear-gradient(180deg, "+i+", "+o+")","background-image: -moz-linear-gradient(-90deg, "+i+", "+o+")","background-image: -o-linear-gradient(-90deg, "+i+", "+o+")","background-image: linear-gradient(-90deg, "+i+", "+o+")","filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr="+a+", endColorstr="+r+")"].join(";")};e.attr("style",o.call(this,n,i))},_renderAlphaChannelInput:function(){var e=this,t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);e._alphaChannelInput=this._renderEditorWithLabel({editorType:h,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(t){var n=t.value;n=e._currentColor.isValidAlpha(n)?n:e._currentColor.a,e._updateColorTransparency(n),e._placeAlphaChannelHandle()},labelClass:H,labelText:"Alpha",labelAriaText:l.format("dxColorView-ariaAlpha")}).appendTo(t).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(e){this._currentColor.a=e,this.applyColor()},_renderAlphaChannelHandle:function(e){this._$alphaChannelHandle=i("<div>").addClass(L).appendTo(e),this._createComponent(this._$alphaChannelHandle,f,{contentTemplate:null,boundary:e,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:function(){this._updateByDrag=!0;var e=this._$alphaChannelHandle,t=a.locate(e).left+this._alphaChannelHandleWidth/2;this._calculateColorTransparencyByScaleWidth(t)}.bind(this)}),this._alphaChannelHandleWidth=this._$alphaChannelHandle.width(),this._alphaChannelScaleWorkWidth=e.width()-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(e){var t=(e-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,n=this.option("rtlEnabled");t=n?t:1-t,e>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?t=n?1:0:t<1&&(t=t.toFixed(2)),t=Math.max(t,0),t=Math.min(t,1),this._alphaChannelInput.option("value",t)},_placeAlphaChannelHandle:function(){var e=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);e<0&&(e=0),this._alphaChannelScaleWorkWidth<e&&(e=this._alphaChannelScaleWorkWidth),a.move(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-e:e})},applyColor:function(){var e=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),this.option("value",e)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(e,t){var n,i;e?i=this._validateHex("#"+this._hexInput.option("value")):(n=this._validateRgb(),this._alphaChannelInput?(n.push(this._alphaChannelInput.option("value")),i="rgba("+n.join(", ")+")"):i="rgb("+n.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new s(i),this.applyColor(),this._refreshMarkup())},_validateHex:function(e){return this._currentColor.isValidHex(e)?e:this._currentColor.toHex()},_validateRgb:function(){var e=this._rgbInputs[0].option("value"),t=this._rgbInputs[1].option("value"),n=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(e,t,n)||(e=this._currentColor.r,t=this._currentColor.g,n=this._currentColor.b),[e,t,n]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._setCurrentColor(t),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(e);break;case"matchValue":this._setBaseColor(t);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(e)}}});d("dxColorView",K),e.exports=K},function(e,t,n){var i=n(251),o=n(196),a=n(22),r=n(4),s=n(1).isFunction,l=n(0).extend,u=n(10),d=o.inherit({NAME:"Calendar",supportedKeys:function(){return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")!==this._widget.option("maxZoomLevel"))return!0;var t=this._widget._view.option("contouredDate"),n=this._lastActionElement;t&&"calendar"===n&&this.dateBoxValue(t,e),this.dateBox.close(),this.dateBox._valueChangeEventHandler(e)}else this.dateBox._valueChangeEventHandler(e)}.bind(this)}},getDisplayFormat:function(e){return e||"shortdate"},_getWidgetName:function(){return i},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return l(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,_keyboardProcessor:this._widgetKeyboardProcessor,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:s(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_injectComponent:function(e){var t=this;return function(n){return l(n,{component:t.dateBox}),e(n)}},_refreshActiveDescendant:function(e){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t=e.toolbarItems,n=this.dateBox.option("buttonsLocation"),i=[];return i="default"!==n?r.splitPair(n):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&t.unshift({widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onInitialized:function(e){e.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:function(){this._widget._toTodayView()}.bind(this),text:u.format("dxCalendar-todayButtonText"),type:"today"}}),l(!0,e,{toolbarItems:t,position:{collision:"flipfit flip"}})},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(e){var t=this.dateBox,n=e.value,i=e.previousValue;a.sameDate(n,i)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}});e.exports=d},function(e,t,n){e.exports=n(252)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(34),s=i(r),l=n(3),u=n(0),d=function(){function e(){o(this,e),this._map={}}return a(e,[{key:"_findWidgetInstance",value:function(e){var t=void 0;return(0,l.each)(this._map,function(n,i){var o=i.widgetInstance,a=i.item;if(e(a))return t=o,!1}),t}},{key:"_findFieldByCondition",value:function(e,t){var n=void 0;return(0,l.each)(this._map,function(i,o){if(e(o))return n="guid"===t?i:o[t],!1}),n}},{key:"clear",value:function(){this._map={}}},{key:"removeItemsByItems",value:function(e){var t=this;(0,l.each)(e.getItems(),function(e){delete t._map[e]})}},{key:"add",value:function(e){var t=e.guid||new s.default;return this._map[t]=e,t}},{key:"addItemsOrExtendFrom",value:function(e){var t=this;e.each(function(e,n){t._map[e]?(t._map[e].widgetInstance=n.widgetInstance,t._map[e].$itemContainer=n.$itemContainer):t.add({item:n.item,widgetInstance:n.widgetInstance,guid:e,$itemContainer:n.$itemContainer})})}},{key:"extendRunTimeItemInfoByKey",value:function(e,t){this._map[e]=(0,u.extend)(this._map[e],t)}},{key:"findWidgetInstanceByItem",value:function(e){return this._findWidgetInstance(function(t){return t===e})}},{key:"getGroupOrTabLayoutManagerByPath",value:function(e){return this._findFieldByCondition(function(t){var n=t.path;return n===e},"layoutManager")}},{key:"getKeyByPath",value:function(e){return this._findFieldByCondition(function(t){var n=t.path;return n===e},"guid")}},{key:"getPathFromItem",value:function(e){return this._findFieldByCondition(function(t){var n=t.item;return n===e},"path")}},{key:"findWidgetInstanceByName",value:function(e){return this._findWidgetInstance(function(t){return e===t.name})}},{key:"findWidgetInstanceByDataField",value:function(e){return this._findWidgetInstance(function(t){return e===t.dataField})}},{key:"findItemContainerByItem",value:function(e){for(var t in this._map)if(this._map[t].item===e)return this._map[t].$itemContainer;return null}},{key:"findItemIndexByItem",value:function(e){return this._findFieldByCondition(function(t){var n=t.item;return n===e},"itemIndex")}},{key:"getItems",value:function(){return this._map}},{key:"each",value:function(e){(0,l.each)(this._map,function(t,n){e(t,n)})}}]),e}();t.default=d},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(19),l=n(7),u=l.getWindow(),d=n(3),c=n(0).extend,h=n(9),p=n(194),f=n(55),g="dx-responsivebox",_=g+"-screen-",m="dx-box-item",v="dxBoxItemData",y=1920,w=f.inherit({_getDefaultOptions:function(){return c(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||(this._options.screenByWidth=l.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return m},_itemDataKey:function(){return v},_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&o.triggerHandler(this._$root,"dxupdate")}.bind(this))},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(e){var t=this._findItemElementByItem(e);t.length&&(this._refreshItem(t,e),this._clearItemNodeTemplates(),this._update())},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(_+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(_+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),d.each(this._rows,function(){var t=[];e.push(t),d.each(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var e=this.option("rows"),t=this._screenItems.length;if(e.length){for(var n=this._filterByScreen(e),i=[],o=0;o<t;o++){var a=this._defaultSizeConfig();o<n.length&&r.isDefined(n[o].shrink)&&(a.shrink=n[o].shrink),i.push(a)}return i}return this._defaultSizeConfig(t)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col}),d.each(this._screenItems,function(e,t){c(t.location,{row:e,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(e){return d.map(this._filterByScreen(e),function(e){return c(this._defaultSizeConfig(),e)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(e){var t=this._createDefaultSizeConfig();if(!arguments.length)return t;for(var n=[],i=0;i<e;i++)n.push(t);return n},_filterByScreen:function(e){var t=this._screenRegExp();return a.grep(e,function(e){return!e.screen||t.test(e.screen)})},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return l.hasWindow()?i(u).width():y},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){d.each(this._screenItems,function(e,t){var n=t.location||{},i=n.col,o=n.row,a=this._grid[o],r=a&&a[i];this._occupyCells(r,t)}.bind(this))},_itemsByScreen:function(){var e=this;return this.option("items").reduce(function(t,n){var i=n.location||{};return i=r.isPlainObject(i)?[i]:i,e._filterByScreen(i).forEach(function(e){t.push({item:n,location:c({rowspan:1,colspan:1},e)})}),t},[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&(c(e,t),this._markSpanningCell(e));
},_isItemCellOccupied:function(e,t){if(!r.isEmptyObject(e.item))return!0;var n=!1;return this._loopOverSpanning(t.location,function(e){n=n||!r.isEmptyObject(e.item)}),n},_loopOverSpanning:function(e,t){var n=e.row+e.rowspan-1,i=e.col+e.colspan-1,o=Math.min(n,this._rows.length-1),a=Math.min(i,this._cols.length-1);e.rowspan-=n-o,e.colspan-=i-a;for(var r=e.row;r<=o;r++)for(var s=e.col;s<=a;s++)r===e.row&&s===e.col||t(this._grid[r][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,function(t){c(t,{item:e.item,spanningCell:e})})},_linkNodeToItem:function(){d.each(this._itemElements(),function(e,t){var n=i(t),o=n.data(v);o.box||(o.node=n.children())})},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var n=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),o=this._prepareBoxConfig(n.box||{direction:"row",items:[c(n,{ratio:1})]});c(o,this._rootBoxConfig(o.items)),this._$root=i("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,p,o)}},_rootBoxConfig:function(e){var t=d.each(e,function(e,t){this._needApplyAutoBaseSize(t)&&c(t,{baseSize:"auto"})}.bind(this));return c({width:"100%",height:"100%",items:t,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")},{_layoutStrategy:this.option("_layoutStrategy")})},_needApplyAutoBaseSize:function(e){return!(e.baseSize||e.minSize&&"auto"!==e.minSize||e.maxSize&&"auto"!==e.maxSize)},_prepareBoxConfig:function(e){return c(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,n=e.row.end-e.row.start===t.rowspan-1,i=e.col.end-e.col.start===t.colspan-1;return n&&i},_itemByCell:function(e,t){var n=this._grid[e][t];return n.spanningCell?null:n.item},_layoutDirection:function(e){for(var t,n=[],i=e.direction,o=this._crossDirection(i);t=this._nextBlock(e);){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw s.Error("E1025");var a=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});a&&(c(a,this._blockSize(t,o)),n.push(a)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,n=this._crossDirection(t),i=e[t].start,o=e[t].end,a=e[n].start;if(a>e[n].end)return null;for(var r=1,s=a;s<a+r;s++){for(var l=1,u=i;u<=o;u++){var d=this._cellByDirection(t,u,s);l=Math.max(l,d.location[n+"span"])}var c=s+l,h=a+r;c>h&&(r+=c-h)}var p={};return p[t]={start:i,end:o},p[n]={start:a,end:a+r-1},p},_cellByDirection:function(e,t,n){return"col"===e?this._grid[n][t]:this._grid[t][n]},_blockSize:function(e,t){for(var n="row"===t?this._rows:this._cols,i=c(this._createDefaultSizeConfig(),{ratio:0}),o=e[t].start;o<=e[t].end;o++){var a=n[o];i.ratio+=a.ratio,i.baseSize+=a.baseSize,i.minSize+=a.minSize,i.maxSize+=a.maxSize,r.isDefined(a.shrink)&&(i.shrink=a.shrink)}return i.minSize=i.minSize?i.minSize:"auto",i.maxSize=i.maxSize?i.maxSize:"auto",this._isSingleColumnScreen()&&(i.baseSize="auto"),i},_update:function(){var e=this._$root;this._renderItems(),e&&e.detach(),this._saveAssistantRoot(e),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){clearTimeout(this._updateTimer),this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&d.each(this._assistantRoots,function(e,t){i(t).remove()})},_clearItemNodeTemplates:function(){d.each(this.option("items"),function(){delete this.node})},_toggleVisibility:function(e){this.callBase(e),e&&this._updateRootBox()},_attachClickEvent:a.noop,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});h("dxResponsiveBox",w),e.exports=w},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(43),s=i(r),l=n(0),u=n(16),d=i(u),c=n(9),h=i(c),p=n(321),f=i(p),g=n(200),_=i(g),m=n(570),v=i(m),y=n(56),w=n(11),x=n(1),b=n(66),C=n(7),k=i(C),I="dx-tabpanel",S="dx-tabpanel-tabs",D="dx-tabpanel-container",T="dx-tab-text",E=f.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===d.default.real().deviceType&&!d.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!s.default.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass(I),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new b.BindableTemplate(function(e,t){if((0,x.isPlainObject)(t)){(0,x.isDefined)(t.title)&&!(0,x.isPlainObject)(t.title)&&e.text(t.title);var n=(0,y.getImageContainer)(t.icon);n&&n.prependTo(e)}else(0,x.isDefined)(t)&&e.text(String(t));e.wrapInner((0,a.default)("<span>").addClass(T))},["title","icon"],this.option("integrationOptions.watchMethod"))},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){e._updateLayout()},0))},_renderLayout:function(){if(!this._tabs){var e=this.$element();this._$tabContainer=(0,a.default)("<div>").addClass(S).appendTo(e);var t=(0,a.default)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,_.default,this._tabConfig()),this._$container=(0,a.default)("<div>").addClass(D).appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if(k.default.hasWindow()){var e=this._$tabContainer.outerHeight();this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),n=(0,a.default)(t[e.option("selectedIndex")]),i=this.getFocusedItemId();this.setAria("controls",void 0,(0,a.default)(t)),this.setAria("controls",i,n)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){if("focusedElement"===e.name)if(e.value){var t=(0,a.default)(e.value),n=this._itemElements().eq(t.index());this.option("focusedElement",(0,w.getPublicElement)(n))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._isFocusOutHandlerExecuting||this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_focusOutHandler:function(e){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(e),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(e,t){this.callBase(e,t),this._tabs&&this._tabs.registerKeyHandler(e,t)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(e){var t=e.name,n=e.value,i=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(t,this.option(t)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(e);break;case"width":this.callBase(e),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(i,n),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(i,n);break;case"focusedElement":var o=n?(0,a.default)(n).index():n,r=n?this._tabs._itemElements().eq(o):n;this._setTabsOption("focusedElement",(0,w.getPublicElement)(r)),this.callBase(e);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",n);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});E.ItemClass=v.default,(0,h.default)("dxTabPanel",E),e.exports=E},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(27),u=i(l),d=n(30),c=i(d),h=n(0),p=n(4),f=n(11),g=n(1),_=n(16),m=i(_),v=n(9),y=i(v),w=n(192),x=i(w),b=n(160),C=i(b),k=n(6),I="dx-multiview",S="dx-multiview-wrapper",D="dx-multiview-item-container",T="dx-multiview-item",E="dx-multiview-item-hidden",O="dxMultiViewItemData",A=200,P=function(e){return+e},B=function(e){return u.default.locate(e).left},M={move:function(e,t){u.default.move(e,{left:t})}},F={moveTo:function(e,t,n,i){s.default.animate(e,{type:"slide",to:{left:t},duration:n,complete:i})},complete:function(e){s.default.stop(e,!0)}},R=x.default.inherit({_activeStateUnit:"."+T,_supportedKeys:function(){return(0,h.extend)(this.callBase(),{pageUp:p.noop,pageDown:p.noop})},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===m.default.real().deviceType&&!m.default.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return T},_itemDataKey:function(){return O},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=this._$wrapper.width()),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.$element();e.addClass(I),this._$wrapper=(0,a.default)("<div>").addClass(S),this._$wrapper.appendTo(e),this._$itemContainer=(0,a.default)("<div>").addClass(D),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._deferredItems&&this._deferredItems.splice(t.itemIndex,1)},_beforeItemElementInserted:function(e){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(e.index,0,null)},_executeItemRenderAction:function(e,t,n){e=(this.option("items")||[]).indexOf(t),this.callBase(e,t,n)},_renderItemContent:function(e){var t=new k.Deferred,n=this,i=this.callBase,o=new k.Deferred;return o.done(function(){var o=i.call(n,e);t.resolve(o)}),this._deferredItems[e.index]=o,this.option("deferRendering")||o.resolve(),t.promise()},_render:function(){var e=this;this.callBase(),(0,p.deferRender)(function(){var t=e._getSelectedItemIndices();e._updateItems(t[0])})},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_updateItemsPosition:function(e,t){var n=this._itemElements(),i=(0,g.isDefined)(t)?-this._animationDirection(t,e):void 0,o=n.eq(e);M.move(o,0),(0,g.isDefined)(t)&&M.move(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){var n=this._itemElements();n.each(function(n,i){var o=(0,a.default)(i),r=n!==e&&n!==t;r||this._renderSpecificItem(n),o.toggleClass(E,r),this.setAria("hidden",r||void 0,o)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),n=t.find(this._itemContentClass()).length>0;(0,g.isDefined)(e)&&!n&&(this._deferredItems[e].resolve(),(0,f.triggerResizeEvent)(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:p.noop,_updateSelection:function(e,t){var n=e[0],i=t[0];F.complete(this._$itemContainer),this._updateItems(i,n);var o=this._animationDirection(n,i);this._animateItemContainer(o*this._itemWidth(),function(){M.move(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?A:0;F.moveTo(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n=B(this._$itemContainer),i=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==n,a=o?n:i;return c.default.sign(a)},_getSwipeDisabledState:function(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable:function(){var e=this;this._createComponent(this.$element(),C.default,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(t){return e._swipeStartHandler(t.event)},onUpdated:function(t){return e._swipeUpdateHandler(t.event)},onEnd:function(t){return e._swipeEndHandler(t.event)}})},_swipeStartHandler:function(e){F.complete(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=P(n||(o?t>0:t<i)),e.maxRightOffset=P(n||(o?t<i:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=c.default.sign(t)*this._getRTLSignCorrection();if(M.move(this._$itemContainer,t*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),o=this._normalizeIndex(i-n);this._updateItems(i,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,f.getPublicElement)(n))}else this._animateItemContainer(0,p.noop)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_updateSwipeDisabledState:function(){var e=this._getSwipeDisabledState();C.default.getInstance(this.$element()).option("disabled",e)},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(e);break;default:this.callBase(e)}}});(0,y.default)("dxMultiView",R),e.exports=R},function(e,t,n){var i=n(2),o=n(134),a="dx-tabs-item-badge",r="dx-badge",s=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+r).remove(),e){var t=i("<div>").addClass(a).addClass(r).text(e);this._$element.append(t)}}});e.exports=s},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(1),a=function(e,t){return(t?"tabs":"items")+"["+e+"]"},r=function(e,t){return(0,o.isDefined)(e)&&(0,o.isDefined)(t)?e+"."+t:e||t},s=function(e){return e?e.replace(/\s/g,""):void 0},l=function(e,t){return e&&(e.dataField===t||e.name===t||s(e.title)===t||"group"===e.itemType&&s(e.caption)===t)},u=function(e,t){return e+"."+t},d=function(e){var t=e.split(".");return t[t.length-1].replace(/\[\d+]/,"")},c=function(e){for(var t=e.split("."),n=[].concat(i(t)),o=t.length-1;o>=0;o--){if(h(t[o]))return n.join(".");n.splice(o,1)}return""},h=function(e){return e.indexOf("tabs")>-1};t.getOptionNameFromFullName=d,t.getFullOptionName=u,t.getTextWithoutSpaces=s,t.isExpectedItem=l,t.createItemPathByIndex=a,t.concatPaths=r,t.tryGetTabPath=c,t.isFullPathContainsTabs=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(9),h=i(c),p=n(85),f=i(p),g=n(257),_=i(g),m=n(87),v=i(m),y=n(199),w=i(y),x="dx-validationgroup",b="dx-validator",C="dx-validationsummary",k=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this)}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),v.default.addGroup(this)}},{key:"_initMarkup",value:function(){var e=this.$element();e.addClass(x),e.find("."+b).each(function(e,t){w.default.getInstance((0,d.default)(t))._initGroupRegistration()}),e.find("."+C).each(function(e,t){_.default.getInstance((0,d.default)(t))._initGroupRegistration()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"validate",value:function(){return v.default.validateGroup(this)}},{key:"reset",value:function(){return v.default.resetGroup(this)}},{key:"_dispose",value:function(){v.default.removeGroup(this),this.$element().removeClass(x),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_dispose",this).call(this)}}]),t}(f.default);(0,h.default)("dxValidationGroup",k),e.exports=k},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.allowScroll=void 0;var o=n(2),a=i(o),r=function(e,t,n){var i=(0,a.default)(e),o=n?i.scrollLeft():i.scrollTop(),r=n?"Width":"Height",s=i.prop("scroll"+r)-i.prop("client"+r)-o;if(0===o&&0===s)return!1;var l=0===o&&t>=0,u=0===s&&t<=0,d=o>0&&s>0;return!!(l||u||d)||void 0};t.allowScroll=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(58),d=n(2),c=i(d),h=(0,u.getQuill)(),p=h.import("blots/embed"),f="dx-mention",g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,null,[{key:"create",value:function(e){var n=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this);return n.setAttribute("spellcheck",!1),n.dataset.marker=e.marker,n.dataset.mentionValue=e.value,n.dataset.id=e.id,this.renderContent(n,e),n}},{key:"value",value:function(e){return{marker:e.dataset.marker,id:e.dataset.id,value:e.dataset.mentionValue}}},{key:"renderContent",value:function(e,t){var n=this._templates.get(t.marker);n?n.render({model:t,container:e}):this.baseContentRender(e,t)}},{key:"baseContentRender",value:function(e,t){var n=(0,c.default)("<span>").text(t.marker);(0,c.default)(e).append(n).append(t.value)}},{key:"addTemplate",value:function(e,t){this._templates.set(e,t)}},{key:"removeTemplate",value:function(e){this._templates.delete(e)}}]),t}(p);g.blotName="mention",g.tagName="span",g.className=f,g._templates=new Map,t.default=g},function(e,t,n){var i=n(2),o=n(4).noop,a=n(3).each,r=n(21),s=n(18).compileGetter,l=n(15),u=n(35),d=l.abstract,c="dx-toolbar-menu-container",h="dx-toolbar-menu-button",p=l.inherit({ctor:function(e){this._toolbar=e},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toggleMenu(!1,!0),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=i("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:d,_menuWidgetClass:d,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,i=s("visible"),o=s("locateInMenu"),l=!1;return a(t,function(e,t){var a=i(t,{functionsAsIs:!0}),r=o(t,{functionsAsIs:!0});"menu"===t.location&&(l=!0),a===!1||"auto"!==r&&"always"!==r&&"menu"!==t.location||(n=!0)}),l&&r.log("W0001","dxToolbar - 'location' item field","menu","16.1","Use 'locateInMenu' item field instead."),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o,_renderMenuButton:function(){var e=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=i("<div>").appendTo(this._$menuButtonContainer).addClass(h),this._toolbar._createComponent(this._$button,u,e)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=i("<div>").appendTo(e).addClass(this._toolbar._buttonClass()).addClass(c)},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(e,t){this._menu&&this._toggleMenu(e,t)},_toggleMenu:function(e){this._menuShown=e},getMenuWidget:function(){return this._menu},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)},handleToolbarVisibilityChange:o});e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(58),u=n(2),d=i(u),c=n(0),h=n(7),p=n(44),f=i(p),g=n(103),_=i(g),m="dx-suggestion-list",v="dx-suggestion-list-wrapper",y=(0,l.getQuill)().import("core/module"),w=100,x=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.options=(0,c.extend)({},i._getDefaultOptions(),n),i._popup=i.renderPopup(),i._popup._wrapper().addClass(v),i}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return{dataSource:null}}}]),s(t,[{key:"renderList",value:function(e,t){var n=(0,d.default)("<div>").addClass(m).appendTo(e);this._list=this.options.editorInstance._createComponent(n,_.default,t)}},{key:"renderPopup",value:function(){var e=this.options.editorInstance,t=(0,d.default)("<div>").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,f.default,n)}},{key:"_getPopupConfig",value:function(){var e=this;return{contentTemplate:function(t){var n=e._getListConfig(e.options);e.renderList((0,d.default)(t),n)},deferRendering:!1,onShown:function(){e._list.focus()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}}},{key:"_getListConfig",value:function(e){return{dataSource:e.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}},{key:"selectionChangedHandler",value:function(e){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(e))}},{key:"insertEmbedContent",value:function(e){}},{key:"showPopup",value:function(){this._popup&&this._popup.show()}},{key:"savePosition",value:function(e){this.caretPosition=e}},{key:"getPosition",value:function(){return this.caretPosition}},{key:"maxHeight",get:function(){var e=(0,h.getWindow)(),t=e&&(0,d.default)(e).height()||0;return Math.max(w,.5*t)}}]),t}(y);t.default=x},function(e,t,n){var i=n(67),o=n(15),a=n(3).map,r=n(1),s=n(8),l=r.isPlainObject,u=r.isNumeric,d=o.abstract,c=o.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(e,t){this._mapWidget=e,this._$container=t},render:function(e,t){return this._renderImpl().then(function(){return i.all([this._applyFunctionIfNeeded("addMarkers",e),this._applyFunctionIfNeeded("addRoutes",t)]).then(function(){return!0})}.bind(this))},_renderImpl:d,updateDimensions:d,updateMapType:d,updateBounds:d,updateCenter:d,updateZoom:d,updateControls:d,updateMarkers:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeMarkers",e).then(function(e){this._applyFunctionIfNeeded("addMarkers",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addMarkers:d,removeMarkers:d,adjustViewport:d,updateRoutes:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeRoutes",e).then(function(e){this._applyFunctionIfNeeded("addRoutes",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addRoutes:d,removeRoutes:d,clean:d,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(e,t){return void 0===t?this._mapWidget.option(e):void this._mapWidget.setOptionSilent(e,t)},_keyOption:function(e){var t=this._option("key");return void 0===t[e]?t:t[e]},_parseTooltipOptions:function(e){return{text:e.text||e,visible:e.isShown||!1}},_getLatLng:function(e){if("string"==typeof e){var t=a(e.split(","),function(e){return e.trim()}),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(n)&&t[1].match(n))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(e)&&2===e.length)return{lat:e[0],lng:e[1]};if(l(e)&&u(e.lat)&&u(e.lng))return e}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(e){
return s.addNamespace(e,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(e,t){return t.length?this[e](t):i.resolve()},_fireAction:function(e,t){this._mapWidget._createActionByOption(e)(t)},_fireClickAction:function(e){this._fireAction("onClick",e)},_fireMarkerAddedAction:function(e){this._fireAction("onMarkerAdded",e)},_fireMarkerRemovedAction:function(e){this._fireAction("onMarkerRemoved",e)},_fireRouteAddedAction:function(e){this._fireAction("onRouteAdded",e)},_fireRouteRemovedAction:function(e){this._fireAction("onRouteRemoved",e)}});e.exports=c},function(e,t,n){var i=n(67),o=n(0).extend,a=n(3),r=n(329),s=r.abstract,l=r.inherit({_geocodeLocation:function(e){return new i(function(t){var n=this._geocodedLocations,i=n[e];i?t(i):this._geocodeLocationImpl(e).then(function(i){n[e]=i,t(i)})}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return i.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new i(function(e){var t=setTimeout(function(){clearTimeout(t),e()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:s,_init:s,_attachHandlers:s,addMarkers:function(e){return i.all(a.map(e,function(e){return this._addMarker(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.marker})]}.bind(this))},_addMarker:function(e){return this._renderMarker(e).then(function(t){return this._markers.push(o({options:e},t)),this._fireMarkerAddedAction({options:e,originalMarker:t.marker}),t}.bind(this))},_renderMarker:s,removeMarkers:function(e){var t=this;return a.each(e,function(e,n){t._removeMarker(n)}),i.resolve()},_removeMarker:function(e){var t=this;a.each(this._markers,function(n,i){return i.options!==e||(t._destroyMarker(i),t._markers.splice(n,1),t._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:s,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(e){return i.all(a.map(e,function(e){return this._addRoute(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.instance})]}.bind(this))},_addRoute:function(e){return this._renderRoute(e).then(function(t){return this._routes.push(o({options:e},t)),this._fireRouteAddedAction({options:e,originalRoute:t.instance}),t}.bind(this))},_renderRoute:s,removeRoutes:function(e){var t=this;return a.each(e,function(e,n){t._removeRoute(n)}),i.resolve()},_removeRoute:function(e){var t=this;a.each(this._routes,function(n,i){return i.options!==e||(t._destroyRoute(i),t._routes.splice(n,1),t._fireRouteRemovedAction({options:e}),!1)})},_destroyRoute:s,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:s,_updateBounds:function(){var e=this;this._clearBounds(),this._option("autoAdjust")&&(a.each(this._markers,function(t,n){e._extendBounds(n.location)}),a.each(this._routes,function(t,n){n.northEast&&e._extendBounds(n.northEast),n.southWest&&e._extendBounds(n.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:s});e.exports=l},function(e,t,n){e.exports=n(605)},function(e,t,n){e.exports=n(607)},function(e,t,n){var i=n(2),o=n(17),a=n(169),r=n(27),s=n(78),l=n(30),u=n(1),d=n(0).extend,c=n(51),h="dx-slider",p="dx-slider-handle",f={top:{my:"bottom center",at:"top center",collision:"none"},bottom:{my:"top center",at:"bottom center",collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},g=o.inherit({_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(e){return e},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_initMarkup:function(){this.callBase(),this.$element().addClass(p),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase()},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("<div>").appendTo(this.$element())),this._$slider=this.$element().closest("."+h),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,a,{visible:!0,target:this.$element(),closeOnOutsideClick:!1,container:this.$element(),closeOnBackButton:!1,closeOnTargetScroll:!1,onPositioned:function(e){this._saveTooltipElements(e.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var e=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===u.type(e)&&(e=d({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[e])),this._tooltip.option("position",e),this._saveTooltipLocation()}},_saveTooltipElements:function(e){e=this._tooltip||e,this._$tooltipContent=e.$content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){r.resetPosition(this._$tooltipContent),r.resetPosition(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=r.locate(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var e=this._$tooltipContent.get(0).getBoundingClientRect().width,t=Math.ceil(e),n=t%2+t;this._$tooltipContent.outerWidth(n);var i=(n-this.$element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var e=this.option("tooltipPosition");"string"===u.type(e)&&(e=d({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[e],{collision:"fit none"}));var t=s.calculate(this._$tooltipContent,e),n="left"===t.h.collisionSide,i=(n?-1:1)*t.h.oversize,o=this._contentLocate.left,a=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();r.move(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*t.h.oversize}),r.move(this._$tooltipArrow,{left:l.fitIntoRange(i,o,a)})}},_getFormattedValue:function(e){return c.format(e,this.option("tooltipFormat"))},_renderValue:function(){if(this._tooltip){var e=this.option("value");this._tooltip.$content().html(this._getFormattedValue(e)),this._fitTooltip()}},_updateTooltip:function(){var e=/^onhover$/i.test(this.option("tooltipShowMode"));e||this._createTooltip(),this.$element().toggleClass("dx-slider-tooltip-on-hover",e),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(e,t){u.isDefined(e)&&u.isDefined(t)&&e.toString().length!==t.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(e){switch(e.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue();var t=this._getFormattedValue(e.value),n=this._getFormattedValue(e.previousValue);this._ensureTooltipIsCentered(t,n),this.setAria("valuenow",e.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(e)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});e.exports=g},function(e,t,n){var i=n(2),o=n(34),a=n(9),r=n(0).extend,s=n(142),l="dx-tooltip",u="dx-tooltip-wrapper",d=s.inherit({_getDefaultOptions:function(){return r(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass(l),this._wrapper().addClass(u),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o,this._$content.attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=i(this.option("target")),n=e?this._contentId:void 0;this.setAria("describedby",n,t)}});a("dxTooltip",d),e.exports=d},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(74),l=n(9),u=n(48),d=n(8),c=n(133),h=n(31),p=n(39),f=n(10),g=n(20),_=n(160),m=n(6).Deferred,v="dx-switch",y=v+"-wrapper",w=v+"-container",x=v+"-inner",b=v+"-handle",C=v+"-on-value",k=v+"-on",I=v+"-off",S=100,D=u.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({event:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._animateValue(e)};return r(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:this._getLocalizationMessage("On"),switchedOffText:this._getLocalizationMessage("Off"),value:!1,useInkRipple:!1,_animateHandle:!0})},_defaultOptionsRules:function(){var e=h.current();return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(t){return h.isIos7(e)},options:{_animateHandle:!1}}])},_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{onText:{since:"18.2",alias:"switchedOnText"},offText:{since:"18.2",alias:"switchedOffText"}})},_getLocalizationMessage:function(e){var t=f.format("dxSwitch-switched"+e+"Text"),n=f.format("dxSwitch-"+e.toLowerCase()+"Text");return t||n},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(v).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(e,t){var n=(t-this._offsetDirection()*Number(!e))/2;return 100*n+"%"},_getHandleOffset:function(e,t){if(this.option("rtlEnabled")&&(e=!e),e){var n=-100+100*-t;return n+"%"}return 100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=i("<div>").addClass(x).appendTo(this._$switchContainer),this._$handle=i("<div>").addClass(b).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("<div>").addClass(k).prependTo(this._$switchInner),this._$labelOff=i("<div>").addClass(I).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("<div>").addClass(w),this._$switchWrapper=i("<div>").addClass(y).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),_,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return this._$switchContainer.outerWidth(!0)-this._$handle.get(0).getBoundingClientRect().width},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,t,1)},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._getInnerOffset(e,t),i=this._getHandleOffset(e,t);this.option("_animateHandle")&&(this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")"))},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&(this._options.value=!!e)},_renderClick:function(){var e=d.addNamespace(g.name,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),o.off(t,e),o.on(t,e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){var t=e.event;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this._getInnerOffset(t,0),o=this._getInnerOffset(n,0),a=this._getHandleOffset(t,0),r=this._getHandleOffset(n,0),s=this,l={},u={},d={},c={};l.transform=" translateX("+i+")",u.transform=" translateX("+o+")",d.transform=" translateX("+a+")",c.transform=" translateX("+r+")",this.$element().toggleClass(C,n),p.animate(this._$handle,{from:d,to:c,duration:S}),p.animate(this._$switchInner,{from:l,to:u,duration:S,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,o=n?1:0;e.event.maxLeftOffset=t?i:o,e.event.maxRightOffset=t?o:i,this._swiping=!0,this._feedbackDeferred=new m,c.lock(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),e.event.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={},o={},a=this._getInnerOffset(t.option("value"),e.event.targetOffset),r=this._getHandleOffset(t.option("value"),e.event.targetOffset);i.transform=" translateX("+a+")",o.transform=" translateX("+r+")",p.animate(this._$handle,{to:o,duration:S}),p.animate(this._$switchInner,{to:i,duration:S,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.event.targetOffset;t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var e=this.option("value");this._renderPosition(e,0),this.$element().toggleClass(C,e),this._getSubmitElement().val(e),this.setAria({pressed:e,label:e?this.option("switchedOnText"):this.option("switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;case"_animateHandle":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxSwitch",D),e.exports=D},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(4),u=n(7),d=i(u),c=n(9),h=i(c),p=n(0),f=n(1),g=n(8),_=i(g),m=n(23),v=i(m),y=n(247),w=i(y),x=n(177),b=i(x),C=n(325),k=n(93),I=i(k),S="dx-textarea",D="dx-texteditor-input",T="dx-texteditor-input-auto-resize",E=I.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass(S),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=(0,a.default)("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),this._updateInputAutoResizeAppearance(e),e},_applyInputAttributes:function(e,t){e.attr(t).addClass(D)},_renderScrollHandler:function(){var e=this;this._eventY=0;var t=this._input(),n={validate:function(n){if(_.default.isDxMouseWheelEvent(n)&&(0,a.default)(n.target).is(e._input()))return!!(0,C.allowScroll)(t,-n.delta,n.shiftKey)&&(n._needSkipEvent=!0,!0)}};s.default.on(t,_.default.addNamespace(w.default.init,this.NAME),n,l.noop),s.default.on(t,_.default.addNamespace(v.default.down,this.NAME),this._pointerDownHandler.bind(this)),s.default.on(t,_.default.addNamespace(v.default.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(e){this._eventY=_.default.eventData(e).y},_pointerMoveHandler:function(e){var t=_.default.eventData(e).y,n=this._eventY-t;(0,C.allowScroll)(this._input(),n)&&(e.isScrollingEvent=!0,e.stopPropagation()),this._eventY=t},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t),o=this.option("minHeight"),a=this.option("maxHeight");e.css({minHeight:void 0!==o?o:"",maxHeight:void 0!==a?a:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&s.default.on(this._input(),_.default.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){s.default.off(this._input(),_.default.addNamespace("input paste",this.NAME)),this.callBase()},_getHeightDifference:function(e){return b.default.getVerticalOffsets(this._$element.get(0),!1)+b.default.getVerticalOffsets(this._$textEditorContainer.get(0),!1)+b.default.getVerticalOffsets(this._$textEditorInputContainer.get(0),!1)+b.default.getElementBoxParams("height",d.default.getWindow().getComputedStyle(e.get(0))).margin},_updateInputHeight:function(){var e=this._input(),t=void 0===this.option("height")&&this.option("autoResizeEnabled");if(!t)return void e.css("height","");this._resetDimensions(),this._$element.css("height",this._$element.outerHeight()),e.css("height",0);var n=this._getHeightDifference(e);this._renderDimensions();var i=this._getBoundaryHeight("minHeight"),o=this._getBoundaryHeight("maxHeight"),a=e[0].scrollHeight;if(void 0!==i&&(a=Math.max(a,i-n)),void 0!==o){var r=o-n,s=a>r;a=Math.min(a,r),this._updateInputAutoResizeAppearance(e,!s)}e.css("height",a),t&&this._$element.css("height","auto")},_getBoundaryHeight:function(e){var t=this.option(e);if((0,f.isDefined)(t))return"number"==typeof t?t:b.default.parseHeight(t,this._$textEditorContainer.get(0))},_renderInputType:l.noop,_visibilityChanged:function(e){e&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(e,t){if(e){var n=(0,l.ensureDefined)(t,this.option("autoResizeEnabled"));e.toggleClass(T,n)}},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),e.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});(0,h.default)("dxTextArea",E),e.exports=E},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(12),h=i(c),p=n(5),f=i(p),g=n(34),_=i(g),m=n(9),v=i(m),y=n(4),w=n(1),x=n(11),b=n(3),C=n(14),k=n(0),I=n(7),S=n(39),D=i(S),T=n(78),E=n(16),O=i(E),A=n(8),P=n(59),B=i(P),M=n(338),F=i(M),R=n(6),V="dx-menu",H=V+"-item",L=H+"-expanded",z="dx-menu-phone-overlay",$=V+"-items-container",N=H+"-wrapper",W="dx-submenu",j="dx-context-menu",q="dx-has-context-menu",G="dx-state-disabled",K="dx-state-focused",U="dx-state-hover",Y="up",X="down",Z="left",Q="right",J="first",ee="last",te=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],ne=[Y,X,J,ee],ie="dxcontextmenu",oe=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getShowEvent",value:function(e){var t=null;return(0,w.isObject)(e)?null!==e.name&&(t=e.name||ie):t=e,t}},{key:"getShowDelay",value:function(e){return(0,w.isObject)(e)&&e.delay}},{key:"_getDefaultOptions",value:function(){return(0,k.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{showEvent:ie,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return!(0,I.hasWindow)()},options:{animation:null}}])}},{key:"_initActions",value:function(){var e=this;this._actions={},(0,b.each)(te,function(t,n){e._actions[n]=e._createActionByOption(n)||y.noop})}},{key:"_setOptionsByReference",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setOptionsByReference",this).call(this),(0,k.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})}},{key:"_focusInHandler",value:function(){}},{key:"_itemContainer",value:function(){return this._overlay?this._overlay.$content():(0,d.default)()}},{key:"_eventBindingTarget",value:function(){return this._itemContainer()}},{key:"itemsContainer",value:function(){return this._overlay?this._overlay.$content():void 0}},{key:"_supportedKeys",value:function(){var e=this,n=function(){var t=(0,d.default)(e.option("focusedElement"));e.hide(),t.length&&e._isSelectionEnabled()&&e.selectItem(t[0])};return(0,k.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{space:n,esc:this.hide})}},{key:"_getActiveItem",value:function(){var e=this._getAvailableItems(),n=e.filter("."+K),i=e.filter("."+U),o=i.closest("."+$);return o.find("."+H).index(n)>=0?n:i.length?i:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getActiveItem",this).call(this)}},{key:"_moveFocus",value:function(e){var n=this._getItemsByLocation(e),i=this._getActiveItem(!0),o=this.itemsContainer().find("."+U),a=(0,d.default)(this.option("focusedElement")),r=!(!a.length&&!o.length),s=void 0;switch(e){case Y:s=r?this._prevItem(n):i,i.is(n.first())&&this._actions.onLeftFirstItem(i);break;case X:s=r?this._nextItem(n):i,i.is(n.last())&&this._actions.onLeftLastItem(i);break;case Q:s=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(n,e);break;case Z:s=this.option("rtlEnabled")?this._expandSubmenuHandler(n,e):this._hideSubmenuHandler();break;case J:s=n.first();break;case ee:s=n.last();break;default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_moveFocus",this).call(this,e)}0!==s.length&&this.option("focusedElement",(0,x.getPublicElement)(s))}},{key:"_getItemsByLocation",value:function(e){var t=this._getActiveItem(!0),n=void 0;return(0,C.inArray)(e,ne)>=0&&(n=t.closest("."+$).children().children()),n=this._getAvailableItems(n)}},{key:"_getAriaTarget",value:function(){return this.$element()}},{key:"_refreshActiveDescendant",value:function(){if((0,w.isDefined)(this._overlay)){var e=this._overlay.$content();l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_refreshActiveDescendant",this).call(this,e)}}},{key:"_hideSubmenuHandler",value:function(){var e=this._getActiveItem(!0),t=e.parents("."+L).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest("."+W)),t):(this._actions.onCloseRootSubmenu(e),e)}},{key:"_expandSubmenuHandler",value:function(e,t){var n=this._getActiveItem(!0),i=this._getItemData(n),o=this._dataAdapter.getNodeByItem(i),a=this._hasSubmenu(o),r=n.children("."+W);return a&&!n.hasClass(G)?(r.length&&"hidden"!==r.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t))):(this._actions.onExpandLastSubmenu(n),n)}},{key:"_clean",value:function(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_initMarkup",value:function(){this.$element().addClass(q),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._renderVisibility(this.option("visible")),this._addWidgetClass()}},{key:"_renderContentImpl",value:function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}},{key:"_attachKeyboardEvents",value:function(){!this._keyboardProcessor&&this._focusTarget().length&&l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_attachKeyboardEvents",this).call(this)}},{key:"_renderContextMenuOverlay",value:function(){if(!this._overlay){var e=this._getOverlayOptions();this._overlay=this._createComponent((0,d.default)("<div>").appendTo(this._$element),B.default,e);var t=this._overlay.$content();t.addClass(j),this._addCustomCssClass(t),this._addPlatformDependentClass(t),this._attachContextMenuEvent()}}},{key:"_itemContextMenuHandler",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemContextMenuHandler",this).call(this,e),e.stopPropagation()}},{key:"_addPlatformDependentClass",value:function(e){O.default.current().phone&&e.addClass(z)}},{key:"_detachShowContextMenuEvents",value:function(e){var t=this.getShowEvent(this.option("showEvent"));if(t){var n=(0,A.addNamespace)(t,this.NAME);this._showContextMenuEventHandler?f.default.off(h.default.getDocument(),n,e,this._showContextMenuEventHandler):f.default.off((0,d.default)(e),n)}}},{key:"_attachShowContextMenuEvents",value:function(){var e=this,t=this._getTarget(),n=this.getShowEvent(this.option("showEvent"));if(n){var i=(0,A.addNamespace)(n,this.NAME),o=this._createAction(function(t){var n=e.getShowDelay(e.option("showEvent"));n?setTimeout(function(){return e._show(t.event)},n):e._show(t.event)},{validatingTargetName:"target"}),a=function(e){return o({event:e,target:(0,d.default)(e.currentTarget)})};o=this._createAction(o),(0,w.isRenderer)(t)||t.nodeType||(0,w.isWindow)(t)?(this._showContextMenuEventHandler=void 0,f.default.on(t,i,a)):(this._showContextMenuEventHandler=a,f.default.on(h.default.getDocument(),i,t,this._showContextMenuEventHandler))}}},{key:"_hoverEndHandler",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_hoverEndHandler",this).call(this,e),e.stopPropagation()}},{key:"_renderDimensions",value:function(){}},{key:"_renderContainer",value:function(e,n){var i=n||this._itemContainer();e=(0,d.default)("<div>"),e.appendTo(i).addClass(W).css("visibility",n?"hidden":"visible");var o=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderContainer",this).call(this,e);return n?o:this.option("width")?o.css("minWidth",this.option("width")):this.option("height")?o.css("minHeight",this.option("height")):o}},{key:"_renderSubmenuItems",value:function(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:(0,x.getPublicElement)(t),itemData:e.internalFields.item,submenuElement:(0,x.getPublicElement)(t.children("."+W))})}},{key:"_getOverlayOptions",value:function(){var e=this.option("position"),t={focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,closeOnTargetScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)};return t}},{key:"_overlayShownActionHandler",value:function(e){this._actions.onShown(e)}},{key:"_overlayHidingActionHandler",value:function(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionSilent("visible",!1))}},{key:"_overlayHiddenActionHandler",value:function(e){this._actions.onHidden(e)}},{key:"_closeOnOutsideClickHandler",value:function(e){var t=this.option("closeOnOutsideClick");if((0,w.isFunction)(t))return t(e);if(!t)return!1;if(h.default.isDocument(e.target))return!0;var n=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),o=this._searchActiveItem(e.target),a=this.$element().parents("."+H),r=o[0]===a[0]&&o.length&&a.length,s=this._isIncludeOverlay(n,i)&&o.length;return!s&&!r||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(o),!1)}},{key:"_getActiveItemsContainer",value:function(e){return(0,d.default)(e).closest("."+$)}},{key:"_getItemsContainers",value:function(){return this._overlay._$content.find("."+$)}},{key:"_searchActiveItem",value:function(e){return(0,d.default)(e).closest("."+H).eq(0)}},{key:"_isIncludeOverlay",value:function(e,t){var n=!1;return(0,b.each)(t,function(t,i){e.is(i)&&!n&&(n=!0)}),n}},{key:"_hideAllShownChildSubmenus",value:function(e){var t=this,n=e.find("."+W),i=(0,k.extend)([],this._shownSubmenus);n.length>0&&(0,b.each)(i,function(n,i){var o=t._searchActiveItem(i.context).parent();o.parent().is(e.parent().parent())&&!o.is(e.parent())&&t._hideSubmenu(i)})}},{key:"_showSubmenu",value:function(e){var n=this._dataAdapter.getNodeByItem(this._getItemData(e));if(this._hideSubmenusOnSameLevel(e),this._hasSubmenu(n)){var i=e.children("."+W),o=i.length;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_showSubmenu",this).call(this,e),o||this._renderSubmenuItems(n,e),this._isSubmenuVisible(i)||this._drawSubmenu(e)}}},{key:"_hideSubmenusOnSameLevel",value:function(e){var t=e.parent("."+N).siblings().find("."+L);t.length&&(t.removeClass(L),this._hideSubmenu(t.find("."+W)))}},{key:"_hideSubmenuGroup",value:function(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)}},{key:"_isSubmenuVisible",value:function(e){return"visible"===e.css("visibility")}},{key:"_drawSubmenu",
value:function(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children("."+W),i=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&((0,w.isDefined)(this._shownSubmenus)||(this._shownSubmenus=[]),(0,C.inArray)(n,this._shownSubmenus)&&this._shownSubmenus.push(n),t&&D.default.stop(n),(0,T.setup)(n,i),t&&((0,w.isPlainObject)(t.to)&&(t.to.position=i),this._animate(n,t)),n.css("visibility","visible"))}},{key:"_animate",value:function(e,t){D.default.animate(e,t)}},{key:"_getSubmenuPosition",value:function(e){var t=this.option("submenuDirection").toLowerCase(),n=e.parent("."+N),i={collision:"flip",of:n,offset:{h:0,v:-1}};switch(t){case"left":i.at="left top",i.my="right top";break;case"right":i.at="right top",i.my="left top";break;default:this.option("rtlEnabled")?(i.at="left top",i.my="right top"):(i.at="right top",i.my="left top")}return i}},{key:"_updateSubmenuVisibilityOnClick",value:function(e){if(e.args.length){var t=e.args[0].itemData,n=this._dataAdapter.getNodeByItem(t);if(n){var i=(0,d.default)(e.args[0].itemElement),o=i.find("."+W),a=this._hasSubmenu(n)&&!o.length;if(a&&(this._renderSubmenuItems(n,i),o=i.find("."+W)),i.context!==o.context||"visible"!==o.css("visibility")){var r=t&&t.closeMenuOnClick===!1;if(t&&!t.disabled&&!r)if(this._updateSelectedItemOnClick(e),0===o.length){var s=(0,d.default)(i.parents("."+W)[0]);this._hideSubmenu(s),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(o)&&this._hideSubmenu(o),this._showSubmenu(i)}}}}},{key:"_hideSubmenu",value:function(e){var t=this,n=(0,k.extend)([],this._shownSubmenus);(0,b.each)(n,function(n,i){(e.is(i)||(0,x.contains)(e[0],i[0]))&&(i.parent().removeClass(L),t._hideSubmenuCore(i))})}},{key:"_hideSubmenuCore",value:function(e){var t=(0,C.inArray)(e,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")}},{key:"_stopAnimate",value:function(e){D.default.stop(e,!0)}},{key:"_hideAllShownSubmenus",value:function(){var e=this,t=(0,k.extend)([],this._shownSubmenus),n=this._overlay.$content().find("."+L);n.removeClass(L),(0,b.each)(t,function(t,n){e._hideSubmenu(n)})}},{key:"_visibilityChanged",value:function(e){e&&this._renderContentImpl()}},{key:"_optionChanged",value:function(e){if((0,C.inArray)(e.name,te)>-1)return void this._initActions();switch(e.name){case"visible":this._renderVisibility(e.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":e.previousValue&&this._detachShowContextMenuEvents(e.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_renderVisibility",value:function(e){return e?this._show():this._hide()}},{key:"_toggleVisibility",value:function(){}},{key:"_show",value:function(e){var t={jQEvent:e},n=(new R.Deferred).reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var i=this._positionContextMenu(e);return i&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionSilent("visible",!0),this._overlay.option("position",i),n=this._overlay.show(),e&&e.stopPropagation(),this._setAriaAttributes()),n}},{key:"_setAriaAttributes",value:function(){this._overlayContentId="dx-"+new _.default,this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}},{key:"_cleanAriaAttributes",value:function(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}},{key:"_getTarget",value:function(){return this.option("target")||this.option("position").of||(0,d.default)(h.default.getDocument())}},{key:"_getContextMenuPosition",value:function(){return(0,k.extend)({},this.option("position"),{of:this._getTarget()})}},{key:"_positionContextMenu",value:function(e){var t=this._getContextMenuPosition(),n=this._isInitialOptionValue("position"),i=this._createActionByOption("onPositioning",o);e&&e.preventDefault&&n&&(t.of=e);var o={position:t,event:e};return i(o),o.cancel?t=null:o.event&&(o.event.cancel=!0,e.preventDefault()),t}},{key:"_refresh",value:function(){if((0,I.hasWindow)())if(this._overlay){var e=this._overlay.option("position");l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_refresh",this).call(this),this._overlay&&this._overlay.option("position",e)}else l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_refresh",this).call(this);else l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_refresh",this).call(this)}},{key:"_hide",value:function(){var e=void 0;return this._overlay&&(e=this._overlay.hide(),this._setOptionSilent("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),e||(new R.Deferred).reject().promise()}},{key:"toggle",value:function(e){var t=this.option("visible");return e=void 0===e?!t:e,this._renderVisibility(e)}},{key:"show",value:function(){return this.toggle(!0)}},{key:"hide",value:function(){return this.toggle(!1)}}]),t}(F.default);(0,v.default)("dxContextMenu",oe),e.exports=oe},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(4),h=n(1),p=n(3),f=n(0),g=n(74),_=n(339),m=i(_),v=n(617),y=i(v),w=n(16),x=i(w),b=n(134),C=i(b),k="dx-menu",I=k+"-no-icons",S="dx-menu-base",D=k+"-item",T=D+"-content",E=D+"-selected",O=D+"-wrapper",A=k+"-items-container",P=D+"-expanded",B=k+"-separator",M=k+"-last-group-item",F=D+"-has-text",R=D+"-has-icon",V=D+"-has-submenu",H=D+"-popout",L=H+"-container",z=D+"-text",$="single",N={show:50,hide:300},W=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,f.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}},{key:"_itemDataKey",value:function(){return"dxMenuItemDataKey"}},{key:"_itemClass",value:function(){return D}},{key:"_setAriaSelected",value:function(){}},{key:"_selectedItemClass",value:function(){return E}},{key:"_widgetClass",value:function(){return S}},{key:"_focusTarget",value:function(){return this._itemContainer()}},{key:"_clean",value:function(){this.option("focusedElement",null),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_supportedKeys",value:function(){var e=this,n=function(){var t=(0,d.default)(e.option("focusedElement"));t.length&&e._isSelectionEnabled()&&e.selectItem(t[0])};return(0,f.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{space:n,pageUp:c.noop,pageDown:c.noop})}},{key:"_isSelectionEnabled",value:function(){return this.option("selectionMode")===$}},{key:"_init",value:function(){this._activeStateUnit="."+D,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._renderSelectedItem(),this._initActions()}},{key:"_getTextContainer",value:function(e){var t=e.text,n=(0,d.default)("<span>").addClass(z),i=(0,h.isPlainObject)(e)?t:String(e);return t&&n.text(i)}},{key:"_getPopoutContainer",value:function(e){var t=e.items,n=void 0;if(t&&t.length){var i=(0,d.default)("<div>").addClass(H);n=(0,d.default)("<span>").addClass(L).append(i)}return n}},{key:"_getDataAdapterOptions",value:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}},{key:"_selectByItem",value:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}}},{key:"_renderSelectedItem",value:function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(!t)return void this._selectByItem(n);var i=this._dataAdapter.getNodeByKey(t);return i.selectable!==!1?n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item):void 0}},{key:"_initActions",value:function(){}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()}},{key:"_renderInkRipple",value:function(){this._inkRipple=(0,g.render)()}},{key:"_toggleActiveState",value:function(e,n,i){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_toggleActiveState",this).apply(this,arguments),this._inkRipple){var o={element:e,event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_getShowSubmenuMode",value:function(){var e="onClick",t=this.option("showSubmenuMode");return t=(0,h.isObject)(t)?t.name:t,this._isDesktopDevice()?t:e}},{key:"_initSelectedItems",value:function(){}},{key:"_isDesktopDevice",value:function(){return"desktop"===x.default.real().deviceType}},{key:"_initEditStrategy",value:function(){var e=y.default;this._editStrategy=new e(this)}},{key:"_addCustomCssClass",value:function(e){e.addClass(this.option("cssClass"))}},{key:"_itemWrapperSelector",value:function(){return"."+O}},{key:"_hoverStartHandler",value:function(e){var t=this._getItemElementByEventArgs(e);t&&!this._isItemDisabled(t)&&(e.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,t),this._getSubmenuDelay("show"))))}},{key:"_getAvailableItems",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getAvailableItems",this).call(this,e).filter(function(){return"hidden"!==(0,d.default)(this).css("visibility")})}},{key:"_isItemDisabled",value:function(e){return this._disabledGetter(e.data(this._itemDataKey()))}},{key:"_showSubmenu",value:function(e){this._addExpandedClass(e)}},{key:"_addExpandedClass",value:function(e){(0,d.default)(e).addClass(P)}},{key:"_getSubmenuDelay",value:function(e){var t=this.option("showSubmenuMode"),n=t.delay;return(0,h.isDefined)(n)?(0,h.isObject)(n)?n[e]:n:N[e]}},{key:"_getItemElementByEventArgs",value:function(e){var t=(0,d.default)(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if(t=t.parent(),t.hasClass("dx-submenu"))return null;return t}},{key:"_hoverEndHandler",value:function(){clearTimeout(this._showSubmenusTimeout)}},{key:"_hasSubmenu",value:function(e){return e.internalFields.childrenKeys.length}},{key:"_renderContentImpl",value:function(){this._renderItems(this._dataAdapter.getRootNodes())}},{key:"_renderItems",value:function(e,t){var n=this;if(e.length){this.hasIcons=!1;var i=this._renderContainer(this.$element(),t),o=-1,a=-1;(0,p.each)(e,function(e,t){var r=t.visible!==!1;r&&o<0&&(o=e);var s=o<e&&(t.beginGroup||e===a);s&&(a=r?e:e+1),e===a&&o<e&&n._renderSeparator(i),n._renderItem(e,t,i)}),this.hasIcons||i.addClass(I)}}},{key:"_renderContainer",value:function(e){return(0,d.default)("<ul>").appendTo(e).addClass(A)}},{key:"_createDOMElement",value:function(e){var t=(0,d.default)("<li>").appendTo(e).addClass(O);return t}},{key:"_renderItem",value:function(e,n,i,o){var a=this.option("items"),r=void 0;if(n.internalFields.item.visible!==!1){var s=o||this._createDOMElement(i);a[e+1]&&a[e+1].beginGroup&&s.addClass(M),r=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItem",this).call(this,e,n.internalFields.item,s),n.internalFields.item===this.option("selectedItem")&&r.addClass(E),r.attr("tabIndex",-1),this._hasSubmenu(n)&&this.setAria("haspopup","true",r)}}},{key:"_renderItemFrame",value:function(e,n,i){var o=i.children("."+D);return o.length?o:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItemFrame",this).apply(this,arguments)}},{key:"_refreshItem",value:function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),o=e.closest("ul"),a=e.closest("li");this._renderItem(i,n,o,a)}},{key:"_addContentClasses",value:function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass(F,n),t.toggleClass(R,i),this.hasIcons||(this.hasIcons=i),t.toggleClass(V,o)}},{key:"_getItemContent",value:function(e){var n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getItemContent",this).call(this,e);return n.length||(n=e.children("."+T)),n}},{key:"_postprocessRenderItem",value:function(e){var t=(0,d.default)(e.itemElement),n=this._dataAdapter.getSelectedNodesKeys();if(!n.length||!this._selectedGetter(e.itemData)||!this._isItemSelectable(e.itemData))return void this._setAriaSelected(t,"false");var i=this._dataAdapter.getNodeByItem(e.itemData);i.internalFields.key===n[0]?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}},{key:"_isItemSelectable",value:function(e){return e.selectable!==!1}},{key:"_renderSeparator",value:function(e){(0,d.default)("<li>").appendTo(e).addClass(B)}},{key:"_itemClickHandler",value:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}}},{key:"_updateSubmenuVisibilityOnClick",value:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)}},{key:"_updateSelectedItemOnClick",value:function(e){var t=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(t.itemData)){var n=this._dataAdapter.getSelectedNodesKeys(),i=n.length&&this._dataAdapter.getNodeByKey(n[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===t.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(t.itemData)}}},{key:"_isItemSelectionAllowed",value:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)}},{key:"_isContainerEmpty",value:function(){return this._itemContainer().is(":empty")}},{key:"_syncSelectionOptions",value:function(){return(0,c.asyncNoop)()}},{key:"_optionChanged",value:function(e){switch(e.name){case"showSubmenuMode":break;case"selectedItem":var n=this._dataAdapter.getNodeByItem(e.value),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(n.selectable===!1)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_toggleItemSelection",value:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&(0,d.default)(n).toggleClass(E),this._dataAdapter.toggleSelection(e.internalFields.key,t)}},{key:"_getElementByItem",value:function(e){var t=this,n=void 0;return(0,p.each)(this._itemElements(),function(i,o){return(0,d.default)(o).data(t._itemDataKey())!==e||(n=o,!1)}),n}},{key:"_updateSelectedItems",value:function(e,t){(e||t)&&this._fireSelectionChangeEvent(t,e)}},{key:"_fireSelectionChangeEvent",value:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})}},{key:"selectItem",value:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getSelectedNodesKeys()[0],i=this.option("selectedItem"),o=this._dataAdapter.getNodeByItem(t);o.internalFields.key!==n&&(n&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(n),!1),this._toggleItemSelection(o,!0),this._updateSelectedItems(i,t),this._setOptionSilent("selectedItem",t))}},{key:"unselectItem",value:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionSilent("selectedItem",null))}}]),t}(m.default);W.ItemClass=C.default,e.exports=W},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(18),s=n(0),l=n(3),u=n(16),d=i(u),c=n(56),h=i(c),p=n(615),f=i(p),g=n(55),_=i(g),m=n(66),v=n(1),y=n(4),w="dx-state-disabled",x=_.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===d.default.real().deviceType&&!d.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new f.default((0,s.extend)({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:y.noop,_initDynamicTemplates:function(){var e=this;this._defaultTemplates.item=new m.BindableTemplate(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})},_getIconContainer:function(e){return e.icon?h.default.getImageContainer(e.icon):void 0},_getTextContainer:function(e){return(0,a.default)("<span>").text(e.text)},_getPopoutContainer:y.noop,_addContentClasses:y.noop,_initAccessors:function(){var e=this;(0,l.each)(this._getAccessors(),function(t,n){e._compileAccessor(n)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return(0,l.each)(e.internalFields.childrenKeys,function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)}),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?(0,v.isFunction)(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=(0,r.compileGetter)(i),void(this[n]=(0,r.compileSetter)(i))):(this[t]=y.noop,void(this[n]=y.noop))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return(0,l.each)(this._getAccessors(),function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",r="parentId"===i?"parentKey":i;t.getters[r]=e[o],t.setters[r]=e[a]}),t.getters.display=this._displayGetter?this._displayGetter:function(e){return e.text},t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:y.noop,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(w,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(619),a=i(o);n(629),n(630),n(631),n(633),n(636),n(637),n(639),n(640),n(641),n(643),n(644),n(648),n(649),n(650),n(651),n(653),n(654),n(655),n(657),n(658),n(659),n(660),n(661),n(662),e.exports=a.default},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(171),u=i(l),d=n(10),c=i(d),h=n(1),p=n(3),f=n(0),g=n(262),_="text-content",m="headers",v="nowrap",y=".dx-row",w="dx-header-row",x="dx-column-lines",b="context-menu-sort-asc",C="context-menu-sort-desc",k="context-menu-sort-none",I="dx-cell-focus-disabled",S="dx-visibility-hidden",D="dx-text-content-alignment-",T="dx-sort-indicator",E="dx-sort-index-indicator",O=".dx-header-filter",A="dx-header-filter-indicator",P="dx-header-multi-row";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:u.default.ColumnsView.inherit(function(){var e=function(e,n,i){var o,r=(0,a.default)("<div>").addClass(e.addWidgetPrefix(_));return e.setAria("role","presentation",r),t(e,n,i.column,r),o=e.option("showColumnLines"),r[o||"right"===i.column.alignment?"appendTo":"prependTo"](n)},t=function(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),r=o&&o.length,s=e._getColumnAlignment(n.alignment);i=i||t.children("."+e.addWidgetPrefix(_)),i.toggleClass(D+s,r>0).toggleClass(D+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass(T,!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass(E,!!a.children().filter("."+e._getIndicatorClassName("sortIndex")).length).toggleClass(A,!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return s.default.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_isLegacyKeyboardNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(t){var n=this;return function(i,o){var a=t.command?i:e(n,i,o),r="expand"!==t.command&&t.caption;r?a.text(r):t.command&&i.html("&nbsp;")}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i,o=this,a=n.column,r=o.callBase(t);return i="header"===n.rowType&&r&&a.headerCellTemplate&&!a.command?{render:function(t){var n=e(o,t.container,t.model);r.render((0,f.extend)({},t,{container:n}))}}:r},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&(n.addClass(I),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.headerId),this.setAria("label",c.default.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass(x,this.option("showColumnLines"));return"header"===e.rowType&&(t.addClass(w),this._isLegacyKeyboardNavigation()||(0,g.registerKeyboardAction)("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t},_handleActionKeyDown:function(e){var t=e.event,n=(0,a.default)(t.target);if(this._lastActionElement=t.target,n.is(O)){var i=this.getController("headerFilter"),o=n.closest("td"),r=this.getColumnIndexByElement(o);r>=0&&i.showHeaderFilterMenu(r,!1)}else{var s=n.closest(y);this._processHeaderAction(t,s)}t.preventDefault()},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(m)).toggleClass(e.addWidgetPrefix(v),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(P),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e,t=[],n=this.getRowCount();if(this.option("showColumnHeaders"))for(e=0;e<n;e++)t.push({rowType:"header",rowIndex:e});return t},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping?void(this._isGroupingChanged=!0):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+S).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(S).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(_))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+S+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+w);return t&&t.toArray().reduce(function(e,t){return e+(0,a.default)(t).height()},0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,i,o,r,s=this,l=s._columnsController,u=s.getRowCount();if(s.option("showColumnHeaders")){if(u>1&&(!(0,h.isDefined)(e)||(0,h.isDefined)(t)))return i=[],r=(0,h.isDefined)(t)?l.getChildrenByBandColumn(t,!0):l.getVisibleColumns(),(0,p.each)(r,function(t,a){n=(0,h.isDefined)(e)?e:l.getRowIndex(a.index),o=s._getCellElement(n,l.getVisibleIndex(a.index,n)),o&&i.push(o.get(0))}),(0,a.default)(i);if(!e||e<u)return s.getCellElements(e||0)}},getColumnIndexByElement:function(e){var t=this.getCellIndex(e),n=e.closest(".dx-row"),i=n[0].rowIndex,o=this.getColumns(i)[t];return o?o.index:-1},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o,a=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(0===a?0:null),s=0,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<r.length;i++)l(r[i])&&s++;if(s<=1)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++)if(o=n[i],o&&o.allowDragging(e,t))return!0;return!1},getBoundingRect:function(){var e,t=this,n=t.getColumnElements();return n&&n.length?(e=t._getTableElement().offset(),{top:e.top}):null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){var t=this;switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":t._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t,n,i=this,o=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)&&(n=i.option("sorting"),n&&"none"!==n.mode&&o&&o.allowSorting))return t=function(e){setTimeout(function(){i._columnsController.changeSortOrder(o.index,e.itemData.value)})},[{text:n.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:b,onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:C,onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:k,onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,r=a.getRowCount(),s=a._columnsController.getColumns(),l=s&&s[e],u=l&&l.isBand&&l.index,d=function(e,n){n.ownerBand===u&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if((0,h.isDefined)(u))for(n=n||0,i=n;i<r;i++)o=a.getCellElements(i),(0,p.each)(a.getColumns(i),d)}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(4),s=n(0),l=n(101),u="dx-column-indicators",d="dx-group-panel-item";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),i=t._getColumnAlignment(e.column.alignment,n),o=(0,s.extend)(!0,{columnAlignment:i},e),r=o.rootElement.hasClass(d),l=t._createIndicatorContainer(o,r),u=(0,a.default)("<span>").addClass(t._getIndicatorClassName(e.name)),c=function(){return n?"left"===i?"right":"left":i};return o.container=l,o.indicator=u,t._renderIndicator(o),l[!r&&e.showColumnLines||"left"!==c()?"prependTo":"appendTo"](e.rootElement),u},_getIndicatorClassName:r.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:(0,l.getDefaultAlignment)(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),i="left"===e.columnAlignment?"right":"left";return n.length||(n=(0,a.default)("<div>").addClass(u)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?i:null)},_getIndicatorContainer:function(e){return e&&e.find("."+u)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i,o=this,a=o.getColumns(),r=o.getColumnElements();if(r&&a.length===r.length)for(i=0;i<a.length;i++)n=r.eq(i),o._updateIndicator(n,a[i],e),t=n.parent().data("options"),t&&t.cells&&(t.cells[n.index()].column=a[i])},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")
})}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(26),s=i(r),l=n(89),u=n(18),d=i(u),c=n(4),h=n(1),p=n(3),f=i(p),g=n(101),_=n(0),m=n(14),v=n(28),y=i(v),w=n(47),x=n(19),b=i(x),C=n(40),k=i(C),I=n(36),S=n(33),D=i(S),T=n(57),E=i(T),O=n(51),A=i(O),P=n(32),B=i(P),M=n(10),F=i(M),R=n(6),V=n(92),H=i(V),L=n(46),z=n(170),$=i(z),N=["filterValues","filterType","fixed","fixedPosition"],W=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(N),j={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},q="dx-command-expand",G=Number.MAX_SAFE_INTEGER||9007199254740991,K="groupExpand",U=/columns\[(\d+)\]\.?/gi,Y=1;e.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:F.default.format("dxDataGrid-trueText"),falseText:F.default.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:k.default.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},i="group",o="columnChooser",r=function(e){e.filterOperations=e.defaultFilterOperations},u=function(t,n,i,o){var a,s={};if(n){(0,h.isString)(n)&&(n={dataField:n});var l={};return n.command?l=(0,w.deepExtendArraySafe)(s,n):(s=t.getCommonSettings(n),i&&i.name&&i.dataField&&(n=(0,_.extend)({},n,{dataField:i.dataField})),a=t._createCalculatedColumnOptions(n,o),n.dataField&&!n.type&&(l={headerId:"dx-col-"+Y++}),l=(0,w.deepExtendArraySafe)(l,e),(0,w.deepExtendArraySafe)(l,s),(0,w.deepExtendArraySafe)(l,a),(0,w.deepExtendArraySafe)(l,n),(0,w.deepExtendArraySafe)(l,{selector:null})),n.filterOperations===n.defaultFilterOperations&&r(l),l}},p=function e(t,n,i){var o=[];return n&&f.default.each(n,function(n,a){var r=t._columnsUserState&&ne(a,t._columnsUserState[n])&&t._columnsUserState[n],s=u(t,a,r,i);s&&(i&&(s.ownerBand=i),o.push(s),s.columns&&(o=o.concat(e(t,s.columns,s)),delete s.columns,s.hasColumns=!0))}),o},v=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),e=i.index,i=t[e];return n},x=function e(t,n,i){var o,a=[],r=n[t];if(r)for(var s=0;s<r.length;s++)o=r[s],(0,h.isDefined)(o.groupIndex)&&!o.showWhenGrouped||(a.push(o),i&&o.isBand&&(a=a.concat(e(o.index,n,i))));return a},C=function(e,t){var n,i,o=e.getBandColumnsCache(),a=function(e){var t=n?n.index:void 0;return e.ownerBand===t};if(o.isPlain)n=e._columns[t[0]];else{i=e._columns.filter(a);for(var r=0;r<t.length;r++)n=i[t[r]],n&&(i=e._columns.filter(a))}return n},k=function(e,t){var n,i=[],o=e.getBandColumnsCache(),a=function(e){return e.ownerBand===t.ownerBand};if(o.isPlain){var r=e._columns.indexOf(t);r>=0&&(i=["columns["+r+"]"])}else for(n=e._columns.filter(a);n.length&&n.indexOf(t)!==-1;)i.unshift("columns["+n.indexOf(t)+"]"),t=o.columnParentByIndex[t.index],n=t?e._columns.filter(a):[];return i.join(".")},S=function e(t,n){var i=0,o=t.getChildrenByBandColumn(n,!0);return f.default.each(o,function(n,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),i+=o.colspan||1):i+=1}),i},T=function(e,t,n){var i,o,a,r=e.getRowCount();for(i=0;i<t.length;i++)o=t[i],(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||S(e,o.index)),o.isBand&&o.colspan||(a=r-(o.command||(0,h.isDefined)(o.groupIndex)?0:v(o.index,n.columnParentByIndex).length),a>1&&(o.rowspan=a)))},O=function(e){var t=(0,h.type)(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},P=function(e,t){switch(e){case"date":case"datetime":return E.default.getDateSerializationFormat(t);case"number":if((0,h.isString)(t))return"string";if((0,h.isNumeric)(t))return null}},M=function(e,t){e.deserializeValue||((0,I.isDateType)(t)&&(e.deserializeValue=function(e){return E.default.deserializeDate(e)},e.serializeValue=function(e){return(0,h.isString)(e)?e:E.default.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:(0,h.isDefined)(e)&&"string"===this.serializationFormat?e.toString():e}))},F=function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return(0,g.getDefaultAlignment)(t)}},V=function(e){if("boolean"===e)return function(e){return e.value===!0?this.trueText||"true":e.value===!1?this.falseText||"false":e.valueText||""}},z=function(e,t){var n,i,o=e._getFirstItems(t),a={},r=[];for(i=0;i<o.length;i++)if(o[i])for(n in o[i])(0,h.isFunction)(o[i][n])&&!(0,l.isWrapped)(o[i][n])||(a[n]=!0);for(n in a)if(0!==n.indexOf("__")){var s=u(e,n);r.push(s)}return r},X=function(e){f.default.each(e._columns,function(e,t){t.index=e}),f.default.each(e._columns,function(e,t){(0,h.isObject)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),f.default.each(e._commandColumns,function(e,t){t.index=-(e+1)})},Z=function(e,t){(0,m.normalizeIndexes)(e._columns,"groupIndex",t,function(e){var t=e.grouped;return delete e.grouped,t})},Q=function(e,t){f.default.each(e._columns,function(e,t){(0,h.isDefined)(t.sortIndex)&&!he(t.sortOrder)&&delete t.sortIndex}),(0,m.normalizeIndexes)(e._columns,"sortIndex",t,function(e){return!(0,h.isDefined)(e.groupIndex)&&he(e.sortOrder)})},J=function(e,t){var n,i,o,a,r,s={},l=[],u=e.getBandColumnsCache(),d=e._columns.filter(function(e){return!e.command});for(n=0;n<d.length;n++)o=d[n],r=v(n,u.columnParentByIndex),r.length?(a=r[r.length-1].index,s[a]=s[a]||[],s[a].push(o)):l.push(o);for(i in s)(0,m.normalizeIndexes)(s[i],"visibleIndex",t);(0,m.normalizeIndexes)(l,"visibleIndex",t)},ee=function(e,t,n){var a,r=(0,h.isObject)(t)?t.rowIndex:null,s=n===i?e.getGroupColumns():n===o?e.getChooserColumns():e.getVisibleColumns(r);return t=(0,h.isObject)(t)?t.columnIndex:t,a=s[t],a&&a.type===K&&(a=e._columns.filter(function(e){return a.type===e.type})[0]||a),a&&(0,h.isDefined)(a.index)?a.index:-1},te=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n},ne=function(e,t){return e&&t&&t.name===e.name&&(t.dataField===e.dataField||e.name)},ie=function(e){function t(e,t){var n;if(t)for(var i=0;i<W.length;i++)n=W[i],(0,m.inArray)(n,l)>=0||("dataType"===n?e[n]=e[n]||t[n]:(0,m.inArray)(n,N)>=0?n in t&&(e[n]=t[n]):("selectedFilterOperation"===n&&t[n]&&(e.defaultSelectedFilterOperation=e[n]||null),e[n]=t[n]))}function n(e,t){for(var n=t.name||t.dataField,i=c[n]||0,o=0;o<e.length;o++)if(ne(t,e[o])){if(!i)return c[n]=c[n]||0,c[n]++,o;i--}return-1}var i,o,a,r,s=e._columnsUserState,l=e._ignoreColumnOptionNames||[],d=e._columns,c={},f=[],g=!0,_=[];if(s){for(r=0;r<d.length;r++)a=n(s,d[r]),g=g&&a>=0,_.push(a);for(r=0;r<d.length;r++)i=d[r],a=_[r],(e._hasUserState||g)&&t(i,s[a]),a>=0&&(0,h.isDefined)(s[a].initialIndex)?f[a]=i:f.push(i);var v=!1;for(r=0;r<s.length;r++)o=s[r],o.added&&n(d,o)<0&&(i=u(e,o.added),t(i,o),f.push(i),o.added.columns&&(v=!0));v&&(X(e),f=p(e,f)),re(e,f)}},oe=function(e,t){X(e),Z(e,t),Q(e,t),Ie(e),J(e,t)},ae=function(e){e.resetColumnsCache()},re=function(e,t){e._columns=t,ae(e),e.updateColumnDataTypes()},se=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=n||"all",n=n.split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var r=o.optionNames;n&&!r[n]&&(r[n]=!0,r.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,ae(e)},le=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges,i=["dataField","lookup","dataType","columns"],o=function(e){return e&&i.some(function(t){return e[t]})};e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t((0,_.extend)({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,o(n.optionNames)?e.reinit():e.columnsChanged.fire(n))},ue=function(e,t,n){var i=n>=0;t>=0?i||(e.lastSortOrder=e.sortOrder):e.sortOrder=e.lastSortOrder},de=function(e,t){var n=t.value,i=t.optionName,o=t.prevValue,a=t.fullOptionName;j[i]||e._skipProcessingColumnsChange||(e._skipProcessingColumnsChange=!0,e.component._notifyOptionChanged(a+"."+i,n,o),e._skipProcessingColumnsChange=!1)},ce=function(e,t,i,o,a){var r,s,l,u,c,p,f=d.default.compileGetter(i),g=t.index;return 3===arguments.length?f(t,{functionsAsIs:!0}):(r=f(t,{functionsAsIs:!0}),void(r!==o&&("groupIndex"===i||"calculateGroupValue"===i?(u="grouping",ue(t,o,r)):u="sortIndex"===i||"sortOrder"===i||"calculateSortValue"===i?"sorting":"columns",s=d.default.compileSetter(i),s(t,o,{functionsAsIs:!0}),c=k(e,t),n[i]&&(oe(e,t),o=f(t)),c&&de(e,{fullOptionName:c,optionName:i,value:o,prevValue:r}),(0,h.isDefined)(r)||(0,h.isDefined)(o)||0===i.indexOf("buffer")||(a=!0),a?ae(e):((0,m.inArray)(i,W)<0&&"visibleWidth"!==i&&(l=e.option("columns"),p=e.getColumnByPath(c,l),(0,h.isString)(p)&&(p=l[g]={dataField:p}),p&&ne(p,t)&&s(p,o,{functionsAsIs:!0})),se(e,u,i,g)))))},he=function(e){return"asc"===e||"desc"===e},pe=function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)},fe=function(e,t){var n,i,o=this.dataField.split("."),a=o.length-1;for(this.serializeValue&&(t=this.serializeValue(t)),i=0;i<a;i++)n=o[i],e=e[n]=e[n]||{};e[o[a]]=t},ge=function e(t,n,i){var o=[];return n=n||0,t[n]&&f.default.each(t[n],function(a,r){(r.ownerBand===i||(0,h.isDefined)(r.groupIndex))&&(r.isBand&&r.colspan?o.push.apply(o,e(t,n+1,r.index)):(!r.command||n<1)&&o.push(r))}),o},_e=function(e){var t=1,n=e.getBandColumnsCache(),i=n.columnParentByIndex;return e._columns.forEach(function(e){var n=v(e.index,i),o=n.filter(function(e){return!e.visible});e.visible&&!o.length&&(t=Math.max(t,n.length+1))}),t},me=function(e,t){var n=e.option("rtlEnabled");return t.command&&!be(e,t)||!t.fixedPosition?n?"right":"left":t.fixedPosition},ve=function(e,t,n,i){var o,a=this.getRowCount(),r=e[i]&&e[i].rowspan,s=t.filter(function(e){return e.type===n});return e.forEach(function(t,i){t.type===n&&(o=i,r=e[i+1]?e[i+1].rowspan:a)}),r>1&&(s=f.default.map(s,function(e){return(0,_.extend)({},e,{rowspan:r})})),s.unshift.apply(s,(0,h.isDefined)(o)?[o,1]:[i,0]),e.splice.apply(e,s),r||1},ye=function(e){var t;for(t=0;e>1;t++)e/=10;return t},we=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},xe=function(e,t,n,i){var o,a,r,s,l=t.slice().map(function(e){return(0,_.extend)({},e)}),u=e._isColumnFixing(),d=n.slice().map(function(e){return(0,_.extend)({fixed:u},e)}),c=function(e){return n.reduce(function(t,n,o){var a=i&&e.type===K?"expand":e.type;return n.type===a||n.command===e.command?o:t},-1)},h=function(e){return e.command!==n[s].command};for(o=0;o<t.length;o++)a=t[o],s=a&&(a.type||a.command)?c(a):-1,s>=0&&(i?(l[o]=(0,_.extend)({fixed:u},n[s],a),a.type!==K&&(d=d.filter(h))):(r={visibleIndex:a.visibleIndex,index:a.index,headerId:a.headerId,allowFixing:0===a.groupIndex,allowReordering:0===a.groupIndex,groupIndex:a.groupIndex},l[o]=(0,_.extend)({},a,n[s],a.type===K&&r)));return t.length&&i&&d.length&&(l=l.concat(d)),l},be=function(e,t){return!!e._columns.filter(function(e){return e.type===t.type}).length},Ce=function(e,t){return(0,h.isDefined)(t.fixed)||!t.type?t.fixed:e._isColumnFixing()},ke=function(e){e.forEach(function(t){(0,h.isDefined)(t.ownerBand)&&(t.ownerBand=e[t.ownerBand])})},Ie=function(e){return e._bandColumnsCache=void 0};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:q,allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[],i=function e(t,n){var i,o;if(!t||!n)return t;for(i=0;i<t.length;i++)if(o=e(t[i].items||t[i].collapsedItems,n-1),o&&o.length)return o};return e&&e.items().length>0&&(t=(0,I.normalizeSortingInfo)(e.group()).length,n=i(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&le(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(re(e,t?p(e,t):[]),ie(e)):re(e,e._columnsUserState?p(e,e._columnsUserState):e._columns),pe(e),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):oe(e)},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=this,o=[];return e.replace(U,function(e,t){return o.push(parseInt(t)),""}),o.length&&(n=t?o.reduce(function(e,t){return e&&e.columns&&e.columns[t]},{columns:t}):C(i,o)),n},optionChanged:function(e){var t=void 0;switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"dataSource":e.value===e.previousValue||this.option("columns")||Array.isArray(e.value)&&Array.isArray(e.previousValue)||(this._columns=[]);break;case"columns":t=this._skipProcessingColumnsChange,e.handled=!0,this._skipProcessingColumnsChange||(e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(e),t=!0)),t&&this._updateRequireResize(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0;var n="columnWidth"===e.fullName&&["width"],i=e.fullName&&0===e.fullName.indexOf("editing.popup"),o=e.fullName&&0===e.fullName.indexOf("editing.form");i||o||this.reinit(n);break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(U,"");n&&(i?t[i]=e.value:t=e.value,this._skipProcessingColumnsChange=!0,this.columnOption(n.index,t),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(U,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(e,t){var n=this,i=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(i){if(!n._isColumnsFromOptions){var o=z(n,e);o.length&&(re(n,o),n._dataSourceColumnsCount=n._columns.length,ie(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(i&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return se(n,"columns"),le(n),(new R.Deferred).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,Ie(e)},reinit:function(e){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=e||null,this.init(),e&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(e){var t=(!e||!e.type)&&this.option("commonColumnSettings")||{},n=this.option("grouping")||{},i=this.option("groupPanel")||{};return(0,_.extend)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:n.autoExpandAll,allowCollapsing:n.allowCollapsing,allowGrouping:i.allowColumnDragging&&i.visible||n.contextMenuEnabled},t)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t,n=this._columns;if(!n.length)return!1;for(t=0;t<n.length;t++)if((n[t].dataField||n[t].calculateCellValue!==n[t].defaultCalculateCellValue)&&(!n[t].dataType||e&&n[t].deserializeValue&&void 0===n[t].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(e){return e.isBand})},getGroupColumns:function(){var e=[];return f.default.each(this._columns,function(){var t=this;(0,h.isDefined)(t.groupIndex)&&(e[t.groupIndex]=t)}),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=(0,h.isDefined)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,h.isDefined)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter(function(e){return(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)}).map(function(e){var t=(0,_.extend)(!0,{},e);return(0,h.isDefined)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t})},_getFixedColumnsCore:function(){var e,t,n,i,o,a,r,s,l=this,u=[],d=l.getRowCount(),c=l._isColumnFixing(),p={command:"transparent"},f=0;if(c)for(e=0;e<=d;e++){for(o=0,r=null,a=null,s=l.getVisibleColumns(e,!0),t=0;t<s.length;t++)i=s[t-1],n=s[t],n.fixed?i&&i.fixed&&me(l,i)!==me(l,n)?(0,h.isDefined)(a)||(a=t):r=n.fixedPosition:(0===e&&(n.isBand&&n.colspan?f+=n.colspan:f++),o++,(0,h.isDefined)(a)||(a=t));if(0===e&&(0===o||o>=s.length))return[];(0,h.isDefined)(a)||(a="right"===r?0:s.length),u[e]=s.slice(0),p.colspan||(p.colspan=f),u[e].splice(a,o,p)}return u},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&f.default.each(this._columns,function(t,n){if(n.fixed)return e=!0,!1}),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore(),n=t.filter(function(e){return 0===e.groupIndex})[0],i=n&&n.fixed,o=this._isColumnFixing();return t.length&&(e=this.columnOption("command:expand")),t=f.default.map(t,function(t){return(0,_.extend)({},t,{visibleWidth:null,minWidth:null,cellTemplate:(0,h.isDefined)(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null,fixed:!(!(0,h.isDefined)(t.groupIndex)||!i)||o},e,{index:t.index,type:t.type||K})})},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={},i=!0;e.forEach(function(o){var a=o.ownerBand,r=e[a];o.hasColumns&&(i=!1),o.colspan&&(o.colspan=void 0),o.rowspan&&(o.rowspan=void 0),r?n[o.index]=r:a=-1,t[a]=t[a]||[],t[a].push(o)}),this._bandColumnsCache={isPlain:i,columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n,i=this,o=[],a=0,r=0,s=i.getRowCount(),l=[],u=[],d=0,c=i.option("rtlEnabled"),p=i.getBandColumnsCache(),g=xe(i,i.getExpandColumns(),i._columns),_=xe(i,i._columns,i._commandColumns,!0),m=ye(_.length);for(T(i,_,p),e=0;e<s;e++)o[e]=[],u[e]=[{}],l[e]=[{},{},{}];return f.default.each(_,function(){var t,o,a=this,r=a.visibleIndex,s=v(a.index,p.columnParentByIndex),f=i._isColumnVisible(a);if(f&&(!(0,h.isDefined)(a.groupIndex)||a.showWhenGrouped)){if(t=s.length,r<0?(r=-r,o=u[t]):(a.fixed=s.length?s[0].fixed:a.fixed,a.fixedPosition=s.length?s[0].fixedPosition:a.fixedPosition,a.fixed?(n="right"===a.fixedPosition,!c||a.command&&!be(i,a)||(n=!n),o=n?l[t][2]:l[t][0]):o=l[t][1]),s.length)for(r=we(r,m),e=s.length-1;e>=0;e--)r=we(s[e].visibleIndex,m)+r;o[r]=o[r]||[],o[r].push(a),d++}}),f.default.each(o,function(e){(0,w.orderEach)(u[e],function(t,n){o[e].unshift.apply(o[e],n)}),t=o[e].length,f.default.each(l[e],function(t,n){(0,w.orderEach)(n,function(t,n){o[e].push.apply(o[e],n)})}),r<e+1&&(r+=ve.call(i,o[e],g,"detailExpand",t)),a<e+1&&(a+=ve.call(i,o[e],g,K,t))}),o.push(ge(o)),!d&&i._columns.length&&o[s].push({command:"empty"}),o},getInvisibleColumns:function(e,t){var n,i=this,o=[];return e=e||i._columns,f.default.each(e,function(e,a){if(a.ownerBand===t)return a.isBand?(n=a.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(a.index),a.index):i.getChildrenByBandColumn(a.index),void(n.length&&(o.push(a),o=o.concat(n)))):void(a.visible||o.push(a))}),o},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns();return(0,c.grep)(t,function(e){return e.showInColumnChooser})},allowMoveColumn:function(e,t,n,a){var r=this,s=ee(r,e,n),l=r._columns[s];return!(!l||!(l.allowReordering||l.allowGrouping||l.allowHiding))&&(n===a?n!==o&&(e=(0,h.isObject)(e)?e.columnIndex:e,t=(0,h.isObject)(t)?t.columnIndex:t,e!==t&&e+1!==t):n===i&&a!==o||a===i?l&&l.allowGrouping:n!==o&&a!==o||l&&l.allowHiding)},moveColumn:function(e,t,n,a){var r,s,l,u=this,d={},c=ee(u,e,n),p=ee(u,t,a);if(c>=0){if(l=u._columns[c],t=(0,h.isObject)(t)?t.columnIndex:t,s=p>=0?u._columns[p].groupIndex:-1,(0,h.isDefined)(l.groupIndex)&&n===i&&(s>l.groupIndex&&s--,a!==i?d.groupIndex=void 0:(r=l.groupIndex,delete l.groupIndex,Z(u))),a===i)d.groupIndex=te(u,l,s),l.groupIndex=r;else if(t>=0){var f=u._columns[p];f&&l.ownerBand===f.ownerBand?Ce(u,l)^Ce(u,f)?d.visibleIndex=G:d.visibleIndex=f.visibleIndex:d.visibleIndex=G}var g=a!==o;l.visible!==g&&(d.visible=g),u.columnOption(l.index,d)}},changeSortOrder:function(e,t){var n=this,i={},o=n.option("sorting"),a=o&&o.mode,r="single"===a||!t,s="single"===a||"multiple"===a,l=n._columns[e],u=function(e){if("ctrl"===t){if(!("sortOrder"in e&&"sortIndex"in e))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else(0,h.isDefined)(e.groupIndex)||(0,h.isDefined)(e.sortIndex)?i.sortOrder="desc"===e.sortOrder?"asc":"desc":i.sortOrder="asc";return!0};s&&l&&l.allowSorting&&(r&&!(0,h.isDefined)(l.groupIndex)&&f.default.each(n._columns,function(t){t!==e&&this.sortOrder&&!(0,h.isDefined)(this.groupIndex)&&(delete this.sortOrder,delete this.sortIndex)}),he(t)?l.sortOrder!==t&&(i.sortOrder=t):"none"===t?l.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):u(l)),n.columnOption(l.index,i)},getSortDataSourceParameters:function(e){var t=this,n=[],i=[];return f.default.each(t._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,h.isDefined)(this.sortIndex)&&!(0,h.isDefined)(this.groupIndex)&&(n[this.sortIndex]=this)}),f.default.each(n,function(){var t=this&&this.sortOrder;if(he(t)){var n={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(n.compare=this.sortingMethod.bind(this)),i.push(n)}}),i.length>0?i:null},getGroupDataSourceParameters:function(e){var t=[];return f.default.each(this.getGroupColumns(),function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}}),t.length>0?t:null},refresh:function(e){var t=[];return f.default.each(this._columns,function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}}),R.when.apply(a.default,t).done(ae.bind(null,this))},_updateColumnOptions:function(e){e.selector=e.selector||function(t){return e.calculateCellValue(t)},f.default.each(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(t,n){var i=e[n];(0,h.isFunction)(i)&&!i.originalCallback&&(e[n]=function(t){return i.call(e,t)},e[n].originalCallback=i)}),(0,h.isString)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=d.default.compileGetter(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),M(e,e.dataType);var n=e.lookup;n&&M(n,n.dataType);var i=n?n.dataType:e.dataType;i&&(e.alignment=e.alignment||F(i,this.option("rtlEnabled")),e.format=e.format||(0,I.getFormatByDataType)(i),e.customizeText=e.customizeText||V(i),e.defaultFilterOperations=e.defaultFilterOperations||!n&&t[i]||[],(0,h.isDefined)(e.filterOperations)||r(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,h.isDefined)(e.showEditorAlways)?e.showEditorAlways:"boolean"===i&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),i=t._getFirstItems(e),o=!1;return f.default.each(t._columns,function(e,a){var r,s,l,u,d,c=a.lookup;if((0,I.isDateType)(a.dataType)&&void 0===a.serializationFormat&&(a.serializationFormat=n),c&&(0,I.isDateType)(c.dataType)&&void 0===a.serializationFormat&&(c.serializationFormat=n),a.calculateCellValue&&i.length){if(!a.dataType||c&&!c.dataType){for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r]),a.dataType||(d=O(s),l=l||d,l&&d&&l!==d&&(l="string")),c&&!c.dataType&&(d=O((0,I.getDisplayValue)(a,s,i[r])),u=u||d,u&&d&&u!==d&&(u="string"));(l||u)&&(l&&(a.dataType=l),c&&u&&(c.dataType=u),o=!0)}if(void 0===a.serializationFormat||c&&void 0===c.serializationFormat)for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r],!0),void 0===a.serializationFormat&&(a.serializationFormat=P(a.dataType,s)),c&&void 0===c.serializationFormat&&(c.serializationFormat=P(c.dataType,c.calculateCellValue(s,!0)))}t._updateColumnOptions(a)}),o},_customizeColumns:function(e){var t,n=this,i=n.option("customizeColumns");i&&(t=e.some(function(e){return(0,h.isObject)(e.ownerBand)}),t&&oe(n),i(e),re(n,p(n,e)))},_checkAsyncValidationRules:function(){var e=this.option("editing.mode");if("form"!==e&&"popup"!==e){var t=this._columns.some(function(e){return(e.validationRules||[]).some(function(e){return"async"===e.type})});t&&b.default.log("E1057",this.component.NAME,e)}},updateColumns:function(e,t){var n,i,o=this;if(t||o.updateSortingGrouping(e),!e||e.isLoaded()){n=e?e.sort()||[]:o.getSortDataSourceParameters(),i=e?e.group()||[]:o.getGroupDataSourceParameters(),o._customizeColumns(o._columns),o._checkAsyncValidationRules(),oe(o);var a=o._columns;return(0,R.when)(o.refresh(!0)).always(function(){o._columns===a&&(o._updateChanges(e,{sorting:n,grouping:i}),le(o))})}},_updateChanges:function(e,t){var n=this;e&&(n.updateColumnDataTypes(e),n._dataSourceApplied=!0),(0,I.equalSortParameters)(t.sorting,n.getSortDataSourceParameters())||se(n,"sorting"),(0,I.equalSortParameters)(t.grouping,n.getGroupDataSourceParameters())||se(n,"grouping"),se(n,"columns")},updateSortingGrouping:function(e,t){var n,i,o,a,r,s=this,l=function(e,t,n){var i,o,a;f.default.each(e,function(e,r){if(delete r[n],t)for(i=0;i<t.length;i++)if(o=t[i].selector,a=t[i].isExpanded,o===r.dataField||o===r.name||o===r.selector||o===r.calculateCellValue||o===r.calculateGroupValue){r.sortOrder=r.sortOrder||(t[i].desc?"desc":"asc"),void 0!==a&&(r.autoExpandGroup=a),r[n]=i;break}})};e&&(n=(0,I.normalizeSortingInfo)(e.sort()),i=(0,I.normalizeSortingInfo)(e.group()),o=s.getGroupDataSourceParameters(),a=s.getSortDataSourceParameters(),s._columns.length||(f.default.each(i,function(e,t){s._columns.push(t.selector)}),f.default.each(n,function(e,t){s._columns.push(t.selector)}),re(s,p(s,s._columns))),!t&&(o||s._hasUserState)||(0,I.equalSortParameters)(i,o)||(l(s._columns,i,"groupIndex"),t&&(se(s,"grouping"),r=!0)),!t&&(a||s._hasUserState)||(0,I.equalSortParameters)(n,a)||(l(s._columns,n,"sortIndex"),t&&(se(s,"sorting"),r=!0)),r&&le(s))},updateFilter:function(e,t,n,i){var o=this;if(!Array.isArray(e))return e;var a,r;for(e=(0,_.extend)([],e),n=void 0!==e.columnIndex?e.columnIndex:n,i=void 0!==e.filterValue?e.filterValue:i,(0,h.isString)(e[0])?(a=o.columnOption(e[0]),t?(0,y.default)().forceIsoDateParsing&&a&&a.serializeValue&&e.length>1&&(e[e.length-1]=a.serializeValue(e[e.length-1],"filter")):a&&a.selector&&(e[0]=a.selector,e[0].columnIndex=a.index)):(0,h.isFunction)(e[0])&&(e[0].columnIndex=n,e[0].filterValue=i),r=0;r<e.length;r++)e[r]=o.updateFilter(e[r],t,n,i);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,n,i){var o,a,r=this,s=(0,h.isString)(e)&&e.substr(0,e.indexOf(":")),l=r._columns.concat(r._commandColumns);if(void 0!==e){for(s&&(e=e.substr(s.length+1)),o=0;o<l.length;o++)if(s){if(""+l[o][s]===e){a=l[o];break}}else if(l[o].index===e||l[o].name===e||l[o].dataField===e||l[o].caption===e){a=l[o];break}if(a){if(1===arguments.length)return(0,_.extend)({},a);if((0,h.isString)(t)){if(2===arguments.length)return ce(r,a,t);ce(r,a,t,n,i)}else(0,h.isObject)(t)&&f.default.each(t,function(e,t){ce(r,a,e,t,i)});le(r)}}},clearSorting:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"sortOrder",void 0);t.endUpdate()},clearGrouping:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"groupIndex",void 0);t.endUpdate()},getVisibleIndex:function(e,t){var n,i=this.getVisibleColumns(t);for(n=i.length-1;n>=0;n--)if(i[n].index===e)return n;return-1},getVisibleColumnIndex:function(e,t){var n=this.columnOption(e,"index");return this.getVisibleIndex(n,t)},addColumn:function(e){var t=this,n=u(t,e),i=t._columns.length;t._columns.push(n),n.isBand&&(t._columns=p(t,t._columns),n=t._columns[i]),n.added=e,oe(t,n),t.updateColumns(t._dataSource)},deleteColumn:function(e){var t,n=this,i=n.columnOption(e);i&&i.index>=0&&(ke(n._columns),n._columns.splice(i.index,1),i.isBand&&(t=n.getChildrenByBandColumn(i.index).map(function(e){return e.index}),n._columns=n._columns.filter(function(e){return t.indexOf(e.index)<0})),oe(n),n.updateColumns(n._dataSource))},addCommandColumn:function(e){var t=this._commandColumns.filter(function(t){return t.command===e.command})[0];t||(t=e,this._commandColumns.push(t))},getUserState:function(){function e(e,o){void 0!==n[t][o]&&(i[t][o]=n[t][o])}var t,n=this._columns,i=[];for(t=0;t<n.length;t++)i[t]={},f.default.each(W,e);return i},setUserState:function(e){var t,n=this,i=n._dataSource,o=n.option("stateStoring.ignoreColumnOptionNames");if(!o){o=[],t=n.getCommonSettings(),n.option("columnChooser.enabled")||o.push("visible"),"none"===n.option("sorting.mode")&&o.push("sortIndex","sortOrder"),t.allowGrouping||o.push("groupIndex"),t.allowFixing||o.push("fixed","fixedPosition"),t.allowResizing||o.push("width","visibleWidth");var a=!n.option("filterPanel.visible");!n.option("filterRow.visible")&&a&&o.push("filterValue","selectedFilterOperation"),!n.option("headerFilter.visible")&&a&&o.push("filterValues","filterType")}n._columnsUserState=e,n._ignoreColumnOptionNames=o,n._hasUserState=!!e,se(n,"filtering"),n.init(),i&&(i.sort(n.getSortDataSourceParameters()),i.group(n.getGroupDataSourceParameters()))},_createCalculatedColumnOptions:function(e,t){var n,i={},o=e.dataField;return(Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(i.isBand=!0,o=null),o?((0,h.isString)(o)&&(n=d.default.compileGetter(o),i={caption:D.default.captionize(o),calculateCellValue:function(e,t){var i=n(e);return this.deserializeValue&&!t?this.deserializeValue(i):i},setCellValue:fe,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?(0,h.isString)(e)&&i.format?(n=A.default.parse(e),(0,h.isNumeric)(n)&&(t=n)):(0,h.isDefined)(e)&&(0,h.isNumeric)(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):(0,I.isDateType)(i.dataType)?(n=B.default.parse(e,i.format),n&&(t=n)):t=e,t}}),i.allowFiltering=!0):i.allowFiltering=!!e.calculateFilterExpression,i.calculateFilterExpression=function(){return $.default.defaultCalculateFilterExpression.apply(this,arguments);
},i.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),(0,h.isFunction)(t)&&(t=[t,"=",!0]),t&&(t.columnIndex=this.index,t.filterValue=e),t},o&&(0,h.isString)(o)||(0,_.extend)(!0,i,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(i.allowFixing=!1),e.dataType&&(i.userDataType=e.dataType),!e.selectedFilterOperation||"defaultSelectedFilterOperation"in i||(i.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(i.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){var e,t,n,i;if(this.valueMap={},this.items)for(e=d.default.compileGetter(this.valueExpr),t=d.default.compileGetter(this.displayExpr),i=0;i<this.items.length;i++){n=this.items[i];var o=t(n);this.valueMap[e(n)]=o,this.dataType=this.dataType||O(o)}},update:function(){var e,t=this,n=t.dataSource;if(n)if((0,h.isFunction)(n)&&!(0,l.isWrapped)(n)&&(n=n({})),(0,h.isPlainObject)(n)||n instanceof H.default||Array.isArray(n)){if(t.valueExpr)return e=(0,L.normalizeDataSourceOptions)(n),e.paginate=!1,n=new L.DataSource(e),n.load().done(function(e){t.items=e,t.updateValueMap&&t.updateValueMap()})}else b.default.log("E1016");else t.updateValueMap&&t.updateValueMap()}}),i.resizedCallbacks=(0,s.default)(),e.resized&&i.resizedCallbacks.add(e.resized.bind(e)),f.default.each(i,function(e){var t;(0,h.isFunction)(i[e])&&0!==e.indexOf("default")&&(t="default"+e.charAt(0).toUpperCase()+e.substr(1),i[t]=i[e])}),i},getRowCount:function(){return this._rowCount=this._rowCount||_e(this),this._rowCount},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!(0,h.isDefined)(n.groupIndex))?v(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=this,i=n.getBandColumnsCache(),o=x(e,i.columnChildrenByIndex,!t);return t?o.filter(function(e){return e.visible&&!e.command}).sort(function(e,t){return e.visibleIndex-t.visibleIndex}):o},isParentBandColumn:function(e,t){var n=!1,i=this._columns[e],o=this.getBandColumnsCache(),a=i&&v(e,o.columnParentByIndex);return a&&f.default.each(a,function(e,i){if(i.index===t)return n=!0,!1}),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),i=e>=0&&v(e,n.columnParentByIndex);return i&&f.default.each(i,function(e,n){return t=t&&n.visible}),t},getColumnId:function(e){return e.command&&e.type===K?be(this,e)?"type:"+e.type:"command:"+e.command:e.index}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(26),a=i(o),r=n(24),s=i(r),l=n(4),u=n(1),d=i(u),c=n(3),h=n(0),p=n(71),f=i(p),g=n(138),_=i(g),m=n(6);e.exports=s.default.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=(0,h.extend)({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t){var n={};return t&&(n={sorting:!s.default.equalSortParameters(e.sort,t.sort),grouping:!s.default.equalSortParameters(e.group,t.group,!0),groupExpanding:!s.default.equalSortParameters(e.group,t.group)||t.groupExpand,filtering:!s.default.equalFilterParameters(e.filter,t.filter),pageIndex:e.pageIndex!==t.pageIndex,skip:e.skip!==t.skip,take:e.take!==t.take},n.reload=n.sorting||n.grouping||n.filtering,n.paging=n.pageIndex||n.take),n}function n(e,t){d.default.isDefined(t)?(0,l.executeAsync)(e,t):e()}function i(){return{pages:{}}}function o(e){return e.cachedPagesData.pages[e.pageIndex]}function r(e,t){var n=e.pageIndex;void 0!==n&&(e.cachedPagesData.pages[n]=t)}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedPagesData=i(),n._lastOperationTypes={},n.changed=(0,a.default)(),n.loadingChanged=(0,a.default)(),n.loadError=(0,a.default)(),n.customizeStoreLoadOptions=(0,a.default)(),n.changing=(0,a.default)(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),n._pushHandler=n._handlePush.bind(n),n._changingHandler=n._handleChanging.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._dataLoadingHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),e.on("changing",n._changingHandler),e.store().on("push",n._pushHandler),(0,c.each)(e,function(e,t){!n[e]&&d.default.isFunction(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource,i=n.store();n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._dataLoadingHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),n.off("changing",t._changingHandler),i&&i.off("push",t._pushHandler),e||n.dispose()},refresh:function(e,t,n){var i=this,o=i._dataSource;(t||n.reload)&&(i._currentTotalCount=0,i._isLastPage=!o.paginate(),i._hasLastPage=i._isLastPage)},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedPagesData=i()},_needClearStoreDataCache:function(){var e=this.remoteOperations(),n=t(this._lastLoadOptions||{},{}),i=Object.keys(e).every(function(t){return!n[t]||!e[t]});return!i},push:function(e,t){var n=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&_.default.applyBatch(n,this._cachedStoreData,e),t||this._applyBatch(e)},getDataIndexGetter:function(){var e=this;if(!this._dataIndexGetter){var t=void 0,n=void 0,i=this.store();this._dataIndexGetter=function(o){var a=n&&n!==e._cachedStoreData;if(!t||a){n=e._cachedStoreData||[],t={};for(var r=0;r<n.length;r++)t[(0,l.getKeyHash)(i.keyOf(n[r]))]=r}return t[(0,l.getKeyHash)(i.keyOf(o))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_applyBatch:function(e){var t=this._getKeyInfo(),n=this._dataSource,i=s.default.normalizeSortingInfo(this.group()).length;e=e.filter(function(e){return!n.paginate()||"insert"!==e.type||void 0!==e.index}),_.default.applyBatch(t,this._items,e,i,!0),_.default.applyBatch(t,n.items(),e,i,!0),e.splice(0,e.length)},_handlePush:function(e){this.push(e,!0)},_handleChanging:function(e){this.changing.fire(e),this._applyBatch(e.changes)},_needCleanCacheByOperation:function(e,t){var n=["filtering","sorting","paging"],i=n.indexOf(e),o=i>=0?n.slice(i):[e];return o.some(function(e){return t[e]})},_customizeRemoteOperations:function(e,t,n){var o=this,a=o._cachedStoreData,r=o._cachedPagingData,s=o._cachedPagesData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={filtering:e.remoteOperations.filtering}),t?(a=void 0,r=void 0,s=i()):(n.reload?(r=void 0,s=i()):(n.take||n.groupExpanding)&&(s=i()),(0,c.each)(n,function(t,n){n&&o._needCleanCacheByOperation(t,e.remoteOperations)&&(a=void 0,r=void 0)})),r&&(e.remoteOperations.paging=!1),e.cachedStoreData=a,e.cachedPagingData=r,e.cachedPagesData=s,e.isCustomLoading||(o._cachedStoreData=a,o._cachedPagingData=r,o._cachedPagesData=s)},_handleDataLoading:function(e){var n,i,o=this,a=o._dataSource,r=o._lastLoadOptions;o.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,h.extend)({},this.remoteOperations());var s=!o.isLoaded()&&!o._isRefreshing;if(o.option("integrationOptions.renderedOnServer")&&!o.isLoaded()&&(e.delay=void 0),n=(0,h.extend)({pageIndex:o.pageIndex()},e.storeLoadOptions),i=t(n,r),o._customizeRemoteOperations(e,s,i),!e.isCustomLoading){var l=o._isRefreshing;e.pageIndex=a.pageIndex(),e.lastLoadOptions=n,e.operationTypes=i,o._loadingOperationTypes=i,o._isRefreshing=!0,(0,m.when)(l||o._isRefreshed||o.refresh(e,s,i)).done(function(){o._lastOperationId===e.operationId&&(o._isRefreshed=!0,o.load().always(function(){o._isRefreshed=!1}))}).fail(function(){a.cancel(e.operationId)}).always(function(){o._isRefreshing=!1}),a.cancel(o._lastOperationId),o._lastOperationId=e.operationId,o._isRefreshing&&a.cancel(o._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var n=e.cachedPagesData.extra,i={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:n&&"totalCount"in n||!t.paging};(0,c.each)(e.storeLoadOptions,function(t,n){i[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])}),n&&(e.extra=n),e.data=o(e)||e.cachedStoreData},_handleDataLoaded:function(t){var n=this,i=t.loadOptions,a=t.remoteOperations&&!t.remoteOperations.paging,l=t.cachedPagesData,u=t.storeLoadOptions,c=this.option("cacheEnabled")!==!1&&u,p=c&&!t.isCustomLoading&&l&&(!a||u.group)&&!this.option("legacyRendering"),g=c&&a,_=g&&!t.isCustomLoading;if(!i)return void this._dataSource.cancel(t.operationId);t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions,Object.keys(t.operationTypes).forEach(function(e){n._lastOperationTypes[e]=n._lastOperationTypes[e]||t.operationTypes[e]})),a&&(t.skip=i.skip,t.take=i.take,delete i.skip,delete i.take),i.group&&(i.group=t.group||i.group);var v=s.default.normalizeSortingInfo(u.group||i.group).length;p&&o(t)||(g&&t.cachedPagingData?t.data=e(t.cachedPagingData,v):(_&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,s.default.normalizeSortingInfo(u.group).length)),new f.default(t.data).load(i).done(function(i){t.data=i,_&&(n._cachedPagingData=e(t.data,v))}).fail(function(e){t.data=(new m.Deferred).reject(e)})),i.requireTotalCount&&a&&(t.extra=d.default.isPlainObject(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),t.extra&&t.extra.totalCount>=0&&(u.requireTotalCount===!1||i.requireTotalCount===!1)&&(t.extra.totalCount=-1),this._handleDataLoadedCore(t),p&&(l.extra=l.extra||(0,h.extend)({},t.extra),(0,m.when)(t.data).done(function(n){r(t,e(n,v))}))),t.storeLoadOptions=t.originalStoreLoadOptions},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,o=!1,a=n.itemsCount();n._isLastPage=!a||!n.pageSize()||a<n.pageSize(),n._isLastPage&&(n._hasLastPage=!0),i.totalCount()>=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),n.pageIndex(i.pageIndex()),n.resetPagesCache(),i.load(),o=!0):(t=i.pageIndex()*n.pageSize()+a,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===a&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),o=!0))),o||(n._operationTypes=n._lastOperationTypes,n._lastOperationTypes={},n.component._optionCache={},n.changed.fire(e),n.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always(function(){t._isCustomLoading=!1})},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount(),n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e){var t=this._dataSource,n=new m.Deferred;if(t)return t.store().load(e).done(function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),n.resolve(e,t)}).fail(n.reject),n},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t,i,o,a=this,r=a._dataSource,s=new m.Deferred;return e?(t=r.store(),o=r.loadOptions(),i={storeLoadOptions:e,isCustomLoading:!0},(0,c.each)(t._customLoadOptions()||[],function(e,t){t in i.storeLoadOptions||(i.storeLoadOptions[t]=o[t])}),a._scheduleCustomLoadCallbacks(s),r._scheduleLoadCallbacks(s),a._handleDataLoading(i),n(function(){return r.store()?void(0,m.when)(i.data||a.loadFromStore(i.storeLoadOptions)).done(function(n,o){i.data=n,i.extra=o||{},a._handleDataLoaded(i),e.requireTotalCount&&void 0===i.extra.totalCount&&(i.extra.totalCount=t.totalCount(i.storeLoadOptions)),(0,m.when)(i.data,i.extra.totalCount).done(function(e,t){i.extra.totalCount=t,s.resolve(e,i.extra)}).fail(s.reject)}).fail(s.reject):s.reject("canceled")},a.option("loadingTimeout")),s.fail(function(){a.fireEvent("loadError",arguments)}).promise()):r.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(40),s=i(r),l=n(36),u=i(l),d=n(71),c=i(d),h=n(141),p=i(h),f=n(19),g=i(f),_=n(4),m=n(3),v=n(1),y=i(v),w=n(0),x=n(83),b=i(x),C=n(6),k=n(312);e.exports={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:s.default.Controller.inherit({}).include(b.default).inherit(function(){var e=function(e,t,n){var i=e._dataSource;return i?void 0!==n?i[t]()!==n?("pageSize"===t&&i.pageIndex(0),i[t](n),e._skipProcessingPagingChange=!0,e.option("paging."+t,n),e._skipProcessingPagingChange=!1,i["pageIndex"===t?"load":"reload"]().done(e.pageChanged.fire.bind(e.pageChanged))):(0,C.Deferred)().resolve().promise():i[t]():0},t={init:function(){var e=this;e._items=[],e._columnsController=e.getController("columns"),e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._dataChangedHandler=e._handleDataChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._changingHandler=e._handleChanging.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._repaintChangesOnly=void 0,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add(function(t){return e.executeAction("onDataErrorOccurred",{error:t})}),e._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(e){function t(){e.handled=!0}var n,i=this;if("dataSource"===e.name&&e.name===e.fullName&&(e.value===e.previousValue||i.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue))){if(e.value!==e.previousValue){var o=i.store();o&&(o._array=e.value)}return t(),void i.refresh(i.option("repaintChangesOnly"))}switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":case"remoteOperations":t();break;case"keyExpr":case"dataSource":case"scrolling":t(),i.skipProcessingPagingChange(e.fullName)||i.reset();break;case"paging":n=i.dataSource(),n&&i._setPagingOptions(n)&&n.load().done(i.pageChanged.fire.bind(i.pageChanged)),t();break;case"rtlEnabled":i.reset();break;case"columns":n=i.dataSource(),n&&n.isLoading()&&e.name===e.fullName&&n.load();break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n,i=this,o=i._dataSource,a=i._columnsController;return o&&(void 0===e&&(e=o.filter()),n=i._calculateAdditionalFilter(),n&&(a.isDataSourceApplied()||a.isAllDataTypesDefined())&&(e=u.default.combineFilters([n,e])),e=a.updateFilter(e,t||o.remoteOperations().filtering)),e},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new C.Deferred,this._readyDeferred):(0,C.when)()},_endUpdateCore:function(){var e=this._changes;if(e.length){this._changes=[];var t=e.every(function(e){return e.repaintChangesOnly});this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._isFirstLoading),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping))},_handleColumnsChanged:function(e){var t,n,i,o=this,a=e.changeTypes,r=e.optionNames,s=function e(){o._columnsController.columnsChanged.remove(e),o.updateItems()};if(a.sorting||a.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(a.columns&&((r.filterValues||r.filterValue||r.selectedFilterOperation)&&(t=o._columnsController.columnOption(e.columnIndex,"filterValue"),n=o._columnsController.columnOption(e.columnIndex,"filterValues"),(Array.isArray(n)||void 0===e.columnIndex||y.default.isDefined(t)||!r.selectedFilterOperation||r.filterValue)&&(o._applyFilter(),i=!0)),o._needApplyFilter||u.default.checkChanges(r,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add(s),y.default.isDefined(r.visible))){var l=o._columnsController.columnOption(e.columnIndex);l&&(y.default.isDefined(l.filterValue)||y.default.isDefined(l.filterValues))&&(o._applyFilter(),i=!0)}!i&&a.filtering&&o.reload()},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,o=!1;this._isFirstLoading=!1,n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,C.when)(t._columnsController.applyDataSource(n)).done(function(){t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n=function(){var e=t._calculateAdditionalFilter();return e&&e.length},i=t._needApplyFilter;t._needApplyFilter=!1,i&&!t._isAllDataTypesDefined&&n()?(g.default.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)}).fail(function(){t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},fireError:function(){this.dataErrorOccurred.fire(g.default.Error.apply(g.default,arguments))},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),a="infinite"===o,r="virtual"===o,s=i||r||a,l=!1;return e.requireTotalCount(!a),void 0!==i&&e.paginate()!==s&&(e.paginate(s),l=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),l=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),l=!0),l},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._isFirstLoading=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this,t=e._dataSource,n=new C.Deferred;return(0,C.when)(this._columnsController.refresh(!0)).always(function(){t?t.load().done(n.resolve).fail(n.reject):n.resolve()}),n.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var n=this,i=n.getRowIndexDelta(),o=t.changeType,a=n._columnsController.getVisibleColumns(null,"loadingAll"===o),r=n._items,s="append"===o&&r.length>0?r[r.length-1].dataIndex+1:0,l={visibleColumns:a,dataIndex:s},u=[];return(0,m.each)(e,function(e,t){y.default.isDefined(t)&&(l.rowIndex=e-i,t=n._processItem(t,l),u.push(t))}),u},_processItem:function(e,t){return e=this._generateDataItem(e,t),e=this._processDataItem(e,t),e.dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t,n){for(var i,o,a=[],r=0;r<t.length;r++)i=t[r],o=n?void 0:null,i.command||(i.calculateCellValue?o=i.calculateCellValue(e):i.dataField&&(o=e[i.dataField])),a.push(o);return a},_applyChange:function(e){var t=this;"update"===e.changeType?t._applyChangeUpdate(e):t.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?t._applyChangesOnly(e):"refresh"===e.changeType&&t._applyChangeFull(e)},_applyChangeFull:function(e){this._items=e.items.slice(0)},_getRowIndices:function(e){var t=e.rowIndices.slice(0),n=this.getRowIndexDelta();t.sort(function(e,t){return e-t});for(var i=0;i<t.length;i++){var o=t[i];e.allowInvisibleRowIndices&&(o+=n),o<0&&(t.splice(i,1),i--)}return t},_applyChangeUpdate:function(e){var t,n=this,i=e.items,o=n._getRowIndices(e),a=n.getRowIndexDelta(),r=n.option("repaintChangesOnly"),s=-1,l=0;e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var u=function(e,t,n){var i=e&&t&&(0,_.equalByValue)(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};(0,m.each)(o,function(o,d){var c,h,p,f,g,_;if(d+=l+a,s!==d){if(s=d,c=n._items[d],p=n._items[d+1],h=i[d],f=i[d+1],g=u(c,p)||u(h,f),h&&(h.rowIndex=d,e.items.push(h)),c&&h&&u(c,h,g))t="update",n._items[d]=h,c.visible!==h.visible?e.items.splice(-1,1,{visible:h.visible}):r&&!e.isFullUpdate&&(h.cells=c.cells,_=n._getChangedColumnIndices(c,h,d-a));else if(h&&!c||f&&u(c,f,g))t="insert",n._items.splice(d,0,h),l++;else if(c&&!h||p&&u(h,p,g))t="remove",n._items.splice(d,1),l--,s=-1;else{if(!h)return;t="update",n._items[d]=h}e.rowIndices.push(d-a),e.changeTypes.push(t),e.columnIndices.push(_)}})},_isCellChanged:function(e,t,n,i,o){function a(e,t){return!!e.modifiedValues&&void 0!==e.modifiedValues[t]}return JSON.stringify(e.values[i])!==JSON.stringify(t.values[i])||a(e,i)!==a(t,i)},_getChangedColumnIndices:function(e,t,n,i){if(e.rowType===t.rowType&&"group"!==t.rowType&&"groupFooter"!==t.rowType){var o=[];if("detail"!==t.rowType)for(var a=0;a<e.values.length;a++)if(this._isCellChanged(e,t,n,a,i))o.push(a);else{var r=e.cells&&e.cells[a];r&&r.update&&r.update(t)}return e.update&&e.update(t),o}},_applyChangesOnly:function(e){function t(e){if(e)return e.rowType+","+JSON.stringify(e.key)}function n(e,t){if(JSON.stringify(e.values)!==JSON.stringify(t.values))return!1;var n=["modified","isNewRow","removed","isEditing"];return!n.some(function(n){return e[n]!==t[n]})&&(("group"!==e.rowType&&"groupFooter"!==e.rowType||e.isExpanded===t.isExpanded&&JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells))&&(e.cells&&(e.update&&e.update(t),e.cells.forEach(function(e){e&&e.update&&e.update(t)})),!0))}var i=this,o=[],a=[],r=[],s=[],l={},u=this._items.slice();e.items.forEach(function(e,n){var i=t(e);l[i]=n,e.rowIndex=n});var d=(0,k.findChanges)(u,e.items,t,n);return d?(d.forEach(function(e){switch(e.type){case"update":var t=e.index,n=e.data,l=e.oldItem,u=i._getChangedColumnIndices(l,n,t,!0);o.push(t),r.push("update"),s.push(n),i._items[t]=n,n.cells=l.cells,n.oldValues=l.values,a.push(u);break;case"insert":o.push(e.index),r.push("insert"),s.push(e.data),a.push(void 0),i._items.splice(e.index,0,e.data);break;case"remove":o.push(e.index),r.push("remove"),i._items.splice(e.index,1),s.push(e.oldItem),a.push(void 0)}}),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=o,e.columnIndices=a,e.changeTypes=r,e.items=s,u.length&&(e.isLiveUpdate=!0),void this._correctRowIndices(function(e){var n=u[e],i=t(n),o=l[i];return o>=0?o-e:0})):void this._applyChangeFull(e)},_correctRowIndices:_.noop,_updateItemsCore:function(e){var t,n,i=this,o=i._dataSource,a=e.changeType||"refresh";e.changeType=a,o?(t=e.items||o.items(),t=i._beforeProcessItems(t),t=i._processItems(t,e),e.items=t,n=i._items.length===t.length&&i._items,i._applyChange(e),(0,m.each)(i._items,function(e,t){t.rowIndex=e,n&&(t.cells=n[e].cells||[])})):i._items=[]},_handleChanging:function(e){var t=this,n=t.getVisibleRows(),i=t.dataSource();i&&e.changes.forEach(function(e){if("insert"===e.type&&e.index>=0){for(var t,i=0,o=0;o<e.index;o++)t=n[o],!t||"data"!==t.rowType&&"group"!==t.rowType||i++;e.index=i}})},updateItems:function(e,t){e=e||{};var n=this;if(void 0!==n._repaintChangesOnly)e.repaintChangesOnly=n._repaintChangesOnly;else if(e.changes)e.repaintChangesOnly=n.option("repaintChangesOnly");else if(t){var i=n.dataSource().operationTypes();e.repaintChangesOnly=i&&!i.grouping&&!i.filtering&&n.option("repaintChangesOnly"),e.isDataChanged=!0,i&&(i.reload||i.paging||i.groupExpanding)&&(e.needUpdateDimensions=!0)}return n._updateLockCount?void n._changes.push(e):(n._updateItemsCore(e),void(e.cancel||n._fireChanged(e)))},loadingOperationTypes:function(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}},_fireChanged:function(e){var t=this;(0,_.deferRender)(function(){t.changed.fire(e)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function e(t){var n=this._dataSource,e=n&&n.filter();return 0===arguments.length?e:(t=arguments.length>1?Array.prototype.slice.call(arguments,0):t,void(u.default.equalFilterParameters(e,t)||(n&&n.filter(t),this._applyFilter())))},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){var t,i=n.columnCount();for(t=0;t<i;t++)n.columnOption(t,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this,t=function t(){e.changed.remove(t),e.dataSourceChanged.fire()};e.changed.add(t)},_getDataSourceAdapter:_.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter(),i=n.create(this.component);return i.init(e,t),i},isLocalStore:function(e){return e=e||this.store(),e instanceof c.default},isCustomStore:function(e){return e=e||this.store(),e instanceof p.default},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=(0,w.extend)({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),t===!0&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.changing.remove(t._changingHandler),n.cancelAll(),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,t._isAllDataTypesDefined=t._columnsController.isAllDataTypesDefined(),e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler),e.changing.add(t._changingHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=new C.Deferred,i=t._dataSource;if(i)if(e){var o={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(o),(0,C.when)(o.data).done(function(e){e=t._beforeProcessItems(e),n.resolve(t._processItems(e,{changeType:"loadingAll"}),o.extra&&o.extra.summary)}).fail(n.reject)}else if(i.isLoading())n.reject();else{var a=(0,w.extend)({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(a).done(function(e,i){e=t._beforeProcessItems(e),e=t._processItems(e,{changeType:"loadingAll"}),n.resolve(e,i&&i.summary)}).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e){var t=this.items()[e];if(t)return t.key},getRowIndexByKey:function(e){return u.default.getIndexByKey(e,this.items())},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),i=this.getRowIndexByKey(e);if(n)return i>=0&&(t=(new C.Deferred).resolve(this.items()[i].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=new C.Deferred,i=[],o=[];return(0,m.each)(e,function(e,n){i.push(t.byKey(n).done(function(t){o[e]=t}))}),C.when.apply(a.default,i).always(function(){n.resolve(o)}),n},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(e){e===!0?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,n=t.getDataSource(),i=e.changesOnly,o=new C.Deferred,a=function(){t._repaintChangesOnly=!!i};return(0,C.when)(!e.lookup||t._columnsController.refresh()).always(function(){e.load||e.reload?(n&&n.on("customizeLoadResult",a),(0,C.when)(t.reload(e.reload,i)).always(function(){n&&n.off("customizeLoadResult",a),t._repaintChangesOnly=void 0}).done(o.resolve).fail(o.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly
}),o.resolve())}),o.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(e,t){e=Array.isArray(e)?e:[e],(e.length>1||y.default.isDefined(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()}};return u.default.proxyMethod(t,"load"),u.default.proxyMethod(t,"reload"),u.default.proxyMethod(t,"push"),u.default.proxyMethod(t,"itemsCount",0),u.default.proxyMethod(t,"totalItemsCount",0),u.default.proxyMethod(t,"hasKnownLastPage",!0),u.default.proxyMethod(t,"isLoaded",!0),u.default.proxyMethod(t,"totalCount",0),t}())}}},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(20),u=i(l),d=n(1),c=n(0),h=n(347),p=i(h),f=n(10),g=i(f),_=n(8),m="dxDataGridColumnHeadersView",v=(0,c.extend)({},p.default,{_createRow:function(e){var t=this,n=this.callBase(e);return"header"===e.rowType&&s.default.on(n,(0,_.addNamespace)(u.default.name,m),"td",this.createAction(function(e){t._processHeaderAction(e.event,n)})),n},_processHeaderAction:function(e,t){if((0,a.default)(e.currentTarget).parent().get(0)===t.get(0)){var n=this,i=null,o=(0,a.default)(e.currentTarget),r=o.parent().index(),s=-1;[].slice.call(n.getCellElements(r)).some(function(e,t){if(e===o.get(0))return s=t,!0});var l=n._columnsController.getVisibleColumns(r),u=l[s],c=n.getController("editing"),h=n.option("editing.mode"),p=c&&c.isEditing()&&("batch"===h||"cell"===h);!p&&n._isSortableElement((0,a.default)(e.target))&&(!u||(0,d.isDefined)(u.groupIndex)||u.command||(e.shiftKey?i="shift":e.ctrlKey&&(i="ctrl"),setTimeout(function(){n._columnsController.changeSortOrder(u.index,i)})))}},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;return 1===t.length&&t.sorting?void this._updateIndicators("sort"):void this.callBase(e)},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}}),y=(0,c.extend)({},p.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return s.default.on(i,(0,_.addNamespace)(u.default.name,"dxDataGridHeaderPanel"),n.createAction(function(){n._processGroupItemAction(t.index)})),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction:function(e){var t=this;setTimeout(function(){return t.getController("columns").changeSortOrder(e)})},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:g.default.format("dxDataGrid-sortingAscendingText"),descendingText:g.default.format("dxDataGrid-sortingDescendingText"),clearText:g.default.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}},extenders:{views:{columnHeadersView:v,headerPanel:y}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),a=n(2),r=i(a),s="dx-sort",l="dx-sort-none",u="dx-sort-up",d="dx-sort-down",c="dx-sort-index",h="dx-sort-index-icon",p="action";e.exports={_applyColumnState:function(e){var t,n,i=this,a=i.option("sorting.mode"),l=e.rootElement,f=e.column,g=i._getIndicatorContainer(l);if("sort"===e.name){if(l.find("."+s).remove(),!g.children().length&&g.remove(),("single"===a||"multiple"===a)&&f.allowSorting||(0,o.isDefined)(f.sortOrder)){t="asc"===f.sortOrder?"ascending":"descending",n=i.callBase(e).toggleClass(u,"asc"===f.sortOrder).toggleClass(d,"desc"===f.sortOrder);var _=i.getController&&!!i.getController("columns").columnOption("sortIndex:1");_&&i.option("sorting.showSortIndexes")&&f.sortIndex>=0&&((0,r.default)("<span>").addClass(h).text(f.sortIndex+1).appendTo(n),n.addClass(c)),e.rootElement.addClass(i.addWidgetPrefix(p))}return(0,o.isDefined)(f.sortOrder)?i.setAria("sort",t,l):i.setAria("sort","none",l),n}return i.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?s:"sortIndex"===e?h:this.callBase(e)},_renderIndicator:function(e){var t,n=e.column,i=e.container,a=e.indicator;return"sort"===e.name&&(t=this.option("rtlEnabled"),(0,o.isDefined)(n.sortOrder)||a&&a.addClass(l),i.children().length&&(!t&&"left"===e.columnAlignment||t&&"right"===e.columnAlignment))?void i.prepend(a):void this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!(0,o.isDefined)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not("."+l)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(7),s=n(5),l=i(s),u=n(4),d=n(88),c=i(d),h=n(1),p=n(3),f=n(0),g=n(45),_=n(101),m=n(18),v=n(36),y=n(171),w=i(y),x=n(94),b=i(x),C=n(137),k=i(C),I=n(10),S=i(I),D=n(25),T=i(D),E="rowsview",O="content",A="nowrap",P="dx-group-row",B="dx-group-cell",M="dx-data-row",F="dx-freespace-row",R="dx-row-lines",V="dx-column-lines",H="dx-row-alt",L="dx-last-row-border",z="dx-empty",$="row-inserted-animation",N=200;e.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:S.default.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:S.default.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:w.default.ColumnsView.inherit(function(){var e=function(e,t){var n=(0,g.isEmpty)(t.text)&&"data"===t.rowType,i=t.text,o=e.get(0);n?(0,v.setEmptyText)(e):t.column.encodeHtml?o.textContent=i:o.innerHTML=i},t=function(e){var t=e.getScrollable();return t?Math.ceil(parseFloat(t.$content().css("paddingBottom"))):0};return{_getDefaultTemplate:function(t){switch(t.command){case"empty":return function(e){e.html("&nbsp;")};default:return e}},_getDefaultGroupTemplate:function(e){var t=this,n=t.option("summary.texts");return function(t,i){var o=i.data,a=i.column.caption+": "+i.text,r=t.get(0);i.summaryItems&&i.summaryItems.length&&(a+=" "+(0,v.getGroupRowSummaryText)(i.summaryItems,n)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?a+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?a+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(a+=" ("+i.groupContinuedMessage+")")),t.addClass(B),e.encodeHtml?r.textContent=a:r.innerHTML=a}},_update:function(){},_getCellTemplate:function(e){var t,n=this,i=e.column;return t="group"!==e.rowType||!(0,h.isDefined)(i.groupIndex)||i.showWhenGrouped||i.command?("data"===e.rowType||i.command)&&i.cellTemplate?i.cellTemplate:{allowRenderToDetachedContainer:!0,render:n._getDefaultTemplate(i)}:i.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultGroupTemplate(i)}},_createRow:function(e){var t,n,i,o=this.callBase(e);return e&&(t="group"===e.rowType,n="data"===e.rowType,n&&o.addClass(M),n&&this.option("showRowLines")&&o.addClass(R),this.option("showColumnLines")&&o.addClass(V),e.visible===!1&&o.hide(),t&&(o.addClass(P),i=e.isExpanded,this.setAria("role","row",o),this.setAria("expanded",(0,h.isDefined)(i)&&i.toString(),o))),o},_rowPrepared:function(e,t,n){var i=this;if("data"===t.rowType){if(this.option("rowAlternationEnabled")){var o=function(){return n.dataIndex%2===1};o()&&e.addClass(H),t.watch&&t.watch(o,function(t){e.toggleClass(H,t)})}this._setAriaRowIndex(t,e),t.watch&&t.watch(function(){return t.rowIndex},function(){return i._setAriaRowIndex(t,e)})}this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),o=e.rowIndex+1;i?o=n.pageIndex()*n.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)},_afterRowPrepared:function(e){var t=this,n=e.args[0],i=this._dataController,o=i.getVisibleRows()[n.rowIndex],a=this.option("integrationOptions.watchMethod");if(n.data&&"data"===n.rowType&&!n.isNewRow&&this.option("twoWayBindingEnabled")&&a&&o){var r=a(function(){return i.generateDataValues(n.data,n.columns)},function(){i.repaintRows([o.rowIndex],t.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});l.default.on(n.rowElement,k.default,r)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div>"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),o=!0,a=0;a<i.length;a++)if(!i[a].width&&!i[a].minWidth){o=!1;break}(t.option("columnAutoWidth")||t._hasHeight||o||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this;t._isScrollByEvent=!!e.event,t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left,t.scrollChanged.fire(e.scrollOffset,t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,n.onStop=i,t._scrollable=t._createComponent(e,b.default,n),t._scrollableContainer=t._scrollable&&t._scrollable._$container},_renderLoadPanel:v.renderLoadPanel,_renderContent:function(e,t){return e.replaceWith((0,a.default)("<div>").addClass(this.addWidgetPrefix(O)).append(t)),this._findContentElement()},_updateContent:function(e,t){var n=this,i=n._getTableElement(),o=n._findContentElement(),a=t&&t.changeType,r=[],s=this.option("highlightChanges"),l=this.addWidgetPrefix($);switch(a){case"update":(0,p.each)(t.rowIndices,function(o,a){var u=n._getRowElements(e).eq(o),d=t.changeTypes&&t.changeTypes[o],c=t.items&&t.items[o];r.push(function(){var e=n._getRowElements(),r=e.eq(a);switch(d){case"update":if(c){var p=t.columnIndices&&t.columnIndices[o];(0,h.isDefined)(c.visible)&&c.visible!==r.is(":visible")?r.toggle(c.visible):p?n._updateCells(r,u,p):r.replaceWith(u)}break;case"insert":e.length?r.length?u.insertBefore(r):u.insertAfter(e.last()):u.prependTo(i.children("tbody")),s&&t.isLiveUpdate&&u.addClass(l);break;case"remove":r.remove()}})}),(0,p.each)(r,function(){this()}),e.remove();break;default:n._setTableElement(e),o.addClass(n.addWidgetPrefix(O)),n._renderContent(o,e)}},_createEmptyRow:function(e,t,n){var i,o,a=this,r=a._createRow(),s=t?this.getFixedColumns():this.getColumns();for(r.addClass(e).toggleClass(V,a.option("showColumnLines")),i=0;i<s.length;i++)o=a._createCell({column:s[i],rowType:"freeSpace",columnIndex:i,columns:s}),(0,h.isNumeric)(n)&&o.css("height",n),r.append(o);return a.setAria("role","presentation",r),r},_appendEmptyRow:function(e,t,n){var i=this._getBodies(e),o=i.length&&!t.is("tbody")?i:e;"top"===n?o.first().prepend(t):o.last().append(t)},_renderFreeSpaceRow:function(e){var t=this._createEmptyRow(F);t=this._wrapRowIfNeed(e,t),this._appendEmptyRow(e,t)},_checkRowKeys:function(e){var t=this,n=t._getRows(e),i=t._dataController.store()&&t._dataController.store().key();i&&n.some(function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.fireError("E1046",i),!0})},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){var t=e.children("tbody").children().not(".dx-virtual-row").not("."+F);return t.toArray().reduce(function(e,t){return e+t.getBoundingClientRect().height},0)},_updateRowHeight:function(){var e,t=this,n=t._getTableElement(),i=t._dataController.items().length;n&&t._needUpdateRowHeight(i)&&(e=t._getRowsHeight(n),t._rowHeight=e/i)},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.$content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+F)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+F)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,f.extend)({evaluate:function(e){var n=(0,m.compileGetter)(e);return n(t.data)}},e,t))},_rowDblClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,f.extend)({},e,t))},_getColumnsCountBeforeGroups:function(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0},_getGroupCellOptions:function(e){var t=this._getColumnsCountBeforeGroups(e.columns),n=(e.row.groupIndex||0)+t;return{columnIndex:n,colspan:e.columns.length-n-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){var n,i,o,a,r,s=t.row,l=t.columns,u=s.rowIndex,d=this._getGroupCellOptions(t);for(n=0;n<=d.columnIndex;n++)n===d.columnIndex&&l[n].allowCollapsing&&"infinite"!==t.scrollingMode?(o=!!s.isExpanded,i=l[n]):(o=null,i={command:"expand",cssClass:l[n].cssClass}),this._renderCell(e,{value:o,row:s,rowIndex:u,column:i,columnIndex:n});r=(0,_.getDefaultAlignment)(this.option("rtlEnabled")),a=(0,f.extend)({},l[d.columnIndex],{command:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:r}),d.colspan>1&&(a.colspan=d.colspan),this._renderCell(e,{value:s.values[s.groupIndex],row:s,rowIndex:u,column:a,columnIndex:d.columnIndex})},_renderRows:function(e,t){var n=this,i=n.option("scrolling.mode");n.callBase(e,(0,f.extend)({scrollingMode:i},t)),n._checkRowKeys(t.change),n._renderFreeSpaceRow(e),n._hasHeight||n.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,o=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||(0,h.isDefined)(i.groupIndex)||!o?n.callBase(e,t):n.renderTemplate(e,o,(0,f.extend)({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e),i=function e(){var n=t.getScrollable();n&&t.element().closest((0,r.getWindow)().document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))};return(0,h.isDefined)(t._getTableElement())?t._renderScrollable():(t._setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(i)),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t,n=this,i=n.element();i.addClass(n.addWidgetPrefix(E)).toggleClass(n.addWidgetPrefix(A),!n.option("wordWrapEnabled")),i.toggleClass(z,0===n._dataController.items().length),n.setAria("role","presentation",i),t=n._renderTable({change:e}),n._updateContent(t,e),n.callBase(e),n._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t,n,i,o=this,a=e.column,r=e.row,s=r.data,l=r&&r.summaryCells,u=e.value,d=(0,v.getDisplayValue)(a,u,s,r.rowType);return t=this.callBase(e),t.value=u,t.oldValue=e.oldValue,t.displayValue=d,t.row=r,t.key=r.key,t.data=s,t.rowType=r.rowType,t.values=r.values,t.text=a.command?"":(0,v.formatValue)(d,a),t.rowIndex=r.rowIndex,t.summaryItems=l&&l[e.columnIndex],t.resized=a.resizedCallbacks,(0,h.isDefined)(a.groupIndex)&&!a.command&&(n=o.option("grouping.texts"),i=o.option("scrolling.mode"),"virtual"!==i&&"infinite"!==i&&(t.groupContinuesMessage=s&&s.isContinuationOnNextPage&&n&&n.groupContinuesMessage,t.groupContinuedMessage=s&&s.isContinuation&&n&&n.groupContinuedMessage)),t},_setRowsOpacityCore:function(e,t,n,i){var o=this._columnsController,r=o.getColumns(),s=r&&r[n],l=s&&s.isBand&&s.index;(0,p.each)(e,function(r,s){if(!(0,a.default)(s).hasClass(P))for(var u=0;u<t.length&&(!((0,h.isNumeric)(l)&&o.isParentBandColumn(t[u].index,l)||t[u].index===n)||(e.eq(r).children().eq(u).css({opacity:i}),(0,h.isNumeric)(l)));u++);})},_getDevicePixelRatio:function(){return(0,r.getWindow)().devicePixelRatio},renderNoDataText:v.renderNoDataText,getCellOptions:function(e,t){var n,i,o=this._dataController.items()[e];return o&&(i=(0,h.isString)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t],i&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i}))),n},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,a.default)(t[e])}},updateFreeSpaceRowHeight:function(e){var n,i,o=this,a=o._dataController,r=a.items(!0).length,s=o._findContentElement(),l=o._getFreeSpaceRowElements(e);if(l&&s&&a.totalCount()>=0){var d=!1;r>0?o._hasHeight?(l.hide(),(0,u.deferUpdate)(function(){var n=t(o),i=o.getScrollbarWidth(!0),a=o.element().height()-i-n,r=s.outerHeight(),c=a-r>0,h=o._getRowsHeight(s.children().first()),p=e||o.getTableElements(),f=Math.ceil(parseFloat(p.css("borderTopWidth"))),g=T.default.webkit&&o._getDevicePixelRatio()>=2?1:0,_=a-h-f-g;c&&(0,u.deferRender)(function(){l.css("height",_),d=!0,l.show()}),(0,u.deferRender)(function(){o._updateLastRowBorder(d)})})):(n=a.pageSize()-r,i=o.option("scrolling.mode"),n>0&&a.pageCount()>1&&"virtual"!==i&&"infinite"!==i&&(c.default.setHeight(l,n*o._rowHeight),d=!0),!d&&e?c.default.setHeight(l,0):l.toggle(d),o._updateLastRowBorder(d)):(l.css("height",0),l.show(),o._updateLastRowBorder(!0))}},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._hasHeight=!1,t.loadingChanged.add(function(t,n){e.setLoading(t,n)}),t.dataSourceChanged.add(function(){e._scrollLeft>=0&&e._handleScroll({scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})})},_handleDataChanged:function(e){var t=this;switch(e.changeType){case"refresh":case"prepend":case"append":case"update":t.render(null,e);break;default:t._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var n=this._scrollableContainer&&this._scrollableContainer.get(0),i=0;return n&&(e?(i=n.clientHeight?n.offsetHeight-n.clientHeight:0,i+=t(this)):i=n.clientWidth?n.offsetWidth-n.clientWidth:0),i>0?i:0},_fireColumnResizedCallbacks:function(){var e,t=this,n=t._lastColumnWidths||[],i=[],o=t.getColumns();for(e=0;e<o.length;e++)i[e]=o[e].visibleWidth,o[e].resizedCallbacks&&!(0,h.isDefined)(o[e].groupIndex)&&n[e]!==i[e]&&o[e].resizedCallbacks.fire(i[e]);t._lastColumnWidths=i},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(L):this.element().removeClass(L)},_updateScrollable:function(){var e=b.default.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,u.deferRender)(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,u.deferUpdate)(function(){e._updateScrollable()})})},scrollTo:function(e){var t=this.element(),n=t&&b.default.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,i=this.element();return 0===arguments.length?i?i.outerHeight(!0):0:(n._hasHeight=void 0===t?"auto"!==e:t,void((0,h.isDefined)(e)&&i&&c.default.setHeight(i,e)))},setLoading:function(e,t){var n,i=this,o=i._loadPanel,a=i._dataController,s=i.option("loadPanel")||{},l=a.isLoaded()?s.animation:null,u=i.element();(0,r.hasWindow)()&&(!o&&void 0!==t&&a.isLocalStore()&&"auto"===s.enabled&&u&&(i._renderLoadPanel(u,u.parent()),o=i._loadPanel),o&&(n={message:t||s.text,animation:l,visible:e},clearTimeout(i._hideLoadingTimeoutID),o.option("visible")&&!e?i._hideLoadingTimeoutID=setTimeout(function(){o.option(n)},N):o.option(n)))},setRowsOpacity:function(e,t){var n=this._getRowElements().not("."+P)||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t,n=this.callBase(e);return n&&(t=n.filter("."+B).index(),t>=0&&n.length>t+1)?n.slice(0,t+1):n},getTopVisibleItemIndex:function(e){var t,n,i=this,o=0,a=0,r=0,s=i._scrollTop,l=i._findContentElement(),u=l&&l.offset().top,d=i._dataController.items(),c=i._getTableElement();if(d.length&&c){for(t=i._getRowElements(c).filter(":visible"),o=0;o<d.length;o++)if(a=r,n=t.eq(o),n.length&&(r=n.offset().top-u,r>s)){o&&(e||2*s<Math.round(r+a))&&o--;break}o&&o===d.length&&o--}return o},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},_scrollToElement:function(e,t){var n=this.getScrollable();n&&n.scrollToElement(e,t)},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(11),s=n(4),l=n(3),u=n(40),d=i(u),c=n(96),h=i(c),p="dx-context-menu",f={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},g=["columnHeadersView","rowsView","footerView","headerPanel"],_=d.default.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,i,o,s,u,d,c,h,p=this,_=(0,a.default)(e.target);return(0,l.each)(g,function(){if(t=p.getView(this),u=t&&t.element(),u&&(u.is(_)||u.find(_).length)&&(c=_.closest(".dx-row > td, .dx-row > tr"),d=c.parent(),i=t.getRowIndex(d),o=c[0]&&c[0].cellIndex,s=d.data("options"),n={event:e,targetElement:(0,r.getPublicElement)(_),target:f[this],rowIndex:i,row:t._getRows()[i],columnIndex:o,column:s&&s.cells[o].column},n.items=t.getContextMenuItems&&t.getContextMenuItems(n),p.executeAction("onContextMenuPreparing",n),p._contextMenuPrepared(n),h=n.items))return!1}),h},_contextMenuPrepared:s.noop}),m=d.default.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass(p);this.setAria("role","presentation",t),this._createComponent(t,h.default,{onPositioning:function(t){var n=t.event,i=t.component,o=e.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}});e.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:_},views:{contextMenuView:m}}},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(20),u=i(l),d=n(3),c=n(40),h=i(c),p="dx-error-row",f="dx-error-message",g="dx-closebutton",_="action",m=h.default.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),e._rowsView=e.getView("rowsView")},_createErrorRow:function(e,t){var n,i,o=this,r=this._renderErrorMessage(e);return t?(n=(0,a.default)("<tr>").addClass(p),i=(0,a.default)("<div>").addClass(g).addClass(o.addWidgetPrefix(_)),s.default.on(i,u.default.name,o.createAction(function(e){var n,i=e.event,r=(0,a.default)(i.currentTarget).closest("."+p).index();i.stopPropagation(),(0,d.each)(t,function(e,t){n=(0,a.default)(t).children("tbody").children("tr").eq(r),o.removeErrorRow(n)}),o.getController("resizing")&&o.getController("resizing").fireContentReadyAction()})),(0,a.default)("<td>").attr({colSpan:o.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(i).append(r).appendTo(n),n):r},_renderErrorMessage:function(e){var t=e.url?e.message.replace(e.url,""):e.message||e,n=(0,a.default)("<div>").addClass(f).text(t);return e.url&&(0,a.default)("<a>").attr("href",e.url).text(e.url).appendTo(n),n},renderErrorRow:function(e,t,n){var i,o,r,s,l,u,c=this;if(n)return n.find("."+f).remove(),o=c._createErrorRow(e),n.prepend(o),o;if(l=t>=0||!c._columnHeadersView.isVisible()?c._rowsView:c._columnHeadersView,u=n||l.getTableElements(),(0,d.each)(u,function(n,d){if(o=c._createErrorRow(e,u),r=r||o,t>=0)i=l._getRowElements((0,a.default)(d)).eq(t),c.removeErrorRow(i.next()),o.insertAfter(i);else{var h=(0,a.default)(d).children("tbody");s=h.children("tr"),c._columnHeadersView.isVisible()?(c.removeErrorRow(s.last()),(0,a.default)(d).append(o)):(c.removeErrorRow(s.first()),h.first().prepend(o))}}),!n){var h=c.getController("resizing");h&&h.fireContentReadyAction()}return r},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(e=t&&t.find("."+p),!e||!e.length){var n=this._rowsView.element();e=n&&n.find("."+p)}}e&&e.hasClass(p)&&e.remove()},optionChanged:function(e){var t=this;switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:m},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add(function(n,i){e.option("errorRowEnabled")&&t.renderErrorRow(n,void 0,i)}),e.changed.add(function(t){if(!t||"loadError"!==t.changeType){var n=e.getController("errorHandling"),i=e.getController("editing");i&&!i.hasChanges()&&n&&n.removeErrorRow()}})}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(40),s=i(r),l=n(4),u=i(l),d=n(7),c=i(d),h=n(3),p=n(1),f=i(p),g=n(36),_=i(g),m=n(10),v=i(m),y=n(6),w=n(12),x=i(w),b=n(25),C=i(b),k=n(106),I=i(k),S="table",D="borders",T="table-fixed",E="important-margin",O="text-content",A="dx-hidden",P="dx-gridbase-container",B="adaptiveHidden",M="input:not([type='hidden'])",F=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],R=function(e){return f.default.isString(e)&&"%"===e.slice(-1)},V=function(e){return f.default.isString(e)&&"px"===e.slice(-2)},H=function(e,t){var n,i=[];if(e&&t&&e.length&&e.length===t.length)for(n=0;n<e.length;n++)i.push(e[n]>t[n]?e[n]:t[n]);else e&&e.length?i=e:t&&(i=t);return i},L=function(e){var t=e.get(0).clientHeight,n=parseFloat(e.css("paddingTop")),i=parseFloat(e.css("paddingBottom"));return t-n-i},z=function(e,t){var n=e._rowsView.contentWidth(),i=e._getTotalWidth(t,n);return n-i},$=function(e,t,n,i){return z(e,i.map(function(e,i){return i===t?n:e}))},N=function(e,t){I.default.hiddenFocus(e),_.default.setSelectionRange(e,t)},W=s.default.ViewController.inherit({_initPostRenderHandlers:function(){var e=this,t=e._dataController;e._refreshSizesHandler||(e._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler);var i,o=n&&n.changeType,a=n&&n.isDelayed,r=t.items();n&&"refresh"!==o&&"prepend"!==o&&"append"!==o?"update"===o&&n.changeTypes&&(!(r.length>1||"insert"!==n.changeTypes[0])||0===r.length&&"remove"===n.changeTypes[0]||n.needUpdateDimensions?i=e.resize():u.default.deferUpdate(function(){e._rowsView.resize()})):a||(i=e.resize()),o&&"updateSelection"!==o&&"updateFocusedRow"!==o&&!a&&(0,y.when)(i).done(function(){e._setAriaRowColCount(),e.fireContentReadyAction()})},e._dataController.changed.add(function(){e._dataController.changed.add(e._refreshSizesHandler)}))},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+P))},_getBestFitWidths:function(){if(!this.option("legacyRendering"))return this._rowsView.getColumnWidths();var e,t,n,i,o=this;return e=o._rowsView.getColumnWidths(),t=o._columnHeadersView&&o._columnHeadersView.getColumnWidths(),n=o._footerView&&o._footerView.getColumnWidths(),i=H(e,t),i=H(i,n)},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),(0,h.each)(e,function(e,i){var o=n.getColumnId(i);n.columnOption(o,"visibleWidth",t[e])}),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){var i=this;if(e&&e.isVisible()){var o=this._rowsView.getTableElements(),r=e.getTableElements();(0,h.each)(o,function(e,o){var s,l=(0,a.default)(o),u=r.eq(e);u&&u.length&&(s=n?u.children("tbody").appendTo(l):l.children("."+t).appendTo(u),s.toggleClass(t,n),s.toggleClass(i.addWidgetPrefix("best-fit"),n))})}},_toggleBestFitMode:function(e){var t=this.component.$element(),n=this;if(n.option("legacyRendering"))t.find("."+this.addWidgetPrefix(S)).toggleClass(this.addWidgetPrefix(T),!e),t.find(M).toggleClass(A,e),t.find(".dx-group-cell").toggleClass(A,e),t.find(".dx-header-row ."+this.addWidgetPrefix(O)).css("maxWidth","");else{var i=n._rowsView._getTableElement(),o=n._rowsView.getTableElements().eq(1);i.css("tableLayout",e?"auto":"fixed"),i.children("colgroup").css("display",e?"none":""),o.toggleClass(this.addWidgetPrefix(T),!e),n._toggleBestFitModeForView(n._columnHeadersView,"dx-header",e),n._toggleBestFitModeForView(n._footerView,"dx-footer",e),n._needStretch()&&(i.get(0).style.width=e?"auto":""),C.default.msie&&11===parseInt(C.default.version)&&i.find("."+this.addWidgetPrefix(T)).each(function(){this.style.width=e?"10px":""})}},_synchronizeColumns:function(){var e,t,n,i,o=this,a=o._columnsController,r=a.getVisibleColumns(),s=o.option("columnAutoWidth"),l=o.option("legacyRendering"),d=o._needBestFit(),c=!1,p=!1,g=[],m=function(){var e;(0,h.each)(r,function(t,n){"groupExpand"===n.type&&(e=g[t])}),(0,h.each)(r,function(t,n){"groupExpand"===n.type&&e&&(g[t]=e)})};!d&&(0,h.each)(r,function(e,t){if("auto"===t.width||l&&t.fixed)return d=!0,!1}),(0,h.each)(r,function(e,t){if(t.minWidth)return c=!0,!1}),o._setVisibleWidths(r,[]),d&&(t=x.default.getActiveElement(),i=_.default.getSelectionRange(t),o._toggleBestFitMode(!0),e=!0),u.default.deferUpdate(function(){d?(g=o._getBestFitWidths(),(0,h.each)(r,function(e,t){var n=a.getColumnId(t);a.columnOption(n,"bestFitWidth",g[e],!0)})):c&&(g=o._getBestFitWidths()),(0,h.each)(r,function(e){var t=this.width;"auto"!==t&&(f.default.isDefined(t)?g[e]=f.default.isNumeric(t)||V(t)?parseFloat(t):t:s||(g[e]=void 0))}),e&&(o._toggleBestFitMode(!1),e=!1,t&&t!==x.default.getActiveElement()&&(n=t.getBoundingClientRect().bottom<0,n||(C.default.msie?setTimeout(function(){N(t,i)}):N(t,i)))),p=o._correctColumnWidths(g,r),s&&(m(),o._needStretch()&&o._processStretch(g,r)),u.default.deferRender(function(){(d||p)&&o._setVisibleWidths(r,g)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this.option("legacyRendering")||this._columnsController.getVisibleColumns().some(function(e){
return"auto"===e.width&&!e.command})},_getAverageColumnsWidth:function(e){var t=z(this,e),n=e.filter(function(e){return void 0===e}).length;return t/n},_correctColumnWidths:function(e,t){var n,i,o,a=this,r=!1,s=!1,l=!1,u=a.component.$element(),d=a._hasWidth;for(n=0;n<t.length;n++){var c=n,h=t[c],p=e[c]===B,g=e[c],m=h.minWidth;if(m)if(void 0===g)i=a._getAverageColumnsWidth(e),g=i;else if(R(g)){var v=$(a,c,m,e);v<0&&(g=-1)}m&&a._getRealColumnWidth(g)<m&&!p&&(e[c]=m,l=!0,n=-1),f.default.isDefined(h.width)||(s=!0),R(h.width)&&(r=!0)}if(u&&a._maxWidth&&(delete a._maxWidth,u.css("maxWidth","")),!s&&e.length){var y=a._rowsView.contentWidth(),w=a._rowsView.getScrollbarWidth(),x=a._getTotalWidth(e,y);x<y&&(o=_.default.getLastResizableColumnIndex(t,e),o>=0&&(e[o]="auto",l=!0,d!==!1||r||(a._maxWidth=x+w+(a.option("showBorders")?2:0),u.css("maxWidth",a._maxWidth))))}return l},_processStretch:function(e,t){var n,i,o,a,r=this._rowsView.contentWidth(),s=this._getTotalWidth(e,r),l={length:0};if(e.length&&((0,h.each)(t,function(t){(this.width||e[t]===B)&&(l[t]=!0,l.length++)}),n=r-s,i=Math.floor(n/(e.length-l.length)),o=n-i*(e.length-l.length),n>=0))for(a=0;a<e.length;a++)l[a]||(e[a]+=i,o>0&&(o<1?(e[a]+=o,o=0):(e[a]++,o--)))},_getRealColumnWidth:function(e,t){return R(e)?(t=t||this._rowsView.contentWidth(),parseFloat(e)*t/100):parseFloat(e)},_getTotalWidth:function(e,t){var n,i,o=0;for(i=0;i<e.length;i++)n=e[i],n&&n!==B&&(o+=this._getRealColumnWidth(n,t));return o},updateSize:function(e){var t,n,i=this,o=i.addWidgetPrefix(E);void 0===i._hasHeight&&e&&e.is(":visible")&&e.width()&&(t=e.children("."+i.getWidgetContainerClass()),t.length&&t.detach(),i._hasHeight=!!L(e),n=e.width(),e.addClass(o),i._hasWidth=e.width()===n,e.removeClass(o),t.length&&t.appendTo(e))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,i=t._resizeDeferred=new y.Deferred;return(0,y.when)(n).always(function(){u.default.deferRender(function(){t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),u.default.deferUpdate(function(){u.default.deferRender(function(){u.default.deferUpdate(function(){t._updateDimensionsCore()})})})}).done(i.resolve).fail(i.reject)}),i.promise()}},_resetGroupElementHeight:function(){var e=this.component.$element().children().get(0),t=this._rowsView.getScrollable();!e||!e.style.height||t&&t.scrollTop()||(e.style.height="")},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===t.width()&&this._lastHeight===t.height()||!t.is(":visible")))},_setScrollerSpacingCore:function(e){var t=this,n=e?t._rowsView.getScrollbarWidth():0,i=t._rowsView.getScrollbarWidth(!0);u.default.deferRender(function(){t._columnHeadersView&&t._columnHeadersView.setScrollerSpacing(n),t._footerView&&t._footerView.setScrollerSpacing(n),t._rowsView.setScrollerSpacing(n,i)})},_setScrollerSpacing:function(e){var t=this;this.option("scrolling.useNative")===!0?u.default.deferRender(function(){u.default.deferUpdate(function(){t._setScrollerSpacingCore(e)})}):this._setScrollerSpacingCore(e)},_updateDimensionsCore:function(){var e,t,n=this,i=n._dataController,o=n._rowsView,r=n.component.$element(),s=r.children().get(0),l=r&&(r.get(0).clientHeight||r.height()),d=parseFloat(r.css("maxHeight")),c=d&&l>=d,p=n.option("height")||r.get(0).style.height,f=n.getController("editorFactory"),g=c&&s.scrollHeight===s.offsetHeight;n.updateSize(r),e=n._hasHeight||c,p&&n._hasHeight^"auto"!==p&&(t=(0,a.default)("<div>").height(p).appendTo(r),n._hasHeight=!!t.height(),t.remove()),u.default.deferRender(function(){return o.height(null,e),c&&!g&&(0,a.default)(s).css("height",d),i.isLoaded()?void u.default.deferUpdate(function(){n._updateLastSizes(r),n._setScrollerSpacing(e),(0,h.each)(F,function(e,t){var i=n.getView(t);i&&i.resize()}),f&&f.resize()}):void o.setLoading(i.isLoading())})},_updateLastSizes:function(e){this._lastWidth=e.width(),this._lastHeight=e.height()},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"legacyRendering":case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),j=s.default.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){var e,t,n=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")];for(t=0;t<n.length;t++)e=n[t],e&&e.scrollChanged.add(this._scrollChangedHandler.bind(this,n))}}),q=s.default.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=e.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;f.default.isDefined(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(D),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;(0,h.each)(F,function(n,i){var o=t.getView(i);o&&o.render(e)})},_getTableRoleName:function(){return"grid"},render:function(e){var t=this,n=!t._groupElement,i=t._groupElement||(0,a.default)("<div>").addClass(t.getWidgetContainerClass());i.addClass(P),i.toggleClass(t.addWidgetPrefix(D),!!t.option("showBorders")),t.setAria("role","presentation",e),t.component.setAria({role:this._getTableRoleName(),label:v.default.format(t._getWidgetAriaLabel())},i),t._rootElement=e||t._rootElement,n&&(t._groupElement=i,c.default.hasWindow()&&t.getController("resizing").updateSize(e),i.appendTo(e)),t._renderViews(i)},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e._resizingController.fireContentReadyAction())}});e.exports={defaultOptions:function(){return{showBorders:!1,renderAsync:!1,legacyRendering:!1}},controllers:{resizing:W,synchronizeScrolling:j},views:{gridView:q}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(168),s=i(r),l=n(171),u=i(l),d=n(4),c=n(1),h=n(11);n(198);var p="header-panel",f="toolbar-button",g=u.default.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,a.default)("<div>").addClass(this.addWidgetPrefix(f))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(f)+t},_getToolbarOptions:function(){var e,t={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}};return this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,c.isDefined)(t.toolbarOptions.visible)&&(e=t.toolbarOptions.items,t.toolbarOptions.visible=!(!e||!e.length)),t.toolbarOptions},_renderCore:function(){this._toolbar?this._toolbar.option(this._toolbarOptions):(this.element().addClass(this.addWidgetPrefix(p)),this._toolbar=this._createComponent((0,a.default)("<div>").appendTo(this.element()),s.default,this._toolbarOptions))},_columnOptionChanged:d.noop,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter(function(t){return t.name===e})[0]);if(o>=0){var a="items["+o+"]";n.option(a+".options")?n.option(a+".options.disabled",t):n.option(a+".disabled",t)}}},updateToolbarDimensions:function(){this._toolbar&&(0,h.triggerResizeEvent)(this.getHeaderPanel())},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){"onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:d.noop});e.exports={defaultOptions:function(){return{}},views:{headerPanel:g},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(4),a=n(1),r=n(0),s=n(354),l=i(s),u=n(6),d=function(e){var t=e.getView("pagerView"),n=e.getController("data"),i={allowedPageSizes:t?t.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:e.option("focusedRowEnabled")?e.option("focusedRowKey"):void 0};return(0,r.extend)(i,n.getUserState())},c=function(e){var t=e.getController("columns"),n=e.getController("selection"),i=e.getController("export"),o=e.getController("data");t&&t.columnsChanged.add(function(){e.updateState({columns:t.getUserState()})}),n&&n.selectionChanged.add(function(t){e.updateState({selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter})}),o&&(e._initialPageSize=e.option("paging.pageSize"),e._initialFilterValue=e.option("filterValue"),o.changed.add(function(){var t=d(e);e.updateState(t)})),i&&i.selectionOnlyChanged.add(function(){e.updateState({exportSelectionOnly:i.selectionOnly()})})},h=null,p=function(e,t){var n=e.getController("filterSync"),i=e.getController("columns"),o=t.columns||void 0!==t.filterValue;return n?o?t.filterValue||n.getFilterValueFromColumns(t.columns):e._initialFilterValue||n.getFilterValueFromColumns(i.getColumns()):h};e.exports={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:l.default.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add(function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),c(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState((0,r.extend)({},e)),t},updateState:function(e){if(this.isEnabled()){var t=this.state(),n=(0,r.extend)({},t,e),i=(0,o.getKeyHash)(t),a=(0,o.getKeyHash)(n);(0,o.equalByValue)(i,a)||((0,r.extend)(this._state,e),this.save())}else(0,r.extend)(this._state,e)},applyState:function(e){var t=this,n=e.allowedPageSizes,i=e.searchText,o=e.selectedRowKeys,r=e.selectionFilter,s=t.getController("export"),l=t.getController("columns"),u=t.getController("data"),d=t.option("scrolling.mode"),c="virtual"===d||"infinite"===d,h=t.option("pager.visible")===!0&&t.option("pager.showPageSizeSelector");t.component.beginUpdate(),l&&l.setUserState(e.columns),s&&s.selectionOnly(e.exportSelectionOnly),o&&t.option("selectedRowKeys",o),t.option("selectionFilter",r),n&&"auto"===t.option("pager.allowedPageSizes")&&(t.option("pager").allowedPageSizes=n),t.option("focusedRowEnabled")&&t.option("focusedRowKey",e.focusedRowKey),t.component.endUpdate(),t.option("searchPanel.text",i||""),t.option("filterValue",p(t,e)),t.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),t.option("paging.pageSize",c&&!h||!(0,a.isDefined)(e.pageSize)?t._initialPageSize:e.pageSize),t.option("paging.pageIndex",e.pageIndex||0),u&&u.reset()}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=e.callBase,n=e.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(e._restoreStateTimeoutID);var i=new u.Deferred;return e._restoreStateTimeoutID=setTimeout(function(){n.load().always(function(){e._restoreStateTimeoutID=null,t.call(e),e.stateLoaded.fire(),i.resolve()})}),i.promise()}e.isStateLoading()||t.call(e)},isLoading:function(){var e=this,t=e.getController("stateStoring");return this.callBase()||t.isLoading()},isStateLoading:function(){return(0,a.isDefined)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(5),a=i(o),r=n(7),s=n(40),l=i(s),u=n(19),d=i(u),c=n(25),h=i(c),p=n(288),f=n(0),g=n(3),_=n(1),m=n(6),v=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,y=function e(t){t&&(0,g.each)(t,function(n,i){var o;(0,_.isPlainObject)(i)||Array.isArray(i)?e(i):"string"==typeof i&&(o=v.exec(i),o&&(t[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6]))))})};t.StateStoringController=l.default.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?(0,p.sessionStorage)():(0,r.getWindow)().localStorage;if(!t)throw"file:"===(0,r.getWindow)().location.protocol&&h.default.msie?new Error("E1038"):new Error("E1007");return t},t=function(e){return(0,_.isDefined)(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(e(n).getItem(t(n)))}catch(e){d.default.log(e.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"===i.type)return void(i.customSave&&i.customSave(n));try{e(i).setItem(t(i),JSON.stringify(n))}catch(e){}},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},a.default.on((0,r.getWindow)(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e,t=this;return t._isLoading=!0,e=(0,m.fromPromise)(t._loadState()),e.done(function(e){t._isLoaded=!0,t._isLoading=!1,t.state(e)}),e},state:function(e){var t=this;return arguments.length?(t._state=(0,f.extend)({},e),void y(t._state)):(0,f.extend)(!0,{},t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(function(){e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;switch(e.name){case"stateStoring":t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0;break;default:t.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),a.default.off((0,r.getWindow)(),"unload",this._windowUnloadHandler)}}}())},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(24),u=i(l),d=n(36),c=n(1),h=n(3),p=n(0),f=n(43),g=i(f),_=n(20),m=i(_),v=n(10),y=i(v),w=n(8),x=n(91),b=i(x),C=n(291),k=i(C),I=n(6),S="dx-editor-cell",D="dx-row",T="dx-selection",E="dx-select-checkbox",O="dx-select-checkboxes-hidden",A="dx-command-select",P="dx-selection-disabled",B="dx-data-row",M="selection.showCheckBoxesMode",F="selection.mode",R=function(e,t){var n=e.getController("selection"),i=e.getView("rowsView"),o=(0,a.default)(t.target).closest("."+B),r=i.getRowIndex(o);r<0||("onLongTap"===e.option(M)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(M)&&n.startSelectionWithCheckboxes(),"always"!==e.option(M)&&n.changeItemSelection(r,{control:!0})))};t.SelectionController=u.default.Controller.inherit(function(){var e=function(e,t){var n=0,i=e._dataController.store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var r=0;r<t.length;r++)if(Array.isArray(t[r])){if(t[r][0]!==o[n]||"="!==t[r][1])return!0;n++}return!1}return o!==t[0]},t=function(e,t){var n=t.component.getView("rowsView");n.renderSelectCheckBoxContainer((0,a.default)(e),t)},n=function(e,t){var n=t.column,i=(0,a.default)(e),o=t.component.getView("columnHeadersView");i.addClass(S),o._renderSelectAllCheckBox(i,n),o._attachSelectAllCheckBoxClickEvent(i)};return{init:function(){this._dataController=this.getController("data"),this._selectionMode=this.option(F),this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_getSelectionConfig:function(){var e=this,t=e._dataController,n=e.option("selection")||{};return{selectedKeys:e.option("selectedRowKeys"),mode:e._selectionMode,deferred:n.deferred,maxFilterLengthInRequest:n.maxFilterLengthInRequest,selectionFilter:e.option("selectionFilter"),key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||(new I.Deferred).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return e&&"data"===e.rowType&&!e.isNewRow},getItemData:function(e){return e&&(e.oldData||e.data||e)},filter:function(){return t.getCombinedFilter()},totalCount:function(){return t.totalCount()},onSelectionChanged:e._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var e=this.getController("columns"),i=this.isSelectColumnVisible();e.addCommandColumn({type:"selection",command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:A,width:"auto",cellTemplate:t,headerCellTemplate:n}),e.columnOption("command:select","visible",i)},_createSelection:function(){var e=this._getSelectionConfig();return new k.default(e)},_fireSelectionChanged:function(e){e&&this.executeAction("onSelectionChanged",e);var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t)},_updateCheckboxesState:function(t){var n=t.isDeferredMode,i=t.selectionFilter,o=t.selectedItemKeys,a=t.removedItemKeys;"onClick"===this.option(M)&&((n?i&&e(this,i):o.length>1)?this.startSelectionWithCheckboxes():(n?i&&!i.length:0===o.length&&a.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,n=this,i=n.option("selection.deferred"),o=n._selection.selectionFilter(),a=n._dataController,r=a.items();if(r){var s=n.isSelectionWithCheckboxes(),l=n.getChangedItemIndexes(r);n._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:o,isDeferredMode:i}),(l.length||s!==n.isSelectionWithCheckboxes())&&a.updateItems({changeType:"updateSelection",itemIndexes:l}),i?(n.option("selectionFilter",o),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(n._selectedItemsInternalChange=!0,n.option("selectedRowKeys",e.selectedItemKeys.slice(0)),n._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),n._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=this,n=[],i=this.option("selection.deferred"),o=0,a=e.length;o<a;o++){var r=e[o],s=t.isRowSelected(i?r.data:r.key);t._selection.isDataItem(r)&&r.isSelected!==s&&n.push(o)}return n},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"selection":var n=t._selectionMode;t.init();var i=t._selectionMode,o=t.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),t.selectRows(o).always(function(){t._fireSelectionChanged()}),t.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var a=e.value||[];!Array.isArray(a)||t._selectedItemsInternalChange||!t.component.getDataSource()&&a.length||t.selectRows(a),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(F)&&("always"===this.option(M)||"onClick"===this.option(M)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(M)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new I.Deferred).resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,h.each)(e,function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)}),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){return t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0),this._selection.changeItemSelection(this._dataController.getRowIndexDelta()+e,t)},focusedItemIndex:function(e){var t=this;return(0,c.isDefined)(e)?void(t._selection._focusedItemIndex=e):t._selection._focusedItemIndex},isSelectionWithCheckboxes:function(){return"multiple"===this.option(F)&&("always"===this.option(M)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(F)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}}()),e.exports={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:t.SelectionController},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done(function(){e.getController("selection").refresh()})},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),a=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,r=this.callBase.apply(this,arguments);if(r.isSelected=i.isRowSelected(a?r.data:r.key),o&&r.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){r.values[s]=r.isSelected;break}return r},refresh:function(e){var t=this,n=new I.Deferred;return this.callBase.apply(this,arguments).done(function(){!e||e.selection?t.getController("selection").refresh().done(n.resolve).fail(n.reject):n.resolve()}).fail(n.reject),n.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this._repaintChangesOnly||this.getController("selection").focusedItemIndex(-1)},_applyChange:function(e){var t=this;return e&&"updateSelection"===e.changeType?void e.items.forEach(function(e,n){var i=t._items[n];i&&(i.isSelected=e.isSelected,i.values=e.values)}):this.callBase.apply(this,arguments)},_endUpdateCore:function(){var e=this._changes,t=e.length>1&&e.every(function(e){return"updateSelection"===e.changeType});if(t){var n=e.map(function(e){return e.itemIndexes||[]}).reduce(function(e,t){return e.concat(t)});this._changes=[{changeType:"updateSelection",itemIndexes:n}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||R(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find("."+E);t&&n.length&&"multiple"===e.option("selection.mode")&&n.dxCheckBox("instance").option("value",e.getController("selection").isSelectAll())},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var n,i=this,o=i.getController("selection");return n=(0,a.default)("<div>").appendTo(e).addClass(E),i.setAria("label",y.default.format("dxDataGrid-ariaSelectAll"),e),i.getController("editorFactory").createEditor(n,(0,p.extend)({},t,{parentType:"headerRow",dataType:"boolean",value:o.isSelectAll(),editorOptions:{visible:i.option("selection.allowSelectAll")||o.isSelectAll()!==!1},tabIndex:i.option("useLegacyKeyboardNavigation")?-1:i.option("tabIndex")||0,setValue:function(e,t){var n=i.option("selection.allowSelectAll");t.component.option("visible",n||t.component.option("value")!==!1),t.event&&o.isSelectAll()!==e&&(t.value&&!n?t.component.option("value",!1):t.value?o.selectAll():o.deselectAll(),t.event.preventDefault())}})),n},_attachSelectAllCheckBoxClickEvent:function(e){s.default.on(e,m.default.name,this.createAction(function(e){var t=e.event;(0,a.default)(t.target).closest("."+E).length||s.default.trigger((0,a.default)(t.currentTarget).children("."+E),m.default.name),t.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.isNewRow?(0,d.setEmptyText)(e):(e.addClass(S),this._attachCheckBoxClickEvent(e),this.setAria("label",y.default.format("dxDataGrid-ariaSelectRow"),e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=(0,a.default)("<div>").addClass(E).appendTo(e);return this.getController("editorFactory").createEditor(n,(0,p.extend)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,tabIndex:-1,setValue:function(t,n){n&&n.event&&"keydown"===n.event.type&&s.default.trigger(e,m.default.name,n)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){s.default.on(e,m.default.name,this.createAction(function(e){var t=this.getController("selection"),n=e.event,i=this.getRowIndex((0,a.default)(n.currentTarget).closest("."+D));i>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(i,{shift:n.shiftKey}),(0,a.default)(n.target).closest("."+E).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[i]}))}))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&((0,h.each)(n,function(n,i){(0,h.each)(e.itemIndexes||[],function(n,o){var r,s;e.items[o]&&(r=t._getRowElements((0,a.default)(i)).eq(o),r.length&&(s=e.items[o].isSelected,r.toggleClass(T,void 0!==s&&s).find("."+E).dxCheckBox("option","value",s),t.setAria("selected",s,r)))})}),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(M)&&g.default.touch||s.default.on(n,(0,w.addNamespace)(b.default.name,"dxDataGridRowsView"),"."+B,e.createAction(function(t){R(e.component,t.event),t.event.stopPropagation()})),s.default.on(n,"mousedown selectstart",e.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()}))),n},_createRow:function(e){var t,n=this.callBase(e);return e&&(t=!!e.isSelected,t&&n.addClass(T),this.setAria("selected",t,n)),n},_rowClick:function(e){var t=this,n=e.event,i=(0,a.default)(n.target).closest("."+P).length;t.isClickableElement((0,a.default)(n.target))||(i||"multiple"===t.option(F)&&"always"===t.option(M)||t.getController("selection").changeItemSelection(e.rowIndex,{control:n.ctrlKey||n.metaKey,shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),t.callBase(e))},isClickableElement:function(e){var t=e.closest("."+A).length;return!!t},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();(0,h.each)(e,function(e,t){(0,a.default)(t).toggleClass(O,n)})}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(4),s=n(40),l=i(s),u=n(171),d=i(u),c=n(10),h=i(c),p=n(31),f=i(p),g=n(35),_=i(g),m=n(144),v=i(m),y=n(16),w=i(y),x=n(44),b=i(x),C=n(1),k=n(0),I=n(3),S="column-chooser",D="column-chooser-button",T="notouch-action",E="column-chooser-list",O="column-chooser-plain",A="column-chooser-mode-drag",P="column-chooser-mode-select",B="column-chooser",M="dx-column-chooser-item",F=".dx-treeview-node",R=".dx-checkbox",V=300,H=function(e,t){var n,i=[],o="select"===e.option("columnChooser.mode");return t.length&&(0,I.each)(t,function(e,t){n={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,disabled:!1,disableCheckBox:t.allowHiding===!1,parentId:(0,C.isDefined)(t.ownerBand)?t.ownerBand:null},o&&(n.selected=t.visible),i.push(n)}),i},L=l.default.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,n=this,i=n.addWidgetPrefix(D),o=n.option("columnChooser.enabled"),r=e.find("."+i);o?r.length?r.show():(t=(0,a.default)("<div>").addClass(i).appendTo(e),n._createComponent(t,_.default,{icon:B,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):r.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),z=d.default.ColumnsView.inherit({_resizeCore:r.noop,_isWinDevice:function(){return!!w.default.real().win},_updateList:function(e){var t,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),o=this._columnChooserList,a=this._columnsController.getChooserColumns(i);if(i&&o&&e&&"selection"===e.changeType){t=H(this,a);for(var r=0;r<t.length;r++)t[r].id===e.columnIndex&&o.option("items["+r+"].selected",t[r].selected)}else i&&o&&"full"!==e||(this._popupContainer._wrapper().toggleClass(this.addWidgetPrefix(A),!i).toggleClass(this.addWidgetPrefix(P),i),t=H(this,a),this._renderTreeView(n,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(S)),n=e.option("columnChooser"),i=f.default.current(),o=f.default.isGeneric(i),r=f.default.isMaterial(i),s={
visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,toolbarItems:[{text:n.title,toolbar:"top",location:o||r?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&(0,a.default)("body").removeClass(e.addWidgetPrefix(T))},container:n.container};o||r?(0,k.extend)(s,{showCloseButton:!0}):s.toolbarItems[s.toolbarItems.length]={shortcut:"cancel"},(0,C.isDefined)(this._popupContainer)?this._popupContainer.option(s):(e._popupContainer=e._createComponent(t,b.default,s),e._popupContainer.on("optionChanged",function(t){"visible"===t.name&&e.renderCompleted.fire()}))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderTreeView:function(e,t){var n,i,o=this,s=this.option("columnChooser"),l="select"===s.mode,u={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:s.allowSearch,searchTimeout:s.searchTimeout,onItemRendered:function(e){if(e.itemData.disableCheckBox){var t=(0,a.default)(e.itemElement).closest(F),n=void 0,i=void 0;t.length&&(i=t.find(R),i.length&&(n=i.data("dxCheckBox"),n&&n.option("disabled",!0)))}}};i=e.find(".dx-scrollable").data("dxScrollable"),n=i&&i.scrollTop(),l&&!this._columnsController.isBandColumnsUsed()&&e.addClass(this.addWidgetPrefix(O)),u.onContentReady=function(e){(0,r.deferUpdate)(function(){if(n){var t=(0,a.default)(e.element).find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:n})}o.renderCompleted.fire()})},this._isWinDevice()&&(u.useNativeScrolling=!1),(0,k.extend)(u,l?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(u.searchEnabled||(u.searchValue=""),this._columnChooserList.option(u)):(this._columnChooserList=this._createComponent(e,v.default,u),e.addClass(this.addWidgetPrefix(E)))},_prepareDragModeConfig:function(){var e=this.option("columnChooser");return{noDataText:e.emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,n){(0,a.default)(n).text(e.text).parent().addClass(e.cssClass).addClass(M)}}},_prepareSelectModeConfig:function(){var e=this,t=function(t){var n=e._columnsController.getVisibleColumns().filter(function(e){return!e.command}),i=1===n.length&&!t.itemData.selected;i?t.component.selectItem(t.itemElement):setTimeout(function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)},V)};return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:t}},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames,i="select"===this.option("columnChooser.mode");this.callBase(e),i&&(n.visible&&1===n.length&&void 0!==e.columnIndex?this.render(null,{changeType:"selection",columnIndex:e.columnIndex}):(n.showInColumnChooser||n.visible||t.columns&&n.all)&&this.render(null,"full"))},optionChanged:function(e){switch(e.name){case"columnChooser":this._initializePopupContainer(),this.render(null,"full");break;default:this.callBase(e)}},getColumnElements:function(){var e,t,n=[],i="select"===this.option("columnChooser.mode"),o=this._columnsController.getChooserColumns(i),r=this._popupContainer&&this._popupContainer.$content(),s=r&&r.find(".dx-treeview-node");return s&&o.forEach(function(i){e=s.filter("[data-item-id = '"+i.index+"']"),t=e.length?e.children("."+M).get(0):null,n.push(t)}),(0,a.default)(n)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var n=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var e,t=this,n=t._popupContainer&&t._popupContainer._container();return n&&n.is(":visible")?(e=n.offset(),{left:e.left,top:e.top,right:e.left+n.outerWidth(),bottom:e.top+n.outerHeight()}):null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,a.default)("body").addClass(this.addWidgetPrefix(T))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}});e.exports={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:h.default.format("dxDataGrid-columnChooserTitle"),emptyPanelText:h.default.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:L},views:{columnChooserView:z},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this,n=t.option("columnChooser.enabled");if(n){var i=function(){t.component.getView("columnChooserView").showColumnChooser()},o=function(e){(0,a.default)(e.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(D)))},r=t.option("columnChooser.title"),s={widget:"dxButton",options:{icon:B,onClick:i,hint:r,text:r,onInitialized:o},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(s)}return e},optionChanged:function(e){switch(e.name){case"columnChooser":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.option("columnChooser.enabled");return e.callBase()||t}}},controllers:{columns:{allowMoveColumn:function(e,t,n,i){var o=this.option("columnChooser.mode"),a="select"===o&&"columnChooser"===i;return!a&&this.callBase(e,t,n,i)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(9),s=i(r),l=n(249),u=i(l),d=n(0),c=n(632),h=i(c),p="dx-treeview",f=p+"-node-container",g=h.default.inherit(u.default).inherit({_addWidgetPrefix:function(e){return p+"-"+e},_optionChanged:function(e){switch(e.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer();break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(e)}},_updateDataAdapter:function(){this._setOptionSilent("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionSilent("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,d.extend)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var e=this._getSearchEditorOptions();this._searchEditor.option(e)}},_repaintContainer:function(){var e,t=this.$element().find("."+f).first();t.length&&(t.empty(),e=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(e),this._renderItems(t,e),this._fireContentReadyAction())},_itemContainer:function(e){return this._scrollableContainer&&e?(0,a.default)(this._scrollableContainer.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,s.default)("dxTreeView",g),e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(15),s=i(r),l=n(24),u=i(l),d=n(41),c=n(6);t.createOffsetFilter=function(e,t){var n,i,o,a,r,s=(0,d.normalizeSortingInfo)(t.group),l=[];for(n=0;n<e.length;n++){for(o=[],i=0;i<=n;i++)a=s[i].selector,n!==i||null!==e[i]&&e[i]!==!1&&e[i]!==!0?(r=[a,n===i?s[i].desc?">":"<":"=",e[i]],"<"===r[1]?o.push([r,"or",[a,"=",null]]):o.push(r)):e[i]===!1?o.push([a,"=",!!s[i].desc||null]):(e[i]?!s[i].desc:s[i].desc)?o.push([a,"<>",e[i]]):(o.push([a,"<>",null]),o.push([a,"=",null]));l.push(u.default.combineFilters(o))}return l=u.default.combineFilters(l,"or"),u.default.combineFilters([l,t.filter])},t.GroupingHelper=s.default.inherit(function(){var e=function(e,t){var n=e.hash;return n&&n[JSON.stringify(t)]},t=function(e,t){var n,i=0,o=e.length-1;if(!e.length)return 0;do{var a=o+i>>1;e[a].offset>t?o=a:i=a}while(o-i>1);for(n=i;n<=o&&!(e[n].offset>t);n++);return n},n=function(e,t){var n,i;for(t=t||[],i=0;i<e.length;i++)if(n=e[i],n.data&&n.data.offset!==n.offset){n.offset=n.data.offset;for(var o=0;o<t.length;o++)t[o].offset=n.offset}e.sort(function(e,t){return e.offset-t.offset})},i=function e(t,n,i){var o;for(o=0;o<t.length;o++)n+1>=i?t[o].children=[]:e(t[o].children,n+1,i)},o=function e(t,n,i){var o,a=0;if(n)if(i)for(o=0;o<n.length;o++)t.isGroupItemCountable(n[o])&&a++,a+=e(t,n[o].items,i-1);else a=n.length;return a};return{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function e(){var t=this._dataSource,n=t._dataSource,i=u.default.normalizeSortingInfo(n.group()||[]).length,e=o(this,n.items(),i);return e},foreachGroups:function(e,t,i,o,r){function s(e,t,l,u){function d(e,t,n,i){var o=t&&e(t,n);return o&&i.push(o),o}var h,p,f=[];for(h=0;h<e.length;h++){if(u.push(e[h].data),!l&&d(t,e[h].data,u,f)===!1)return!1;if((!e[h].data||e[h].data.isExpanded||i)&&(p=s(e[h].children,t,l,u),p&&f.push(p),p===!1))return!1;if(l&&d(t,e[h].data,u,f)===!1)return!1;e[h].data&&e[h].data.offset===e[h].offset||(o=!0),u.pop()}var g=r&&u.slice(0);return o&&c.when.apply(a.default,f).always(function(){n(e,g)})}var l=this;return s(l._groupsInfo,e,t,[])},findGroupInfo:function(t){var n,i,o=this,a=o._groupsInfo;for(n=0;a&&n<t.length;n++)i=e(a,t[n]),a=i&&i.children;return i&&i.data},addGroupInfo:function(i){var o,a,r,s=this,l=i.path,u=s._groupsInfo;for(r=0;r<l.length;r++)a=e(u,l[r]),a||(a={key:l[r],offset:i.offset,data:{offset:i.offset,isExpanded:!0,path:l.slice(0,r+1)},children:[]},o=t(u,i.offset),u.splice(o,0,a),u.hash=u.hash||{},u.hash[JSON.stringify(a.key)]=a),r===l.length-1&&(a.data=i,a.offset!==i.offset&&n(u)),u=a.children},allowCollapseAll:function(){return!0},refresh:function(e){var t,n=this,o=e.storeLoadOptions,a=(0,d.normalizeSortingInfo)(o.group||[]),r="_group"in n?(0,d.normalizeSortingInfo)(n._group||[]):a,s=Math.min(r.length,a.length);for(n._group=o.group,t=0;t<s;t++)if(r[t].selector!==a[t].selector){s=t;break}s?i(n._groupsInfo,0,s):n.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,t){t(e)},handleDataLoadedCore:function(e,t){t(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(36),s=i(r),l=n(4),u=n(3),d=n(1),c=n(6),h="dx-master-detail-cell",p="dx-master-detail-row",f="dx-cell-focus-disabled",g="dx-row-lines";e.exports={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:s.default.getExpandCellTemplate()}),e}},data:function(){var e=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")};return{init:function(){var t=this;e(t),t.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,n=s.default.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(n>=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n,i=this;if(Array.isArray(e))return i.callBase.apply(i,arguments);if(t=s.default.getIndexByKey(e,i._expandedItems),t>=0){var o=i._expandedItems[t].visible;i._expandedItems[t].visible=!o}else i._expandedItems.push({key:e,visible:!0}),n=i.getController("editing"),n&&n.correctEditRowIndexAfterExpand(e);i.updateItems({changeType:"update",rowIndices:i._getRowIndicesForExpand(e)})},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,u.each)(t.visibleColumns,function(e,n){if("expand"===n.command&&!(0,d.isDefined)(n.groupIndex))return t.detailColumnIndex=e,!1})),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n,i=this,o=t.changeType,a=[];return e=i.callBase.apply(i,arguments),"loadingAll"===o?e:("refresh"===o&&(i._expandedItems=(0,l.grep)(i._expandedItems,function(e){return e.visible})),(0,u.each)(e,function(e,t){a.push(t),n=s.default.getIndexByKey(t.key,i._expandedItems),"data"===t.rowType&&(t.isExpanded||n>=0)&&!t.isNewRow&&a.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})}),a)},optionChanged:function(t){var n,i,o,a,r=this;if("masterDetail"===t.name){switch(t.name="dataSource",t.fullName){case"masterDetail":n=t.value||{},i=t.previousValue||{},o=n.enabled!==i.enabled,a=n.autoExpandAll!==i.autoExpandAll;break;case"masterDetail.enabled":o=!0;break;case"masterDetail.autoExpandAll":a=!0}(o||a)&&e(r)}r.callBase(t)}}}(),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(e){var t=this,n=e.closest("."+p);n.length&&(0,c.when)(this._updateMasterDataGrid(n,e)).done(function(){t._updateParentDataGrids(n.parent())})},_updateMasterDataGrid:function(e,t){var n=(0,a.default)(e).data("options"),i=(0,a.default)(e).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(n&&i){if(!i.getView("rowsView").isFixedColumns()){var o=i.getScrollable();return o&&o.update()}this._updateFixedMasterDetailGrids(i,n.rowIndex,t)}},_updateFixedMasterDetailGrids:function(e,t,n){var i=this,o=(0,a.default)(e.getRowElement(t));if(o&&2===o.length&&o.eq(0).height()!==o.eq(1).height()){var r=n.width();return e.updateDimensions().done(function(){var t=i.option("columnAutoWidth")&&e.option("scrolling.useNative")===!0,o=t&&r!==n.width();t&&o&&i.updateDimensions()})}}}},views:{rowsView:function(){return{_getCellTemplate:function(e){var t,n=this,i=e.column,o=n.getController("editing"),a=o&&o.isEditRow(e.rowIndex);return t="detail"!==i.command||a?n.callBase.apply(n,arguments):n.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:n._getDefaultTemplate(i)}},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase(e);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass(g),t.addClass(p),(0,d.isDefined)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var n,i=t.row,o=this._columnsController.getVisibleColumns();i.rowType&&this._isDetailRow(i)?this._needRenderCell(0,t.columnIndices)&&(n=this._renderCell(e,{value:null,row:i,rowIndex:i.rowIndex,column:{command:"detail"},columnIndex:0}),n.addClass(f).addClass(h).attr("colSpan",o.length)):this.callBase.apply(this,arguments)}}}()}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(5),u=i(l),d=n(40),c=i(d),h=n(20),p=i(h),f=n(23),g=i(f),_=n(78),m=i(_),v=n(8),y=n(25),w=i(y),x=n(0),b=n(361),C=i(b),k=n(36),I="dx-editor-inline-block",S="dx-cell-focus-disabled",D="focus-overlay",T="content",E="dx-focused",O="dx-row",A="dxDataGridEditorFactory",P=(0,v.addNamespace)([g.default.down,"focusin",p.default.name].join(" "),A),B="dx-pointer-events-target",M="dx-pointer-events-none",F="dx-hidden",R=c.default.ViewController.inherit({_getFocusedElement:function(e){var t=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",n="td[tabindex]:focus, "+t+", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus";return e.find(n)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.$element();return i&&(n=this._getFocusedElement(i),n.length&&(n.hasClass(S)||n.hasClass(O)||(e=n.closest(this._getFocusCellSelector()+", ."+S),t=e.get(0)!==n.get(0)&&e.hasClass(I),n=e),n.length&&!n.hasClass(S)))?void this.focus(n,t):void this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.event&&(0,a.default)(e.event.target).hasClass(t.addWidgetPrefix(D));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})},_updateFocusOverlaySize:function(e,t){e.hide();var n=m.default.calculate(e,(0,x.extend)({collision:"fit"},t));n.h.oversize>0&&e.outerWidth(e.outerWidth()-n.h.oversize),n.v.oversize>0&&e.outerHeight(e.outerHeight()-n.v.oversize),e.show()},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;return void 0===e?n._$focusedElement:void(e&&(e.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass(E),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout(function(){delete n._focusTimeoutID,n.renderFocusOverlay(e,t),e.addClass(E),n.focused.fire(e)})))},renderFocusOverlay:function(e,t){var n,i=this;if((0,k.isElementInCurrentGrid)(this,e))if(i._$focusOverlay||(i._$focusOverlay=(0,a.default)("<div>").addClass(i.addWidgetPrefix(D)+" "+B)),t)i._$focusOverlay.addClass(F);else if(e.length){var o=w.default.msie?"left bottom":w.default.mozilla?"right bottom":"left top",r=e.closest("."+i.addWidgetPrefix(T)),s=e[0].getBoundingClientRect();i._$focusOverlay.removeClass(F).appendTo(r).outerWidth(s.right-s.left+1).outerHeight(s.bottom-s.top+1),n={precise:!0,my:o,at:o,of:e,boundary:r.length&&r},i._updateFocusOverlaySize(i._$focusOverlay,n),m.default.setup(i._$focusOverlay,n),i._$focusOverlay.css("visibility","visible")}},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(E),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(F)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),u.default.on(s.default.getDocument(),P,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element();t&&u.default.on(t,(0,v.addNamespace)("keydown",A),function(t){"tab"===(0,v.normalizeKeyName)(t)&&e._updateFocusHandler(t)})},_focusOverlayEventProxy:function(e){var t,n=(0,a.default)(e.target),i=(0,a.default)(e.currentTarget),o=n.hasClass(B)||n.hasClass(M);o&&!i.hasClass(F)&&(i.addClass(F),t=n.get(0).ownerDocument.elementFromPoint(e.clientX,e.clientY),(0,v.fireEvent)({originalEvent:e,target:t}),e.stopPropagation(),i.removeClass(F),e.type===p.default.name&&"INPUT"===t.tagName&&u.default.trigger((0,a.default)(t),"focus"))},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),u.default.off(s.default.getDocument(),P,this._updateFocusHandler)}}).include(C.default);e.exports={defaultOptions:function(){return{}},controllers:{editorFactory:R},extenders:{controllers:{columnsResizer:{_startResizing:function(e){this.callBase(e),this.isResizing()&&this.getController("editorFactory").loseFocus()}}}}}},function(e,t,n){var i=n(2),o=n(4).noop,a=n(5),r=n(1),s=n(89).isWrapped,l=n(18).compileGetter,u=n(25),d=n(0).extend,c=n(16),h=n(11).getPublicElement,p=n(46).normalizeDataSourceOptions,f=n(8).normalizeKeyName;n(93),n(119),n(105),n(95),n(195);var g="checkbox-size",_="dx-cell-focus-disabled",m="dx-editor-inline-block",v=function(){var e=function(e,t){return d(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},t=function(){return u.msie||u.mozilla||c.real().ios},n=function(n){var o={},s=t(),l=n.sharedData||o;return e({placeholder:n.placeholder,width:n.width,value:n.value,onValueChanged:function(e){var t="filterRow"===n.parentType||"searchPanel"===n.parentType,i=e.event&&("input"===e.event.type||"keyup"===e.event.type),a=function(e,t){n&&n.setValue(e.value,t)};clearTimeout(o.valueChangeTimeout),i&&t?l.valueChangeTimeout=o.valueChangeTimeout=setTimeout(function(){a(e,o.valueChangeTimeout!==l.valueChangeTimeout)},r.isDefined(n.updateValueTimeout)?n.updateValueTimeout:0):a(e)},onKeyDown:function(e){s&&"enter"===f(e.event)&&a.trigger(i(e.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===n.parentType?" keyup input":"")},n)},v=function(n){n.editorName="dxDateBox",n.editorOptions=e({value:n.value,onValueChanged:function(e){n.setValue(e.value)},onKeyDown:function(e){t()&&"enter"===f(e.event)&&(e.component.blur(),e.component.focus())},displayFormat:n.format,type:n.dataType,formatWidthCalculator:null,dateSerializationFormat:null,width:"filterBuilder"===n.parentType?void 0:"auto"},n)},y=function(e){var t=n(e),i="searchPanel"===e.parentType,o=function(e){return r.isDefined(e)?e.toString():""};e.editorType&&"dxTextBox"!==e.editorType?t.value=e.value:t.value=o(e.value),t.valueChangeEvent+=i?" keyup input search":"",t.mode=t.mode||(i?"search":"text"),e.editorName="dxTextBox",e.editorOptions=t},w=function(e){var t=n(e);t.value=r.isDefined(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t},x=function(e){"filterRow"===e.parentType||"filterBuilder"===e.parentType?b(d(e,{lookup:{displayExpr:function(t){return t===!0?e.trueText||"true":t===!1?e.falseText||"false":void 0},dataSource:[!0,!1]}})):C(e)},b=function(t){var n,i,o,a=t.lookup,u="filterRow"===t.parentType;if(a){n=l(a.displayExpr),i=a.dataSource,r.isFunction(i)&&!s(i)&&(i=i(t.row||{})),(r.isObject(i)||Array.isArray(i))&&(i=p(i),u&&(o=i.postProcess,i.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0),e.unshift(null)),o?o.call(this,e):e}));var d=Boolean(a.allowClearing&&!u);t.editorName="dxSelectBox",t.editorOptions=e({searchEnabled:!0,value:t.value,valueExpr:t.lookup.valueExpr,searchExpr:t.lookup.searchExpr||t.lookup.displayExpr,allowClearing:d,showClearButton:d,displayExpr:function(e){return null===e?t.showAllText:n(e)},dataSource:i,onValueChanged:function(e){var n=[e.value];!u&&n.push(e.component.option("text")),t.setValue.apply(this,n)}},t)}},C=function(t){t.editorName="dxCheckBox",t.editorOptions=e({value:r.isDefined(t.value)?t.value:void 0,hoverStateEnabled:!t.readOnly,focusStateEnabled:!t.readOnly,activeStateEnabled:!1,onValueChanged:function(e){t.setValue&&t.setValue(e.value,e)}},t)},k=function(e,t){var n=i(t.editorElement);t.editorName&&t.editorOptions&&n[t.editorName]&&("dxCheckBox"===t.editorName&&(t.isOnForm||(n.addClass(e.addWidgetPrefix(g)),n.parent().addClass(m)),(t.command||t.editorOptions.readOnly)&&n.parent().addClass(_)),e._createComponent(n,t.editorName,t.editorOptions),"dxTextBox"===t.editorName&&n.dxTextBox("instance").registerKeyHandler("enter",o),"dxDateBox"===t.editorName&&n.dxDateBox("instance").registerKeyHandler("enter",o),"dxTextArea"===t.editorName&&n.dxTextArea("instance").registerKeyHandler("enter",function(e){"enter"!==f(e)||e.ctrlKey||e.shiftKey||e.stopPropagation()}))};return{createEditor:function(e,t){var n=void 0;if(t.cancel=!1,t.editorElement=h(e),r.isDefined(t.tabIndex)||(t.tabIndex=this.option("tabIndex")),t.lookup)b(t);else switch(t.dataType){case"date":case"datetime":v(t);break;case"boolean":x(t);break;case"number":w(t);break;default:y(t)}n=t.editorName,this.executeAction("onEditorPreparing",t),t.cancel||("dataRow"===t.parentType&&t.editorType&&n===t.editorName&&(t.editorName=t.editorType),k(this,t),this.executeAction("onEditorPrepared",t))}}}();e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(2),r=i(a),s=n(12),l=i(s),u=n(7),d=n(5),c=i(d),h=n(34),p=i(h),f=n(1),g=i(f),_=n(3),m=n(0),v=n(40),y=i(v),w=n(20),x=i(w),b=n(135),C=i(b),k=n(23),I=i(k),S=n(36),D=n(8),T=n(242),E=i(T),O=n(10),A=i(O),P=n(35),B=i(P),M=n(44),F=i(M),R=n(19),V=i(R),H=n(16),L=i(H),z=n(121),$=i(z),N=n(91),W=i(N),j=n(6),q=i(j),G=n(4),K=i(G),U=n(56),Y=i(U),X=n(94),Z=i(X),Q="edit-form",J="edit-form-item",ee="focus-overlay",te="readonly",ne="edit-popup",ie="form-buttons-container",oe="addrow-button",ae="dx-dropdowneditor-overlay",re="dx-link",se="dx-editor-cell",le="dx-selection",ue="dx-edit-row",de="dx-edit-button",ce="dx-command-edit",he=ce+"-with-icons",pe="dx-scrollable-container",fe="dx-button",ge="__DX_INSERT_INDEX__",_e="dx-row",me="dx-row-removed",ve="dx-row-inserted",ye="dx-row-modified",we="dx-cell-modified",xe="dx-highlight-outline",be="dxDataGridEditing",Ce="dx-data-row",ke="dx-cell-focus-disabled",Ie="input:not([type='hidden'])",Se="[tabindex], "+Ie,De="batch",Te="row",Ee="cell",Oe="form",Ae="popup",Pe="insert",Be="update",Me="remove",Fe="dx-pointer-events-target",Re="click",Ve=[De,Te,Ee,Oe,Ae],He=[Te,Oe,Ae],Le=[De,Ee],ze=[Oe,Ae],$e=[Te,Oe],Ne="targetComponent",We={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete","delete":"dx-link-delete",add:"dx-link-add"},je={save:"save",cancel:"revert",edit:"edit",undelete:"revert","delete":"trash",add:"add"},qe={edit:"editRow","delete":"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},Ge={add:"allowAdding",edit:"allowUpdating","delete":"allowDeleting"},Ke=["edit","save","cancel","delete","undelete"],Ue=function(e){return function(t){var n=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(n)}},Ye=function(e){var t=e.option("editing.mode");return Ve.indexOf(t)!==-1?t:Te},Xe=function(e){var t=Ye(e);return He.indexOf(t)!==-1},Ze=y.default.ViewController.inherit(function(){var e=function(e){return function(t,n){var i=(0,r.default)("<div>").appendTo(t);e.getController("editorFactory").createEditor(i,(0,m.extend)({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id}))}},t=function(e){var t=e.component.option("editing.texts")||{};return{save:t.saveRowChanges,cancel:t.cancelRowChanges,edit:t.editRow,undelete:t.undeleteRow,"delete":t.deleteRow,add:t.addRowToNode}},n=function(e,t){var n=-1;return e.some(function(e,o){if(i(e)===t)return n=o,!0}),n},i=function(e){return g.default.isObject(e)?e.name:e},a=function(e){var t=e.column;return e.isCustomEditorType?e.editorType:t.formItem&&t.formItem.editorType},s=function e(t,n){t.forEach(function(t){t.items||t.tabs?e(t.items||t.tabs,n):n(t)})};return{init:function(){var e=this;if(e._editRowIndex=-1,e._editData=[],e._editColumnIndex=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._editForm=null,e._updateEditFormDeferred=null,e._deferreds&&e._deferreds.forEach(function(e){return e.reject("cancel")}),e._deferreds=[],e._dataChangedHandler||(e._dataChangedHandler=e._handleDataChanged.bind(e),e._dataController.changed.add(e._dataChangedHandler)),!e._saveEditorHandler){e.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),e.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]});var t=void 0;e._pointerDownEditorHandler=function(e){return t=(0,r.default)(e.target)},e._saveEditorHandler=e.createAction(function(n){var i,o,a,s,l,d,c=n.event,h=(0,r.default)(c.target),p=c[Ne];t&&t.is("input")&&!t.is(h)||Xe(e)||e._editCellInProgress||(i=!!h.closest("."+ae).length,o=!!h.closest((0,u.getWindow)().document).length,d=p&&p!==e.component,s=!!h.closest("."+e.addWidgetPrefix(oe)).length,a=h.hasClass(e.addWidgetPrefix(ee)),l=Ye(e)===Ee,i||a||s&&l&&e.isEditing()||!o&&!d||e._closeEditItem.bind(e)(h))}),c.default.on(l.default.getDocument(),I.default.down,e._pointerDownEditorHandler),c.default.on(l.default.getDocument(),x.default.name,e._saveEditorHandler)}e._updateEditColumn(),e._updateEditButtons()},getUpdatedData:function(e){var t=this._dataController.keyOf(e),n=this._editData,i=(0,S.getIndexByKey)(t,n);return n[i]?(0,S.createObjectWithChanges)(e,n[i].data):e},getInsertedData:function(){return this._editData.filter(function(e){return e.data&&e.type===Pe}).map(function(e){return e.data})},getRemovedData:function(){return this._editData.filter(function(e){return e.oldData&&e.type===Me}).map(function(e){return e.oldData})},_fireDataErrorOccurred:function(e){if("cancel"!==e){var t=this.getPopupContent();this._dataController.dataErrorOccurred.fire(e,t)}},_needToCloseEditableCell:function(e){var t=this.component.$element(),n=this.isEditing(),i=!t||!!e.closest(t).length;if(i){var o=e.closest("."+Ce).length;if(o){var a=this.getView("rowsView"),r=e.closest("."+_e+"> td"),s=a.getRowIndex(r.parent()),l=a.getCellElements(s).index(r),u=this._columnsController.getVisibleColumns(),d=u[l]&&u[l].allowEditing;n=n&&!d&&!this.isEditCell(s,l)}}return n},_closeEditItem:function(e){this._needToCloseEditableCell(e)&&this.closeEditCell()},_handleDataChanged:function(e){var t=this,n=t._editForm;"standard"===t.option("scrolling.mode")&&t.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,_.each)(t._editData,function(t,n){n.rowIndex+=e.items.length}),"refresh"===e.changeType&&Ye(t)===Ae&&n&&n.option("visible")&&this._repaintEditPopup()},_isDefaultButtonVisible:function(e,t){var n=!0,i=Xe(this),o=t.row&&t.row.rowIndex===this._getVisibleEditRowIndex()&&i;switch(e.name){case"edit":n=!o&&this.allowUpdating(t)&&i;break;case"save":case"cancel":n=o;break;case"delete":n=!o&&this.allowDeleting(t)&&!t.row.removed;break;case"undelete":n=this.allowDeleting(t)&&t.row.removed}return n},_isButtonVisible:function(e,t){var n=e.visible;return g.default.isDefined(n)?g.default.isFunction(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):n:this._isDefaultButtonVisible(e,t)},_getButtonConfig:function(e,n){var o=this,a=g.default.isObject(e)?e:{},r=i(e),s=t(n),l=qe[r],u=this.option("editing"),d=Ge[r],c=!d||u[d];return(0,m.extend)({name:r,text:s[r],cssClass:We[r],onClick:function(e){var t=e.event;t.stopPropagation(),t.preventDefault(),setTimeout(function(){n.row&&c&&o[l]&&o[l](n.row.rowIndex)})}},a)},_getEditingButtons:function(e){var t,i=this,o=!!e.column.buttons,a=(e.column.buttons||[]).slice();return o?(t=n(a,"edit"),t>=0&&(n(a,"save")<0&&a.splice(t+1,0,"save"),n(a,"cancel")<0&&a.splice(n(a,"save")+1,0,"cancel")),t=n(a,"delete"),t>=0&&n(a,"undelete")<0&&a.splice(t+1,0,"undelete")):a=Ke.slice(),a.map(function(t){return i._getButtonConfig(t,e)})},_renderEditingButtons:function(e,t,n){var i=this;t.forEach(function(t){i._isButtonVisible(t,n)&&i._createButton(e,t,n)})},_getEditCommandCellTemplate:function(){
var e=this;return function(t,n){var i,o=(0,r.default)(t);"data"===n.rowType?(n.rtlEnabled=e.option("rtlEnabled"),i=e._getEditingButtons(n),e._renderEditingButtons(o,i,n),n.watch&&n.watch(function(){return i.map(function(t){return e._isButtonVisible(t,n)})},function(){o.empty(),e._renderEditingButtons(o,i,n)})):(0,S.setEmptyText)(o)}},correctEditRowIndexAfterExpand:function(e){this._editRowIndex>this._dataController.getRowIndexByKey(e)&&this._editRowIndex++},correctEditRowIndex:function(e){this._editRowIndex+=e(this._getVisibleEditRowIndex())},isRowEditMode:function(){return Xe(this)},isFormEditMode:function(){var e=Ye(this);return ze.indexOf(e)!==-1},isCellOrBatchEditMode:function(){var e=this.getEditMode();return e===De||e===Ee},getEditMode:function(){return Ye(this)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns"),n=this._firstFormItem;if(Ye(this)===Oe&&n){var i=this._rowsView.getCellElements(this._editRowIndex);e=this._rowsView._getEditFormEditorVisibleIndex(i,n.column)}else{var o=t.getVisibleColumns();(0,_.each)(o,function(t,n){if(n.allowEditing)return e=t,!1})}return e},getFirstEditableCellInRow:function(e){var t=this.getView("rowsView");return t&&t._getCellElement(e?e:0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return(0,S.getIndexByKey)(e,t)},hasChanges:function(e){for(var t=this,n=!1,i=0;i<t._editData.length;i++)if(t._editData[i].type&&(!g.default.isDefined(e)||t._dataController.getRowIndexByKey(t._editData[i].key)===e)){n=!0;break}return n},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),c.default.off(l.default.getDocument(),I.default.down,this._pointerDownEditorHandler),c.default.off(l.default.getDocument(),x.default.name,this._saveEditorHandler)},optionChanged:function(e){"editing"===e.name?(this._editPopup&&this._editPopup.option("visible")&&0===e.fullName.indexOf("editing.form")?this._repaintEditPopup():this.init(),e.handled=!0):this.callBase(e)},publicMethods:function(){return["insertRow","addRow","removeRow","deleteRow","undeleteRow","editRow","editCell","closeEditCell","saveEditData","cancelEditData","hasEditData"]},refresh:function(){Ye(this)!==Ee&&(Ye(this)!==De?this.init():(this._editRowIndex=-1,this._editColumnIndex=-1))},isEditing:function(){return this._editRowIndex>-1},isEditRow:function(e){var t=Ye(this);return this._getVisibleEditRowIndex()===e&&He.indexOf(t)!==-1},getEditRowKey:function(){var e=this._dataController.items(),t=e[this._getVisibleEditRowIndex()];return t&&t.key},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){var e=Ye(this);return e===Oe||e===Ae?this._getVisibleEditRowIndex():-1},isEditCell:function(e,t){var n=!(!Array.isArray(this._editData)||!this._editData.length);return n&&this._getVisibleEditRowIndex()===e&&this._editColumnIndex===t},getPopupContent:function(){var e=Ye(this),t=this._editPopup&&this._editPopup.option("visible");if(e===Ae&&t)return this._$popupContent},getEditForm:function(){return this._editForm},_needInsertItem:function(e,t){var n=this,i=n._dataController.dataSource(),o=n.option("scrolling.mode"),a=i.pageIndex(),r=i.beginPageIndex?i.beginPageIndex():a,s=i.endPageIndex?i.endPageIndex():a;if("standard"!==o)switch(t){case"append":return e.key.pageIndex===s;case"prepend":return e.key.pageIndex===r;case"refresh":e.key.rowIndex=0,e.key.dataRowIndex=0,e.key.pageIndex=0;break;default:return e.key.pageIndex>=r&&e.key.pageIndex<=s}return e.key.pageIndex===a},_generateNewItem:function(e){var t={key:e};return e&&e[ge]&&(t[ge]=e[ge]),t},processItems:function(e,t){var n,i,o,a,r=t.changeType,s=this._dataController,l=-1;this.update(r),o=this._editData;for(var u=0;u<o.length;u++)n=o[u].key,n&&(a=s.getRowIndexOffset(),l=n.dataRowIndex-a+s.getRowIndexDelta(),"append"===r&&(l-=s.items(!0).length,t.removeCount&&(l+=t.removeCount)),i=this._generateNewItem(n),l>=0&&o[u].type===Pe&&this._needInsertItem(o[u],r,e,i)&&e.splice(n.dataRowIndex?l:0,0,i));return e},processDataItem:function(e,t,n){var i,o,a,r,s=this,l=t.visibleColumns,u=e.data[ge]?e.data.key:e.key;if(r=(0,S.getIndexByKey)(u,s._editData),r>=0)switch(o=Ye(s),a=s._editData[r],i=a.data,e.isEditing=!1,a.type){case Pe:o===Ae&&(e.visible=!1),e.isNewRow=!0,e.key=u,e.data=i;break;case Be:e.modified=!0,e.oldData=e.data,e.data=(0,S.createObjectWithChanges)(e.data,i),e.modifiedValues=n(i,l,!0);break;case Me:o===De&&(e.data=(0,S.createObjectWithChanges)(e.data,i)),e.removed=!0}},insertRow:function(){return V.default.log("W0002","dxDataGrid","insertRow","15.2","Use the 'addRow' method instead"),this.addRow()},_initNewRow:function(e){var t=this;if(this.executeAction("onInitNewRow",e),e.promise){var n=new j.Deferred;return(0,j.when)((0,j.fromPromise)(e.promise)).done(n.resolve).fail(Ue(n)).fail(function(e){return t._fireDataErrorOccurred(e)}),n}},_getInsertKey:function(e){var t,n,i=this,o=i._dataController,a=o.items(),r=Ye(i);return t={parentKey:e,pageIndex:o.pageIndex(),rowIndex:i._getInsertRowIndex(e)},n=a[t.rowIndex],n&&(!n.isEditing&&"detail"===n.rowType||"detailAdaptive"===n.rowType)&&t.rowIndex++,t.dataRowIndex=o.getRowIndexOffset()+a.filter(function(e,n){return n<t.rowIndex&&("data"===e.rowType||"group"===e.rowType||e.isNewRow)}).length,r!==De&&(i._editRowIndex=t.rowIndex+i._dataController.getRowIndexOffset()),t[ge]=i._getInsertIndex(),t},_getInsertRowIndex:function(e){var t=this,n=t.getView("rowsView"),i=t._dataController.getRowIndexByKey(e);return i>=0?i+1:n?n.getTopVisibleItemIndex(!0):0},_getInsertIndex:function(){var e=0;return this._editData.forEach(function(t){t.type===Pe&&t.key[ge]>e&&(e=t.key[ge])}),e+1},addRow:function(e){var t=this,n=t._dataController,i=n.store(),o=i&&i.key(),a={data:{}},r=Ye(t),s=t._getVisibleEditRowIndex();return i?r===Ee&&t.hasChanges()?void t.saveEditData().done(function(){t.hasChanges()||t.addRow(e)}):(t.refresh(),void(t._allowRowAdding()&&(o||(a.data.__KEY__=String(new p.default)),(0,j.when)(t._initNewRow(a,e)).done(function(){t._allowRowAdding()&&t._addRowCore(a.data,e,s)})))):void n.fireError("E1052",this.component.NAME)},_allowRowAdding:function(){var e=this,t=Ye(e),n=e._getInsertIndex();return!(t!==De&&n>1)},_addRowCore:function(e,t,n){var i=this,o=i._getVisibleEditRowIndex(),a=i._getInsertKey(t),r=Ye(i);i._addEditData({key:a,data:e,type:Pe}),i._dataController.updateItems({changeType:"update",rowIndices:[n,o,a.rowIndex]}),r===Ae?i._showEditPopup(a.rowIndex):i._focusFirstEditableCellInRow(a.rowIndex),i._afterInsertRow({key:a,data:e})},_focusFirstEditableCellInRow:function(e){var t=this,n=t.getFirstEditableCellInRow(e);t._editCellInProgress=!0,t._delayedInputFocus(n,function(){t._editCellInProgress=!1;var n=t.getFirstEditableCellInRow(e),i="dblClick"===t.option("editing.startEditAction")?C.default.name:x.default.name;n&&c.default.trigger(n,i)})},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeEditCell:function(e,t,n){var i=this;if(Ye(i)===Ee&&!n.isNewRow&&i.hasChanges()){var o=new j.Deferred;return i.saveEditData().always(function(){o.resolve(i.hasChanges())}),o}},_beforeUpdateItems:function(){},_getVisibleEditRowIndex:function(){return this._editRowIndex>=0?this._editRowIndex-this._dataController.getRowIndexOffset():-1},editRow:function(e){var t,n=this,i=n._dataController,o=i.items(),a=o[e],r={data:a&&a.data,cancel:!1},s=n._getVisibleEditRowIndex();if(a){if(e===s)return!0;if(a.isNewRow||(r.key=a.key),!n._isEditingStart(r)){n.init(),n._pageIndex=i.pageIndex(),n._editRowIndex=(o[0].isNewRow?e-1:e)+n._dataController.getRowIndexOffset(),n._addEditData({data:{},key:a.key,oldData:a.data});var l=[s,e],u=Ye(n);n._beforeUpdateItems(l,e,s),u===Ae?n._showEditPopup(e):i.updateItems({changeType:"update",rowIndices:l}),$e.indexOf(u)!==-1&&(t=n.getFocusedCellInRow(n._getVisibleEditRowIndex()),n._delayedInputFocus(t,function(){t&&n.component.focus(t)}))}}},_showEditPopup:function(e,t){var n=this,i="desktop"!==L.default.current().deviceType,o=(0,m.extend)({showTitle:!1,fullScreen:i,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:n._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:n._getCancelButtonConfig()}],contentTemplate:n._getPopupEditFormTemplate(e)},n.option("editing.popup"));if(!n._editPopup){var a=(0,r.default)("<div>").appendTo(n.component.$element()).addClass(n.addWidgetPrefix(ne));n._editPopup=n._createComponent(a,F.default,{}),n._editPopup.on("hiding",n._getEditPopupHiddenHandler()),n._editPopup.on("shown",function(e){c.default.trigger(e.component.$content().find(Se).not("."+pe).first(),"focus"),t&&n._editForm&&n._editForm.repaint()})}n._editPopup.option(o),n._editPopup.show()},_repaintEditPopup:function(){var e=this._getVisibleEditRowIndex();if(this._editPopup&&this._editPopup.option("visible")&&e>=0){var t=this._editPopup.option("animation");this._editPopup.option("animation",null),this._showEditPopup(e,!0),this._editPopup.option("animation",t)}},_getEditPopupHiddenHandler:function(){var e=this;return function(t){e.isEditing()&&e.cancelEditData()}},_getPopupEditFormTemplate:function(e){var t=this,n=t.component.getVisibleRows()[e],i={row:n,rowType:n.rowType,key:n.key};return function(e){var n=t.getEditFormTemplate(),o=t._createComponent((0,r.default)("<div>").appendTo(e),Z.default);t._$popupContent=o.$content(),n(t._$popupContent,i,!0)}},_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeEditDataItem:function(e){e>=0&&this._editData.splice(e,1)},editCell:function(e,t){var n=this,i=new j.Deferred,a=void 0;return j.when.apply(void 0,o(this._deferreds)).done(function(){a=n._editCellCore(e,t),(0,j.when)(a).done(i.resolve).fail(i.reject)}),void 0!==a?a:i.promise()},_editCellCore:function(e,t){var n=this,i=n._columnsController,o=n._dataController,a=o.items(),r=a[e],s={data:r&&r.data,cancel:!1},l=n._getVisibleEditRowIndex(),u=i.getVisibleColumns(),d=u[n._editColumnIndex];g.default.isString(t)&&(t=i.columnOption(t,"index"),t=i.getVisibleIndex(t));var c=s.column=u[t];if(c&&r&&("data"===r.rowType||"detailAdaptive"===r.rowType)&&!r.removed&&!Xe(n)){if(n.isEditCell(e,t))return!0;var h=e+o.getRowIndexOffset();return(0,j.when)(n._beforeEditCell(e,t,r)).done(function(e){e||(n._prepareEditCell(s,r,t,h)?K.default.deferRender(function(){n._repaintEditCell(c,d,l)}):n._processCanceledEditingCell())})}return!1},_processCanceledEditingCell:function(){},_prepareEditCell:function(e,t,n,i){var o=this;return t.isNewRow||(e.key=t.key),!o._isEditingStart(e)&&(o._editRowIndex=i,o._editColumnIndex=n,o._pageIndex=o._dataController.pageIndex(),o._addEditData({data:{},key:t.key,oldData:t.data}),!0)},_repaintEditCell:function(e,t,n){var i=this,o=i._rowsView;e&&e.showEditorAlways&&(!t||t.showEditorAlways)||(i._editCellInProgress=!0,i.getController("editorFactory").loseFocus(),i._dataController.updateItems({changeType:"update",rowIndices:[n,i._getVisibleEditRowIndex()]}));var a=o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex);a&&!a.find(":focus").length?i._focusEditingCell(function(){i._editCellInProgress=!1},a,!0):i._editCellInProgress=!1},_delayedInputFocus:function(e,t,n){function i(){if(t&&t(),e){var n=e.find(Se).first();(0,S.focusAndSelectElement)(o,n)}o._beforeFocusCallback=null}var o=this;L.default.real().ios||L.default.real().android?i():(o._beforeFocusCallback&&o._beforeFocusCallback(),clearTimeout(o._inputFocusTimeoutID),n&&(o._beforeFocusCallback=t),o._inputFocusTimeoutID=setTimeout(i))},_focusEditingCell:function(e,t,n){var i=this,o=i.getView("rowsView");t=t||o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex),i._delayedInputFocus(t,e,n)},removeRow:function(e){return V.default.log("W0002","dxDataGrid","removeRow","15.2","Use the 'deleteRow' method instead"),this.deleteRow(e)},deleteRow:function(e){var t,n,i=this,o=i.option("editing"),a=o&&o.texts,r=a&&a.confirmDeleteTitle,s=o&&o.mode===De,l=a&&a.confirmDeleteMessage,u=i._dataController,d=i._getVisibleEditRowIndex(),c=u.items()[e],h=c&&c.key,p=s||!this.isEditing();c&&p&&(t=function(t){i.refresh();var n=(0,S.getIndexByKey)(t,i._editData);n>=0?i._editData[n].type===Pe?i._removeEditDataItem(n):i._addEditData({key:t,type:Me}):i._addEditData({key:t,oldData:c.data,type:Me}),s?u.updateItems({changeType:"update",rowIndices:[d,e]}):i.saveEditData()},s||!l?t(h):(n=g.default.isDefined(r)&&r.length>0,E.default.confirm(l,r,n).done(function(e){e&&t(h)})))},undeleteRow:function(e){var t=this,n=t._dataController,i=n.items()[e],o=t._getVisibleEditRowIndex(),a=i&&i.key;if(i){var r,s=(0,S.getIndexByKey)(a,t._editData);s>=0&&(r=t._editData[s],g.default.isEmptyObject(r.data)?t._removeEditDataItem(s):t._addEditData({key:a,type:Be}),n.updateItems({changeType:"update",rowIndices:[o,e]}))}},_saveEditDataCore:function(e,t,n){function i(e,t,n){var i=new j.Deferred;return o.executeAction(e,t),(0,j.when)((0,j.fromPromise)(t.cancel)).done(function(e){e?setTimeout(function(){i.resolve("cancel")}):n(t).done(i.resolve).fail(Ue(i))}).fail(Ue(i)),i}var o=this,a=o._dataController.store(),r=!0;return(0,_.each)(o._editData,function(s,l){var u,d,c,h=l.data,p=l.oldData,f=l.type;if(!o._beforeSaveEditData(l,s)){switch(f){case Me:c={data:p,key:l.key,cancel:!1},u=i("onRowRemoving",c,function(){return a.remove(l.key).done(function(e){n.push({type:"remove",key:e})})});break;case Pe:c={data:h,cancel:!1},u=i("onRowInserting",c,function(){return a.insert(c.data).done(function(e,t){g.default.isDefined(t)&&(l.key=t),e&&g.default.isObject(e)&&e!==c.data&&(l.data=e),n.push({type:"insert",data:e,index:0})})});break;case Be:c={newData:h,oldData:p,key:l.key,cancel:!1},u=i("onRowUpdating",c,function(){return a.update(l.key,c.newData).done(function(e,t){e&&g.default.isObject(e)&&e!==c.newData&&(l.data=e),n.push({type:"update",key:t,data:e})})})}u&&(d=new j.Deferred,u.always(function(e){r="cancel"!==e,t.push({key:l.key,result:e})}).always(d.resolve),e.push(d.promise()))}}),r},_processSaveEditDataResult:function(e){var t,n,i,o,a,r,s=this,l=!1,u=Ye(s);for(t=0;t<e.length;t++)if(n=e[t].result,i="cancel"===n,a=(0,S.getIndexByKey)(e[t].key,s._editData),o=s._editData[a],r=n&&n instanceof Error){if(o&&(o.error=n),s._fireDataErrorOccurred(n),u!==De){o&&o.type===Me&&s._removeEditDataItem(a);break}}else i&&o&&(u===De||o.type!==Me)||(s._removeEditDataItem(a),l=!i);return l},_fireSaveEditDataEvents:function(e){var t=this;(0,_.each)(e,function(e,n){var i=n.data,o=n.key,a=n.type,r={key:o,data:i};switch(n.error&&(r.error=n.error),a){case Me:t.executeAction("onRowRemoved",(0,m.extend)({},r,{data:n.oldData}));break;case Pe:t.executeAction("onRowInserted",r);break;case Be:t.executeAction("onRowUpdated",r)}})},saveEditData:function(){var e=this,t=new j.Deferred,n=function(){(0,j.when)(e._afterSaveEditData()).done(function(){t.resolve()})};return j.when.apply(void 0,o(this._deferreds)).done(function(){return e._saving?void n():void(0,j.when)(e._beforeSaveEditData()).done(function(i){return i?void n():void e._saveEditDataInner().done(t.resolve).fail(t.reject)})}).fail(t.reject),t.promise()},_saveEditDataInner:function(){var e=this,t=[],n=[],i=[],o=this._dataController,a=o.dataSource(),s=Ye(this),l=new j.Deferred,u=function(){s!==Ee&&(e._editColumnIndex=-1,e._editRowIndex=-1)},d=function(t){(0,j.when)(e._afterSaveEditData()).done(function(){l.resolve(t)})},c=this._editData.slice(0);return this._saveEditDataCore(n,t,i)||s!==Ee||this._focusEditingCell(),n.length?(this._saving=!0,a&&a.beginLoading(),j.when.apply(r.default,n).done(function(){if(e._processSaveEditDataResult(t)){u(),s===Ae&&e._editPopup&&e._editPopup.hide(),a&&a.endLoading();var n=e.option("editing.refreshMode"),r="reshape"!==n&&"repaint"!==n;r||o.push(i),(0,j.when)(o.refresh({selection:r,reload:r,load:"reshape"===n,changesOnly:e.option("repaintChangesOnly")})).always(function(){e._fireSaveEditDataEvents(c)}).done(function(){d()}).fail(function(e){d(e)})}else a&&a.endLoading(),l.resolve()}).fail(function(e){a&&a.endLoading(),l.resolve(e)}),l.always(function(){e._focusEditingCell(),e._saving=!1}).promise()):(Xe(this)?this.hasChanges()||this.cancelEditData():Le.indexOf(s)!==-1?(u(),o.updateItems()):this._focusEditingCell(),d(),l.promise())},isSaving:function(){return this._saving},_updateEditColumn:function(){var e=this,t=e._isEditColumnVisible(),n=e.option("editing.useIcons"),i=ce+(n?" "+he:"");e._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:t,cssClass:i,width:"auto",alignment:"center",cellTemplate:e._getEditCommandCellTemplate(),fixedPosition:"right"}),e._columnsController.columnOption("command:edit",{visible:t,cssClass:i})},_isEditColumnVisible:function(){var e=this,t=e.option("editing");if(t){var n=Ye(e),i=!1;switch(n){case Te:i=t.allowUpdating||t.allowAdding;break;case Oe:case Ae:i=t.allowUpdating}return t.allowDeleting||i}},_updateEditButtons:function(){var e=this,t=e.getView("headerPanel"),n=e.hasChanges();t&&(t.setToolbarItemDisabled("saveButton",!n),t.setToolbarItemDisabled("revertButton",!n))},_applyModified:function(e){e&&e.addClass(we)},_beforeCloseEditCellInBatchMode:function(){},cancelEditData:function(){var e=this,t=Ye(e),n=this._getVisibleEditRowIndex(),i=e._dataController;e._beforeCancelEditData(),e.init(),He.indexOf(t)!==-1&&n>=0?i.updateItems({changeType:"update",rowIndices:[n,n+1]}):i.updateItems({repaintChangesOnly:e.option("repaintChangesOnly")}),t===Ae&&e._hideEditPopup()},_hideEditPopup:function(){this._editPopup&&this._editPopup.option("visible",!1)},hasEditData:function(){return this.hasChanges()},closeEditCell:function(e){var t=this,n=this,i=q.default.when(),a=n._getVisibleEditRowIndex();return Xe(n)||(i=q.default.Deferred(),setTimeout(function(){j.when.apply(void 0,o(t._deferreds)).done(function(){t._closeEditCellCore(e,a),i.resolve()}).fail(i.reject)})),i.promise()},_closeEditCellCore:function(e,t){var n=this,i=Ye(n),o=n._dataController;if(i===Ee&&n.hasChanges())n.saveEditData().done(function(e){n.hasChanges()||n.closeEditCell(!!e)});else if(t>=0){var a=[t];n._editRowIndex=-1,n._editColumnIndex=-1,n._beforeCloseEditCellInBatchMode(a),e||o.updateItems({changeType:"update",rowIndices:a})}},update:function(e){var t=this,n=t._dataController;n&&t._pageIndex!==n.pageIndex()&&("refresh"===e&&t.refresh(),t._pageIndex=n.pageIndex()),t._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e,t){return t?[]:[e.rowIndex]},_prepareEditDataParams:function(e,t,n){var i,o=this,a={},s=e.data,l=e.key,u=(0,r.default)(e.cellElement),d=Ye(o),c=new j.Deferred;return void 0!==l&&(d===De&&o._applyModified(u,e),e.value=t,i=(0,j.fromPromise)(e.column.setCellValue(a,t,(0,m.extend)(!0,{},s),n)),i.done(function(){c.resolve({data:a,key:l,oldData:s,type:Be})}).fail(Ue(c)).fail(function(e){return o._fireDataErrorOccurred(e)}),g.default.isString(n)&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n),e.values&&(e.values[e.columnIndex]=t),o._deferreds.push(i),i.always(function(){var e=o._deferreds.indexOf(i);e>=0&&o._deferreds.splice(e,1)})),c},updateFieldValue:function(e,t,n,i){var o=this,a=this,r=e.key;void 0===r&&a._dataController.fireError("E1043"),e.column.setCellValue&&this._prepareEditDataParams(e,t,n).done(function(t){o._applyEditDataParams(e,t,i)})},_focusPreviousEditingCellIfNeed:function(e){var t=this;if(t.hasEditData()&&!t.isEditCell(e.rowIndex,e.columnIndex))return t._focusEditingCell(),t._updateEditRow(e.row,!0),!0},_applyEditDataParams:function(e,t,n){var i=this,o=Ye(i),a=e.column.setCellValue!==e.column.defaultSetCellValue,r=e.column.showEditorAlways,s=o===Ee&&e.row&&!e.row.isNewRow,l=r&&!n&&s&&i.hasEditData()&&!i.isEditCell(e.rowIndex,e.columnIndex);if(l)return i._focusEditingCell(),void i._updateEditRow(e.row,!0,a);if(i._addEditData(t,e.row),i._updateEditButtons(),r&&!n){if(s)return i._editRowIndex=e.rowIndex+i._dataController.getRowIndexOffset(),i._editColumnIndex=e.columnIndex,i.saveEditData();if(o===De){var u=i._columnsController.getVisibleColumns();n=a||u.some(function(e){return e.calculateCellValue!==e.defaultCalculateCellValue})}}e.row&&(n||a)&&i._updateEditRow(e.row,n,a)},_updateEditRowCore:function(e,t,n){var i=this,o=i._editForm,a=Ye(i);a===Ae?i.option("repaintChangesOnly")?e.update&&e.update(e):o&&(i._updateEditFormDeferred=(new j.Deferred).done(function(){return o.repaint()}),i._updateLockCount||i._updateEditFormDeferred.resolve()):i._dataController.updateItems({changeType:"update",rowIndices:i._getRowIndicesForCascadeUpdating(e,t)}),n&&i._editForm&&!e.isNewRow&&i._editForm.validate()},_endUpdateCore:function(){this._updateEditFormDeferred&&this._updateEditFormDeferred.resolve()},_updateEditRow:function(e,t,n){var i=this;t||!Xe(i)?(i._updateEditRowCore(e,!t,n),t||i._focusEditingCell()):setTimeout(function(){var t=(0,r.default)(l.default.getActiveElement()),o=i._rowsView.getCellIndex(t,e.rowIndex),a=t.get(0),s=(0,S.getSelectionRange)(a);if(i._updateEditRowCore(e,!1,n),o>=0){var u=i._rowsView._getCellElement(e.rowIndex,o);i._delayedInputFocus(u,function(){setTimeout(function(){a=l.default.getActiveElement(),s.selectionStart>=0&&(0,S.setSelectionRange)(a,s)})})}})},_addEditData:function(e,t){var n=this,i=(0,S.getIndexByKey)(e.key,n._editData);return i<0&&(i=n._editData.length,n._editData.push(e)),n._editData[i]&&(e.data&&(n._editData[i].data=(0,S.createObjectWithChanges)(n._editData[i].data,e.data)),n._editData[i].type&&e.data||!e.type||(n._editData[i].type=e.type),t&&(t.oldData=n._editData[i].oldData,t.data=(0,S.createObjectWithChanges)(t.data,e.data))),i},_getFormEditItemTemplate:function(t,n){return n.editCellTemplate||e(this)},renderFormEditTemplate:function(e,t,n,i,o){var s=this,l=(0,r.default)(i),d=t.column,c=a(t),h=e.row&&e.row.data,p=(0,m.extend)({},e,{data:h,cellElement:null,isOnForm:!0,item:t,column:(0,m.extend)({},d,{editorType:c,editorOptions:t.editorOptions}),id:n.getItemID(t.name||t.dataField),columnIndex:d.index,setValue:!o&&d.allowEditing&&function(e){s.updateFieldValue(p,e)}});p.value=d.calculateCellValue(h);var f=s._getFormEditItemTemplate.bind(s)(p,d);s._rowsView.renderTemplate(l,f,p,!!l.closest((0,u.getWindow)().document).length)&&s._rowsView._updateCell(l,p)},getFormEditorTemplate:function(e,t){var n=this,i=this.component.columnOption(t.dataField);return function(o,a){var s=(0,m.extend)({},e),l=(0,r.default)(a);s.column=i,s.row.watch&&s.row.watch(function(){return s.column.selector(s.row.data)},function(i){var a=l.find(".dx-widget").first(),r=a.data("dxValidator"),u=r&&r.option();s.value=i,l.contents().remove(),n.renderFormEditTemplate.bind(n)(e,t,o.component,l),a=l.find(".dx-widget").first(),r=a.data("dxValidator"),u&&!r&&a.dxValidator({validationRules:u.validationRules,validationGroup:u.validationGroup,dataGetter:u.dataGetter})}),n.renderFormEditTemplate.bind(n)(e,t,o.component,l)}},getEditFormTemplate:function(){var e=this;return function(t,n,i){var o=e.option("editing.form"),a=e.option("editing.form.items"),l=e.option("editing.form.customizeItem"),u=e._editData[(0,S.getIndexByKey)(n.key,e._editData)],d=e.addWidgetPrefix(J),c={};if(a)s(a,function(e){var t=e&&(e.name||e.dataField);t&&(c[t]=!!e.editorType)});else{var h=e.getController("columns").getColumns();a=[],(0,_.each)(h,function(e,t){t.isBand||t.type||a.push({column:t,name:t.name,dataField:t.dataField})})}if(e._firstFormItem=void 0,e._editForm=e._createComponent((0,r.default)("<div>").appendTo(t),$.default,(0,m.extend)({},o,{items:a,formID:"dx-"+new p.default,validationGroup:u,customizeItem:function(t){var i,o=t.name||t.dataField;if((t.column||o)&&(i=t.column||e._columnsController.columnOption(t.name?"name:"+t.name:"dataField:"+t.dataField)),i){t.label=t.label||{},t.label.text=t.label.text||i.caption,t.template=t.template||e.getFormEditorTemplate(n,t),t.column=i,t.isCustomEditorType=c[o],i.formItem&&(0,m.extend)(t,i.formItem),void 0===t.isRequired&&i.validationRules&&(t.isRequired=i.validationRules.some(function(e){return"required"===e.type}),t.validationRules=[]);var a=!g.default.isDefined(t.visible)||t.visible;!e._firstFormItem&&a&&(e._firstFormItem=t)}l&&l.call(this,t),t.cssClass=g.default.isString(t.cssClass)?t.cssClass+" "+d:d}})),!i){var f=(0,r.default)("<div>").addClass(e.addWidgetPrefix(ie)).appendTo(t);e._createComponent((0,r.default)("<div>").appendTo(f),B.default,e._getSaveButtonConfig()),e._createComponent((0,r.default)("<div>").appendTo(f),B.default,e._getCancelButtonConfig())}e._editForm.on("contentReady",function(){e._editPopup&&e._editPopup.repaint()})}},getColumnTemplate:function(t){var n,i,o,a=this,r=t.column,s=t.row&&t.row.rowIndex,l=Xe(a),u=a.isEditRow(s),d=a.isEditCell(s,t.columnIndex);return!(r.showEditorAlways||r.setCellValue&&(u&&r.allowEditing||d))||"data"!==t.rowType&&"detailAdaptive"!==t.rowType||r.command?"detail"===r.command&&"detail"===t.rowType&&u&&(n=a.getEditFormTemplate(t)):(i=a.allowUpdating(t),((i||u)&&r.allowEditing||d)&&(l&&u||!l)&&(r.showEditorAlways&&!l&&(o={cancel:!1,key:t.row.isNewRow?void 0:t.row.key,data:t.row.data,column:r},a._isEditingStart(o)),o&&o.cancel||(t.setValue=function(e,n){a.updateFieldValue(t,e,n)})),n=r.editCellTemplate||e(a)),n},_createButton:function(e,t,n){var i,o=this,a=je[t.name],s=o.option("editing.useIcons"),l=(0,r.default)("<a>").attr("href","#").addClass(re).addClass(t.cssClass);if(t.template)o._rowsView.renderTemplate(e,t.template,n,!0);else{if(s&&a||t.icon){a=t.icon||a,i=Y.default.getImageSourceType(a),"image"===i||"svg"===i?l=Y.default.getImageContainer(a).addClass(t.cssClass):l.addClass("dx-icon"+("dxIcon"===i?"-":" ")+a).attr("title",t.text),e.addClass(he);var u=this.getButtonLocalizationNames()[t.name];u&&l.attr("aria-label",A.default.format(u))}else l.text(t.text);g.default.isDefined(t.hint)&&l.attr("title",t.hint),c.default.on(l,(0,D.addNamespace)("click",be),o.createAction(function(e){t.onClick.call(t,(0,m.extend)({},e,{row:n.row,column:n.column})),e.event.preventDefault()})),n.rtlEnabled?e.prepend(l,"&nbsp;"):e.append(l,"&nbsp;")}},getButtonLocalizationNames:function(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges","delete":"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}},prepareEditButtons:function(e){var t=this,n=t.option("editing")||{},i=t.option("editing.texts")||{},o={revert:i.cancelAllChanges,save:i.saveAllChanges,addRow:i.addRow},a={revert:"cancel",save:"save",addRow:"addrow"},s=[],l=function(n,i,s){var l=a[n],u=function(n){(0,r.default)(n.element).addClass(e._getToolbarButtonClass(de+" "+t.addWidgetPrefix(l)+"-button"))},d=o[n],c=("save"===l||"cancel"===l)&&!t.hasChanges();return{widget:"dxButton",options:{onInitialized:u,icon:"edit-button-"+l,disabled:c,onClick:function(){setTimeout(function(){t[i]()})},text:d,hint:d},showText:"inMenu",name:n+"Button",location:"after",locateInMenu:"auto",sortIndex:s}};return n.allowAdding&&s.push(l("addRow","addRow",20)),(n.allowUpdating||n.allowAdding||n.allowDeleting)&&Ye(t)===De&&(s.push(l("save","saveEditData",21)),s.push(l("revert","cancelEditData",22))),s},showHighlighting:function(e){var t=e.find("."+xe);"TD"!==e.get(0).tagName||t.length||e.wrapInner((0,r.default)("<div>").addClass(xe+" "+Fe))},resetRowAndPageIndices:function(e){var t=this;(0,_.each)(t._editData,function(n,i){(i.pageIndex!==t._pageIndex||e)&&(delete i.pageIndex,delete i.rowIndex)})},_afterInsertRow:function(){},_beforeSaveEditData:function(e){if(e&&!g.default.isDefined(e.key)&&g.default.isDefined(e.type))return!0},_afterSaveEditData:function(){},_beforeCancelEditData:function(){},_allowEditAction:function(e,t){var n=this.option("editing."+e);return g.default.isFunction(n)&&(n=n({component:this.component,row:t.row})),n},allowUpdating:function(e,t){var n=this.option("editing.startEditAction")||Re,i=!(arguments.length>1)||(n===t||"down"===t);return i&&this._allowEditAction("allowUpdating",e)},allowDeleting:function(e){return this._allowEditAction("allowDeleting",e)}}}());e.exports={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,texts:{editRow:A.default.format("dxDataGrid-editingEditRow"),saveAllChanges:A.default.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:A.default.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:A.default.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:A.default.format("dxDataGrid-editingCancelRowChanges"),addRow:A.default.format("dxDataGrid-editingAddRow"),deleteRow:A.default.format("dxDataGrid-editingDeleteRow"),undeleteRow:A.default.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:A.default.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click"}}},controllers:{editing:Ze},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e,t){var n,i=this.getController("editing");return!t&&this._editingController.refresh(),n=this.callBase.apply(this,arguments),n&&n.done(function(){i.resetRowAndPageIndices(!0)})},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(e){var t=this._editingController,n=t.getEditRowIndex(),i=e[n];i&&(i.isEditing=!0,t.getEditMode()===Oe&&(i.rowType="detail"))},_updateItemsCore:function(e){this.callBase(e),this._updateEditRow(this.items())},_applyChangeUpdate:function(e){this._updateEditRow(e.items),this.callBase(e)},_applyChangesOnly:function(e){this._updateEditRow(e.items),this.callBase(e)},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return e=this.callBase(e,t),e.isNewRow&&(t.dataIndex--,delete e.dataIndex),e},_correctRowIndices:function(e){this.callBase.apply(this,arguments),this._editingController.correctEditRowIndex(e)},_getChangedColumnIndices:function(e,t,n,i){var o=this.getController("editing"),a=o.isRowEditMode();if(!(e.isNewRow!==t.isNewRow||e.removed!==t.removed||a&&e.isEditing!==t.isEditing))return e.rowType===t.rowType&&a&&o.isEditRow(n)&&i?[]:this.callBase.apply(this,arguments)},_isCellChanged:function(e,t,n,i,o){var a=this.getController("editing"),r=e.cells&&e.cells[i],s=a&&a.isEditCell(n,i);return(!o||!s)&&(!(!r||!r.column||r.column.showEditorAlways||r.isEditing===s)||this.callBase.apply(this,arguments))}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellElements:function(e){var t=this.callBase(e),n=this._editingController,i=n.getEditForm(),o=n.getEditFormRowIndex();return o===e&&t&&i?i.$element().find("."+this.addWidgetPrefix(J)+", ."+fe):t},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),i=-1;return(0,_.each)(n,function(t,n){(0,r.default)(n).find(e).length&&(i=t)}),i}return this.callBase.apply(this,arguments)},_getVisibleColumnIndex:function(e,t,n){var i,o=this._editingController.getEditFormRowIndex();return o===t&&g.default.isString(n)?(i=this._columnsController.columnOption(n),this._getEditFormEditorVisibleIndex(e,i)):this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(e,t){var n,i=-1;return(0,_.each)(e,function(e,o){if(n=(0,r.default)(o).find(".dx-field-item-content").data("dx-form-item"),n&&n.column&&t&&n.column.index===t.index)return i=e,!1}),i},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){var t=this,n=t._editingController.getColumnTemplate(e);return n||t.callBase(e)},_isNativeClick:function(){return(L.default.real().ios||L.default.real().android)&&this.option("editing.allowUpdating");
},_createTable:function(){var e=this,t=e.callBase.apply(e,arguments);return!Xe(e)&&e.option("editing.allowUpdating")&&c.default.on(t,(0,D.addNamespace)(W.default.name,"dxDataGridRowsView"),"td:not(."+se+")",e.createAction(function(){var t=e._editingController;t.isEditing()&&t.closeEditCell()})),t},_createRow:function(e){var t,n,i,o,a,r=this.callBase(e);return e&&(t=this._editingController,n=t.isEditRow(e.rowIndex),i=!!e.removed,o=!!e.isNewRow,a=!!e.modified,Ye(this)===De?i&&r.addClass(me):n&&r.addClass(ue),o&&r.addClass(ve),a&&r.addClass(ye),(n||o||i)&&r.removeClass(le),n&&"detail"===e.rowType&&r.addClass(this.addWidgetPrefix(Q))),r},_getColumnIndexByElement:function(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+_e+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_editCellByClick:function(e,t){var n=this,i=n._editingController,o=(0,r.default)(e.event.target),a=n._getColumnIndexByElement(o),s=n._dataController.items()[e.rowIndex],l=i.allowUpdating({row:s},t)||s&&s.isNewRow,u=n._columnsController.getVisibleColumns()[a],d=l&&u&&(u.allowEditing||i.isEditCell(e.rowIndex,a)),c=n.option("editing.startEditAction")||"click";return"down"===t?u&&u.showEditorAlways&&d&&i.editCell(e.rowIndex,a):("click"!==t||"dblClick"!==c||i.isEditCell(e.rowIndex,a)||i.closeEditCell(),t===c&&d&&i.editCell(e.rowIndex,a)||i.isEditRow(e.rowIndex))},_rowPointerDown:function(e){var t=this;this._pointerDownTimeout=setTimeout(function(){t._editCellByClick(e,"down")})},_rowClick:function(e){e.event[Ne]=this.component,this._editCellByClick(e,"click")||this.callBase.apply(this,arguments)},_rowDblClick:function(e){this._editCellByClick(e,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(e,t){var n=t.columnIndex,i=this._editingController,o=!!t.column.command,a=t.setValue,r=t.isEditing||i.isEditRow(t.rowIndex)&&t.column.allowEditing;if("data"===t.rowType&&!t.column.command&&(r||t.column.showEditorAlways)){var s=t.column.alignment;e.addClass(se).toggleClass(this.addWidgetPrefix(te),!a).toggleClass(ke,!a),s&&e.find(Ie).first().css("textAlign",s)}r&&this._editCellPrepared(e);var l=t.row&&(t.row.isNewRow?t.row.values:t.row.modifiedValues);l&&void 0!==l[n]&&t.column&&!o&&t.column.setCellValue?(i.showHighlighting(e),e.addClass(we)):a&&i.showHighlighting(e,!0),this.callBase.apply(this,arguments)},_editCellPrepared:function(e){},_formItemPrepared:function(){},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&"popup"===Ye(this);return(t||n)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+ue).removeClass(le)},_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},_renderCellContent:function(e,t){"data"===t.rowType&&Ye(this)===Ae&&t.row.visible===!1||this.callBase.apply(this,arguments)},cellValue:function(e,t,n,i){var o=this.getCellOptions(e,t);if(o){if(void 0===n)return o.value;this._editingController.updateFieldValue(o,n,i,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)}},headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this.getController("editing").prepareEditButtons(this);return t.concat(e)},optionChanged:function(e){switch(e.name){case"editing":e.fullName&&0===e.fullName.indexOf("editing.popup")||this._invalidate(),this.callBase(e);break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.getController("editing").option("editing");return e.callBase()||t&&(t.allowAdding||(t.allowUpdating||t.allowDeleting)&&t.mode===De)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(2),r=i(a),s=n(5),l=i(s),u=n(40),d=i(u),c=n(36),h=n(4),p=n(3),f=n(1),g=n(0),_=n(65),m=n(10),v=i(m),y=n(35),w=i(y),x=n(23),b=i(x),C=n(87),k=i(C),I=n(199),S=i(I),D=n(169),T=i(D),E=n(59),O=i(E),A=n(31),P=i(A),B=n(19),M=i(B),F=n(6),R="invalid",V="revert-tooltip",H="rowsview",L="dx-invalid-message",z="invalid-message",$="dx-invalid-message-always",N="dx-revert-button",W="dx-highlight-outline",j="validator",q="__DX_INSERT_INDEX__",G=2,K="row",U="form",Y="batch",X="cell",Z="popup",Q="dx-group-cell",J=[Z,U],ee="transparent",te=d.default.Controller.inherit(function(){return{init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating")},_getBrokenRules:function(e,t){var n=void 0;return n=t?t.brokenRules||t.brokenRule&&[t.brokenRule]:e.brokenRules||[]},_rowValidating:function(e,t){var n=new F.Deferred,i=this._getBrokenRules(e,t),o=t?t.isValid:e.isValid,a={brokenRules:i,isValid:o,key:e.key,newData:e.data,oldData:e.oldData,promise:null,errorText:this.getHiddenValidatorsErrorText(i)};return this.executeAction("onRowValidating",a),(0,F.when)(a.promise).always(function(){e.isValid=a.isValid,e.errorText=a.errorText,n.resolve(a)}),n.promise()},getHiddenValidatorsErrorText:function(e){var t=[];return(0,p.each)(e,function(e,n){n.validator.$element().parent().length||t.push(n.message)}),t.join(", ")},validate:function(e){var t=this,n=!0,i=this._editingController,o=new F.Deferred,a=[];if(e=e||i.getEditMode()===K,this._isValidationInProgress)return o.resolve(!1).promise();if(this._isValidationInProgress=!0,e)(0,p.each)(i._editData,function(e,o){var r=void 0;o.type&&"remove"!==o.type&&(r=t.validateGroup(o),a.push(r),r.done(function(e){e.isValid||(0,p.each)(e.brokenRules,function(){var e=this.validator.option("adapter").getValue();void 0===e&&(e=null),this.column&&i.updateFieldValue({key:o.key,column:this.column},e,null,!0)}),n=n&&e.isValid}))});else if(this._currentCellValidator){var r=this.validateGroup(this._currentCellValidator._findGroup());a.push(r),r.done(function(e){n=e.isValid})}return this._isValidationInProgress=!1,F.when.apply(void 0,a).done(function(){o.resolve(n)}),o.promise()},validateGroup:function e(t){var n=this,i=new F.Deferred,e=k.default.getGroupConfig(t),o=void 0;return e&&e.validators.length&&(o=k.default.validateGroup(t)),(0,F.when)(o&&o.complete||o).done(function(e){(0,F.when)(n._rowValidating(t,e)).done(i.resolve)}),i.promise()},updateEditData:function(e){var t=this._editingController.getEditMode();if(J.indexOf(t)===-1){if(this.setDisableApplyValidationResults(!0),k.default.getGroupConfig(e)){var n=k.default.validateGroup(e);(0,F.when)(n.complete||n).done(function(t){e.isValid=t.isValid,e.brokenRules=t.brokenRules})}else e.brokenRules&&e.brokenRules.length||(e.isValid=!0);this.setDisableApplyValidationResults(!1)}else e.isValid=!0},setValidator:function(e){this._currentCellValidator=e},getValidator:function(){return this._currentCellValidator},createValidator:function(e,t){var n,i,o,a,s=this,u=s._editingController,d=e.column,h=function(e){if(e.brokenRule&&(e.brokenRule.columnIndex=d.index,e.brokenRule.column=d),t&&!s.getDisableApplyValidationResults()){if(!e.isValid){var n=t.find(":focus");u.showHighlighting(t,!0),(0,_.focused)(n)||(l.default.trigger(n,"focus"),l.default.trigger(n,b.default.down))}t.toggleClass(s.addWidgetPrefix(R),!e.isValid)}},p=function(){var t=d.calculateCellValue(n.data||{});return void 0!==t?t:e.value},m=d.showEditorAlways;if(d.validationRules&&Array.isArray(d.validationRules)&&d.validationRules.length&&!(0,f.isDefined)(d.command)&&(i=u.getIndexByKey(e.key,u._editData),i<0&&(m||(a=s.getController("columns"),o=a&&a.getVisibleColumns()||[],m=o.some(function(e){return e.showEditorAlways})),m&&(i=u._addEditData({key:e.key,oldData:e.data}))),i>=0)){if(t&&!t.length)return void M.default.log("E1050");n=u._editData[i];var v=t&&t.hasClass("dx-widget");t&&t.addClass(s.addWidgetPrefix(j));var y=new S.default(t||(0,r.default)("<div>"),{name:d.caption,validationRules:(0,g.extend)(!0,[],d.validationRules),validationGroup:n,adapter:v?null:{getValue:p,applyValidationResults:h},dataGetter:function(){return{data:(0,c.createObjectWithChanges)(n.oldData,n.data),column:d}}});if(v){var w=y.option("adapter");w&&(w.getValue=p)}return y}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults}}}());e.exports={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:v.default.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:te},extenders:{controllers:{editing:{_addEditData:function(e,t){var n,i=this,o=i.getController("validating"),a=i.callBase(e,t);return a>=0&&(n=i._editData[a],o.updateEditData(n)),a},_updateRowAndPageIndices:function(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),n=t;(0,p.each)(e._editData,function(i,o){o.isValid||o.pageIndex===e._pageIndex||(o.pageIndex=e._pageIndex,"insert"===o.type?o.rowIndex=t:o.rowIndex=n,n++)})},_needInsertItem:function(e){var t=this.callBase.apply(this,arguments);return t&&!e.isValid&&(t=e.key.pageIndex===this._pageIndex),t},processItems:function(e,t){var n,i,o=this,a=o._editData,r=o.getController("data"),s=function(e,t){var n=-1,i="insert"===e.type,o=e.key;return(0,p.each)(t,function(e,t){if((0,h.equalByValue)(o,i?t:r.keyOf(t)))return n=e,!1}),n},l=function(t){var n,o={key:t.key},a=s(t,e);a>=0||(t.rowIndex=t.rowIndex>i?t.rowIndex%i:t.rowIndex,n=t.rowIndex,o[q]=1,e.splice(n,0,o))};if(e=o.callBase(e,t),i=e.length,o.getEditMode()===Y&&"prepend"!==t&&"append"!==t)for(n=0;n<a.length;n++)a[n].type&&a[n].pageIndex===o._pageIndex&&a[n].key.pageIndex!==o._pageIndex&&l(a[n]);return e},processDataItem:function(e){var t,n,i=this,o=e.data[q],a=o?e.data.key:e.key,r=i.getEditMode();r===Y&&o&&a&&(t=(0,c.getIndexByKey)(a,i._editData),t>=0&&(n=i._editData[t],"insert"!==n.type&&(e.data=(0,g.extend)(!0,{},n.oldData,n.data),e.key=a))),i.callBase.apply(i,arguments)},_createInvisibleColumnValidators:function(e){var t=this.getController("validating"),n=this.getController("columns"),i=n.getInvisibleColumns().filter(function(e){return!e.isBand}),a=n.getGroupColumns().filter(function(e){return!e.showWhenGrouped&&i.indexOf(e)===-1}),r=[];return i.push.apply(i,o(a)),J.indexOf(this.getEditMode())===-1&&(0,p.each)(i,function(n,i){e.forEach(function(e){var n;if("insert"===e.type?n=e.data:"update"===e.type&&(n=(0,c.createObjectWithChanges)(e.oldData,e.data)),n){var o=t.createValidator({column:i,key:e.key,value:i.calculateCellValue(n)});o&&r.push(o)}})}),function(){r.forEach(function(e){e._dispose()})}},_beforeSaveEditData:function(e,t){var n=this,i=void 0,o=this.callBase.apply(this,arguments),a=this.getController("validating");if(e)i="remove"===e.type||e.isValid,o=o||!i;else{var r=this._createInvisibleColumnValidators(this._editData);o=new F.Deferred,a.validate(!0).done(function(e){switch(r(),n._updateRowAndPageIndices(),n.getEditMode()){case X:e||n._focusEditingCell();break;case Y:e||(n._editRowIndex=-1,n._editColumnIndex=-1,n.getController("data").updateItems())}o.resolve(!e)})}return o.promise?o.promise():o},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n),o=this._rowsView._getCellElement(e,t),a=o&&o.data("dxValidator"),r=a&&a.option("adapter").getValue();if(this.getEditMode(this)===X&&(!a||void 0!==r&&a.validate().isValid))return i},_afterSaveEditData:function(){var e,t=this;if((0,p.each)(t._editData,function(n,i){var o=t._showErrorRow(i);e=e||o}),e){var n=this._rowsView.getScrollable();n&&(n.update(),n.scrollToElement(e))}},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(e.key,i);if(!e.isValid&&e.errorText&&o>=0)return t=this.getPopupContent(),n&&n.renderErrorRow(e.errorText,o,t)},updateFieldValue:function(e){var t=this,n=t.getEditMode();if(t.callBase.apply(t,arguments),n===K||n===Y&&e.column.showEditorAlways){var i=t.getController("validating").getValidator();i&&i.validate()}},showHighlighting:function(e,t){var n=this,i=!0,o=this.callBase,a=void 0;if(!t&&(a=e.data("dxValidator"))){var r=a.validate();return void(0,F.when)(r.complete||r).done(function(t){i=t.isValid,i&&o.call(n,e)})}i&&o.call(this,e)},getEditDataByKey:function(e){return this._editData[(0,c.getIndexByKey)(e,this._editData)]}},editorFactory:function(){var e=function(e,t){var n=(0,r.default)(t).closest("tr").index(),i=(0,r.default)(e._rowsView.getRowElement(n)).first().children().filter(":not(.dx-hidden-cell)");return e._rowsView._getWidths(i).reduce(function(e,t){return e+t},0)},t=function(e){var t=void 0,n=void 0;return e.some(function(i,o){if(i.command===ee)return t=0===o?-1:o,n=o===e.length-1?-1:o+i.colspan-1,!0}),{startColumnIndex:t,endColumnIndex:n}};return{_showRevertButton:function(e,t){var n=this;if(t&&t.length){var i=(0,r.default)("<div>").addClass(this.addWidgetPrefix(V)).appendTo(e),o={animation:null,visible:!0,target:t,container:e,closeOnOutsideClick:!1,closeOnTargetScroll:!1,contentTemplate:function(){var e=(0,r.default)("<div>").addClass(N),t={icon:"revert",hint:n.option("editing.texts.validationCancelChanges"),onClick:function(){n._editingController.cancelEditData()}};return new w.default(e,t).$element()},position:{my:"left top",at:"right top",of:t,offset:"1 0",collision:"flip",boundary:this._rowsView.element()},onPositioned:this._positionedHandler.bind(this)};return new T.default(i,o)}},_hideFixedGroupCell:function(e,t){var n,i,o,a=this._rowsView.isFixedColumns(),s=this._editingController.isFormEditMode();a&&!s&&(n=e.closest(".dx-row").next().data("options"),n&&"group"===n.rowType&&(i=(0,r.default)(this._rowsView.getRowElement(n.rowIndex)).last(),o=i.find("."+Q),o.length&&"hidden"!==o.get(0).style.visibility&&(o.css("visibility","hidden"),t.onDisposing=function(){o.css("visibility","")})))},_positionedHandler:function(e,t){if(!e.component.__skipPositionProcessing){var n=(0,r.default)(e.element).hasClass(this.addWidgetPrefix(V)),i=!n&&this._rowsView.updateFreeSpaceRowHeight(),o=this._normalizeValidationMessagePositionAndMaxWidth(e,n,t);e.component.__skipPositionProcessing=!(!i&&!o),o?e.component.option(o):i&&e.component.repaint()}},_showValidationMessage:function(e,t,n,i){var o=this,a=e.find("."+W),s=P.default.isMaterial(),l=a.length&&!s?a:e,u=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),d=u&&u.option("visible"),c=d?"top right":"top "+n,h=d?"top left":"bottom "+n,p=(0,r.default)("<div>").addClass(L).addClass($).addClass(this.addWidgetPrefix(z)).text(t).appendTo(e),f={target:l,container:e,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,closeOnOutsideClick:!1,closeOnTargetScroll:!1,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",my:c,at:h},onPositioned:function(t){o._positionedHandler(t,d),o._shiftValidationMessageIfNeed(t.component.$content(),i&&i.$content(),e)}};this._hideFixedGroupCell(e,f),new O.default(p,f)},_normalizeValidationMessagePositionAndMaxWidth:function(n,i,o){var a=this._columnsController.getFixedColumns();if(a&&a.length){var s=void 0,l=!i&&e(this,n.element),u=i?n.component.overlayContent():n.component.$content(),d=u.outerWidth(!0),c=!i&&d>l,h=this._rowsView.getCellIndex((0,r.default)(n.element).closest("td")),p=t(a);return i||h!==p.startColumnIndex&&!c?h===p.endColumnIndex&&(s={collision:"none flip",my:"top right",at:i||o?"top left":"bottom right"},i&&(s.offset="-1 0")):s={collision:"none flip",my:"top left",at:o?"top right":"bottom left"},s&&{position:s,maxWidth:c?l-2:void 0}}},_shiftValidationMessageIfNeed:function(e,t,n){if(t){var i=e.offset(),o=t.offset();if(i.top===o.top&&i.left+e.width()>o.left){var a=t.width()+G;e.css("left",o.left<n.offset().left?-a:a)}}},_getTooltipsSelector:function(){var e=this.addWidgetPrefix(z),t=this.addWidgetPrefix(V);return".dx-editor-cell ."+t+", .dx-editor-cell ."+e+", .dx-cell-modified ."+e},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},focus:function(e,t){var n,i,o=this,a=e&&e.closest(o._getFocusCellSelector()),r=a&&(a.data("dxValidator")||e.find("."+o.addWidgetPrefix(j)).eq(0).data("dxValidator")),s=a&&a.closest(".dx-row").data("options"),l=s?o.getController("editing").getEditDataByKey(s.key):null,u=a&&a.closest("."+o.addWidgetPrefix(H)).find(o._getTooltipsSelector()),d=a&&a.is("td")?a:null,c=!1,h=d&&o.getController("columns").getVisibleColumns()[d.index()];return arguments.length?(u&&u.remove(),r&&(o.getController("validating").setValidator(r),void 0!==r.option("adapter").getValue()&&(n=r.validate(),n.isValid||(t=!0,c=!0))),(n&&!n.isValid||l&&"update"===l.type&&!o._editingController.isSaving())&&o._editingController.getEditMode()===X&&(i=o._showRevertButton(a,d?a.find("."+W).first():a)),c&&d&&h&&n.brokenRule.message&&o._showValidationMessage(a,n.brokenRule.message,h.alignment||"left",i),!t&&o._rowsView.element()&&o._rowsView.updateFreeSpaceRowHeight(),o.callBase(e,t)):o.callBase()}}}()},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,i,o=this,a=o.element(),r=a&&a.find("."+o.addWidgetPrefix(z)+" .dx-overlay-content");if(o.callBase(e),r&&r.length&&(t=o._getRowElements(),i=o._getFreeSpaceRowElements(e),n=i.first(),n&&1===t.length&&(!n.is(":visible")||r.outerHeight()>n.outerHeight())))return i.show(),i.height(r.outerHeight()),!0},_formItemPrepared:function(e,t){var n=this;this.callBase.apply(this,arguments),(0,h.deferUpdate)(function(){var i=t.find(".dx-widget").first(),o=i.length&&!i.children().length;o||n.getController("validating").createValidator(e,i)})},_cellPrepared:function(e,t){this.getController("editing").isFormEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(7),s=n(4),l=n(365),u=i(l),d=n(36),c=i(d),h=n(3),p=n(6),f=n(27),g=i(f),_=n(80),m=i(_),v="table",y="bottom-load-panel",w="table-content",x="group-space",b="content",C="dx-row",k="dx-freespace-row",I="dx-column-lines",S="dx-virtual-row",D="infinite",T="virtual",E="standard",O=25e4,A=300,P=function(e){return e.option("scrolling.mode")===T},B=function(e){return e.option("scrolling.mode")===D},M=function(e){var t=e.option("scrolling.rowRenderingMode");return t===T||t!==E&&void 0},F=function(e,t,n,i){for(var o=n?0:1,a=0;a<t+o;a++){var r=e[n?e.length-1-a:a];r&&!i(r,a===t)&&t++}return t},R=function(){var e=function(e){var t=e._virtualScrollController.beginPageIndex(-1);P(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},t={init:function(t){var n=this;n.callBase.apply(n,arguments),n._items=[],n._isLoaded=!0,n._virtualScrollController=new u.default.VirtualScrollController(n.component,{pageSize:function(){return n.pageSize()},totalItemsCount:function(){return n.totalItemsCount()},hasKnownLastPage:function(){return n.hasKnownLastPage()},pageIndex:function(e){return t.pageIndex(e)},isLoading:function(){return t.isLoading()&&!n.isCustomLoading()},pageCount:function(){return n.pageCount()},load:function(){return t.load()},updateLoading:function(){e(n)},itemsCount:function(){return n.itemsCount(!0)},items:function(){return t.items()},viewportItems:function(e){return e&&(n._items=e),n._items},onChanged:function(e){n.changed.fire(e)},changingDuration:function(e){return n.isLoading()?A:n._renderTime||0}})},_handleLoadingChanged:function(e){var t=this;P(t)||(t._isLoading=e,t.callBase.apply(t,arguments)),e?t._startLoadTime=new Date:t._startLoadTime=void 0},_handleLoadError:function(){var e=this;e._isLoading=!1,e.loadingChanged.fire(!1),e.callBase.apply(e,arguments)},_handleDataChanged:function(e){var t=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(t,e)},_customizeRemoteOperations:function(e,t,n){var i=this;!i.option("legacyRendering")&&P(i)&&!n.reload&&!t&&n.skip&&i._renderTime<i.option("scrolling.renderingThreshold")&&(e.delay=void 0),i.callBase.apply(i,arguments)},items:function(){return this._items},itemsCount:function(e){return e?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(e){e||this._virtualScrollController.reset(),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var t=this.callBase.apply(this,arguments);return this.resetPagesCache(),e(this),t},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(e){var t=new p.Deferred;return this.callBase.apply(this,arguments).done(function(n){var i=e._delayDeferred;i?i.done(t.resolve).fail(t.reject):t.resolve(n)}).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,r=o._dataSource;return(n||i.reload)&&(o._virtualScrollController.reset(),r.items().length=0,o._isLoaded=!1,e(o),o._isLoaded=!0,B(o)?(o.pageIndex(0),r.pageIndex(0),a.pageIndex=0,t.pageIndex=0,a.skip=0):(r.pageIndex(o.pageIndex()),r.paginate()&&(t.pageIndex=o.pageIndex(),a.skip=o.pageIndex()*o.pageSize()))),o.callBase.apply(o,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)}};return["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentSize","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","pageIndex","beginPageIndex","endPageIndex","loadIfNeed"].forEach(function(e){t[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}}),t}(),V=function(){var e=function(e,t){var n,i=e.parent("."+t);i.length&&(e=i),n=t===k?e.length-1:e.length;for(var o=0;o<n;o++)e.eq(o).remove()};return{init:function(){var e=this,t=e.getController("data");if(e.callBase(),t.pageChanged.add(function(){e.scrollToPage(t.pageIndex())}),!e.option("legacyRendering")&&t.pageIndex()>0){var n=function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())};e.resizeCompleted.add(n)}},scrollToPage:function(e){var t,n=this,i=n._dataController,o=i?i.pageSize():0;if(P(n)||B(n)){var a=i.getItemSize(),r=i.getItemSizes(),s=e*o;t=s*a;for(var l in r)l<=s&&(t+=r[l]-a)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t,n=this,i=new Date;if(n.callBase.apply(n,arguments),t=n._dataController._dataSource,t&&e){var o=e.items?e.items.length:20,a=n._dataController.viewportSize()||20;M(n)?t._renderTime=(new Date-i)*a/o:t._renderTime=new Date-i}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+S)},_renderContent:function(e,t){var n=this,i=n._dataController.virtualItemsCount();return i&&n.option("legacyRendering")?((0,r.hasWindow)()&&t.addClass(n.addWidgetPrefix(w)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_removeRowsElements:function(e,t,n){var i=this._getRowElements(e).toArray();i="append"===n?i.slice(0,t):i.slice(-t);var o=this.getController("errorHandling");i.map(function(e){var t=(0,a.default)(e);o&&o.removeErrorRow(t.next()),t.remove()})},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each(function(e,n){var i=(0,a.default)(n).data("options");if(i){var o=t.getEditDataByKey(i.key);o&&t._showErrorRow(o)}})},_updateContent:function(t,n){var i,o,a=this,r=a._findContentElement(),s=n&&n.changeType;if("append"===s||"prepend"===s){i=r.children().first();var l=a._getBodies(t);a.option("legacyRendering")||1!==l.length?l["append"===s?"appendTo":"prependTo"](i):a._getBodies(i)["append"===s?"append":"prepend"](l.children()),t.remove(),o=a._getFreeSpaceRowElements(i),e(o,k),n.removeCount&&a._removeRowsElements(i,n.removeCount,s),a._restoreErrorRow(i)}else a.callBase.apply(a,arguments);a._updateBottomLoading()},_addVirtualRow:function(e,t,n,i){if(i){var o=this._createEmptyRow(S,t,i);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,n)}},_updateContentPosition:function(t){var n=this,i=n._dataController,o=n._rowHeight||20;if(i.viewportItemSize(o),n.option("legacyRendering")||!P(n)&&!M(n))(0,s.deferUpdate)(function(){n._updateContentPositionCore()});else{if(!t){var r=n._getRowElements(n._tableElement).toArray().map(function(e){return e.getBoundingClientRect().height});i.setContentSize(r)}var l=i.getContentOffset("begin"),u=i.getContentOffset("end"),d=n.getTableElements(),c=d.children("tbody").children("."+S);e(c,S),d.each(function(e){var t=e>0;n._isFixedTableRendering=t,n._addVirtualRow((0,a.default)(this),t,"top",l),n._addVirtualRow((0,a.default)(this),t,"bottom",u),n._isFixedTableRendering=!1}),!t&&n._updateScrollTopPosition(l)}},_updateScrollTopPosition:function(e){this._scrollTop<e&&!this._isScrollByEvent&&this._dataController.pageIndex()>0&&this.scrollTo({top:e,left:this._scrollLeft})},_updateContentPositionCore:function(){var e,t,n,i,o,a,r,l=this,u=l._rowHeight||20,d=l._dataController.virtualItemsCount();d&&(e=l._findContentElement(),i=e.children(),o=i.eq(0),a=i.eq(1),l._contentTableHeight=o[0].offsetHeight,l._dataController.viewportItemSize(u),l._dataController.setContentSize(l._contentTableHeight),t=l._dataController.getVirtualContentSize(),n=l._dataController.getContentOffset(),(0,s.deferRender)(function(){g.default.move(o,{left:0,top:n}),r=l._contentHeight!==t||0===t||!l._isTableLinesDisplaysCorrect(a)||!l._isColumnElementsEqual(o.find("col"),a.find("col")),r&&(l._contentHeight=t,l._renderVirtualTableContent(a,t)),l._updateScrollTopPosition(n)}))},_isTableLinesDisplaysCorrect:function(e){var t=e.find("."+I).length>0;return t===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,h.each)(e,function(e,i){if(i.style.width!==t[e].style.width)return n=!1}),n},_renderVirtualTableContent:function(e,t){var n,i=this,o=i._columnsController.getVisibleColumns(),a=i._createColGroup(o).prop("outerHTML"),r="",s=i.option("showColumnLines")?I:"",l=function(e){return"<tr style='height:"+e+"px;' class='"+k+" "+C+" "+s+"' >"+r+"</tr>"};for(n=0;n<o.length;n++){var u=i._getCellClasses(o[n]),d=u.length?" class='"+u.join(" ")+"'":"";r+="<td"+d+"/>"}for(;t>O;)a+=l(O),t-=O;a+=l(t),e.addClass(i.addWidgetPrefix(v)),e.html(a)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix(x)),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find("."+this.addWidgetPrefix(y));if(n&&n.length)return n},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===T,i=t===D,o=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||i),r=e._findContentElement(),s=e._findBottomLoadPanel(r);o?s||(0,a.default)("<div>").addClass(e.addWidgetPrefix(y)).append(e._createComponent((0,a.default)("<div>"),m.default).$element()).appendTo(r):s&&s.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===D&&t.option("scrolling.rowRenderingMode")!==T},_updateRowHeight:function(){var e,t=this;t.callBase.apply(t,arguments),t._rowHeight&&(t._updateContentPosition(),e=t._hasHeight?t.element().outerHeight():(0,a.default)((0,r.getWindow)()).outerHeight(),t._dataController.viewportSize(Math.ceil(e/t._rowHeight)))},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this,i=n.callBase,o=n._dataController,a=o.pageIndex()>0&&o.isLoaded()&&!!n._findBottomLoadPanel();a&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest((0,r.getWindow)().document).length&&(e._windowScroll=u.default.subscribeToExternalScrollers(t,function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)},e.component.$element()),e.on("disposing",function(){e._windowScroll.dispose()})),e.loadIfNeed()},loadIfNeed:function(){var e=this._dataController;e&&e.loadIfNeed&&e.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.$content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(b)).children(":not(."+this.addWidgetPrefix(w)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}();e.exports={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard"}}},extenders:{dataSourceAdapter:R,controllers:{data:function(){var e={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new p.Deferred).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e},reload:function(){var e=this,t=e._rowsScrollController||e._dataSource,n=t&&t.getItemIndexByPosition(),i=this.callBase.apply(this,arguments);return i&&i.done(function(){if(P(e)||M(e)){var t=e.getRowIndexOffset(),i=Math.floor(n)-t,o=e.component,r=o.getScrollable&&o.getScrollable();if(r&&!e.option("legacyRendering")){var s=o.getRowElement(i),l=s&&s[0]&&(0,a.default)(s[0]),u=l&&l.position().top;u>0&&(u=Math.round(u+l.outerHeight()*(n%1)),r.scrollTo({y:u}))}}})},initVirtualRows:function(){var e=this,t=M(e);if("virtual"!==e.option("scrolling.mode")&&t!==!0||t===!1||e.option("legacyRendering")||!e.option("scrolling.rowPageSize"))return e._visibleItems=null,void(e._rowsScrollController=null);e._rowPageIndex=Math.ceil(e.pageIndex()*e.pageSize()/e.getRowPageSize()),e._visibleItems=[];var n=function(t){return"data"===t.rowType&&!t.isNewRow||"group"===t.rowType&&e._dataSource.isGroupItemCountable(t.data)};e._rowsScrollController=new u.default.VirtualScrollController(e.component,{pageSize:function(){return e.getRowPageSize()},totalItemsCount:function(){return P(e)?e.totalItemsCount():e._items.filter(n).length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function e(){var e=Math.ceil(this.totalItemsCount()/this.pageSize());return e?e:1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!e._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged(function(t){t=t||{},t.changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach(function(e,t){e.rowIndex=t}),e._fireChanged(t)})},updateLoading:function(){},itemsCount:function(){return e._rowsScrollController._dataSource.items().filter(n).length},correctCount:function(e,t,i){return F(e,t,i,n)},items:function(t){
var i=e.dataSource(),o=i&&i.virtualItemsCount(),a=o?o.begin:0,r=e.getRowPageSize(),s=e._rowPageIndex*r-a,l=r,u=e._items;return s<0?[]:(s&&(s=this.correctCount(u,s),u=u.slice(s)),l&&(l=this.correctCount(u,l),u=u.slice(0,l)),t?u.filter(n):u)},viewportItems:function(t){return t&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return n.isLoading()?A:n&&n._renderTime||0}},(!0)),e.isLoaded()&&e._rowsScrollController.load()},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var o=this._visibleItems,a="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;a||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,a&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach(function(t,n){var i=e.changeTypes[n],a=e.items[n];"update"===i?o[t]=a:"insert"===i?o.splice(t,0,a):"remove"===i&&o.splice(t,1)}):(o.forEach(function(e,i){o[i]=t._items[i+n]||o[i]}),e.items=o),o.forEach(function(e,t){e.rowIndex=t}))}},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,o=e.removeCount;if(o){var a="prepend"===i;o=F(t._items,o,a,function(e,n){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||n)}),e.removeCount=o}switch(i){case"prepend":t._items.unshift.apply(t._items,n),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,n),o&&t._items.splice(0,o);break;default:t.callBase(e)}},items:function(e){return e?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=this._visibleItems,t=0;return e&&e[0]&&(t=this._items.indexOf(e[0])),t<0?0:t},getRowIndexOffset:function(){var e=0,t=this.dataSource(),n=this._rowsScrollController;return n?e=n.beginPageIndex()*n._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&t&&(e=t.beginPageIndex()*t.pageSize()),e},viewportSize:function(){var e=this._rowsScrollController;e&&e.viewportSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportSize.apply(t,arguments)},viewportItemSize:function(){var e=this._rowsScrollController;e&&e.viewportItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments).done(function(){t&&t.setViewportItemIndex(e.getViewportItemIndex())}):t&&t.setViewportPosition.apply(t,arguments)},setContentSize:function(e){var t=this._rowsScrollController;t&&t.setContentSize(e);var n=this._dataSource;return n&&n.setContentSize(e)},loadIfNeed:function(){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)}};return c.default.proxyMethod(e,"virtualItemsCount"),c.default.proxyMethod(e,"getVirtualContentSize"),c.default.proxyMethod(e,"setViewportItemIndex"),e}(),resizing:{resize:function(){var e,t=this,n=t.callBase;if(t.option("legacyRendering")||!P(t)&&!M(t))e=n.apply(t);else{clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,o=t.option("scrolling.updateTimeout");t._lastTime&&i<o?(e=new p.Deferred,t._resizeTimeout=setTimeout(function(){n.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date},o),t._lastTime=new Date):(e=n.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:V}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(7),s=n(5),l=i(s),u=n(25),d=i(u),c=n(1),h=n(78),p=i(h),f=n(3),g=n(15),_=i(g),m=n(6),v="infinite",y="virtual",w=function(e){return e.option("scrolling.mode")===y||e._isVirtual},x=function(e){return e.option("scrolling.mode")===v&&!e._isVirtual};t.getPixelRatio=function(e){return e.devicePixelRatio||1},t.getContentHeightLimit=function(e){return e.msie?4e6:e.mozilla?8e6:15e6/t.getPixelRatio((0,r.getWindow)())},t.subscribeToExternalScrollers=function(e,t,n){function i(t){var n=t.element?t.$element():t,i=p.default.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}function o(e){return function(){var n=e.scrollTop()-i(e);n=n>0?n:0,t(n)}}function s(e){var t="#document"===e.get(0).nodeName,n=e.data("dxScrollable"),s=g;if(n||(n=t&&(0,a.default)((0,r.getWindow)())||"auto"===e.css("overflowY")&&e,s=l.default,n)){var u=o(n);s.on(n,"scroll",u),c.push(function(e){var t=i(n),o=n.scrollTo?"scrollTo":"scrollTop";e-t>=0&&n[o](e+t)}),d.push(n),h.push(function(){s.off(n,"scroll",u)})}}var u,d=[],c=[],h=[];n=n||e;var g={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};for(u=n.parent();u.length;u=u.parent())s(u);return{scrollTo:function(e){(0,f.each)(c,function(t,n){n(e)})},dispose:function(){(0,f.each)(h,function(e,t){t()})}}},t.VirtualScrollController=_.default.inherit(function(){var e=function(e){var t=e._dataSource.pageSize(),n=e.option("scrolling.preventPreload");if(n)return 0;var i=e._viewportSize;if(w(e)&&!e.option("legacyRendering")&&e.option("scrolling.removeInvisiblePages")){i=0;for(var o=e._viewportSize*e._viewportItemSize,a=e.getContentOffset(),r=e._position||0,s=e.virtualItemsCount(),l=e._dataSource.totalItemsCount(),u=s.begin;u<l&&!(a>=r+o);u++){var d=e._itemSizes[u]||e._viewportItemSize;a+=d,a>=r&&i++}}return t&&i>0?Math.ceil(i/t):1},n=function(t,n){var i=t.option("scrolling.preloadEnabled"),o=e(t);return o&&(n?o=i?1:0:(i&&o++,x(t)&&o--)),o},i=function(e){var t,i,r,s=-1,l=o(e),u=e._dataSource;return l<0?s=e._pageIndex:e._cache[e._pageIndex-l]?l>=0&&e._viewportSize>=0&&(l>0&&(r=a(e)+1===u.pageCount()&&e._cache.length<n(e)+1,i=r||e._pageIndex===l&&n(e,!0),i&&(s=l-1)),s<0&&(t=l+e._cache.length<=e._pageIndex+n(e),t&&(s=l+e._cache.length))):s=e._pageIndex,e._loadingPageIndexes[s]&&(s=-1),s},o=function(e){return e._cache.length?e._cache[0].pageIndex:-1},a=function(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1},r=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},s=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,r(e,t,n),!0},l=function(e,t,n,i,o){var a=e._dataSource,s=a.items().slice(),l=(0,c.isObject)(n)?n:void 0,u="prepend"===n,d=a.viewportItems();n&&(0,c.isString)(n)&&!e._isDelayChanged&&(l={changeType:n,items:s},o&&(l.removeCount=o.itemsCount,l.removeCount&&a.correctCount&&(l.removeCount=a.correctCount(d,l.removeCount,u))));var h=o?o.itemsLength:0;h&&a.correctCount&&(h=a.correctCount(d,h,u)),"append"===n?(d.push.apply(d,s),o&&d.splice(0,h)):u?(d.unshift.apply(d,s),o&&d.splice(-h)):e._dataSource.viewportItems(s),a.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||r(e,t,l)},u=function(e,t){var n=e._dataSource;if(t===e.pageIndex()||!n.isLoading()&&t<n.pageCount()||!n.hasKnownLastPage()&&t===n.pageCount())return n.pageIndex(t),e._loadingPageIndexes[t]=!0,(0,m.when)(n.load()).always(function(){e._loadingPageIndexes[t]=!1})};return{ctor:function(e,t,n){var i=this;i._dataSource=t,i.component=e,i._pageIndex=i._lastPageIndex=t.pageIndex(),i._viewportSize=0,i._viewportItemSize=20,i._viewportItemIndex=-1,i._itemSizes={},i._sizeRatio=1,i._items=[],i._cache=[],i._isVirtual=n,i._loadingPageIndexes={}},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var e,t,n,i=this,a=0;if(w(i))return e=o(i),e<0&&(e=i._dataSource.pageIndex()),t=e*i._dataSource.pageSize(),a=i._cache.length*i._dataSource.pageSize(),n=Math.max(0,i._dataSource.totalItemsCount()-a-t),{begin:t,end:n}},setViewportPosition:function(e){var t=this,n=new m.Deferred,i=Math.min(t.option("scrolling.timeout")||0,t._dataSource.changingDuration());return i<t.option("scrolling.renderingThreshold")&&(i=t.option("scrolling.minTimeout")||0),clearTimeout(t._scrollTimeoutID),i>0?t._scrollTimeoutID=setTimeout(function(){t._setViewportPositionCore(e),n.resolve()},i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e,t=this,n=t._position,i=t.getItemSize(),o=0,a=0,r=Object.keys(t._itemSizes).concat(-1),s=0;s<r.length&&o<n;s++){var l=parseInt(r[s]),u=(n-o)/i;if(l<0||a+u<l){a+=u;break}u=l-a,o+=u*i,a+=u,e=t._itemSizes[l],o+=e,a+=o<n?1:(n-o+e)/e}return Math.round(50*a)/50},_setViewportPositionCore:function(e){this._position=e;var t=this.getItemIndexByPosition();return this.setViewportItemIndex(t)},setContentSize:function(e){var n=this,i=Array.isArray(e)&&e,o=n.virtualItemsCount();if(i&&(e=i.reduce(function(e,t){return e+t},0)),n._contentSize=e,o){i&&i.forEach(function(e,t){n._itemSizes[o.begin+t]=e});var a=(o.begin+o.end+n.itemsCount())*n._viewportItemSize,r=t.getContentHeightLimit(d.default);a>r?n._sizeRatio=r/a:n._sizeRatio=1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var n=this,i=n.virtualItemsCount(),o=e;if(!i)return 0;var a=0,r=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach(function(i){o&&(t?i>=r-e:i<e)&&(a+=n._itemSizes[i],o--)}),Math.floor(a+o*n._viewportItemSize*n._sizeRatio)},getContentOffset:function(e){var t="end"===e,n=this.virtualItemsCount();return n?this.getItemOffset(t?n.end:n.begin,t):0},getVirtualContentSize:function(){var e=this,t=e.virtualItemsCount();return t?e.getContentOffset("begin")+e.getContentOffset("end")+e._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){var t,n,i,o=this,a=o._dataSource.pageSize(),r=o._dataSource.pageCount(),s=w(o),l=x(o),u=o._dataSource.totalItemsCount();if(o._viewportItemIndex=e,a&&(s||l)&&u>=0)return o._viewportSize&&e+o._viewportSize>=u&&!o._isVirtual?o._dataSource.hasKnownLastPage()?(i=r-1,t=u%a,i>0&&t>0&&t<a/2&&i--):i=r:(i=Math.floor(e/a),n=r-1,i=Math.max(i,0),i=Math.min(i,n)),o.pageIndex(i),o.load()},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},pageIndex:function(e){return w(this)||x(this)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataSource.pageIndex(e)},beginPageIndex:function e(t){var e=o(this);return e<0&&(e=void 0!==t?t:this.pageIndex()),e},endPageIndex:function e(){var e=a(this);return e>0?e:this._lastPageIndex},pageSize:function(){return this._dataSource.pageSize()},load:function(){var e,t,n,o=this,a=o._dataSource;return w(o)||x(o)?(e=i(o),e>=0&&(t=u(o,e),t&&(n=new m.Deferred,t.done(function(){var e=o._delayDeferred;e?e.done(n.resolve).fail(n.reject):n.resolve()}).fail(n.reject),a.updateLoading()))):n=a.load(),n||o._lastPageIndex===o.pageIndex()||o._dataSource.onChanged({changeType:"pageIndex"}),n||(new m.Deferred).resolve()},loadIfNeed:function(){var e=this;if((w(e)||x(e))&&!e._dataSource.isLoading()&&(!e._isChangedFiring||e._isVirtual)){var t=e.getViewportPosition();t>0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(e,t){var i,u,d,c,h=this,p=h._dataSource,f=h._cache.length;if(t&&t.changes)r(h,e,t);else if(w(h)||x(h)){if(i=o(h),i>=0&&(w(h)&&i+h._cache.length!==p.pageIndex()&&i-1!==p.pageIndex()&&(f=0,h._cache=[]),x(h)))if(0===p.pageIndex())h._cache=[];else if(p.pageIndex()<a(h))return void r(h,e,{changeType:"append",items:[]});c={pageIndex:p.pageIndex(),itemsLength:p.items(!0).length,itemsCount:h.itemsCount(!0)},!h.option("legacyRendering")&&h.option("scrolling.removeInvisiblePages")&&w(h)?d=h._cache.length>Math.max(n(this)+(h.option("scrolling.preloadEnabled")?1:0),2):s(h,e,{isDelayed:!0});var g;i===p.pageIndex()+1?(d&&(g=h._cache.pop()),u="prepend",h._cache.unshift(c)):(d&&(g=h._cache.shift()),u="append",h._cache.push(c));var _=w(h)&&0===f;l(h,e,h._cache.length>1?u:void 0,_,g),h._delayDeferred=h.load().done(function(){s(h,e)&&h.load()})}else l(h,e,t)},itemsCount:function e(t){var e=0;return!t&&w(this)?(0,f.each)(this._cache,function(){e+=this.itemsCount}):e=this._dataSource.itemsCount(),e},reset:function(e){this._loadingPageIndexes={},this._cache=[],e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"onClick"===e.option("filterRow.applyFilter")}var a=n(2),r=i(a),s=n(5),l=i(s),u=n(1),d=n(0),c=n(8),h=n(3),p=i(h),f=n(40),g=i(f),_=n(36),m=i(_),v=n(10),y=i(v),w=n(48),x=i(w),b=n(59),C=i(b),k=n(367),I=i(k),S=n(106),D={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal","default":"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},T={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},E=700,O=1,A="filter-row",P="filter-range-overlay",B="filter-range-start",M="filter-range-end",F="dx-menu",R="dx-editor-with-menu",V="dx-editor-container",H="dx-editor-cell",L="dx-filter-menu",z="dx-apply-button",$="dx-highlight-outline",N="dx-focused",W="dx-cell-focus-disabled",j="dx-filter-range-content",q="dx-filter-modified",G="input:not([type='hidden'])",K=["date","datetime","number"],U=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof x.default)return i},t=function(e,t){var i="",o="",a=n(e,t),r=m.default.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=m.default.formatValue(a[0],r),o=m.default.formatValue(a[1],r),""!==o&&(i+=" - "+o)):(0,u.isDefined)(a)&&(i=m.default.formatValue(a,r)),i},n=function(e,t){if(t)return o(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue},i=function(e,t){if(t)return o(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},a=function(e,t){return!(t&&K.indexOf(t.dataType)>=0&&Array.isArray(e))&&void 0!==e},s=function(e,t,o){var r=e._columnsController.columnOption(t),s=n(e,r),l=o.closest("."+e.addWidgetPrefix(P)).length,u=o.hasClass(e.addWidgetPrefix(B));return s&&Array.isArray(s)&&"between"===i(e,r)?u?s[0]:s[1]:!l&&a(s,r)?s:null},h=function(e,t,o,a){if("between"===i(e,o)){var r=n(e,o);return a.hasClass(e.addWidgetPrefix(B))?[t,Array.isArray(r)?r[1]:void 0]:[Array.isArray(r)?r[0]:r,t]}return t},f=function(e,t){var n=""===t.value?null:t.value,i=t.container,a=e._columnsController.columnOption(t.column.index),r=s(e,a.index,i);((0,u.isDefined)(r)||(0,u.isDefined)(n))&&(e._applyFilterViewController.setHighLight(i,r!==n),e._columnsController.columnOption(a.index,o(e)?"bufferedFilterValue":"filterValue",h(e,n,a,i),t.notFireEvent))};return{_updateEditorValue:function(t,n){var i=this,o=e(n);o&&o.option("value",s(i,t.index,n))},_columnOptionChanged:function(e){var n,o,a,s,l,u,d,c=this,h=e.optionNames;return m.default.checkChanges(h,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex?(o=c._columnsController.getVisibleIndex(e.columnIndex),a=c._columnsController.columnOption(e.columnIndex),s=c._getCellElement(c.element().find("."+c.addWidgetPrefix(A)).index(),o)||(0,r.default)(),l=s.find("."+V).first(),(h.filterValue||h.bufferedFilterValue)&&(c._updateEditorValue(a,l),n=s.find("."+c.addWidgetPrefix(P)).data("dxOverlay"),n&&(u=n.$content().find("."+V),c._updateEditorValue(a,u.first()),c._updateEditorValue(a,u.last())),n&&n.option("visible")||c._updateFilterRangeContent(s,t(c,a))),void((h.selectedFilterOperation||h.bufferedSelectedFilterOperation)&&o>=0&&a&&(d=s.find("."+F),d.length&&(c._updateFilterOperationChooser(d,a,l),"between"===i(c,a)?c._renderFilterRangeContent(s,a):l.find("."+j).length&&(c._renderEditor(l,c._getEditorOptions(l,a)),c._hideFilterRange()))))):void c.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var o=this,a={},s=e.find(".dx-editor-container"),u=(0,r.default)("<div>").addClass(o.addWidgetPrefix(P)).appendTo(e);return o._createComponent(u,C.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:s.length&&s||e,offset:"0 -1"},contentTemplate:function(t){var i,s=(0,r.default)("<div>").addClass(V+" "+o.addWidgetPrefix(B)).appendTo(t);return n=o._columnsController.columnOption(n.index),i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(G),"keydown",function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,c.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),o._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),l.default.trigger(n,"focus"))}),s=(0,r.default)("<div>").addClass(V+" "+o.addWidgetPrefix(M)).appendTo(t),i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(G),"keydown",function(t){"tab"!==(0,c.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),o._hideFilterRange(),l.default.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,r.default)(t).addClass(o.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find("."+V).first();l.default.trigger(t.find(G),"focus")},onHidden:function(){n=o._columnsController.columnOption(n.index),e.find("."+F).parent().addClass(R),"between"===i(o,n)&&(o._updateFilterRangeContent(e,t(o,n)),o.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(P)),o=i.length&&i.data("dxOverlay");!o&&t&&(o=n._initFilterRangeOverlay(e,t)),o.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=o,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+O}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(A)),this.option("useLegacyKeyboardNavigation")||l.default.on(n,"keydown",function(e){return(0,S.selectView)("filterRow",t,e)})),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n,o,a=this,s=t.column,l=(0,r.default)(e);if(a.component.option("showColumnHeaders")&&a.setAria("describedby",s.headerId,l),a.setAria("label",y.default.format("dxDataGrid-ariaFilterCell"),l),l.addClass(H),n=(0,r.default)("<div>").appendTo(l),o=(0,r.default)("<div>").addClass(V).appendTo(n),"between"===i(a,s))a._renderFilterRangeContent(l,s);else{var u=a._getEditorOptions(o,s);a._renderEditor(o,u)}s.alignment&&l.find(G).first().css("textAlign",s.alignment),s.filterOperations&&s.filterOperations.length&&a._renderFilterOperationChooser(n,s,o)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html("&nbsp;");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t);n.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,o={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(t)}},a=(0,d.extend)(o,t,{value:s(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:E,width:null,setValue:function(i,o){f(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===i(n,t)&&(e.hasClass(n.addWidgetPrefix(B))?a.placeholder=n.option("filterRow.betweenStartText"):a.placeholder=n.option("filterRow.betweenEndText")),a},_getFilterInputAccessibilityAttributes:function(e){var t=y.default.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,r.default)("<div>").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var i=this,o=e.find("."+V).first();o.empty();var a=(0,r.default)("<div>").addClass(j).attr("tabindex",this.option("tabIndex"));l.default.on(a,"focusin",function(){i._showFilterRange(e,n)}),a.appendTo(o),i._updateFilterRangeContent(e,t(i,n))},_updateFilterRangeContent:function(e,t){var n=e.find("."+j);n.length&&(""===t?n.html("&nbsp;"):n.text(t))},_updateFilterOperationChooser:function(t,n,a){var r,s=this,u=function(){var e=I.default.getInstance(t);e&&e.option("focusedElement",null),r&&s._focusEditor(a)};s._createComponent(t,I.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:s.getWidgetContainerClass()+" "+W+" "+L,showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:D[i(s,n)||"default"],selectable:!1,items:s._getFilterOperationMenuItems(n)}],onItemClick:function(t){var r=t.itemData.name,l=i(s,n),u=!1,d=o(s),c={};if(!(t.itemData.items||r&&r===l)){if(r?(c[d?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=r,"between"!==r&&"between"!==l||(u="between"===r,c[d?"bufferedFilterValue":"filterValue"]=null)):(c[d?"bufferedFilterValue":"filterValue"]=null,c[d?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),s._columnsController.columnOption(n.index,c),s._applyFilterViewController.setHighLight(a,!0),!r){var h=e(a);h&&"dxDateBox"===h.NAME&&!h.option("isValid")&&(h.reset(),h.option("isValid",!0))}u?s._showFilterRange(a.closest("."+H),n):s._focusEditor(a)}},onSubmenuShown:function(){r=s._isEditorFocused(a),s.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){l.default.trigger(t,"blur"),u()},onContentReady:function(e){l.default.on(t,"blur",function(){var t=e.component;t._hideSubmenu(t._visibleSubmenu),u()})},rtlEnabled:s.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass(N)||e.parents("."+N).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),l.default.trigger(e.find(G),"focus")},_renderFilterOperationChooser:function(e,t,n){var i,o=this;o.option("filterRow.showOperationChooser")&&(e.addClass(R),i=(0,r.default)("<div>").prependTo(e),o._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],o=t.option("filterRow"),a=o&&o.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var r=e.filterOperations.filter(function(e){return(0,u.isDefined)(T[e])});n=p.default.map(r,function(n){var o=T[n];return{name:n,selected:(i(t,e)||e.defaultFilterOperation)===n,text:a[o],icon:D[n]}}),n.push({name:null,text:o&&o.resetOperationText,icon:D.default})}return n},optionChanged:function(e){var t=this;switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}}}}(),Y={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns(null,!0);return p.default.each(t,function(){var t;this.allowFiltering&&this.calculateFilterExpression&&(0,u.isDefined)(this.filterValue)&&(t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow"),e.push(t))}),m.default.combineFilters(e)}};t.ApplyFilterViewController=g.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){o(this)&&(e&&e.toggleClass($,t)&&e.closest("."+H).toggleClass(q,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;n<t.length;n++){var i=t[n];void 0!==i.bufferedFilterValue&&(e.columnOption(n,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(e.columnOption(n,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}e.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(o(this)){var e=this.getView("columnHeadersView").element();e.find("."+this.addWidgetPrefix(A)+" ."+$).removeClass($),e.find("."+this.addWidgetPrefix(A)+" ."+q).removeClass(q),this._getHeaderPanel().enableApplyButton(!1)}}}),e.exports={defaultOptions:function(){return{filterRow:{visible:!1,showOperationChooser:!0,showAllText:y.default.format("dxDataGrid-filterRowShowAllText"),resetOperationText:y.default.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:y.default.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:y.default.format("dxDataGrid-filterRowOperationEquals"),notEqual:y.default.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:y.default.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:y.default.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:y.default.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:y.default.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:y.default.format("dxDataGrid-filterRowOperationStartsWith"),contains:y.default.format("dxDataGrid-filterRowOperationContains"),notContains:y.default.format("dxDataGrid-filterRowOperationNotContains"),endsWith:y.default.format("dxDataGrid-filterRowOperationEndsWith"),between:y.default.format("dxDataGrid-filterRowOperationBetween"),isBlank:y.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:y.default.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:y.default.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:y.default.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:t.ApplyFilterViewController},extenders:{controllers:{data:Y,columnsResizer:{_startResizing:function(){var e,t,n=this;n.callBase.apply(n,arguments),n.isResizing()&&(t=n._columnHeadersView.getFilterRangeOverlayInstance(),t&&(e=t.$element().closest("td").index(),e!==n._targetPoint.columnIndex&&e!==n._targetPoint.columnIndex+1||t.$content().hide()))},_endResizing:function(){var e,t,n=this;n.isResizing()&&(t=n._columnHeadersView.getFilterRangeOverlayInstance(),t&&(e=t.$element().closest("td"),n._columnHeadersView._updateFilterRangeOverlay({width:e.outerWidth(!0)+O}),t.$content().show())),n.callBase.apply(n,arguments)}}},views:{columnHeadersView:U,headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this._prepareFilterItem(e);return t.concat(e)},_prepareFilterItem:function(){var e=this,t=[];if(e._isShowApplyFilterButton()){var n=e.option("filterRow.applyFilterText"),i=e._columnsController.getColumns(),o=!i.filter(function(e){return void 0!==e.bufferedFilterValue}).length,a=function(t){(0,r.default)(t.element).addClass(e._getToolbarButtonClass(z))},s=function(){e._applyFilterViewController.applyFilter()},l={widget:"dxButton",options:{icon:"apply-filter",disabled:o,onClick:s,hint:n,text:n,onInitialized:a},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};t.push(l)}return t},_isShowApplyFilterButton:function(){var e=this.option("filterRow");return e&&e.visible&&"onClick"===e.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(e){this.setToolbarItemDisabled("applyFilterButton",!e)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(368),a=i(o);e.exports=a.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(5),h=i(c),p=n(9),f=i(p),g=n(4),_=n(11),m=n(3),v=n(1),y=n(0),w=n(253),x=n(8),b=n(23),C=i(b),k=n(140),I=i(k),S=n(338),D=i(S),T=n(59),E=i(T),O=n(642),A=i(O),P=n(35),B=i(P),M=n(144),F=i(M),R="dx-menu",V=R+"-vertical",H=R+"-horizontal",L=R+"-item",z=R+"-items-container",$=L+"-expanded",N="dx-context-menu",W=N+"-container-border",j="dx-context-menu-content-delimiter",q="dx-submenu",G="dx-state-disabled",K="dx-state-hover",U="dx-state-active",Y=R+"-adaptive-mode",X=R+"-hamburger-button",Z=Y+"-overlay-wrapper",Q="up",J="down",ee="left",te="right",ne="showSubmenu",ie="nextItem",oe="prevItem",ae={show:50,hide:300},re=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged"],se=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,y.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",
delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}},{key:"_setOptionsByReference",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setOptionsByReference",this).call(this),(0,y.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})}},{key:"_itemElements",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemElements",this).call(this),n=this._submenuItemElements();return e.add(n)}},{key:"_submenuItemElements",value:function(){var e=[],t="."+L,n=this._submenus.length&&this._submenus[0];return n&&n.itemsContainer()&&(e=n.itemsContainer().find(t)),e}},{key:"_focusTarget",value:function(){return this.$element()}},{key:"_isMenuHorizontal",value:function(){return"horizontal"===this.option("orientation")}},{key:"_moveFocus",value:function(e){var n=this._getAvailableItems(),i=this._isMenuHorizontal(),o=this._getActiveItem(!0),a=void 0,r=void 0,s=void 0,u=void 0;switch(e){case Q:r=i?ne:this._getItemsNavigationOperation(oe),a=i?o:n,s=this._getKeyboardNavigationAction(r,a),u=s();break;case J:r=i?ne:this._getItemsNavigationOperation(ie),a=i?o:n,s=this._getKeyboardNavigationAction(r,a),u=s();break;case te:r=i?this._getItemsNavigationOperation(ie):ne,a=i?n:o,s=this._getKeyboardNavigationAction(r,a),u=s();break;case ee:r=i?this._getItemsNavigationOperation(oe):ne,a=i?n:o,s=this._getKeyboardNavigationAction(r,a),u=s();break;default:return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_moveFocus",this).call(this,e)}u&&0!==u.length&&this.option("focusedElement",(0,_.getPublicElement)(u))}},{key:"_getItemsNavigationOperation",value:function(e){var t=e;return this.option("rtlEnabled")&&(t=e===oe?ie:oe),t}},{key:"_getKeyboardNavigationAction",value:function(e,t){var n=g.noop;switch(e){case ne:t.hasClass(G)||(n=this._showSubmenu.bind(this,t));break;case ie:n=this._nextItem.bind(this,t);break;case oe:n=this._prevItem.bind(this,t)}return n}},{key:"_clean",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}},{key:"_visibilityChanged",value:function(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}},{key:"_isAdaptivityEnabled",value:function(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}},{key:"_updateItemsWidthCache",value:function(){var e=this.$element().find("ul").first().children("li").children("."+L);this._menuItemsWidth=this._getSummaryItemsWidth(e,!0)}},{key:"_dimensionChanged",value:function(){if(this._isAdaptivityEnabled()){var e=this.$element().outerWidth();this._toggleAdaptiveMode(this._menuItemsWidth>e)}}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._submenus=[]}},{key:"_initActions",value:function(){var e=this;this._actions={},(0,m.each)(re,function(t,n){e._actions[n]=e._createActionByOption(n)})}},{key:"_initMarkup",value:function(){this._visibleSubmenu=null,this.$element().addClass(R),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.setAria("role","menubar")}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._initAdaptivity()}},{key:"_renderHamburgerButton",value:function(){return this._hamburger=new B.default((0,d.default)("<div>").addClass(X),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}},{key:"_toggleTreeView",value:function(e){(0,v.isPlainObject)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)}},{key:"_toggleHamburgerActiveState",value:function(e){this._hamburger&&this._hamburger.$element().toggleClass(U,e)}},{key:"_toggleAdaptiveMode",value:function(e){var t=this.$element().find("."+H),n=this.$element().find("."+Y);e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)}},{key:"_removeAdaptivity",value:function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}},{key:"_treeviewItemClickHandler",value:function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)}},{key:"_getAdaptiveOverlayOptions",value:function(){var e=this,t=this.option("rtlEnabled"),n=t?"right":"left";return{maxHeight:function(){return(0,w.getElementMaxHeightByWindow)(e.$element())},deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){e._toggleHamburgerActiveState(!1)},height:"auto",closeOnOutsideClick:function(e){return!(0,d.default)(e.target).closest("."+X).length},position:{collision:"flipfit",at:"bottom "+n,my:"top "+n,of:this._hamburger.$element()}}}},{key:"_getTreeViewOptions",value:function(){var e=this,t={},n=["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],i=["onItemContextMenu","onSelectionChanged"];return(0,m.each)(n,function(n,i){t[i]=e.option(i)}),(0,m.each)(i,function(n,i){t[i]=function(t){e._actions[i](t)}}),(0,y.extend)(t,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:function(t){e._overlay.repaint(),e._actions.onSubmenuShown(t)},onItemCollapsed:function(t){e._overlay.repaint(),e._actions.onSubmenuHidden(t)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}},{key:"_initAdaptivity",value:function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,d.default)("<div>").addClass(Y);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,d.default)("<div>"),F.default,this._getTreeViewOptions()),this._overlay=this._createComponent((0,d.default)("<div>"),E.default,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(Y).addClass(this.option("cssClass")),this._overlay._wrapper().addClass(Z),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}},{key:"_getDelay",value:function(e){var t=this.option("showFirstSubmenuMode").delay;return(0,v.isDefined)(t)?(0,v.isObject)(t)?t[e]:t:ae[e]}},{key:"_keyboardHandler",value:function(e){return!!this._visibleSubmenu||l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_keyboardHandler",this).call(this,e)}},{key:"_renderContainer",value:function(){var e=(0,d.default)("<div>");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?H:V),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderContainer",this).call(this,e)}},{key:"_renderSubmenuItems",value:function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n}},{key:"_createSubmenu",value:function(e,t){var n=(0,d.default)("<div>").addClass(N).appendTo(t),i=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),o=this._getChildNodes(e),a=this._createComponent(n,A.default,(0,y.extend)(this._getSubmenuOptions(),{_keyboardProcessor:i,_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:o,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,a),a}},{key:"_getSubmenuOptions",value:function(){var e=this,t=(0,d.default)("<div>"),n=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:t,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(t){t.component.option("visible")&&e.option("focusedElement",t.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this.option("onItemRendered"),onLeftFirstItem:n?null:this._moveMainMenuFocus.bind(this,oe),onLeftLastItem:n?null:this._moveMainMenuFocus.bind(this,ie),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,n?oe:null),onExpandLastSubmenu:n?this._moveMainMenuFocus.bind(this,ie):null}}},{key:"_getShowFirstSubmenuMode",value:function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,v.isObject)(e)?e.name:e}},{key:"_moveMainMenuFocus",value:function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter("."+$).eq(0),o=t.index(i);this._hideSubmenu(this._visibleSubmenu),o+=e===oe?-1:1,o>=n?o=0:o<0&&(o=n-1);var a=t.eq(o);this.option("focusedElement",(0,_.getPublicElement)(a))}},{key:"_nestedItemOnSelectionChangedHandler",value:function(e){var t=e.addedItems.length&&e.addedItems[0],n=A.default.getInstance(e.element),i=this._actions.onSelectionChanged;i(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionSilent("selectedItem",t)}},{key:"_clearSelectionInSubmenus",value:function(e,t){var n=this,i=!arguments.length;(0,m.each)(this._submenus,function(e,o){var a=o._itemContainer(),r=!a.is(t&&t._itemContainer()),s=a.find("."+n._selectedItemClass());if(r&&s.length||i){s.removeClass(n._selectedItemClass());var l=n._getItemData(s);l&&(l.selected=!1),o._clearSelectedItems()}})}},{key:"_clearRootSelection",value:function(){var e=this.$element().find("."+z).first().children().children().filter("."+this._selectedItemClass());if(e.length){var t=void 0;t=this._getItemData(e),t.selected=!1,e.removeClass(this._selectedItemClass())}}},{key:"_nestedItemOnItemClickHandler",value:function(e){this._actions.onItemClick(e)}},{key:"_attachSubmenuHandlers",value:function(e,t){var n=this,i=t.getOverlayContent(),o=i.find("."+q),a=(0,x.addNamespace)(I.default.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,m.each)(o,function(t,i){h.default.off(i,a),h.default.on(i,a,null,n._submenuMouseLeaveHandler.bind(n,e))})}},{key:"_submenuOnShowingHandler",value:function(e,t){var n=e.children("."+W);this._actions.onSubmenuShowing({rootItem:(0,_.getPublicElement)(e),submenu:t}),n.show(),e.addClass($)}},{key:"_submenuOnShownHandler",value:function(e,t){this._actions.onSubmenuShown({rootItem:(0,_.getPublicElement)(e),submenu:t})}},{key:"_submenuOnHidingHandler",value:function(e,t,n){var i=e.children("."+W),o=n;o.rootItem=(0,_.getPublicElement)(e),o.submenu=t,this._actions.onSubmenuHiding(o),n=o,n.cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass($))}},{key:"_submenuOnHiddenHandler",value:function(e,t){this._actions.onSubmenuHidden({rootItem:(0,_.getPublicElement)(e),submenu:t})}},{key:"_submenuMouseLeaveHandler",value:function(e,t){var n=(0,d.default)(t.relatedTarget).parents("."+N)[0],i=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&n!==i&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}},{key:"_hideSubmenuAfterTimeout",value:function(){if(this._visibleSubmenu){var e=(0,d.default)(this._visibleSubmenu.$element().context).hasClass(K),t=this._visibleSubmenu.getOverlayContent().find("."+K).length,n=this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover");n||t||e||this._visibleSubmenu.hide()}}},{key:"_getSubmenuByRootElement",value:function(e){if(!e)return!1;var t=e.children("."+N);return t.length&&A.default.getInstance(t)}},{key:"getSubmenuPosition",value:function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(n){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o}},{key:"_renderBorderElement",value:function(e){(0,d.default)("<div>").appendTo(e).addClass(W).hide()}},{key:"_itemPointerDownHandler",value:function(e){var n=(0,d.default)(e.target),i=n.closest(this._itemElements());return i.hasClass("dx-menu-item-has-submenu")?void this.option("focusedElement",null):void l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemPointerDownHandler",this).call(this,e)}},{key:"_hoverStartHandler",value:function(e){var t=(0,x.addNamespace)(C.default.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),o=(0,v.isDefined)(e.buttons)&&1===e.buttons||!(0,v.isDefined)(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(h.default.off(n,t),!this._hasChildren(i))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!o){var a=this._getSubmenuByElement(n);this._clearTimeouts(),a.isOverlayVisible()||(h.default.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}},{key:"_hoverEndHandler",value:function(e){var n=this,i=this._getItemElementByEventArgs(e),o=(0,d.default)(e.relatedTarget);l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_hoverEndHandler",this).call(this,e),this._clearTimeouts(),this._isItemDisabled(i)||o.hasClass(j)||this.option("hideSubmenuOnMouseLeave")&&!o.hasClass(z)&&(this._hideSubmenuTimer=setTimeout(function(){n._hideSubmenuAfterTimeout()},this._getDelay("hide")))}},{key:"_hideVisibleSubmenu",value:function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}},{key:"_showSubmenu",value:function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e}},{key:"_hideSubmenu",value:function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null}},{key:"_itemMouseMoveHandler",value:function(e){var t=this;if(!e.pointers||!e.pointers.length){var n=(0,d.default)(e.currentTarget);(0,v.isDefined)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)},this._getDelay("show")))}}},{key:"_clearTimeouts",value:function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}},{key:"_getSubmenuByElement",value:function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)}},{key:"_updateSubmenuVisibilityOnClick",value:function(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var n=(0,d.default)(t.itemElement),i=this._getSubmenuByElement(n,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===i)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(i)return i.isOverlayVisible()?void 0:void this._showSubmenu(n)}}},{key:"_optionChanged",value:function(e){switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"onSubmenuShowing":case"onSubmenuShown":case"onSubmenuHiding":case"onSubmenuHidden":this._initActions();break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e);break;default:this._isAdaptivityEnabled()&&this._treeView.option(e.name,e.value),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_changeSubmenusOption",value:function(e,t){(0,m.each)(this._submenus,function(n,i){i.option(e,t)})}},{key:"selectItem",value:function(e){this._hideSubmenu(this._visibleSubmenu),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e)}},{key:"unselectItem",value:function(e){this._hideSubmenu(this._visibleSubmenu),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e)}}]),t}(D.default);(0,f.default)("dxMenu",se),e.exports=se},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return["!",e]}var a=n(5),r=i(a),s=n(40),l=i(s),u=n(170),d=i(u),c=n(36),h=i(c),p=n(370),f=n(10),g=i(f),_=n(20),m=i(_),v=n(18),y=n(3),w=n(1),x=n(101),b=n(0),C=n(46),k=n(32),I=i(k),S=n(89),D=n(6),T=n(106),E={month:function(e){return I.default.getMonthNames()[e-1]},quarter:function(e){return I.default.format(new Date(2e3,3*e-1),"quarter")}},O=l.default.ViewController.inherit(function(){var e=function(e,t,n){var i=d.default.getGroupInterval(t),o=h.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(o.groupInterval=i[n],h.default.isDateType(t.dataType)?o.format=E[i[n]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,target:"headerFilter"},a=h.default.formatValue(e,o),r=e+i[n],s=h.default.formatValue(r,o);return a&&s?a+" - "+s:""})),o};return{init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var o=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,p.updateHeaderFilterItemSelectionState)(o,h.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,o,a=n.path,r=n.valueSelector,s=n.displaySelector,l=n.column;return r&&s?(i=r(e),o=s(e)):(i=e.key,o=i),e=(0,w.isObject)(e)?(0,b.extend)({},e):{},a.push(i),1===a.length?e.value=a[0]:e.value=a.join("/"),e.text=this.getHeaderItemText(o,l,t,n.headerFilterOptions),e},getHeaderItemText:function(t,n,i,o){var a=h.default.formatValue(t,e(t,n,i));return a||(a=o.texts.emptyValue),a},_processGroupItems:function(e,t,n,i){var o,a,r=this,s=i.column,l=s.lookup,u=i.level;n=n||[],t=t||0,l&&(o=(0,v.compileGetter)(l.displayExpr),a=(0,v.compileGetter)(l.valueExpr));for(var d=0;d<e.length;d++)e[d]=r._normalizeGroupItem(e[d],t,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:o,valueSelector:a,path:n}),"items"in e[d]&&(t!==u&&(0,w.isDefined)(e[d].value)?r._processGroupItems(e[d].items,t+1,n,i):delete e[d].items),n.pop()},getDataSource:function(e){var t,n,i,o=this,a=o._dataController.dataSource(),r=h.default.getHeaderFilterGroupParameters(e,a&&a.remoteOperations().grouping),s=e.headerFilter&&e.headerFilter.dataSource,l=o.option("headerFilter"),u=!1,d={component:o.component};if(a)return(0,w.isDefined)(s)&&!(0,w.isFunction)(s)?d.dataSource=(0,C.normalizeDataSourceOptions)(s):e.lookup?(u=!0,a=e.lookup.dataSource,(0,w.isFunction)(a)&&!(0,S.isWrapped)(a)&&(a=a({})),a=(0,C.normalizeDataSourceOptions)(a),d.dataSource=a):(n=Array.isArray(r)?r.length-1:0,o._currentColumn=e,t=o._dataController.getCombinedFilter(),o._currentColumn=null,d.dataSource={filter:t,group:r,useDefaultSearch:!0,load:function(t){var i=new D.Deferred;return t.dataField=e.dataField||e.name,a.load(t).done(function(t){o._processGroupItems(t,null,null,{level:n,column:e,headerFilterOptions:l}),i.resolve(t)}).fail(i.reject),i}}),(0,w.isFunction)(s)&&s.call(e,d),i=d.dataSource.postProcess,d.dataSource.postProcess=function(t){var n=t;return u&&(0!==this.pageIndex()||this.searchValue()||(n=n.slice(0),n.unshift(null)),o._processGroupItems(n,null,null,{level:0,column:e,headerFilterOptions:l})),n=i&&i.call(this,n)||n,o._updateSelectedState(n,e),n},d.dataSource},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(e,t){var n=this._columnsController,i=(0,b.extend)(!0,{},this._columnsController.getColumns()[e]);if(i){var o=n.getVisibleIndex(e),a=t?this.getView("headerPanel"):this.getView("columnHeadersView"),r=r||a.getColumnElements().eq(t?i.groupIndex:o);this.showHeaderFilterMenuBase({columnElement:r,column:i,applyFilter:!0,apply:function(){n.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(e){var t=this,n=this,i=e.column;if(i){var o=d.default.getGroupInterval(i),a=n._dataController.dataSource(),r=a&&a.remoteOperations().filtering;(0,b.extend)(e,i,{type:o&&o.length>1?"tree":"list",remoteFiltering:r,onShowing:function(t){var i=t.component.overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",function(t){var i=n.getController("columns"),o=i.columnOption(e.dataField,"headerFilter");o=o||{},o.width=t.width,o.height=t.height,i.columnOption(e.dataField,"headerFilter",o,!0)})},onHidden:function(){return(0,T.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}}()),A=(0,b.extend)({},p.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,o=t.column;!o.command&&(0,p.allowHeaderFiltering)(o)&&i.option("headerFilter.visible")&&"header"===t.rowType&&(n=i._applyColumnState({name:"headerFilter",rootElement:e,column:o,showColumnLines:i.option("showColumnLines")}),n&&i._subscribeToIndicatorEvent(n,o,"headerFilter")),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var i=this;"headerFilter"===n&&r.default.on(e,m.default.name,i.createAction(function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!1)}))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;return h.default.checkChanges(t,["filterValues","filterType"])?void(this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators()):void this.callBase(e)}}),P=(0,b.extend)({},p.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,i=this,o=i.callBase.apply(i,arguments);return!t.command&&(0,p.allowHeaderFiltering)(t)&&i.option("headerFilter.visible")&&(n=i._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:(0,x.getDefaultAlignment)(i.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}),n&&r.default.on(n,m.default.name,i.createAction(function(e){var n=e.event;n.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!0)}))),o}}),B={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(null,!0),i=e.getController("headerFilter"),o=i.getCurrentColumn();return(0,y.each)(n,function(e,n){var i;if((!o||o.index!==n.index)&&(0,p.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var a=[];(0,y.each)(n.filterValues,function(e,t){Array.isArray(t)?i=t:(n.deserializeValue&&!h.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),i=n.createFilterExpression(t,"=","headerFilter")),i&&(i.columnIndex=n.index),a.push(i)}),a=h.default.combineFilters(a,"or"),t.push("exclude"===n.filterType?["!",a]:a)}}),h.default.combineFilters(t)}};e.exports={invertFilterExpression:o,defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:g.default.format("dxDataGrid-headerFilterEmptyValue"),ok:g.default.format("dxDataGrid-headerFilterOK"),cancel:g.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:O},views:{headerFilterView:p.HeaderFilterView},extenders:{controllers:{data:B},views:{columnHeadersView:A,headerPanel:P}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){e=e||[];for(var t=0;t<e.length;t++)e[t].selected=!1,o(e[t].items)}function a(e,t){if(!e.component.option("searchValue")){var n=(0,l.default)(e.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");n&&t&&t.length&&n.option("value",void 0)}}function r(e,t){var n=t.headerFilter;return n&&(0,p.isDefined)(n.allowSearch)?n.allowSearch:e.option("headerFilter.allowSearch")}var s=n(2),l=i(s),u=n(40),d=i(u),c=n(36),h=i(c),p=n(1),f=n(3),g=n(0),_=n(44),m=i(_),v=n(144),y=i(v),w=n(103),x=i(w),b="dx-header-filter",C="dx-header-filter-menu",k="text";t.updateHeaderFilterItemSelectionState=function(e,t,n){if(t^n){if(e.selected=!0,n&&e.items)for(var i=0;i<e.items.length;i++)if(!e.items[i].selected){e.selected=void 0;break}}else(n||e.selected)&&(e.selected=!1,o(e.items))},t.HeaderFilterView=d.default.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(e){var t=this,n=t.getListContainer(),i=!n.option("searchValue")&&!e.isFilterBuilder&&n.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked"),o=[],a=function e(t,i,o){(0,f.each)(i,function(i,a){if(void 0!==a.selected&&!!a.selected^o){var r=a.items&&a.items.some(function(e){return void 0!==e.selected});if(!n.option("searchValue")||!r)return void t.push(a.value)}a.items&&a.items.length&&e(t,a.items,o)})};i?Array.isArray(e.filterValues)&&(e.filterValues=[]):"tree"===e.type&&(a(o,n.option("items"),"exclude"===e.filterType),e.filterValues=o),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),t.hideHeaderFilterMenu()},showHeaderFilterMenu:function(e,t){var n,i=this;t&&(i._initializePopupContainer(t),n=i.getPopupContainer(),i.hideHeaderFilterMenu(),i.updatePopup(e,t),n.show())},hideHeaderFilterMenu:function(){var e=this.getPopupContainer();e&&e.hide()},updatePopup:function(e,t){var n=this,i="right"===t.alignment?"left":"right";n._popupContainer&&(n._cleanPopupContent(),n._popupContainer.option("position",{my:i+" top",at:i+" bottom",of:e,collision:"flip fit"}))},_getSearchExpr:function(e){var t=e.lookup,n=e.useDefaultSearchExpr,i=e.headerFilter&&e.headerFilter.dataSource;if(n||(0,p.isDefined)(i)&&!(0,p.isFunction)(i))return k;if(t)return t.displayExpr||"this";if(e.dataSource){var o=e.dataSource.group;if(Array.isArray(o)&&o.length>0)return o[0].selector;if((0,p.isFunction)(o)&&!e.remoteFiltering)return o}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),o=e.headerFilter&&e.headerFilter.width||i&&i.width,a=e.headerFilter&&e.headerFilter.height||i&&i.height,r={width:o,height:a,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!1,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onShown:function(){t.getListContainer().focus()},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,p.isDefined)(t._popupContainer)?t._popupContainer.option(r):t._popupContainer=t._createComponent(n,m.default,r)},_initializeListContainer:function(e){var t=this,n=t._popupContainer.$content(),i={searchEnabled:r(t,e),searchTimeout:t.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,n,i){var o=(0,l.default)(i);return e.encodeHtml?o.text(t.text):o.html(t.text)}};"tree"===e.type?t._listContainer=t._createComponent((0,l.default)("<div>").appendTo(n),y.default,(0,g.extend)(i,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",keyExpr:"id"})):t._listContainer=t._createComponent((0,l.default)("<div>").appendTo(n),x.default,(0,g.extend)(i,{searchExpr:t._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");t.component._selectedItemsUpdating||t.component.option("searchValue")||e.isFilterBuilder||(0===i.length&&n.length&&(!e.filterValues||e.filterValues.length<=1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])),(0,f.each)(n,function(t,n){var o,a=h.default.getIndexByKey(n,i,null)>=0,r=!!n.selected;r!==a&&(n.selected=a,e.filterValues=e.filterValues||[],o=h.default.getIndexByKey(n.value,e.filterValues,null),o>=0&&e.filterValues.splice(o,1),a^"exclude"===e.filterType&&e.filterValues.push(n.value))}),a(t,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),o=[];(0,f.each)(i,function(){this.selected&&o.push(this)}),n._selectedItemsUpdating=!0,n.option("selectedItems",o),n._selectedItemsUpdating=!1,a(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass(C)}});var I=t.allowHeaderFiltering=function(e){return(0,p.isDefined)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.headerFilterMixin={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find("."+b).remove(),I(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0)),t):this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?b:this.callBase(e)},_renderIndicator:function(e){var t,n=e.container,i=e.indicator;return"headerFilter"===e.name&&(t=this.option("rtlEnabled"),n.children().length&&(!t&&"right"===e.columnAlignment||t&&"left"===e.columnAlignment))?void n.prepend(i):void this.callBase(e)},optionChanged:function(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),
e.handled=!0}else this.callBase(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.dataField||e.name}function a(e){e.forEach(function(e){var t=o(e);if(!(0,r.isDefined)(t)&&e.allowFiltering)throw new h.default.Error("E1049",e.caption)})}var r=n(1),s=n(40),l=i(s),u=n(202),d=i(u),c=n(19),h=i(c),p=n(36),f=i(p),g=n(170),_=i(g),m=n(647),v=i(m),y=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],w="include",x="exclude",b=l.default.Controller.inherit(function(){var e=function(){return{filterType:w,filterValues:void 0}},t=function(e){return!(_.default.getGroupInterval(e)||e.headerFilter&&e.headerFilter.dataSource)},n=function(n,i){if(!n)return e();var o,a=n[1],r=n[2],s=Array.isArray(r);if(!s&&!t(i))return e();switch(a){case"anyof":case"=":o=w;break;case"noneof":case"<>":o=x;break;default:return e()}return{filterType:o,filterValues:s?r:[r]}},i=function(e){var t=e.filterValue;if((0,r.isDefined)(t)){var n=e.selectedFilterOperation||e.defaultFilterOperation||d.default.getDefaultOperation(e),i=[o(e),n,e.filterValue];return i}return null},s=function(e){var n,i,a=e.filterValues;return a?(t(e)&&1===e.filterValues.length&&!Array.isArray(a[0])?(n=e.filterType===x?"<>":"=",i=a[0]):(n=e.filterType===x?"noneof":"anyof",i=a),[o(e),n,i]):null},l=function(e,t,i){var a=n(i,t);e.columnOption(o(t),a)},u=function(e,t,n){var i,a=n&&n[1],s=t.filterOperations||t.defaultFilterOperations;(!s||s.indexOf(a)>=0||a===t.defaultFilterOperation)&&y.indexOf(a)>=0?(a!==t.defaultFilterOperation||(0,r.isDefined)(t.selectedFilterOperation)||(a=t.selectedFilterOperation),i={filterValue:n[2],selectedFilterOperation:a}):i={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(o(t),i)};return{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach(function(n){var i=d.default.getMatchedConditions(e.option("filterValue"),o(n));if(1===i.length){var a=i[0];l(t,n,a),u(t,n,a)}else(0,r.isDefined)(n.filterValues)&&l(t,n),(0,r.isDefined)(n.filterValue)&&u(t,n)}),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(a(e),!this.option("filterValue")){var i=this.getController("columns").getFilteringColumns(),o=this.getFilterValueFromColumns(i);this.option("filterValue",o)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add(function(){return e._initSync()}))},_getSyncFilterRow:function(e,t){var n=i(t);return(0,r.isDefined)(n)?d.default.syncFilters(e,n):d.default.removeFieldConditionsFromFilter(e,o(t))},_getSyncHeaderFilter:function(e,t){var n=s(t);return n?d.default.syncFilters(e,n):d.default.removeFieldConditionsFromFilter(e,o(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(function(e){var n=s(e),o=i(e);n&&d.default.addItem(n,t),o&&d.default.addItem(o,t)}),d.default.getNormalizedFilter(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[v.default.anyOf(this.component),v.default.noneOf(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),C={isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,r.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(e.option("filterPanel.filterEnabled")===!1)return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var a=e.getController("headerFilter").getCurrentColumn();a&&i&&(i=d.default.removeFieldConditionsFromFilter(i,o(a)))}var r=e.getController("filterSync").getCustomFilterOperations(),s=d.default.getFilterExpression(i,n,r,"filterBuilder");return s&&t.push(s),f.default.combineFilters(t)},_parseColumnPropertyName:function(e){var t=e.match(/.*\.(.*)/);return t[1]},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?x!==e.value&&x!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}},k={_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!d.default.filterHasField(this.option("filterValue"),o(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}};e.exports={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:b},extenders:{controllers:{data:C},views:{columnHeadersView:k}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(15),u=i(l),d=n(5),c=i(d),h=n(17),p=i(h),f=n(9),g=i(f),_=n(0),m=n(10),v=i(m),y=n(202),w=i(y),x=n(6),b=i(x),C=n(1),k=n(144),I=i(k),S=n(44),D=i(S),T=n(253),E=n(361),O=i(E),A=n(8),P="dx-filterbuilder",B=P+"-group",M=B+"-item",F=B+"-content",R=B+"-operations",V=B+"-operation",H=P+"-action",L=H+"-icon",z="dx-icon-plus",$="dx-icon-remove",N=P+"-text",W=N+"-part",j=N+"-separator",q=j+"-empty",G=P+"-item-field",K=P+"-item-operation",U=P+"-item-value",Y=P+"-item-value-text",X=P+"-overlay",Z=P+"-operations",Q=P+"-fields",J=P+"-add-condition",ee="dx-state-active",te=P+"-menu-custom-operation",ne="filterBuilder",ie="dx-state-disabled",oe="tab",ae="enter",re="escape",se=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],le={and:"and",or:"or",notAnd:"!and",notOr:"!or"},ue=u.default.inherit(O.default),de=function(e,t,n){if(Array.isArray(t)){var i=t.length-1;e.empty(),t.forEach(function(t,o){(0,a.default)("<span>").addClass(W).text(t).appendTo(e),o!==i&&(0,a.default)("<span>").addClass(j).text(n&&n.valueSeparator?n.valueSeparator:"|").addClass(q).appendTo(e)})}else t?e.text(t):e.text(v.default.format("dxFilterBuilder-enterValueText"))},ce=p.default.inherit({_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:v.default.format("dxFilterBuilder-and"),or:v.default.format("dxFilterBuilder-or"),notAnd:v.default.format("dxFilterBuilder-notAnd"),notOr:v.default.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:v.default.format("dxFilterBuilder-filterOperationBetween"),equal:v.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.default.format("dxFilterBuilder-filterOperationContains"),notContains:v.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,_.extend)(!0,[],this._model);return w.default.getFilterExpression(w.default.getNormalizedFilter(t),e,this._customOperations,ne)},_getNormalizedFields:function(){return w.default.getNormalizedFields(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,_.extend)(!0,[],this._model),t=w.default.getNormalizedFilter(e),n=w.default.getNormalizedFilter(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new ue},_initCustomOperations:function(){this._customOperations=w.default.getMergedOperations(this.option("customOperations"),this.option("filterOperationDescriptions.between"))},_getModel:function(e){return w.default.convertToInnerStructure(e,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},se.forEach(function(t){e._actions[t.name]=e._createActionByOption(t.name,t.config)})},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass(P),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,a.default)("<div>").addClass(B).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),o=i.find("."+F),a=w.default.getGroupCriteria(e),r=0;r<a.length;r++){var s=a[r];w.default.isGroup(s)?this._createGroupElementByCriteria(s,a,n+1).appendTo(o):w.default.isCondition(s)&&this._createConditionElement(s,a).appendTo(o)}return i},_createGroupElement:function(e,t,n){var i=this,o=(0,a.default)("<div>").addClass(M),r=(0,a.default)("<div>").addClass(F),s=(0,a.default)("<div>").addClass(B).append(o).append(r);return null!=t&&this._createRemoveButton(function(){w.default.removeItem(t,e),s.remove(),i._updateFilter()}).appendTo(o),this._createGroupOperationButton(e).appendTo(o),this._createAddButton(function(){var t=w.default.createEmptyGroup(i.option("defaultGroupOperation"));w.default.addItem(t,e),i._createGroupElement(t,e,n+1).appendTo(r),i._updateFilter()},function(){var t=i.option("fields")[0],n=w.default.createCondition(t,i._customOperations);w.default.addItem(n,e),i._createConditionElement(n,e).appendTo(r),i._updateFilter()},n).appendTo(o),s},_createButton:function(e){return(0,a.default)("<div>").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=w.default.getGroupMenuItem(e,n),o=i.text,a=n&&n.length<2?this._createButton(o).addClass(ie):this._createButtonWithMenu({caption:o,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&(w.default.setGroupValue(e,n.itemData.value),a.html(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:R}});return a.addClass(N).addClass(V).attr("tabindex",0)},_createButtonWithMenu:function(e){var t=this,n=function(){t.$element().find("."+ee).removeClass(ee),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},i=this.option("rtlEnabled"),o=function(e){return function(t){e(t),"dxclick"===t.event.type&&n()}},r=i?"right":"left",s=this._createButton(e.caption);return(0,_.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:o(e.menu.onItemClick),onHiding:function(e){s.removeClass(ee)},position:{my:r+" top",at:r+" bottom",offset:"0 1",of:s,collision:"flip"},animation:null,onHidden:function(){n()},cssClass:X+" "+e.menu.cssClass,rtlEnabled:i}),e.popup={onShown:function(t){var n=(0,a.default)(t.component.content()).find(".dx-treeview"),i=n.dxTreeView("instance");c.default.on(n,"keyup keydown",function(n){var i=(0,A.normalizeKeyName)(n);("keydown"===n.type&&i===oe||"keyup"===n.type&&(i===re||i===ae))&&(t.component.hide(),c.default.trigger(e.menu.position.of,"focus"))}),i.focus(),i.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(s,function(){n(),t._createPopupWithTreeView(e,t.$element()),s.addClass(ee)}),s},_hasValueButton:function(e){var t=w.default.getCustomOperation(this._customOperations,e[1]);return t?t.hasValue!==!1:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,i=this,o=w.default.getAvailableOperations(t,this.option("filterOperationDescriptions"),this._customOperations),r=w.default.getOperationFromAvailable(w.default.getOperationValue(e),o),s=this._createButtonWithMenu({caption:r.text,menu:{items:o,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,a.default)(e.itemElement).addClass(te)},onContentReady:function(e){e.component.selectItem(r)},onItemClick:function(o){if(r!==o.itemData){r=o.itemData,w.default.updateConditionByOperation(e,r.value,i._customOperations);var a=s.siblings().filter("."+U);i._hasValueButton(e)?(0!==a.length&&a.remove(),i._createValueButton(e,t).appendTo(s.parent())):a.remove(),s.html(r.text),n._updateFilter()}},cssClass:Z}}).addClass(N).addClass(K).attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,o=this,a=this.option("allowHierarchicalFields"),r=w.default.getItems(e,a),s=w.default.getField(n.name||n.dataField,r),l=function(e,t){return a?w.default.getCaptionWithParents(e,t):e.caption},u=this._createButtonWithMenu({caption:l(s,r),menu:{items:r,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){s=e.itemData,t[0]=s.name||s.dataField,t[2]="object"===s.dataType?null:"",w.default.updateConditionByOperation(t,w.default.getDefaultOperation(s),o._customOperations),u.siblings().filter("."+N).remove(),o._createOperationAndValueButtons(t,s,u.parent());var n=l(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:Q}}).addClass(N).addClass(G).attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,i=(0,a.default)("<div>").addClass(M),o=this._getNormalizedFields(),r=w.default.getField(e[0],o);return this._createRemoveButton(function(){w.default.removeItem(t,e),i.remove(),n._updateFilter()}).appendTo(i),this._createFieldButtonWithMenu(o,e,r).appendTo(i),this._createOperationAndValueButtons(e,r,i),i},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[w.default.getGroupValue(e).replace("!","not")]),t.map(function(e){return{text:n[e],value:le[e]}})},_createRemoveButton:function(e){var t=(0,a.default)("<div>").addClass(L).addClass($).addClass(H).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i=void 0,o=this.option("maxGroupLevel");return(0,C.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:v.default.format("dxFilterBuilder-addCondition"),click:t},{caption:v.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:J}}),i.addClass(L).addClass(z).addClass(H).attr("tabindex",0)},_createValueText:function(e,t,n){var i=this,o=(0,a.default)("<div>").html("&nbsp;").addClass(Y).attr("tabindex",0).appendTo(n),r=e[2],s=w.default.getCustomOperation(i._customOperations,e[1]);return!s&&t.lookup?w.default.getCurrentLookupValueText(t,r,function(e){de(o,e)}):b.default.when(w.default.getCurrentValueText(t,r,s)).done(function(e){de(o,e,s)}),i._subscribeOnClickAndEnterKey(o,function(o){"keyup"===o.type&&o.stopPropagation(),i._createValueEditorWithEvents(e,t,n)}),o},_updateConditionValue:function(e,t,n){var i=e[2]!==t;i&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=s.default.getDocument(),i=function(e){return o||a?void(a=!1):void t(e)};c.default.on(n,"keyup",i);var o=!1,a=!1,r=e.find("input");c.default.on(r,"compositionstart",function(){o=!0}),c.default.on(r,"compositionend",function(){o=!1,a=!0}),c.default.on(r,"keydown",function(e){229!==e.which&&(a=!1)}),this._documentKeyUpHandler=i},_addDocumentClick:function(e,t){var n=this,i=s.default.getDocument(),o=function(i){n._isFocusOnEditorParts(e,i.target)||(c.default.trigger(e.find("input"),"change"),t())};c.default.on(i,"dxpointerdown",o),this._documentClickHandler=o},_isFocusOnEditorParts:function(e,t){var n=t||s.default.getActiveElement();return(0,a.default)(n).closest(e.children()).length||(0,a.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=s.default.getDocument();(0,C.isDefined)(this._documentKeyUpHandler)&&c.default.off(e,"keyup",this._documentKeyUpHandler),(0,C.isDefined)(this._documentClickHandler)&&c.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,o=e[2],a=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},r=function(){i._updateConditionValue(e,o,function(){a()})},s={value:""===o?null:o,filterOperation:w.default.getOperationValue(e),setValue:function(e){o=null===e?"":e},closeEditor:r,text:n.text()};n.empty();var l=this._createValueEditor(n,t,s);c.default.trigger(l.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(l,r),this._addDocumentKeyUp(l,function(t){var r=(0,A.normalizeKeyName)(t);if(r===oe){if(i._isFocusOnEditorParts(l))return;i._updateConditionValue(e,o,function(){a(),t.shiftKey&&c.default.trigger(n.prev(),"focus")})}r===re&&c.default.trigger(a(),"focus"),r===ae&&i._updateConditionValue(e,o,function(){c.default.trigger(a(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,a.default)("<div>").addClass(N).addClass(U);return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var i=(0,a.default)("<div>").attr("tabindex",0).appendTo(e),o=w.default.getCustomOperation(this._customOperations,n.filterOperation),r=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;if(r){var s=this._getTemplate(r);s.render({model:(0,_.extend)({field:t},n),container:i})}else this._editorFactory.createEditor.call(this,i,(0,_.extend)({},t,n,{parentType:ne}));return i},_createPopupWithTreeView:function(e,t){var n=this,i=(0,a.default)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(i,D.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var i=(0,a.default)("<div>");return n._createComponent(i,I.default,e.menu),i},maxHeight:function(){return(0,T.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnTargetScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){c.default.on(e,"dxclick",t),c.default.on(e,"keyup",function(e){(0,A.normalizeKeyName)(e)===ae&&t(e)})}});(0,g.default)("dxFilterBuilder",ce),e.exports=ce,e.exports.renderValueText=de},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(40),s=i(r),l=n(0),u=n(374),d=i(u),c=n(10),h=i(c),p=n(118),f=i(p),g=n(44),_=i(g),m=n(106),v=s.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),_.default,(0,l.extend)({title:h.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,m.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,a.default)(e),n=(0,a.default)("<div>").appendTo((0,a.default)(e));this._filterBuilder=this._createComponent(n,d.default,(0,l.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,f.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:h.default.format("dxFilterBuilder-and"),or:h.default.format("dxFilterBuilder-or"),notAnd:h.default.format("dxFilterBuilder-notAnd"),notOr:h.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:h.default.format("dxFilterBuilder-filterOperationBetween"),equal:h.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:h.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:h.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:h.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:h.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:h.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:h.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:h.default.format("dxFilterBuilder-filterOperationContains"),notContains:h.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:h.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:h.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:v}}},function(e,t,n){e.exports=n(372)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(40),l=i(s),u=n(36),d=i(u),c=n(5),h=i(c),p=n(10),f=i(p),g=n(105),_=i(g),m=n(202),v=i(m),y=n(6),w=n(33),x=i(w),b=n(262),C="filter-panel",k=C+"-text",I=C+"-checkbox",S=C+"-clear-filter",D=C+"-left",T="filterPanel",E=l.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add(function(){return e.render()})},_renderCore:function(){var e,t=this,n=t.element();n.empty().addClass(t.addWidgetPrefix(C)),e=(0,a.default)("<div>").addClass(t.addWidgetPrefix(D)).appendTo(n),t.option("filterValue")||t._filterValueBuffer?(e.append(t._getCheckElement()).append(t._getFilterElement()).append(t._getTextElement()),n.append(t._getRemoveButtonElement())):e.append(t._getFilterElement()).append(t._getTextElement())},_getCheckElement:function(){var e=this,t=(0,a.default)("<div>").addClass(this.addWidgetPrefix(I));return e._createComponent(t,_.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,a.default)("<div>").addClass("dx-icon-filter");return h.default.on(t,"click",function(){return e._showFilterBuilder()}),(0,b.registerKeyboardAction)("filterPanel",e,t,void 0,function(){return e._showFilterBuilder()}),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,a.default)("<div>").addClass(t.addWidgetPrefix(k)),i=t.option("filterValue");return i?(0,y.when)(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done(function(e){var o=t.option("filterPanel.customizeText");if(o){var a=o({component:t.component,filterValue:i,text:e});"string"==typeof a&&(e=a)}n.text(e)}):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),h.default.on(n,"click",function(){return t._showFilterBuilder()}),(0,b.registerKeyboardAction)("filterPanel",t,n,void 0,function(){return t._showFilterBuilder()}),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,a.default)("<div>").addClass(e.addWidgetPrefix(S)).text(e.option("filterPanel.texts.clearFilter"));return h.default.on(n,"click",t),(0,b.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="["+e+"] "+t;return(0,r.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('"+e.join("', '")+"')":" '"+e+"'"},_getValueText:function(e,t,n){var i=this,o=new y.Deferred,a=t&&t.customizeText;if((0,r.isDefined)(n)||a)if(!a&&e.lookup)v.default.getCurrentLookupValueText(e,n,function(e){o.resolve(i._getValueMaskedText(e))});else{var s=Array.isArray(n)?n:d.default.getDisplayValue(e,n);(0,y.when)(v.default.getCurrentValueText(e,s,t,T)).done(function(e){o.resolve(i._getValueMaskedText(e))})}else o.resolve("");return o.promise()},getConditionText:function(e,t){var n,i=this,o=e[1],a=new y.Deferred,r=v.default.getCustomOperation(t.customOperations,o),s=v.default.getField(e[0],t.columns),l=s.caption||"",u=e[2];return n=r?r.caption||x.default.captionize(r.name):null===u?v.default.getCaptionByOperation("="===o?"isblank":"isnotblank",t.filterOperationDescriptions):v.default.getCaptionByOperation(o,t.filterOperationDescriptions),this._getValueText(s,r,u).done(function(e){a.resolve(i._getConditionText(l,n,e))}),a},getGroupText:function(e,t,n){var i=this,o=new y.Deferred,a=[],r=v.default.getGroupValue(e);return e.forEach(function(e){v.default.isCondition(e)?a.push(i.getConditionText(e,t)):v.default.isGroup(e)&&a.push(i.getGroupText(e,t,!0))}),y.when.apply(this,a).done(function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];var s=void 0;if("!"===r[0]){var l=t.groupOperationDescriptions["not"+r.substring(1,2).toUpperCase()+r.substring(2)].split(" ");s=l[0]+" "+i[0]}else s=i.join(" "+t.groupOperationDescriptions[r]+" ");n&&(s="("+s+")"),o.resolve(s)}),o},getFilterText:function(e,t){var n=this,i={customOperations:t,columns:n.getController("columns").getFilteringColumns(),filterOperationDescriptions:n.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:n.option("filterBuilder.groupOperationDescriptions")};return v.default.isCondition(e)?n.getConditionText(e,i):n.getGroupText(e,i)}});e.exports={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:f.default.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:f.default.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:f.default.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:E},extenders:{controllers:{data:{optionChanged:function(e){switch(e.name){case"filterPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return(0,d.isDefined)(e.allowSearch)?e.allowSearch:e.allowFiltering}function a(e,t){var n=e.lookup;return e.parseValue?n?e.parseValue.call(n,t):e.parseValue(t):t}var r=n(2),s=i(r),l=n(12),u=i(l),d=n(1),c=n(18),h=n(3),p=n(36),f=n(10),g=i(f),_=n(42),m=i(_),v="search-panel",y="search-text",w="header-panel",x=700;e.exports={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:g.default.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:function(){var e=function(e,t){function n(e){var t,n,i=(0,c.compileGetter)(l.valueExpr);for(t=0;t<e.length;t++)n=i(e[t]),h.push(r.createFilterExpression(n,null,"search"))}var i,r,s,l,u=e._columnsController.getColumns(),d=e.option("searchPanel.searchVisibleColumnsOnly"),h=[];if(!t)return null;for(i=0;i<u.length;i++)r=u[i],d&&!r.visible||o(r)&&r.calculateFilterExpression&&(l=r.lookup,s=a(r,t),l&&l.items?(0,m.default)(l.items).filter(r.createFilterExpression.call({dataField:l.displayExpr,dataType:l.dataType,calculateFilterExpression:r.calculateFilterExpression},s,null,"search")).enumerate().done(n):void 0!==s&&h.push(r.createFilterExpression(s,null,"search")));return(0,p.combineFilters)(h,"or")};return{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var t=this,n=t.callBase(),i=e(t,t.option("searchPanel.text"));return(0,p.combineFilters)([n,i])},searchByText:function(e){this.option("searchPanel.text",e)},optionChanged:function(e){var t=this;switch(e.fullName){case"searchPanel.text":case"searchPanel":
t._applyFilter(),e.handled=!0;break;default:t.callBase(e)}}}}()},views:{headerPanel:function(){var e=function(e){return e.option("searchPanel")};return{_getToolbarItems:function(){var e=this.callBase();return this._prepareSearchItem(e)},_prepareSearchItem:function(t){var n=this,i=n.getController("data"),o=e(n);if(o&&o.visible){var a={template:function(e,t,a){var r=(0,s.default)("<div>").addClass(n.addWidgetPrefix(v)).appendTo(a);n.getController("editorFactory").createEditor(r,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:x,setValue:function(e){i.searchByText(e)},editorOptions:{inputAttr:{"aria-label":g.default.format("dxDataGrid-ariaSearchInGrid")}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(a)}return t},getSearchTextEditor:function(){var e=this,t=e.element(),n=t.find("."+e.addWidgetPrefix(v)).filter(function(){return(0,s.default)(this).closest("."+e.addWidgetPrefix(w)).is(t)});return n.length?n.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=a(e,t),i=(0,p.getFormatOptionsByColumn)(e,"search");return(0,p.formatValue)(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var i,o,a=this,r=t.parent(),l=this._getStringNormalizer(),u=l(n);return r.length?e&&(e.groupIndex>=0&&!e.showWhenGrouped?i=t:(o=a._columnsController.getVisibleIndex(e.index),i=r.children("td").eq(o).find("*"))):r=(0,s.default)("<div>").append(t),i=i&&i.length?i:r.find("*"),i=i.filter(function(e,t){for(var n=(0,s.default)(t).contents(),i=0;i<n.length;i++){var o=n.get(i);return 3===o.nodeType&&l(o.textContent||o.nodeValue).indexOf(u)>-1}})},_highlightSearchTextCore:function(e,t){var n=this,i=(0,s.default)("<span>").addClass(n.addWidgetPrefix(y)),o=e.text(),a=e[0],r=this._getStringNormalizer(),l=r(o).indexOf(r(t));if(l>=0)return a.textContent?a.textContent=o.substr(0,l):a.nodeValue=o.substr(0,l),e.after(i.text(o.substr(l,t.length))),e=(0,s.default)(u.default.createTextNode(o.substr(l+t.length))).insertAfter(i),n._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,o=this._getStringNormalizer(),a=i.option("searchPanel.text");if(t&&n&&(a=a&&i._getFormattedSearchText(n,a)),a&&i.option("searchPanel.highlightSearchText")){var r=i._findHighlightingTextNodes(n,e,a);(0,h.each)(r,function(e,n){(0,h.each)((0,s.default)(n).contents(),function(e,n){t?o((0,s.default)(n).text())===o(a)&&(0,s.default)(this).replaceWith((0,s.default)("<span>").addClass(i.addWidgetPrefix(y)).text((0,s.default)(n).text())):i._highlightSearchTextCore((0,s.default)(n),a)})})}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(e,t){var n=t.column,i=n.lookup&&n.lookup.dataType||n.dataType,a="string"!==i;o(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,a,n])):this._highlightSearchText(e,a,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(40),a=i(o),r=n(652),s=i(r),l=n(14),u=n(1),d=n(7),c="pager",h=10,p=a.default.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType)&&e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(c)),n=e.option("pager")||{},i=e.getController("data"),o=e.getController("keyboardNavigation"),a={maxPagesCount:h,pageIndex:1+(parseInt(i.pageIndex())||0),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})},onKeyDown:function(e){return o&&o.executeAction("onKeyDown",e)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,u.isDefined)(n.infoText)&&(a.infoText=n.infoText),e._createComponent(t,s.default,a)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return(0,u.isDefined)(e._pageSizes)&&(0,l.inArray)(o,e._pageSizes)!==-1||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,o=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!o||"virtual"!==o.mode&&"infinite"!==o.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,o="paging"===n,a="dataSource"===n,r="scrolling"===n,s=t.getController("data");if(i||o||r||a){if(e.handled=!0,s.skipProcessingPagingChange(e.fullName))return;(i||o)&&(t._pageSizes=null),(i||o||r)&&(t._isVisible=!1),a||(t._invalidate(),(0,d.hasWindow)()&&i&&t.component&&t.component.resize())}}});e.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:p}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(5),u=i(l),d=n(26),c=i(d),h=n(1),p=i(h),f=n(3),g=n(0),_=n(8),m=n(23),v=i(m),y=n(70),w=i(y),x=n(40),b=i(x),C=n(36),k=i(C),I=n(39),S=i(I),D=n(155),T="columns-separator",E="columns-separator-transparent",O="drag-header",A="text-content",P="drag-action",B="tracker",M="drop-highlight",F="dx-block-separator",R="dx-header-row",V="dx-widget",H="dx-drag-command-cell",L="dxDataGridResizingReordering",z=10,$=5,N=.5,W=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},j=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},q=b.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(B)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(B))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return W(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),G=b.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.width();t.width(e)}}}),K=G.inherit({_renderSeparator:function(){this.callBase();var e=this.element();e.addClass(this.addWidgetPrefix(T))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){e=t.element(),e&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=W(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(j(this)||W(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=W(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(E)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(E);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",e-this._parentElement().offset().left)},changeCursor:function(e){e=p.default.isDefined(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),U=G.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add(function(t){t||e.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(F).html("&nbsp;")},hide:function(){var e=this,t=this._parentElement(),n=this.element();n&&this._isShown&&n.css("display","none"),t&&!t.children("."+F).length&&t.prepend(e.element()),e.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this,n=this.element(),i=function(e){S.default.stop(n,!0),S.default.animate(n,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(n&&!t._isShown)switch(e){case"group":i({width:"50px",display:"inline-block"});break;case"columnChooser":i({width:"100%",display:"block"});break;default:n.css("display","")}t.callBase()}}),Y=b.default.View.inherit({_isDragging:!1,_getDraggingPanelByPos:function(e){var t,n=this;return(0,f.each)(n._dragOptions.draggingPanels,function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.y<o.bottom)&&(void 0===o.top||e.y>o.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.x<o.right))return t=i,!1}}),t},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(O)+" "+this.addWidgetPrefix(A)+" "+V).hide()},_resetTargetColumnOptions:function(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY},_getVisibleIndexObject:function(e,t){return p.default.isDefined(e)?{columnIndex:t,rowIndex:e}:t},dispose:function(){var e=this.element();this._dragOptions=null,e&&e.parent().find("."+this.addWidgetPrefix(O)).remove()},isVisible:function(){var e=this.getController("columns"),t=e.getCommonSettings();return this.option("showColumnHeaders")&&(j(this)||t.allowGrouping||t.allowHiding)},init:function(){var e=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add(function(t){var n=e.element();!t&&n&&n.hide()})},dragHeader:function(e){var t=this,n=e.columnElement,i=!!e.sourceColumn.type;t._isDragging=!0,t._dragOptions=e,t._dropOptions={sourceIndex:e.index,sourceColumnIndex:t._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var o=s.default.getDocument();t._onSelectStart=o.onselectstart,o.onselectstart=function(){return!1},t._controller.drag(t._dropOptions),t.element().css({textAlign:n&&n.css("textAlign"),height:n&&(i&&n.get(0).clientHeight||n.height()),width:n&&(i&&n.get(0).clientWidth||n.width()),whiteSpace:n&&n.css("whiteSpace")}).addClass(t.addWidgetPrefix(P)).toggleClass(H,i).text(i?"":e.sourceColumn.caption),t.element().appendTo((0,D.getSwatchContainer)(n))},moveHeader:function(e){var t,n,i,o,a=e.event,r=a.data.that,s=(0,_.eventData)(a),l=!!r._columnsResizerViewController&&r._columnsResizerViewController.isResizing(),u=r._dragOptions;if(r._isDragging&&!l){var d=r.element();i=Math.abs(s.x-u.columnElement.offset().left-u.deltaX),o=Math.abs(s.y-u.columnElement.offset().top-u.deltaY),(d.is(":visible")||i>$||o>$)&&(d.show(),t=s.x-u.deltaX,n=s.y-u.deltaY,d.css({left:t,top:n}),r.dockHeader(s)),a.preventDefault()}},dockHeader:function(e){var t,n,i=this,o=i._getDraggingPanelByPos(e),r=i._controller,s=i._dropOptions,l=i._dragOptions;if(o){var u=i.option("rtlEnabled"),d="columnChooser"===o.getName(),c=d?"y":"x",h=o.getName(),p="headers"===h?l.rowIndex:void 0,f=l.sourceColumn,_=o.getColumnElements(p,f&&f.ownerBand)||[],m=l.pointsByTarget=l.pointsByTarget||{},v="columnChooser"===h?[]:m[h]||r._generatePointsByColumns((0,g.extend)({},l,{targetDraggingPanel:o,columns:o.getColumns(p),columnElements:_,isVerticalOrientation:d,startColumnIndex:"headers"===h&&(0,a.default)(_[0]).index()}));if(m[h]=v,s.targetLocation=h,v.length>0){for(t=0;t<v.length;t++)if(n=v[t+1]&&(v[t][c]+v[t+1][c])/2,void 0===n||(u&&"x"===c?e[c]>n:e[c]<n)){s.targetColumnIndex=i._getVisibleIndexObject(p,v[t].columnIndex),_[t]?(s.targetColumnElement=_.eq(t),s.isLast=!1):(s.targetColumnElement=_.last(),s.isLast=!0),s.posX=v[t].x,s.posY=v[t].y,r.dock(s);break}}else i._resetTargetColumnOptions(),r.dock(s)}},dropHeader:function(e){var t=e.event,n=t.data.that,i=n._controller;n.element().hide(),i&&n._isDragging&&i.drop(n._dropOptions),n.element().appendTo(n._parentElement()),n._dragOptions=null,n._dropOptions=null,n._isDragging=!1,s.default.getDocument().onselectstart=n._onSelectStart||null}}),X=function(e){return"widget"!==e.option("columnResizingMode")},Z=b.default.ViewController.inherit({_isHeadersRowArea:function(e){if(this._columnHeadersView){var t,n,i=this._columnHeadersView.element();if(i)return n=i.offset().top,t=this._columnHeadersView.getHeadersRowHeight(),e>=n&&e<=n+t}return!1},_pointCreated:function(e,t,n){var i,o,a=X(this),r=this.option("rtlEnabled"),s=!a&&r?0:1;return!(e.index>=s&&e.index<t+(a||r?0:1))||(e.columnIndex-=s,i=n[e.columnIndex]||{},o=n[e.columnIndex+1]||{},!(a?i.allowResizing&&o.allowResizing:i.allowResizing))},_getTargetPoint:function(e,t,n){if(e)for(var i=0;i<e.length;i++)if((e[i].x!==e[0].x||!e[i+1]||e[i].x!==e[i+1].x)&&e[i].x-n<=t&&t<=e[i].x+n)return e[i];return null},_moveSeparator:function(e){var t=e.event,n=t.data,i=n._columnsSeparatorView.width(),o=X(n),a=i/2,r=n._$parentContainer.offset(),s=r.left,l=(0,_.eventData)(t);if(n._isResizing&&n._resizingInfo){if(s<=l.x&&(!o||l.x<=s+n._$parentContainer.width())&&n._updateColumnsWidthIfNeeded(l.x)){var u=n._columnHeadersView.getColumnElements().eq(n._resizingInfo.currentColumnIndex);n._columnsSeparatorView.moveByX(u.offset().left+(o&&n.option("rtlEnabled")?0:u.outerWidth())),n._tablePositionController.update(n._targetPoint.y),t.preventDefault()}}else n._isHeadersRowArea(l.y)?(n._previousParentOffset&&(n._previousParentOffset.left===r.left&&n._previousParentOffset.top===r.top||n.pointsByColumns(null)),n._targetPoint=n._getTargetPoint(n.pointsByColumns(),l.x,i),n._previousParentOffset=r,n._isReadyResizing=!1,n._targetPoint?(n._columnsSeparatorView.changeCursor("col-resize"),n._columnsSeparatorView.moveByX(n._targetPoint.x-a),n._tablePositionController.update(n._targetPoint.y),n._isReadyResizing=!0,t.preventDefault()):n._columnsSeparatorView.changeCursor()):(n.pointsByColumns(null),n._isReadyResizing=!1,n._columnsSeparatorView.changeCursor())},_endResizing:function(e){var t=e.event,n=t.data;if(n._isResizing){if(n.pointsByColumns(null),n._resizingInfo=null,n._columnsSeparatorView.hide(),n._columnsSeparatorView.changeCursor(),n._trackerView.hide(),!X(n)){var i=n.component.pageIndex();if(n.component.updateDimensions(),n.option("wordWrapEnabled")&&"virtual"===n.option("scrolling.mode")){var o=n.component.getDataSource();o&&o.load().done(function(){n._rowsView.scrollToPage(i)})}}n._isReadyResizing=!1,n._isResizing=!1}},_getNextColumnIndex:function(e){return e+1},_setupResizingInfo:function(e){var t=this,n=t._targetPoint.columnIndex,i=t._getNextColumnIndex(n),o=t._columnHeadersView.getHeaderElement(n),a=t._columnHeadersView.getHeaderElement(i);t._resizingInfo={startPosX:e,currentColumnIndex:n,currentColumnWidth:o&&o.length>0?o[0].getBoundingClientRect().width:0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?a[0].getBoundingClientRect().width:0}},_startResizing:function(e){var t=e.event,n=t.data,i=(0,_.eventData)(t),o=n.getController("editing"),a=n.option("editing.mode"),r=o.isEditing()&&("batch"===a||"cell"===a);(0,_.isTouchEvent)(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,z),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!r&&(n._setupResizingInfo(i.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show(),t.preventDefault(),t.stopPropagation())},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=k.default.getPointsByColumns(n,function(i){return e._pointCreated(i,n.length,t)})),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.move,L),this._moveSeparatorHandler),this._startResizingHandler&&u.default.off(this._$parentContainer,(0,_.addNamespace)(v.default.down,L),this._startResizingHandler),this._endResizingHandler&&(u.default.off(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,L),this._endResizingHandler),u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.up,L),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.move,L),this,this._moveSeparatorHandler),u.default.on(this._$parentContainer,(0,_.addNamespace)(v.default.down,L),this,this._startResizingHandler),u.default.on(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,L),this,this._endResizingHandler),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.up,L),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e){return p.default.isString(e)&&"%"===e.slice(-1)}function n(e,n,i,o){if(e){var a=e.width;a&&(o=t(a)),o?(e&&h.columnOption(e.index,"visibleWidth",n),e&&h.columnOption(e.index,"width",(n/i*100).toFixed(3)+"%")):(e&&h.columnOption(e.index,"visibleWidth",null),e&&h.columnOption(e.index,"width",n))}}function i(e,n){var i,o=n.every(function(e){return e.width});return o&&(i=n.reduce(function(e,n){return t(n.width)&&(e+=parseFloat(n.width)),e},0),i>100&&(e=e/i*100)),e}var o,a,r,s,l,u,d=!1,c=this._resizingInfo,h=this._columnsController,f=h.getVisibleColumns(),g=this._columnsSeparatorView.width(),_=this._rowsView.contentWidth(),m=X(this),v=m&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth");if(o=e-c.startPosX,m&&this.option("rtlEnabled")&&(o=-o),u=c.currentColumnWidth+o,r=f[c.currentColumnIndex],s=r&&r.minWidth||g,d=u>=s,m&&(a=c.nextColumnWidth-o,l=f[c.nextColumnIndex],s=l&&l.minWidth||g,d=d&&a>=s),d){if(h.beginUpdate(),u=Math.floor(u),_=i(_,f),n(r,u,_,v),m)a=Math.floor(a),n(l,a,_,v);else{var y=this._columnHeadersView.getColumnWidths();y[c.currentColumnIndex]=u;var w=y.reduce(function(e,t){return e+t},0)>this._rowsView.contentWidth();if(!w){var x=k.default.getLastResizableColumnIndex(f);x>=0&&h.columnOption(f[x].index,"visibleWidth","auto")}for(var b=0;b<y.length;b++)f[b]&&f[b]!==r&&void 0===f[b].width&&h.columnOption(f[b].index,"width",y[b])}h.endUpdate()}return d},_subscribeToCallback:function(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})},_unsubscribeFromCallbacks:function(){var e,t;for(e=0;e<this._subscribesToCallbacks.length;e++)t=this._subscribesToCallbacks[e],t.callback.remove(t.handler);this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var e=this,t=function(){e._isResizing||e.pointsByColumns(null)},n=function(t){e._scrollLeft!==t.left&&(e._scrollLeft=t.left,e.pointsByColumns(null))};e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._columnHeadersView=e.getView("columnHeadersView"),e._trackerView=e.getView("trackerView"),e._rowsView=e.getView("rowsView"),e._columnsController=e.getController("columns"),e._tablePositionController=e.getController("tablePosition"),e._$parentContainer=e._columnsSeparatorView.component.$element(),e._subscribeToCallback(e._columnHeadersView.renderCompleted,t),e._subscribeToCallback(e._columnHeadersView.resizeCompleted,t),e._subscribeToCallback(e._columnsSeparatorView.renderCompleted,function(){e._unsubscribeFromEvents(),e._subscribeToEvents()}),e._subscribeToCallback(e._rowsView.renderCompleted,function(){e._rowsView.scrollChanged.remove(n),e._rowsView.scrollChanged.add(n)});var i=0!==e._rowsView.getScrollbarWidth(),o=0;e._subscribeToCallback(e.getController("tablePosition").positionChanged,function(t){if(e._isResizing&&!e._rowsView.isResizing){var n=0!==e._rowsView.getScrollbarWidth();i!==n||o&&o!==t.height?(i=n,o=t.height,e.component.updateDimensions()):e._rowsView.updateFreeSpaceRowHeight()}o=t.height})},optionChanged:function(e){this.callBase(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],W(this)&&this._init()},pointsByColumns:function(e){return void 0===e?(this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns):void(this._pointsByColumns=e)},dispose:function(){this._unsubscribes(),this.callBase()}}),Q=b.default.ViewController.inherit({update:function(e){var t=this,n={},i=t._columnHeadersView.element(),o=i&&i.offset(),a=o&&o.top||0,r=p.default.isDefined(e)?Math.abs(e-a):0,s=t._columnHeadersView?t._columnHeadersView.getHeight():0,l=t._rowsView.getScrollbarWidth(!0),u=t._rowsView?t._rowsView.height()-l:0,d=t.component.getController("columnsResizer");n.height=s,d.isResizing()!==!1&&(n.height+=u-r),null!==e&&i&&i.length&&(n.top=i[0].offsetTop+r),t.positionChanged.fire(n)},init:function(){var e=this;e.callBase(),e._columnHeadersView=this.getView("columnHeadersView"),e._rowsView=this.getView("rowsView"),e._pagerView=this.getView("pagerView"),e._rowsView.resizeCompleted.add(function(){e.option("allowColumnResizing")&&e.update(null)})},ctor:function(e){this.callBase(e),this.positionChanged=(0,c.default)()}}),J=b.default.ViewController.inherit({_generatePointsByColumns:function(e){var t=this;return k.default.getPointsByColumns(e.columnElements,function(n){return t._pointCreated(n,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn)},e.isVerticalOrientation,e.startColumnIndex)},_pointCreated:function(e,t,n,i){var o=t[e.columnIndex],a=t[e.columnIndex-1];switch(n){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!o||!o.allowReordering)&&(!a||!a.allowReordering);default:return 0===t.length}},_subscribeToEvents:function(e,t){var n=this;(0,f.each)(t,function(i,o){if(o){var r,s,l,d=o.getRowCount?o.getRowCount():1,c=o.getName(),h=function(i,r){if(r){var l=(0,a.default)(r),d=s[i];o.allowDragging(d,c,t)&&(l.addClass(n.addWidgetPrefix(P)),u.default.on(l,(0,_.addNamespace)(w.default.start,L),n.createAction(function(o){var r=o.event,s=(0,_.eventData)(r);e.dragHeader({deltaX:s.x-(0,a.default)(r.currentTarget).offset().left,deltaY:s.y-(0,a.default)(r.currentTarget).offset().top,sourceColumn:d,index:d.index,columnIndex:i,columnElement:l,sourceLocation:c,draggingPanels:t,rowIndex:n._columnsController.getRowIndex(d.index,!0)})})),u.default.on(l,(0,_.addNamespace)(w.default.move,L),{that:e},n.createAction(e.moveHeader)),u.default.on(l,(0,_.addNamespace)(w.default.end,L),{that:e},n.createAction(e.dropHeader)))}};for(r=0;r<d;r++)l=o.getColumnElements(r)||[],l.length&&(s=o.getColumns(r)||[],(0,f.each)(l,h))}})},_unsubscribeFromEvents:function(e,t){var n=this;(0,f.each)(t,function(e,t){if(t){var i=t.getColumnElements()||[];(0,f.each)(i,function(e,t){var i=(0,a.default)(t);u.default.off(i,(0,_.addNamespace)(w.default.start,L)),u.default.off(i,(0,_.addNamespace)(w.default.move,L)),u.default.off(i,(0,_.addNamespace)(w.default.end,L)),i.removeClass(n.addWidgetPrefix(P))})}})},_getSeparator:function(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(e){var t=this._blockSeparatorView,n=this._columnsSeparatorView;this._animationColumnIndex=null,t&&t.hide(),"block"!==e&&n&&n.hide()},init:function(){var e,t=this;t.callBase(),t._columnsController=t.getController("columns"),t._columnHeadersView=t.getView("columnHeadersView"),t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._draggingHeaderView=t.getView("draggingHeaderView"),t._rowsView=t.getView("rowsView"),t._blockSeparatorView=t.getView("blockSeparatorView"),t._headerPanelView=t.getView("headerPanel"),t._columnChooserView=t.getView("columnChooserView"),e=function(){if(t._draggingHeaderView){var e=[t._columnChooserView,t._columnHeadersView,t._headerPanelView];t._unsubscribeFromEvents(t._draggingHeaderView,e),t._subscribeToEvents(t._draggingHeaderView,e)}},t._columnHeadersView.renderCompleted.add(e),t._headerPanelView&&t._headerPanelView.renderCompleted.add(e),t._columnChooserView&&t._columnChooserView.renderCompleted.add(e)},allowDrop:function(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)},drag:function(e){var t=e.sourceIndex,n=e.sourceLocation,i=e.sourceColumnElement,o=this._columnHeadersView,a=this._rowsView;i&&(i.css({opacity:N}),"headers"===n&&(o&&o.setRowsOpacity(t,N),a&&a.setRowsOpacity(t,N)))},dock:function(e){var t=this,n=p.default.isObject(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,i=e.sourceLocation,o=e.targetLocation,a=t._getSeparator(o),r=n>=0,s=function(){t._animationColumnIndex!==n&&(t.hideSeparators(),a.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,a.show(o))};t._columnHeadersView.element().find("."+R).toggleClass(t.addWidgetPrefix(M),"headers"!==i&&"headers"===o&&!r),a&&(t.allowDrop(e)&&r?"group"===o||"columnChooser"===o?s():(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),a.moveByX(e.posX-a.width()),a.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+R).removeClass(this.addWidgetPrefix(M))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});e.exports={views:{columnsSeparatorView:K,blockSeparatorView:U,draggingHeaderView:Y,trackerView:q},controllers:{draggingHeader:J,tablePosition:Q,columnsResizer:Z},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&i}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e&&e.hasClass(H)}function a(e){return e&&e.hasClass(z)}function r(e){return e&&!o(e)&&!a(e)}function s(e){return!e||e.hasClass($)||e.hasClass(N)}function l(e){return e.length&&"TD"===e[0].tagName}function u(e,t){return!e._isRowEditMode()&&t&&t.hasClass(j)}function d(e){return(0,w.isDefined)(e)&&e.length>0}var c=n(2),h=i(c),p=n(12),f=i(p),g=n(5),_=i(g),m=n(40),v=i(m),y=n(36),w=n(1),x=n(14),b=n(65),C=n(162),k=i(C),I=n(8),S=i(I),D=n(23),T=i(D),E=n(4),O=n(106),A=n(25),P=i(A),B="rowsview",M="edit-form",F="group-footer",R="dx-row",V="dx-data-row",H="dx-group-row",L="edit-form-item",z="dx-master-detail-row",$="dx-freespace-row",N="dx-virtual-row",W="dx-master-detail-cell",j="dx-editor-cell",q="dx-edit-row",G="dx-dropdowneditor-overlay",K="dx-command-expand",U="dx-command-select",Y="[class^=dx-command]",X="dx-cell-focus-disabled",Z="dxDateBox",Q="dx-state-focused",J="dx-widget",ee="delete",te="input:not([type='hidden']), textarea, a, select, [tabindex]",ne="row",ie="form",oe="batch",ae="cell",re="row",se="cell",le=v.default.ViewController.inherit({init:function(){var e=this;e.isKeyboardEnabled()&&(e._dataController=e.getController("data"),e._selectionController=e.getController("selection"),e._editingController=e.getController("editing"),e._headerPanel=e.getView("headerPanel"),e._columnsController=e.getController("columns"),e.getController("editorFactory").focused.add(function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._focusedView._scrollToElement(t),e._isNeedScroll=!1)}),e._fastEditingStarted=!1,e._focusedCellPosition={},e._canceledCellPosition=null,e._initViewHandlers(),e._documentClickHandler=e.createAction(function(t){var n=(0,h.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest("."+e.addWidgetPrefix(B)).length,o=n.closest("."+G).length;i||o||e._resetFocusedCell()}),e.createAction("onKeyDown"),_.default.on(f.default.getDocument(),S.default.addNamespace(T.default.down,"dxDataGridKeyboardNavigation"),e._documentClickHandler))},_initViewHandlers:function(){var e=this,t=e.createAction(e._clickHandler),n=e.getView("rowsView");n.renderCompleted.add(function(i){var o=n.element(),a=!i||"refresh"===i.changeType,r=e._focusedView&&e._focusedView.name===n.name,s=!1,l=i&&("append"===i.changeType||"prepend"===i.changeType),u="."+R+" > td, ."+R,d=(0,h.default)(":focus"),c=!d.length||d.closest(o).length||P.default.msie&&d.is("body");_.default.off(o,S.default.addNamespace(T.default.up,"dxDataGridKeyboardNavigation"),t),_.default.on(o,S.default.addNamespace(T.default.up,"dxDataGridKeyboardNavigation"),u,t),e._initKeyDownProcessor(e,o,e._keyDownHandler),r&&c&&(s=e._isNeedFocus?!l:e._isHiddenFocus&&a,s&&e._updateFocus(!0));
})},_initKeyDownProcessor:function(e,t,n){this._keyDownProcessor&&(this._keyDownProcessor.dispose(),this._keyDownProcessor=null),this._keyDownProcessor=new k.default({element:t,context:e,handler:n})},dispose:function(){this.callBase(),this._focusedView=null,this._keyDownProcessor&&this._keyDownProcessor.dispose(),_.default.off(f.default.getDocument(),S.default.addNamespace(T.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},optionChanged:function(e){var t=this;switch(e.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:t.callBase(e)}},isRowFocusType:function(){return this.focusType===re},isCellFocusType:function(){return this.focusType===se},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType=re)},setCellFocusType:function(){this.focusType=se},_keyDownHandler:function(e){var t,n=this._editingController.isEditing(),i=!0,o=e.originalEvent;if(t=this._processOnKeyDown(e),!o.isDefaultPrevented()&&(this._isNeedFocus=!0,this._isNeedScroll=!0,this._updateFocusedCellPosition(this._getCellElementFromTarget(o.target)),!t)){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,n);break;case"upArrow":case"downArrow":e.ctrl?(0,O.selectView)("rowsView",this,o):this._upDownKeysHandler(e,n);break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e);break;case"space":this._spaceKeyHandler(e,n);break;case"A":e.ctrl?this._ctrlAKeyHandler(e,n):this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,n);break;case"enter":this._enterKeyHandler(e,n);break;case"escape":this._escapeKeyHandler(e,n);break;case"F":e.ctrl?this._ctrlFKeyHandler(e):this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler();break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&this._beginFastEditing(o,!0);break;default:this._beginFastEditing(o)||(this._isNeedFocus=!1,this._isNeedScroll=!1,i=!1)}i&&o.stopPropagation()}},_processOnKeyDown:function(e){var t=e.originalEvent,n={handled:!1,event:t};return this.executeAction("onKeyDown",n),e.ctrl=t.ctrlKey,e.alt=t.altKey,e.shift=t.shiftKey,!!n.handled},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),s=this._isFastEditingStarted(),l=(!t||s)&&r(o);if(l){this.setCellFocusType(),s&&this._editingController.closeEditCell();var u=this._getNextCell(a);d(u)&&this._arrowKeysHandlerFocusCell(i,u),i&&i.preventDefault()}},_upDownKeysHandler:function(e,t){var n,i=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(i),r=e.originalEvent,s="upArrow"===e.keyName,l=this._dataController.dataSource(),u=this._isFastEditingStarted(),d=(!t||u)&&o&&!a(o);d&&(u&&this._editingController.closeEditCell(),this._navigateNextCell(r,e.keyName)||this._isVirtualScrolling()&&s&&l&&!l.isLoading()&&(n=o.outerHeight(),i=this._focusedCellPosition.rowIndex-1,this._scrollBy(-n,i,r)),r&&r.preventDefault())},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===e.keyName,a=o?-1:1,r=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+a),e.originalEvent.preventDefault()):r&&r._container().height()<r.$content().height()&&(this._scrollBy(r._container().height()*a),e.originalEvent.preventDefault())},_spaceKeyHandler:function(e,t){var n,i,o=this.getVisibleRowIndex(),a=(0,h.default)(e.originalEvent&&e.originalEvent.target);this.option("selection")&&"none"!==this.option("selection").mode&&!t?(n="row"===this._getElementType(a)&&this.isRowFocusType()&&r(a),i=a.hasClass(U),i&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),(n||a.parent().hasClass(V)||a.hasClass(this.addWidgetPrefix(B)))&&(this._selectionController.changeItemSelection(o,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault())):this._beginFastEditing(e.originalEvent)},_ctrlAKeyHandler:function(e,t){!t&&e.ctrl&&!e.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),e.originalEvent.preventDefault())},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",o=!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),a=e.originalEvent.target,r=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if((0,h.default)(r).addClass(Q),n&&a&&!o)if((0,h.default)(a).hasClass(this.addWidgetPrefix(B))&&this._resetFocusedCell(),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(o=!0);o?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._editingController.closeEditCell())):e.originalEvent.preventDefault()}},_editingCellTabHandler:function(e,t){var n,i,o,a=this.option("editing"),r=e.originalEvent.target,s=this._getCellElementFromTarget(r),l=e.originalEvent,u=this._getElementType(r);if(s.is(Y))return!this._targetCellTabHandler(e,t);if(this._updateFocusedCellPosition(s),s=this._getNextCellByTabKey(l,t,u),!s||this._handleTabKeyOnMasterDetailCell(s,t))return!1;if(n=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(s)],i=this._dataController.items()[this._getRowIndex(s&&s.parent())],n.allowEditing){var d=!i||"data"===i.rowType;o=a.allowUpdating?d:i&&i.isNewRow}return o||this._editingController.closeEditCell(),this._focusCell(s)&&(!this._isRowEditMode()&&o?this._editingController.editCell(this.getVisibleRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(s,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,o=i.target,a=this._getCellElementFromTarget(o),s=this._getInteractiveElement(a,!e.shift),l=!1;if(!u(this,a)&&s.length&&o!==s.get(0))l=!0;else{if(void 0===this._focusedCellPosition.rowIndex&&(0,h.default)(o).hasClass(R)&&this._updateFocusedCellPosition((0,h.default)(o).children().first()),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&r((0,h.default)(o))&&(o=this.getFirstValidCellInRow((0,h.default)(o)),n=this._getElementType(o))),a=this._getNextCellByTabKey(i,t,n),!a)return!1;if(a=this._checkNewLineTransition(i,a),!a)return!1;this._focusCell(a),u(this,a)||this._focusInteractiveElement(a,e.shift)}return l},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);if(o&&!o.cancel)return o.$newCellElement&&(i=o.$newCellElement),i},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(t),a=this._fireFocusedRowChanging(e,i);if(a.cancel)return;a.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&o(a)||this.option("masterDetail.enabled")&&n&&n.hasClass(K)){var r=this._dataController.getKeyByRowIndex(i),s=this._dataController.items()[i];void 0!==r&&s&&s.data&&!s.data.isContinuation&&this._dataController.changeRowExpand(r)}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var n=this._getEnterKeyDirection(e),i=this._allowEditingOnEnterKey();t||!i&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):i&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(_.default.trigger((0,h.default)(t),"change"),this._editingController.closeEditCell(),e.preventDefault())},_escapeKeyHandler:function(e,t){var n=this._getCellElementFromTarget(e.originalEvent.target);t&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData()):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._editingController.closeEditCell(),e.originalEvent.preventDefault())},_ctrlFKeyHandler:function(e){if(this.option("searchPanel.visible")){var t=this._headerPanel.getSearchTextEditor();t&&(t.focus(),e.originalEvent.preventDefault())}},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&r(n)&&this._startEditing()},_navigateNextCell:function(e,t){var n=this._getNextCell(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,!0)},_arrowKeysHandlerFocusCell:function(e,t,n){var i=this._fireFocusChangingEvents(e,t,n,!0);return t=i.$newCellElement,!(i.cancel||!this._isCellValid(t))&&(this._focus(t,!i.isHighlighted),!0)},_beginFastEditing:function(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,ee);else{var n=e.key,i=e.keyCode||e.which,o=n||i&&String.fromCharCode(i);!o||1!==o.length&&o!==ee||this._startEditing(e,o)}return!0},_clickHandler:function(e){var t=e.event,n=(0,h.default)(t.currentTarget),i=this.getView("rowsView"),o=i&&i.element(),a=n.parent(),r=a.hasClass(q),s=(0,h.default)(t.target).is(te);this._isEventInCurrentGrid(t)&&this._isCellValid(n,!s)?(n=this._isInsideEditForm(n)?(0,h.default)(t.target):n,this._focusView(),(0,h.default)(o).removeClass(Q),a.hasClass($)?(this._updateFocusedCellPosition(n),this._focusedView.element().attr("tabindex",0),this._focusedView.focus()):this._isMasterDetailCell(n)||r?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(t,n)):n.is("td")&&this._resetFocusedCell()},_isEventInCurrentGrid:function(e){return(0,y.isElementInCurrentGrid)(this,(0,h.default)(e.target))},_clickTargetCellHandler:function(e,t){var n,i=this.getView("rowsView").getCellIndex(t),o=this._columnsController.getVisibleColumns()[i],a=this._isCellEditMode();if(this.setCellFocusType(),n=this._fireFocusChangingEvents(e,t,!0),t=n.$newCellElement,n.cancel)this.setRowFocusType(),this.setFocusedRowIndex(n.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&a&&this._editingController.closeEditCell();else{if(n.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(n.rowIndexChanged&&(t=this._getFocusedCell()),n.isHighlighted||a||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&a&&o&&o.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{var r=e&&(0,h.default)(e.target),s=r&&r.not(t).is(te),l=!n.isHighlighted||s;this._focus(t,l,s)}}},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=l((0,h.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,h.default)(e),i)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!(0,w.isDefined)(this._focusedView)&&this._focusView()},_focusElement:function(e,t){var n=(0,h.default)(this._getRowsViewElement()),i=e.closest(n),a=this.isRowFocusType(),r={};!i.length||l(e)&&!this._isCellValid(e)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(l(e)||o(e))&&(this.setCellFocusType(),r=this._fireFocusChangingEvents(null,e,!1,t),e=r.$newCellElement,a&&!r.isHighlighted&&this.setRowFocusType()),this._focus(e,!r.isHighlighted),this._focusInteractiveElement(e))},_getFocusedViewByElement:function(e){var t=this.getFocusedView(),n=t&&(0,h.default)(t.element());return e&&0!==e.closest(n).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);(0,y.focusAndSelectElement)(this,n)}},_focus:function(e,t,n){var i=e&&e.is("td")?e.parent():e;if(!i||!s(i)){var a,r=this._getFocusedCell(),u=this._focusedView,d=u&&u.element();this._isHiddenFocus=t,o(i)||this.isRowFocusType()?(a=i,u&&this.setFocusedRowIndex(this._getRowIndex(i))):l(e)&&(a=e,this._updateFocusedCellPosition(e)),r&&r.is("td")&&r.not(a).removeAttr("tabIndex"),a&&(_.default.one(a,"blur",function(){return a.removeClass(X)}),n||(this._applyTabIndexToElement(a),_.default.trigger(a,"focus")),t?(d&&d.find("."+X+"[tabIndex]").not(a).removeClass(X).removeAttr("tabIndex"),a.addClass(X)):(d&&d.find("."+X+":not(."+W+")").removeClass(X),this.getController("editorFactory").focus(a)))}},_updateFocus:function(e){var t=this;setTimeout(function(){var n=t._getFocusedCell(),i=t._editingController.isEditing();if(n&&(!t._isMasterDetailCell(n)||t._isRowEditMode())){if(t._hasSkipRow(n.parent())){var o=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";n=t._getNextCell(o)}if(d(n)){if(e&&!i&&t._checkCellOverlapped(n))return;n.is("td")||n.hasClass(t.addWidgetPrefix(L))?(t.getController("editorFactory").focus()?t._focus(n):t._isCellEditMode()?t._focus(n,t._isHiddenFocus):t._isHiddenFocus&&t._focus(n,!0),i&&t._focusInteractiveElement.bind(t)(n)):_.default.trigger(n,"focus")}}})},_checkCellOverlapped:function(e){var t=e.offset(),n=this.component.getScrollable&&this.component.getScrollable(),i=!1;return n&&(t.left<0?i=e.width()+t.left<=0:t.top<0&&(i=e.height()+t.top<=0)),i},_getFocusedCell:function(){return(0,h.default)(this._getCell(this._focusedCellPosition))},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_getCellPosition:function(e,t){var n,i,o=this,a=d(e)&&e.closest("tr");if(d(a)&&o._focusedView)return n=o._getRowIndex(a),i=o._focusedView.getCellIndex(e,n),t&&(i="previous"===t?i-1:i+1,i=o._applyColumnIndexBoundaries(i)),{rowIndex:n,columnIndex:i}},_focusCell:function(e){if(this._isCellValid(e))return this._focus(e),!0},_focusEditFormCell:function(e){e.hasClass(W)&&this.getController("editorFactory").focus(e,!0)},_resetFocusedCell:function(){var e=this,t=e._getFocusedCell();t&&t.removeAttr("tabIndex"),e._focusedView&&e._focusedView.renderFocusState&&e._focusedView.renderFocusState(),e._isNeedFocus=!1,e._isNeedScroll=!1,e._focusedCellPosition={}},restoreFocusableElement:function(e,t){var n,i,o=this,a=(0,w.isDefined)(e),r=o.getView("rowsView"),s=r.element(),l=o._focusedCellPosition.columnIndex,u=o._dataController.getRowIndexOffset();e=a?e:r.getTopVisibleItemIndex()+u,a?(i=r.getRow(e-u),n=o._fireFocusedRowChanging(t,i),!n.cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(o.getController("editorFactory").loseFocus(),o._applyTabIndexToElement(s),_.default.trigger(s,"focus")),a&&n.cancel||o.setFocusedCellPosition(e,l),a&&o._updateFocus()},_getNewPositionByCode:function(e,t,n){var i,o=e.columnIndex,a=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i=this._getVisibleColumnCount(),o<i-1&&!this._isLastValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o++:this._isLastRow(a)||"next"!==n||(o=0,a++);break;case"previousInRow":case"previous":o>0&&!this._isFirstValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o--:a>0&&"previous"===n&&(a--,i=this._getVisibleColumnCount(),o=i-1);break;case"upArrow":a=a>0?a-1:a;break;case"downArrow":a=this._isLastRow(a)?a:a+1}return{columnIndex:o,rowIndex:a}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getVisibleRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():this._focusedCellPosition.rowIndex:null},getVisibleColumnIndex:function(){return this._focusedCellPosition&&(0,w.isDefined)(this._focusedCellPosition.columnIndex)?this._focusedCellPosition.columnIndex:-1},getFocusedColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:null},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellByPositionValid:function(e){var t=(0,h.default)(this._getCell(e));return this._isCellValid(t)},_isLastRow:function(e){return this._isVirtualScrolling()?e>=this._dataController.totalItemsCount()-1:e===this.getController("data").items().length-1},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._haveValidCellBeforePosition(e)),t},_haveValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,n=e.rowIndex,i={columnIndex:t,rowIndex:n},o=this.component.getVisibleRows(),a=o&&o[n],r=this._isLastRow(n);return!!r&&(!!(a&&"group"===a.rowType&&e.columnIndex>0)||(e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i)))},_isCellValid:function(e,t){if(d(e)){var n=this.getView("rowsView"),i=e.parent(),o=this._columnsController.getVisibleColumns(),s=n.getCellIndex(e),l=o[s],u=this._getVisibleColumnCount(),c=this._editingController,h=a(i),p=l&&l.showWhenGrouped,f=l&&!e.hasClass(K)&&r(i),g=function(){return!h&&l&&(!(0,w.isDefined)(l.groupIndex)||p&&f)||parseInt(e.attr("colspan"))>1};if(this._isMasterDetailCell(e))return!0;if(u>s&&g()){var _=this._dataController.items(),m=n.getRowIndex(i),v=_[m],y=c&&this._isCellEditMode()&&c.isEditing(),x=c&&c.isEditRow(m),b=x||y;return l.command?this._isLegacyNavigation()?!b&&"expand"===l.command:y?!l.command:x?"select"!==l.command:!b:(!y||!v||"data"===v.rowType)&&(!b||l.allowEditing||t)}}},getFirstValidCellInRow:function(e,t){var n,i,o=this,a=e.find("> td");t=t||0;for(var r=t;r<a.length;++r)if(n=a.eq(r),o._isCellValid(n)){i=n;break}return i},_getNextCell:function(e,t,n){var i,o,a,r,s=n||this._focusedCellPosition,l=this.isRowFocusType(),u=l||(0,x.inArray)(e,["next","previous"])>-1,c="previous"===e?this._isFirstValidCell(s):this._isLastValidCell(s);if(this._focusedView&&s){if(o=this._getNewPositionByCode(s,t,e),a=(0,h.default)(this._getCell(o)),d(a)&&!this._isCellValid(a)&&this._isCellInRow(o,u)&&!c&&(a=l?this.getFirstValidCellInRow(a.parent(),o.columnIndex):this._getNextCell(e,"cell",o)),r=d(a)&&a.parent(),this._hasSkipRow(r)){if(i=this._getRowIndex(r),this._isLastRow(i))return null;a=this._getNextCell(e,"row",{columnIndex:s.columnIndex,rowIndex:i})}return d(a)?a:null}return null},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[n.columnIndex],r=this._editingController.allowUpdating({row:o})&&a&&a.allowEditing;r&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditingCell(e,t))},_startEditingCell:function(e,t){var n,i=this,o=this.getVisibleRowIndex(),a=this._focusedCellPosition.columnIndex;if(this._fastEditingStarted=(0,w.isDefined)(t),n=this._editingController.editCell(o,a),this._isFastEditingStarted())if(n===!0)i._editingCellHandler(e,t);else if(n&&n.done){var r=t!==ee?t:"";n.done(function(){return i._editingCellHandler(e,r)})}},_editingCellHandler:function(e,t){var n=this._getFocusedCell().find(".dx-texteditor-input").eq(0),i=S.default.createEvent(e,{type:"keydown",target:n.get(0)}),o=S.default.createEvent(e,{type:"keypress",target:n.get(0)}),a=S.default.createEvent(e,{type:"input",target:n.get(0)});_.default.trigger(n,i),i.isDefaultPrevented()||(_.default.trigger(n,o),o.isDefaultPrevented()||setTimeout(function(){n.val(t);var e=n.closest("."+J);_.default.off(e,"focusout"),_.default.one(e,"focusout",function(){_.default.trigger(n,"change")}),_.default.trigger(n,a)}))},_fireFocusChangingEvents:function(e,t,n,i){var o={},a=this._getCellPosition(t)||{};return this.isCellFocusType()&&(o=this._fireFocusedCellChanging(e,t,i),o.cancel||(a.columnIndex=o.newColumnIndex,a.rowIndex=o.newRowIndex,i=o.isHighlighted,t=(0,h.default)(this._getCell(a)))),!o.cancel&&n&&t&&(o=this._fireFocusedRowChanging(e,t.parent()),o.cancel||(a.rowIndex=o.newRowIndex,o.isHighlighted=i)),o.$newCellElement=(0,h.default)(this._getCell(a)),o.$newCellElement.length||(o.$newCellElement=t),o},_fireFocusedCellChanging:function(e,t,n){var i=this,o=i.option("focusedColumnIndex"),a=i.option("focusedRowIndex"),r=i._getCellPosition(t),s=r?r.columnIndex:-1,l=r?r.rowIndex:-1,u={cellElement:t,prevColumnIndex:o,prevRowIndex:a,newColumnIndex:s,newRowIndex:l,rows:i.getController("data").getVisibleRows(),columns:i.getController("columns").getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=(0,h.default)(this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex}))),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(e,t,n){var i=this,o=i.getController("data"),a=i.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),s=Math.min(r-o.getRowIndexOffset(),o.items().length-1),l=i.getController("editing").isEditCell(s,a),u=o.items()[s];l||t===a&&n===r||(o=i.getController("data"),i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:a,rowIndex:r,row:u,column:i.getController("columns").getVisibleColumns()[a]}))},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this.getController("data"),o=this.option("focusedRowIndex"),a=i.loadingOperationTypes(),r={rowElement:t,prevRowIndex:o,newRowIndex:n,event:e,rows:this.getController("data").getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(a.reload||a.paging)?(r.cancel=!0,r):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",r),r.cancel||r.newRowIndex===n||(r.resetFocusedRow=r.newRowIndex<0,r.resetFocusedRow||this.setFocusedRowIndex(r.newRowIndex),r.rowIndexChanged=!0)),r)},_fireFocusedRowChanged:function(e){var t,n,i=this.option("focusedRowIndex");this.option("focusedRowEnabled")&&(i>=0&&(n=this.getController("data"),t=i>=0&&n.getVisibleRows()[i-n.getRowIndexOffset()]),this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:i,row:t}))},_isRowEditMode:function(){var e=this.getController("editing").getEditMode();return e===ne||e===ie},_isCellEditMode:function(){var e=this.getController("editing").getEditMode();return e===ae||e===oe},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(e,t){var n=e.find(te).filter(":visible");return t?n.last():n.first()},_applyTabIndexToElement:function(e){var t=this.option("tabIndex");e.attr("tabIndex",(0,w.isDefined)(t)?t:0)},_getCell:function(e){if(this._focusedView&&e)return this._focusedView.getCell({rowIndex:e.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:e.columnIndex})},_getRowIndex:function(e){var t=this,n=t._focusedView,i=-1;return n&&(i=n.getRowIndex(e)),i>=0&&(i+=t._dataController.getRowIndexOffset()),i},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix(F))||a(e)&&!e.hasClass(this.addWidgetPrefix(M)))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(e){var t;return t=this.option("rtlEnabled")?"leftArrow"===e?"nextInRow":"previousInRow":"leftArrow"===e?"previousInRow":"nextInRow"},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_scrollBy:function(e,t,n){var i=this,o=this.getView("rowsView").getScrollable();if(i._focusedCellPosition){var a=function e(){o.off("scroll",e),setTimeout(i.restoreFocusableElement.bind(i,t,n))};o.on("scroll",a)}o.scrollBy({left:0,top:e})},_isInsideEditForm:function(e){return(0,h.default)(e).closest("."+this.addWidgetPrefix(M)).length>0},_isMasterDetailCell:function(e){var t=(0,h.default)(e).closest("."+W),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,h.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_getElementType:function(e){return(0,h.default)(e).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n<i-1},_getCellElementFromTarget:function(e){return(0,h.default)(e).closest("."+R+"> td")},_getRowsViewElement:function(){var e=this.getView("rowsView");return e&&e.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}});e.exports={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:le},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex();t===e.rowIndex&&this.getController("keyboardNavigation").setCellFocusType(),this.callBase.apply(this,arguments)},renderFocusState:function(){var e,t=this._dataController,n=this.option("focusedRowIndex")||0,i=this.element();i&&!(0,b.focused)(i)&&i.attr("tabIndex",null),(n<0||n>=t.getVisibleRows().length)&&(n=0),e=this.getCellElements(n),this.getController("keyboardNavigation").isKeyboardEnabled()&&e&&this.updateFocusElementTabIndex(e)},updateFocusElementTabIndex:function(e){var t=this,n=e.eq(0).parent(),i=t.option("focusedColumnIndex"),a=t.option("tabIndex")||0;(!i||i<0)&&(i=0),o(n)?n.attr("tabIndex",a):t._updateFocusedCellTabIndex(e,i)},_updateFocusedCellTabIndex:function(e,t){var n,i=this,o=i.option("tabIndex")||0,a=i.getController("keyboardNavigation"),r=a._focusedView,s=e?e.length:-1;if(a._focusedView=i,s>0){s<=t&&(t=s-1);for(var u=t;u<s;++u)if(n=(0,h.default)(e[u]),!a._isMasterDetailCell(n)&&a._isCellValid(n)&&l(n)){n.attr("tabIndex",o),a.setCellFocusType();break}}a._focusedView=r},renderDelayedTemplates:function(e){this.callBase.apply(this,arguments),e&&e.repaintChangesOnly||this.renderFocusState()},_renderCore:function(e){this.callBase(e),e&&e.repaintChangesOnly||this.renderFocusState()},_editCellPrepared:function(e){var t=this._getEditorInstance(e),n=this.getController("keyboardNavigation"),i=n&&n._isFastEditingStarted();t&&i&&this._handleEditingNavigationMode(t),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(e){["downArrow","upArrow"].forEach(function(t){var n=e._supportedKeys()[t];e.registerKeyHandler(t,function(t){var i="true"===e._input().attr("aria-expanded");if(i)return n&&n.call(e,t)})}),e.registerKeyHandler("leftArrow",E.noop),e.registerKeyHandler("rightArrow",E.noop);var t=e.NAME===Z&&e.option("useMaskBehavior");t&&e.registerKeyHandler("enter",E.noop)},_getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return(0,y.getWidgetInstance)(t)}}},controllers:{editing:{editCell:function(e,t){var n=this.getController("keyboardNavigation");if(n._processCanceledEditCellPosition(e,t))return!1;var i=this.callBase(e,t);return i&&n.setupFocusedView(),i},editRow:function(e){var t=this.getController("keyboardNavigation"),n=this.option("focusedColumnIndex"),i=this._columnsController.getVisibleColumns()[n];(i&&i.type||this.option("editing.mode")===ie)&&t._resetFocusedCell(),this.callBase(e)},addRow:function(e){this.getController("keyboardNavigation").setupFocusedView(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(e){var t=this.getController("keyboardNavigation"),n=this.callBase(e);if(t.isKeyboardEnabled()&&t._focusedCellPosition.rowIndex===e){var i=t._getFocusedCell();d(i)&&!i.hasClass("dx-command-edit")&&(n=i)}return n},_processCanceledEditingCell:function(){var e=this;this.closeEditCell().done(function(){var t=e.getController("keyboardNavigation");t._updateFocus()})},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){return this.getController("keyboardNavigation")._fastEditingStarted=!1,this.callBase.apply(this,arguments)},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var e=this.getController("keyboardNavigation"),t=this.callBase.apply(this,arguments);if(t&&!e._isNeedFocus){var n=e._getFocusedCell();e._focus(n,!0)}return t}},data:{_correctRowIndices:function(e){var t=this,n=t.getController("keyboardNavigation"),i=t.getController("editorFactory"),o=n._focusedCellPosition;if(t.callBase.apply(t,arguments),o&&o.rowIndex>=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.focus(i.focus()))}}}}}}},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(132),u=i(l),d=n(10),c=i(d),h=n(36),p=i(h),f=n(1),g=n(0),_=n(3),m=n(25),v=i(m),y=n(27),w=i(y),x="content",b="content-fixed",C="dx-master-detail-cell",k="dx-first-cell",I="dx-last-cell",S="dx-state-hover",D="dx-col-fixed",T="dx-fixed-columns",E="dx-pointer-events-target",O="dx-pointer-events-none",A="transparent",P="dx-group-row",B=function(e){var t=-1;return(0,_.each)(e,function(e,n){if(n.command===A)return t=e,!1}),t},M=function(e,t,n){var i,o=0;if(e&&t&&n)for(i=0;i<e.length;i++)e[i].command===A?o+=e[i].colspan:(t[o]<n[i]&&(t[o]=n[i]),o++);return t},F={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(e){return this.callBase(e).toggleClass(D,!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==A)))},_correctColumnIndicesForFixedColumns:function(e,t){var n=B(e),i=e[n].colspan,o=t&&t.columnIndices;o&&(t.columnIndices=o.map(function(e){if(e)return e.map(function(e){return e<n?e:e>=n+i?e-i+1:-1}).filter(function(e){return e>=0})}))},_renderTable:function(e){var t,n,i=this,o=i.getFixedColumns();if(i._isFixedColumns=!!o.length,n=i.callBase(e),i._isFixedColumns){i._isFixedTableRendering=!0;var a=e&&e.change,r=a&&a.columnIndices;i._correctColumnIndicesForFixedColumns(o,a),t=i._createTable(o),i._renderRows(t,(0,g.extend)({},e,{columns:o})),i._updateContent(t,a),r&&(a.columnIndices=r),i._isFixedTableRendering=!1}else i._fixedTableElement&&i._fixedTableElement.parent().remove(),
i._fixedTableElement=null;return n},_renderRow:function(e,t){var n,i,o=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&o&&o.length){i=0,n=t.row.cells||[],o=o.slice(),t.row.cells=o;for(var a=0;a<n.length;a++)n[a].column&&n[a].column.command===A?i=(n[a].column.colspan||1)-1:o[a+i]=n[a]}},_createCell:function(e){var t,n,i,o=this,a=e.column,r=a&&a.command,s=e.rowType,l=o.callBase.apply(o,arguments);return(o._isFixedTableRendering||"filter"===s)&&(t=o.getFixedColumns(),i=B(t),n=t[i-1]),o._isFixedTableRendering?r===A&&(l.addClass(O).toggleClass(k,0===i||n&&"expand"===n.command).toggleClass(I,t.length&&i===t.length-1),"freeSpace"!==s&&p.default.setEmptyText(l)):"filter"===s&&l.toggleClass(k,e.columnIndex===i),l},_wrapTableInScrollContainer:function(){var e=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&e.addClass(this.addWidgetPrefix(b)+" "+E),e},_renderCellContent:function(e,t){var n,i,o,a,r=this,s=t.column,l=r._isFixedTableRendering,u="group"===t.rowType&&(0,f.isDefined)(s.groupIndex);if(l&&u&&!s.command&&!s.groupCellTemplate&&e.css("pointerEvents","none"),!l&&r._isFixedColumns&&(i=s.fixed||s.command&&s.fixed!==!1,u&&(i=!1,t.row.summaryCells&&t.row.summaryCells.length&&(n=r._columnsController.getVisibleColumns(),a=r._getAlignByColumnCellCount?r._getAlignByColumnCellCount(s.colspan,{columns:n,row:t.row,isFixed:!0}):0,a>0&&(o=B(r._columnsController.getFixedColumns()),i=n.length-a<o))),i)){if(r.option("legacyRendering")||s.command&&"buttons"!==s.type||"group"===t.rowType)return void e.html("&nbsp;").addClass(s.cssClass);e.addClass("dx-hidden-cell")}s.command!==A&&r.callBase(e,t)},_getCellElementsCore:function(e){var t,n,i,o,a=this,r=a.callBase(e),s=r.parent().hasClass(P),l="columnHeadersView"===a.name?e:void 0;return a._fixedTableElement&&r&&(n=a.getFixedColumns(l),o=a._getRowElements(a._fixedTableElement).eq(e).children("td"),(0,_.each)(o,function(e,u){s?r[e]&&"hidden"!==u.style.visibility&&(r[e]=u):(t=n[e],t&&(t.command===A?o.eq(e).hasClass(C)&&(r[e]=u||r[e]):(i=a._columnsController.getVisibleIndex(t.index,l),r[i]=u||r[i])))})),r},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumns();return t._fixedTableElement&&n.length&&(e=t.callBase(t._fixedTableElement)),M(i,n,e)},_getTableElement:function(){var e=this._isFixedTableRendering?this._fixedTableElement:this.callBase();return e},_setTableElement:function(e){this._isFixedTableRendering?this._fixedTableElement=e.addClass(O):this.callBase(e)},getColumns:function(e,t){return t=t||this._getTableElement(),this._isFixedTableRendering||t&&t.closest("table").parent("."+this.addWidgetPrefix(b)).length?this.getFixedColumns(e):this.callBase(e,t)},getRowIndex:function(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):this.callBase(e)},getTableElements:function(){var e=this.callBase.apply(this,arguments);return this._fixedTableElement&&(e=(0,a.default)([e.get(0),this._fixedTableElement.get(0)])),e},getFixedColumns:function(e){return this._columnsController.getFixedColumns(e)},getFixedColumnsOffset:function(){var e,t,n={left:0,right:0};return this._fixedTableElement&&(e=this.getTransparentColumnElement(),t=e.position(),n={left:t.left,right:this.element().outerWidth(!0)-(e.outerWidth(!0)+t.left)}),n},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+O).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(e){var t,n=this._columnsController.getVisibleColumns(),i=e.widths,o=i&&i.length&&(0,f.isDefined)(n[0].visibleWidth),a=e.optionNames,r=a&&a.width,s=!1;if(this.callBase.apply(this,arguments),this._fixedTableElement){if(this.option("legacyRendering"))s=i&&i.length&&!this.isScrollbarVisible(!0);else{var l=i&&i.some(function(e){return"auto"===e});s=l&&(!o||!this.isScrollbarVisible(!0))}s&&(t=n),this.callBase((0,g.extend)({},e,{$tableElement:this._fixedTableElement,columns:t,fixed:!0}))}(o||r&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(e){if(!this.option("legacyRendering")&&this._isFixedTableRendering&&!this.option("columnAutoWidth")){var t=this._columnsController.getVisibleColumns(),n=t.filter(function(e){return!e.width}).length;n&&(e=t)}return this.callBase(e)},_getClientHeight:function(e){var t=e.getBoundingClientRect&&e.getBoundingClientRect();return t&&t.height?t.height:e.clientHeight},synchronizeRows:function(){var e,t,n,i,o,a,r,s,l=this,u=[],d=[];if(l._isFixedColumns&&l._tableElement&&l._fixedTableElement&&(i=l._getClientHeight(l._tableElement.get(0)),o=l._getClientHeight(l._fixedTableElement.get(0)),a=l._getRowElements(l._tableElement),r=l._getRowElements(l._fixedTableElement),s=l._findContentElement(),i!==o)){for(s&&s.css("height",i),a.css("height",""),r.css("height",""),n=0;n<a.length;n++)u.push(l._getClientHeight(a.get(n))),d.push(l._getClientHeight(r.get(n)));for(n=0;n<a.length;n++)e=u[n],t=d[n],e>t?r.eq(n).css("height",e):e<t&&a.eq(n).css("height",t);s&&s.css("height","")}}},R=(0,g.extend)({},F,{_getRowVisibleColumns:function(e){return this._isFixedTableRendering?this.getFixedColumns(e):this.callBase(e)},getContextMenuItems:function(e){var t,n=this,i=e.column,o=n.option("columnFixing"),a=n.callBase(e);return e.row&&"header"===e.row.rowType&&i&&i.allowFixing&&(t=function(e){switch(e.itemData.value){case"none":n._columnsController.columnOption(i.index,"fixed",!1);break;case"left":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"left"});break;case"right":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"right"})}},a=a||[],a.push({text:o.texts.fix,beginGroup:!0,items:[{text:o.texts.leftPosition,value:"left",disabled:i.fixed&&(!i.fixedPosition||"left"===i.fixedPosition),onItemClick:t},{text:o.texts.rightPosition,value:"right",disabled:i.fixed&&"right"===i.fixedPosition,onItemClick:t}]},{text:o.texts.unfix,value:"none",disabled:!i.fixed,onItemClick:t})),a},setScrollerSpacing:function(e){var t=this,n=t.option("rtlEnabled");t.callBase(e),t.element().children("."+this.addWidgetPrefix(b)).css(n?{paddingLeft:e}:{paddingRight:e})},getFixedColumnElements:function(e){var t,n,i,o=this;return(0,f.isDefined)(e)?this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children():(t=o.getColumnElements(),i=o.getTransparentColumnElement(),t&&i&&i.length&&(n=B(o.getFixedColumns()),t.splice(n,i.get(0).colSpan,i.get(0))),t)},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumnElements(),o=t.getFixedColumns();return t._fixedTableElement&&(e=i&&i.length?t._getWidths(i):t.callBase(t._fixedTableElement)),M(o,n,e)}}),V=(0,g.extend)({},F,{_detachHoverEvents:function(){this._fixedTableElement&&s.default.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&s.default.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var e=this,t=function(t){s.default.on(t,"mouseover mouseout",".dx-data-row",e.createAction(function(t){var n=t.event,i=e.getRowIndex((0,a.default)(n.target).closest(".dx-row")),o="mouseover"===n.type;i>=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(S,o),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(S,o))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n,i=this,o=i.addWidgetPrefix(x),r=i.element(),l=v.default.mozilla?60:0;return r&&i._isFixedTableRendering?(e=r.children("."+o),t=i.getScrollable(),!e.length&&t&&(e=(0,a.default)("<div>").addClass(o),s.default.on(e,"scroll",function(e){clearTimeout(i._fixedScrollTimeout),i._fixedScrollTimeout=setTimeout(function(){n=(0,a.default)(e.target).scrollTop(),t.scrollTo({y:n})},l)}),s.default.on(e,u.default.name,function(e){if(t&&(n=t.scrollTop(),t.scrollTo({y:n-e.delta}),t.scrollTop()>0&&t.scrollTop()+t.clientHeight()<t.scrollHeight()+i.getScrollbarWidth()))return!1}),e.appendTo(r)),e):i.callBase()},_updateScrollable:function(){this.callBase();var e=this.getScrollable(),t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)},_renderContent:function(e,t){return this._isFixedTableRendering?e.empty().addClass(this.addWidgetPrefix(x)+" "+this.addWidgetPrefix(b)+" "+E).append(t):this.callBase(e,t)},_getGroupCellOptions:function(e){return this._isFixedTableRendering?this.callBase((0,g.extend)({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e)},_renderGroupedCells:function(e,t){return this.callBase(e,(0,g.extend)({},t,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(e,t){this._isFixedTableRendering?this.callBase(e,(0,g.extend)({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e,t)},_hasAlignByColumnSummaryItems:function(e,t){var n=this.callBase.apply(this,arguments),i=t.columns[e];return t.isFixed?i.fixed&&(n||"right"===i.fixedPosition):n&&!i.fixed},_renderGroupSummaryCellsCore:function(e,t,n,i){var o,a,r;this._isFixedTableRendering&&(t.isFixed=!0,r=this._getAlignByColumnCellCount(n,t),t.isFixed=!1,o=t.columns.length-r,t=(0,g.extend)({},t,{columns:this.getFixedColumns()}),a=B(t.columns),o<a?(r-=t.columns[a].colspan-1||0,n-=t.columns[a].colspan-1||0):i>0&&e.css("visibility","hidden"),i=r),this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){var n;return this._isFixedTableRendering?(n=B(t),e>n&&(e+=t[n].colspan-1),e):this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass(T,t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){var t=this;t.callBase(e),"hoverStateEnabled"===e.name&&t._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t,n=this._fixedTableElement,i=0;return n&&n.find(e).length?(t=this.getFixedColumns(),(0,_.each)(t,function(t,n){return t!==e[0].cellIndex&&(n.colspan?void(i+=n.colspan):void i++)}),i):this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&(n=i.focus(),n&&i.focus(n))}},setScrollerSpacing:function(e,t){var n,i=this,o={marginBottom:0},a=i.element().children("."+this.addWidgetPrefix(b));a.length&&i._fixedTableElement&&(a.css(o),i._fixedTableElement.css(o),o[i.option("rtlEnabled")?"marginLeft":"marginRight"]=e,o.marginBottom=t,n=i._scrollable&&i._scrollable.option("useNative"),(n?a:i._fixedTableElement).css(o))},_getElasticScrollTop:function(e){var t=void 0,n=void 0,i=void 0,o=0,a=this.getScrollbarWidth(!0);return e.scrollOffset.top<0?o=-e.scrollOffset.top:e.reachedBottom&&(n=this._findContentElement(),i=e.component._container(),t=Math.max(n.height()+a-i.height(),0),o=t-e.scrollOffset.top),o},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?w.default.move(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},_scrollToElement:function(e){this.callBase(e,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),H=F;e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:c.default.format("dxDataGrid-columnFixingFix"),unfix:c.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:c.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:c.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:R,rowsView:V,footerView:H},controllers:function(){var e=function(e,t,n){var i=B(t),o=e.length-t.length;return(0,_.each)(n,function(e,t){t.index>i&&(t.columnIndex+=o,t.index+=o)}),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n,i=t.columns,o=t.targetDraggingPanel;return o&&"headers"===o.getName()&&o.isFixedColumns()&&t.sourceColumn.fixed?(t.rowIndex||(t.columnElements=o.getFixedColumnElements(0)),t.columns=o.getFixedColumns(t.rowIndex),n=this.callBase(t),e(i,t.columns,n),n):this.callBase(t)},_pointCreated:function(e,t,n,i){var o,a=this.callBase.apply(this,arguments),r=this._columnHeadersView.getTransparentColumnElement();return!a&&"headers"===n&&r&&r.length?(o=r.get(0).getBoundingClientRect(),i&&i.fixed?"right"===i.fixedPosition?e.x<o.right:e.x>o.left:e.x<o.left||e.x>o.right):a}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),o=n&&t._columnsController.getFixedColumns(),a=t._columnHeadersView.getFixedColumnElements(),r=[];t.callBase(),a&&a.length>0&&(r=p.default.getPointsByColumns(a,function(e){return t._pointCreated(e,a.length,o)}),t._pointsByFixedColumns=e(i,o,r))},_pointCreated:function(e,t,n){var i,o,a="widget"===this.option("columnResizingMode");return e.index>0&&e.index<t&&(i=n[e.columnIndex-1]||{},o=n[e.columnIndex]||{},i.fixed||o.fixed)?(e.columnIndex-=1,!((i.allowResizing||i.command===A)&&(a||o.allowResizing||o.command===A))):this.callBase.apply(this,arguments)},_getTargetPoint:function(e,t,n){var i,o=this._columnHeadersView.getTransparentColumnElement();return o&&o.length&&(i=o.get(0).getBoundingClientRect(),t<=i.left||t>=i.right)?this.callBase(this._pointsByFixedColumns,t,n):this.callBase(e,t,n)}}}}()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e._columnsController.getColumnId(t)}function a(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function r(e,t){var n,i=(0,l.default)(e),o=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,l.default)("<span>").addClass(o.addWidgetPrefix(j)),d.default.on(n,h.default.addNamespace(f.default.name,H),o.createAction(function(){o.toggleExpandAdaptiveDetailRow(t.key)})),n.appendTo(i)):S.default.setEmptyText(i)}var s=n(2),l=i(s),u=n(5),d=i(u),c=n(8),h=i(c),p=n(20),f=i(p),g=n(1),_=i(g),m=n(25),v=i(m),y=n(34),w=i(y),x=n(40),b=i(x),C=n(121),k=i(C),I=n(36),S=i(I),D=n(31),T=i(D),E=n(7),O=n(4),A=n(3),P=n(0),B=n(6),M="columnHeadersView",F="rowsView",R="footerView",V=[M,F,R],H="dxDataGridAdaptivity",L="adaptiveHidden",z="detailAdaptive",$="dx-field-item-content",N="dx-item-modified",W="hidden-column",j="adaptive-more",q="dx-command-adaptive",G="dx-command-adaptive-hidden",K="dx-adaptive-detail-row",U="dx-adaptive-item-text",Y="dx-master-detail-cell",X="dx-last-data-cell",Z="adaptive",Q="batch",J="row",ee="form",te="popup",ne="revert-tooltip",ie=b.default.ViewController.inherit({_isRowEditMode:function(){var e=this._getEditMode();return e===J},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&_.default.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i,o=this,a=e.column,r=o.createAction(function(){d.default.trigger(n,f.default.name)}),s=a.calculateCellValue(t.data),l=S.default.getDisplayValue(a,s,t.data,t.rowType),u=S.default.formatValue(l,a),c=this._editingController.isCellOrBatchEditMode();if(a.allowEditing&&o.getController("keyboardNavigation").isKeyboardEnabled()&&(n.attr("tabIndex",o.option("tabIndex")),c&&(d.default.off(n,"focus",r),d.default.on(n,"focus",r))),a.cellTemplate){var h=(0,P.extend)({},t,{value:s,displayValue:l,text:u,column:a});o._rowsView.renderTemplate(n,a.cellTemplate,h,!!n.closest((0,E.getWindow)().document).length)}else i=n.get(0),a.encodeHtml?i.textContent=u:i.innerHTML=u,n.addClass(U),_.default.isDefined(u)&&""!==u||n.html("&nbsp;"),o._isRowEditMode()||o._isItemModified(e,t)&&n.addClass(N);o.getView("rowsView")._cellPrepared(n,t)},_getTemplate:function(e,t){var n=this,i=e.column,o=this.getController("editing");return function(a,r){var s=(0,l.default)(r),u=n._columnsController.getVisibleIndex(i.visibleIndex),d=(0,P.extend)({},t),c=function(){var r=n._isItemEdited(e);d.value=t.row.values[u],r||i.showEditorAlways?o.renderFormEditTemplate(d,e,a.component,s,!r):(d.column=i,d.columnIndex=u,n._renderFormViewTemplate(e,d,s))};c(),d.watch&&d.watch(function(){return{isItemEdited:n._isItemEdited(e),value:t.row.values[u]}},function(){s.contents().remove(),s.removeClass(U),c()})}},_isVisibleColumnsValid:function(e){var t=function(){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],n.command&&i++;return i};return!(e<2)&&!(e.length-t()<=1)},_calculatePercentWidths:function(e,t){var n=this,i=0;return t.forEach(function(t,o){e[o]!==L&&(i+=n._getItemPercentWidth(t))}),i},_isPercentWidth:function(e){return _.default.isString(e)&&"%"===e.slice(-1)},_isColumnHidden:function(e){return this._hiddenColumns.filter(function(t){return t.index===e.index}).length>0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach(function(r){if(!i._isColumnHidden(r)){var s=r.width;_.default.isDefined(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:r.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:r.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):a++}}),(e-o)/a},_calculateColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth"),u=n.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return s;a=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:u,columnsCanFit:i,bestFitWidth:l,columnWidth:s,containerWidth:t})}else{var d=this.option("columnAutoWidth");a=d||e.command?l:this._getAverageColumnsWidth(t,n,i)}return a},_calculatePercentWidth:function(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,n=e.containerWidth*parseFloat(e.columnWidth)/100,i=e.columnsCanFit&&n<e.bestFitWidth?e.bestFitWidth:n;return t?e.containerWidth*parseFloat(e.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth");return s&&"auto"!==s&&!this._isPercentWidth(s)?parseFloat(s):(a=this._calculateColumnWidth(e,t,n,i),a<l?null:a)},_getItemPercentWidth:function(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t},_getCommandColumnsWidth:function(){var e=this,t=e._columnsController.getVisibleColumns(),n=0;return(0,A.each)(t,function(t,i){(i.index<0||i.command)&&(n+=e._columnsController.columnOption(o(e,i),"bestFitWidth")||0)}),n},_isItemEdited:function(e){if(this.isFormEditMode())return!1;if(!this._isRowEditMode()){var t=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(t,n)}var i=this._editingController.getEditRowKey();return!!(0,O.equalByValue)(i,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(e){var t=[];return(0,A.each)(e,function(e,n){t.push({column:n,name:n.name,dataField:n.dataField,visibleIndex:n.visibleIndex})}),t},_getAdaptiveColumnVisibleIndex:function(e){var t,n;for(t=0;t<e.length;t++)if(n=e[t],n.command===Z)return t},_hideAdaptiveColumn:function(e,t){var n=this._getAdaptiveColumnVisibleIndex(t);_.default.isDefined(n)&&(e[n]=L,this._addCssClassToColumn(G,n))},_removeCssClassFromColumn:function(e){var t,n,i;for(t=0;t<V.length;t++)n=this.getView(V[t]),n&&n.isVisible()&&n.element()&&(i=n.element().find("."+e),i.removeClass(e))},_removeCssClassesFromColumns:function(){this._removeCssClassFromColumn(G),this._removeCssClassFromColumn(this.addWidgetPrefix(W))},_isCellValid:function(e){return e&&e.length&&!e.hasClass(Y)},_addCssClassToColumn:function(e,t){var n=this;V.forEach(function(i){var o=n.getView(i);o&&n._addCssClassToViewColumn(o,e,t)})},_addCssClassToViewColumn:function(e,t,n){var i,o,a,r,s=e.name,l=this._columnsController.getVisibleColumns()[n],u=this._editingController&&this._editingController.getEditFormRowIndex();if(e&&e.isVisible()&&l){i=e.getRowsCount();var d=e._getRowElements();for(o=0;o<i;o++)o===u&&s===F||(r=s===M?this._columnsController.getVisibleIndex(l.index,o):n,r>=0&&(a=d.eq(o).children().eq(r),this._isCellValid(a)&&a.addClass(t)))}},_getEditMode:function(){return this._editingController.getEditMode()},isFormEditMode:function(){var e=this._getEditMode();return e===ee||e===te},hideRedundantColumns:function(e,t,n){var i,a=this;if(this._hiddenColumns=[],a._isVisibleColumnsValid(t)&&n.length){var r,s,l,u,d,c=0,h=a.component.$element(),p=h.width()-a._getCommandColumnsWidth(),f=function(){var e=this;return t.filter(function(t){return!t.command&&0===e._hiddenColumns.filter(function(e){return e.dataField===t.dataField}).length})}.bind(this),g=f(),_=g.length;do{for(d=!1,c=0,r=a._calculatePercentWidths(e,t),s=r<100&&0!==r,l=0;l<t.length;l++){i=t[l];var m=a._getNotTruncatedColumnWidth(i,p,g,s),v=o(a,i),y=a._columnsController.columnOption(v,"width"),w=a._columnsController.columnOption(v,"minWidth"),x=a._columnsController.columnOption(v,"bestFitWidth");if(e[l]!==L){if(!m&&!i.command&&!i.fixed){d=!0;break}y&&"auto"!==y||(m=Math.max(x||0,w||0)),(i.command!==Z||u)&&(c+=m)}else u=!0}if(d=d||c>h.width()){var b=n.pop(),C=a._columnsController.getVisibleIndex(b.index);p+=a._calculateColumnWidth(b,p,g,s),a._addCssClassToColumn(a.addWidgetPrefix(W),C),e[C]=L,this._hiddenColumns.push(b),g=f()}}while(d&&g.length>1&&n.length);_===g.length&&a._hideAdaptiveColumn(e,t)}else a._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){var t,n,i;for(n=0;n<this._$itemContents.length;n++)if(t=this._$itemContents.eq(n),i=t.data("dx-form-item"),i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===e)return t},toggleExpandAdaptiveDetailRow:function(e,t){this.isFormEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(e,t)},createFormByHiddenColumns:function(e,t){var n=this,i=(0,l.default)(e),o={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-"+new w.default},a=T.default.isMaterial()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:o}),n._$itemContents=null,n._form=n._createComponent((0,l.default)("<div>").appendTo(i),k.default,(0,P.extend)(a,o,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),o.customizeItem&&o.customizeItem.call(this,e)},onContentReady:function(e){o.onContentReady&&o.onContentReady.call(this,e),n._$itemContents=i.find("."+$)}}))},hasAdaptiveDetailRowExpanded:function(){return _.default.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&_.default.isDefined(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,o=e.filter(function(e){return e.visible&&!e.type&&!e.fixed&&!(_.default.isDefined(e.groupIndex)&&e.groupIndex>=0)});if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n<o.length;n++)_.default.isDefined(o[n].hidingPriority)&&o[n].hidingPriority>=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n<o.length;n++){var a=i._columnsController.getVisibleIndex(o[n].index);i._hidingColumnsQueue[a]=o[n]}return i._hidingColumnsQueue=i._hidingColumnsQueue.filter(Object),i._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:Z,command:Z,visible:!0,adaptiveHidden:!0,cssClass:q,alignment:"center",width:"auto",cellTemplate:r,fixedPosition:"right"}),e._columnsController.columnsChanged.add(function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)}),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,O.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});e.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:ie},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===z&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,l.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===z&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(K),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController.getHidingColumnsQueue().length,i=this._adaptiveColumnsController.getHiddenColumns().length;n&&!i&&a(e).last().addClass(X)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+$);if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==z&&t.column.visibleWidth===L&&e.addClass(this.addWidgetPrefix(W))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===z?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase(e,t)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,l.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){var t=!!this.callBase&&this.callBase(e);return t||!!e.closest("."+q).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{"export":{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===L?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),r=n[a]||{},s=a!==e.columnIndex+1&&r.command,l=o.visibleWidth===L||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===L;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=t[e.columnIndex-1]||{},r=a.visibleWidth===L;return o||r}},editing:{_isRowEditMode:function(){return this.getEditMode()===J},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==J&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+$),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=S.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&t>o&&this._editRowIndex--,o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){var e=this;this.callBase();var t=new B.Deferred;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?(0,B.when)(this.getController("validating").validate(!0)).done(function(n){n&&e._cancelEditAdaptiveDetailRow(),t.resolve()}):t.resolve(),t.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===z?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t,n=this._dataController._adaptiveExpandedKey;n&&(t=S.default.getIndexByKey(n,this._dataController.items()),t>-1&&e.unshift(t))},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);this.getEditMode()===Q&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var e=this;v.default.msie&&parseInt(v.default.version)<=11&&(this._updateScrollableTimeoutID=setTimeout(function(){e.getView("rowsView")._updateScrollable()}))},_correctColumnWidths:function(e,t){var n,i=this._adaptiveColumnsController,o=this.option("columnAutoWidth"),a=i.getHiddenColumns(),r=i.updateHidingQueue(this._columnsController.getColumns());return i.hideRedundantColumns(e,t,r),n=i.getHiddenColumns(),i.hasAdaptiveDetailRowExpanded()&&a.length!==n.length&&i.updateForm(n),!n.length&&i.collapseAdaptiveDetailRow(),o&&r.length&&!n.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._removeCssClassesFromColumns(),
this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var n,i,o=this,a=t.changeType;return e=o.callBase.apply(o,arguments),"loadingAll"!==a&&_.default.isDefined(o._adaptiveExpandedKey)?(i=S.default.getIndexByKey(o._adaptiveExpandedKey,e),i>=0?(n=e[i],e.splice(i+1,0,{visible:!0,rowType:z,key:n.key,data:n.data,modifiedValues:n.modifiedValues,isNewRow:n.isNewRow,values:n.values})):"refresh"===a&&(o._adaptiveExpandedKey=void 0),e):e},_getRowIndicesForExpand:function(e){var t,n=this.callBase.apply(this,arguments);return this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)&&(t=n[n.length-1],n.push(t+1)),n},adaptiveExpandedKey:function(e){return _.default.isDefined(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=S.default.getIndexByKey(n._adaptiveExpandedKey,n._items),o=S.default.getIndexByKey(e,n._items);i>=0&&i===o&&!t&&(e=void 0,o=-1),n._adaptiveExpandedKey=e,i>=0&&i++,o>=0&&o++;var a=n.getRowIndexDelta();n.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-a,o-a]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix(ne)}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix(W))},_processNextCellInMasterDetail:function(e){this.callBase(e);var t=this._editingController.isCellOrBatchEditMode();if(!this._isInsideEditForm(e)&&e&&t){var n=function t(){d.default.off(e,"focus",t),d.default.trigger(e,"dxclick")};d.default.on(e,"focus",n)}},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell(),o=i&&i.parent();if(!n&&o&&o.length){var r=a(o),s="next"===t?r.last():r.first(),l=o.get(0).rowIndex,u=this._adaptiveController,d=this._dataController.getKeyByRowIndex("next"===t?l:l-1),c=i&&s&&i.get(0)===s.get(0);return u.isAdaptiveDetailRowExpanded(d)&&c}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},function(e,t,n){var i=n(7),o=n(383),a=50,r={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),t._columnsController.setScrollPosition(i)}},s={_renderCore:function(){var e=this,t=e._scrollLeft;e.callBase.apply(e,arguments),e._columnsController.isVirtualMode()&&t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))}},l=function(){var e=function(e){return e.map(function(e){return e.visibleWidth||parseFloat(e.width)||a})},t={init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0,a=0;a<i.length;a++){if(o>=t)return Math.floor(a/this.getColumnPageSize());o+=i[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(t){var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0;t+=this.getTotalWidth();for(var a=0;a<i.length;a++){if(o>=t)return Math.ceil(a/this.getColumnPageSize());o+=i[a]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout(function(){t._setScrollPositionCore(e)},t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),o=e<t._position?t._beginPageIndex>n:t._endPageIndex<i;t._position=e,o&&(t._beginPageIndex=n,t._endPageIndex=i,t._fireColumnsChanged())}},getFixedColumns:function(e,t){var n=this.callBase(e);if(this.isVirtualMode()&&!t&&n.length){var i=n.map(function(e){return e.command}).indexOf("transparent");return n[i].colspan=this.getVisibleColumns().length-this.callBase().length+1,n}return n},getVisibleColumns:function(t,n){if(n||!this.isVirtualMode())return this.callBase(t);this._beginPageIndex||this._endPageIndex||(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var i=this._beginPageIndex,a=this._endPageIndex,r=t+"-"+i+"-"+a;if(this._virtualVisibleColumns[r])return this._virtualVisibleColumns[r];var s=this.callBase(),l=this.getRowCount(),u=this.getColumnPageSize(),d=i*u,c=a*u,h=this.getFixedColumns(void 0,!0),p=h.map(function(e){return e.command}).indexOf("transparent"),f=h.length?p:0,g=s.slice(0,f),_=s.slice(f,d),m=e(_).reduce(function(e,t){return e+t},0);m||(d=0);var v=h.length?h.length-p-1:0,y=s.slice(s.length-v),w=s.slice(c,s.length-v),x=e(w).reduce(function(e,t){return e+t},0);if(x||(c=s.length),l>1&&"number"==typeof t){for(var b=[],C=0;C<l;C++)b.push(this.callBase(C));g=(0,o.createColumnsInfo)(b,0,g.length)[t]||[],y=(0,o.createColumnsInfo)(b,s.length-y.length,s.length)[t]||[],s=(0,o.createColumnsInfo)(b,d,c)[t]||[]}else s=s.slice(d,c);return m&&(s.unshift({command:"virtual",width:m}),s=g.concat(s)),x&&(s.push({command:"virtual",width:x}),s=s.concat(y)),this._virtualVisibleColumns[r]=s,s},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}};return t}();e.exports={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:l},views:{columnHeadersView:s,footerView:s,rowsView:r}}}},function(e,t,n){function i(e,t,n,o,a,r){n=n||0,o=o||[],r=r||[],o[n]=o[n]||0;var s=e[n],l=r[n]+1||0,u=0;if(s){for(var d=l;d<s.length;d++){var c=s[d],h=d+o[n],p=c.colspan||1;if(i(e,t,n+(c.rowspan||1),o,p,r),o[n]+=p-1,u+=p,c.rowspan)for(var f=n+1;f<n+c.rowspan;f++)o[f]=o[f]||0,o[f]+=c.colspan||1;if(t(c,h,n,d)===!1)break;if(void 0!==a&&u>=a)break}r[n]=d}}function o(e,t,n){var o=[];i(e,function(e,i,r){var s,l=e,u=l.colspan||1,d=i+u-1>=t&&i<n;if(o[r]=o[r]||[],d)i<t?(s=u-(t-i),i=t):s=u,i+s>n&&(s=n-i),s!==u&&(l=(0,a.extend)({},l,{colspan:s})),o[r].push(l);else if(i>n)return!1});for(var r=0;r<o.length;r++)o[r]=o[r]||[];return o}var a=n(0);t.foreachColumnInfo=i,t.createColumnsInfo=o},function(e,t,n){var i=n(0);e.exports={_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_defaultSetter:function(e){return e?e:1},_cloneItem:function(e){return(0,i.extend)({},e,this._getEmptyCell())},_prepareItems:function(e){function t(e,o,a){var r=i[e]=i[e]||[];if(r[o]=a,a.colspan>1||a.rowspan>1){for(var s=n._cloneItem(a),l=1;l<a.colspan;l++)t(e,o+l,s);for(var u=1;u<a.rowspan;u++)for(var d=0;d<a.colspan;d++)t(e+u,o+d,s)}}for(var n=this,i=[],o=(e[0]||[]).reduce(function(e,t){return e+n._defaultSetter(t.colspan)},0),a=function(e){var t=0,i=0;return function(){var o=e[t]||[],a=o[i++];return i>=o.length&&(t++,i=0),a&&(a.colspan=n._defaultSetter(a.colspan),a.rowspan=n._defaultSetter(a.rowspan)),a}}(e),r=a(),s=0;r;){for(var l=0;l<o&&r;l++)i[s]&&i[s][l]||(t(s,l,r),l+=r.colspan-1,r=a());s++}return i}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(40),s=i(r),l=n(3),u=n(36),d=n(4),c=n(1),h=n(6),p="dx-row-focused",f=".dx-row."+p,g="table",_="dx-cell-focus-disabled";t.FocusController=s.default.ViewController.inherit(function(){return{init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(e){"focusedRowIndex"===e.name?(this._focusRowByIndex(e.value),e.handled=!0):"focusedRowKey"===e.name?(this._focusRowByKey(e.value),e.handled=!0):"focusedColumnIndex"===e.name?e.handled=!0:"focusedRowEnabled"===e.name?e.handled=!0:"autoNavigateToFocusedRow"===e.name?e.handled=!0:this.callBase(e)},_focusRowByIndex:function(e){this.option("focusedRowEnabled")&&(e=void 0!==e?e:this.option("focusedRowIndex"),e<0?this.option("autoNavigateToFocusedRow")&&this._resetFocusedRow():this._focusRowByIndexCore(e))},_focusRowByIndexCore:function(e){var t=this,n=this.getController("data"),i=n.pageSize(),o=function(){if(t._isValidFocusedRowIndex(e)){var i=Math.min(e-n.getRowIndexOffset(),n.items().length-1),o=n.getKeyByRowIndex(i);void 0===o||t.isRowFocused(o)||t.option("focusedRowKey",o)}};if(i>=0)if(this._isLocalRowIndex(e))o();else{var a=Math.floor(e/n.pageSize());(0,h.when)(n.pageIndex(a),n.waitReady()).done(function(){o()})}},_isLocalRowIndex:function(e){var t=this.getController("data"),n=this.getController("keyboardNavigation")._isVirtualScrolling();if(n){var i=Math.floor(e/t.pageSize()),o=t.virtualItemsCount(),a=o?o.begin:-1,r=t.getVisibleRows().length+t.getRowIndexOffset(),s=Math.ceil(r/t.pageSize());return a<=e&&s>i}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(e){void 0===e?this._resetFocusedRow():this._navigateToRow(e,!0)},_resetFocusedRow:function(){void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0||(this.option("focusedRowKey",void 0),this.getController("keyboardNavigation").setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}))},_isValidFocusedRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return!n||"data"===n.rowType||"group"===n.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){this.option("autoNavigateToFocusedRow")||this.option("focusedRowIndex",-1),this._navigateToRow(e)},_navigateToRow:function(e,t){var n=this,i=this.getController("data"),o=n.option("autoNavigateToFocusedRow"),a=new h.Deferred;if(void 0===e||!i.dataSource())return a.reject().promise();var r=n._getFocusedRowIndexByKey(e),s=i.getDataSource().paginate();return!o&&t||!s||r>=0?n._navigateTo(e,a,t):i.getPageIndexByKey(e).done(function(o){return o<0?void a.resolve(-1):void(o===i.pageIndex()?i.reload().done(function(){n.isRowFocused(e)?a.resolve(n._getFocusedRowIndexByKey(e)):n._navigateToVisibleRow(e,a,t)}).fail(a.reject):i.pageIndex(o).done(function(){n._navigateTo(e,a,t)}).fail(a.reject))}).fail(a.reject),a.promise()},_navigateTo:function(e,t,n){var i=this.getController("data").getRowIndexByKey(e),o="virtual"===this.option("scrolling.rowRenderingMode"),a=this.option("autoNavigateToFocusedRow");a&&o&&i<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)},_navigateToVisibleRow:function(e,t,n){if(n)this._triggerUpdateFocusedRow(e,t);else{var i=this.getView("rowsView"),o=this.getController("data").getRowIndexByKey(e),a=i.getRow(o);i.scrollToElementVertically(a)}},_navigateToVirtualRow:function(e,t,n){var i=this,o=this.getController("data"),a=o._rowsScrollController,r=(0,u.getIndexByKey)(e,o.items(!0)),s=i.getView("rowsView").getScrollable();if(a&&s&&r>=0){var l=r+o.getRowIndexOffset()-o.getRowIndexDelta(),d=a.getItemOffset(l);if(n){var c=function n(){i.component.off("contentReady",n),i._triggerUpdateFocusedRow(e,t)};i.component.on("contentReady",c)}s.scrollTo({y:d})}},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this._getFocusedRowIndexByKey(e);if(this._isValidFocusedRowIndex(i)){if(this.getController("keyboardNavigation").setFocusedRowIndex(i),this.option("focusedRowEnabled"))n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e});else{var o=n.getRowIndexByKey(e),a=this.getView("rowsView");a.scrollToElementVertically(a.getRow(o))}t&&t.resolve(i)}else t&&t.resolve(-1)},_getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e);return n>=0?n+t.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if(void 0!==t){var a=o.getRowIndexByKey(t);a>=0?(i._isVirtualScrolling()&&(n=a+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this._navigateToRow(t,!0).done(function(t){n>=0&&t<0&&e._focusRowByIndex()})}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){var t=this.option("focusedRowKey");if(void 0!==t)return(0,d.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n,i=this,o=i._dataController.getRowIndexByKey(e.focusedRowKey),r=i.getView("rowsView");(0,l.each)(r.getTableElements(),function(r,s){n=(0,a.default)(s),i._clearPreviousFocusedRow(n,o);var l=0===r;t=i._prepareFocusedRow(e.items[o],n,o),l&&i.getController("keyboardNavigation")._fireFocusedRowChanged(t)})},_clearPreviousFocusedRow:function(e,t){var n=this,i=function(t,i){var o=(0,a.default)(i).closest("."+n.addWidgetPrefix(g));return e.is(o)},o=e.find(f).filter(i);if(o.removeClass(p).removeClass(_).removeAttr("tabindex"),o.children("td").removeAttr("tabindex"),0!==t){var r=(0,a.default)(this.getView("rowsView").getRowElement(0));r.removeClass(_).removeAttr("tabIndex")}},_prepareFocusedRow:function(e,t,n){var i,o=this.option("tabindex")||0,r=this.getView("rowsView");return!e||"data"!==e.rowType&&"group"!==e.rowType||(i=(0,a.default)(r._getRowElements(t).eq(n)),i.addClass(p).attr("tabindex",o),r.scrollToElementVertically(i)),i}}}()),e.exports={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:t.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,c.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,c.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){this.callBase(e);var t=this.getController("data").getVisibleRows()[e];t&&t.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){return t||!this.option("focusedRowEnabled")?void this.callBase(e,t):void(this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)))},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex");this.callBase(e,t)&&this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),a=this.getController("editing"),r="row"===i._getElementType(e);o&&i.isRowFocusType()&&!a.isEditing()?o&&r&&!e.hasClass(p)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(e,t){var n=this,i=this.callBase.apply(this,arguments),o=this.getController("data"),a=o._dataSource,r=o.store(),s=r&&r.key(),l=a&&a.remoteOperations()||{},u=Object.keys(l).every(function(e){return!l[e]});if(s&&(this.option("focusedRowEnabled")&&this.option("autoNavigateToFocusedRow")!==!1||t)){s=Array.isArray(s)?s:[s];var d=s.filter(function(e){return!n.columnOption(e,"sortOrder")});d.length&&(i=i||[],u?i.push({selector:a.getDataIndexGetter(),desc:!1}):d.forEach(function(e){return i.push({selector:e,desc:!1})}))}return i}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){var t=void 0;if(this.option("focusedRowEnabled")&&this._dataSource){var n="update"===e.changeType&&e.repaintChangesOnly;t=n&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0,t&&this.callBase(e),("refresh"===e.changeType||t)&&this.processUpdateFocusedRow()}t||this.callBase(e)},processUpdateFocusedRow:function(){var e=this._prevPageIndex,t=this.pageIndex(),n=this._prevRenderingPageIndex||0,i=this._rowsScrollController?this._rowsScrollController.pageIndex():0,o=this._dataSource.operationTypes()||{},a=this.getController("focus"),r=o.reload,s=this.getController("keyboardNavigation"),l=s._isVirtualScrolling(),u=this.option("focusedRowKey"),d=void 0!==e&&e!==t,c=i!==n,h=this.option("autoNavigateToFocusedRow");this._prevPageIndex=t,this._prevRenderingPageIndex=i,r&&void 0!==u?a._navigateToRow(u,!0).done(function(e){e<0&&a._focusRowByIndex()}):d?h?!l&&this.option("focusedRowIndex")>=0&&a._focusRowByIndex():this.option("focusedRowIndex",-1):c||a._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new h.Deferred;return t.getGlobalRowIndexByKey(e).done(function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)}).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,o=new h.Deferred,a=i._dataSource,r=i._generateFilterByKey(e);return a.load({filter:i._concatWithCombinedFilter(r),skip:0,take:1}).done(function(s){s.length>0?(r=i._generateOperationFilterByKey(e,s[0],n),a.load({filter:i._concatWithCombinedFilter(r,t),skip:0,take:1,requireTotalCount:!0}).done(function(e,t){o.resolve(t.totalCount)})):o.resolve(-1)}),o.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return(0,u.combineFilters)([e,n,t])},_generateBooleanFilter:function(e,t,n){var i=void 0;return t===!1?i=[e,"=",!!n.desc||null]:(t===!0?!n.desc:n.desc)&&(i=[e,"<>",t]),i},_generateOperationFilterByKey:function(e,t,n){var i,o=this,a=o._dataSource,r=o._generateFilterByKey(e,"<"),s=o._columnsController.getSortDataSourceParameters(!a.remoteOperations().filtering,!0);if(n){var l=o._columnsController.getGroupDataSourceParameters(!a.remoteOperations().filtering);l&&(s=s?l.concat(s):l)}return s&&s.slice().reverse().forEach(function(e){var n,a,s=e.selector;n="function"==typeof s?s:o._columnsController.columnOption(s,"selector"),a=n?n(t):t[s],r=[[s,"=",a],"and",r],null===a||(0,c.isBoolean)(a)?(i=o._generateBooleanFilter(s,a,e),i&&(r=[i,"or",r])):r=[[s,e.desc?">":"<",a],"or",r]}),r},_generateFilterByKey:function(e,t){var n,i=this._dataSource.key(),o=[];if(t||(t="="),Array.isArray(i))for(var a=0;a<i.length;++a)n=e[i[a]],n&&(o.length>0&&o.push("and"),o.push([i[a],t,n]));else o=[i,t,e];return o}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(p),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex():this.callBase(e)},_setFocusedRowElementTabIndex:function(){var e=this,t=e.option("focusedRowKey"),n=e.option("tabIndex")||0,i=e._dataController.getRowIndexByKey(t),o=e.option("focusedColumnIndex"),r=e._findRowElementForTabIndex();if(r&&(e._scrollToFocusOnResize=e._scrollToFocusOnResize||function(){r=e._findRowElementForTabIndex(),r&&(e.scrollToElementVertically(r),e.resizeCompleted.remove(e._scrollToFocusOnResize))},(0,a.default)(r).attr("tabIndex",n),i>=0)){o<0&&(o=0),i+=e.getController("data").getRowIndexOffset(),e.getController("keyboardNavigation").setFocusedCellPosition(i,o);var s=e.component.getController("data")._dataSource,l=s&&s.operationTypes();l&&!l.paging&&(e.resizeCompleted.remove(e._scrollToFocusOnResize),e.resizeCompleted.add(e._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,a.default)(this.getRowElement(t>=0?t:0))},scrollToElementVertically:function(e){var t=this.getScrollable();if(t){var n=t.getScrollElementPosition(e,"vertical");t.scrollTo({top:n})}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(0),s=n(248),l=i(s),u="dx-command-drag",d="dx-cell-focus-disabled",c="drag-icon",h="rowsview",p="dx-sortable-without-handle",f={init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))},_updateHandleColumn:function(){var e=this.option("rowDragging"),t=this._allowReordering(),n=this._columnsController,i=t&&e.showDragIcons;n&&n.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:u,width:"auto",cellTemplate:this._getHandleTemplate(),visible:i}),n.columnOption("type:drag","visible",i)},_renderContent:function(){var e=this,t=this.option("rowDragging"),n=this._allowReordering(),i=e.callBase.apply(e,arguments);return n&&i.length&&(e._sortable=e._createComponent(i,l.default,(0,r.extend)({component:e.component,contentTemplate:null,filter:"> table > tbody > .dx-row:not(.dx-freespace-row):not(.dx-virtual-row)",dragTemplate:e._getDraggableRowTemplate(),handle:t.showDragIcons&&"."+u,dropFeedbackMode:"indicate"},t,{onDragStart:function e(n){var i=n.component.getVisibleRows()[n.fromIndex];n.itemData=i&&i.data;var o=i&&"data"===i.rowType;n.cancel=!o;var e=t.onDragStart;e&&e(n)}})),i.toggleClass(p,!t.showDragIcons)),i},_getDraggableGridOptions:function(e){var t=this.option(),n=this.getColumns(),i=(0,a.default)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:!1},pager:{visible:!1},loadingTimeout:void 0,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:n.map(function(e){return{width:e.width||e.visibleWidth,fixed:e.fixed,fixedPosition:e.fixedPosition}}),onRowPrepared:function(e){var t=e.component.getView("rowsView");(0,a.default)(e.rowElement).replaceWith(i.eq(t._isFixedTableRendering?1:0).clone())}}},_getDraggableRowTemplate:function(){var e=this;return function(t){var n=e.component.$element(),i=(0,a.default)("<div>").width(n.width()),o=e._dataController.items(),r=o&&o[t.fromIndex],s=e._getDraggableGridOptions(r);return e._createComponent(i,e.component.NAME,s),i.find(".dx-gridbase-container").children(":not(."+e.addWidgetPrefix(h)+")").hide(),i}},_getHandleTemplate:function(){var e=this;return function(t,n){return(0,a.default)(t).addClass(d),(0,a.default)("<span>").addClass(e.addWidgetPrefix(c))}},optionChanged:function(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),this.callBase.apply(this,arguments)}};e.exports={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:f}}}},function(e,t,n){e.exports=n(663)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(19),s=i(r),l=n(4),u=n(1),d=i(u),c=n(3),h=n(18),p=i(h),f=n(0),g=n(36),_=i(g),m=n(71),v=i(m),y=n(42),w=i(y),x=n(344),b=i(x),C=n(6),k=n(84),I="id",S=function(e){return"fullBranch"===e.option("filterMode")},D=b.default.inherit(function(){var e=function(e,t){var n=[];return t.forEach(function(t){var i=e.getNodeByKey(t);i&&i.children.forEach(function(e){n.push(e.key)})}),n};return{_createKeyGetter:function(){var e=this.getKeyExpr();return p.default.compileGetter(e)},_createKeySetter:function(){var e=this.getKeyExpr();return d.default.isFunction(e)?e:p.default.compileSetter(e)},_createParentIdGetter:function(){return p.default.compileGetter(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return d.default.isFunction(e)?e:p.default.compileSetter(e)},_createItemsGetter:function(){return p.default.compileGetter(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&p.default.compileGetter(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return d.default.isFunction(e)?e:e&&p.default.compileSetter(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,c.each)(e,function(e,n){t._indexByKey[n.key]=e})},_calculateHasItems:function(e,t){var n,i=this,o=t.storeLoadOptions.parentIds,a=S(i);return i._hasItemsGetter&&(o||!t.storeLoadOptions.filter||a)&&(n=i._hasItemsGetter(e.data)),void 0===n&&(n=!(i._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!o&&!a)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&a?e.children.length:e.hasChildren)),!!n},_createVisibleItemsByNodes:function(e,t){for(var n=this,i=[],o=0;o<e.length;o++)e[o].visible&&i.push(e[o]),(n.isRowExpanded(e[o].key,t)||!e[o].visible)&&e[o].hasChildren&&e[o].children.length&&(i=i.concat(n._createVisibleItemsByNodes(e[o].children,t)));return i},_convertItemToNode:function(e,t,n){var i,o,a=this._keyGetter(e),r=this._parentIdGetter(e);return r=d.default.isDefined(r)?r:t,i=n[r]=n[r]||{key:r,children:[]},o=n[a]=n[a]||{key:a,children:[]},o.data=e,o.parent=i,o},_createNodesByItems:function(e,t){var n,i=this,o=i.option("rootValue"),a={},r=i._nodeByKey={};if(t)for(n=0;n<t.length;n++)a[this._keyGetter(t[n])]=!0;for(n=0;n<e.length;n++){var s=i._convertItemToNode(e[n],o,r);if(void 0===s.key)return;s.visible=!t||!!a[s.key],s.parent&&s.parent.children.push(s)}var l=r[o]||{key:o,children:[]};return l.level=-1,l},_convertDataToPlainStructure:function(e,t,n){var i,o,a,r;if(this._itemsGetter&&!e.isConverted){n=n||[];for(var s=0;s<e.length;s++)o=_.default.createObjectWithChanges(e[s]),i=this._keyGetter(o),void 0===i&&(i=n.length+1,this._keySetter(o,i)),this._parentIdSetter(o,void 0===t?this.option("rootValue"):t),n.push(o),r=this._itemsGetter(o),r&&r.length&&(this._convertDataToPlainStructure(r,i,n),a=this.option("itemsExpr"),d.default.isFunction(a)||delete o[a]);return n.isConverted=!0,n}return e},_createIdFilter:function(e,t){for(var n=[],i=0;i<t.length;i++)n.push([e,"=",t[i]]);return _.default.combineFilters(n,"or")},_customizeRemoteOperations:function(e,t,n){this.callBase.apply(this,arguments),e.remoteOperations.paging=!1;var i=!1;this.option("autoExpandAll")&&(e.remoteOperations.sorting=!1,e.remoteOperations.filtering=!1,this._lastLoadOptions&&(!n.filtering||e.storeLoadOptions.filter)||e.isCustomLoading||(i=!0)),e.isCustomLoading||(this._isReload=this._isReload||t||n.reload,e.cachedStoreData||(this._isChildrenLoaded={}),this.option("expandNodesOnFiltering")&&(n.filtering||this._isReload&&e.storeLoadOptions.filter)&&(e.storeLoadOptions.filter?i=!0:e.collapseVisibleNodes=!0)),e.expandVisibleNodes=i},_getParentIdsToLoad:function(e){for(var t=[],n=0;n<e.length;n++){var i=this.getNodeByKey(e[n]);(!i||i.hasChildren&&!i.children.length)&&t.push(e[n])}return t},_handleDataLoading:function(e){var t,n,i=this.option("rootValue"),o=this.option("parentIdExpr"),a=e.storeLoadOptions.parentIds;a&&(e.isCustomLoading=!1),this.callBase.apply(this,arguments),e.remoteOperations.filtering&&!e.isCustomLoading&&(S(this)&&e.cachedStoreData||!e.storeLoadOptions.filter)&&(n=e.collapseVisibleNodes?[]:this.option("expandedRowKeys"),a=[i].concat(n).concat(a||[]),t=e.data?this._getParentIdsToLoad(a):a,t.length&&(e.cachedPagingData=void 0,e.data=void 0,e.mergeStoreLoadData=!0),e.storeLoadOptions.parentIds=t,e.storeLoadOptions.filter=this._createIdFilter(o,t))},_generateInfoToLoad:function(e,t){var n,i,o,a=this,r={},s={},l=[],u=a.option("rootValue");for(o=0;o<e.length;o++)n=t?a._parentIdGetter(e[o]):a._keyGetter(e[o]),r[n]=!0;for(o=0;o<e.length;o++)n=t?a._keyGetter(e[o]):a._parentIdGetter(e[o]),i=t?a.isRowExpanded(n):n!==u,r[n]||s[n]||!i||(s[n]=!0,l.push(n));return{keyMap:s,keys:l}},_loadParentsOrChildren:function(e,t,n){function i(t){return _&&(d._cachedStoreData=d._cachedStoreData.concat(t)),e.concat(t)}var o,a,r,s,l,u=this,d=this,c=d._generateInfoToLoad(e,n),h=c.keys,p=c.keyMap,g=new C.Deferred,_=t.remoteOperations.filtering,m=d.option("maxFilterLengthInRequest"),y=_?t.storeLoadOptions:t.loadOptions;if(!h.length)return g.resolve(e);var x=h.map(function(e){return u.getNodeByKey(e)}).filter(function(e){return e&&e.data});return x.length===h.length&&(n&&(x=x.reduce(function(e,t){return e.concat(t.children)},[])),x.length)?d._loadParentsOrChildren(i(x.map(function(e){return e.data})),t,n):(r=n?d.option("parentIdExpr"):d.getKeyExpr(),a=d._createIdFilter(r,h),s=encodeURI(JSON.stringify(a)).length,s>m&&(a=function(e){return p[d._keyGetter(e)]},l=_),y=(0,f.extend)({},y,{filter:l?null:a}),o=t.fullData?new v.default(t.fullData):d._dataSource.store(),o.load(y).done(function(o){o.length?(l&&(o=(0,w.default)(o).filter(a).toArray()),d._loadParentsOrChildren(i(o),t,n).done(g.resolve).fail(g.reject)):g.resolve(e)}).fail(g.reject),g)},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return S(this)?this._loadParentsOrChildren(e,t,!0):(0,C.when)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var n=0;n<t.length;n++)this._isChildrenLoaded[t[n]]=!0},_getKeyInfo:function(){return{key:function(){return"key"},keyOf:function(e){return e.key}}},_applyBatch:function(e){var t=this,n=[];e.forEach(function(e){"insert"===e.type?n=n.concat(t._applyInsert(e)):"remove"===e.type?n=n.concat(t._applyRemove(e)):"update"===e.type&&n.push({type:e.type,key:e.key,data:{data:e.data}})}),this.callBase(n)},_setHasItems:function(e,t){var n=this._hasItemsSetter;e.hasChildren=t,n&&e.data&&n(e.data,t)},_applyInsert:function(e){var t=this,n=[],i=t.parentKeyOf(e.data),o=t.getNodeByKey(i);if(o){var a=t.option("rootValue"),r=t._convertItemToNode(e.data,a,t._nodeByKey);if(r.hasChildren=!1,r.level=o.level+1,r.visible=!0,o.children.push(r),t._isChildrenLoaded[r.key]=!0,t._setHasItems(o,!0),(!o.parent||t.isRowExpanded(o.key))&&void 0!==e.index){var s=t.items().indexOf(o)+1;s+=e.index>=0?Math.min(e.index,o.children.length):o.children.length,n.push({type:e.type,data:r,index:s})}}return n},_applyRemove:function(e){var t=[],n=this.getNodeByKey(e.key),i=n&&n.parent;if(i){var o=i.children.indexOf(n);
o>=0&&(i.children.splice(o,1),i.children.length||this._setHasItems(i,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map(function(t){return{type:e.type,key:t}})))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=(0,k.queryByOptions)((0,w.default)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,n,i){var o=S(this);i=i||0;for(var r=0;r<e.length;r++){var s=e[r],l=!1;this._fillNodes(e[r].children,t,n,i+1),s.level=i,s.hasChildren=this._calculateHasItems(s,t),s.visible&&s.hasChildren&&(o?s.children.filter(function(e){return e.visible}).length?l=!0:s.children.length&&a.default.foreachNodes(s.children,function(e){e.visible=!0}):l=!0,t.expandVisibleNodes&&l&&n.push(s.key)),(s.visible||s.hasChildren)&&(s.parent.hasChildren=!0)}},_processTreeStructure:function(e,t){var n=e.data,i=e.storeLoadOptions.parentIds,o=[];if(i&&i.length||this._isReload){if(e.fullData&&e.fullData.length>e.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=(new C.Deferred).reject(s.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,o),this._isNodesInitializing=!0,(e.collapseVisibleNodes||o.length)&&this.option("expandedRowKeys",o),this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1,this._isReload=!1}n=this._createVisibleItemsByNodes(this._rootNode.children,e),e.data=n,this._totalItemsCount=n.length},_handleDataLoadedCore:function(e){var t,n=this,i=e.data,o=n.callBase,a=e.storeLoadOptions.filter||e.loadOptions.filter,r=n.option("filterMode"),s=e.storeLoadOptions.parentIds,l=a&&(!s||!s.length)&&"standard"!==r;if(!e.isCustomLoading){if(l){var u=e.data=new C.Deferred;return"matchOnly"===r&&(t=i),n._loadParents(i,e).done(function(i){n._loadChildrenIfNeed(i,e).done(function(i){e.data=i,n._processTreeStructure(e,t),o.call(n,e),u.resolve(e.data)})}).fail(u.reject)}n._processTreeStructure(e)}n.callBase(e)},_handlePush:function(e){var t=this._dataSource._reshapeOnPush,n=t&&!!e.length;n&&(this._isReload=!0),this.callBase.apply(this,arguments)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if(d.default.isDefined(t)&&d.default.isDefined(n)&&!(0,l.equalByValue)(t,n))throw s.default.Error("E1044");return t||n||I},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e,t){if(t){var n=t.isExpandedByKey;return n||(n=t.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(e){n[e]=!0})),!!n[e]}var i=_.default.getIndexByKey(e,this.option("expandedRowKeys"),null);return i>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys"),n=_.default.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new C.Deferred).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e,t=this,n=[],i=t._rootNode?[t._rootNode.key]:[];return i.forEach(function(i){e=t.getNodeByKey(i),e&&a.default.foreachNodes([e],function(e){!e.children.length&&n.push(e.key)})}),n},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),n=[];return t&&a.default.foreachNodes(t.children,function(e){n.push(e.key)}),n},loadDescendants:function(t,n){var i,o=this,a=new C.Deferred,r=o.remoteOperations();return t=d.default.isDefined(t)?Array.isArray(t)?t:[t]:o.getNodeLeafKeys(),r.filtering&&t.length?(i=o._dataSource._createStoreLoadOptions(),i.parentIds=t,o.load(i).done(function(){if(!n){var i=e(o,t);if(i.length)return void o.loadDescendants(i,n).done(a.resolve).fail(a.reject)}a.resolve()}).fail(a.reject),a.promise()):a.resolve()},forEachNode:function(){var e,t,n=[];1===arguments.length?(e=arguments[0],t=this.getRootNode(),n=t&&t.children||[]):2===arguments.length&&(e=arguments[1],n=arguments[0],n=Array.isArray(n)?n:[n]),a.default.foreachNodes(n,e)}}}());e.exports={extend:function(e){D=D.inherit(e)},create:function(e){return new D(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(2),r=i(a),s=n(7),l=n(15),u=i(l),d=n(45),c=n(37),h=n(4),p=n(0),f=n(1),g=n(3),_=n(14),m=n(81),v=n(6),y=n(287),w=(0,s.getWindow)();t.XmlaStore=u.default.inherit(function(){function e(e,t){var n=new v.Deferred,i=e.beforeSend,o={url:e.url,dataType:"text",data:t,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return(0,f.isFunction)(i)&&i(o),(0,m.sendRequest)(o).fail(function(){n.reject(arguments)}).done(function(e){var t,i=new w.DOMParser;try{try{t=i.parseFromString(e,"text/xml")}catch(e){t=void 0}if(!t||t.getElementsByTagName("parsererror").length||0===t.childNodes.length)throw new c.errors.Error("E4023",e)}catch(t){n.reject({statusText:t.message,stack:t.stack,responseText:e})}n.resolve(t)}),n}function t(){var e=(0,y.getLanguageId)();return void 0!==e?(0,d.format)("<LocaleIdentifier>{0}</LocaleIdentifier>",e):""}function n(e,t,n){var i=t?t:e;return"Descendants({"+i+"}, "+n+", SELF_AND_BEFORE)"}function i(e){return(e.hierarchyName||e.dataField)+".[All]"}function a(e){var t=e.dataField+".allMembers",n=e.searchValue;return n&&(n=n.replace(/'/g,"''"),t="Filter("+t+", instr("+e.dataField+".currentmember.member_caption,'"+n+"') > 0)"),t}function s(e){var t=e.join(",");return e.length>1?(0,d.format)(de,t):t}function l(e){var t=e.join(",");return e.length>1?"Union("+t+")":t}function u(e,t,o,r,l,u,c,h){var p,f,g,_,m,v,y,w,x,b,C,k,I=[],S=u[c],D=[];for(k=r;k<=t;k++)if(b=S[k],p=b.dataField,v=S[k-1]&&S[k-1].hierarchyName,g=b.hierarchyName,y=!g||!S[k+1]||S[k+1].hierarchyName!==g,x=e.length+o+r,_=null,D.push(b),k<e.length?y&&(_="("+p+"."+L(e[k],p)+")"):k<=x?0===k&&0===o?(f=i(S[r]),_=g?f+","+S[r].dataField:a(S[r])):g?(C=L(l[l.length-1]),(y||k===x)&&(v===g?(l.length&&(m=S[l.length-1]),m&&m.hierarchyName===g||(m=S[k-1],C=""),_=n(m.dataField,C,p)):_=a(b))):_=a(b):(w=!g||v!==g,w&&(_="("+i(b)+")")),_){if(_=(0,d.format)(ce,_),h){var T=(b.hierarchyName||b.dataField)+("displayText"===b.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE");_=(0,d.format)(ae,_,T,"desc"===b.sortOrder?"DESC":"ASC")}I.push(_)}return s(I)}function x(e,t,n,i,o,a,r,s,l,c){var h,p=-1,f=a[r];do{p++,h=t.length+p+i;var g=u(t,n,p,i,o,a,r,l);l||c||(g=(0,d.format)(le,g,s)),e.push(g)}while(f[h]&&f[h+1]&&f[h].expanded)}function b(e,t,n,i){return n=n||"[DX_Set_"+t.length+"]",i=i||"set",t.push((0,d.format)(re,i,n,e)),n}function C(e,t,n,i,o){var a=e[t],r=[],u=[],c=[],h=0,p=0,f=[],_=(0,d.format)(ce,n.join(","));if(a&&a.length){e.headerName===t?(u=e.path,h=u.length):e.headerName&&e.oppositePath?(u=e.oppositePath,h=u.length):c=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||c,p=(0,m.getExpandedLevel)(e,t),x(r,[],p,h,u,e,t,_,"rows"===t?e.rowTake:e.columnTake,e.totalsOnly),(0,g.each)(c,function(n,i){x(r,i,p,h,i,e,t,_)});for(var v=p;v>=u.length;v--)a[v].hierarchyName&&(o.visibleLevels[a[v].hierarchyName]=o.visibleLevels[a[v].hierarchyName]||[],o.visibleLevels[a[v].hierarchyName].push(a[v].dataField))}if(r.length){var y=l(r);"rows"===t&&e.rowTake&&(y=(0,d.format)(oe,y,e.rowSkip>0?e.rowSkip+1:0,e.rowSkip>0?e.rowTake:e.rowTake+1)),"columns"===t&&e.columnTake&&(y=(0,d.format)(oe,y,e.columnSkip>0?e.columnSkip+1:0,e.columnSkip>0?e.columnTake:e.columnTake+1));var w="[DX_"+t+"]";f.push(b(y,i,w)),e.totalsOnly&&f.push(b("COUNT("+w+")",i,"[DX_"+t+"_count]","member"))}return"columns"===t&&n.length&&!e.skipValues&&f.push(_),(0,d.format)(ue,s(f),t)}function k(e){var t=[];return(0,g.each)(e,function(e,n){var i,o=n.dataField,r=[],s=n.filterValues||[];n.hierarchyName&&(0,f.isNumeric)(n.groupIndex)||((0,g.each)(s,function(e,t){var i=o+"."+L(Array.isArray(t)?t[t.length-1]:t,o);"exclude"===n.filterType&&(r.push(i+".parent"),i="Descendants("+i+")"),r.push(i)}),s.length&&(i=(0,d.format)(ce,r.join(",")),"exclude"===n.filterType&&(i="Except("+a(n)+","+i+")"),t.push(i)))}),t.length?s(t):""}function I(e,t,n,i){var o="["+i+"]";return(0,g.each)([e,t,n],function(e,t){t&&(o=(0,d.format)(ie,t+"on 0",o))}),o}function S(e,t,n,i,o,a,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l="",u=(t.length?"with "+t.join(" "):"")+" ";if(e.length){var c=void 0;if(s.totalsOnly){var h=[];i.length&&h.push("[DX_rows_count]"),n.length&&h.push("[DX_columns_count]"),c="{"+h.join(",")+"} on columns"}else c=e.join(",");l=u+(0,d.format)(ne,I(k(n),k(i),k(o||[]),r),a.length?(0,d.format)(se,a.join(",")):"",c)}return l}function D(e,t){return(0,g.map)(t,function(t){return(0,f.isString)(t.expression)&&b(t.expression,e,t.dataField,"member"),t.dataField})}function T(e,t,n,i){(0,g.each)(i,function(i,o){var a=t[n][i];a.hierarchyName&&a.hierarchyName===t[n][i+1].hierarchyName||e.push(a.dataField+"."+L(o,a.dataField))})}function E(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=D(s,a);return n.measureCount=e.skipValues?1:a.length,n.visibleLevels={},e.headerName&&e.path&&T(r,e,e.headerName,e.path),e.headerName&&e.oppositePath&&T(r,e,"rows"===e.headerName?"columns":"rows",e.oppositePath),(i.length||u.length)&&l.push(C(e,"columns",u,s,n)),o.length&&l.push(C(e,"rows",u,s,n)),S(l,s,i,o,e.filters,r,t,e)}function O(e,t,n){(0,g.each)(n,function(n,i){var o=t[n];o.hierarchyName&&(t[n+1]||{}).hierarchyName===o.hierarchyName||e.push(o.dataField+"."+L(i,o.dataField))})}function A(e,t,n){var i,o=e.columns||[],a=e.rows||[],r=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],s=[],l=[],u=[],d=D(l,r),c=n.maxRowCount,h=n.customColumns||[],p=h.length>0?" return "+h.join(","):"";return O(s,o,n.columnPath||[]),O(s,a,n.rowPath||[]),(o.length||o.length||d.length)&&u.push([(d[n.dataIndex]||d[0])+" on 0"]),i=S(u,l,o,a,e.filters,s,t),i?"drillthrough"+(c>0?" maxrows "+c:"")+i+p:i}function P(e){return parseInt(e,10)}function B(e){return(0,f.isNumeric)(e)?parseFloat(e):e}function M(e,t){return(e.getElementsByTagName(t)||[])[0]}function F(e,t){return V(M(e,t))}function R(e,t){var n=[];for((0,g.each)(e.getElementsByTagName("Axis"),function(e,i){var o=i.getAttribute("name"),a=[],r=0;0===o.indexOf("Axis")&&(0,f.isNumeric)(P(o.substr(4)))&&(n.push(a),(0,g.each)(i.getElementsByTagName("Tuple"),function(e,i){var o,s,l,u=i.childNodes,d=0,c=[],h=t?u.length:u.length-1,p=1===n.length;for(p&&h--,a.push(c),l=h;l>=0;l--)o=u[l],s=P(F(o,"LNum")),c[l]={caption:F(o,"Caption"),value:B(F(o,"MEMBER_VALUE")),level:s,index:r++,hasValue:!(d||!s&&0!==l),name:F(o,"UName"),hierarchyName:u[l].getAttribute("Hierarchy"),parentName:F(o,"PARENT_UNIQUE_NAME"),levelName:F(o,"LName")},d+=s}))});n.length<2;)n.push([[{level:0}]]);return n}function V(e){return e&&e&&(e.textContent||e.text||e.innerHTML)||""}function H(e,t,n){for(var i,o,a=[],r=[],s=0,l=[],u=e.getElementsByTagName("Cell"),d={},h=0;h<u.length;h++){var p=u[h],f=p.getElementsByTagName("Value")[0],_=f&&f.getElementsByTagName("Error")||[],m=0===_.length?V(f):"#N/A",v=parseFloat(m),y=m-v+1>0,w=P(p.getAttribute("CellOrdinal"));_.length&&(d[V(_[0].getElementsByTagName("ErrorCode")[0])]=V(_[0].getElementsByTagName("Description")[0])),l[w]={value:y?v:m||null}}return(0,g.each)(t[1],function(){o=[],a.push(o),(0,g.each)(t[0],function(){i=s%n,0===i&&(r=[],o.push(r)),r.push(l[s]?l[s].value:null),s++})}),Object.keys(d).forEach(function(e){c.errors.log("W4002",d[e])}),a}function L(e,t){return e&&(e=(0,f.isString)(e)&&e.indexOf("&")!==-1?e:"["+e+"]",t&&0===e.indexOf(t+".")&&(e=e.slice(t.length+1,e.length))),e}function z(e,t,n,i){var o=e[t];return o||(o={},e[t]=o),!(0,f.isDefined)(o.value)&&n&&(o.text=n.caption,o.value=n.value,o.key=t?t:"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function $(e,t){var n=[],i=e.children&&(e.children.length?e.children:Object.keys(e.children.grandTotalHash||{}).reduce(function(t,n){return t.concat(e.children.grandTotalHash[n].children)},[])),o=i&&i[0];if(o&&(t[o.hierarchyName]&&(0,_.inArray)(o.levelName,t[o.hierarchyName])!==-1||!t[o.hierarchyName]||0===o.level)){var a=i.filter(function(e){return e.hierarchyName===o.hierarchyName});return a.grandTotalHash=i.grandTotalHash,a}if(o)for(var r=0;r<i.length;r++)i[r].hierarchyName===o.hierarchyName&&n.push.apply(n,$(i[r],t));return n}function N(e,t,n){var i,o=n.children=n.children||[],a=o.hash=o.hash||{},r=o.grandTotalHash=o.grandTotalHash||{};return t.parentName&&(n=z(a,t.parentName),o=n.children=n.children||[]),i=z(a,t.name,t,e),t.hasValue&&!i.added&&(i.index=e,i.added=!0,o.push(i)),n.value&&n.parentName||!t.parentName?r[n.name]&&delete r[t.parentName]:r[t.parentName]=n,i}function W(e,t){var n;if(1===e.children.length&&""===e.children[0].parentName){n=e.children[0].index;var i=e.children.grandTotalHash;e.children=e.children[0].children||[],e.children.grandTotalHash=i,e.children=$(e,t)}else 0===e.children.length&&(n=0);return n}function j(e,t,n,i){var o,a=[];(0,g.each)(t,function(e,t){var i={children:a},o=(0,f.isDefined)(n)?Math.floor(e/n):e;(0,g.each)(t,function(e,t){i=N(o,t,i)})});var r={children:a};return r.children=$(r,i),o=W(r,i),(0,m.foreachTree)(r.children,function(e){var t=e[0],n=$(t,i);n.length?t.children=n:delete t.children,delete t.levelName,delete t.hierarchyName,delete t.added,delete t.parentName,delete t.level},!0),(0,g.each)(r.children||[],function(t,n){e.push(n)}),o}function q(e){var t,n,i=e.getElementsByTagName("soap:Fault"),o=e.getElementsByTagName("Fault"),a=(0,r.default)([].slice.call(o.length?o:i)).find("Error");return a.length?(t=a.attr("Description"),n=new c.errors.Error("E4000",t),c.errors.log("E4000",t),n):null}function G(e,t){var n,i={columns:[],rows:[]},o=t.measureCount;return n=R(e,t.skipValues),i.grandTotalColumnIndex=j(i.columns,n[0],o,t.visibleLevels),i.grandTotalRowIndex=j(i.rows,n[1],void 0,t.visibleLevels),i.values=H(e,n,o),i}function K(e,t,n,i){var o=[],a="MEASURE"===t,r=a?"MEASUREGROUP_NAME":t+"_DISPLAY_FOLDER";return(0,g.each)(e.getElementsByTagName("row"),function(e,s){var l="LEVEL"===t?F(s,"HIERARCHY_UNIQUE_NAME"):void 0,u=F(s,"LEVEL_NUMBER"),d=F(s,r);if(a&&(d=i[d]||d),("0"!==u||"true"!==F(s,t+"_IS_VISIBLE"))&&F(s,"DIMENSION_TYPE")!==pe){var c=a?he:F(s,"DIMENSION_UNIQUE_NAME"),h=F(s,t+"_UNIQUE_NAME");o.push({dimension:n.names[c]||c,groupIndex:u?P(u)-1:void 0,dataField:h,caption:F(s,t+"_CAPTION"),hierarchyName:l,groupName:l,displayFolder:d,isMeasure:a,isDefault:!!n.defaultHierarchies[h]})}}),o}function U(e){var t={};return(0,g.each)(e.getElementsByTagName("row"),function(e,n){t[F(n,"MEASUREGROUP_NAME")]=F(n,"MEASUREGROUP_CAPTION")}),t}function Y(e){var t={names:{},defaultHierarchies:{}};return(0,g.each)((0,r.default)(e).find("row"),function(){var e=(0,r.default)(this),n=e.children("DIMENSION_TYPE").text(),i=n===pe?he:e.children("DIMENSION_UNIQUE_NAME").text();t.names[i]=e.children("DIMENSION_CAPTION").text(),t.defaultHierarchies[e.children("DEFAULT_HIERARCHY").text()]=!0}),t}function X(e){e=e.replace(/_x(....)_/g,function(e,t){return String.fromCharCode(parseInt(t,16))});var t=e.match(/\[.+?\]/gi);return t&&t.length&&(e=t[t.length-1]),e.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function Z(e){for(var t=e.getElementsByTagName("row"),n=[],i={},o=0;o<t.length;o++){for(var a=t[o].childNodes,r={},s=0;s<a.length;s++){var l=a[s].tagName,u=i[l]=i[l]||X(l);r[u]=V(a[s])}n.push(r)}return n}function Q(n,i){return i=(0,r.default)("<div>").text(i).html(),e(n,(0,d.format)(te,i,n.catalog,t()))}function J(e,t,n){var i=[],a=t.columns||[],r=t.rows||[];a.length&&i.push({}),r.length&&i.push({});var s=H(n,[[{}],[{},{}]],1);if(!a.length&&r.length&&(e.rowCount=Math.max(s[0][0][0]-1,0)),!r.length&&a.length&&(e.columnCount=Math.max(s[0][0][0]-1,0)),r.length&&a.length&&(e.rowCount=Math.max(s[0][0][0]-1,0),e.columnCount=Math.max(s[1][0][0]-1,0)),void 0!==e.rowCount&&t.rowTake){e.rows=[].concat(o(Array(t.rowSkip))).concat(e.rows),e.rows.length=e.rowCount;for(var l=0;l<e.rows.length;l++)e.rows[l]=e.rows[l]||{}}if(void 0!==e.columnCount&&t.columnTake){e.columns=[].concat(o(Array(t.columnSkip))).concat(e.columns),e.columns.length=e.columnCount;for(var u=0;u<e.columns.length;u++)e.columns[u]=e.columns[u]||{}}}var ee='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',te='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',ne="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",ie="(SELECT {0} FROM {1})",oe="Subset({0}, {1}, {2})",ae="Order({0}, {1}, {2})",re="{0} {1} as {2}",se="WHERE ({0})",le="NonEmpty({0}, {1})",ue="{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",de="CrossJoin({0})",ce="{{0}}",he="DX_MEASURES",pe="2";return{ctor:function(e){this._options=e},getFields:function(){var n=this._options,i=n.catalog,o=n.cube,a=t(),r=e(n,(0,d.format)(ee,i,o,"MDSCHEMA_DIMENSIONS",a)),s=e(n,(0,d.format)(ee,i,o,"MDSCHEMA_MEASURES",a)),l=e(n,(0,d.format)(ee,i,o,"MDSCHEMA_HIERARCHIES",a)),u=e(n,(0,d.format)(ee,i,o,"MDSCHEMA_LEVELS",a)),c=new v.Deferred;return(0,v.when)(r,s,l,u).then(function(t,r,s,l){e(n,(0,d.format)(ee,i,o,"MDSCHEMA_MEASUREGROUPS",a)).done(function(e){var n=Y(t),i=K(s,"HIERARCHY",n),o=K(l,"LEVEL",n),a=U(e),u=K(r,"MEASURE",n,a).concat(i),d={};(0,g.each)(o,function(e,t){d[t.hierarchyName]=d[t.hierarchyName]||[],d[t.hierarchyName].push(t)}),(0,g.each)(i,function(e,t){d[t.dataField]&&d[t.dataField].length>1&&(t.groupName=t.hierarchyName=t.dataField,u.push.apply(u,d[t.hierarchyName]))}),c.resolve(u)}).fail(c.reject)}).fail(c.reject),c},load:function e(t){var n=new v.Deferred,i=this._options,o={skipValues:t.skipValues},a=E(t,i.cube,o),r=void 0;(t.rowSkip||t.rowTake||t.columnTake||t.columnSkip)&&(r=E((0,p.extend)({},t,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),i.cube,{}));var e=function(){a?(0,v.when)(Q(i,a),r&&Q(i,r)).done(function(e,i){var a=q(e)||i&&q(i);if(a)n.reject(a);else{var r=G(e,o);i&&J(r,t,i),n.resolve(r)}}).fail(n.reject):n.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return t.delay?setTimeout(e,t.delay):e(),n},supportPaging:function(){return!0},getDrillDownItems:function(e,t){var n=new v.Deferred,i=this._options,o=A(e,i.cube,t);return o?(0,v.when)(Q(i,o)).done(function(e){var t=q(e);t?n.reject(t):n.resolve(Z(e))}).fail(n.reject):n.resolve([]),n},key:h.noop,filter:h.noop}}()).include(m.storeDrillDownMixin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=[];if(e.items)for(var i=0;i<e.items.length;i++)n.push.apply(n,o(e.items[i],t));else(0,h.isDefined)(e.index)&&n.push(t[e.index]);return n}function a(e,t){if(e.items)for(var n=0;n<e.items.length;n++){var i=a(e.items[n],t);if(i)return i}if(t(e))return e}function r(e,t){for(var n=0,i=0;!n&&P[i];)n=P[i++](e,t);return n}function s(e){return e.find(".dx-scrollable").dxScrollable("instance")}var l=n(2),u=i(l),d=n(56),c=n(7),h=n(1),p=n(0),f=n(14),g=n(3),_=n(10),m=n(9),v=i(m),y=n(81),w=n(144),x=i(w),b=n(96),C=i(b),k=n(266),I=i(k);n(264);var S="<div>",D=(0,c.hasWindow)(),T="dx-pivotgridfieldchooser",E="dx-pivotgridfieldchooser-container",O="dx-pivotgrid-fields-container",A="dx-pivotgrid-drag-action",P=[function(e,t){var n=-!!e.isMeasure,i=+!!t.isMeasure;return n+i},function(e,t){var n=-!(!e.items||!e.items.length),i=+!(!t.items||!t.items.length);return n+i},function(e,t){var n=+!!(e.isMeasure===!1&&e.field&&e.field.levels&&e.field.levels.length),i=-!!(t.isMeasure===!1&&t.field&&t.field.levels&&t.field.levels.length);return n+i},(0,y.getCompareFunction)(function(e){return e.text})],B=I.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{height:400,layout:0,dataSource:null,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:(0,_.format)("dxPivotGrid-columnFields"),rowFields:(0,_.format)("dxPivotGrid-rowFields"),dataFields:(0,_.format)("dxPivotGrid-dataFields"),filterFields:(0,_.format)("dxPivotGrid-filterFields"),allFields:(0,_.format)("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var e=this;e._expandedPaths=[],e._changedHandler=e._changedHandler||function(){(0,g.each)(e._dataChangedHandlers,function(e,t){t()}),e._fireContentReadyAction(),e._skipStateChange=!0,e.option("state",e._dataSource.state()),e._skipStateChange=!1},e._disposeDataSource(),e.callBase(),e._dataSource&&e._dataSource.on("changed",e._changedHandler)},_disposeDataSource:function(){var e=this,t=e._dataSource;t&&(t.off("changed",e._changedHandler),e._dataSource=void 0)},_dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(e,t){this._actions[e](t)},_setOptionsByReference:function(){this.callBase(),(0,p.extend)(this._optionsByReference,{dataSource:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":t._refreshDataSource(),t._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":t._invalidate();break;case"onContextMenuPreparing":t._actions[e.name]=t._createActionByOption(e.name);break;default:t.callBase(e)}},_clean:function(e){!e&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+E).remove()},_renderLayout0:function(e){var t,n,i,o,a,r,s=this;e.addClass("dx-layout-0"),a=(0,u.default)(S).addClass("dx-row").appendTo(e),r=(0,u.default)(S).addClass("dx-row").appendTo(e),t=(0,u.default)(S).addClass("dx-col").appendTo(a),n=(0,u.default)(S).addClass("dx-col").appendTo(a),i=(0,u.default)(S).addClass("dx-col").appendTo(r),o=(0,u.default)(S).addClass("dx-col").appendTo(r),s._renderArea(t,"all"),s._renderArea(n,"row"),s._renderArea(n,"column"),s._renderArea(i,"filter"),s._renderArea(o,"data")},_renderLayout1:function(e){var t,n,i=this;t=(0,u.default)(S).addClass("dx-col").appendTo(e),n=(0,u.default)(S).addClass("dx-col").appendTo(e),i._renderArea(t,"all"),i._renderArea(n,"filter"),i._renderArea(n,"row"),i._renderArea(n,"column"),i._renderArea(n,"data")},_renderLayout2:function(e){var t,n,i,o,a=this;e.addClass("dx-layout-2"),i=(0,u.default)(S).addClass("dx-row").appendTo(e),a._renderArea(i,"all"),o=(0,u.default)(S).addClass("dx-row").appendTo(e),t=(0,u.default)(S).addClass("dx-col").appendTo(o),n=(0,u.default)(S).addClass("dx-col").appendTo(o),a._renderArea(t,"filter"),a._renderArea(t,"row"),a._renderArea(n,"column"),a._renderArea(n,"data")},_initMarkup:function(){var e=this,t=this.$element(),n=(0,u.default)(S).addClass(E).appendTo(t),i=e.option("layout");e.callBase(),t.addClass(T).addClass(O),e._dataChangedHandlers=[];var o=this._dataSource,a="instantly"!==e.option("applyChangesMode")&&o&&o.state();a&&e.option("state")&&o.state(e.option("state"),!0),0===i?e._renderLayout0(n):1===i?e._renderLayout1(n):e._renderLayout2(n),a&&o.state(a,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){this._dataSource&&this._dataSource.isLoading()||this.callBase()},_getContextMenuArgs:function(e){var t,n,i=(0,u.default)(e.target).closest(".dx-area-field"),o=(0,u.default)(e.target).closest(".dx-area-fields");if(i.length){var a=i.data("field");a&&(t=this.getDataSource().field(a.index)||a)}return o.length&&(n=o.attr("group")),{event:e,field:t,area:n,items:[]}},_renderContextMenu:function(){var e=this,t=e.$element();e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,u.default)(S).appendTo(t),C.default,{onPositioning:function(t){var n,i=t.event;i&&(n=e._getContextMenuArgs(i),e._trigger("onContextMenuPreparing",n),n.items&&n.items.length?t.component.option("items",n.items):t.cancel=!0)},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(e,t,n){var i,o=this,a=[],r=[],s=t[0],l={};return s?((0,g.each)(e,function(e,t){var n=t[s]||"";l[n]=l[n]||[],l[n].push(t),void 0===i&&(i=!0),i=i&&t.isMeasure===!0}),(0,g.each)(l,function(e,i){var s=n?n+"."+e:e,l=o._createTreeItems(i,t.slice(1),s);e?r.push({key:e,text:e,path:s,isMeasure:l.isMeasure,expanded:(0,f.inArray)(s,o._expandedPaths)>=0,items:l}):a=l}),a=r.concat(a),a.isMeasure=i):(0,g.each)(e,function(e,t){var n;t.isMeasure===!0&&(n="measure"),t.isMeasure===!1&&(n=t.groupName?"hierarchy":"dimension"),a.push({index:t.index,field:t,key:t.dataField,selected:(0,h.isDefined)(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})}),a},_createFieldsDataSource:function(e){var t,n=e&&e.fields()||[];return n=n.filter(function(e){return e.visible!==!1&&!(0,h.isDefined)(e.groupIndex)}),t=this._createTreeItems(n,["dimension","displayFolder"]),(0,y.foreachDataLevel)(t,function(e){e.sort(r)},0,"items"),t},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,i=t._createComponent(e,x.default,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),itemTemplate:function(e,t,n){e.icon&&(0,d.getImageContainer)(e.icon).appendTo(n),(0,u.default)("<span>").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=(0,f.inArray)(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){var n=(0,f.inArray)(e.itemData.path,t._expandedPaths);n<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var r,s,l,u=e.itemData,d=!0;if(u.items){if(u.selected)return void i.unselectItem(u);if(t._processDemandState(function(){s=o(u,n.fields());for(var e=0;e<s.length;e++)if(s[e].area){d=!1;break}}),d){var c=a(u,function(e){return e.isDefault})||a(u,function(e){return(0,h.isDefined)(e.index)});return void(c&&i.selectItem(c))}}else r=n.fields()[u.index],u.selected&&(l=r.isMeasure?"data":"column"),r&&(s=[r]);t._applyChanges(s,{area:l,areaIndex:void 0})}}),r=function(){var o=s(e),a=o?o.scrollTop():0;i.option({dataSource:t._createFieldsDataSource(n)}),o=s(e),o&&(o.scrollTo({y:a}),o.update())};t._dataChangedHandlers.push(r)},_renderAreaFields:function(e,t){var n=this,i=n._dataSource,o=i?(0,p.extend)(!0,[],i.getAreaFields(t,!0)):[];e.empty(),(0,g.each)(o,function(t,i){i.visible!==!1&&n.renderField(i,!0).appendTo(e)})},_renderArea:function(e,t){var n,i,o,a=this,r=(0,u.default)(S).addClass("dx-area").appendTo(e),s=(0,u.default)(S).addClass("dx-area-fields-header").appendTo(r),l=a.option("texts."+t+"Fields");(0,u.default)("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(s),(0,u.default)("<span>").html("&nbsp;").appendTo(s),(0,u.default)("<span>").addClass("dx-area-caption").text(l).appendTo(s),n=(0,u.default)(S).addClass("dx-area-fields").addClass(A).appendTo(r),"all"!==t?(n.attr("group",t).attr("allow-scrolling",!0),i=(0,u.default)(S).addClass("dx-area-field-container").appendTo(n),o=function(){a._renderAreaFields(i,t)},a._dataChangedHandlers.push(o),o(),n.dxScrollable()):(r.addClass("dx-all-fields"),n.addClass("dx-treeview-border-visible"),a._renderFieldsTreeView(n))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var e=this.$element().find(".dx-treeview").dxTreeView("instance");e&&(e.option("searchValue",""),e.collapseAll())},applyChanges:function(){var e=this.option("state");(0,h.isDefined)(e)&&this._dataSource.state(e)},cancelChanges:function(){this.option("state",this._dataSource.state())},getDataSource:function(){return this._dataSource},updateDimensions:function(){var e=this.$element().find(".dx-area .dx-scrollable");e.dxScrollable("update")},_visibilityChanged:function(e){e&&D&&this.updateDimensions()}});(0,v.default)("dxPivotGridFieldChooser",B),e.exports=B},function(e,t,n){var i=n(42),o=n(21),a=n(713),r={_displayNames:a.displayNames,_list:a.timezones,getTimezones:function(){return this._list},getDisplayNames:function(){return this._displayNames},queryableTimezones:function(){return i(this.getTimezones())},getTimezoneById:function(e){var t,n=0,i=this.getTimezones();if(e)for(;!t;){if(!i[n])return void o.log("W0009",e);var a=i[n].id;a===e&&(t=i[n]),n++}return t},getTimezoneOffsetById:function(e,t){var n,i,o,a,r=this.getTimezoneById(e);if(r){if(r.link){var s=this.getTimezones()[r.link];n=s.offsets,o=s.untils,i=s.offsetIndices}else n=r.offsets,o=r.untils,i=r.offsetIndices;a=this.getUtcOffset(n,i,o,t)}return a},getUtcOffset:function(e,t,n,i){for(var o=0,a=t.split(""),r=n.split("|").map(function(e){return"Infinity"===e?null:1e3*parseInt(e,36)}),s=0,l=0,u=r.length;l<u;l++){s+=r[l];{if(!(i>=s))break;o=l}}return r[o+1]&&o++,e[Number(a[o])]},getTimezoneShortDisplayNameById:function(e){var t,n=this.getTimezoneById(e);return n&&(t=n.DisplayName.substring(0,11)),t},getTimezonesDisplayName:function(){return i(this.getDisplayNames()).sortBy().toArray()},getTimezoneDisplayNameById:function(e){var t=this.getTimezoneById(e);return t?this.getDisplayNames()[t.winIndex]:""},getSimilarTimezones:function(e){if(!e)return[];var t=this.getTimezoneById(e);return this.getTimezonesIdsByWinIndex(t.winIndex)},getTimezonesIdsByWinIndex:function(e){return this.queryableTimezones().filter(["winIndex",e]).sortBy("title").toArray().map(function(e){return{id:e.id,displayName:e.title}})},getTimezonesIdsByDisplayName:function(e){var t=this.getDisplayNames().indexOf(e);return this.getTimezonesIdsByWinIndex(t)},getClientTimezoneOffset:function(e){return 6e4*e.getTimezoneOffset()},processDateDependOnTimezone:function(e,t){var n=new Date(e);if(t){var i=t+this.getClientTimezoneOffset(e)/36e5;n=new Date(n.setHours(n.getHours()+i))}return n}};e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipStrategyBase=t.createDefaultTooltipTemplate=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i);
}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(35),s=i(r),l=n(22),u=i(l),d=n(99),c=n(2),h=i(c),p=n(305),f=i(p),g=n(0),_="dx-tooltip-appointment-item",m=_+"-content",v=_+"-content-subject",y=_+"-content-date",w=_+"-marker",x=_+"-marker-body",b=_+"-delete-button-container",C=_+"-delete-button",k=t.createDefaultTooltipTemplate=function(e,t,n,i){return new d.FunctionTemplate(function(o){return e.render({model:{appointmentData:t,targetedAppointmentData:n},container:o.container,index:i})})};t.TooltipStrategyBase=function(){function e(t){o(this,e),this.scheduler=t,this.tooltip=null}return a(e,[{key:"show",value:function(e,t,n){this._canShowTooltip(e,t)&&(this.hide(),this._showCore(e,t,n))}},{key:"_showCore",value:function(e,t,n){var i=this;this.tooltip?(this._shouldUseTarget()&&this.tooltip.option("target",e),this.list.option("dataSource",t)):(this.tooltip=this._createTooltip(e),this.tooltip.option({contentTemplate:function(e){if(!i.list){var n=(0,h.default)("<div>");(0,h.default)(e).append(n),i.list=i._createList(n,t)}},onShown:this._onShown.bind(this)})),this.tooltip.option("visible",!0)}},{key:"_onShown",value:function(){this.list.option("focusStateEnabled",this.scheduler.option("focusStateEnabled"))}},{key:"dispose",value:function(){}},{key:"hide",value:function(){this.tooltip&&this.tooltip.option("visible",!1)}},{key:"_shouldUseTarget",value:function(){return!0}},{key:"_createTooltip",value:function(e,t){}},{key:"_canShowTooltip",value:function(e,t){return!(!t.length||this.tooltip&&this.tooltip.option("visible")&&(0,h.default)(this.tooltip.option("target")).get(0)===(0,h.default)(e).get(0))}},{key:"_createListOption",value:function(e){var t=this;return{dataSource:e,onContentReady:this._onListRendered.bind(this),onItemClick:function(e){return t._onListItemClick(e)},itemTemplate:function(e,n){return t._renderTemplate(t.tooltip.option("target"),e.data,e.currentData||e.data,n,e.color)}}}},{key:"_createList",value:function(e,t){return this.scheduler._createComponent(e,f.default,this._createListOption(t))}},{key:"_onListRendered",value:function(e){}},{key:"_getTargetData",value:function(e,t){return this.scheduler.fire("getTargetedAppointmentData",e,t)}},{key:"_renderTemplate",value:function(e,t,n,i,o){this._createTemplate(t,n,o);var a=this.scheduler._getAppointmentTemplate(this._getItemListTemplateName());return this._createFunctionTemplate(a,t,this._getTargetData(t,e),i)}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return k(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"_getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"_onListItemClick",value:function(e){this.hide(),this._canRaiseClickEvent()?this._raiseClickEventAndShowAppointmentPopup(e):this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_canRaiseClickEvent",value:function(){return!0}},{key:"_raiseClickEventAndShowAppointmentPopup",value:function(e){var t={itemData:e.itemData.data,itemElement:e.itemElement},n=this.createAppointmentClickAction();n(this.createClickEventArgument(t,e))}},{key:"createAppointmentClickAction",value:function(){var e=this;return this.scheduler._createActionByOption("onAppointmentClick",{afterExecute:function(t){var n=t.args[0];n.event.stopPropagation(),e.scheduler.fire("showEditAppointmentPopup",{data:n.appointmentData})}})}},{key:"createClickEventArgument",value:function(e,t){var n=(0,g.extendFromObject)(this.scheduler.fire("mapAppointmentFields",e),t,!1);return this.trimClickEventArgument(n)}},{key:"trimClickEventArgument",value:function(e){return delete e.itemData,delete e.itemIndex,delete e.itemElement,e}},{key:"_createTemplate",value:function(e,t,n){var i=this;this.scheduler._defaultTemplates[this._getItemListDefaultTemplateName()]=new d.FunctionTemplate(function(o){var a=(0,h.default)(o.container);return a.append(i._createItemListContent(e,t,n)),a})}},{key:"_createItemListContent",value:function(e,t,n){var i=this.scheduler.option("editing"),o=this.scheduler.fire("getField","allDay",e),a=this.scheduler.fire("getField","text",e),r=this.scheduler.fire("getField","startDateTimeZone",e),s=this.scheduler.fire("getField","endDateTimeZone",e),l=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","startDate",t),r),u=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","endDate",t),s),d=(0,h.default)("<div>").addClass(_);return d.append(this._createItemListMarker(n)),d.append(this._createItemListInfo(a,this._formatDate(l,u,o))),(i&&i.allowDeleting===!0||i===!0)&&d.append(this._createDeleteButton(e,t)),d}},{key:"_createItemListMarker",value:function(e){var t=(0,h.default)("<div>").addClass(w),n=(0,h.default)("<div>").addClass(x);return t.append(n),e&&e.done(function(e){return n.css("background",e)}),t}},{key:"_createItemListInfo",value:function(e,t){var n=(0,h.default)("<div>").addClass(m),i=(0,h.default)("<div>").addClass(v).text(e),o=(0,h.default)("<div>").addClass(y).text(t);return n.append(i).append(o)}},{key:"_createDeleteButton",value:function(e,t){var n=this,i=(0,h.default)("<div>").addClass(b),o=(0,h.default)("<div>").addClass(C);return i.append(o),this.scheduler._createComponent(o,s.default,{icon:"trash",stylingMode:"text",onClick:function(i){n.hide(),i.event.stopPropagation();var o=n.scheduler.fire("getField","startDate",t);n.scheduler._checkRecurringAppointment(e,t,o,function(){return n.scheduler.deleteAppointment(e)},!0)}}),i}},{key:"_formatDate",value:function(e,t,n){var i="";return this.scheduler.fire("formatDates",{startDate:e,endDate:t,formatType:this._getTypeFormat(e,t,n),callback:function(e){return i=e}}),i}},{key:"_getTypeFormat",value:function(e,t,n){return n?"DATE":"month"!==this.scheduler.option("currentView")&&u.default.sameDate(e,t)?"TIME":"DATETIME"}}]),e}()},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(38),s=n(22),l=n(1),u=n(7),d=n(11).getPublicElement,c=n(0).extend,h=n(3).each,p=n(10),f=n(32),g=s.dateToMilliseconds,_=n(17),m=_.abstract,v=n(4).noop,y=n(1).isDefined,w=n(122),x=n(8),b=n(23),C=n(19),k=n(20),I=n(163),S=n(70),D=n(94),T=n(723),E=n(724),O=n(267),A=n(725),P=n(726),B="dx-scheduler-work-space",M="dx-scheduler-work-space-grouped",F="dx-scheduler-work-space-vertical-grouped",R="dx-scheduler-work-space-vertical-group-table",V="dx-scheduler-work-space-both-scrollbar",H="dx-scheduler-work-space-count",L="dx-scheduler-work-space-group-by-date",z="dx-scheduler-work-space-odd-cells",$="dx-scheduler-work-space-overlapping",N="dx-scheduler-time-panel",W="dx-scheduler-time-panel-cell",j="dx-scheduler-time-panel-row",q="dx-scheduler-all-day-panel",G="dx-scheduler-all-day-table",K="dx-scheduler-fixed-appointments",U="dx-scheduler-all-day-appointments",Y="dx-scheduler-all-day-title",X="dx-scheduler-all-day-title-hidden",Z="dx-scheduler-all-day-table-cell",Q="dx-scheduler-all-day-table-row",J="dx-scheduler-work-space-all-day",ee="dx-scheduler-work-space-all-day-collapsed",te="dx-scheduler-work-space-mouse-selection",ne="dx-scheduler-cell-sizes-horizontal",ie="dx-scheduler-cell-sizes-vertical",oe="dx-scheduler-header-panel",ae="dx-scheduler-header-panel-cell",re="dx-scheduler-header-row",se="dx-scheduler-group-row",le="dx-scheduler-group-header",ue="dx-scheduler-group-header-content",de="dx-scheduler-date-table",ce="dx-scheduler-date-table-cell",he="dx-scheduler-date-table-row",pe="dx-scheduler-focused-cell",fe="dx-scheduler-date-table-droppable-cell",ge="dx-scheduler-header-scrollable",_e="dx-scheduler-sidebar-scrollable",me="dx-scheduler-date-table-scrollable",ve=x.addNamespace(b.down,"dxSchedulerWorkSpace"),ye=x.addNamespace(S.enter,"dxSchedulerDateTable"),we=x.addNamespace(S.drop,"dxSchedulerDateTable"),xe=x.addNamespace(k.name,"dxSchedulerDateTable"),be=x.addNamespace(b.down,"dxSchedulerDateTable"),Ce=x.addNamespace(b.up,"dxSchedulerDateTable"),ke=x.addNamespace(b.move,"dxSchedulerDateTable"),Ie="dxCellData",Se=1,De=75,Te=g("day"),Ee=g("hour"),Oe="."+de+" td, ."+G+" td",Ae=function(e){return f.getDayNames("abbreviated")[e.getDay()]},Pe=_.inherit({_supportedKeys:function(){var e=function(e){if(e.preventDefault(),e.stopPropagation(),this._focusedCells&&this._focusedCells.length){var t=i(this.option("focusedElement")),n=t.length?t:this._focusedCells;e.target=this._focusedCells,this._showPopup=!0,this._cellClickAction({event:e,cellElement:i(this._focusedCells),cellData:this.getCellData(n)})}},t=function(e,t){e.preventDefault(),e.stopPropagation(),this._moveToCell(t,e.shiftKey)};return c(this.callBase(),{enter:e,space:e,downArrow:function(e){var n=this._getCellFromNextRow("next",e.shiftKey);t.call(this,e,n)},upArrow:function(e){var n=this._getCellFromNextRow("prev",e.shiftKey);t.call(this,e,n)},rightArrow:function(e){var n=this._getRightCell(e.shiftKey);t.call(this,e,n)},leftArrow:function(e){var n=this._getLeftCell(e.shiftKey);t.call(this,e,n)}})},_isRTL:function(){return this.option("rtlEnabled")},_getFocusedCell:function(){return this._$focusedCell||this._$dateTable.find("."+ce).eq(0)},_getAllFocusedCells:function(){return this._focusedCells||this._$dateTable.find("."+ce).eq(0)},_getCellFromNextRow:function(e){var t=this._$focusedCell;if(y(t)){var n=t.index(),i=t.parent(),o=i[e]().children().eq(n);return o=this._checkForViewBounds(o)}},_checkForViewBounds:function(e){return e.length||(e=this._$focusedCell),e},_getRightCell:function(e){if(y(this._$focusedCell)){var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=o-1,r=this._isRTL()?0:a,s=n.index(),l=this._isRTL()?"prev":"next";if(s===r||e&&this._isGroupEndCell(n)){var u=n.parent(),d=this._isRTL()?1:-1;t=u[l]().children().eq(s+d*a),t=this._checkForViewBounds(t)}else t=n[l]();return t}},_isGroupEndCell:function(e){var t=this._getCellCount(),n=e.index(),i=n%t;return this._isRTL()?0===i:i===t-1},_getLeftCell:function(e){if(y(this._$focusedCell)){var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=o-1,r=this._isRTL()?a:0,s=n.index(),l=this._isRTL()?"next":"prev";if(s===r||e&&this._isGroupStartCell(n)){var u=n.parent(),d=this._isRTL()?-1:1;t=u[l]().children().eq(s+d*a),t=this._checkForViewBounds(t)}else t=n[l]();return t}},_isGroupStartCell:function(e){var t=this._getCellCount(),n=e.index(),i=n%t;return this._isRTL()?i===t-1:0===i},_moveToCell:function(e,t){t=t&&this.option("allowMultipleCellSelection"),this._setFocusedCell(e,t),this._dateTableScrollable.scrollToElement(e)},_setFocusedCell:function(e,t){if(y(e)&&e.length){if(this._releaseFocusedCell(),this._focusedCells=[],t){e=this._correctCellForGroup(e);var n="day"!==this.option("type")||this.option("groups").length&&"vertical"!==this.option("groupOrientation")?"horizontal":"vertical",o=this._getCellsBetween(e,this._$prevCell,n);this._focusedCells=o.toArray()}else this._focusedCells=[e.get(0)],this._$prevCell=e;var a=i(this._focusedCells);this._toggleFocusClass(!0,a),this.setAria("label","Add appointment",a),this._toggleFocusedCellClass(!0,e),this._$focusedCell=e;var r=this.getFocusedCellData();this.option("selectedCellData",r),this._selectionChangedAction({selectedCellData:r})}},_correctCellForGroup:function(e){var t=this._$focusedCell,n=this._getGroupIndexByCell(e),i=this._getGroupIndexByCell(t),o=this._hasAllDayClass(e)!==this._hasAllDayClass(t);return i!==n||o?t:e},_getCellsBetween:function(e,t,n){var o=this._hasAllDayClass(t),a=this._getCells(o,n),r=a.index(e),s=a.index(t);if(r>s){var l=r;r=s,s=l}if(a=a.slice(r,s+1),this._getGroupCount()>1){var u=[],d=this._getGroupIndexByCell(e);h(a,function(e,t){var n=this._getGroupIndexByCell(i(t));d===n&&u.push(t)}.bind(this)),a=i(u)}return a},_hasAllDayClass:function(e){return e.hasClass(Z)},_getGroupIndexByCell:function(e){var t=this._getCellCount(),n=e.index()+1,i=Math.ceil(n/t);return i},_toggleFocusedCellClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(pe,e)},_releaseFocusedCell:function(e){e=e||i(this._focusedCells),y(e)&&e.length&&(this._toggleFocusClass(!1,e),this._toggleFocusedCellClass(!1,e),this.setAria("label",void 0,e)),this.option("selectedCellData",[])},_focusInHandler:function(e){if(i(e.target).is(this._focusTarget())&&this._isCellClick!==!1){delete this._isCellClick,delete this._contextMenuHandled,this.callBase.apply(this,arguments);var t=this._getFocusedCell();this._setFocusedCell(t)}},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._contextMenuHandled||this._releaseFocusedCell()},_focusTarget:function(){return this.$element()},_activeStateUnit:"."+ce+", ."+Z,_getDefaultOptions:function(){return c(this.callBase(),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*g("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1})},_optionChanged:function(e){switch(e.name){case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"startDayHour":case"endDayHour":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this._attachTablesEvents(),this.headerPanelOffsetRecalculate(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass(),this._toggleFixedScrollableClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":this.callBase(e),this._dimensionChanged();break;case"allowMultipleCellSelection":break;case"selectedCellData":break;default:this.callBase(e)}},_cleanWorkSpace:function(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this._renderView()},_init:function(){this.callBase(),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this._toggleWorkSpaceOverlappingClass(),this.$element().addClass(B).addClass(this._getElementClass())},_initGrouping:function(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()},_initGroupedStrategy:function(){var e=this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy(),t="vertical"===e?E:T;this._groupedStrategy=new t(this)},_getDefaultGroupStrategy:function(){return"horizontal"},_isVerticalGroupedWorkSpace:function(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")},_isHorizontalGroupedWorkSpace:function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},_toggleHorizontalScrollClass:function(){this.$element().toggleClass(V,this.option("crossScrollingEnabled"))},_toggleGroupByDateClass:function(){this.$element().toggleClass(L,this.isGroupedByDate())},_toggleWorkSpaceCountClass:function(){this.$element().toggleClass(H,this._isWorkSpaceWithCount())},_isWorkSpaceWithCount:function(){return this.option("intervalCount")>1},_toggleWorkSpaceWithOddCells:function(){this.$element().toggleClass(z,this._isWorkspaceWithOddCells())},_isWorkspaceWithOddCells:function(){return.5===this.option("hoursInterval")},_toggleWorkSpaceOverlappingClass:function(){this.$element().toggleClass($,this._isWorkSpaceWithOverlapping())},_isWorkSpaceWithOverlapping:function(){return null!==this.invoke("getMaxAppointmentsPerCell")},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(F,this._isVerticalGroupedWorkSpace())},_getRealGroupOrientation:function(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"},_getTimePanelClass:function(){return N},_getDateTableClass:function(){return de},_getDateTableRowClass:function(){return he},_getDateTableCellClass:function(e,t){var n=ce+" "+ne+" "+ie;return this._needApplyLastGroupCellClass()?this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1,e,t):n},_needApplyLastGroupCellClass:function(){return!0},_getGroupRowClass:function(){return se},_getGroupHeaderClass:function(e){var t=le;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e+1)},_getGroupHeaderContentClass:function(){return ue},_initWorkSpaceUnits:function(){this._$headerPanel=i("<table>"),this._$thead=i("<thead>").appendTo(this._$headerPanel),this._$fixedContainer=i("<div>").addClass(K),this._$allDayContainer=i("<div>").addClass(U),this._initAllDayPanelElements(),this._createAllDayPanelElements(),this._$timePanel=i("<table>").addClass(this._getTimePanelClass()),this._$dateTable=i("<table>"),this._$groupTable=i("<div>").addClass(R)},_initAllDayPanelElements:function(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]},_createAllDayPanelElements:function(){var e=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==e)for(var t=0;t<e;t++){var n=i("<div>").addClass(Y).text(p.format("dxScheduler-allDay"));this._allDayTitles.push(n),this._$allDayTable=i("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=i("<div>").addClass(q).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=i("<div>").addClass(Y).text(p.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=i("<table>"),this._$allDayPanel=i("<div>").addClass(q).append(this._$allDayTable)},_initDateTableScrollable:function(){var e=i("<div>").addClass(me);this._dateTableScrollable=this._createComponent(e,D,this._dateTableScrollableConfig())},_dateTableScrollableConfig:function(){var e={useKeyboard:!1,bounceEnabled:!1,updateManually:!0,pushBackValue:0};return this._needCreateCrossScrolling()&&(e=c(e,this._createCrossScrollingConfig())),e},_createCrossScrollingConfig:function(){var e,t,n={};return n.direction="both",n.onStart=function(n){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0)),this._sidebarScrollable&&(t=this._sidebarScrollable.option("onScroll"),this._sidebarScrollable.option("onScroll",void 0))}.bind(this),n.onScroll=function(e){this._sidebarScrollable&&this._sidebarScrollable.scrollTo({top:e.scrollOffset.top}),this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),n.onEnd=function(){this.notifyObserver("updateResizableArea",{}),this._headerScrollable&&this._headerScrollable.option("onScroll",e),this._sidebarScrollable&&this._sidebarScrollable.option("onScroll",t)}.bind(this),n},_createWorkSpaceElements:function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().append(this._$allDayContainer,this._$groupTable,this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._dateTableScrollable.$element())):(this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._$allDayContainer,this._$allDayPanel,this._dateTableScrollable.$element()))},_createWorkSpaceScrollableElements:function(){this.$element().append(this._$fixedContainer),this._createHeaderScrollable(),this._createSidebarScrollable(),this.$element().append(this._dateTableScrollable.$element()),this._headerScrollable.$content().append(this._$headerPanel),this._dateTableScrollable.$content().append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().prepend(this._$allDayContainer),this._sidebarScrollable.$content().append(this._$groupTable,this._$timePanel)):this._headerScrollable.$content().append(this._$allDayContainer,this._$allDayPanel),this._sidebarScrollable.$content().append(this._$timePanel)},_createHeaderScrollable:function(){var e=i("<div>").addClass(ge).appendTo(this.$element());this._headerScrollable=this._createComponent(e,D,this._headerScrollableConfig())},_headerScrollableConfig:function(){var e,t={useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onStart:function(t){e=this._dateTableScrollable.option("onScroll")}.bind(this),onScroll:function(t){this._dateTableScrollable.option("onScroll",void 0),this._dateTableScrollable.scrollTo({left:t.scrollOffset.left}),this._dateTableScrollable.option("onScroll",e)}.bind(this)};return t},_createSidebarScrollable:function(){var e,t=i("<div>").addClass(_e).appendTo(this.$element());this._sidebarScrollable=this._createComponent(t,D,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onStart:function(t){e=this._dateTableScrollable.option("onScroll"),this._dateTableScrollable.option("onScroll",void 0)}.bind(this),onScroll:function(e){this._dateTableScrollable.scrollTo({top:e.scrollOffset.top})}.bind(this),onEnd:function(t){this._dateTableScrollable.option("onScroll",e)}.bind(this)})},_visibilityChanged:function(e){e&&this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight(),e&&this._needCreateCrossScrolling()&&this._setTableSizes()},_attachTableClasses:function(){if(this._addTableClass(this._$dateTable,this._getDateTableClass()),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._addTableClass(this._allDayTables[t],G);else this._addTableClass(this._$allDayTable,G)},_attachHeaderTableClasses:function(){this._addTableClass(this._$headerPanel,oe)},_addTableClass:function(e,t){e&&!e.hasClass(t)&&e.addClass(t)},_setTableSizes:function(){this._attachTableClasses();var e=this.getCellWidth();e<this.getCellMinWidth()&&(e=this.getCellMinWidth());var t=this.getWorkSpaceMinWidth(),n=this._$headerPanel.find("tr").last().find("th"),i=e*n.length;i<t&&(i=t),this._$headerPanel.width(i),this._$dateTable.width(i),this._$allDayTable&&this._$allDayTable.width(i),this._attachHeaderTableClasses(),this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight()},getWorkSpaceMinWidth:function(){return this._groupedStrategy.getWorkSpaceMinWidth()},_dimensionChanged:function(){this.option("crossScrollingEnabled")&&this._setTableSizes(),this.headerPanelOffsetRecalculate(),this._cleanCellDataCache(),this._cleanAllowedPositions()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")},_getElementClass:v,_getRowCount:v,_getCellCount:v,_initMarkup:function(){this._initWorkSpaceUnits(),this._initDateTableScrollable(),this._createWorkSpaceElements(),this.callBase(),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._toggleFixedScrollableClass(),this._renderView(),this._attachEvents(),this._setFocusOnCellByOption(this.option("selectedCellData"))},_render:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_toggleGroupedClass:function(){this.$element().toggleClass(M,this._getGroupCount()>0)},_toggleFixedScrollableClass:v,_renderView:function(){if(this._setFirstViewDate(),this._applyCellTemplates(this._renderGroupHeader()),this._renderDateHeader(),this._renderTimePanel(),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._renderAllDayPanel(t);this._renderDateTable(),this._renderAllDayPanel(),this._updateGroupTableHeight(),this._shader=new A},_updateGroupTableHeight:function(){this._isVerticalGroupedWorkSpace()&&u.hasWindow()&&this._setHorizontalGroupHeaderCellsHeight()},_renderDateTimeIndication:v,_setIndicationUpdateInterval:v,_refreshDateTimeIndication:v,_setFocusOnCellByOption:function(e){var t=[];this._releaseFocusedCell();for(var n=0;n<e.length;n++){var i=e[n].groups,o=this.option("groups").length&&i?this._getGroupIndexByResourceId(i):0,a=!!e[n].allDay,r=this.getCoordinatesByDate(e[n].startDate,o,a),s=this._getCellByCoordinates(r,o);y(s)&&(this._toggleFocusClass(!0,s),t.push(s.get(0)))}this._focusedCells=t},_getGroupIndexByResourceId:function(e){for(var t=this.option("groups"),n=Object.keys(e)[0],i=e[n],o=this.invoke("createResourcesTree",t),a=0,r=0;r<o.length;r++)o[r].name===n&&o[r].value===i&&(a=o[r].leafIndex);return a},_setFirstViewDate:function(){var e=y(this._firstDayOfWeek())?this._firstDayOfWeek():f.firstDayOfWeekIndex();this._firstViewDate=s.getFirstWeekDate(this._getViewStartByOptions(),e),this._setStartDayHour(this._firstViewDate)},_getViewStartByOptions:function(){if(this.option("startDate")){for(var e=s.trimTime(this._getStartViewDate()),t=this.option("currentDate"),n=e.getTime()<=t.getTime()?1:-1,i=new Date(e.getTime()+this._getIntervalDuration()*n);!this._dateInRange(t,e,i,n);)e=i,i=new Date(e.getTime()+this._getIntervalDuration()*n);return n>0?e:i}return this.option("currentDate")},_getHeaderDate:function(){return this.getStartViewDate()},_getStartViewDate:function(){return this.option("startDate")},_dateInRange:function(e,t,n,i){return i>0?s.dateInRange(e,t,new Date(n.getTime()-1)):s.dateInRange(e,n,t,"date")},_getIntervalDuration:function(){return g("day")*this.option("intervalCount")},_setStartDayHour:function(e){var t=this.option("startDayHour");y(t)&&e.setHours(t,t%1*60,0,0)},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")},_attachEvents:function(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this,t=this._createAction(function(t){e._pointerDownHandler(t.event)});this._createCellClickAction();var n="."+ce+",."+Z,o=this.$element();a.off(o,ve),a.off(o,xe),a.on(o,ve,function(e){return x.isMouseEvent(e)&&e.which>1?void e.preventDefault():void t({event:e})}),a.on(o,xe,n,function(t){var n=i(t.target);e._cellClickAction({event:t,cellElement:d(n),cellData:e.getCellData(n)})})},_createCellClickAction:function(){var e=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(t){e._moveToClosestNonStub(t.args[0].event)}})},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_moveToClosestNonStub:function(e){var t=i(e.target);this._showPopup&&this._hasFocusClass(t)&&(delete this._showPopup,this._showAddAppointmentPopup(t))},_pointerDownHandler:function(e){var t=i(e.target);return t.hasClass(ce)||t.hasClass(Z)?(this._isCellClick=!0,void(t.hasClass(pe)?this._showPopup=!0:this._setFocusedCell(t))):void(this._isCellClick=!1)},_showAddAppointmentPopup:function(e){var t=this.getCellData(e.first()),n=this.getCellData(e.last()),i={startDate:t.startDate,endDate:n.endDate};y(n.allDay)&&(i.allDay=n.allDay),c(i,n.groups),this.notifyObserver("showAddAppointmentPopup",i)},_attachContextMenuEvent:function(){this._createContextMenuAction();var e="."+ce+",."+Z,t=this.$element(),n=x.addNamespace(I.name,this.NAME);a.off(t,n,e),a.on(t,n,e,this._contextMenuHandler.bind(this))},_contextMenuHandler:function(e){var t=i(e.target);this._contextMenuAction({event:e,cellElement:d(t),cellData:this.getCellData(t)}),this._contextMenuHandled=!0},_createContextMenuAction:function(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")},_getGroupHeaderContainer:function(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead},_getDateHeaderContainer:function(){return this._$thead},_renderGroupHeader:function(){var e=this._getGroupHeaderContainer(),t=this._getGroupCount(),n=[];if(t){var i=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountAttr(t,i),e.append(i.elements),n=i.cellTemplates}else this._detachGroupCountAttr();return n},_applyCellTemplates:function(e){e.forEach(function(e){e()})},_detachGroupCountAttr:function(){var e=this._groupedStrategy.getGroupCountAttr();this.$element().removeAttr(e.attr)},_attachGroupCountAttr:function(e,t){var n=this._groupedStrategy.getGroupCountAttr(e,t);this.$element().attr(n.attr,n.count)},headerPanelOffsetRecalculate:function(){if(this.option("resourceCellTemplate")||this.option("dateCellTemplate")){var e=this.getHeaderPanelHeight(),t=this.invoke("getHeaderHeight"),n=this.supportAllDayRow()&&this.option("showAllDayPanel")?this._groupedStrategy.getAllDayTableHeight():0;e&&this._headerScrollable&&this._headerScrollable.$element().height(e+n),e&&this._dateTableScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),e&&this._sidebarScrollable&&this._sidebarScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),this._$allDayTitle&&this._$allDayTitle.css("top",t+e+"px")}},_makeGroupRows:function(e,t){var n=this._isVerticalGroupedWorkSpace()?O.VERTICAL:O.HORIZONTAL;return O.makeGroupedTable(n,e,{groupHeaderRowClass:this._getGroupRowClass(),groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),t)},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_renderDateHeader:function(){var e,t,n=this._getDateHeaderContainer(),o=i("<tr>").addClass(re),a=this._getCellCount(),r=this._getDateHeaderTemplate(),s=this._calculateHeaderCellRepeatCount(),l=[],u=this.option("groupByDate")?this._getGroupCount():1,d=this.option("groupByDate");if(d){for(e=0;e<a;e++){var c=this._renderDateHeaderTemplate(o,e,e*s,r,l);c.attr("colSpan",u)}n.prepend(o)}else{for(t=0;t<s;t++)for(e=0;e<a;e++)this._renderDateHeaderTemplate(o,e,t*s+e,r,l);n.append(o)}return this._applyCellTemplates(l),o},_renderDateHeaderTemplate:function(e,t,n,o,a){var r=this._getHeaderText(t),s=i("<th>").addClass(this._getHeaderPanelCellClass(t)).attr("title",r);return o&&o.render?a.push(o.render.bind(o,{model:{text:r,date:this._getDateByIndex(t)},index:n,container:d(s)})):s.text(r),e.append(s),s},_getHeaderPanelCellClass:function(e){var t=ae+" "+ne;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e+1)},_calculateHeaderCellRepeatCount:function(){return this._groupedStrategy.calculateHeaderCellRepeatCount()},_renderAllDayPanel:function(e){var t=this._getCellCount();this._isVerticalGroupedWorkSpace()||(t*=this._getGroupCount()||1);var n=this._renderTableBody({container:d(this._allDayPanels.length?this._allDayTables[e]:this._$allDayTable),rowCount:1,cellCount:t,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:Q,cellTemplate:this.option("dataCellTemplate"),getCellData:this._getAllDayCellData.bind(this),groupIndex:e},!0);this._toggleAllDayVisibility(),this._applyCellTemplates(n)},_getAllDayPanelCellClass:function(e,t){var n=Z+" "+ne;return this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1)},_getAllDayCellData:function(e,t,n,i){var o=this._getDateByCellIndexes(t,n);o=s.trimTime(o);var a={startDate:o,endDate:new Date(o.getTime()+Te),allDay:!0},r=this._getCellGroups(i||this._getGroupIndex(t,n));
r.length&&(a.groups={});for(var l=0;l<r.length;l++)a.groups[r[l].name]=r[l].id;return{key:Ie,value:a}},_toggleAllDayVisibility:function(){var e=this.option("showAllDayPanel");this._$allDayPanel.toggle(e),this._$allDayTitle&&this._$allDayTitle.toggleClass(X,!e),this.$element().toggleClass(J,e),this._changeAllDayVisibility(),this._updateScrollable()},_changeAllDayVisibility:function(){this.$element().toggleClass(ee,!this.option("allDayExpanded")&&this.option("showAllDayPanel"))},_updateScrollable:function(){this._dateTableScrollable.update(),this._headerScrollable&&this._headerScrollable.update(),this._sidebarScrollable&&this._sidebarScrollable.update()},_renderTimePanel:function(){var e=this._groupedStrategy.calculateTimeCellRepeatCount();this._renderTableBody({container:d(this._$timePanel),rowCount:this._getTimePanelRowCount()*e,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:j,cellTemplate:this.option("timeCellTemplate"),getCellText:this._getTimeText.bind(this),getCellDate:this._getTimeCellDate.bind(this),groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0})},_getTimePanelRowCount:function(){return this._getCellCountInDay()},_getCellCountInDay:function(){return Math.ceil(this._calculateDayDuration()/this.option("hoursInterval"))},_calculateDayDuration:function(){return this.option("endDayHour")-this.option("startDayHour")},_getTimeCellClass:function(e){var t=W+" "+ie;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e,e)},_getTimeText:function(e){var t=this._getTimeCellDate(e),n=e%this._getRowCount();return n%2===0?f.format(t,"shorttime"):""},_getTimeCellDate:function(e){var t=new Date(this.getStartViewDate()),n=Math.round(this.getCellDuration()),i=this._calculateDayDuration()/this.option("hoursInterval");return t.setMilliseconds(t.getMilliseconds()+n*(e%i)),t},_renderDateTable:function(){var e=this._getGroupCount();this._renderTableBody({container:d(this._$dateTable),rowCount:this._getTotalRowCount(e),cellCount:this._getTotalCellCount(e),cellClass:this._getDateTableCellClass.bind(this),rowClass:this._getDateTableRowClass(),cellTemplate:this.option("dataCellTemplate"),getCellData:this._getCellData.bind(this),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:e,groupByDate:this.option("groupByDate")})},_insertAllDayRowsIntoDateTable:function(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()},_getTotalCellCount:function(e){return this._groupedStrategy.getTotalCellCount(e)},_getTotalRowCount:function(){return this._groupedStrategy.getTotalRowCount()},_getCellData:function(e,t,n){var i=this._prepareCellData(t,n,e);return{key:Ie,value:i}},_prepareCellData:function(e,t){var n=this._getDateByCellIndexes(e,t),i=this.calculateEndDate(n),o={startDate:n,endDate:i,allDay:this._getTableAllDay()},a=this._getCellGroups(this._getGroupIndex(e,t));a.length&&(o.groups={});for(var r=0;r<a.length;r++)o.groups[a[r].name]=a[r].id;return o},_getGroupIndex:function(e,t){return this._groupedStrategy.getGroupIndex(e,t)},_getTableAllDay:function(){return!1},calculateEndDate:function(e){var t=new Date(e);return t.setMilliseconds(t.getMilliseconds()+Math.round(this._getInterval())),t},_getGroupCount:function(){for(var e=this.option("groups"),t=0,n=0,i=e.length;n<i;n++)n?t*=e[n].items.length:t=e[n].items.length;return t},_getPathToLeaf:function(e){function t(e,n){for(var i=0;i<e.length;i++){if(e[i].leafIndex===n)return e[i];var o=t(e[i].children,n);if(o)return o}}function n(e,t){return t=t||[],t.push(e.value),e.parent&&n(e.parent,t),t}var i=this.invoke("createResourcesTree",this.option("groups")),o=t(i,e);return n(o).reverse()},_getCellGroups:function(e){var t=[];if(this._getGroupCount()){var n=this.option("groups");if(e<0)return;for(var i=this._getPathToLeaf(e),o=0;o<n.length;o++)t.push({name:n[o].name,id:i[o]})}return t},_attachTablesEvents:function(){var e,t,n=this,r=!1,s=this.$element();a.off(s,ye),a.off(s,we),a.off(s,ke),a.off(s,be),a.on(s,ye,Oe,{itemSizeFunc:function(n){return e||(e=n.get(0).getBoundingClientRect().height),t||(t=n.get(0).getBoundingClientRect().width),{width:t,height:e}}},function(e){n._$currentTableTarget&&n._$currentTableTarget.removeClass(fe),n._$currentTableTarget=i(e.target),n._$currentTableTarget.addClass(fe)}),a.on(s,we,Oe,function(n){i(n.target).removeClass(fe),e=0,t=0}),a.on(s,be,Oe,function(e){x.isMouseEvent(e)&&1===e.which&&(r=!0,n.$element().addClass(te),a.off(o.getDocument(),Ce),a.on(o.getDocument(),Ce,function(){r=!1,n.$element().removeClass(te)}))}),a.on(s,ke,Oe,function(e){r&&n._dateTableScrollable&&!n._dateTableScrollable.option("scrollByContent")&&(e.preventDefault(),e.stopPropagation(),n._moveToCell(i(e.target),!0))})},_getDateTables:function(){return this._$dateTable.add(this._$allDayTable)},_getDateTable:function(){return this._$dateTable},_getAllDayTable:function(){return this._$allDayTable},_getInterval:function(){return void 0===this._interval&&(this._interval=this.option("hoursInterval")*Ee),this._interval},_getHeaderText:function(e){return f.format(this._getDateByIndex(e),this._getFormat())},_getDateByIndex:m,_getFormat:m,_calculateCellIndex:function(e,t){return this._groupedStrategy.calculateCellIndex(e,t)},_renderTableBody:function(e,t){var n=[];return t?n=O.makeTable(e):this._applyCellTemplates(O.makeTable(e)),n},_removeAllDayElements:function(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()},_cleanView:function(){this._cleanCellDataCache(),this._cleanAllowedPositions(),this._$thead.empty(),this._$dateTable.empty(),this._shader&&this._shader.clean(),this._$timePanel.empty(),this._$allDayTable&&this._$allDayTable.empty(),this._$groupTable.empty(),delete this._hiddenInterval,delete this._interval},_clean:function(){a.off(o.getDocument(),Ce),this.callBase()},getWorkArea:function(){return this._dateTableScrollable.$content()},getScrollable:function(){return this._dateTableScrollable},getScrollableScrollTop:function(){return this._dateTableScrollable.scrollTop()},getGroupedScrollableScrollTop:function(e){return this._groupedStrategy.getScrollableScrollTop(e)},getScrollableScrollLeft:function(){return this._dateTableScrollable.scrollLeft()},getScrollableOuterWidth:function(){return this._dateTableScrollable.scrollWidth()},getScrollableContainer:function(){return this._dateTableScrollable._container()},getHeaderPanelHeight:function(){return this._$headerPanel&&this._$headerPanel.outerHeight(!0)},getTimePanelWidth:function(){return this._$timePanel&&this._$timePanel.get(0).getBoundingClientRect().width},getGroupTableWidth:function(){return this._$groupTable?this._$groupTable.outerWidth():0},getWorkSpaceLeftOffset:function(){return this._groupedStrategy.getLeftOffset()},getGroupedStrategy:function(){return this._groupedStrategy},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getRowCount()),n=e-this._getRowCount()*t;return{cellIndex:t,rowIndex:n}},_getDateByCellIndexes:function(e,t,n){t=n?t:this._patchCellIndex(t);var i=this.getStartViewDate(),o=new Date(i.getTime()+this._getMillisecondsOffset(e,t)+this._getOffsetByCount(t));return o.setTime(o.getTime()+s.getTimezonesDifference(i,o)),o},_patchCellIndex:function(e){return this.isGroupedByDate()&&(e=Math.floor(e/this._getGroupCount())),e},_getOffsetByCount:function(){return 0},_getMillisecondsOffset:function(e,t){return this._getInterval()*this._calculateCellIndex(e,t)+this._calculateHiddenInterval(e,t)},_calculateHiddenInterval:function(e,t){var n=t%this._getCellCount();return n*this._getHiddenInterval()},_getHiddenInterval:function(){return void 0===this._hiddenInterval&&(this._hiddenInterval=Te-this.getVisibleDayDuration()),this._hiddenInterval},_getIntervalBetween:function(e,t){var n=this.getStartViewDate(),i=this.option("startDayHour")*Ee,o=s.getTimezonesDifference(n,e),a=e.getTime()-n.getTime()-o,r=this._getDaysOfInterval(a,i),l=this._getWeekendsCount(r),u=(r-l)*Te;return t||(u=a-r*this._getHiddenInterval()-l*this.getVisibleDayDuration()),u},_getWeekendsCount:function(){return 0},_getDaysOfInterval:function(e,t){return Math.floor((e+t)/Te)},_getGroupIndexes:function(e){var t=[];if(e&&this.option("groups").length){var n=this.invoke("createResourcesTree",this.option("groups"));t=this.invoke("getResourceTreeLeaves",n,e)}return t},_updateIndex:function(e){return e*this._getRowCount()},_getDroppableCell:function(){return this._getDateTables().find("."+fe)},_getWorkSpaceWidth:function(){return this._needCreateCrossScrolling()?this._$dateTable.get(0).getBoundingClientRect().width:this.$element().get(0).getBoundingClientRect().width-this.getTimePanelWidth()},_getCellPositionByIndex:function(e,t,n){var i=this._getCellCoordinatesByIndex(e),o=this._getCellByCoordinates(i,t,n),a=this._getCellPosition(o);return this.setCellDataCache(i,t,o),a&&(a.rowIndex=i.rowIndex,a.cellIndex=i.cellIndex),a},_getCellPosition:function(e){var t=e.position();return this.option("rtlEnabled")&&(t.left+=e.get(0).getBoundingClientRect().width),t},_getCellByCoordinates:function(e,t,n){var i=this._groupedStrategy.prepareCellIndexes(e,t,n);return this._$dateTable.find("tr").eq(i.rowIndex).find("td").eq(i.cellIndex)},_getCells:function(e,t){var n=e?Z:ce;if("vertical"===t){for(var o=[],a=1;;a++){var r=this.$element().find("tr ."+n+":nth-child("+a+")");if(!r.length)break;o=o.concat(r.toArray())}return i(o)}return this.$element().find("."+n)},_setHorizontalGroupHeaderCellsHeight:function(){var e=this._$dateTable.get(0).getBoundingClientRect().height;this._$groupTable.outerHeight(e)},_getDateTableBorder:function(){return Se},_getDateTableBorderOffset:function(){return 2*this._getDateTableBorder()},_getGroupHeaderCellsContent:function(){return this.$element().find("."+ue)},_getGroupHeaderCells:function(){return this.$element().find("."+le)},_getScrollCoordinates:function(e,t,n){var i=n||new Date(this.option("currentDate")),o=this.option("startDayHour"),a=this.option("endDayHour");return e<o&&(e=o),e>=a&&(e=a-1),i.setHours(e,t,0,0),this.getCoordinatesByDate(i)},setCellDataCache:function(e,t,n){var i=this.getCellDataCache(),o=this.getCellData(n),a=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:t});i[a]=o},setCellDataCacheAlias:function(e,t){var n=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:e.groupIndex}),i=JSON.stringify({top:t.top,left:t.left}),o=this.getCellDataCache();o[n]&&(o[i]=o[n])},getCellDataCache:function(e){return this._cache||(this._cache={}),e?this._cache[e]:this._cache},_cleanCellDataCache:function(){delete this._cache},_cleanAllowedPositions:function(){delete this._maxAllowedVerticalPosition,delete this._maxAllowedPosition},supportAllDayRow:function(){return!0},keepOriginalHours:function(){return!1},getFocusedCellData:function(){var e=this._getAllFocusedCells(),t=[];if(e.length>1)t=this._getMultipleCellsData(e);else{var n=this.getCellData(e);n&&t.push(n)}return t},_getMultipleCellsData:function(e){for(var t=[],n=0;n<e.length;n++)t.push(r.data(e[n],Ie));return t},getCellData:function(e){var t=e[0]?r.data(e[0],Ie):void 0;return c(!0,{},t)},_getHorizontalMax:function(e){return e=this.option("groupByDate")?this._getGroupCount()-1:e,this._groupedStrategy.getHorizontalMax(e)},getCoordinatesByDate:function(e,t,n){t=t||0;var i=this.getCellIndexByDate(e,n),o=this._getCellPositionByIndex(i,t,n),a=this.getPositionShift(n?0:this.getTimeShift(e),n),r=this._getHorizontalMax(t,e);if(!o)throw C.Error("E1039");var s={cellPosition:o.left+a.cellPosition,top:o.top+a.top,left:o.left+a.left,rowIndex:o.rowIndex,cellIndex:o.cellIndex,hMax:r,vMax:this.getVerticalMax(t),groupIndex:t};return s},getVerticalMax:function(e){return this._groupedStrategy.getVerticalMax(e)},_getOffsetByAllDayPanel:function(e){return this._groupedStrategy._getOffsetByAllDayPanel(e)},_getGroupTop:function(e){return this._groupedStrategy._getGroupTop(e)},isGroupedByDate:function(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0},getCellIndexByDate:function(e,t){var n=t?864e5:this._getInterval(),i=this._getIntervalBetween(e,t),o=Math.floor(i/n);return t&&(o=this._updateIndex(o)),o<0&&(o=0),o},getPositionShift:function(e,t){return{top:e*this.getCellHeight(),left:0,cellPosition:0}},getTimeShift:function(e){var t=this.getCellDuration(),n=new Date(e);n.setHours(this.option("startDayHour"),0,0,0);var i=e.getTime(),o=n.getTime(),a=this._firstViewDate.getTime();return i>a?(i-o)%t/t:0},getCoordinatesByDateInGroup:function(e,t,n){var i=this._getGroupIndexes(t),o=[];if(i.length)for(var a=0;a<i.length;a++)o.push(this.getCoordinatesByDate(e,i[a],n));else o.push(this.getCoordinatesByDate(e,0,n));return o},getDroppableCellIndex:function(){var e=this._getDroppableCell(),t=e.parent(),n=t.index();return n*t.find("td").length+e.index()},getDataByDroppableCell:function(){var e=this.getCellData(this._getDroppableCell());return{date:e.startDate,allDay:e.allDay,groups:e.groups}},getDateRange:function(){return[this.getStartViewDate(),this.getEndViewDate()]},getCellWidth:function(){var e=this._getCells().first().get(0);return e&&e.getBoundingClientRect().width},getCellMinWidth:function(){return De},getRoundedCellWidth:function(e,t,n){if(e<0)return 0;var o=this.$element().find("."+this._getDateTableRowClass()).eq(0),a=0,r=o.find("."+ce),s=this._getCellCount()*e;n=n||this._getCellCount(),l.isDefined(t)||(t=s);for(var u=t;u<s+n;u++)a+=i(r).eq(u).get(0).getBoundingClientRect().width;return a/(s+n-t)},getCellHeight:function(){var e=this._getCells().first().get(0);return e&&e.getBoundingClientRect().height},getAllDayHeight:function(){var e=this._getCells(!0).first().get(0);return this.option("showAllDayPanel")?e&&e.getBoundingClientRect().height||0:0},getAllDayOffset:function(){return this._groupedStrategy.getAllDayOffset()},getMaxAllowedPosition:function(){if(!this._maxAllowedPosition){var e=this.option("rtlEnabled");this._maxAllowedPosition=[],this._$dateTable.find("tr").first().find("td:nth-child("+this._getCellCount()+"n)").each(function(t,n){var o=i(n).position().left;e||(o+=i(n).get(0).getBoundingClientRect().width),this._maxAllowedPosition.push(Math.round(o))}.bind(this))}return this._maxAllowedPosition},getMaxAllowedVerticalPosition:function(){if(!this._maxAllowedVerticalPosition){var e=this;this._maxAllowedVerticalPosition=[];var t=this._getRowCount();this._$dateTable.find("tr:nth-child("+t+"n)").each(function(t,n){var o=i(n).position().top+i(n).get(0).getBoundingClientRect().height;e._maxAllowedVerticalPosition.push(Math.round(o))})}return this._maxAllowedVerticalPosition},getFixedContainer:function(){return this._$fixedContainer},getAllDayContainer:function(){return this._$allDayContainer},getCellIndexByCoordinates:function(e,t){var n=this._getTotalCellCount(this._getGroupCount()),i=Math.floor(this._getWorkSpaceWidth()/n),o=t?this.getAllDayHeight():this.getCellHeight(),a=this._isRTL()||this.option("crossScrollingEnabled")?0:this.getWorkSpaceLeftOffset(),r=Math.floor(e.top/o),s=Math.floor((e.left+5-a)/i);return this._isRTL()&&(s=n-s-1),n*r+s},getStartViewDate:function(){return this._firstViewDate},getEndViewDate:function(){var e=this.getDateOfLastViewCell(),t=this.calculateEndViewDate(e);return this._adjustEndViewDateByDaylightDiff(e,t)},calculateEndViewDate:function(e){return new Date(e.getTime()+this.getCellDuration())},_adjustEndViewDateByDaylightDiff:function(e,t){var n=this.invoke("getDaylightOffset",e,t)*g("minute")||0,i=new Date(t.getTime()-n);return new Date(i.getTime()-g("minute"))},getDateOfLastViewCell:function(){var e=this._getRowCount()-1,t=this._getCellCount();return this.option("groupByDate")&&this._getGroupCount()>0?t=t*this._getGroupCount()-1:t-=1,this._getDateByCellIndexes(e,t,!0)},getCellDuration:function(){return 36e5*this.option("hoursInterval")},getIntervalDuration:function(e){return e?g("day"):this.getCellDuration()},getVisibleDayDuration:function(){return this.option("hoursInterval")*this._getCellCountInDay()*Ee},getGroupBounds:function(e){var t=this._getCellCount(),n=this._getCells(),i=this.getCellWidth(),o=this._groupedStrategy.getGroupBoundsOffset(t,n,i,e);if(this._isRTL()){var a=o.left;o.left=o.right-2*i,o.right=a+2*i}return o},needRecalculateResizableArea:function(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()},getCellDataByCoordinates:function(e,t){var n=JSON.stringify({top:e.top,left:e.left}),i=this.getCellDataCache(n);if(i)return i;var o=this._getCells(t),a=this.getCellIndexByCoordinates(e,t),r=o.eq(a);return this.getCellData(r)},getVisibleBounds:function(){var e={},t=this.getScrollable().$element(),n=this.getCellHeight(),i=this.getScrollableScrollTop()/n,o=i+t.height()/n;return e.top={hours:Math.floor(i*this.option("hoursInterval"))+this.option("startDayHour"),minutes:i%2?30:0},e.bottom={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(o)%2?30:0},e},updateScrollPosition:function(e){e=this.invoke("convertDateByTimezone",e);var t=this.getVisibleBounds(),n=e.getHours(),i=e.getMinutes();this.needUpdateScrollPosition(n,i,t,e)&&this.scrollToTime(n,i,e)},needUpdateScrollPosition:function(e,t,n){var i=!1;return(e<n.top.hours||e>n.bottom.hours)&&(i=!0),e===n.top.hours&&t<n.top.minutes&&(i=!0),e===n.bottom.hours&&t>n.top.minutes&&(i=!0),i},getGroupWidth:function(e){var t=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[e];return n.length&&i&&(t=this._isRTL()?i-n[e+1]:0===e?i:i-n[e-1]),t},restoreScrollTop:function(){this.$element().scrollTop(0)},scrollToTime:function(e,t,n){var i=this.getStartViewDate(),o=this.getEndViewDate();if(n<i||n>o)return void C.log("W1008",n);var a=this._getScrollCoordinates(e,t,n),r=this.getScrollable();r.scrollBy({top:a.top-r.scrollTop(),left:0})},getDistanceBetweenCells:function(e,t){var n=0;return this.$element().find("."+this._getDateTableRowClass()).first().find("."+ce).each(function(o){return o<e||o>t||void(n+=i(this).get(0).getBoundingClientRect().width)}),n},needApplyCollectorOffset:function(){return!1},initDragBehavior:function(e){!this.dragBehavior&&e&&(this.dragBehavior=new P(e),this.dragBehavior.addTo(this.getWorkArea()),this.dragBehavior.addTo(this.getAllDayContainer()),this.dragBehavior.addTo(this._$allDayPanel)),this._attachTablesEvents()},_isApplyCompactAppointmentOffset:function(){return this._supportCompactDropDownAppointments()},_supportCompactDropDownAppointments:function(){return!0},_formatWeekday:function(e){return Ae(e)},_formatWeekdayAndDay:function(e){return Ae(e)+" "+f.format(e,"day")}}).include(w);e.exports=Pe},function(e,t,n){var i=n(15),o=i.abstract,a="dx-scheduler-last-group-cell",r="dx-scheduler-first-group-cell",s=i.inherit({ctor:function(e){this._workSpace=e},getLastGroupCellClass:function(){return a},getFirstGroupCellClass:function(){return r},_getOffsetByAllDayPanel:function(){return 0},_getGroupTop:function(){return 0},prepareCellIndexes:o,calculateCellIndex:o,getGroupIndex:o,insertAllDayRowsIntoDateTable:o,getTotalCellCount:o,addAdditionalGroupCellClasses:o,getHorizontalMax:o,getVerticalMax:o,calculateTimeCellRepeatCount:o,getWorkSpaceMinWidth:o,getAllDayHeight:o,getGroupCountAttr:o,getLeftOffset:o,shiftIndicator:o,getShaderOffset:o,getShaderTopOffset:o,getShaderMaxHeight:o,getShaderWidth:o,getScrollableScrollTop:o});e.exports=s},function(e,t,n){var i=n(2),o=n(15),a="dx-scheduler-date-time-shader",r=o.inherit({render:function(e){var t=this;this._workspace=e,this._$container=e._dateTableScrollable.$content(),this._$shader=this._createShader(),this._shader=[],this._shader.push(this._$shader),this._renderShader(),this._$shader&&this._workspace.option("crossScrollingEnabled")&&(this._$shader.css("marginTop",-this._$container.get(0).getBoundingClientRect().height),this._$shader.css("height",this._$container.get(0).getBoundingClientRect().height)),this._shader.forEach(function(e,n){t._$container.append(e)})},_createShader:function(){return i("<div>").addClass(a)},clean:function(){this._$container&&this._$container.find("."+a).remove()}});e.exports=r},function(e,t,n){var i=n(2),o=n(9),a=n(22),r=n(32),s=n(3).each,l=n(203),u="dx-scheduler-work-space-week",d=a.dateToMilliseconds,c=l.inherit({_getElementClass:function(){return u},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return 7*this.option("intervalCount")},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_getStartViewDate:function(){return a.getFirstWeekDate(this.option("startDate"),this._firstDayOfWeek()||r.firstDayOfWeekIndex())},_getIntervalDuration:function(){return 7*d("day")*this.option("intervalCount")},_getCellsBetween:function(e,t){if(this._hasAllDayClass(t))return this.callBase(e,t);for(var n=this._getCells(),o=e.index(),a=e.parent().index(),r=t.index(),l=t.parent().index(),u=this._getGroupCount(),d=u>0?this._getTotalCellCount(u):this._getCellCount(),c=this._getTotalRowCount(u),h=[],p=0;p<d;p++)for(var f=0;f<c;f++){var g=n.get(d*f+p);h.push(g)}var _=this.getCellData(t).groups,m=this.option("showAllDayPanel")&&this._isVerticalGroupedWorkSpace()?this._getGroupIndexByResourceId(_)+1:0,v=c*o+a-m,y=c*r+l-m;if(v>y){var w=v;v=y,y=w}if(n=i(h).slice(v,y+1),this._getGroupCount()){var x=[],b=this._getGroupIndexByCell(e);s(n,function(e,t){var n=this._getGroupIndexByCell(i(t));b===n&&x.push(t)}.bind(this)),n=i(x)}return n},_getRightCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?0:o-1,r=this._isRTL()?"prev":"next";return n.index()===a||this._isGroupEndCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t},_getLeftCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?o-1:0,r=this._isRTL()?"next":"prev";return n.index()===a||this._isGroupStartCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t},getPositionShift:function(e,t){return!t&&this.invoke("isAdaptive")&&0===this.invoke("getMaxAppointmentCountPerCellByType")?{top:0,left:0,cellPosition:0}:this.callBase(e,t)},_isApplyCompactAppointmentOffset:function(){return(!this.invoke("isAdaptive")||0!==this.invoke("getMaxAppointmentCountPerCellByType"))&&this.callBase()}});o("dxSchedulerWorkSpaceWeek",c),e.exports=c},function(e,t,n){var i=n(9),o=n(268),a="dx-scheduler-timeline-week",r="dx-scheduler-header-row",s=o.inherit({_getElementClass:function(){return a},_getCellCount:function(){return this.callBase()*this._getWeekDuration()},_setTableSizes:function(){this.callBase();var e=this.getCellWidth(),t=this.getWorkSpaceMinWidth(),n=this.$element().find("."+r).last().find("th"),i=e*n.length;i<t&&(i=t),this._$headerPanel.width(i)},_getHeaderPanelCellWidth:function(e){return e.children().first().get(0).getBoundingClientRect().width},_getWeekDuration:function(){return 7},_needRenderWeekHeader:function(){return!0},_incrementDate:function(e){e.setDate(e.getDate()+1)}});i("dxSchedulerTimelineWeek",s),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1),s=i(r),l=24,u=3,d=22,c=1,h=40,p=75,f=50,g=function(){function e(t){o(this,e),this._renderingStrategy=t}return a(e,[{key:"getRenderingStrategy",value:function(){return this._renderingStrategy}},{key:"getDropDownAppointmentWidth",value:function(e,t){return t||!s.default.isDefined(t)?p*this.getRenderingStrategy().getDefaultCellWidth()/100:l}},{key:"getCompactAppointmentTopOffset",value:function(){return u}},{key:"getCompactAppointmentLeftOffset",value:function(){return u}},{key:"getAppointmentDefaultOffset",value:function(){return this.getRenderingStrategy()._isCompactTheme()?d:this.getRenderingStrategy().instance.option("_appointmentOffset")}},{key:"getDynamicAppointmentCountPerCell",value:function(){var e=this.getRenderingStrategy(),t=e.instance.fire("getCellHeight"),n=Math.floor((t-e._getAppointmentDefaultOffset())/e._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return e.hasAllDayAppointments()?{allDay:"vertical"===e.instance._groupOrientation?n:e.instance.option("_appointmentCountPerCell"),simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:n}},{key:"getDropDownAppointmentHeight",value:function(){}},{key:"_getAppointmentMinCount",value:function(){return c}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/f)}},{key:"_getAppointmentDefaultWidth",value:function(){return h}}]),e}();e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(269),d=i(u),c=n(22),h=i(c),p=100,f=60,g=35,_=2,m=20,v=h.default.dateToMilliseconds,y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_needVerifyItemSize",value:function(){return!0}},{key:"calculateAppointmentWidth",value:function(e,t,n){var i,o=this.getDefaultCellWidth()||this.getAppointmentMinSize(),a=this.instance.fire("getField","allDay",e),r=this.startDate(e,!1,t),s=this.endDate(e,t,n),l=this._getAppointmentDurationInMs(r,s,a);l=this._adjustDurationByDaylightDiff(l,r,s);var u=this.instance.getAppointmentDurationInMinutes()*v("minute"),d=l/u;return i=d*o,i=this.cropAppointmentWidth(i,o)}},{key:"_needAdjustDuration",value:function(e){return e<0}},{key:"getAppointmentGeometry",value:function(e){var n=this._customizeAppointmentGeometry(e);return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getAppointmentGeometry",this).call(this,n)}},{key:"_customizeAppointmentGeometry",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell");if(t){var n=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,n.height,n.appointmentCountPerCell,n.offset)}var i=(this.getDefaultCellHeight()||this.getAppointmentMinSize())-m,o=i/e.count;o>p&&(o=p);var a=e.top+e.index*o;return{height:o,width:e.width,top:a,left:e.left}}},{key:"_getOffsets",value:function(){return{unlimited:0,auto:0}}},{key:"_checkLongCompactAppointment",value:function(e,t){var n=this.instance.fire("getMaxAppointmentsPerCell");if(n)return this._splitLongCompactAppointment(e,t),t}},{key:"_getCompactLeftCoordinate",value:function(e,t){var n=this.getDefaultCellWidth()||this.getAppointmentMinSize();return e+n*t}},{key:"_getMaxHeight",value:function(){return this.getDefaultCellHeight()||this.getAppointmentMinSize()}},{key:"_getAppointmentCount",value:function(e,t){return this._getMaxAppointmentCountPerCellByType(!1)}},{key:"_getAppointmentDefaultHeight",value:function(){return f}},{key:"_getAppointmentMinHeight",value:function(){return g}},{key:"_sortCondition",value:function(e,t){var n=this._columnCondition(e,t);return this._fixUnstableSorting(n,e,t)}},{key:"_getMaxAppointmentWidth",value:function(e){var t;return this.instance.fire("getMaxAppointmentWidth",{date:e,callback:function(e){t=e}}),t}},{key:"getDropDownAppointmentWidth",value:function(){return this.getDefaultCellWidth()-2*_}},{key:"getDeltaTime",value:function(e,t){var n=0,i=e.width-t.width;return n=v("minute")*Math.round(i/this.getDefaultCellWidth()*this.instance.getAppointmentDurationInMinutes())}},{key:"isAllDay",value:function(e){return this.instance.fire("getField","allDay",e)}},{key:"needSeparateAppointment",value:function(){return this.instance.fire("isGroupedByDate")}}]),t}(d.default);e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(399),d=i(u),c=n(22),h=i(c),p=n(42),f=i(p),g=24,_=60,m=6e4,v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"calculateAppointmentWidth",value:function(e,t,n){var i=new Date(this.startDate(e,!1,t)),o=new Date(this.endDate(e,t,n)),a=this.getDefaultCellWidth()||this.getAppointmentMinSize();i=h.default.trimTime(i);var r=Math.ceil(this._getDurationInHour(i,o)/g)*a;return r=this.cropAppointmentWidth(r,a)}},{key:"_getDurationInHour",value:function(e,t){var n=this._adjustDurationByDaylightDiff(t.getTime()-e.getTime(),e,t);return n/h.default.dateToMilliseconds("hour")}},{key:"getDeltaTime",value:function(e,t){return g*_*m*this._getDeltaWidth(e,t)}},{key:"isAllDay",value:function(){return!1}},{key:"createTaskPositionMap",value:function(e,n){return n||this.instance.getAppointmentsInstance()._sortAppointmentsByStartDate(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createTaskPositionMap",this).call(this,e)}},{key:"_getSortedPositions",value:function(e,n){var i=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getSortedPositions",this).call(this,e);return n||(i=(0,f.default)(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i}},{key:"needCorrectAppointmentDates",value:function(){return!1}}]),t}(d.default);e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{
value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(14),u=n(4),d=n(18),c=n(34),h=i(c),p=n(1),f=i(p),g=n(37),_=n(164),m=n(204),v=n(165),y=function(e){function t(e){o(this,t),e=(0,u.ensureDefined)(e,{});var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=e.data;if(i&&!Array.isArray(i))throw g.errors.Error("E4006");var r=e.itemsExpr||"items";n._subFileItemsGetter=(0,d.compileGetter)(r),n._subFileItemsSetter=n._getSetter(r);var s=n._getNameExpr(e);n._nameSetter=n._getSetter(s);var l=n._getIsDirExpr(e);n._getIsDirSetter=n._getSetter(l);var c=n._getKeyExpr(e);return n._keySetter=n._getSetter(c),n._data=i||[],n}return r(t,e),s(t,[{key:"getItems",value:function(e){return this._getItems(e)}},{key:"renameItem",value:function(e,t){e&&(this._nameSetter(e.dataItem,t),e.name=t,e.key=this._ensureDataObjectKey(e.dataItem))}},{key:"createFolder",value:function(e,t){if(!this._isFileItemExists(e)||this._isDirGetter(e.fileItem))throw{errorId:m.ErrorCode.DirectoryNotFound,fileItem:e};var n={};this._nameSetter(n,t),this._getIsDirSetter(n,!0),this._keySetter(n,String(new h.default));var i=this._getDirectoryDataItems(e.dataItem);i.push(n),this._updateHasSubDirs(e)}},{key:"deleteItems",value:function(e){var t=this;e.forEach(function(e){return t._deleteItem(e)})}},{key:"moveItems",value:function(e,t){var n=this,i=this._getDirectoryDataItems(t.dataItem);e.forEach(function(e){n._checkAbilityToMoveOrCopyItem(e,t),n._deleteItem(e),i.push(e.dataItem)}),this._updateHasSubDirs(t)}},{key:"copyItems",value:function(e,t){var n=this,i=this._getDirectoryDataItems(t.dataItem);e.forEach(function(e){n._checkAbilityToMoveOrCopyItem(e,t);var o=n._createCopy(e.dataItem);i.push(o)}),this._updateHasSubDirs(t)}},{key:"_checkAbilityToMoveOrCopyItem",value:function(e,t){var n=this,i=this._getKeyFromDataObject(e.dataItem,e.parentPath),o=t.getFullPathInfo(),a="";o.forEach(function(t){a=(0,v.pathCombine)(a,t.name);var o=n._getDataObjectKey(t.key,a);if(o===i)throw{errorId:m.ErrorCode.Other,fileItem:e}})}},{key:"_createCopy",value:function(e){var t=this,n={};this._nameSetter(n,this._nameGetter(e)),this._getIsDirSetter(n,this._isDirGetter(e));var i=this._subFileItemsGetter(e);if(Array.isArray(i)){var o=[];i.forEach(function(e){var n=t._createCopy(e);o.push(n)}),this._subFileItemsSetter(n,o)}return n}},{key:"_deleteItem",value:function(e){var t=this._findFileItemObj(e.getFullPathInfo());if(!t)throw{errorId:e.isDirectory?m.ErrorCode.DirectoryNotFound:m.ErrorCode.FileNotFound,fileItem:e};var n=this._findFileItemObj(e.pathInfo),i=this._getDirectoryDataItems(n),o=i.indexOf(t);i.splice(o,1)}},{key:"_getDirectoryDataItems",value:function(e){if(!e)return this._data;var t=this._subFileItemsGetter(e);return Array.isArray(t)||(t=[],this._subFileItemsSetter(e,t)),t}},{key:"_getItems",value:function(e){var t=e&&e.length>0?e[e.length-1].key:null,n=this._data;if(t){var i=this._findFileItemObj(e);n=i&&this._subFileItemsGetter(i)||[]}return this._ensureKeysForDuplicateNameItems(n),this._convertDataObjectsToFileItems(n,e)}},{key:"_ensureKeysForDuplicateNameItems",value:function(e){var t=this,n={};e.forEach(function(e){var i=t._nameGetter(e);n[i]?t._ensureDataObjectKey(e):n[i]=!0})}},{key:"_findFileItemObj",value:function(e){var t=this;Array.isArray(e)||(e=[]);for(var n="",i=null,o=this._data,a=function(a){i=(0,l.find)(o,function(i){var o=t._isDirGetter(i)||a===e.length-1;return t._getKeyFromDataObject(i,n)===e[a].key&&t._nameGetter(i)===e[a].name&&o}),i&&(n=(0,v.pathCombine)(n,t._nameGetter(i)),o=t._subFileItemsGetter(i))},r=0;r<e.length&&(0===r||i);r++)a(r);return i}},{key:"_getKeyFromDataObject",value:function(e,t){var n=this._keyGetter(e),i=(0,v.pathCombine)(t,this._nameGetter(e));return this._getDataObjectKey(n,i)}},{key:"_getDataObjectKey",value:function(e,t){return e?e:t}},{key:"_ensureDataObjectKey",value:function(e){var t=this._keyGetter(e);return t||(t=String(new h.default),this._keySetter(e,t)),t}},{key:"_updateHasSubDirs",value:function(e){e&&!e.isRoot&&(e.hasSubDirs=this._hasSubDirs(e.dataItem))}},{key:"_hasSubDirs",value:function(e){var t=(0,u.ensureDefined)(this._subFileItemsGetter(e),[]);if(!Array.isArray(t))return!0;for(var n=0;n<t.length;n++)if(this._isDirGetter(t[n])===!0)return!0;return!1}},{key:"_getSetter",value:function(e){return f.default.isFunction(e)?e:(0,d.compileSetter)(e)}},{key:"_isFileItemExists",value:function(e){return e.isDirectory&&e.isRoot||!!this._findFileItemObj(e.getFullPathInfo())}}]),t}(_.FileProvider);e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(5),h=i(c),p=n(0),f=n(56),g=n(4),_=n(17),m=i(_),v=n(357),y=i(v),w=n(403),x=i(w),b=n(6),C="dx-filemanager-dirs-tree",k="dx-filemanager-focused-item",I="dx-filemanager-dirs-tree-item-text",S="dx-treeview-item",D=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;this._getCurrentDirectory=this.option("getCurrentDirectory"),this._createFileActionsButton=g.noop,this._storeExpandedState=this.option("storeExpandedState")||!1;var t=(0,d.default)("<div>").addClass(C).appendTo(this.$element()),n={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateSubDirectories.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),keyExpr:"fileItem.key",parentIdExpr:"parentDirectory.fileItem.key",displayExpr:"fileItem.name",hasItemsExpr:"fileItem.hasSubDirs",onItemClick:this._createActionByOption("onDirectoryClick"),onItemExpanded:function(t){return e._onFilesTreeViewItemExpanded(t)},onItemCollapsed:function(t){return e._onFilesTreeViewItemCollapsed(t)},onItemRendered:function(t){return e._onFilesTreeViewItemRendered(t)}};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",function(){return e._onContextMenuHidden()}),n.onItemContextMenu=function(t){return e._onFilesTreeViewItemContextMenu(t)},this._createFileActionsButton=function(t,n){return e._createComponent(t,x.default,n)}),this._filesTreeView=this._createComponent(t,y.default,n),h.default.on(t,"click",this._createActionByOption("onClick"))}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this);var e=this;setTimeout(function(){e._updateFocusedElement()})}},{key:"_onFilesTreeViewCreateSubDirectories",value:function(e){var t=this.option("getDirectories"),n=e&&e.itemData||null;return t&&t(n)}},{key:"_onFilesTreeViewItemRendered",value:function(e){var t=e.itemData,n=this._getCurrentDirectory();n&&n.fileItem.equals(t.fileItem)&&this._updateFocusedElement()}},{key:"_onFilesTreeViewItemExpanded",value:function(e){var t=e.itemData,n=e.node;this._storeExpandedState&&(t.expanded=!0),n.expandedDeferred&&(n.expandedDeferred.resolve(),delete n.expandedDeferred)}},{key:"_onFilesTreeViewItemCollapsed",value:function(e){var t=e.itemData;this._storeExpandedState&&(t.expanded=!1)}},{key:"_createFilesTreeViewItemTemplate",value:function(e,t,n){var i=this,o=(0,d.default)(n),a=o.closest(this._filesTreeViewItemSelector);a.data("item",e);var r=(0,f.getImageContainer)(e.icon),s=(0,d.default)("<span>").text(e.fileItem.name).addClass(I),l=(0,d.default)("<div>");o.append(r,s,l),this._createFileActionsButton(l,{onClick:function(e){return i._onFileItemActionButtonClick(e)}})}},{key:"_onFilesTreeViewItemContextMenu",value:function(e){var t=e.itemElement,n=e.event;n.preventDefault();var i=(0,d.default)(t).data("item");this._contextMenu.showAt([i],t,n)}},{key:"_onFileItemActionButtonClick",value:function(e){var t=e.component,n=e.element,i=e.event;i.stopPropagation();var o=t.$element().closest(this._filesTreeViewItemSelector),a=o.data("item");this._contextMenu.showAt([a],n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_updateFocusedElement",value:function(){var e=this._getCurrentDirectory(),t=this._getItemElementByKey(e.fileItem.key);this._$focusedElement&&this._$focusedElement.toggleClass(k,!1),this._$focusedElement=t||(0,d.default)(),this._$focusedElement.toggleClass(k,!0)}},{key:"_getItemElementByKey",value:function(e){var t=this._filesTreeView&&this._filesTreeView._dataAdapter.getNodeByKey(e);if(t){var n=this._filesTreeView._getNodeElement(t);if(n)return n.children(this._filesTreeViewItemSelector)}return null}},{key:"_getDefaultOptions",value:function(){return(0,p.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{storeExpandedState:!1,initialFolder:null,contextMenu:null,getItems:null,getCurrentDirectory:null,onDirectoryClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"storeExpandedState":this._storeExpandedState=this.option(n);break;case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"getCurrentDirectory":this.getCurrentDirectory=this.option(n);break;case"onDirectoryClick":this._filesTreeView.option("onItemClick",this._createActionByOption("onDirectoryClick"));break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"expandDirectory",value:function(e){var t=new b.Deferred;if(!e||0===e.items.length)return t.reject().promise();var n=this._filesTreeView._dataAdapter.getNodeByKey(e.fileItem.key);return n?n.expanded?t.resolve().promise():(n.expandedDeferred=t,this._filesTreeView.expandItem(e.fileItem.key),t.promise()):t.reject().promise()}},{key:"refresh",value:function(){this._$focusedElement=null,this._filesTreeView.option("dataSource",[])}},{key:"updateCurrentDirectory",value:function(){this._updateFocusedElement(),this._storeExpandedState&&this._updateExpandedStateToCurrentDirectory()}},{key:"_updateExpandedStateToCurrentDirectory",value:function(){for(var e=[],t=this._getCurrentDirectory();t;t=t.parentDirectory)e.unshift(t);this.expandDirectoryLineRecursive(e)}},{key:"expandDirectoryLineRecursive",value:function(e){var t=this;return e.length?this.expandDirectory(e.shift()).then(function(){return t.expandDirectoryLineRecursive(e)}):(new b.Deferred).resolve().promise()}},{key:"_filesTreeViewItemSelector",get:function(){return"."+S}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(m.default);e.exports=D},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(17),p=i(h),f=n(35),g=i(f),_="dx-filemanager-file-actions-button",m="dx-filemanager-file-actions-button-activated",v="dx-state-active",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;this._createClickAction();var n=(0,d.default)("<div>");this.$element().append(n).addClass(_),this._button=this._createComponent(n,g.default,{text:"&vellip;",stylingMode:"text",onClick:function(t){return e._raiseClick(t)},template:function(){return(0,d.default)("<i>").html("&vellip;")}}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_createClickAction",value:function(){this._clickAction=this._createActionByOption("onClick")}},{key:"_raiseClick",value:function(e){this._clickAction(e)}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{cssClass:"",onClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"setActive",value:function(e){var t=this;this.$element().toggleClass(m,e),setTimeout(function(){return t._button.$element().toggleClass(v,e)})}}]),t}(p.default);e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(0),d=n(135),c=n(8),h=n(5),p=i(h),f=n(56),g=n(17),_=i(g),m="dx-filemanager-files-view",v="dxFileManager_open",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){this._initActions(),this.$element().addClass(m);var e=(0,c.addNamespace)(d.name,v);p.default.on(this.$element(),e,this._getItemSelector(),this._onItemDblClick.bind(this)),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_initActions",value:function(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened")}}},{key:"_getDefaultOptions",value:function(){return(0,u.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{selectionMode:"single",contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onSelectedItemOpened:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_getItems",value:function(){var e=this.option("getItems");return e?e():[]}},{key:"_raiseOnError",value:function(e){this._actions.onError({error:e})}},{key:"_raiseSelectionChanged",value:function(){this._actions.onSelectionChanged()}},{key:"_raiseSelectedItemOpened",value:function(e){this._actions.onSelectedItemOpened({fileItemInfo:e})}},{key:"_getItemThumbnail",value:function(e){var t=this.option("getItemThumbnail");return t?t(e):{thumbnail:""}}},{key:"_getItemThumbnailContainer",value:function(e){var t=this._getItemThumbnail(e),n=t.thumbnail,i=t.cssClass,o=(0,f.getImageContainer)(n).addClass(this._getItemThumbnailCssClass());return i&&o.addClass(i),o}},{key:"_getItemThumbnailCssClass",value:function(){return""}},{key:"_getItemSelector",value:function(){}},{key:"_onItemDblClick",value:function(e){}},{key:"_showContextMenu",value:function(e,t,n){this._contextMenu.showAt(e,t,n)}},{key:"refresh",value:function(){}},{key:"getSelectedItems",value:function(){}},{key:"clearSelection",value:function(){}},{key:"selectItem",value:function(){}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(_.default);e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(17),p=i(h),f=n(44),g=i(f),_="dx-filemanager-dialog",m="dx-filemanager-dialog-popup",v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._createOnClosedAction();var e=this._getDialogOptions(),n=(0,d.default)("<div>").addClass(m).appendTo(this.$element());e.popupCssClass&&n.addClass(e.popupCssClass),this._popup=this._createComponent(n,g.default,{showTitle:!0,title:e.title,visible:!1,closeOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:e.buttonText,onClick:this._applyDialogChanges.bind(this)}}],onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this)})}},{key:"show",value:function(){this._dialogResult=null,this._popup.show()}},{key:"_getDialogOptions",value:function(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}},{key:"_createContentTemplate",value:function(e){this._$contentElement=(0,d.default)("<div>").appendTo(e).addClass(_);var t=this._getDialogOptions().contentCssClass;t&&this._$contentElement.addClass(t)}},{key:"_getDialogResult",value:function(){return null}},{key:"_applyDialogChanges",value:function(){var e=this._getDialogResult();e&&(this._dialogResult=e,this._popup.hide())}},{key:"_onPopupHidden",value:function(){this._onClosedAction({dialogResult:this._dialogResult})}},{key:"_onPopupShown",value:function(){}},{key:"_createOnClosedAction",value:function(){this._onClosedAction=this._createActionByOption("onClosed")}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{onClosed:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"onClosed":this._createOnPathChangedAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(p.default);e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(17),h=i(c),p=n(12),f=i(p),g=n(5),_=i(g),m=n(23),v=i(m),y=n(8),w=n(1),x="dx-splitter",b=x+"-wrapper",C=x+"-transparent",k=x+"-border",I=x+"-initial",S="dx-state-disabled",D="dxSplitterResizing",T=(0,y.addNamespace)(v.default.down,D),E=(0,y.addNamespace)(v.default.move,D),O=(0,y.addNamespace)(v.default.up,D),A=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this._onApplyPanelSize=this._createActionByOption("onApplyPanelSize"),this.$element().addClass(b).addClass(I),this._$splitterBorder=(0,d.default)("<div>").addClass(k).appendTo(this.$element()),this._$splitter=(0,d.default)("<div>").addClass(x).addClass(C).appendTo(this._$splitterBorder)}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._detachEventHandlers(),this._attachEventHandlers()}},{key:"_clean",value:function(){this._detachEventHandlers(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_attachEventHandlers",value:function(){var e=f.default.getDocument();_.default.on(this._$splitter,T,this._onMouseDownHandler.bind(this)),_.default.on(e,E,this._onMouseMoveHandler.bind(this)),_.default.on(e,O,this._onMouseUpHandler.bind(this))}},{key:"_detachEventHandlers",value:function(){var e=f.default.getDocument();_.default.off(this._$splitter,T),_.default.off(e,E),_.default.off(e,O)}},{key:"_dimensionChanged",value:function(){if(void 0===this._leftPanelPercentageWidth){var e=this._$leftElement.get(0).clientWidth;this._leftPanelPercentageWidth=this._convertLeftPanelWidthToPercentage(e)}var t=100-this._leftPanelPercentageWidth;this._onApplyPanelSize({leftPanelWidth:this._leftPanelPercentageWidth+"%",rightPanelWidth:t+"%"}),this.setSplitterPositionLeft(this._$leftElement.get(0).clientWidth)}},{key:"_onMouseDownHandler",value:function(e){e.preventDefault(),this.$element().removeClass(I),this._$splitter.removeClass(C),this._offsetX=e.offsetX<=this._$splitterBorder.get(0).clientWidth?e.offsetX:0,this._isSplitterActive=!0,this._containerWidth=this._$container.get(0).clientWidth,this.setSplitterPositionLeft(this._getNewSplitterPositionLeft(e))}},{key:"_onMouseMoveHandler",value:function(e){if(this._isSplitterActive){var t=this._getNewSplitterPositionLeft(e),n=t,i=this._containerWidth-n;this.setSplitterPositionLeft(t),this._onApplyPanelSize({leftPanelWidth:n,rightPanelWidth:i}),this._leftPanelPercentageWidth=this._convertLeftPanelWidthToPercentage(n)}}},{key:"_onMouseUpHandler",value:function(){this._isSplitterActive&&(this._$splitter.addClass(C),this._isSplitterActive=!1)}},{key:"_getNewSplitterPositionLeft",value:function(e){var t=e.pageX-this._$container.offset().left-this._offsetX;return t=Math.max(0,t),t=Math.min(this._containerWidth-this._$splitterBorder.get(0).clientWidth,t)}},{key:"_isDomElement",value:function(e){return e&&e.nodeType&&1===e.nodeType}},{key:"_isPercentValue",value:function(e){return(0,w.isString)(e)&&"%"===e.slice(-1)}},{key:"toggleState",value:function(e){var t=e?"removeClass":"addClass";this.$element()[t](S),this._$splitter[t](S)}},{key:"isSplitterMoved",value:function(){return!this.$element().hasClass(I)}},{key:"setSplitterPositionLeft",value:function(e){this.$element().css("left",e)}},{key:"_optionChanged",value:function(e){switch(e.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertLeftPanelWidthToPercentage(e.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_convertLeftPanelWidthToPercentage",value:function(e){return e/this._$container.get(0).clientWidth*100}}]),t}(h.default);t.default=A},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(112),d=i(u),c=n(83),h=i(c),p=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._diagramWidget=e,n._resetCache(),n}return r(t,e),l(t,[{key:"_dataSourceChangedHandler",value:function(e,t){this._items=e,this._diagramWidget._onDataSourceChanged()}},{key:"_dataSourceLoadingChangedHandler",value:function(e){e&&!this._dataSource.isLoaded()?this._diagramWidget._showLoadingIndicator():this._diagramWidget._hideLoadingIndicator()}},{key:"insert",value:function(e,t,n){var i=this;this._resetCache(),this._getStore().insert(e).done(function(e){t&&t(e),i._resetCache()}).fail(function(e){n&&n(e),i._resetCache()})}},{key:"update",value:function(e,t,n,i){var o=this._getStoreKey(t);this._getStore().update(o,t).done(function(e,t){n&&n(t,e)}).fail(function(e){i&&i(e)})}},{key:"remove",value:function(e,t,n,i){var o=this;this._resetCache();var a=this._getStoreKey(t);this._getStore().remove(a).done(function(e){n&&n(e,t),o._resetCache()}).fail(function(e){i&&i(e),o._resetCache()})}},{key:"findItem",value:function(e){if(!this._items)return null;var t=this._getIndexByKey(e);return this._items[t]}},{key:"getItems",value:function(){return this._items}},{key:"hasItems",value:function(){return!!this._items}},{key:"_getIndexByKey",value:function(e){var t=this._cache,n=t.keys||this._getKeys()||[];if(t.keys||(t.keys=n),"object"!==("undefined"==typeof e?"undefined":s(e))){var i=t.set||n.reduce(function(e,t,n){return e[t]=n,e},{});return t.set||(t.set=i),i[e]}for(var o=0,a=n.length;o<a;o++)if(n[o]===e)return o;return-1}},{key:"_getKeys",value:function(){if(!this._items)return[];var e=this._getKeyExpr();return e&&this._items&&this._items.map(function(t){return e(t)})}},{key:"_getKeyExpr",value:function(){throw"Not Implemented"}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_getStore",value:function(){return this._dataSource.store()}},{key:"_getStoreKey",value:function(e){return this._getStore().keyOf(e)}},{key:"_resetCache",value:function(){this._cache={}}}]),t}(d.default);p.include(h.default),e.exports=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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(15),r=i(a),s=n(7),l=n(1),u=n(0),d=n(19),c=i(d),h=n(45),p=i(h),f=n(440),g=i(f),_=n(187),m=i(_),v=n(182),y=i(v),w=n(447),x=i(w),b=n(6),C='<?xml version="1.0" encoding="utf-8"?>',k='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',I="<sheetPr/>",S='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',D="http://schemas.openxmlformats.org",T="rels",E="xl",O="workbook.xml",A="[Content_Types].xml",P="sharedStrings.xml",B="styles.xml",M="worksheets",F="sheet1.xml",R='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',V={"boolean":"b",date:"d",number:"n",string:"s"},H=Date.UTC(1899,11,30),L=60,z=7,$={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},N=r.default.inherit({_getXMLTag:function(e,t,n){var i,o,a="<"+e,r=t.length;for(i=0;i<r;i++)o=t[i],void 0!==o.value&&(a=a+" "+o.name+'="'+o.value+'"');return(0,l.isDefined)(n)?a+">"+n+"</"+e+">":a+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,o="",a=26;!i;)n=65+(t>=a?t%a:Math.ceil(t)),o=String.fromCharCode(n)+o,t>=a?t=Math.floor(t/a)-1:i=!0;return o+(e+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex<Number(e)&&(this._maxRowIndex=Number(e)),this._maxColumnIndex<Number(t)&&(this._maxColumnIndex=Number(t)),
this._convertToExcelCellRef(e,t)},_getDataType:function(e){return V[e]||V.string},_tryGetExcelCellDataType:function(e){if((0,l.isDefined)(e)){if("number"==typeof e)return isFinite(e)?V.number:V.string;if((0,l.isString)(e))return V.string;if((0,l.isDate)(e))return V.number;if((0,l.isBoolean)(e))return V.boolean}},_formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return(0,l.isObject)(e)?(0,u.extend)(n,e,{format:e.formatter||e.type,currency:e.currency}):n},_tryConvertToExcelNumberFormat:function(e,t){var n,i=this._formatObjectConverter(e,t);return e=i.format,n=i.currency,t=i.dataType,(0,l.isDefined)(e)&&"date"===t&&(e=$[e&&e.type||e]||e),y.default.convertFormat(e,i.precision,t,n)},_appendString:function(e){if((0,l.isDefined)(e)&&(e=String(e),e.length))return e=p.default.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_tryGetExcelDateValue:function(e){var t,n;if((0,l.isDate)(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-H)/864e5),t<L&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n,i=this._dataProvider,o=i.getCellData(e,t)||{},a=o.value,r=o.cellSourceData,s=this._getDataType(i.getCellType(e,t));switch(s!==V.date||(0,l.isDate)(a)||(s=V.string),s){case V.string:n=a,a=this._appendString(a);break;case V.date:n=a,a=this._tryGetExcelDateValue(a),s=V.number}return{value:a,type:s,sourceValue:n,cellSourceData:r}},_callCustomizeExcelCell:function(e){var t=e.dataProvider,n=e.value,i=e.style,o=e.sourceData,a=x.default.copyCellFormat(i),r={value:n,numberFormat:a.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};(0,l.isDefined)(a)&&((0,l.isDefined)(a.alignment)&&(r.horizontalAlignment=a.alignment.horizontal,r.verticalAlignment=a.alignment.vertical,r.wrapTextEnabled=a.alignment.wrapText),r.backgroundColor=a.backgroundColor,r.fillPatternType=a.fillPatternType,r.fillPatternColor=a.fillPatternColor,r.font=a.font),t.customizeExcelCell(r,o);var s=a||{};return s.font=r.font,s.alignment=s.alignment||{},s.alignment.horizontal=r.horizontalAlignment,s.alignment.vertical=r.verticalAlignment,s.alignment.wrapText=r.wrapTextEnabled,s.backgroundColor=r.backgroundColor,s.fillPatternType=r.fillPatternType,s.fillPatternColor=r.fillPatternColor,s.numberFormat=r.numberFormat,{value:r.value,style:s}},_getDataArray:function(){var e,t,n,i,a,r=this,s=[],u=r._dataProvider,d=u.getRowsCount(),c=u.getColumns();for(e=0;e<d;e++){for(n=[],a=c.length,t=0;t!==a;t++){i=r._prepareValue(e,t);var h=u.getStyleId(e,t),p=this._styleArrayIndexToCellStyleIdMap[h];if(u.hasCustomizeExcelCell&&u.hasCustomizeExcelCell()){var f=i.sourceValue||i.value,g=this._callCustomizeExcelCell({dataProvider:u,value:f,style:r._styleArray[h],sourceData:i.cellSourceData});if(g.value!==f){if(o(g.value)!==("undefined"==typeof f?"undefined":o(f))||"number"==typeof g.value&&!isFinite(g.value)){var _=this._tryGetExcelCellDataType(g.value);(0,l.isDefined)(_)&&(i.type=_)}switch(i.type){case V.string:i.value=this._appendString(g.value);break;case V.date:i.value=g.value;break;case V.number:var m=g.value,v=this._tryGetExcelDateValue(m);(0,l.isDefined)(v)&&(m=v),i.value=m;break;default:i.value=g.value}}p=this._excelFile.registerCellFormat(g.style)}n.push({style:p,value:i.value,type:i.type})}!r._needSheetPr&&u.getGroupLevel(e)>0&&(r._needSheetPr=!0),s.push(n)}return s},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/z*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(e){t._colsArray.push(t._calculateWidth(e.width))});var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach(function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);(0,l.isDefined)(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})}),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map(function(t){return e._excelFile.registerCellFormat(t)})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:D+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:D+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return C+this._getXMLTag("workbook",[{name:"xmlns:r",value:D+"/officeDocument/2006/relationships"},{name:"xmlns",value:D+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return C+'<Types xmlns="'+D+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e=this,t=e._zip.folder(E),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+=S,n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=C+e._getXMLTag("styleSheet",[{name:"xmlns",value:D+"/spreadsheetml/2006/main"}],n),t.file(B,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(E),n=this._stringArray.length,i=C;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:D+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(P,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(t.y,t.x)}),this._getXMLTag("pane",e)):""},_getAutoFilterXML:function(e){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+e+'" />':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+e+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var e,t,n,i,o,a,r=[],s=this._cellsArray.length,u=this._colsArray.length,d="1:"+u,c=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,h=[R];for(h.push(this._needSheetPr?k:I),h.push('<dimension ref="A1:C1"/>'),h.push("<sheetViews><sheetView "),h.push(this._rtlEnabled?'rightToLeft="1" ':""),h.push('tabSelected="1" workbookViewId="0">'),h.push(this._getPaneXML()),h.push("</sheetView></sheetViews>"),h.push('<sheetFormatPr defaultRowHeight="15"'),h.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),h.push(' x14ac:dyDescent="0.25"/>'),e=0;e<u;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(h.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<s;t++){for(i=[],a=this._cellsArray[t].length,e=0;e<a;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(t,e)},{name:"s",value:n.style},{name:"t",value:n.type}],(0,l.isDefined)(n.value)?this._getXMLTag("v",[],n.value):null));r.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:d},{name:"outlineLevel",value:t>=c?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,r.length>1e4&&(h.push(r.join("")),r=[])}h.push(r.join("")),r=[],o=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex),h.push("</sheetData>"+this._getAutoFilterXML(o)+this._generateMergingXML()+this._getIgnoredErrorsXML(o)+"</worksheet>"),this._zip.folder(E).folder(M).file(F,h.join("")),this._colsArray=[],this._cellsArray=[],h=[]},_generateMergingXML:function(){var e,t,n,i,o,a,r=(0,l.isDefined)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),s=this._dataProvider.getColumns().length,u=[],d=[],c="";for(i=0;i<r;i++)for(n=0;n!==s;n++)if(!(0,l.isDefined)(u[i])||!(0,l.isDefined)(u[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(d.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,n),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)(0,l.isDefined)(u[e])||(u[e]=[]),u[e][t]=!0}for(o=d.length,a=0;a<o;a++)c+=this._getXMLTag("mergeCell",[{name:"ref",value:d[a].start+":"+d[a].end}]);return c.length?this._getXMLTag("mergeCells",[{name:"count",value:o}],c):""},_generateCommonXML:function(){var e,t=C+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+O)),n=this._zip.folder(E),i=C;this._zip.folder("_"+T).file("."+T,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+F)+this._createXMLRelationship(2,"styles",B)+this._createXMLRelationship(3,"sharedStrings",P),i+=this._createXMLRelationships(e),n.folder("_"+T).file(O+".rels",i),n.file(O,this._getWorkbookContent()),this._zip.file(A,this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=e,this._excelFile=new x.default,(0,l.isDefined)(N.JSZip)?this._zip=new N.JSZip:this._zip=null},_checkZipState:function(){if(!this._zip)throw c.default.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:m.default.MIME_TYPES.EXCEL},n=new b.Deferred;return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t).then(n.resolve):n.resolve(this._zip.generate(t)),n}});N.JSZip=g.default,t.ExcelCreator=N,t.getData=function(e,n){var i=new t.ExcelCreator(e,n);return i._checkZipState(),i.ready().then(function(){return i.getData((0,l.isFunction)((0,s.getWindow)().Blob))})}},function(e,t){e.exports=window.JSZip},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(28),a=i(o),r=n(76),s=n(129),l=i(s),u=n(52),d=n(219),c=i(d),h=n(444),p=i(h),f=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,g={},_=function(e){var t=(0,r.locale)()+"/"+JSON.stringify(e);return g[t]||(g[t]=new Intl.NumberFormat((0,r.locale)(),e).format),g[t]},m=function(e){return new Intl.NumberFormat((0,r.locale)(),{style:"currency",currency:e})};e.exports={engine:function(){return"intl"},_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):_(this._normalizeFormatConfig(t,n))(e)},_normalizeFormatConfig:function(e,t,n){var i=void 0;return i="decimal"===e?{minimumIntegerDigits:t.precision||void 0,useGrouping:!1,maximumFractionDigits:String(n).length,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e?i.style="percent":"currency"===e&&(i.style="currency",i.currency=t.currency||(0,a.default)().defaultCurrency),i},_getPrecisionConfig:function(e){var t=void 0;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),"default"===t.currency&&(t.currency=(0,a.default)().defaultCurrency),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):_(t)(e))},parse:function(e,t){if((0,u.compare)(l.default,"17.2.8")>=0)return this.callBase.apply(this,arguments);if(e)return t&&t.parser?t.parser(e):(e=this._normalizeNumber(e,t),e.length>15?NaN:parseFloat(e))},_normalizeNumber:function(e,t){var n=/^[-+]?[0-9]*.?[0-9]+([eE][-+]?[0-9]+)+$/,i=".";if(this.convertDigits&&(e=this.convertDigits(e,!0)),n.test(e))return e;var o=this._getDecimalSeparator(t),a=new RegExp("[^0-9-\\"+o+"]","g");return e.replace(a,"").replace(o,i)},_getDecimalSeparator:function(e){return _(e)(.1)[1]},_getCurrencySymbolInfo:function(e){var t=m(e);return this._extractCurrencySymbolInfo(t.format(0))},_extractCurrencySymbolInfo:function(e){var t=f.exec(e)||[],n=t[1]?"before":"after",i=t[1]||t[4]||"",o=t[2]||t[3]||"";return{position:n,symbol:i,delimiter:o}},getCurrencySymbol:function(e){e||(e=(0,a.default)().defaultCurrency);var t=this._getCurrencySymbolInfo(e);return{symbol:t.symbol}},getOpenXmlCurrencyFormat:function(e){var t=e||(0,a.default)().defaultCurrency,n=this._getCurrencySymbolInfo(t).symbol;return(0,c.default)(n,p.default[(0,r.locale)()])}}},function(e,t,n){e.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"root","az-Cyrl":"root","blt-Latn":"root","bm-Nkoo":"root","bs-Cyrl":"root","byn-Latn":"root","cu-Glag":"root","dje-Arab":"root","dyo-Arab":"root","en-Dsrt":"root","en-Shaw":"root","ff-Adlm":"root","ff-Arab":"root","ha-Arab":"root","iu-Latn":"root","kk-Arab":"root","ku-Arab":"root","ky-Arab":"root","ky-Latn":"root","ml-Arab":"root","mn-Mong":"root","ms-Arab":"root","pa-Arab":"root","sd-Deva":"root","sd-Khoj":"root","sd-Sind":"root","shi-Latn":"root","so-Arab":"root","sr-Latn":"root","sw-Arab":"root","tg-Arab":"root","ug-Cyrl":"root","uz-Arab":"root","uz-Cyrl":"root","vai-Latn":"root","wo-Arab":"root","yo-Arab":"root","yue-Hans":"root","zh-Hant":"root","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){var i="-";e.exports=function(e,t){var n=e[t];return n?"root"!==n&&n:t.substr(0,t.lastIndexOf(i))}},function(e,t,n){e.exports={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ar:"\xa4#,##0.00;(\xa4#,##0.00)","ar-AE":"\xa4#,##0.00;(\xa4#,##0.00)","ar-BH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DZ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EG":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-ER":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IL":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IQ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-JO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KW":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LB":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MR":"\xa4#,##0.00;(\xa4#,##0.00)","ar-OM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-PS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-QA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TN":"\xa4#,##0.00;(\xa4#,##0.00)","ar-YE":"\xa4#,##0.00;(\xa4#,##0.00)",as:"\xa4\xa0#,##,##0.00",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"0.00\xa0\xa4;(0.00\xa0\xa4)",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4\xa0#,##,##0.00",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-VALENCIA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cu:"\xa4\xa0#,##0.00",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-US-POSIX":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"#,##0.00\xa0\xa4",hi:"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4\xa0#,##,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00","nb-SJ":"\xa4\xa0#,##0.00",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##0.00","ne-IN":"\xa4\xa0#,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",prg:"\xa4\xa0#,##0.00",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",
"pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",root:"\xa4\xa0#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sbp:"#,##0.00\xa4",sd:"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"#,##0.00\xa0\xa4","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"#,##0.00\xa0\xa4",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vo:"\xa4\xa0#,##0.00",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"}},function(e,t,n){e.exports={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cu:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nb:1,nds:1,nl:1,nmg:1,nn:1,nnh:1,nus:1,nyn:1,os:1,pl:1,prg:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vo:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1}},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(0),a=n(76),r=/[\u200E\u200F]/g,s=function(e){return function(t){if(!e.timeZoneName){var n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()),i=(0,o.extend)({timeZone:"UTC"},e);return d(n,i)}return d(t,e)}},l={},u=function(e){var t=(0,a.locale)()+"/"+JSON.stringify(e);return l[t]||(l[t]=new Intl.DateTimeFormat((0,a.locale)(),e).format),l[t]},d=function(e,t){return u(t)(e).replace(r,"")},c=function(e){return new Intl.NumberFormat((0,a.locale)()).format(e)},h=function(){var e={};return function(t){if(!(t in e)){if("0"===c(0))return e[t]=!1,!1;e[t]={};for(var n=0;n<10;++n)e[t][c(n)]=n}return e[t]}}(),p=function(e){var t=h((0,a.locale)());return t?e.split("").map(function(e){return e in t?String(t[e]):e}).join(""):e},f=function(e){return e.replace(/(\D)0+(\d)/g,"$1$2")},g=function(e,t){return f(e)===f(t)},_=function(e){return e.replace("d\u2019","de ")},m={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(m,"shortdateshorttime",{get:function(){var e=Intl.DateTimeFormat((0,a.locale)()).resolvedOptions();return{year:e.year,month:e.month,day:e.day,hour:"numeric",minute:"numeric"}}});var v=function(e){return"string"==typeof e&&m[e.toLowerCase()]},y={standalone:function(e,t){var n=new Date(1999,e,13,1),i=s({month:t})(n);return i},format:function(e,t){var n=new Date(0,e,13,1),i=_(s({day:"numeric",month:t})(n)),o=i.split(" ").filter(function(e){return e.indexOf("13")<0});return 1===o.length?o[0]:2===o.length?o[0].length>o[1].length?o[0]:o[1]:y.standalone(e,t)}};e.exports={engine:function(){return"intl"},getMonthNames:function(e,t){var n={wide:"long",abbreviated:"short",narrow:"narrow"},i=n[e||"wide"];return t="format"===t?t:"standalone",Array.apply(null,new Array(12)).map(function(e,n){return y[t](n,i)})},getDayNames:function(e){var t={wide:"long",abbreviated:"short","short":"narrow",narrow:"narrow"},n=function(e){return Array.apply(null,new Array(7)).map(function(t,n){return s({weekday:e})(new Date(0,0,n))})},i=n(t[e||"wide"]);return i},getPeriodNames:function(){var e=s({hour:"numeric",hour12:!0});return[1,13].map(function(t){var n=c(1),i=e(new Date(0,0,1,t)).split(n);if(2!==i.length)return"";var o=i[0].length>i[1].length?i[0]:i[1];return o.trim()})},format:function(e,t){if(e){if(!t)return e;"function"==typeof t||t.formatter||(t=t.type||t);var n=v(t);if(n)return s(n)(e);var o="undefined"==typeof t?"undefined":i(t);return t.formatter||"function"===o||"string"===o?this.callBase.apply(this,arguments):s(t)(e)}},parse:function(e,t){var n=this,i=void 0;return t&&!t.parser&&"string"==typeof e&&(e=_(e),i=function(e){return _(n.format(e,t))}),this.callBase(e,i||t)},_parseDateBySimpleFormat:function(e,t){var n=this;e=p(e);var i=this.getFormatParts(t),o=e.split(/\D+/).filter(function(e){return e.length>0});if(i.length===o.length){var a=this._generateDateArgs(i,o),r=function(e,t){var n=t?12:0;return new Date(e.year,e.month,e.day,(e.hours+n)%24,e.minutes,e.seconds)},s=function(i){var o=r(a,i);if(g(p(n.format(o,t)),e))return o};return s(!1)||s(!0)}},_generateDateArgs:function(e,t){var n=new Date,i={year:n.getFullYear(),month:n.getMonth(),day:n.getDate(),hours:0,minutes:0,seconds:0};return e.forEach(function(e,n){var o=t[n],a=parseInt(o,10);"month"===e&&(a-=1),i[e]=a}),i},formatUsesMonthName:function(e){return"object"!==("undefined"==typeof e?"undefined":i(e))||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.month},formatUsesDayName:function(e){return"object"!==("undefined"==typeof e?"undefined":i(e))||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.weekday},getFormatParts:function(e){if("string"==typeof e)return this.callBase(e);var t=(0,o.extend)({},m[e.toLowerCase()]),n=new Date(2001,2,4,5,6,7),i=s(t)(n);i=p(i);var a=[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}];return a.map(function(e){return{name:e.name,index:i.indexOf(e.value)}}).filter(function(e){return e.index>-1}).sort(function(e,t){return e.index-t.index}).map(function(e){return e.name})}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1),s=n(77),l=i(s),u=n(448),d=i(u),c=n(222),h=i(c),p=n(224),f=i(p),g=n(451),_=i(g),m=function(){function e(){o(this,e),this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(h.default.tryCreateTag({patternFill:{patternType:"none"}}))}return a(e,[{key:"registerCellFormat",value:function(e){var t=void 0,n=d.default.tryCreateTag(e,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,r.isDefined)(n)){for(var i=0;i<this._cellFormatTags.length;i++)if(d.default.areEqual(this._cellFormatTags[i],n)){t=i;break}void 0===t&&(t=this._cellFormatTags.push(n)-1)}return t}},{key:"generateCellFormatsXml",value:function(){var e=this._cellFormatTags.map(function(e){return d.default.toXml(e)});return l.default.toXml("cellXfs",{count:e.length},e.join(""))}},{key:"registerFill",value:function(e){var t=void 0,n=h.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fillTags.length;i++)if(h.default.areEqual(this._fillTags[i],n)){t=i;break}void 0===t&&(this._fillTags.length<2&&this._fillTags.push(h.default.tryCreateTag({patternFill:{patternType:"Gray125"}})),t=this._fillTags.push(n)-1)}return t}},{key:"generateFillsXml",value:function(){var e=this._fillTags.map(function(e){return h.default.toXml(e)});return l.default.toXml("fills",{count:e.length},e.join(""))}},{key:"registerFont",value:function(e){var t=void 0,n=f.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fontTags.length;i++)if(f.default.areEqual(this._fontTags[i],n)){t=i;break}void 0===t&&(t=this._fontTags.push(n)-1)}return t}},{key:"generateFontsXml",value:function(){var e=this._fontTags.map(function(e){return f.default.toXml(e)});return l.default.toXml("fonts",{count:e.length},e.join(""))}},{key:"_convertNumberFormatIndexToId",value:function(e){var t=165;return t+e}},{key:"registerNumberFormat",value:function(e){var t=void 0,n=_.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._numberFormatTags.length;i++)if(_.default.areEqual(this._numberFormatTags[i],n)){t=this._numberFormatTags[i][_.default.ID_PROPERTY_NAME];break}void 0===t&&(n[_.default.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),t=n[_.default.ID_PROPERTY_NAME],this._numberFormatTags.push(n))}return t}},{key:"generateNumberFormatsXml",value:function(){if(this._numberFormatTags.length>0){var e=this._numberFormatTags.map(function(e){return _.default.toXml(e)});return l.default.toXml("numFmts",{count:e.length},e.join(""))}return""}}],[{key:"copyCellFormat",value:function(e){return d.default.copy(e)}}]),e}();t.default=m,e.exports=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(77),r=i(a),s=n(449),l=i(s),u=n(222),d=i(u),c=n(224),h=i(c),p={tryCreateTag:function(e,t){var n=null;if((0,o.isDefined)(e)){var i=void 0;i="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var a=e.fill;(0,o.isDefined)(a)||(a=d.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:i,alignment:l.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(a)},p.isEmpty(n)&&(n=null)}return n},copy:function(e){var t=void 0;return null===e?t=null:(0,o.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=d.default.copy(e.fill):d.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=l.default.copy(e.alignment)),void 0!==e.font&&(t.font=h.default.copy(e.font))),t},areEqual:function(e,t){return p.isEmpty(e)&&p.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&l.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.fontId)&&!(0,o.isDefined)(e.numberFormatId)&&!(0,o.isDefined)(e.fillId)&&l.default.isEmpty(e.alignment)},toXml:function(e){var t=l.default.isEmpty(e.alignment),n=void 0;return(0,o.isDefined)(e.numberFormatId)&&(n=e.numberFormatId>0?1:0),r.default.toXml("xf",{xfId:0,applyAlignment:t?null:1,fontId:e.fontId,applyNumberFormat:n,fillId:e.fillId,numFmtId:e.numberFormatId},t?null:l.default.toXml(e.alignment))}};t.default=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(77),r=i(a),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.vertical)&&!(0,o.isDefined)(e.wrapText)&&!(0,o.isDefined)(e.horizontal)},toXml:function(e){return r.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,o.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(77),r=i(a),s=n(223),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:l.default.tryCreateTag(e.backgroundColor),foregroundColor:l.default.tryCreateTag(e.foregroundColor)},u.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=l.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=l.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.patternType===t.patternType&&l.default.areEqual(e.backgroundColor,t.backgroundColor)&&l.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.patternType)},toXml:function(e){var t=[(0,o.isDefined)(e.foregroundColor)?l.default.toXml("fgColor",e.foregroundColor):"",(0,o.isDefined)(e.backgroundColor)?l.default.toXml("bgColor",e.backgroundColor):""].join("");return r.default.toXml("patternFill",{patternType:e.patternType},t)}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(77),r=i(a),s={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},s.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return r.default.toXml("numFmt",{numFmtId:e[s.ID_PROPERTY_NAME],formatCode:e.formatCode})}};t.default=s},function(e,t,n){var i=n(2),o=n(62),a=n(7).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(189),u=n(6),d=u.when,c=u.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){o.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new c;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,r="",s=new Uint8Array(i),l=s.byteLength;for(o=0;o<l;o++)r+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+a.btoa(r),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("href")||i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),s(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),d.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,u='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',d=l.getSvgElement(e),c=i(d);return n=u+l.getSvgMarkup(c.get(0),t.backgroundColor),o._prepareImages(d).then(function(){return s(o._imageArray,function(e,t){var i="href=['|\"]"+e+"['|\"]";n=n.replace(new RegExp(i,"gi"),'href="'+t+'"')}),r(a.Blob)?o._getBlob(n):o._getBase64(n)})},_getBlob:function(e){return new a.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return a.btoa(e)}},t.getData=function(e,n){return t.svgCreator.getData(e,n)}},function(e,t,n){var i=n(7),o=i.getWindow(),a=n(53),r={getXhr:function(){return new o.XMLHttpRequest}};e.exports=a(r)},function(e,t,n){var i=n(129),o=n(7).getWindow(),a=n(225).imageCreator,r=n(1).isFunction,s=n(0).extend,l="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",u="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",d="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",c="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",h="\r\nendstream\r\nendobj\r\n",p="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",f="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",g=function e(t,n){return t.length<n?e("0"+t,n):t},_=function(e,t,n){var o=2*(t.margin||0),a=t.width+o,r=t.height+o,s=(.75*a).toFixed(2),f=(.75*r).toFixed(2),g=l.replace("_width_",s).replace("_height_",f),_=u.replace("_width_",s).replace("_height_",f),v=d.replace("_date_",n).replace("_version_",i),y=c.replace("_width_",a).replace("_height_",r).replace("_length_",e.length)+e+h,w=m(g.length,_.length,v.length),x=g+_+v+y,b=p.replace("_length_",x.length);return x+w+b},m=function(e,t,n){return f.replace("_main_",g(e+"",10)).replace("_info_",g(e+t+"",10)).replace("_image_",g(e+t+n+"",10))},v=function(){return new Date},y=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new o.Blob([n.buffer],{type:"application/pdf"})},w=function(e){return o.btoa(e)};t.getData=function(e,t){return a.getImageData(e,s({},t,{format:"JPEG"})).then(function(e){var n=_(e,t,v()),i=r(o.Blob)?y(n):w(n);return i})}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.exportDataGrid=void 0;var i=n(456);t.exportDataGrid=i.exportDataGrid},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if((0,g.isDefined)(e)){var t=e.customizeCell,n=e.component,i=e.worksheet,o=e.topLeftCell,s=void 0===o?{row:1,column:1}:o,l=e.autoFilterEnabled,u=void 0===l?void 0:l,d=e.keepColumnWidths,c=void 0===d||d,p=e.selectedRowsOnly,_=void 0!==p&&p;i.properties.outlineProperties={summaryBelow:!1,summaryRight:!1};var m={from:{row:s.row,column:s.column},to:{row:s.row,column:s.column}},y=n.getDataProvider(_);return new Promise(function(e){y.ready().done(function(){var o=y.getColumns(),l=y.getHeaderRowCount(),d=y.getRowsCount();c&&h(i,o,m.from.column);for(var p=[],g=[],_=0;_<d;_++){var w=i.getRow(m.from.row+_);a(_,o.length,w,m.from.column,y,t,l,p,g),_>=l&&(w.outlineLevel=y.getGroupLevel(_)),_>=1&&m.to.row++}f(i,s,g),m.to.column+=o.length>0?o.length-1:0;var x=i.views[0]||{};n.option("rtlEnabled")&&(x.rightToLeft=!0),l>0&&(Object.keys(x).indexOf("state")===-1&&(0,v.extend)(x,{state:"frozen",ySplit:m.from.row+y.getFrozenArea().y-1}),r(y,i,n,m,u)),Object.keys(x).length>0&&(i.views=[x]),e(m)})})}}function a(e,t,n,i,o,a,r,u,h){for(var f=o.getStyles(),_=0;_<t;_++){var m=o.getCellData(e,_,!0),v=m.cellSourceData,y=n.getCell(i+_);if(y.value=m.value,(0,g.isDefined)(y.value)){var w=f[o.getStyleId(e,_)],x=w.bold,b=w.alignment,C=w.wrapText,k=w.format,I=w.dataType,S=l(k,I);(0,g.isDefined)(S)&&(S=S.replace(/&quot;/g,"")),s(y,S),d(y,x),c(y,C,b)}if((0,g.isDefined)(a)&&a({cell:y,excelCell:y,gridCell:v}),e<r){var D=p(e,_,u,o);(0,g.isDefined)(D)&&h.push(D)}}}function r(e,t,n,i,o){(0,g.isDefined)(o)||(o=!!n.option("export.excelFilterEnabled")),o&&!(0,g.isDefined)(t.autoFilter)&&e.getRowsCount()>0&&(t.autoFilter=i)}function s(e,t){e.numFmt=t}function l(e,t){var n=u(e,t),i=n.currency;return e=n.format,t=n.dataType,m.default.convertFormat(e,n.precision,t,i)}function u(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return(0,g.isObject)(e)?(0,v.extend)(n,e,{format:e.formatter||e.type,currency:e.currency}):n}function d(e,t){(0,g.isDefined)(t)&&(e.font=e.font||{},e.font.bold=t)}function c(e,t,n){e.alignment=e.alignment||{},(0,g.isDefined)(t)&&(e.alignment.wrapText=t),(0,g.isDefined)(n)&&(e.alignment.horizontal=n)}function h(e,t,n){if((0,g.isDefined)(t))for(var i=0;i<t.length;i++){var o=t[i].width;"number"==typeof o&&isFinite(o)&&(e.getColumn(n+i).width=Math.min(w,Math.floor(o/y*100)/100))}}function p(e,t,n,i){if(!n[e]||!n[e][t]){var o=i.getCellMerging(e,t);if(o.colspan||o.rowspan){for(var a=e;a<=e+o.rowspan;a++)for(var r=t;r<=t+o.colspan;r++)n[a]||(n[a]=[]),n[a][r]=!0;return{start:{row:e,column:t},end:{row:e+(o.rowspan||0),column:t+(o.colspan||0)}}}}}function f(e,t,n){n.forEach(function(n){e.mergeCells(n.start.row+t.row,n.start.column+t.column,n.end.row+t.row,n.end.column+t.column)})}Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_EXCEL_COLUMN_WIDTH=t.exportDataGrid=void 0;var g=n(1),_=n(182),m=i(_),v=n(0),y=7,w=255;t.exportDataGrid=o,t.MAX_EXCEL_COLUMN_WIDTH=w},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.OptionManager=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(18),s=i(r),l=n(226),u=n(1),d=i(u),c=n(4),h=n(0),p=[],f={},g={};t.OptionManager=function(){function e(t,n,i){o(this,e),this._options=t,this._optionsByReference=n,this._deprecatedOptions=i,this._changingCallback,this._changedCallback,this._deprecatedCallback}return a(e,[{key:"_notifyDeprecated",value:function(e){var t=this._deprecatedOptions[e];t&&this._deprecatedCallback(e,t)}},{key:"_clearField",value:function(e,t){delete e[t];var n=this._getParentName(t),i=n?this._getValue(e,n,!1):e;i&&delete i[this._getFieldName(t)]}},{key:"_getParentName",value:function(e){return e.substr(0,e.lastIndexOf("."))}},{key:"_getFieldName",value:function(e){return e.substr(e.lastIndexOf(".")+1)}},{key:"_setField",value:function(e,t,n){var i="",o=void 0;do i&&(i="."+i),i=this._getFieldName(t)+i,t=this._getParentName(t),o=t?this._getValue(e,t,!1):e;while(!o);o[i]=n}},{key:"_setValue",value:function(e,t,n){g[e]||(g[e]=s.default.compileSetter(e));var i=e.split(/[.[]/);n=d.default.isDefined(n)?n:!this._optionsByReference[e],g[e](this._options,t,{functionsAsIs:!0,merge:n,unwrapObservables:i.length>1&&!!this._optionsByReference[i[0]]})}},{key:"_setPreparedValue",value:function(e,t,n){var i=this._getValue(this._options,e,!1);(0,l.equals)(i,t)||(this._changingCallback(e,i,t),this._setValue(e,t,n),this._changedCallback(e,t,i))}},{key:"_setRelevantNames",value:function(e,t,n){if(t){var i=this._normalizeName(t);i&&i!==t&&(this._setField(e,i,n),this._clearField(e,t))}}},{key:"_normalizeName",value:function(e){if(e){var t=void 0;if(!p.length)for(var n in this._deprecatedOptions)p.push(n);for(var i=0;i<p.length;i++)if(p[i]===e){t=this._deprecatedOptions[e];break}return t&&(this._notifyDeprecated(e),t.alias&&(e=t.alias)),e}}},{key:"_prepareRelevantNames",value:function(e,t,n){if(d.default.isPlainObject(n))for(var i in n)this._prepareRelevantNames(e,t+"."+i,n[i]);this._setRelevantNames(e,t,n)}},{key:"_getValue",value:function(e,t,n){var i=f[t];return i||(i=f[t]=s.default.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})}},{key:"onChanging",value:function(e){this._changingCallback=e}},{key:"onChanged",value:function(e){this._changedCallback=e}},{key:"onDeprecated",value:function(e){this._deprecatedCallback=e}},{key:"setValueByReference",value:function(e,t){(0,h.extend)(!0,e,t);for(var n in this._optionsByReference)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}},{key:"getValue",value:function(e){return this._getValue(this._options,this._normalizeName(e))}},{key:"setValue",value:function(e,t){for(var n in e)this._prepareRelevantNames(e,n,e[n]);for(var i in e)this._setPreparedValue(i,e[i],t)}},{key:"getValueSilently",value:function(e){return this._options[e]}},{key:"setValueSilently",value:function(e){this.setValueByReference(this._options,e)}},{key:"dispose",value:function(){this._changingCallback=c.noop,this._changedCallback=c.noop,this._deprecatedCallback=c.noop}}]),e}()},function(e,t,n){var i=n(26),o=n(1).isFunction,a=n(3).each,r=n(15);e.exports=r.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){a(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(2),o=n(12),a=n(7),r=a.getWindow(),s=n(5),l=n(0).extend,u=n(130),d=n(43),c=n(88),h=n(16),p=function(e){e=l({},e);var t=h.real(),n=e.allowZoom,a=e.allowPan,p="allowSelection"in e?e.allowSelection:"generic"===t.platform,f="meta[name=viewport]";i(f).length||i("<meta>").attr("name","viewport").appendTo("head");var g=["width=device-width"],_=[];if(n?_.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),a&&_.push("pan-x","pan-y"),a||n?i("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):i("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!p&&d.supportProp("userSelect")&&i(".dx-viewport").css(c.styleProp("userSelect"),"none"),i(f).attr("content",g.join()),i("html").css("msTouchAction",_.join(" ")||"none"),t=h.real(),d.touch&&(s.off(o.getDocument(),".dxInitMobileViewport"),s.on(o.getDocument(),"dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,r=!a&&1===t&&!e.isScrollingEvent;i&&(o||r)&&e.preventDefault()})),t.ios){var m="file:"===o.getLocation().protocol;m||u.add(function(){var e=i(r).width();i("body").width(e)})}t.android&&u.add(function(){setTimeout(function(){var e=o.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)})})};t.initMobileViewport=p},function(e,t,n){var i,o=n(154),a=n(230),r=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,u=function(){l||(i=new a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),u()},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});d.map=s,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(0).extend,o=n(154),a=n(231),r=n(229),s=n(8),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},u=!1,d=function(){u||(a.activate(),u=!0)},c=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),d()},_handler:function(e){var t=s.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=s.isMouseEvent(e.originalEvent),n=t?a.normalize:r.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});c.map=l,c.resetObserver=a.resetObserver,e.exports=c},function(e,t,n){var i=n(76),o=n(10),a=n(51),r=n(32);n(115),t.locale=i.locale.bind(i),t.loadMessages=o.load.bind(o),t.formatMessage=o.format.bind(o),t.formatNumber=a.format.bind(a),t.parseNumber=a.parse.bind(a),t.formatDate=r.format.bind(r),t.parseDate=r.parse.bind(r),t.message=o,t.number=a,t.date=r,t.disableIntl=function(){"intl"===a.engine()&&a.resetInjection(),"intl"===r.engine()&&r.resetInjection()}},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range",
"validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access denied. The operation cannot be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move","dxFileManager-commandCopy":"Copy","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClear":"Clear selection","dxFileManager-dialogDirectoryChooserTitle":"Select Destination Directory","dxFileManager-dialogDirectoryChooserButtonText":"Select","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory wasn't created","dxFileManager-editingCreateCommonErrorMessage":"Directory wasn't created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item wasn't renamed","dxFileManager-editingRenameCommonErrorMessage":"Item wasn't renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item wasn't deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items weren't deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items weren't deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item wasn't moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items weren't moved","dxFileManager-editingMoveCommonErrorMessage":"Some items weren't moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item wasn't copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items weren't copied","dxFileManager-editingCopyCommonErrorMessage":"Some items weren't copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item wasn't uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items weren't uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Organizational Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandProperties":"Properties","dxDiagram-commandExport":"Export","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Text Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandAutoLayout":"Auto Layout","dxDiagram-commandAutoLayoutTree":"Tree","dxDiagram-commandAutoLayoutLayered":"Layered","dxDiagram-commandAutoLayoutHorizontal":"Horizontal","dxDiagram-commandAutoLayoutVertical":"Vertical","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop file here"}}},function(e,t,n){var i=n(54),o=n(215),a=n(79)();a&&o.set(i)},function(e,t,n){var i=n(54),o=n(79)(),a=n(52).compare,r=n(3).each,s=n(1).isNumeric,l=n(8).setEventFixMethod,u=n(68),d=n(216);if(o)if(a(i.fn.jquery,[3])<0){var c={2:"touch",3:"pen",4:"mouse"};r(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=c[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),r(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return d(function(n,i){e[n]=i(t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var h={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};u.callbacks.add(function(e){i.event.fixHooks[e]=h});var p=function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,o=n.props?i.event.props.concat(n.props):i.event.props,a=o.length;a--;){var r=o[a];e[r]=t[r]}return n.filter?n.filter(e,t):e};l(p)}else d(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(54),o=n(6),a=n(79)(),r=n(52).compare;if(a){var s=i.Deferred,l={Deferred:s};l.when=r(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},o.setStrategy(l)}},function(e,t,n){var i=n(54),o=n(233),a=n(49).add;if(i&&!o.fired()){var r=i.holdReady||i.fn.holdReady;r(!0),o.add(function(){a(function(){r(!1)})})}},function(e,t,n){var i=n(54),o=n(5),a=n(79)(),r=n(114),s=n(12);a&&(r.add(function(e,t){i.event.special[e]=t}),o.passiveEventHandlersSupported()&&o.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),o.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(54),o=n(228);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(54),o=n(38),a=n(79)();a&&o.setDataStrategy(i)},function(e,t,n){var i=n(11).setPublicElementWrapper,o=n(79)(),a=function(e){return e};o&&i(a)},function(e,t,n){var i=n(54),o=n(153),a=n(21);if(i){var r=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(r)}},function(e,t,n){var i=n(54),o=n(62),a=n(79)();a&&o.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.ajax(e)}})},function(e,t,n){var i=n(234);i&&(n(232),n(475),n(486),n(487),n(488))},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(2),r=i(a),s=n(5),l=i(s),u=n(28),d=i(u),c=n(153),h=i(c),p=n(15),f=i(p),g=n(26),_=i(g),m=n(1),v=i(m),y=n(3),w=i(y),x=n(14),b=i(x),C=n(235),k=i(C),I=n(161),S=i(I),D=n(48),T=i(D),E=n(480),O=n(184),A=i(O),P=n(55),B=i(P),M=n(18),F=i(M),R=n(226),V=n(0),H=i(V),L=n(33),z=i(L),$=n(21),N=i($),W=w.default.each,j=b.default.inArray,q=F.default.compileSetter,G=F.default.compileGetter,K=H.default.extendFromObject,U="dxItemAlias",Y=["rendering"],X="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},Q=f.default.inherit({ctor:function(e){this._componentDisposing=(0,_.default)(),this._optionChangedCallbacks=(0,_.default)(),this._ngLocker=new k.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=K({},e),e&&(!Object.prototype.hasOwnProperty.call(e,"bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&W(e.bindingOptions,function(e,n){"string"===v.default.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&(W(this._ngOptions.bindingOptions,function(n,i){var o=n.search(/\[|\./),a=o>-1?n.substring(0,o):n,r=void 0,s=void 0,l=i.dataPath,u=!0,d=!1;void 0!==i.deep&&(d=u=!!i.deep),t[a]||(t[a]={}),t[a][n]=l;var c=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),(0,R.equals)(i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!d?"$watchCollection":"$watch";r!==t&&(s&&s(),s=e._scope[t](l,c,u),r=t)};h(),e._componentDisposing.add(s)}),this._optionChangedCallbacks.add(function(n){var i=n.name,o=n.fullName,a=n.component;if(e._ngLocker.locked(o))return void e._ngLocker.release(o);if(t&&t[i]){var r=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(o)};r?e._digestCallbacks.begin.add(s):s(),Z(function(){W(t[i],function(t,i){if(e._optionsAreLinked(o,t)){var r=a.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(o)&&e._ngLocker.release(o),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};r?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var o=(0,r.default)(e).clone(),a=i.model&&i.model.constructor===t._scope.$root.constructor,s=a?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),o.appendTo(i.container),i.noModel||l.default.on(o,"$destroy",function(){var e=!s.$parent;e||s.$destroy()});var u=t._compile(o,t._transcludeFn);return t._applyAsync(function(e){u(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),o}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(B.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),v.default.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==o(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,o=e.parentPrefix,a=e.itemIndex,r=i===this._itemAlias?"":"."+i,s=void 0!==a,l=[o],u=void 0;if(s){if(!v.default.isNumeric(a))return;l.push("[",a,"]")}l.push(r),u=l.join("");var d=t.$watch(u,function(e,t){e!==t&&q(i)(n,e)}),c=n.$watch(i,function(e,n){if(e!==n){if(s&&!G(o)(t)[a])return void c();q(u)(t,e)}});this._componentDisposing.add([d,c])},_evalOptions:function(e){var t=this,n=K({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&W(this._ngOptions.bindingOptions,function(t,i){n[t]=e.$eval(i.dataPath)}),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&j(i.category,Y)>-1)return n;var o=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?Z(function(){return n.apply(t,i)},e):n.apply(this,i)};return o},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,d.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){Z(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new E.NgTemplate(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,o){o=o||{};var a=void 0,r=o.skipImmediate,s=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!r&&(!t||t&&o.deep)&&i(e),r=!1},o.deep);return r||(a=n(),i(a)),(0,d.default)().wrapActionsBeforeExecute&&t._applyAsync(function(){},e),s},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){if("button"===n||"tabs"===n||"dropDownMenu"===n){var i=n;n=z.default.camelize("dx-"+n),N.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var o=(0,r.default)("<div>").attr(z.default.dasherize(n),"options").get(0),a=t._scope.$new();a.options=e.model.options,e.container.append(o),t._compile(o)(a)}}}}},n.modelByElement=function(){return e},n}});Q=Q.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return(this._componentClass.subclassOf(T.default)||this._componentClass.prototype instanceof T.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked(X)||t!==n&&e._component.option(X,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(X);try{if(t.name!==X)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(X)&&e._ngLocker.release(X)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[X]=this._parse(this._ngModel)(this._scope),e}});var J={},ee=function(e){var t="dxValidator"!==e?1:10;A.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=J[e],r=a.subclassOf(S.default)?t.contents().detach():null;return function(t,s,l,u,d){s.append(r),Z(function(){new Q({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:u,transcludeFn:d,itemAlias:l[U],dxDigestCallbacks:o})},t)}}}}])};h.default.add(function(e,t){J[e]||ee(e),J[e]=t})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Template=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(2),u=i(l),d=n(69),c=n(11),h=n(159);n(477),(0,h.registerTemplateEngine)("default",{compile:function(e){return(0,c.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,h.setTemplateEngine)("default");t.Template=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._element=e,n}return r(t,e),s(t,[{key:"_renderCore",value:function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,h.getCurrentTemplateEngine)().compile(this._element)),(0,u.default)("<div>").append(t?this._element:(0,h.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()}},{key:"source",value:function(){return(0,u.default)(this._element).clone()}}]),t}(d.TemplateBase)},function(e,t,n){var i=n(11),o=n(159);(0,o.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,o.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return Mustache.render(e,t)}}),(0,o.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}})},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(2),a=n(12),r=n(7),s=n(49).add,l=r.getWindow(),u=r.getNavigator(),d=n(5),c=n(39),h=n(27),p=n(52).compare,f=n(73),g=n(0).extend,_=n(14).inArray,m=n(11).getPublicElement,v=f.changeCallback,y=n(213).hideCallback,w=n(78),x=n(30).fitIntoRange,b=n(11),C=n(4).noop,k=n(1),I=n(3).each,S=n(16),D=n(25),T=n(9),E=n(17),O=n(162),A=n(65),P=n(70),B=n(8),M=n(23),F=n(178),R=n(100).EmptyTemplate,V=n(6).Deferred,H=n(479),L=n(155),z="dx-overlay",$="dx-overlay-wrapper",N="dx-overlay-content",W="dx-overlay-shader",j="dx-overlay-modal",q="dx-inner-overlay",G="dx-state-invisible",K="content",U="dx-rtl",Y=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],X=[],Z="dx-state-disabled",Q="dx-prevent-safari-scrolling",J="tab",ee={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},te=S.real(),ne=te.version,ie=D.mozilla&&"desktop"===te.deviceType,oe="ios"===te.platform,ae=D.safari&&"desktop"!==te.deviceType,re="android"===te.platform&&0===p(ne,[4,0],2)&&u.userAgent.indexOf("Chrome")===-1,se=function(e){if(ie&&e.width(),re){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},le=function(e){return e&&o(e.target||e)};s(function(){d.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=X.length-1;t>=0;t--)if(!X[t]._proxiedDocumentDownHandler(e))return})});var ue=E.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:x(e,-i.top,i.bottom),left:x(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=S.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!r.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return K},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass($),this._$content=o("<div>").addClass(N),this._initInnerOverlayClass();var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(z),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),d.on(this._$wrapper,"MSPointerDown",C),d.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target);var t=void 0===e.container?this.option("container"):e.container;this._initContainer(t),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(q,this.option("innerOverlay"))},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();I(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var o=i.split("."),a=t;a;){if(1===o.length){k.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},I(Y,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");k.isFunction(t)&&(t=t(e));var n=this._$content,i=o(l.document).is(e.target)||b.contains(l.document,e.target),a=o(e.target).closest("."+q).length,r=i&&!a&&!(n.is(e.target)||b.contains(n.get(0),e.target));return r&&t&&(this.option("shading")&&e.preventDefault(),this._outsideClickHandler(e)),this.option("propagateOutsideClick")},_outsideClickHandler:function(){this.hide()},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new R},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return X},_zIndexInitValue:function(){return ue.baseZIndex()},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return k.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new V;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return this._isHidden=!0,t.resolve();if(this._currentVisible)return(new V).resolve().promise();this._currentVisible=!0,this._isShown=!1,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,a=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){return this._renderVisibility(!0),this._isShowingActionCanceled?(delete this._isShowingActionCanceled,void t.resolve()):void this._animate(i,function(){e.option("focusStateEnabled")&&d.trigger(e._focusTarget(),"focus"),a.apply(this,arguments),e._showAnimationProcessing=!1,e._isShown=!0,e._actions.onShown(),e._toggleSafariScrolling(!1),t.resolve()},function(){o.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(r)):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new V).resolve().promise();this._currentVisible=!1;var e=this,t=new V,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,a=i&&i.complete||C,r={cancel:!1};return this._isShowingActionCanceled?t.resolve():(this._actions.onHiding(r),e._toggleSafariScrolling(!0),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),o.apply(this,arguments)}))),t.promise()},_forceFocusLost:function(){var e=a.getActiveElement(),t=!!this._$content.find(e).length;t&&b.resetActiveElement()},_animate:function(e,t,n){e?(n=n||e.start||C,c.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){c.stop(this._$content,!0)},_renderVisibility:function(e){if(!e||!this._isParentHidden()){if(this._currentVisible=e,this._stopAnimation(),e||b.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(G,!e),this._updateZIndexStackPosition(e),e){this._renderContent();var t={cancel:!1};if(this._actions.onShowing(t),t.cancel)return this._toggleVisibility(!1),this._$content.toggleClass(G,!0),this._updateZIndexStackPosition(!1),this._moveFromContainer(),this._isShowingActionCanceled=!0,void this.option("visible",!1);this._moveToContainer(),this._renderGeometry(),b.triggerShownEvent(this._$content),b.triggerResizeEvent(this._$content)}else this._moveFromContainer();this._toggleShading(e),this._toggleSubscriptions(e)}},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);e?(n===-1&&(this._zIndex=H.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):n!==-1&&(t.splice(n,1),H.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass(j,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(W,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=B.addNamespace("keydown",this.NAME);e?d.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):d.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(A.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(A.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(B.normalizeKeyName(e)===J&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!b.contains(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;d.trigger(l,"focusin"),d.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?y.add(this._hideTopOverlayHandler):y.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=le(t).parents(),a=B.addNamespace("scroll",this.NAME);"desktop"===S.real().deviceType&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),d.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(d.on(i,a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");k.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=o(this);if("none"===e.css("display"))return t=!0,!1}),t||!a.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this,t=new V,n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._getAnonymousTemplateName()===n;return i&&i.render({container:m(this.$content()),noModel:!0,transclude:o,onRendered:function(){t.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),t.done(function(){e.option("visible")&&e._moveToContainer()}),t.promise()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=B.addNamespace(P.start,this.NAME),n=B.addNamespace(P.move,this.NAME);d.off(e,t),d.off(e,n),this.option("dragEnabled")&&(d.on(e,t,this._dragStartHandler.bind(this)),d.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,F,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=B.addNamespace(P.move,this.NAME);d.off(e,t),d.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(e){e||this._toggleGestureCoverImpl(e)},_clearSelection:C,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=f.originalViewPort().get(0)||this.option("container"),t=e?this._$container:o(l);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),r=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=a.getDocument(),u=Math.max(o(l).outerHeight(),s),d=Math.max(o(l).outerWidth(),r);s=u,r=d}return{width:r-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?e.top+i.top+o.v:0,bottom:n?-e.top-i.top+t.height-o.v:0,left:n?e.left+i.left+o.h:0,right:n?-e.left-i.left+t.width-o.h:0}},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element(),t=void 0!==this.option("container"),n=t?this._$container:L.getSwatchContainer(e);n&&n[0]===e.parent()[0]&&(n=e),this._$wrapper.appendTo(n)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&ae&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(e){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl(e)},_renderGeometryImpl:function(e){this._stopAnimation(),this._normalizePosition(),this._renderWrapper(),this._fixHeightAfterSafariAddressBarResizing(),this._renderDimensions();var t=this._renderPosition();this._actions.onPositioned({position:t})},_fixWrapperPosition:function(){this._$wrapper.css("position",this._useFixedPosition()?"fixed":"absolute")},_useFixedPosition:function(){var e=this._getContainer();return this._isWindow(e)&&(!oe||void 0!==this._bodyScrollTop)},_toggleSafariScrolling:function(e){if(oe&&this._useFixedPosition()){var t=a.getBody();e?(o(t).removeClass(Q),l.scrollTo(0,this._bodyScrollTop),this._bodyScrollTop=void 0):this.option("visible")&&(this._bodyScrollTop=l.pageYOffset,o(t).addClass(Q))}},_renderWrapper:function(){this._fixWrapperPosition(),this._renderWrapperDimensions(),this._renderWrapperPosition()},_renderWrapperDimensions:function(){var e,t,n=this._getContainer();if(n){var i=this._isWindow(n);e=i?null:n.outerWidth(),t=i?null:n.outerHeight(),this._$wrapper.css({width:e,height:t})}},_isWindow:function(e){return!!e&&k.isWindow(e.get(0))},_renderWrapperPosition:function(){var e=this._getContainer();e&&w.setup(this._$wrapper,{my:"top left",at:"top left",of:e})},_getContainer:function(){var e=this._position,t=this.option("container"),n=null;if(!t&&e){var i=!(!e.of||!e.of.preventDefault);n=i?l:e.of||l}return le(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,ee),t=w.setup(this._$content,e);return se(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:x(0,-n.top,n.bottom),left:x(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return k.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new O({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=o(t.target);!n.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry(!0)},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){c.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._toggleSafariScrolling(!0),this._actions=null,this.callBase(),H.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Z,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(U,e)},_optionChanged:function(e){var t=e.value;if(_(e.name,Y)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){e=void 0===e?!this.option("visible"):e;var t=new V;if(e===this.option("visible"))return t.resolveWith(this,[e]).promise();var n=new V;return this._animateDeferred=n,this.option("visible",e),n.promise().done(function(){delete this._animateDeferred,t.resolveWith(this,[this.option("visible")])}.bind(this)),t.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return m(this._$content)},repaint:function(){this._renderGeometry(),b.triggerResizeEvent(this._$content)}});ue.baseZIndex=function(e){return H.base(e)},T("dxOverlay",ue),e.exports=ue},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.clearStack=t.remove=t.create=t.base=void 0;var i=n(4),o=1500,a=[];t.base=function(e){return o=(0,i.ensureDefined)(e,o)},t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=a.length,n=(t?a[t-1]:e)+1;return a.push(n),n},t.remove=function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},t.clearStack=function(){a=[]}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NgTemplate=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(2),u=i(l),d=n(69),c=n(1),h=n(11);t.NgTemplate=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i._element=e,i._compiledTemplate=n((0,h.normalizeTemplateElement)(i._element)),i}return r(t,e),s(t,[{key:"_renderCore",value:function(e){var t=this._compiledTemplate;return(0,c.isFunction)(t)?t(e):t}},{key:"source",value:function(){return(0,u.default)(this._element).clone()}}]),t}(d.TemplateBase)},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(4),u=i(l),d=n(11),c=n(12),h=i(c),p=n(1),f=n(6),g=n(0),_=n(14),m=n(3),v=i(m),y=n(111),w=i(y),x=n(34),b=i(x),C=n(17),k=i(C),I=n(8),S=i(I),D=n(23),T=i(D),E=n(83),O=i(E),A=n(134),P=i(A),B=n(65),M=i(B),F=n(10),R=i(F),V=n(91),H=i(V),L=n(18),z=n(20),$=i(z),N=n(163),W=i(N),j=n(66),q="dx-collection",G="dx-item",K="-content",U="dx-item-content-placeholder",Y="dxItemData",X="dxItemIndex",Z="tmpl-",Q="[data-options*='dxItem']",J="dx-item-selected",ee="dx-item-response-wait",te="dx-empty-collection",ne="dx-template-wrapper",ie=/^([^.]+\[\d+\]\.)+([\w.]+)$/,oe="up",ae="down",re="left",se="right",le="pageup",ue="pagedown",de="last",ce="first",he=k.default.inherit({_activeStateUnit:"."+G,_supportedKeys:function(){var e=function(e){var t=(0,a.default)(this.option("focusedElement"));t.length&&this._itemClickHandler((0,g.extend)({},e,{target:t,currentTarget:t}))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return(0,g.extend)(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,re),rightArrow:n.bind(this,se),upArrow:n.bind(this,oe),downArrow:n.bind(this,ae),pageUp:n.bind(this,oe),pageDown:n.bind(this,ae),home:n.bind(this,ce),end:n.bind(this,de)})},_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:R.default.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?(0,L.compileGetter)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._initDefaultItemTemplate()},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._defaultTemplates.item=new j.BindableTemplate(function(t,n){(0,p.isPlainObject)(n)?this._prepareDefaultItemTemplate(n,t):(e&&(0,p.isFunction)(e.text)&&(n=e.text(n)),t.text(String(u.default.ensureDefined(n,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){(0,p.isDefined)(e.text)&&t.text(e.text),(0,p.isDefined)(e.html)&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter(Q);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=(0,a.default)(t),i=(0,d.getElementOptions)(t).dxItem,o=n.html().trim()&&!i.template;return o?i.template=e._prepareItemTemplate(n):n.remove(),i});this.option("items",n)}},_prepareItemTemplate:function(e){var t=Z+new b.default,n=e.detach().clone().removeAttr("data-options").addClass(ne);return this._saveTemplate(t,n),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),(0,_.inArray)(e.target,this._focusTarget())!==-1){var t=(0,a.default)(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",(0,d.getPublicElement)(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=(0,a.default)(this.option("focusedElement"));this._updateFocusedItemState(e,!1)},_getActiveItem:function(e){var t=(0,a.default)(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement(),o=i.length-1;return n<0&&(n=e?o:0),i.eq(n)},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case le:case oe:t=this._prevItem(n);break;case ue:case ae:t=this._nextItem(n);break;case se:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case re:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case ce:t=n.first();break;case de:t=n.last();break;default:
return!1}0!==t.length&&this.option("focusedElement",(0,d.getPublicElement)(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),i=e.last(),o=(0,a.default)(e[n-1]),r=this.option("loopItemFocus");return 0===o.length&&r&&(o=i),o},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),i=e.first(),o=(0,a.default)(e[n+1]),r=this.option("loopItemFocus");return 0===o.length&&r&&(o=i),o},_selectFocusedItem:function(e){this.selectItem(e)},_updateFocusedItemState:function(e,t,n){var i=(0,a.default)(e);i.length&&(this._refreshActiveDescendant(),this._refreshItemId(i,n),this._toggleFocusClass(t,i))},_refreshActiveDescendant:function(e){this.setAria("activedescendant",(0,p.isDefined)(this.option("focusedElement"))?this.getFocusedItemId():null,e)},_refreshItemId:function(e,t){!t&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),e):this.setAria("id",null,e)},_setFocusedItem:function(e){e&&e.length&&(this._updateFocusedItemState(e,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=(0,a.default)(),n=this;return this.itemElements().each(function(){var i=(0,a.default)(this);if(i.data(n._itemDataKey())===e)return t=i,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);if(o.length){this.constructor.ItemClass.getInstance(o).setDataField(t,n)||this._refreshItem(o,e);var a="disabled"===t&&n;a&&this._resetItemFocus(o)}},_resetItemFocus:function(e){e.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(ie);if(t&&t.length){var n=t[t.length-1],i=e.fullName.replace("."+n,""),o=this.option(i);return void this._itemOptionChanged(o,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"showItemDataTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._updateFocusedItemState(e.previousValue,!1,!0),this._setFocusedItem((0,a.default)(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){(0,a.default)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return G},_itemContentClass:function(){return this._itemClass()+K},_selectedItemClass:function(){return J},_itemResponseWaitClass:function(){return ee},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return Y},_itemIndexKey:function(){return X},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(q),this._prepareContent()},_prepareContent:u.default.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=S.default.addNamespace($.default.name,this.NAME),n=S.default.addNamespace(T.default.down,this.NAME),i=this,o=new w.default(function(e){var t=e.event;i._itemPointerDownHandler(t)});s.default.off(this._itemContainer(),t,e),s.default.off(this._itemContainer(),n,e),s.default.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),s.default.on(this._itemContainer(),n,e,function(e){o.execute({element:(0,a.default)(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=(0,a.default)(e.target),n=t.closest(this._itemElements()),i=this._closestFocusable(t);n.length&&i&&(0,_.inArray)(i.get(0),this._focusTarget())!==-1&&this.option("focusedElement",(0,d.getPublicElement)(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(M.default.focusable))return e;for(e=e.parent();e.length&&!h.default.isDocument(e.get(0));){if(e.is(M.default.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=S.default.addNamespace(H.default.name,this.NAME);s.default.off(e,n,t),s.default.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=S.default.addNamespace(W.default.name,this.NAME);s.default.off(e,n,t),s.default.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&v.default.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(e,t,n,i);this._setElementData(o,t,e),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,o);var a=this._getItemContent(o),r=this._renderItemContent({index:e,itemData:t,container:(0,d.getPublicElement)(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),s=this;return(0,f.when)(r).done(function(n){s._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),s._executeItemRenderAction(e,t,(0,d.getPublicElement)(o))}),o},_getItemContent:function(e){var t=e.find("."+U);return t.removeClass(U),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&s.default.on(t,$.default.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var i=(0,a.default)(this._createItemByTemplate(n,e));return i.hasClass(ne)?this._renderItemContentByNode(e,i):e.container},_renderItemContentByNode:function(e,t){return(0,a.default)(e.container).replaceWith(t),e.container=(0,d.getPublicElement)(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[G+K,e.contentClass];(0,a.default)(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,n){t.appendTo(e)},_renderItemFrame:function(e,t,n,i){var o=(0,a.default)("<div>");if(new this.constructor.ItemClass(o,this._itemOptions(),t||{}),i&&i.length?i.replaceWith(o):this._appendItemToContainer.call(this,n,o,e),this.option("showItemDataTitle")){var r=this._displayGetter?this._displayGetter(t):t;o.attr("title",r)}return o},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(t){var n=e.option(t+"Expr"),i=(0,L.compileGetter)(n);return i}}},_postprocessRenderItem:u.default.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([G,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty"),i=t&&t[n];return i||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||(0,a.default)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass(te,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,(0,g.extend)(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,(0,g.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,(0,g.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var i=this._closestItemElement((0,a.default)(e)),o=(0,g.extend)({},n);return t((0,g.extend)(n,this._extendActionArgs(i),o))},_extendActionArgs:function(e){return{itemElement:(0,d.getPublicElement)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,a.default)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,a.default)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&v.default.each(e,function(e,i){n+=(0,a.default)(i).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new b.default),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(O.default);he.ItemClass=P.default,e.exports=he},function(e,t,n){var i=n(185),o=n(37),a=n(3).each,r=n(1).isFunction,s=n(6).Deferred,l=n(156),u=function e(t,n,u){u=u||[],n=n||{};var d=function(e,t){return{name:e,args:t}},c=function(e){function c(e){switch(e.name){case"sortBy":return m=[e.args],!0;case"thenBy":if(!m)throw o.errors.Error("E4004");return m.push(e.args),!0}return!1}function h(){var e=g[0],t=[];e&&"multiSort"===e.name&&(g.shift(),a(e.args[0],function(){t.push(d(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var p,f,g,_,m,v=new s,y=function(e){var t=n.errorHandler;t&&t(e),o._errorHandler(e),v.reject(e)};try{p=n.adapter,r(p)||(p=i[p]),f=p(n),g=[].concat(u).concat(e);var w=f.optimize;for(w&&w(g);g.length;){if(_=g[0],!c(_)){if(m){g.unshift(d("multiSort",[m])),m=null;continue}if("enumerate"!==String(_.name)&&(!f[_.name]||f[_.name].apply(f,_.args)===!1))break}g.shift()}h(),f.exec(t).done(function(e,t){if(g.length){var i=l(e,{errorHandler:n.errorHandler});a(g,function(){i=i[this.name].apply(i,this.args)}),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)}).fail(y)}catch(e){y(e)}return v.promise()},h={};return a(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,u.concat(d(i,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return c.call(this,d(e,arguments))}}),h};e.exports=u},function(e,t,n){var i=n(2),o=n(15),a=n(4).equalByValue,r=o.abstract,s=o.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:r,getItemDataByIndex:r,getKeysByItems:r,getItemsByKeys:r,itemsGetter:r,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?a(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:r,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:r,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:r,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:r,_getNormalizedItemIndex:r,_normalizeItemIndex:r,_denormalizeItemIndex:r,_getItemByNormalizedIndex:r,_itemsFromSameParent:r});e.exports=s},function(e,t,n){var i=n(1),o=n(236),a=n(19),r=n(42),s=n(6).Deferred;e.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s,t=this,n=this.options.key(),o=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var o=this.options.filter();o?this._addSelectionFilter(n,o,i):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)n?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!r([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.Error("E1042","Deferred selection")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=!0,a=e?["!",t]:t,r=e?"and":"or",s=i.options.selectionFilter||[];if(s=i._denormalizeFilter(s),s&&s.length){i._removeSameFilter(s,t,e,n);var l=i._removeSameFilter(s,t,!e);l&&("or"!==l&&e||"and"!==l&&!e)&&(o=!1,s=[]),o&&(s=i._addFilterOperator(s,r))}o&&s.push(a),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeFilterByIndex:function(e,t,n){var i;return i=t>0?e.splice(t-1,2)[0]:e.splice(t,2)[1]||"undefined",n&&"and"===i&&e.splice(0,e.length),i},_removeSameFilter:function(e,t,n,i){t=n?["!",t]:t;var o=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),"undefined";if(o>=0)return this._removeFilterByIndex(e,o,i);for(var a=0;a<e.length;a++){var r=Array.isArray(e[a])&&e[a].length>2&&this._removeSameFilter(e[a],t,!1,i);if(r)return e[a].length?1===e[a].length&&(e[a]=e[a][0]):this._removeFilterByIndex(e,a,i),r}},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;if(!t)return!0;if(!t.length)return!1;if(e&&e.length)return t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0}})},function(e,t,n){var i=n(4),o=n(1),a=o.isDefined,r=i.getKeyHash,s=n(42),l=n(6),u=n(292).SelectionFilterCreator,d=l.when,c=l.Deferred,h=n(19),p=n(236);e.exports=p.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,o,a=this.options.keyOf;if(a){var r=t&&e.length>1&&!this.options.equalByReference;for(r&&(n={}),o=0;o<e.length;o++){var s=e[o],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}r&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new c,o=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var a=this.options.filter();if(n&&t&&!a)return i.resolve(this.getSelectedItems()),i;var r=new u(e,n),l=r.getCombinedFilter(o,a),d=[];t&&(d=l?s(this.options.selectedItems).filter(l).toArray():this.options.selectedItems.slice(0));var h=d.length?d:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),p=r.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return h=h.filter(p),d.length||!n&&h.length===e.length?i.resolve(h):i=this._loadFilteredData(l,p),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var o=e[i],a=n(o);t.push(a)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=this.options.allowNullValue,n=0;n<e.length;n++){var i=e[n];t&&null===i||this.isItemKeySelected(i)||h.log("W1002",i)}},_loadSelectedItems:function(e,t,n){var i=this,o=new c;return d(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(o.resolve).fail(o.reject)}),i._lastLoadDeferred=o,o},selectedItemKeys:function(e,t,n,i){var o=this,a=o._loadSelectedItems(e,n,i);return a.done(function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()}),a},addSelectedItem:function(e,t){if(a(t)&&t.disabled)return void(this.options.disabledItemKeys.indexOf(e)===-1&&this.options.disabledItemKeys.push(e));var n=this._getKeyHash(e);this._indexOfSelectedItemKey(n)===-1&&(!o.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):o.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=r(n),o=this.options.keyHashIndices[i];if(o)for(var a=0;a<o.length;a++)o[a]>e&&o[a]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,a=this._indexOfSelectedItemKey(n,t);if(a<0)return a;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),i)return a;if(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),o.isObject(n)||!this.options.keyHashIndices)return a;var r=this.options.keyHashIndices[n];return r?(r.shift(),r.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(a),a):a},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:r(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e),n=this._indexOfSelectedItemKey(t);return n!==-1},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(114),o=n(5),a=n(184);i.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.directive(t,["$parse",function(n){return function(i,a,r){var s,l=r[t].trim(),u={};"{"===l.charAt(0)?(u=i.$eval(l),s=n(u.execute)):s=n(r[t]),o.on(a,e,u,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(26),o=n(184);o.service("dxDigestCallbacks",["$rootScope",function(e){var t=i(),n=i(),o=i(),a=!1;return e.$watch(function(){a||(a=!0,t.fire(),e.$$postDigest(function(){a=!1,n.fire(),o.fire()}))}),{begin:{add:function(e){a&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:o.add.bind(o),addPrioritized:n.add.bind(n),remove:o.remove.bind(o)}}}])},function(e,t,n){var i=n(111);i.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){var i=n(60);if(i){var o=n(21),a=n(52).compare;if(a(i.version,[2,3])<0)throw o.Error("E0013");n(490),n(492),n(493),n(494),n(495),n(496),n(497)}},function(e,t,n){var i=n(2),o=n(60),a=n(26),r=n(21),s=n(33),l=n(1).isPlainObject,u=n(153),d=n(17),c=n(491).KoTemplate,h=n(48),p=n(235),f=n(237).getClosestNodeWithContext,g=n(28),_="dxKoLocks",m="dxKoCreation",v=[],y=function(e,t){t.subclassOf(h)&&v.push(e),o.bindingHandlers[e]={init:function(e,n){var u,h,v=i(e),y=a(),w={},x=g().knockout,b=x&&x.isBindingPropertyPredicateName,C={onInitializing:function(){w=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());u&&u.beginUpdate(),h=b&&e&&e[b],E(e),u&&u.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),u=this},modelByElement:function(e){if(e.length){var t=f(e.get(0));return o.dataFor(t)}},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:y,integrationOptions:{watchMethod:function(e,t,n){n=n||{};var i=n.skipImmediate,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var a=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(a),o.applyBindings(e.model,a)}}}},createTemplate:function(e){return new c(e)}}},k={},I=function(e,t,n){var i=v.data(_),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(k[e]=t),u){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(u.option,u,[e,a]):u.option(e,a)}finally{i.release(e)}}else C[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in k){var i=this._$element,o=i.data(_);if(!o.locked(t)){o.obtain(t);try{k[t](n)}finally{o.release(t)}}}},D=function(){y.add(S),v.data(m,!0).data(_,new p),new t(v,C),C=null},T=function(t,n,i){if(i!==b)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];I(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(w[i]||E(a,i))}else I(i,t[n],!1)},E=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&T(e,n,t?[t,n].join("."):n)};return D(),{controlsDescendantBindings:t.subclassOf(d)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=v)};u.add(function(e,t){y(e,t)})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.KoTemplate=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(2),u=i(l),d=n(12),c=n(60),h=i(c),p=n(1),f=n(69),g=n(11),_=n(237),m=function(e){var t=(0,d.createElement)("div");h.default.applyBindingsToNode(t,null,e);var n=h.default.contextFor(t);return h.default.cleanNode(t),n};t.KoTemplate=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._element=e,n._template=(0,u.default)("<div>").append((0,g.normalizeTemplateElement)(e)),n._registerKoTemplate(),n}return r(t,e),s(t,[{key:"_registerKoTemplate",value:function(){var e=this._template.get(0);new h.default.templateSources.anonymousTemplate(e).nodes(e)}},{key:"_prepareDataForContainer",value:function(e,t){if(t&&t.length){var n=(0,_.getClosestNodeWithContext)(t.get(0)),i=h.default.contextFor(n);if(e=void 0!==e?e:h.default.dataFor(n)||{},i)return e===i.$data?i:i.createChildContext(e)}return m(e).createChildContext(e)}},{key:"_renderCore",value:function(e){var t=this._prepareDataForContainer(e.model,(0,u.default)(e.container));(0,p.isDefined)(e.index)&&(t.$index=e.index);var n=(0,u.default)("<div>").appendTo(e.container),i=void 0;return h.default.renderTemplate(this._template.get(0),t,{afterRender:function(e){i=(0,u.default)(e)}},n.get(0),"replaceNode"),i}},{key:"source",value:function(){return(0,u.default)(this._element).clone()}},{key:"dispose",value:function(){this._template.remove()}}]),t}(f.TemplateBase)},function(e,t,n){var i=n(2),o=n(5),a=n(60),r=n(1).isPlainObject,s=n(114),l=n(8);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var u=i(e),d=a.utils.unwrapObservable(n()),c=d.execute?d.execute:d;o.off(u,t),o.on(u,t,r(d)?d:{},function(e){c.call(l,l,e)})}}})},function(e,t,n){var i=n(60),o=n(56);i.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:i.unwrap(t())}}},i.bindingHandlers.dxIcon={init:function(e,t){var n=i.utils.unwrapObservable(t())||{},a=o.getImageContainer(n);i.virtualElements.emptyNode(e),a&&i.virtualElements.prepend(e,a.get(0))},update:function(e,t){var n=i.utils.unwrapObservable(t())||{},a=o.getImageContainer(n);i.virtualElements.emptyNode(e),a&&i.virtualElements.prepend(e,a.get(0))}},i.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(3),a=n(0),r=n(15),s=i(r),l=n(82),u=i(l),d=n(87),c=i(d),h=n(6),p=n(34),f=i(p),g=n(60),_=i(g),m="valid",v="pending",y=s.default.inherit({ctor:function(e,t){var n=this,i=t.name,r=t.validationRules;this.target=e,this.name=i,this.isValid=_.default.observable(!0),this.validationError=_.default.observable(),this.validationErrors=_.default.observable(),this.validationStatus=_.default.observable(m),this.validationRules=(0,o.map)(r,function(e,t){return(0,a.extend)({},e,{validator:n,index:t})}),this._validationInfo={result:null,deferred:null}},_updateValidationResult:function(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var n=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,a.extend)({},e,{
complete:n})}},validate:function(){var e=this,t=this._validationInfo&&this._validationInfo.result,n=this.target();if(t&&t.status===v&&t.value===n)return(0,a.extend)({},t);var i=c.default.validate(n,this.validationRules,this.name);return i.id=(new f.default).toString(),this._applyValidationResult(i),i.complete&&i.complete.then(function(t){t.id===e._validationInfo.result.id&&e._applyValidationResult(t)}),(0,a.extend)({},this._validationInfo.result)},reset:function(){this.target(null);var e={id:null,isValid:!0,brokenRule:null,pendingRules:null,status:m,complete:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){return e.validator=this,this._updateValidationResult(e),this.target.dxValidator.isValid(this._validationInfo.result.isValid),this.target.dxValidator.validationError(this._validationInfo.result.brokenRule),this.target.dxValidator.validationErrors(this._validationInfo.result.brokenRules),this.target.dxValidator.validationStatus(this._validationInfo.result.status),e.status===v?(this._validationInfo.deferred||(this._validationInfo.deferred=new h.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this.fireEvent("validating",[this._validationInfo.result])):void(e.status!==v&&(this.fireEvent("validated",[e]),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null)))}}).include(u.default);_.default.extenders.dxValidator=function(e,t){return e.dxValidator=new y(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},c.default.registerModelForValidation=function(e){(0,o.each)(e,function(t,n){_.default.isObservable(n)&&n.dxValidator&&c.default.registerValidatorInGroup(e,n.dxValidator)})},c.default.unregisterModelForValidation=function(e){(0,o.each)(e,function(t,n){_.default.isObservable(n)&&n.dxValidator&&c.default.removeRegisteredValidator(e,n.dxValidator)})},c.default.validateModel=c.default.validateGroup},function(e,t,n){var i=n(60),o=n(89);o.inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(38),o=i.afterCleanData,a=i.strategyChanging,r=n(60),s=n(52).compare,l=r.utils.domNodeDisposal.cleanExternalData,u=function(){o(function(e){for(var t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||r.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery}),r.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])}},d=function(){o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l};u(),a.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&d()})},function(e,t,n){var i=n(60),o=n(52).compare,a=n(38).strategyChanging,r=function(e){var t=function(e,t){var n=function(){i.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var o=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return o.call(this,e,n)};var a=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),a.apply(this,arguments)};var r=e.fn.replaceWith;e.fn.replaceWith=function(){var e=r.apply(this,arguments);return this.parent().length||t(this,!0),e}};a.add(function(e){var t=!!e.fn;t&&o(e.fn.jquery,[2,0])<0&&r(e)})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}n(117);var o=n(72),a=i(o),r=n(10),s=i(r),l=n(76),u=i(l);if(n(72),a.default&&a.default.formatMessage){var d="en",c=a.default.loadMessages;a.default.loadMessages=function(e){s.default.load(e)};var h={engine:function(){return"globalize"},ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),c(e)},getMessagesByLocales:function(){return a.default.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||u.default.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||n===d||(i=this.getFormatter(e,d)),i},_formatterByGlobalize:function(e,t){var n=t&&t!==u.default.locale()?new a.default(t):a.default,i=void 0;return this._messageLoaded(e,t)&&(i=n.messageFormatter(e)),i},_messageLoaded:function(e,t){var n=t?new a.default(t).cldr:a.default.locale(),i=n.get(["globalize-messages/{bundle}",e]);return!!i},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};s.default.inject(h)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}n(117),n(186),n(72);var o=n(72),a=i(o),r=n(32),s=i(r),l=n(1),u=n(14),d=n(3),c=i(d),h={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},p={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y","long":"MMMM d, y",medium:"MMM d, y","short":"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz","long":"h:mm:ss a z",medium:"h:mm:ss a","short":"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}","long":"{1} 'at' {0}",medium:"{1}, {0}","short":"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} \u2013 {1}",d:{d:"d \u2013 d"},h:{a:"h a \u2013 h a",h:"h \u2013 h a"},H:{H:"HH \u2013 HH"},hm:{a:"h:mm a \u2013 h:mm a",h:"h:mm \u2013 h:mm a",m:"h:mm \u2013 h:mm a"},Hm:{H:"HH:mm \u2013 HH:mm",m:"HH:mm \u2013 HH:mm"},hmv:{a:"h:mm a \u2013 h:mm a v",h:"h:mm \u2013 h:mm a v",m:"h:mm \u2013 h:mm a v"},Hmv:{H:"HH:mm \u2013 HH:mm v",m:"HH:mm \u2013 HH:mm v"},hv:{a:"h a \u2013 h a v",h:"h \u2013 h a v"},Hv:{H:"HH \u2013 HH v"},M:{M:"M \u2013 M"},Md:{d:"M/d \u2013 M/d",M:"M/d \u2013 M/d"},MEd:{d:"E, M/d \u2013 E, M/d",M:"E, M/d \u2013 E, M/d"},MMM:{M:"MMM \u2013 MMM"},MMMd:{d:"MMM d \u2013 d",M:"MMM d \u2013 MMM d"},MMMEd:{d:"E, MMM d \u2013 E, MMM d",M:"E, MMM d \u2013 E, MMM d"},y:{y:"y \u2013 y"},yM:{M:"M/y \u2013 M/y",y:"M/y \u2013 M/y"},yMd:{d:"M/d/y \u2013 M/d/y",M:"M/d/y \u2013 M/d/y",y:"M/d/y \u2013 M/d/y"},yMEd:{d:"E, M/d/y \u2013 E, M/d/y",M:"E, M/d/y \u2013 E, M/d/y",y:"E, M/d/y \u2013 E, M/d/y"},yMMM:{M:"MMM \u2013 MMM y",y:"MMM y \u2013 MMM y"},yMMMd:{d:"MMM d \u2013 d, y",M:"MMM d \u2013 MMM d, y",y:"MMM d, y \u2013 MMM d, y"},yMMMEd:{d:"E, MMM d \u2013 E, MMM d, y",M:"E, MMM d \u2013 E, MMM d, y",y:"E, MMM d, y \u2013 E, MMM d, y"},yMMMM:{M:"MMMM \u2013 MMMM y",y:"MMMM y \u2013 MMMM y"}}}}}}}}},f={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},g=["skeleton","date","time","datetime","raw"];if(a.default&&a.default.formatDate){"en"===a.default.locale().locale&&(a.default.load(f,h,p),a.default.locale("en"));var _={},m={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},v={engine:function(){return"globalize"},_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=m[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&c.default.each(i.parts,function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))}),o}},_getFormatStringByPath:function(e){return a.default.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=a.default.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=a.default.locale().main("dates/calendars/gregorian/months/"+("format"===t?t:"stand-alone")+"/"+(e||"wide"));return c.default.map(n,function(e){return e})},getDayNames:function(e){var t=a.default.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return c.default.map(t,function(e){return e})},getTimeSeparator:function(){return a.default.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},format:function(e,t){if(e){if(!t)return e;var n=void 0,i=void 0;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if(t=t.type||t,"string"==typeof t)i=a.default.locale().locale+":"+t,n=_[i],n||(t={raw:this._getPatternByFormat(t)||t},n=_[i]=a.default.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=a.default.dateFormatter(t)}return n(e)}},parse:function(e,t){if(e){if(!t||"function"==typeof t||(0,l.isObject)(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return a.default.parseDate(e)}return t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),a.default.parseDate(e,t))}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<g.length;t++)if(Object.prototype.hasOwnProperty.call(e,g[t]))return!0},firstDayOfWeekIndex:function(){var e=a.default.locale().supplemental.weekData.firstDay();return(0,u.inArray)(e,this._getDayKeys())},_getDayKeys:function(){var e=a.default.locale().main("dates/calendars/gregorian/days/format/short");return c.default.map(e,function(e,t){return t})}};s.default.resetInjection(),s.default.inject(v)}},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(219),r=i(a);n(117),n(186),n(115),n(72);var s=n(72),l=i(s),u=n(28),d=i(u),c=n(51),h=i(c),p={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},f={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}};if(l.default&&l.default.formatCurrency){"en"===l.default.locale().locale&&(l.default.load(p,f),l.default.locale("en"));var g={},_=function(e,t){var n=void 0,i=void 0;return i="object"===("undefined"==typeof t?"undefined":o(t))?l.default.locale().locale+":"+e+":"+JSON.stringify(t):l.default.locale().locale+":"+e+":"+t,n=g[i],n||(n=g[i]=l.default.currencyFormatter(e,t)),n},m={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||(0,d.default)().defaultCurrency;return _(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=(0,d.default)().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return _(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=(0,d.default)().defaultCurrency),l.default.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t=this.getCurrencySymbol(e).symbol,n=l.default.cldr.main("numbers/currencyFormats-numberSystem-latn").accounting;return(0,r.default)(t,n)}};h.default.inject(m)}},function(e,t,n){e.exports=n(46).DataSource},function(e,t,n){var i=n(5),o=n(12),a=n(7),r=a.getWindow(),s=n(15),l=s.abstract,u=n(37).errors,d=n(71),c=s.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,a=Math.max(100,t.flushInterval||1e4);if(!n){var s=this.save.bind(this);setInterval(s,a),i.on(r,"beforeunload",s),r.cordova&&o.listen(o.getDocument(),"pause",s,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:l,_saveImpl:l}),h=c.inherit({ctor:function(e,t){var n=t.name;if(!n)throw u.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=r.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?r.localStorage.setItem(this._key,JSON.stringify(e)):r.localStorage.removeItem(this._key)}}),p={dom:h},f=d.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new p[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");e.exports=f},function(e,t,n){function i(e){return/^(localhost$|127\.)/i.test(e)}var o,a,r=n(21),s=n(7).getWindow(),l=n(239),u=function(e){this.config=e,o="ms-appx:"===s.location.protocol,a=i(s.location.hostname)};u.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw r.Error("E0006");return l.isProxyUsed()?l.formatProxyUrl(t.local):t.production&&(o&&!Debug.debuggerEnabled||!o&&!a)?t.production:t.local}},e.exports=u},function(e,t,n){n(238),DevExpress.data.ODataStore=n(240),DevExpress.data.ODataContext=n(505),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(102).keyConverters,DevExpress.data.EdmLiteral=n(102).EdmLiteral;var i=n(102);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(157).odata},function(e,t,n){var i=n(15),o=n(0).extend,a=n(1),r=n(3).each,s=n(37),l=n(240),u=n(241),d=n(6),c=d.when,h=d.Deferred;n(157);var p=i.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,r(e.entities||[],function(n,i){t[n]=new l(o({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var i,o=new h,r=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(r=u.formatFunctionInvocationUrl(r,u.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),c(this._sendRequest(r,n,u.escapeServiceOperationParams(t,this.version()),i)).done(function(t){a.isPlainObject(t)&&e in t&&(t=t[e]),o.resolve(t)}).fail(this._errorHandler).fail(s._errorHandler).fail(o.reject),o.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return a.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(u.SharedMethods);e.exports=p},function(e,t,n){var i=n(175);n(214),n(507);var o=i.ui=n(509);o.themes=n(31),o.setTemplateEngine=n(159).setTemplateEngine,o.dialog=n(242),o.notify=n(299),o.repaintFloatingActionButton=n(511),o.dxActionSheet=n(243),o.dxAutocomplete=n(513),o.dxBox=n(194),o.dxButton=n(35),o.dxDropDownButton=n(539),o.dxButtonGroup=n(313),o.dxCalendar=n(251),o.dxCheckBox=n(105),o.dxColorBox=n(314),o.dxDateBox=n(195),o.dxDrawer=n(317),o.dxDeferRendering=n(565),o.dxDropDownBox=n(566),o.dxDropDownMenu=n(198),o.dxFileUploader=n(254),o.dxForm=n(121),o.dxGallery=n(573),o.dxHtmlEditor=n(574),o.dxList=n(103),o.dxLoadIndicator=n(80),o.dxLoadPanel=n(167),o.dxLookup=n(598),o.dxMap=n(599),o.dxMultiView=n(321),o.dxNavBar=n(603),o.dxNumberBox=n(119),o.dxOverlay=n(59),o.dxPopover=n(142),o.dxPopup=n(44),o.dxProgressBar=n(255),o.dxRadioGroup=n(331),o.dxRangeSlider=n(606),o.dxResizable=n(178),o.dxResponsiveBox=n(319),o.dxScrollView=n(118),o.dxSelectBox=n(95),o.dxSlider=n(332),o.dxSpeedDialAction=n(608),o.dxSwitch=n(335),o.dxTabPanel=n(320),o.dxTabs=n(200),o.dxTagBox=n(260),o.dxTextArea=n(336),o.dxTextBox=n(93),o.dxTileView=n(610),o.dxToast=n(300),o.dxToolbar=n(168),o.dxTooltip=n(169),o.dxTrackBar=n(256),o.dxDraggable=n(193),o.dxSortable=n(248),i.validationEngine=n(87),o.dxValidationSummary=n(257),o.dxValidationGroup=n(324),o.dxValidator=n(199),n(611),o.CollectionWidget=n(55),o.dxDropDownEditor=n(166),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(175),a=i(o),r=n(508),s=i(r);a.default.fileProviders=s.default,e.exports=s.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(136),a=i(o),r=n(296),s=i(r),l=n(297),u=i(l);e.exports=a.default.fileProviders=a.default.fileProviders||{},a.default.fileProviders.Remote=s.default,a.default.fileProviders.Custom=u.default},function(e,t,n){n(136),e.exports=DevExpress.ui={}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(55),a=i(o),r=n(6),s=n(4),l=a.default.inherit({_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new r.Deferred,n=new r.Deferred,i=this;this._deferredItems[e.index]=n;var o=this.callBase.call(i,e);return n.done(function(){t.resolve(o)}),t.promise()},_createItemByTemplate:function(e,t){var n=this;return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:function(){n._deferredItems[t.index].resolve()}})},_postProcessRenderItems:s.noop,_renderItemsAsync:function(){var e=this,t=new r.Deferred;return r.when.apply(this,this._deferredItems).done(function(){e._postProcessRenderItems(),t.resolve()}),t.promise()},_clean:function(){this.callBase(),this._deferredItems=[]}});e.exports=l},function(e,t,n){var i=n(301);e.exports=i.repaint},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(5),p=i(h),f=n(8),g=n(20),_=i(g),m=n(56),v=n(59),y=i(v),w=n(74),x=i(w),b=n(31),C=i(b),k="dx-fa-button",I="dx-fa-button-icon",S="dx-fa-button-label",D="dx-fa-button-label-wrapper",T="dx-fa-button-content-reverse",E=".dx-overlay-content",O=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1,width:"auto",zIndex:1500})}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return C.default.isMaterial()},options:{useInkRipple:!0}}])}},{key:"_render",value:function(){this.$element().addClass(k),this._renderIcon(),this._renderLabel(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()}},{key:"_renderLabel",value:function(){!!this._$label&&this._$label.remove();var e=this.option("label");if(!e)return void(this._$label=null);var t=(0,d.default)("<div>").addClass(S),n=(0,d.default)("<div>").addClass(D);this._$label=n.prependTo(this.$content()).append(t.text(e)),this.$content().toggleClass(T,this._isPositionLeft(this.option("parentPosition")))}},{key:"_isPositionLeft",value:function(e){var t=e?e.at?e.at.x?e.at.x:e.at:"string"==typeof e?e:"":"";return"left"===t.split(" ")[0]}},{key:"_renderButtonIcon",value:function(e,t,n){!!e&&e.remove(),e=(0,d.default)("<div>").addClass(n);var i=(0,m.getImageContainer)(t);return e.append(i).appendTo(this.$content()),e}},{key:"_renderIcon",value:function(){this._$icon=this._renderButtonIcon(this._$icon,this._options.icon,I)}},{key:"_renderWrapper",value:function(){this._options.callOverlayRenderShading&&l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderWrapper",this).call(this)}},{key:"_getVisibleActions",value:function(e){var t=e||this.option("actions");return t.filter(function(e){return e.option("visible")})}},{key:"_getActionComponent",value:function(){return this.option("actionComponent")||this._getVisibleActions()[0]||this.option("actions")[0]}},{key:"_initContentReadyAction",value:function(){this._contentReadyAction=this._getActionComponent()._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]},!0)}},{key:"_fireContentReadyAction",value:function(){this._contentReadyAction({actionElement:this.$element()})}},{key:"_updateZIndexStackPosition",value:function(){var e=this.option("zIndex");this._$wrapper.css("zIndex",e),this._$content.css("zIndex",e)}},{key:"_fixWrapperPosition",value:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)?"fixed":"absolute")}},{key:"_setClickAction",value:function(){var e=this,t=(0,f.addNamespace)(_.default.name,this.NAME),n=this.$element().find(E);p.default.off(n,t),p.default.on(n,t,function(t){var n={event:t,actionElement:e.element(),element:e._getActionComponent().$element()};e._clickAction(n)})}},{key:"_defaultActionArgs",value:function(){return{component:this._getActionComponent()}}},{key:"_renderClick",value:function(){this._clickAction=this._getActionComponent()._createActionByOption("onClick"),this._setClickAction()}},{key:"_renderInkRipple",value:function(){this._inkRipple=x.default.render()}},{key:"_getInkRippleContainer",value:function(){return this._$icon}},{key:"_toggleActiveState",value:function(e,n,i){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_toggleActiveState",this).apply(this,arguments),this._inkRipple){var o={element:this._getInkRippleContainer(),event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_optionChanged",value:function(e){switch(e.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"label":this._renderLabel();break;case"visible":this._currentVisible=e.previousValue,e.value?this._show():this._hide();break;case"useInkRipple":this._render();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(y.default);e.exports=O},function(e,t,n){var i=n(2),o=n(4).noop,a=n(9),r=n(0).extend,s=n(244),l=n(6).Deferred,u="dx-autocomplete",d="dx-autocomplete-popup-wrapper",c=s.inherit({_supportedKeys:function(){var e=this._list?this._list.option("focusedElement"):null,t=this.callBase();return e=e&&i(e),r({},t,{upArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!this._calcNextItem(-1))||(this._clearFocusedItem(),!1)},downArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!this._calcNextItem(1))||(this._clearFocusedItem(),!1)},enter:function(){return e||this.close(),t.enter.apply(this,arguments),this.option("opened")}})},_getDefaultOptions:function(){return r(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass(u),this.setAria("autocomplete","inline")},_loadValue:function(){return(new l).resolve(this.option("value"))},_displayGetterExpr:function(){return this.option("valueExpr")},_setSelectedItem:function(e){this.callBase(e),this.option("displayValue",this.option("value"))},_popupConfig:function(){return r(this.callBase(),{closeOnOutsideClick:function(e){return!i(e.target).closest(this.$element()).length}.bind(this)})},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_popupWrapperClass:function(){return this.callBase()+" "+d},_listConfig:function(){return r(this.callBase(),{pageLoadMode:"none"})},_listItemClickHandler:function(e){var t=this._displayGetter(e.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:o,_searchCanceled:function(){this.callBase(),this.close()},_dataSourceOptions:function(){return{paginate:!0}},_searchDataSource:function(){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(e){var t=this._input().val()||null;return this.callBase(e,t)},_optionChanged:function(e){switch(e.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(e);break;default:this.callBase(e)}},reset:function(){this.callBase(),this.close()}});a("dxAutocomplete",c),e.exports=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(5),h=i(c),p=n(10),f=i(p),g=n(191),_=i(g),m=n(35),v=i(m),y="dx-dropdowneditor-button",w="dx-dropdowneditor-button-visible",x="dxDropDownEditor-selectLabel",b=function(e){
function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_attachEvents",value:function(e){var t=this.editor;e.option("onClick",function(e){!t.option("openOnFieldClick")&&t._openHandler(e)}),h.default.on(e.$element(),"mousedown",function(e){t.$element().is(".dx-state-focused")&&e.preventDefault()})}},{key:"_create",value:function(){var e=this.editor,t=(0,d.default)("<div>"),n=this._getOptions();this._addToContainer(t);var i=e._createComponent(t,v.default,n);return i.setAria("label",f.default.format(x)),this._legacyRender(e.$element(),t,n.visible),{$element:t,instance:i}}},{key:"_getOptions",value:function(){var e=this.editor,t=this._isVisible(),n=e.option("readOnly"),i=e._getTemplateByOption("dropDownButtonTemplate");return{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:n,visible:t,template:i}}},{key:"_isVisible",value:function(){var e=this.editor;return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_isVisible",this).call(this)&&e.option("showDropDownButton")}},{key:"_legacyRender",value:function(e,t,n){e.toggleClass(w,n),t&&(t.removeClass("dx-button"),t.addClass(y))}},{key:"update",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);if(e){var n=this.editor,i=this.instance,o=n.$element(),a=this._getOptions();i&&i.option(a),this._legacyRender(o,i&&i.$element(),a.visible)}}}]),t}(_.default);t.default=b},function(e,t,n){var i=n(2),o=n(7),a=o.getWindow(),r=o.getNavigator(),s=n(25),l=n(5),u=n(16),d=n(14).inArray,c=n(0).extend,h=n(9),p=n(302),f=n(8),g=r.userAgent,_=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],m="dx-textbox",v="dx-searchbox",y="dx-icon",w="dx-icon-search",x=p.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return c(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass(m),this.callBase(),this.setAria("role","textbox")},_renderContentImpl:function(){this._renderMaxLengthHandlers(),this.callBase()},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_renderMaxLengthHandlers:function(){this._isAndroidOrIE()&&(l.on(this._input(),f.addNamespace("keydown",this.NAME),this._onKeyDownCutOffHandler.bind(this)),l.on(this._input(),f.addNamespace("change",this.NAME),this._onChangeCutOffHandler.bind(this)))},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var e=this._getMaxLength();e&&e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(v),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(v),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=i("<div>").addClass(y).addClass(w);e.prependTo(this._input().parent()),this._$searchIcon=e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp(),this._renderMaxLengthHandlers();break;case"mask":this.callBase(e),this._toggleMaxLengthProp();break;default:this.callBase(e)}},_onKeyDownCutOffHandler:function(e){var t=this._getMaxLength();if(t){var n=i(e.target),o=f.normalizeKeyName(e);return this._cutOffExtraChar(n),n.val().length<t||d(o,_)!==-1||""!==a.getSelection().toString()}return!0},_onChangeCutOffHandler:function(e){var t=i(e.target);this.option("maxLength")&&this._cutOffExtraChar(t)},_cutOffExtraChar:function(e){var t=this._getMaxLength(),n=e.val();t&&n.length>t&&e.val(n.substr(0,t))},_getMaxLength:function(){var e=!!this.option("mask");return e?null:this.option("maxLength")},_isAndroidOrIE:function(){var e=u.real(),t=e.version.join(".");return s.msie||"android"===e.platform&&t&&/^(2\.|4\.1)/.test(t)&&!/chrome/i.test(g)}});h("dxTextBox",x),e.exports=x},function(e,t,n){var i=n(2),o=n(303),a=n(16),r=n(3).each,s=n(8),l=n(5),u=n(0).extend,d=n(65).focused,c=n(1).isDefined,h=n(10),p=n(4).noop,f=n(45),g=n(132),_=n(517),m=n(518),v=n(522).default,y=n(523).default,w=function(){return{}},x=" ",b="\\",C="dx-texteditor-masked",k="forward",I="backward",S={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return T(e)},l:function(e){return T(e)||E(e)},C:/\S/,c:/./,A:function(e){return T(e)||D(e)},a:function(e){return T(e)||D(e)||E(e)}},D=function(e){return/[0-9]/.test(e)},T=function(e){var t=e.charCodeAt();return 64<t&&t<91||96<t&&t<123||t>127},E=function(e){return" "===e},O=m.inherit({_getDefaultOptions:function(){return u(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:h.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},n=e.callBase();return r(t,function(t,i){var o=n[t];n[t]=function(t){e.option("mask")&&i.call(e,t),o&&o(t)}}),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){var e=a.real();this._maskStrategy=e.android&&e.version[0]>4?new y(this):new v(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){var e=this._onMouseWheel!==p;if(e){var t=this._input(),n=s.addNamespace(g.name,this.NAME),i=this._createAction(function(e){if(d(t)){var n=e.event;this._onMouseWheel(n),n.preventDefault(),n.stopPropagation()}}.bind(this));l.off(t,n),l.on(t,n,function(e){i({event:e})})}},_onMouseWheel:p,_render:function(){this.callBase(),this._renderMask(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=i("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(C),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(C),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(e,t){var n=o;o=w;try{e.apply(this,t)}finally{o=n}},_changeHandler:function(e){var t=this._input(),n=t.val();if(n!==this._changedValue){this._changedValue=n;var i=s.createEvent(e,{type:"change"});l.trigger(t,i)}},_parseMask:function(){this._maskRules=u({},S,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new _.EmptyMaskRule;var n=t[e],i=n===b,o=i?new _.StubMaskRule({maskChar:t[e+1]}):this._getMaskRule(n);return o.next(this._parseMaskRule(e+1+i)),o},_getMaskRule:function(e){var t;return r(this._maskRules,function(n,i){if(n===e)return t={pattern:n,allowedChars:i},!1}),c(t)?new _.MaskRule(u({maskChar:this.option("maskChar")},t)):new _.StubMaskRule({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_replaceSelectedText:function(e,t,n){if(void 0===n)return e;var i=e.slice(0,t.start),o=e.slice(t.end),a=i+n+o;return a},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return f.isEmpty(this._value)},_shouldShowMask:function(){var e=this.option("showMaskMode");return"onFocus"!==e||(d(this._input())||!this._isValueEmpty())},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain){var e=this._maskRulesChain.text();if(this._showMaskPlaceholder(),this._$hiddenElement){var t=this._maskRulesChain.value(),n=this._isMaskedValueMode()?e:t;this._$hiddenElement.val(f.isEmpty(t)?"":n)}}return this.callBase()},_valueChangeEventHandler:function(e){return this._maskRulesChain?(this._saveValueChangeEvent(e),void this.option("value",this._convertToValue().replace(/\s+$/,""))):void this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey(s.normalizeKeyName(e))||e.ctrlKey||e.metaKey},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return e=e||{},e.index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return e=this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||""},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g"),x)},_maskKeyHandler:function(e,t){var n=this;if(!this.option("readOnly")){this.setForwardDirection(),e.preventDefault(),this._handleSelection();var i=this._input().val(),o=function(){i!==n._input().val()&&n._maskStrategy.runWithoutEventProcessing(function(){return l.trigger(n._input(),"input")})},a=t();a?a.then(o):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),o())}},_handleKey:function(e,t){this._direction(t||k),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(x);this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),n=this.isForwardDirection()?t.start:t.start-1,i=this.isForwardDirection()?t.end:t.end-1,o=n===i?1:i-n;this._handleChain({text:e,start:n,length:o})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._maskRulesChain.adjustedCaret(this._caret().start,this.isForwardDirection(),e);this._caret({start:t,end:t})},_moveCaret:function(){var e=this._caret().start,t=e+(this.isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(t)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:n,end:n})},_caret:function(e){var t=this._input();if(t.length)return arguments.length?void o(t,e):o(t)},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){return arguments.length?void(this._typingDirection=e):this._typingDirection},setForwardDirection:function(){this._direction(k)},setBackwardDirection:function(){this._direction(I)},isForwardDirection:function(){return this._direction()===k},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=f.isEmpty(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}});e.exports=O},function(e,t,n){var i=n(15),o=n(0).extend,a=n(14).inArray,r=n(1),s=n(4).noop,l=r.isFunction,u=" ",d=i.inherit({ctor:function(e){this._value=u,o(this,e)},next:function(e){return arguments.length?void(this._next=e):this._next},text:s,value:s,rawValue:s,handle:s,_prepareHandlingArgs:function(e,t){t=t||{};var n=Object.prototype.hasOwnProperty.call(e,"value")?"value":"text";return e[n]=r.isDefined(t.str)?t.str:e[n],e.start=r.isDefined(t.start)?t.start:e.start,e.length=r.isDefined(t.length)?t.length:e.length,e.index=e.index+1,e},reset:s,clear:s,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,t,n){return t?this._adjustedForward(e,0,n):this._adjustedBackward(e,0,n)},_adjustedForward:s,_adjustedBackward:s,isValid:s}),c=d.inherit({next:s,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),h=d.inherit({text:function(){return(this._value!==u?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value")?e.value:e.text;if(!t||!t.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var n=t[0],i=t.substring(1);return this._tryAcceptChar(n,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))},clear:function(e){this._tryAcceptChar(u,e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,t){if(this._accepted(!1),this._isAllowed(e,t)){var n=e===u?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+n+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){return arguments.length?void(this._isAccepted=!!e):!!this._isAccepted},first:function(e){return this._value===u?e||0:this.callBase(e)},_isAllowed:function(e,t){return e===u||this._isValid(e,t)},_isValid:function(e,t){var n=this.allowedChars;return n instanceof RegExp?n.test(e):l(n)?n(e,t.index,t.fullText):Array.isArray(n)?a(e,n)>-1:n===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,n){return t>=e?t:this.next()._adjustedForward(e,t+1,n)||t+1},_adjustedBackward:function(e,t){return t>=e-1?e:this.next()._adjustedBackward(e,t+1)||t+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}}),p=h.inherit({value:function(){return this.next().value()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value"),n=t?e.value:e.text;if(!n.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var i=n[0],o=n.substring(1);this._tryAcceptChar(i);var a=this._isAllowed(i)?this._prepareHandlingArgs(e,{str:o,length:e.length-1}):e;return this.next().handle(a)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},first:function(e){return e=e||0,this.next().first(e+1)},_adjustedForward:function(e,t,n){return t>=e&&n===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,n)},_adjustedBackward:function(e,t){return t>=e-1?0:this.next()._adjustedBackward(e,t+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});e.exports.MaskRule=h,e.exports.StubMaskRule=p,e.exports.EmptyMaskRule=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if((0,f.isDefined)(e)&&!Array.isArray(e))throw B.default.Error("E1053")}var a=n(2),r=i(a),s=n(12),l=i(s),u=n(5),d=i(u),c=n(11),h=i(c),p=n(65),f=n(1),g=n(0),_=n(14),m=n(3),v=n(31),y=i(v),w=n(48),x=i(w),b=n(8),C=i(b),k=n(23),I=i(k),S=n(519),D=i(S),T=n(520),E=i(T),O=n(28),A=i(O),P=n(19),B=i(P),M=n(6),F=n(80),R=i(F),V="dx-texteditor",H="dx-texteditor-input-container",L="dx-texteditor-input",z="."+L,$="dx-texteditor-container",N="dx-texteditor-buttons-container",W="dx-placeholder",j="dx-texteditor-empty",q="dx-editor-",G=[q+"outlined",q+"filled",q+"underlined"],K="dx-state-invisible",U="dx-pending-indicator",Y="dx-validation-pending",X="dx-valid",Z=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],Q=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],J=x.default.inherit({ctor:function(e,t){t&&o(t.buttons),this._buttonCollection=new E.default(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(e){return(0,f.isDefined)(e)&&e!==!1?e:""},stylingMode:(0,A.default)().editorStylingMode||"outlined"})},_defaultOptionsRules:function(){var e=y.default.current();return this.callBase().concat([{device:function(){return y.default.isMaterial(e)},options:{stylingMode:(0,A.default)().editorStylingMode||"underlined"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:D.default}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(z).first()},_isFocused:function(){return(0,p.focused)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find("."+N).eq(0)},_isControlKey:function(e){return Q.indexOf(e)!==-1},_renderStylingMode:function(){var e=this,t="stylingMode",n=this.option(t);G.forEach(function(t){return e.$element().removeClass(t)});var i=q+n;if(G.indexOf(i)===-1){var o=this._getDefaultOptions()[t],a=this._convertRulesToOptions(this._defaultOptionsRules())[t];i=q+(a||o)}this.$element().addClass(i),this._updateButtonsStyling(n)},_initMarkup:function(){this.$element().addClass(V),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue()},_render:function(){this._renderPlaceholder(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent(),this.callBase()},_renderInput:function(){this._$textEditorContainer=(0,r.default)("<div>").addClass($).appendTo(this.$element()),this._$textEditorInputContainer=(0,r.default)("<div>").addClass(H).appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer:function(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(Y);var e=this._getInputContainer(),t=(0,r.default)("<div>").addClass(U).appendTo(e);this._pendingIndicator=this._createComponent(t,R.default)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(Y))},_renderValidationState:function(){this.callBase();var e="pending"===this.option("validationStatus"),t=this.$element();e?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),this._showValidMark||(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),t.toggleClass(X,this._showValidMark)},_renderButtonContainers:function(){var e=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,this._$textEditorContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,this._$textEditorContainer)},_clean:function(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this.callBase()},_createInput:function(){var e=(0,r.default)("<input>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_setSubmitElementName:function(e){var t=this.option("inputAttr.name");return this.callBase(e||t||"")},_applyInputAttributes:function(e,t){e.attr("autocomplete","off").attr(t).addClass(L).css("minHeight",this.option("height")?"0":"")},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){var t=this;(0,m.each)(this.option("buttons"),function(n,i){if(i.options&&!i.options.stylingMode){var o=t.getButton(i.name);o.option&&o.option("stylingMode","underlined"===e?"text":"contained")}})},_renderValue:function(){var e=this._renderInputValue();return e.promise()},_renderInputValue:function(e){e=e||this.option("value");var t=this.option("text"),n=this.option("displayValue"),i=this.option("displayValueFormatter");return void 0!==n&&null!==e?t=i(n):(0,f.isDefined)(t)||(t=i(e)),this.option("text",t),this._input().val()!==((0,f.isDefined)(t)?t:"")?this._renderDisplayText(t):this._toggleEmptinessEventHandler(),(new M.Deferred).resolve()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.$element().toggleClass(j,e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this._$placeholder&&this._$placeholder.toggleClass(K,!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();e?t.attr("disabled",!0):t.removeAttr("disabled")},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),n=this.option("focusStateEnabled");t||!n?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),t=this.option("placeholder"),n=this._$placeholder=(0,r.default)("<div>").attr("data-dx_placeholder",t);n.insertAfter(e),n.addClass(W)},_attachPlaceholderEvents:function(){var e=this,t=C.default.addNamespace(I.default.up,e.NAME);d.default.on(e._$placeholder,t,function(){d.default.trigger(e._input(),"focus")}),e._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,r.default)()},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this._clearValue(),!this._isFocused()&&d.default.trigger(t,"focus"),d.default.trigger(t,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var e=this,t=e._input();(0,m.each)(Z,function(n,i){if(e.hasActionSubscription("on"+i)){var o=e._createActionByOption("on"+i,{excludeValidators:["readOnly"]});d.default.on(t,C.default.addNamespace(i.toLowerCase(),e.NAME),function(t){e._disposed||o({event:t})})}})},_refreshEvents:function(){var e=this,t=this._input();(0,m.each)(Z,function(n,i){d.default.off(t,C.default.addNamespace(i.toLowerCase(),e.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_renderValueChangeEvent:function(){var e=C.default.addNamespace(this._renderValueEventName(),this.NAME+"TextChange"),t=C.default.addNamespace(this.option("valueChangeEvent"),this.NAME+"ValueChange");d.default.on(this._input(),e,this._keyPressHandler.bind(this)),d.default.on(this._input(),t,this._valueChangeEventHandler.bind(this))},_cleanValueChangeEvent:function(){var e=this.NAME+"ValueChange",t=C.default.addNamespace(this._renderValueEventName(),this.NAME+"TextChange");d.default.off(this._input(),"."+e),d.default.off(this._input(),t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_preventNestedFocusEvent:function(e){if(e.isDefaultPrevented())return!0;var t=this._isNestedTarget(e.relatedTarget);return"focusin"===e.type&&(t=t&&this._isNestedTarget(e.target)),t&&e.preventDefault(),t},_isNestedTarget:function(e){return!!this.$element().find(e).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_focusOutHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase((0,r.default)(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();d.default.on(e,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),t=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(t)},_valueChangeEventHandler:function(e,t){this._saveValueChangeEvent(e),this.option("value",arguments.length>1?t:this._input().val()),this._saveValueChangeEvent(void 0)},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),d.default.off(this._input(),"keyup.onEnterKey.dxTextEditor"),d.default.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===C.default.normalizeKeyName(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this.option("text",void 0),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_optionChanged:function(e){var t=e.name;if((0,_.inArray)(t.replace("on",""),Z)>-1)return void this._refreshEvents();switch(t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(e);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),e.value);break;case"stylingMode":this._renderStylingMode();break;case"buttons":e.fullName===e.name&&o(e.value),this._$beforeButtonsContainer&&this._$beforeButtonsContainer.remove(),this._$afterButtonsContainer&&this._$afterButtonsContainer.remove(),this._buttonCollection.clean(),this._renderButtonContainers();break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var t=this._input();"search"===e&&(e="text");try{t.prop("type",e)}catch(e){t.prop("type","text")}},getButton:function(e){return this._buttonCollection.getButton(e)},focus:function(){d.default.trigger(this._input(),"focus")},blur:function(){this._input().is(l.default.getActiveElement())&&h.default.resetActiveElement()},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var e=this._getDefaultOptions();this.option("value")===e.value?(this.option("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,t){var n=this.callBase(e,t),i=e.charAt(0).toUpperCase()+e.substr(1);return Z.indexOf(i)>=0&&this._refreshEvents(),n}});e.exports=J},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(5),h=i(c),p=n(191),f=i(p),g=n(8),_=n(23),m=n(20),v="dx-state-invisible",y="dx-clear-button-area",w="dx-icon-clear",x="dx-icon",b="dx-show-clear-button",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_create",value:function(){var e=(0,d.default)("<span>").addClass(y).append((0,d.default)("<span>").addClass(x).addClass(w));return this._addToContainer(e),this.update(!0),{instance:e,$element:e}}},{key:"_isVisible",value:function(){var e=this.editor;return e._isClearButtonVisible()}},{key:"_attachEvents",value:function(e,t){var n=this.editor,i=n.NAME;h.default.on(t,(0,g.addNamespace)(_.down,i),function(e){"mouse"===e.pointerType?e.preventDefault():n._clearValueHandler(e)}),h.default.on(t,(0,g.addNamespace)(m.name,i),function(e){return n._clearValueHandler(e)})}},{key:"_legacyRender",value:function(e,t){e.toggleClass(b,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);var n=this.editor,i=this.instance,o=n.$element(),a=this._isVisible();i&&i.toggleClass(v,!a),this._legacyRender(o,a)}}]),t}(f.default);t.default=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){var t=function(){if(!e||"object"!==("undefined"==typeof e?"undefined":u(e))||Array.isArray(e))throw m.default.Error("E1053")},n=function(){var t=e.location;"location"in e&&"after"!==t&&"before"!==t&&(e.location="after")},i=function(){if(!("name"in e))throw m.default.Error("E1054")},o=function(){
var t=e.name;if("string"!=typeof t)throw m.default.Error("E1055")};t(),i(),o(),n()}function r(e,t){if(e.indexOf(t)!==-1)throw m.default.Error("E1055",t);e.push(t)}function s(e,t){return!!(0,g.find)(t,function(t){return t.name===e})}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u="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},d=n(2),c=i(d),h=n(521),p=i(h),f=n(0),g=n(14),_=n(19),m=i(_),v="dx-texteditor-buttons-container",y=function(){function e(t,n){o(this,e),this.buttons=[],this.defaultButtonsInfo=n,this.editor=t}return l(e,[{key:"_compileButtonInfo",value:function(e){var t=this,n=[];return e.map(function(e){var i="string"==typeof e;i||a(e);var o=i||s(e.name,t.defaultButtonsInfo);if(o){var l=(0,g.find)(t.defaultButtonsInfo,function(t){var n=t.name;return n===e||n===e.name});if(!l)throw m.default.Error("E1056",t.editor.NAME,e);return r(n,e),l}var u=e.name;return r(n,u),(0,f.extend)(e,{Ctor:p.default})})}},{key:"_createButton",value:function(e){var t=e.Ctor,n=e.options,i=e.name,o=new t(i,this.editor,n);return this.buttons.push(o),o}},{key:"_renderButtons",value:function(e,t,n){var i=this,o=null,a=e?this._compileButtonInfo(e):this.defaultButtonsInfo,r=function(){return o=o||(0,c.default)("<div>").addClass(v),"before"===n?t.prepend(o):t.append(o),o};return a.forEach(function(e){var t=e.location,o=void 0===t?"after":t;o===n&&i._createButton(e).render(r())}),o}},{key:"clean",value:function(){this.buttons.forEach(function(e){return e.dispose()}),this.buttons=[]}},{key:"getButton",value:function(e){var t=(0,g.find)(this.buttons,function(t){var n=t.name;return n===e});return t&&t.instance}},{key:"renderAfterButtons",value:function(e,t){return this._renderButtons(e,t,"after")}},{key:"renderBeforeButtons",value:function(e,t){return this._renderButtons(e,t,"before")}},{key:"updateButtons",value:function(e){this.buttons.forEach(function(t){e&&e.indexOf(t.name)===-1||t.update()})}}]),e}();t.default=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(191),h=i(c),p=n(35),f=i(p),g=n(0),_=n(5),m=i(_),v=n(140),y=i(v),w=n(20),x=i(w),b="dx-custom-button-hovered",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_attachEvents",value:function(e,t){var n=this.editor;m.default.on(t,y.default.start,function(){n.$element().addClass(b)}),m.default.on(t,y.default.end,function(){n.$element().removeClass(b)}),m.default.on(t,x.default.name,function(e){e.stopPropagation()})}},{key:"_create",value:function(){var e=this.editor,t=(0,d.default)("<div>");this._addToContainer(t);var n=e._createComponent(t,f.default,(0,g.extend)({},this.options,{disabled:this._isDisabled(),integrationOptions:{skipTemplates:["content"]}}));return{$element:t,instance:n}}},{key:"update",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);return this.instance&&this.instance.option("disabled",this._isDisabled()),e}},{key:"_isVisible",value:function(){var e=this.editor;return e.option("visible")}},{key:"_isDisabled",value:function(){var e=void 0!==this.options.disabled;return e?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}]),t}(h.default);t.default=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(304),c=i(d),h=n(8),p=n(67),f=i(p),g="deleteContentBackward",_=" ",m=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_getStrategyName",value:function(){return"default"}},{key:"getHandleEventNames",value:function(){return[].concat(o(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getHandleEventNames",this).call(this)),["keyPress"])}},{key:"_keyPressHandler",value:function(e){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(e))){var t=this.editor;t._maskKeyHandler(e,function(){return t._handleKey((0,h.getChar)(e))})}}},{key:"_inputHandler",value:function(e){if(this._backspaceInputHandled(e.originalEvent&&e.originalEvent.inputType)&&this._handleBackspaceInput(e),!this._keyPressHandled){this._keyPressHandled=!0;var t=this.editorInput().val(),n=this.editorCaret();if(n.end){n.start=n.end-1;var i=t.substring(0,n.start)+t.substring(n.end),o=t[n.start];this.editorInput().val(i),this._inputHandlerTimer=setTimeout(function(){var t=this;this._caret({start:n.start,end:n.start}),this._maskKeyHandler(e,function(){return t._handleKey(o)})}.bind(this.editor))}}}},{key:"_backspaceHandler",value:function(e){var t=this,n=this.editor;this._keyPressHandled=!0;var i=function(e,i){e&&(n._direction(t.DIRECTION.FORWARD),n._adjustCaret());var o=t.editorCaret();return new f.default(function(e){clearTimeout(t._backspaceHandlerTimeout),t._backspaceHandlerTimeout=setTimeout(function(){i(o),e()})})};n._maskKeyHandler(e,function(){return n._hasSelection()?i(!0,function(e){n._displayMask(e),n._maskRulesChain.reset()}):n._tryMoveCaretBackward()?i(!1,function(e){t.editorCaret(e)}):(n._handleKey(_,t.DIRECTION.BACKWARD),i(!0,function(e){n._displayMask(e),n._maskRulesChain.reset()}))})}},{key:"_backspaceInputHandled",value:function(e){return e===g&&!this._keyPressHandled}},{key:"_handleBackspaceInput",value:function(e){var t=this.editorCaret(),n=t.start,i=t.end;this.editorCaret({start:n+1,end:i+1}),this._backspaceHandler(e)}},{key:"clean",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clean",this).call(this),clearTimeout(this._inputHandlerTimer)}}]),t}(c.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(304),c=i(d),h="deleteContentBackward",p=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_getStrategyName",value:function(){return"android"}},{key:"getHandleEventNames",value:function(){return[].concat(o(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getHandleEventNames",this).call(this)),["beforeInput"])}},{key:"_beforeInputHandler",value:function(){this._prevCaret=this.editorCaret()}},{key:"_inputHandler",value:function(e){var t=e.originalEvent;if(t){var n=t.inputType,i=t.data,o=this.editorCaret();if(n===h){var a=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:o.start,length:a,text:this._getEmptyString(a)})}else{if(!o.end)return;this.editorCaret(o);var r=this._prevCaret.end-this._prevCaret.start,s=i+(r?this._getEmptyString(r-i.length):"");this.editor.setForwardDirection();var l=this._updateEditorMask({start:this._prevCaret.start,length:r||s.length,text:s});l||this.editorCaret(this._prevCaret)}}}},{key:"_getEmptyString",value:function(e){return Array(e+1).join(" ")}},{key:"_updateEditorMask",value:function(e){var t=e.text.length,n=this.editor._handleChain(e);if(this.editor.isForwardDirection()){var i=this.editorCaret(),o=i.start,a=i.end,r=n-t;o<=n&&n>1&&this.editorCaret({start:o+r,end:a+r}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!n}}]),t}(c.default);t.default=p},function(e,t,n){var i=n(305),o=n(249),a=i.inherit(o).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e,t,n=this._dataSource;return n&&(t={filter:n.filter()},n._addSearchFilter(t),e=t.filter),e},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),n=this.option("searchMode");this.callBase(),this._dataSource&&(e&&e.length&&this._dataSource.searchValue(e),n.length&&this._dataSource.searchOperation(o.getOperationBySearchMode(n)),t&&this._dataSource.searchExpr(t))}});e.exports=a},function(e,t,n){var i=n(2),o=n(1).isNumeric,a=n(3).each,r=n(84).queryByOptions,s=n(42),l=n(190),u="dx-list-item",d="dx-list-group",c=20,h=2303,p=function(e){return(e.group<<c)+e.item},f=function(e){return{group:e>>c,item:e&h}},g=l.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+d)},_groupItemElements:function(e){return e.find("."+u)},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),n=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),a(t,function(t,i){return!!i.items&&(a(i.items,function(i,o){return o!==e||(n={group:t,item:i},!1)}),!n&&void 0)}),n)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return o(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),n=0;n<t.length;n++)t[n]&&t[n].items?e=e.concat(t[n].items):e.push(t[n]);return e},deleteItemAtIndex:function(e){var t=f(e),n=this._collectionWidget.option("items")[t.group].items;n.splice(t.item,1)},getKeysByItems:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);var i=[];for(n=0;n<t.length;n++)i.push(this._collectionWidget.keyOf(t[n]));return i},getIndexByKey:function(e,t){var n=t||this._collectionWidget.option("items"),i=-1,o=this;return a(n,function(t,n){if(n.items){var r=o.getKeysByItems(n.items);return a(r,function(n,a){if(o._equalKeys(a,e))return i={group:t,item:n},!1}),i===-1&&void 0}}),i},_getGroups:function(e){var t=this._collectionWidget.getDataSource(),n=t&&t.group();return n?r(s(e),{group:n}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(e,t){var n=[];return a(e,function(e,i){var o=function(e){var t=this.getIndexByKey(i,e),n=t&&e[t.group];if(n)return{groupKey:n.key,item:n.items[t.item]}}.bind(this),r=o(this._getGroups(t));if(r){var s,l=r.groupKey,u=r.item;a(n,function(e,t){if(t.key===l)return s=t,!1}),s||(s={key:l,items:[]},n.push(s)),s.items.push(u)}}.bind(this)),n},moveItemAtIndexToIndex:function(e,t){var n=this._collectionWidget.option("items"),i=f(e),o=f(t),a=n[i.group].items,r=n[o.group].items,s=a[i.item];a.splice(i.item,1),r.splice(o.item,0,s)},_isItemIndex:function(e){return e&&o(e.group)&&o(e.item)},_getNormalizedItemIndex:function(e){var t=i(e),n=t.closest("."+d);return n.length?p({group:this._groupElements().index(n),item:this._groupItemElements(n).index(t)}):-1},_normalizeItemIndex:function(e){return p(e)},_denormalizeItemIndex:function(e){return f(e)},_getItemByNormalizedIndex:function(e){var t=f(e),n=this._groupElements().eq(t.group);return this._groupItemElements(n).eq(t.item)},_itemsFromSameParent:function(e,t){return f(e).group===f(t).group}});e.exports=g},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(0).extend,s=n(3).each,l=n(19),u=n(104);n(527),n(528),n(529),n(530),n(531),n(536),n(538);var d=[],c=function(e,t,n){d.push({enabled:e,decoratorType:t,decoratorSubType:n})};c(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),c(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"},function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),"hold"===e&&(e="context"),e}),c(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),c(function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")},function(){return"reorder"},function(){return"default"});var h="dx-list-item-before-bag",p="dx-list-item-after-bag",f="beforeBag",g="afterBag",_="modifyElement",m="afterRender",v="getExcludedSelectors",y=a.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&s(this._decorators,function(e,t){t.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],s(d,function(e,t){var n=t.enabled.call(this._list);if(n){var i=t.decoratorType.call(this._list),o=t.decoratorSubType.call(this._list),a=this._createDecorator(i,o);this._decorators.push(a)}}.bind(this))},_createDecorator:function(e,t){var n=this._findDecorator(e,t);return new n(this._list)},_findDecorator:function(e,t){var n=u.registry[e][t];if(!n)throw l.Error("E1012",e,t);return n},modifyItemElement:function(e){var t=i(e.itemElement),n={$itemElement:t};this._prependBeforeBags(t,n),this._appendAfterBags(t,n),this._applyDecorators(_,n)},afterItemsRendered:function(){this._applyDecorators(m)},_prependBeforeBags:function(e,t){var n=this._collectDecoratorsMarkup(f,t,h);e.prepend(n)},_appendAfterBags:function(e,t){var n=this._collectDecoratorsMarkup(g,t,p);e.append(n)},_collectDecoratorsMarkup:function(e,t,n){var o=i("<div>");return s(this._decorators,function(){var a=i("<div>").addClass(n);this[e](r({$container:a},t)),a.children().length&&o.append(a)}),o.children()},_applyDecorators:function(e,t){s(this._decorators,function(){this[e](t)})},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,n=t.length,i=0;i<n;i++)if(t[i][e]!==o)return!0;return!1},_eventHandler:function(e,t,n){if(!this._decorators)return!1;for(var i=!1,o=this._decorators,a=o.length,r=0;r<a&&!(i=o[r][e](t,n));r++);return i},handleClick:function(e,t){return this._eventHandler("handleClick",e,t)},handleKeyboardEvents:function(e,t){return this._eventHandler("handleKeyboardEvents",e,t)},handleEnterPressing:function(){return this._eventHandler("handleEnterPressing")},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(e,t){return this._eventHandler("handleContextMenu",e,t)},getExcludedItemSelectors:function(){var e=[];return this._applyDecorators(v,e),e.join(",")}});e.exports=y},function(e,t,n){var i=n(2),o=n(35),a=n(104).register,r=n(143),s="dx-list-static-delete-button-container",l="dx-list-static-delete-button";a("delete","static",r.inherit({afterBag:function(e){var t=e.$itemElement,n=e.$container,a=i("<div>").addClass(l);this._list._createComponent(a,o,{icon:"remove",onClick:function(e){e.event.stopPropagation(),this._deleteItem(t)}.bind(this),integrationOptions:{}}),n.addClass(s).append(a)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}}))},function(e,t,n){var i=n(2),o=n(39),a=n(35),r=n(10),s=n(104).register,l=n(306),u="dx-list-switchable-delete-button-container",d="dx-list-switchable-delete-button-wrapper",c="dx-list-switchable-delete-button-inner-wrapper",h="dx-list-switchable-delete-button",p=200,f=l.inherit({_init:function(){this.callBase.apply(this,arguments);var e=i("<div>").addClass(u),t=i("<div>").addClass(d),n=i("<div>").addClass(c),o=i("<div>").addClass(h);this._list._createComponent(o,a,{text:r.format("dxListEditDecorator-delete"),type:"danger",onClick:function(e){this._deleteItem(),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),e.append(t),t.append(n),n.append(o),this._$buttonContainer=e},_enablePositioning:function(e){this.callBase.apply(this,arguments),o.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t:-n,a=e?t-n:0;return o.animate(this._$buttonContainer,{type:"custom",duration:p,from:{right:i},to:{right:a}})},_animateForgetDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t-n:0,a=e?t:-n;return o.animate(this._$buttonContainer,{type:"custom",duration:p,from:{right:i},to:{right:a}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=this._$buttonContainer.outerWidth()),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}}),g="dx-list-toggle-delete-switch-container",_="dx-list-toggle-delete-switch";s("delete","toggle",f.inherit({beforeBag:function(e){var t=e.$itemElement,n=e.$container,r=i("<div>").addClass(_);this._list._createComponent(r,a,{icon:"toggle-delete",onClick:function(e){o.stop(this._$buttonContainer,!1),this._toggleDeleteReady(t),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),n.addClass(g),n.append(r)}})),s("delete","slideButton",f.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(e,t){return 0!==t.targetOffset&&(o.stop(this._$buttonContainer,!1),this._toggleDeleteReady(e)),!0}})),e.exports=f},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(20),s=n(10),l=n(27),u=n(8),d=n(133),c=n(307),h=n(104).register,p=n(306),f=n(39),g=n(31),_=n(243),m="dxListEditDecorator",v=u.addNamespace(r.name,m),y=u.addNamespace(d.active,m),w="dx-list-slide-menu",x="dx-list-slide-menu-wrapper",b="dx-list-slide-menu-content",C="dx-list-slide-menu-buttons-container",k="dx-list-slide-menu-buttons",I="dx-list-slide-menu-button",S="dx-list-slide-menu-button-menu",D="dx-list-slide-menu-button-delete",T=400,E="cubic-bezier(0.075, 0.82, 0.165, 1)";h("menu","slide",p.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=i("<div>").addClass(C),o.on(this._$buttonsContainer,y,a),this._$buttons=i("<div>").addClass(k).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,function(e){e.stopPropagation(),this._fireAction(t)}.bind(this))}else{var n=i("<div>").addClass(w);this._menu=this._list._createComponent(n,_,{showTitle:!1,items:e,onItemClick:function(e){this._fireAction(e.itemData)}.bind(this),integrationOptions:{}}),n.appendTo(this._list.$element());var o=this._renderMenuButton(s.format("dxListEditDecorator-more"),function(e){e.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",o)}}},_renderMenuButton:function(e,t){var n=i("<div>").addClass(I).addClass(S).text(e);return this._$buttons.append(n),o.on(n,v,t),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=i("<div>").addClass(I).addClass(D).text(g.isMaterial()?"":s.format("dxListEditDecorator-delete"));o.on(e,v,function(e){e.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction(i(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass(x);var n=i("<div>").addClass(b);t.wrapInner(n)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(e,t){return!!i(t.target).closest("."+b).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var n=this._isRtlEnabled(),i=n?-1:1,o=this._isReadyToDelete(e),a=this._getCurrentPositions().content===this._getStartPositions().content;if(a&&!o&&t.offset*i>0)return void(t.cancel=!0);var r=this._cachedItemWidth*t.offset,s=o?-this._cachedButtonWidth*i:0,l=(r+s)*i,u=l<0?Math.abs((r+s)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(u)),!0},_getStartPositions:function(){var e=this._isRtlEnabled(),t=e?-1:1;return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*t}},_getPositions:function(e){var t=this._isRtlEnabled(),n=t?-1:1,i=this._getStartPositions();return{content:i.content-e*this._cachedButtonWidth*n,buttonsContainer:i.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*n,buttons:i.buttons+Math.min(e,1)*this._cachedButtonWidth*n}},_getCurrentPositions:function(){return{content:l.locate(this._$cachedContent).left,buttonsContainer:l.locate(this._$buttonsContainer).left,buttons:l.locate(this._$buttons).left}},_setPositions:function(e){l.move(this._$cachedContent,{left:e.content}),l.move(this._$buttonsContainer,{left:e.buttonsContainer}),l.move(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+b),this._cachedItemWidth=e.outerWidth(),this._cachedButtonWidth=this._cachedButtonWidth||this._$buttons.outerWidth(),this._$buttonsContainer.width(this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*t.offset,o=!this._isReadyToDelete(e)&&i*n>.2*this._cachedButtonWidth,a=t.targetOffset===n&&o;return this._toggleDeleteReady(e,a),!0},_enablePositioning:function(e){f.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-e.content)/this._cachedButtonWidth,1);return f.animate(this._$cachedContent,{from:n,to:e,easing:E,duration:T*i,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(c))},function(e,t,n){var i=n(27),o=n(39),a=n(104).register,r=n(143),s=n(6).Deferred;a("delete","swipe",r.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(e,t,n){var a=new s,r=t*this._itemElementWidth;return n?o.animate(e,{to:{left:r},type:"slide",complete:function(){a.resolve(e,t)}}):(i.move(e,{left:r}),a.resolve()),a.promise()},_swipeStartHandler:function(e){return this._itemElementWidth=e.width(),!0},_swipeUpdateHandler:function(e,t){return this._renderItemPosition(e,t.offset),!0},_swipeEndHandler:function(e,t){var n=t.targetOffset;return this._renderItemPosition(e,n,!0).done(function(e,t){Math.abs(t)&&this._list.deleteItem(e).fail(function(){this._renderItemPosition(e,0,!0)}.bind(this))}.bind(this)),!0}}))},function(e,t,n){var i=n(2),o=n(307),a=n(10),r=n(104).register,s=n(143),l=n(59),u=n(245),d="dx-list-context-menu",c="dx-list-context-menucontent";r("menu","context",s.inherit({_init:function(){var e=i("<div>").addClass(d);this._list.$element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,l,{shading:!1,deferRendering:!0,closeOnTargetScroll:!0,closeOnOutsideClick:function(e){return!i(e.target).closest("."+d).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return this._$menuList.outerHeight()}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},height:function(){return this._$menuList?this._$menuList.outerHeight():0}.bind(this),width:function(){return this._list.$element().outerWidth()}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.$content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:a.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=i("<div>"),this._list._createComponent(this._$menuList,u,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass(c),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(o))},function(e,t,n){var i=n(2),o=n(134),a="dx-list-item-badge-container",r="dx-list-item-badge",s="dx-badge",l="dx-list-item-chevron-container",u="dx-list-item-chevron",d=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children("."+a).remove(),e){var t=i("<div>").addClass(a).append(i("<div>").addClass(r).addClass(s).text(e)),n=this._$element.children("."+l).first();n.length>0?t.insertBefore(n):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+l).remove(),e){var t=i("<div>").addClass(l),n=i("<div>").addClass(u);t.append(n).appendTo(this._$element)}}});e.exports=d},function(e,t,n){var i=n(2),o=n(26),a=n(27),r=n(246),s=n(80),l=n(3).each,u=n(25),d=n(6).Deferred,c="dx-scrollview-pull-down-loading",h="dx-scrollview-pull-down-ready",p="dx-scrollview-pull-down-image",f="dx-scrollview-pull-down-indicator",g="dx-scrollview-pull-down-text",_="dx-scrollview-pull-down-text-visible",m=0,v=1,y=2,w=3,x=400,b=r.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$bottomPocket=e._$bottomPocket,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=i(e.content()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("<div>").addClass(p),t=i("<div>").addClass(f),n=new s(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass(g);this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},_releaseState:function(){this._state=m,this._refreshPullDownText()},_pushBackFromBoundary:function(){this._isLocked()||this._component.isEmpty()||this.callBase()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:m},{element:this._$pulledDownText,visibleState:v},{element:this._$refreshingText,visibleState:y}];l(t,function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i](_)})},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),u.msie?this._scrollOffset=Math.round(100*(this._$container.height()-this._$content.height()))/100:this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){this._state===v&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){a.move(this._$topPocket,{top:e}),a.move(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),this._state!==y){var t=this.location().top,n=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return u.msie?this._reachBottomEnabled&&this._location-(this._scrollOffset+this._bottomPocketSize)<=.1:this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize;
},_reachBottom:function(){this._state!==w&&(this._state=w,this.reachBottomCallbacks.fire())},_pullDownReady:function(){this._state!==v&&(this._state=v,this._$pullDown.addClass(h),this._refreshPullDownText())},_stateReleased:function(){this._state!==m&&(this._$pullDown.removeClass(c).removeClass(h),this._releaseState())},_pullDownRefreshing:function(){this._state!==y&&(this._state=y,this._$pullDown.addClass(c).removeClass(h),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=v},release:function(){var e=new d;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._state===w&&(this._state=m),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),x),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=b},function(e,t,n){var i=n(2),o=n(26),a=n(27),r=n(8),s=n(246),l=n(80),u=n(6).Deferred,d="dx-scrollview-pull-down-loading",c="dx-scrollview-pull-down-indicator",h="dx-scrollview-pull-down-refreshing",p="dx-icon-pulldown",f=0,g=1,_=2,m=4,v=5,y=s.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=e.content(),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("<div>").addClass(c),t=new l(i("<div>")).$element();this._$icon=i("<div>").addClass(p),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=f,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),this._state===f&&0===this._location&&(this._startClientY=r.eventData(e.originalEvent).y,this._state=m)},handleMove:function(e){this.callBase(e),this._deltaY=r.eventData(e.originalEvent).y-this._startClientY,this._state===m&&(this._pullDownEnabled&&this._deltaY>0?this._state=v:this._complete()),this._state===v&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),n=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass(h,t<e),a.move(this._$pullDown,{top:t}),this._$icon.css({transform:"rotate("+n+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&this._state===v&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*this._$element.outerHeight())},_getPullDownStartPosition:function(){return-Math.round(1.5*this._$pullDown.outerHeight())},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){this._state!==m&&this._state!==v||this._releaseState()},handleScroll:function(e){if(this.callBase(e),this._state!==_){var t=this.location().top,n=this._location-t;this._location=t,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){this._state!==f&&(this._$pullDown.removeClass(d),this._releaseState())},_pullDownRefreshing:function(){this._state=_,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(d),a.move(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=g},release:function(){var e=new u;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=y},function(e,t,n){var i=n(2),o=n(26),a=n(3).each,r=n(4),s=n(0).extend,l=Math,u=n(310),d=n(80),c="dx-scrollview-pull-down-loading",h="dx-scrollview-pull-down-ready",p="dx-scrollview-pull-down-image",f="dx-scrollview-pull-down-indicator",g="dx-scrollview-pull-down-text",_="dx-scrollview-pull-down-text-visible",m=0,v=1,y=2,w=3,x=u.Scroller.inherit({ctor:function(){this._topPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=m,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:m},{element:this._$pulledDownText,visibleState:v},{element:this._$refreshingText,visibleState:y}];a(t,function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i](_)})},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},_updateBounds:function(){var e="horizontal"!==this._direction;this._topPocketSize=e?Math.round(this._$topPocket[this._dimension]()):0,this._bottomPocketSize=e?Math.round(this._$bottomPocket[this._dimension]()):0,this.callBase(),this._bottomBound=this._minOffset+this._bottomPocketSize},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():this._state!==m&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._bottomBound},_scrollComplete:function(){this._inBounds()&&this._state===v?this._pullDownRefreshing():this._inBounds()&&this._state===w?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){this._state!==w&&(this._state=w,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return l.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){this._state!==v&&(this._state=v,this._maxOffset=0,this._$pullDown.addClass(h),this._refreshPullDownText())},_stateReleased:function(){this._state!==m&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(c).removeClass(h),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){this._state!==y&&(this._state=y,this._$pullDown.addClass(c).removeClass(h),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return this._state===m&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=r.executeAsync(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=this._$topPocket.height()||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=v},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),b=u.SimulatedStrategy.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=i("<div>").addClass(p),t=i("<div>").addClass(f),n=new d(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass(g);this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,n=t._scrollers[e]=new x(t._scrollerOptions(e));n.pullDownCallbacks.add(function(){t.pullDownCallbacks.fire()}),n.releaseCallbacks.add(function(){t.releaseCallbacks.fire()}),n.reachBottomCallbacks.add(function(){t.reachBottomCallbacks.fire()})},_scrollerOptions:function(e){return s(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function e(){var e=this.callBase();return e.top+=this._$topPocket.height(),e},dispose:function(){a(this._scrollers,function(){this.dispose()}),this.callBase()}});e.exports=b},function(e,t,n){var i=n(2),o=n(5),a=n(20),r=n(0).extend,s=n(19),l=n(105),u=n(537),d=n(8),c=n(104).register,h=n(143),p="dx-list-select-decorator-enabled",f="dx-list-select-all",g="dx-list-select-all-checkbox",_="dx-list-select-all-label",m="dx-list-select-checkbox-container",v="dx-list-select-checkbox",y="dx-list-select-radiobutton-container",w="dx-list-select-radiobutton",x="dx-state-focused",b=d.addNamespace(a.name,"dxListEditDecorator");c("selection","default",h.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?y:m,this._controlClass=this._singleStrategy?w:v,this._controlWidget=this._singleStrategy?u:l,this._list.$element().addClass(p)},beforeBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div>").addClass(this._controlClass);new this._controlWidget(o,r(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}.bind(this)})),n.addClass(this._containerClass),n.append(o)},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,n=this._controlWidget.getInstance(t.find("."+this._controlClass));o.on(t,"stateChanged",function(e,t){n.option("value",t)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(e,t){var n=!t,i=this._list,o=this._$selectAll,a=i._getLastItemIndex(),r=t&&0===e||n&&e===a,s=!!o;return!(!s||!r)&&(i.option("focusedElement",o),i.scrollToItem(i.option("focusedElement")),!0)},handleEnterPressing:function(){if(this._$selectAll&&this._$selectAll.hasClass(x))return this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=i("<div>").addClass(f),t=this._list,n=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent(i("<div>").addClass(g).appendTo(e),l,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",n),i("<div>").addClass(_).text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),o.off(this._$selectAll,b),o.on(this._$selectAll,b,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value"),n=this._list._createActionByOption("onSelectAllValueChanged")({value:t});n!==!1&&(t===!0?this._selectAllItems():t===!1&&this._unselectAllItems())},_checkSelectAllCapability:function(){var e=this._list,t=e.getDataSource();return!!("allPages"!==e.option("selectAllMode")||!e.option("grouped")||t&&t.group())||(s.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(){this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(p),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(74),l=n(9),u=n(48),d=n(8),c=n(20),h="dx-radiobutton",p="dx-radiobutton-icon",f="dx-radiobutton-icon-dot",g="dx-radiobutton-checked",_="dx-radiobutton-icon-checked",m=u.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space:e})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,useInkRipple:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass(h)},_initMarkup:function(){this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<div>").addClass(p),i("<div>").addClass(f).appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass(g,e).find("."+p).toggleClass(_,e),this.setAria("checked",e)},_renderClick:function(){var e=d.addNamespace(c.name,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.event)}.bind(this)),o.off(this.$element(),e),o.on(this.$element(),e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxRadioButton",m),e.exports=m},function(e,t,n){var i=n(2),o=n(5),a=n(0).extend,r=n(8),s=n(104).register,l=n(143),u=n(248),d="dx-list-reorder-handle-container",c="dx-list-reorder-handle",h="dx-list-item-ghost-reordering",p="dx-state-hover";s("reorder","default",l.inherit({_init:function(){var e=this._list;this._groupedEnabled=this._list.option("grouped"),this._lockedDrag=!1,this._sortable=e._createComponent(e._scrollView.$content(),u,a({component:e,contentTemplate:null,allowReordering:!1,filter:".dx-list-item",container:e.$element(),dragDirection:e.option("itemDragging.group")?"both":"vertical",handle:"."+c,dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},e.option("itemDragging")))},_dragTemplate:function(e){return i(e.itemElement).clone().width(i(e.itemElement).width()).addClass(h).addClass(p)},_dragStartHandler:function(e){if(this._lockedDrag)return void(e.cancel=!0)},_dragChangeHandler:function(e){if(this._groupedEnabled&&!this._sameParent(e.fromIndex,e.toIndex))return void(e.cancel=!0)},_sameParent:function(e,t){var n=this._list.getItemElementByFlatIndex(e),i=this._list.getItemElementByFlatIndex(t);return i.parent().get(0)===n.parent().get(0)},_reorderHandler:function(e){var t=this._list.getItemElementByFlatIndex(e.toIndex);this._list.reorderItem(i(e.itemElement),t)},afterBag:function(e){var t=this,n=e.$container,a=i("<div>").addClass(c);o.on(a,"dxpointerdown",function(e){t._lockedDrag=!r.isMouseEvent(e)}),o.on(a,"dxhold",{timeout:30},function(e){e.cancel=!0,t._lockedDrag=!1}),n.addClass(d),n.append(a)}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(17),s=i(r),l=n(99),u=n(9),d=i(u),c=n(313),h=i(c),p=n(44),f=i(p),g=n(103),_=i(g),m=n(18),v=n(11),y=i(v),w=n(56),x=n(83),b=i(x),C=n(46),k=n(71),I=i(k),S=n(6),D=n(0),T=n(1),E=n(4),O=n(34),A=i(O),P=n(10),B="dx-dropdownbutton",M="dx-dropdownbutton-content",F="dx-dropdownbutton-action",R="dx-dropdownbutton-toggle",V="dx-dropdownbutton-popup-wrapper",H="dx-button-text",L="dx-icon-right",z=s.default.inherit({_getDefaultOptions:function(){return(0,D.extend)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:"this",selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:(0,P.format)("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference:function(){this.callBase(),(0,D.extend)(this._optionsByReference,{selectedItem:!0})},_init:function(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._compileKeyGetter(),this._compileDisplayGetter(),this._initDataSource(),this._itemsToDataSource(),this._initInnerOptionCache("buttonGroupOptions"),this._initInnerOptionCache("dropDownOptions")},_initTemplates:function(){var e=this;this.callBase(),this._defaultTemplates.content=new l.FunctionTemplate(function(t){var n=(0,a.default)(t.container),i=(0,a.default)("<div>").appendTo(n);e._list=e._createComponent(i,_.default,e._listOptions()),e._list.registerKeyHandler("escape",e._escHandler.bind(e)),e._list.registerKeyHandler("tab",e._escHandler.bind(e)),e._list.registerKeyHandler("leftArrow",e._escHandler.bind(e)),e._list.registerKeyHandler("rightArrow",e._escHandler.bind(e))})},_itemsToDataSource:function(){this._dataSource||(this._dataSource=new C.DataSource({store:new I.default(this.option("items")),pageSize:0}))},_compileKeyGetter:function(){this._keyGetter=(0,m.compileGetter)(this.option("keyExpr"))},_compileDisplayGetter:function(){this._displayGetter=(0,m.compileGetter)(this.option("displayExpr"))},_initMarkup:function(){this.callBase(),this.$element().addClass(B),this._renderButtonGroup(),this._loadSelectedItem().done(this._updateActionButton.bind(this)),this.option("deferRendering")&&!this.option("opened")||this._renderPopup()},_loadSelectedItem:function(){var e=this,t=new S.Deferred;if(this._list)return t.resolve(this._list.option("selectedItem"));var n=this.option("selectedItemKey");return this._loadSingle(this.option("keyExpr"),n).done(t.resolve).fail(function(){t.resolve(e.option("selectedItem"))}),t.promise()},_createActionClickAction:function(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction:function(e){var t=e.previousValue,n=e.value;this._selectionChangedAction({item:n,previousItem:t})},_fireItemClickAction:function(e){var t=e.event,n=e.itemElement,i=e.itemData;return this._itemClickAction({event:t,itemElement:n,itemData:this._actionItem||i})},_actionButtonConfig:function(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{"class":F}}},_getButtonGroupItems:function(){var e=[];return e.push(this._actionButtonConfig()),this.option("splitButton")&&e.push({icon:"spindown",width:26,elementAttr:{"class":R}}),e},_buttonGroupItemClick:function(e){var t=e.event,n=e.itemData,i=n.elementAttr.class===F,o=n.elementAttr.class===R;o?this.toggle():i&&(this._actionClickAction({event:t,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions:function(){var e=this;return(0,D.extend)({items:this._getButtonGroupItems(),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",stylingMode:this.option("stylingMode"),selectionMode:"none",buttonTemplate:function(t,n){var i=t.text,o=t.icon;if(e.option("splitButton")||!e.option("showArrowIcon"))return"content";var r=(0,w.getImageContainer)(o),s=i?(0,a.default)("<span>").text(i).addClass(H):void 0,l=(0,w.getImageContainer)("spindown").addClass(L);(0,a.default)(n).append(r,s,l)}},this._getInnerOptionsCache("buttonGroupOptions"))},_renderPopupContent:function(){var e=this._popup.$content(),t=this._getTemplateByOption("dropDownContentTemplate");return e.empty(),this._popupContentId="dx-"+new A.default,this.setAria("id",this._popupContentId,e),t.render({container:y.default.getPublicElement(e),model:this.option("items")||this._dataSource})},_popupOptions:function(){var e=this;return(0,D.extend)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),minWidth:function(){return e.$element().outerWidth()},closeOnOutsideClick:function(t){var n=e.$element(),i=(0,a.default)(t.target).closest("."+B);return!i.is(n)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},width:"auto",height:"auto",shading:!1,visible:this.option("opened"),position:{of:this.$element(),collision:"flipfit",my:"top left",at:"bottom left",offset:{y:-1}}},this._getInnerOptionsCache("dropDownOptions"))},_listOptions:function(){var e=this,t=this.option("selectedItemKey");return{selectionMode:"single",wrapItemText:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),showItemDataTitle:!0,selectedItemKeys:t?[t]:[],grouped:this.option("grouped"),keyExpr:this.option("keyExpr"),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:function(t){e.option("selectedItemKey",e._keyGetter(t.itemData));var n=e._fireItemClickAction(t);n!==!1&&(e.toggle(!1),e._buttonGroup.focus())}}},_upDownKeyHandler:function(){this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open()},_escHandler:function(){this.close(),this._buttonGroup.focus()},_renderPopup:function(){var e=(0,a.default)("<div>");this.$element().append(e),this._popup=this._createComponent(e,f.default,this._popupOptions()),this._popup.$content().addClass(M),this._popup._wrapper().addClass(V),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._renderPopupContent(),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler:function(){this.option("opened",!1),this.setAria({expanded:!1,owns:void 0})},_popupShowingHandler:function(){this.option("opened",!0),this.setAria({expanded:!0,owns:this._popupContentId})},_renderButtonGroup:function(){var e=this._buttonGroup&&this._buttonGroup.$element()||(0,a.default)("<div>");this._buttonGroup||this.$element().append(e),this._buttonGroup=this._createComponent(e,h.default,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this.close.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions")},toggle:function(e){return this._popup||this._renderPopup(),this._popup.toggle(e)},open:function(){return this.toggle(!0)},close:function(){return this.toggle(!1)},_setListOption:function(e,t){this._list&&this._list.option(e,t)},_getDisplayValue:function(e){var t=!(0,T.isPlainObject)(e),n=t?e:this._displayGetter(e);return(0,T.isPlainObject)(n)?"":String((0,E.ensureDefined)(n,""))},_updateActionButton:function(e){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(e),icon:(0,T.isPlainObject)(e)?e.icon:void 0}),this._setOptionSilent("selectedItem",e)},_clean:function(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged:function(e){var t=this;this._setListOption("selectedItemKeys",e?[e]:[]);var n=this.option("selectedItem");this._loadSelectedItem().done(function(e){t._updateActionButton(e),t._displayGetter(n)!==t._displayGetter(e)&&t._fireSelectionChangedAction({previousValue:n,value:e})})},_actionButtonOptionChanged:function(e){var t=e.name,n=e.value,i={};i[t]=n,this._buttonGroup.option("items[0]",(0,D.extend)({},this._actionButtonConfig(),i)),this._popup&&this._popup.repaint()},_updateItemCollection:function(e){this._setWidgetOption("_list",[e]),this._setListOption("selectedItemKeys",[]),this._loadSelectedItem().done(this._updateActionButton.bind(this))},_optionChanged:function(e){var t=e.name,n=e.value;switch(e.name){case"useSelectMode":break;case"splitButton":this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter();break;case"keyExpr":this._compileKeyGetter();break;case"buttonGroupOptions":this._innerOptionChanged(this._buttonGroup,e);break;case"dropDownOptions":this._innerOptionChanged(this._popup,e);break;case"opened":this.toggle(n);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(t,n),this._buttonGroup.option(t,n);break;case"items":this._dataSource=null,this._itemsToDataSource(),this._updateItemCollection(t);break;case"dataSource":this._initDataSource(),this._updateItemCollection(t);break;case"icon":case"text":this._actionButtonOptionChanged(e);break;case"showArrowIcon":this._buttonGroup.repaint(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(e),this._popup&&this._popup.repaint();break;case"stylingMode":this._buttonGroup.option(t,n);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":this._setListOption(t,n);break;case"dropDownContentTemplate":this._popup&&this._renderPopupContent();break;case"selectedItemKey":this._selectedItemKeyChanged(n);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":n||this._popup||this._renderPopup();break;default:this.callBase(e)}}}).include(b.default);(0,d.default)("dxDropDownButton",z),e.exports=z},function(e,t,n){var i=n(2),o=n(34),a=n(9),r=n(4).noop,s=n(1),l=n(30).inRange,u=n(0).extend,d=n(35),c=n(48),h=n(160),p=n(541),f=n(542),g=n(27),_=n(25),m=n(22),v=n(57),y=n(16),w=n(39),x=n(7),b=n(10),C=n(99).FunctionTemplate,k="dx-calendar",I="dx-calendar-body",S="dx-calendar-cell",D="dx-calendar-footer",T="dx-calendar-today-button",E="dx-calendar-with-footer",O="dx-calendar-views-wrapper",A="dx-calendar-view",P="dx-state-focused",B=250,M=.6,F=1,R="yyyy-MM-dd",V="dxDateValueKey",H={month:3,year:2,decade:1,century:0},L={MONTH:"month",YEAR:"year",DECADE:"decade",CENTURY:"century"},z=c.inherit({_activeStateUnit:"."+S,_getDefaultOptions:function(){return u(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:L.MONTH,maxZoomLevel:L.MONTH,minZoomLevel:L.CENTURY,showTodayButton:!1,cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,hasFocus:function(e){return e.hasClass(P)}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.real().deviceType&&!y.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return u(this.callBase(),{rightArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(1):this._moveCurrentDate(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(-1):this._moveCurrentDate(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateUp();else{if(w.isAnimating(this._view.$element()))return;this._moveCurrentDate(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateDown();else{if(w.isAnimating(this._view.$element()))return;this._moveCurrentDate(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("min"),o=m.sameView(t,n,i)?i:m.getViewFirstCellDate(t,n);this._moveToClosestAvailableDate(o,1)},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("max"),o=m.sameView(t,n,i)?i:m.getViewLastCellDate(t,n);this._moveToClosestAvailableDate(o,-1)},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1)},pageDown:function(e){e.preventDefault(),this._waitRenderView(1)},tab:r,enter:function(e){if(this._isMaxZoomLevel()){var t=this._updateTimeComponent(this.option("currentDate"));this._dateValue(t,e)}else this._navigateDown()}})},_getSerializationFormat:function(e){var t=this.option(e||"value");if(this.option("dateSerializationFormat"))return this.option("dateSerializationFormat");if(s.isNumeric(t))return"number";if(s.isString(t))return v.getDateSerializationFormat(t)},_convertToDate:function(e,t){return v.deserializeDate(e)},_dateValue:function(e,t){t&&this._saveValueChangeEvent(t),this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);
var n=this._getSerializationFormat(e);this.option(e,v.serializeDate(t,n))},_moveCurrentDate:function(e,t){for(var n=t||new Date(this.option("currentDate")),i=this._getMaxDate(),o=this._getMinDate(),a=this.option("zoomLevel"),r=l(n,o,i),s=new Date(n),u=new Date(n),d=r,c=r,h=e||1;!e&&(d||c)||e&&d;){switch(a){case L.MONTH:s.setDate(s.getDate()+h),u.setDate(u.getDate()-h);break;case L.YEAR:s.setMonth(s.getMonth()+h),u.setMonth(u.getMonth()-h);break;case L.DECADE:s.setFullYear(s.getFullYear()+h),u.setFullYear(u.getFullYear()-h);break;case L.CENTURY:s.setFullYear(s.getFullYear()+10*h),u.setFullYear(u.getFullYear()-10*h)}if(d&&!this._view.isDateDisabled(s)){n=s;break}if(c&&!e&&!this._view.isDateDisabled(u)){n=u;break}c=l(u,o,i),d=l(s,o,i)}this.option("currentDate",n)},_moveToClosestAvailableDate:function(e,t){this._view.isDateDisabled(e)?this._moveCurrentDate(t,e):this.option("currentDate",e)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),n=this.option("zoomLevel");H[t]<H[e]||(H[n]>H[t]?this.option("zoomLevel",t):H[n]<H[e]&&this.option("zoomLevel",e))},_initCurrentDate:function(){var e=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",e)},_getNormalizedDate:function(e){return e=m.normalizeDate(e,this._getMinDate(),this._getMaxDate()),s.isDefined(e)?new Date(e):e},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this.callBase(),this._defaultTemplates.cell=new C(function(e){var t=e.model;i(e.container).append(i("<span>").text(t&&t.text||String(t)))})},_updateCurrentDate:function(e){w.isAnimating(this._$viewsWrapper)&&w.stop(this._$viewsWrapper,!0);var t=this._getMinDate(),n=this._getMaxDate();if(t>n)return void this.option("currentDate",new Date);var i=this._getNormalizedDate(e);if(e.getTime()!==i.getTime())return void this.option("currentDate",new Date(i));var o=this._getViewsOffset(this._view.option("date"),i);0!==o&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(o=0),this._view&&0!==o&&!this._suppressNavigation?this._navigate(o,i):(this._renderNavigator(),this._setViewContoured(i),this._updateAriaId(i))},_setViewContoured:function(e){this.option("hasFocus")(this._focusTarget())&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min?this.min:(this.min=this._dateOption("min")||new Date(1e3,0),this.min)},_getMaxDate:function(){return this.max?this.max:(this.max=this._dateOption("max")||new Date(3e3,0),this.max)},_getViewsOffset:function(e,t){var n=this.option("zoomLevel");if(n===L.MONTH)return this._getMonthsOffset(e,t);var i;switch(n){case L.CENTURY:i=100;break;case L.DECADE:i=10;break;default:i=1}return parseInt(t.getFullYear()/i)-parseInt(e.getFullYear()/i)},_getMonthsOffset:function(e,t){var n=t.getFullYear()-e.getFullYear(),i=t.getMonth()-e.getMonth();return 12*n+i},_waitRenderView:function(e){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var t=this._getDateByOffset(e*this._getRtlCorrection());this._moveToClosestAvailableDate(t,e),setTimeout(function(){this._alreadyViewRender=!1}.bind(this))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){t=new Date(t||this.option("currentDate"));var n=t.getDate(),i=m.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+i);var o=m.getLastMonthDate(t).getDate();return t.setDate(n>o?o:n),t},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var e=this.$element();e.addClass(k),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),e.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this.setAria({role:"listbox",label:b.format("dxCalendar-ariaWidgetName")}),this._updateAriaSelected(),this._updateAriaId(),this._view.isDateDisabled(this.option("currentDate"))&&this._moveCurrentDate(0)},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=i("<div>").addClass(I),this._$viewsWrapper=i("<div>").addClass(O),this.$body.append(this._$viewsWrapper))},_renderViews:function(){this.$element().addClass(A+"-"+this.option("zoomLevel"));var e=this.option("currentDate");if(this._view=this._renderSpecificView(e),this._view.option("_keyboardProcessor",this._viewKeyboardProcessor),x.hasWindow()){var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var n=this._getDateByOffset(1,e);n.setDate(1),this._afterView=this._isViewAvailable(n)?this._renderSpecificView(n):null}this._translateViews()},_renderSpecificView:function(e){var t=f[this.option("zoomLevel")],n=i("<div>").appendTo(this._$viewsWrapper),o=this._viewConfig(e);return new t(n,o)},_viewConfig:function(e){var t=this.option("disabledDates");return t=s.isFunction(t)?this._injectComponent(t.bind(this)):t,{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek"),value:this._dateOption("value"),rtl:this.option("rtlEnabled"),disabled:this.option("disabled"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:t,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel()}},_injectComponent:function(e){var t=this;return function(n){return u(n,{component:t}),e(n)}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),n=m.getViewMinBoundaryDate(t,this._getMinDate()),i=m.getViewMaxBoundaryDate(t,this._getMaxDate());return m.dateInRange(e,n,i)},_translateViews:function(){g.move(this._view.$element(),{left:0,top:0}),this._beforeView&&g.move(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&g.move(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){var t=this.option("rtlEnabled")&&!_.msie?-1:1;return 100*e*t+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),n=m.getViewDown(t),i=this._isMaxZoomLevel();if(n&&!i)this._navigateDown(e.event.currentTarget);else{var o=this._updateTimeComponent(e.value);this._dateValue(o,e.event),this._cellClickAction(e)}},_updateTimeComponent:function(e){var t=new Date(e),n=this._dateOption("value");return n&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds()),t.setMilliseconds(n.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var n=m.getViewDown(t);if(n){var o=this._view.option("contouredDate")||this._view.option("date");e&&(o=i(e).data(V)),this._isOtherViewCellClicked=!0,this.option("currentDate",o),this.option("zoomLevel",n),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._setViewContoured(this._getNormalizedDate(o))}}},_renderNavigator:function(){this._navigator||(this._navigator=new p(i("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(e){var t=this._getDateByOffset(e.direction,this.option("currentDate"));this._moveToClosestAvailableDate(t,1*e.direction),this._updateNavigatorCaption(-e.direction*this._getRtlCorrection())},_navigateUp:function(){var e=this.option("zoomLevel"),t=m.getViewUp(e);if(t&&!this._isMinZoomLevel(e)){var n=this._view.option("contouredDate");this.option("zoomLevel",t),this.option("currentDate",n||this._view.option("date")),this._renderNavigator(),this._animateShowView().done(function(){this._setViewContoured(n)}.bind(this))}},_isMinZoomLevel:function(e){var t=this._getMinDate(),n=this._getMaxDate();return m.sameView(e,t,n)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!s.isDefined(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!s.isDefined(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),h,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){w.stop(this._$viewsWrapper,!0),e.event.maxLeftOffset=this._getRequiredView("next")?1:0,e.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(e){var t,n=this.option("rtlEnabled");return"next"===e?t=n?this._beforeView:this._afterView:"prev"===e&&(t=n?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.event.offset;g.move(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.event.targetOffset,n=t?t/Math.abs(t):0;if(0===n)return void this._animateWrapper(0,B);var i=this._getDateByOffset(-n*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=this.$element().width()),this._viewWidthValue},_updateNavigatorCaption:function(e){e*=this._getRtlCorrection();var t=this._view;e>.5&&this._beforeView?t=this._beforeView:e<-.5&&this._afterView&&(t=this._afterView),this._navigator.option("text",t.getNavigatorCaption())},_isDateInInvalidRange:function(e){if(!this._view.isBoundary(e)){var t=this._getMinDate(),n=this._getMaxDate(),i=m.normalizeDate(e,t,n);return i===t||i===n}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent(i("<a>"),d,{focusStateEnabled:!1,text:b.format("dxCalendar-todayButtonText"),onClick:function(){this._toTodayView()}.bind(this),integrationOptions:{}}).$element().addClass(T);this._$footer=i("<div>").addClass(D).append(t),this.$element().append(this._$footer)}this.$element().toggleClass(E,e)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._getSubmitElement().val(v.serializeDate(t,R))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return w.stop(this._view.$element(),!0),this._popAnimationView(this._view,M,F,B).promise()},_popAnimationView:function(e,t,n,i){return w.animate(e.$element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:n,opacity:n},duration:i})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var n=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=n):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=n),this._translateViews()}var i=this._getRtlCorrection(),o=e>0?1:e<0?-1:0,a=-i*o*this._viewWidth(),r=this._$viewsWrapper.position().left;r!==a&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(a,B).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return w.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_toTodayView:function(){var e=new Date;return this._isMaxZoomLevel()?void this._dateOption("value",e):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",e),this._animateShowView(),void(this._preventViewChangeAnimation=!1))},_wrapperAnimationEndHandler:function(e,t){this._rearrangeViews(e),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t)},_rearrangeViews:function(e){if(0!==e){var t,n,i;if(e<0?(t=1,n="_beforeView",i="_afterView"):(t=-1,n="_afterView",i="_beforeView"),this[n]){var o=this[n].option("date");this[i]&&this[i].$element().remove(),e===t?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(t,o)),this._view.$element().remove()),this._view=this[n];var a=this._getDateByOffset(-t,o);this[n]=this._isViewAvailable(a)?this._renderSpecificView(a):null}}},_resetLocation:function(){g.move(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(e){var t=e?new Date(e):null;this._view.option("value",t),this._beforeView&&this._beforeView.option("value",t),this._afterView&&this._afterView.option("value",t)},_updateAriaSelected:function(e,t){e=e||this._dateOption("value");var n=this._view._getCellByDate(t),i=this._view._getCellByDate(e);this.setAria("selected",void 0,n),this.setAria("selected",!0,i),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){e=e||this.option("currentDate");var t="dx-"+new o,n=this._view._getCellByDate(e);this.setAria("id",t,n),this.setAria("activedescendant",t),this._onContouredChanged(t)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"width":this.callBase(e),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(n)),this._updateCurrentDate(t);break;case"zoomLevel":this.$element().removeClass(A+"-"+n),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),n=this._convertToDate(n),this._updateAriaSelected(t,n),this.option("currentDate",s.isDefined(t)?new Date(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"disabled":this._view.option("disabled",t),this.callBase(e);break;case"onCellClick":this._view.option("onCellClick",t);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"hasFocus":break;default:this.callBase(e)}}});a("dxCalendar",z),e.exports=z},function(e,t,n){var i=n(2),o=n(0).extend,a=n(17),r=n(35),s="dx-calendar-navigator",l="dx-calendar-navigator-previous-month",u="dx-calendar-navigator-next-month",d="dx-calendar-navigator-previous-view",c="dx-calendar-navigator-next-view",h="dx-calendar-disabled-navigator-link",p="dx-calendar-caption-button",f=a.inherit({_getDefaultOptions:function(){return o(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass(s),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent(i("<a>"),r,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(n){e._clickAction({direction:-t,event:n})},integrationOptions:{}});var n=this._prevButton.$element().addClass(d).addClass(l);this._nextButton=this._createComponent(i("<a>"),r,{focusStateEnabled:!1,icon:"chevronright",onClick:function(n){e._clickAction({direction:t,event:n})},integrationOptions:{}});var o=this._nextButton.$element().addClass(c).addClass(u);this._caption=this._createComponent(i("<a>").addClass(p),r,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({event:t})},integrationOptions:{}});var a=this._caption.$element();this.$element().append(n,a,o)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var n="_"+e+"Button",i=this[n];i&&(i.option("disabled",t),i.$element().toggleClass(h,t))},_optionChanged:function(e){switch(e.name){case"text":this._renderCaption();break;default:this.callBase(e)}}});e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(543),r=n(22),s=n(0).extend,l=n(32),u=n(57),d=n(1),c="dx-calendar-other-month",h="dx-calendar-other-view",p={month:a.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return s(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find("."+h).addClass(c)},_renderFocusTarget:o,getCellAriaLabel:function(e){return l.format(e,"longdate")},_renderHeader:function(){var e=this,t=i("<thead>");this._$table.prepend(t);var n=i("<tr>");t.append(n);var o=this.option("rtl")?function(e,t){e.prepend(t)}:function(e,t){e.append(t)};this._iterateCells(this.option("colCount"),function(t){var a=i("<th>").text(e._getDayCaption(e._getFirstDayOfWeek()+t));o(n,a)})},getNavigatorCaption:function(){return l.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=new Date;return r.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.dateInRange(e,t,n,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return l.format(e,"d")},_getDayCaption:function(e){var t=this.option("colCount");return l.getDayNames("abbreviated")[e%t]},_getFirstCellData:function(){var e=r.getFirstMonthDate(this.option("date")),t=this._getFirstDayOfWeek()-e.getDay(),n=this.option("colCount");return t>=0&&(t-=n),e.setDate(e.getDate()+t),e},_getNextCellData:function(e){return e=new Date(e),e.setDate(e.getDate()+1),e},_getFirstDayOfWeek:function(){return d.isDefined(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):l.firstDayOfWeekIndex()},_getCellByDate:function(e){return this._$table.find("td[data-value='"+u.serializeDate(e,r.getShortDateFormat())+"']")},isBoundary:function(e){return r.sameMonthAndYear(e,this.option("min"))||r.sameMonthAndYear(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){var n=e.some(function(e){return r.sameDate(e,t.date)});if(n)return!0}}}),year:a.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){return r.sameMonthAndYear(e,new Date)},_isDateOutOfRange:function(e){return!r.dateInRange(e,r.getFirstMonthDate(this.option("min")),r.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return l.getMonthNames("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=new Date(this.option("date"));return e.setDate(1),e.setMonth(0),e},_getNextCellData:function(e){return e=new Date(e),e.setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},getCellAriaLabel:function(e){return l.format(e,"monthandyear")},getNavigatorCaption:function(){return l.format(this.option("date"),"yyyy")},isBoundary:function(e){return r.sameYear(e,this.option("min"))||r.sameYear(e,this.option("max"))}}),decade:a.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){return r.sameYear(e,new Date)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.dateInRange(e.getFullYear(),t&&t.getFullYear(),n&&n.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.sameDecade(t,this.option("date"))},_getCellText:function(e){return l.format(e,"yyyy")},_getFirstCellData:function(){var e=r.getFirstYearInDecade(this.option("date"))-1;return new Date(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=r.getFirstYearInDecade(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+9),l.format(n,"yyyy")+"-"+l.format(i,"yyyy")},_isValueOnCurrentView:function(e,t){return r.sameDecade(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},isBoundary:function(e){return r.sameDecade(e,this.option("min"))||r.sameDecade(e,this.option("max"))}}),century:a.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){return r.sameDecade(e,new Date)},_isDateOutOfRange:function(e){var t=r.getFirstYearInDecade(e),n=r.getFirstYearInDecade(this.option("min")),i=r.getFirstYearInDecade(this.option("max"));return!r.dateInRange(t,n,i)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=l.format(e,"yyyy"),n=new Date(e);return n.setFullYear(n.getFullYear()+9),t+" - "+l.format(n,"yyyy")},_getFirstCellData:function(){var e=r.getFirstDecadeInCentury(this.option("date"))-10;return new Date(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear(r.getFirstYearInDecade(t)),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},getNavigatorCaption:function(){var e=this.option("date"),t=r.getFirstDecadeInCentury(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+99),l.format(n,"yyyy")+"-"+l.format(i,"yyyy")},isBoundary:function(e){return r.sameCentury(e,this.option("min"))||r.sameCentury(e,this.option("max"))}})};e.exports=p},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(38),s=n(11),l=n(17),u=n(22),d=n(0).extend,c=n(4).noop,h=n(57),p=n(8),f=n(20),g=l.abstract,_="dx-calendar-other-view",m="dx-calendar-cell",v="dx-calendar-empty-cell",y="dx-calendar-today",w="dx-calendar-selected-date",x="dx-calendar-contoured-date",b=p.addNamespace(f.name,"dxCalendar"),C="dxDateValueKey",k=l.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return d(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0})},_init:function(){this.callBase();var e=this.option("value");this.option("value",new Date(e)),this.option("value").valueOf()||this.option("value",new Date(0,0,0,0,0,0))},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this._$table=i("<table>"),this.$element().append(this._$table),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_renderBody:function(){function e(e){t&&u.fixTimezoneGap(t,d),t=d;var c=o.createElement("td"),p=i(c),f=m;n._isTodayCell(d)&&(f=f+" "+y),(n._isDateOutOfRange(d)||n.isDateDisabled(d))&&(f=f+" "+v),n._isOtherView(d)&&(f=f+" "+_),c.className=f,c.setAttribute("data-value",h.serializeDate(d,u.getShortDateFormat())),r.data(c,C,d),n.setAria({role:"option",label:n.getCellAriaLabel(d)},p),l(g,c),a?a.render({model:{text:n._getCellText(d),date:d,view:n._getViewName()},container:s.getPublicElement(p),index:e}):c.innerHTML=n._getCellText(d),d=n._getNextCellData(d)}this.$body=i("<tbody>").appendTo(this._$table);for(var t,n=this,a=this.option("cellTemplate"),l=this.option("rtl")?function(e,t){e.insertBefore(t,e.firstChild)}:function(e,t){e.appendChild(t)},d=this._getFirstCellData(),c=this.option("colCount"),p=0,f=this.option("rowCount");p<f;p++){var g=o.createElement("tr");this.$body.get(0).appendChild(g),this._iterateCells(c,e)}},_iterateCells:function(e,t){for(var n=0;n<e;)t(n),++n},_renderEvents:function(){this._createCellClickAction(),a.off(this._$table,b),a.on(this._$table,b,"td",function(e){i(e.currentTarget).hasClass(v)||this._cellClickAction({event:e,value:i(e.currentTarget).data(C)})}.bind(this))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var e=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(e)?this._getDefaultDisabledDatesHandler(e):e||c},_getDefaultDisabledDatesHandler:function(e){return c},_isTodayCell:g,_isDateOutOfRange:g,isDateDisabled:function(e){var t={date:e,view:this._getViewName()};return this._disabledDatesHandler(t)},_isOtherView:g,_getCellText:g,_getFirstCellData:g,_getNextCellData:g,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._$table.find("."+x),n=this._getCellByDate(e);t.removeClass(x),n.addClass(x)}},_dispose:function(){this._keyboardProcessor=void 0,this.callBase()},_changeValue:function(e){if(e){var t=this.option("value"),n=t?new Date(t):new Date;n.setDate(e.getDate()),n.setMonth(e.getMonth()),n.setFullYear(e.getFullYear()),n.setDate(e.getDate()),this.option("value",n)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var e=this.option("value"),t=this._getCellByDate(e);this._selectedCell&&this._selectedCell.removeClass(w),t.addClass(w),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=u.getFirstDateView(this._getViewName(),e),new Date(t&&e<t?t:e)},_getCellByDate:g,isBoundary:g,_optionChanged:function(e){var t=e.name;switch(t){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(e.value);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;default:this.callBase(e)}}});e.exports=k},function(e,t,n){var i=n(2),o=n(5),a=n(86),r=n(315),s=n(0).extend,l=n(1).isFunction,u=n(9),d=n(166),c="dx-colorbox",h=c+"-input",p=h+"-container",f=c+"-color-result-preview",g=c+"-color-is-not-defined",_=c+"-overlay",m="dx-colorview-container-cell",v="dx-colorview-button-cell",y="dx-colorview-buttons-container",w="dx-colorview-apply-button",x="dx-colorview-cancel-button",b=r.prototype,C={makeTransparentBackground:b._makeTransparentBackground.bind(b),makeRgba:b._makeRgba.bind(b)},k=d.inherit({_supportedKeys:function(){var e=function(e){if(e.stopPropagation(),this.option("opened"))return e.preventDefault(),!0},t=function(e){return this.option("opened")?!e.altKey||(this.close(),!1):(e.preventDefault(),!1)},n=function(e){return this.option("opened")||e.altKey?!(!this.option("opened")&&e.altKey)||(this._validatedOpening(),!1):(e.preventDefault(),!1)};return s(this.callBase(),{tab:function(e){this.option("opened")&&(e.preventDefault(),this._colorView._rgbInputs[0].focus())},enter:this._enterKeyHandler,leftArrow:e,rightArrow:e,upArrow:t,downArrow:n})},_getDefaultOptions:function(){return s(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,onApplyButtonClick:null,onCancelButtonClick:null,buttonsLocation:"bottom after"})},_popupHidingHandler:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&this._updateColorViewValue(this.option("value"))},_popupConfig:function(){return s(this.callBase(),{height:"auto",width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var e=this._popup.bottomToolbar();e&&(e.addClass(m).addClass(v).find(".dx-toolbar-items-container").addClass(y),e.find(".dx-popup-done").addClass(w),e.find(".dx-popup-cancel").addClass(x))},_createColorView:function(){this._popup.overlayContent().addClass(_);var e=i("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(e,r,this._colorViewConfig()),this._colorView.registerKeyHandler("escape",this._escapeHandler.bind(this)),o.on(e,"focus",function(){this.focus()}.bind(this))},_escapeHandler:function(){this.close(),this.focus()},_applyNewColor:function(e){this.option("value",e),e&&C.makeTransparentBackground(this._$colorResultPreview,e),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var e=this;return{value:e.option("value"),matchValue:e.option("value"),editAlphaChannel:e.option("editAlphaChannel"),applyValueMode:e.option("applyValueMode"),focusStateEnabled:e.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(){e._colorViewEnterKeyPressed=!0,e._colorView.option("value")!==e.option("value")&&(e._applyNewColor(e._colorView.option("value")),e.close())},onValueChanged:function(t){if(C.makeRgba(t.value)!==t.previousValue){var n="instantly"===e.option("applyValueMode");(n||e._colorViewEnterKeyPressed)&&e._applyNewColor(t.value)}},_keyboardProcessor:e._colorViewProcessor}},_enterKeyHandler:function(){var e=this._input().val(),t=this.option("value"),n=this.option("editAlphaChannel")?C.makeRgba(t):t;if(!e)return!1;var i=new a(e);if(i.colorIsInvalid)return void this._input().val(n);if(e!==n&&(this._applyColorFromInput(e),this.option("value",this.option("editAlphaChannel")?C.makeRgba(e):e)),this._colorView){var o=this._colorView.option("value");t!==o&&this.option("value",o)}return this.close(),!1},_applyButtonHandler:function(){this._applyNewColor(this._colorView.option("value")),l(this.option("onApplyButtonClick"))&&this.option("onApplyButtonClick")(),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),l(this.option("onCancelButtonClick"))&&this.option("onCancelButtonClick")(),this.callBase()},_attachChildKeyboardEvents:function(){if(this._colorViewProcessor=this._keyboardProcessor.attachChildProcessor(),this._colorView)return void this._colorView.option("_keyboardProcessor",this._colorViewProcessor)},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass(c),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass(h),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner(i("<div>").addClass(p)),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=i("<div>").addClass(f).appendTo(this._$textEditorInputContainer),this.option("value")?C.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(g)},_renderValue:function(){var e=this.option("value");return this.option("text",this.option("editAlphaChannel")?C.makeRgba(e):e),this.callBase()},_resetInputValue:function(){var e=this._input(),t=this.option("value");e.val(t),this._updateColorViewValue(t)},_updateColorViewValue:function(e){this._colorView&&this._colorView.option({value:e,matchValue:e})},
_valueChangeEventHandler:function(e){var t=this._input().val();t&&(t=this._applyColorFromInput(t),this._updateColorViewValue(t)),this.callBase(e,t)},_applyColorFromInput:function(e){var t=new a(e);return t.colorIsInvalid&&(this._resetInputValue(),e=this.option("value")),e},_optionChanged:function(e){var t=e.value,n=e.name;switch(n){case"value":this._$colorBoxInputContainer.toggleClass(g,!t),t?C.makeTransparentBackground(this._$colorResultPreview,t):this._$colorResultPreview.removeAttr("style"),this._updateColorViewValue(t),this.callBase(e);break;case"applyButtonText":case"cancelButtonText":this.callBase(e),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"onCancelButtonClick":case"onApplyButtonClick":case"keyStep":this._colorView&&this._colorView.option(n,t);break;case"applyValueMode":this.callBase(e);break;case"rtlEnabled":this._colorView&&this._colorView.option(n,t),this.callBase(e);break;default:this.callBase(e)}}});u("dxColorBox",k),e.exports=k},function(e,t,n){var i=n(9),o=n(546);i("dxNumberBox",o),e.exports=o},function(e,t,n){var i=n(5),o=n(0).extend,a=n(1).isNumeric,r=n(25),s=n(16),l=n(30).fitIntoRange,u=n(30).inRange,d=n(4).escapeRegExp,c=n(51),h=n(547),p=n(286).getFormat,f=n(548),g=n(8),_=n(1),m="dxNumberFormatter",v=1,y=-1,w="-",x="minus",b="Subtract",C="input",k=r.msie?300:0,I=function(e,t){return void 0===e?t:e},S=f.inherit({_getDefaultOptions:function(){return o(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(e){return"del"===e},_supportedKeys:function(){if(!this._useMaskBehavior())return this.callBase();var e=this;return o(this.callBase(),{minus:e._revertSign.bind(e),del:e._removeHandler.bind(e),backspace:e._removeHandler.bind(e),leftArrow:e._arrowHandler.bind(e,y),rightArrow:e._arrowHandler.bind(e,v),home:e._moveCaretToBoundaryEventHandler.bind(e,v),enter:e._updateFormattedValue.bind(e),end:e._moveCaretToBoundaryEventHandler.bind(e,y)})},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=null;var t=this._caret();if(t.start===t.end&&this._useMaskBehavior()){var n=this._getInputVal(),i=c.getDecimalSeparator(),o=n.indexOf(i);o>=0?this._caret({start:o,end:o}):this._moveCaretToBoundaryEventHandler(y,e)}}.bind(this),k)),this.callBase(e)},_focusOutHandler:function(e){var t=!this._preventNestedFocusEvent(e);t&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(e),t&&(this._focusOutOccurs=!1)},_hasValueBeenChanged:function(e){var t=this._getFormatPattern(),n=this.option("value"),i=this._format(n,t)||"";return i!==e},_updateFormattedValue:function(){var e=this._getInputVal();this._hasValueBeenChanged(e)&&(this._parsedValue=this._tryParse(e,this._caret()),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&i.trigger(this._input(),"change"))},_arrowHandler:function(e,t){if(this._useMaskBehavior()){var n=this._getInputVal(),i=this._getFormatPattern(),o=h.getCaretWithOffset(this._caret(),e);h.isCaretInBoundaries(o,n,i)||(o=e===v?o.end:o.start,t.preventDefault(),this._caret(h.getCaretInBoundaries(o,n,i)))}},_moveCaretToBoundary:function(e){var t=h.getCaretBoundaries(this._getInputVal(),this._getFormatPattern()),n=h.getCaretWithOffset(e===v?t.start:t.end,0);this._caret(n)},_moveCaretToBoundaryEventHandler:function(e,t){!this._useMaskBehavior()||t&&t.shiftKey||(this._moveCaretToBoundary(e),t&&t.preventDefault())},_shouldMoveCaret:function(e,t){var n=c.getDecimalSeparator(),i=e.charAt(t.end)===n,o="0"===e.charAt(t.end),a=(this._lastKey===n||"."===this._lastKey)&&i,r="0"===this._lastKey&&o;return a||r},_getInputVal:function(){return c.convertDigits(this._input().val(),!0)},_keyboardHandler:function(e){if(this.clearCaretTimeout(),this._lastKey=c.convertDigits(g.getChar(e),!0),this._lastKeyName=g.normalizeKeyName(e),!this._shouldHandleKey(e.originalEvent))return this.callBase(e);var t=this._getInputVal(),n=this._caret(),i=this._lastKeyName===x?"":this._lastKey,o=this._tryParse(t,n,i);return this._shouldMoveCaret(t,n)&&(this._moveCaret(1),e.originalEvent.preventDefault()),void 0===o?this._lastKeyName!==x&&e.originalEvent.preventDefault():this._parsedValue=o,this.callBase(e)},_keyPressHandler:function(e){this._useMaskBehavior()||this.callBase(e)},_removeHandler:function(e){var t=this._caret(),n=this._getInputVal(),i=t.start,o=t.end;this._lastKey=g.getChar(e),this._lastKeyName=g.normalizeKeyName(e);var a=this._isDeleteKey(this._lastKeyName),r=!a;if(i===o){var s=i,l=r&&s>0||a&&s<n.length;if(!l)return void e.preventDefault();a&&o++,r&&i--}var u=n.slice(i,o);if(this._isStub(u))return this._moveCaret(a?1:-1),(this._parsedValue<0||1/this._parsedValue===-(1/0))&&(this._revertSign(e),this._setTextByParsedValue()),void e.preventDefault();var d=c.getDecimalSeparator();if(u===d){var h=n.indexOf(d);return void(this._isNonStubAfter(h+1)&&(this._moveCaret(a?1:-1),e.preventDefault()))}if(o-i<n.length){var p=this._replaceSelectedText(n,{start:i,end:o},""),f=p.search(/[0-9]/)<0;if(f&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue===-(1/0)?-0:0)}var _=this._tryParse(n,{start:i,end:o},"");void 0===_?e.preventDefault():this._parsedValue=_},_isPercentFormat:function(){var e=this._getFormatPattern(),t=e.replace(/'[^']+'/g,"");return t.indexOf("%")!==-1},_parse:function(e,t){var n=this.option("format"),i=_.isFunction(n.parser),o=i?n.parser:c.parse,a=t.indexOf("."),r=e.indexOf(c.getDecimalSeparator()),s=a!==-1?a:t.length,l=r!==-1?r:e.length;return l>s&&t.indexOf("#")===-1&&(e=e.substr(l-s)),o(e,t)},_format:function(e,t){var n=this.option("format"),i=_.isFunction(n.formatter),o=i?n.formatter:c.format;return o(e,t)},_getFormatPattern:function(){var e=this.option("format"),t="string"==typeof e&&(e.indexOf("0")>=0||e.indexOf("#")>=0);return t?e:p(function(t){var n=this._format(t,e);return c.convertDigits(n,!0)}.bind(this))},_getFormatForSign:function(e){var t=this._getFormatPattern(),n=t.split(";"),i=c.getSign(e,t);return n[1]=n[1]||"-"+n[0],i<0?n[1]:n[0]},_removeStubs:function(e,t){var n=this._getFormatForSign(e),i=c.getThousandsSeparator(),o=this._getStubs(n),a=e;if(o.length){var r=o[0],s=new RegExp("("+d(o[1]||"")+")$","g"),l=new RegExp("[-"+d(t?"":i)+"]","g");a=a.replace(r,"").replace(s,"").replace(l,"")}return a},_getStubs:function(e){var t=/[^']([#0.,]+)/g.exec(e),n=t&&t[0].trim();return e.split(n).map(function(e){return e.replace(/'/g,"")})},_truncateToPrecision:function(e,t){if(_.isDefined(e)){var n=e.toString(),i=n.indexOf(".");if(n&&i>-1){var o=parseFloat(n.substr(0,i+t+1));return isNaN(o)?e:o}}return e},_tryParse:function(e,t,n){var i=this._replaceSelectedText(e,t,n),o=this._getFormatPattern(),a=t.start!==t.end,r=this._getParsedValue(i,o),s=this._getPrecisionLimits(o,i).max,l=r!==this._parsedValue,u=c.getDecimalSeparator(),d=n===u&&0===s,h=!a&&!l&&n!==w&&!this._isValueIncomplete(i)&&this._isStub(n);if(!d&&!h&&(""===this._removeStubs(i)&&(r=0*this._parsedValue),!isNaN(r))){var p=null===r?this._parsedValue:r;return r=this._truncateToPrecision(p,s),this._isPercentFormat()?r&&r/100:r}},_getParsedValue:function(e,t){var n=c.getSign(e,t),i=this._removeStubs(e,!0),o=this._parse(i,t),a=o?n*o:o;return a},_isValueIncomplete:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret(),n=c.getDecimalSeparator(),i=e.indexOf(n),o=i>=0&&i<t.start,a=this._removeStubs(e,!0).split(n);if(!o||2!==a.length)return!1;var r=a[1].length,s=this._getPrecisionLimits(this._getFormatPattern(),e),l=u(r,s.min,s.max),d="0"===a[1].charAt(r-1);return l&&(d||!r)},_isValueInRange:function(e){var t=I(this.option("min"),-(1/0)),n=I(this.option("max"),1/0);return u(e,t,n)},_setInputText:function(e){var t=c.convertDigits(e,!0),n=h.getCaretAfterFormat(this._getInputVal(),t,this._caret(),this._getFormatPattern());this._input().val(e),this._toggleEmptinessEventHandler(),this._formattedValue=e,this._focusOutOccurs||this._caret(n)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var e="number"===this.option("mode"),t="desktop"===s.real().deviceType;this._useMaskBehavior()&&e?this._setInputType(t||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(e){return"string"==typeof e&&1===e.length},_moveCaret:function(e){if(e){var t=h.getCaretWithOffset(this._caret(),e),n=h.getCaretInBoundaries(t,this._getInputVal(),this._getFormatPattern());this._caret(n)}},_shouldHandleKey:function(e){var t=g.normalizeKeyName(e),n=e.ctrlKey||e.shiftKey||e.altKey||!this._isChar(t),i=t===x,o=this._useMaskBehavior();return o&&!n&&!i},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){i.off(this._input(),"."+m)},_isInputFromPaste:function(e){var t=e.originalEvent&&e.originalEvent.inputType;return _.isDefined(t)?"insertFromPaste"===t:this._isValuePasted},_attachFormatterEvents:function(){var e=this._input();i.on(e,g.addNamespace(C,m),function(e){this._formatValue(e),this._isValuePasted=!1}.bind(this)),r.msie&&r.version<12&&i.on(e,g.addNamespace("paste",m),function(){this._isValuePasted=!0}.bind(this)),i.on(e,g.addNamespace("dxclick",m),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caret(h.getCaretInBoundaries(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),k))}.bind(this)),i.on(e,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=null},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(e,t){return t=(t||this._getInputVal()).slice(e),t&&!this._isStub(t,!0)},_isStub:function(e,t){var n=d(c.getDecimalSeparator()),i="^[^0-9"+n+"]+$",o=new RegExp(i,"g");return o.test(e)&&(t||this._isChar(e))},_parseValue:function(e){return this._useMaskBehavior()?this._parsedValue:this.callBase(e)},_getPrecisionLimits:function(e){var t=this._getFormatForSign(e),n=(t.split(".")[1]||"").replace(/[^#0]/g,""),i=n.replace(/^(0*)#*/,"$1").length,o=n.length;return{min:i,max:o}},_revertSign:function(e){if(this._useMaskBehavior()){var t=this._caret();if(t.start!==t.end){if(g.normalizeKeyName(e)===x)return void this._applyRevertedSign(e,t,!0);this._caret(h.getCaretInBoundaries(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(e,t)}},_applyRevertedSign:function(e,t,n){var o=-1*I(this._parsedValue,null);if(this._isValueInRange(o)){if(this._parsedValue=o,n){var a=this._getFormatPattern(),s=this._getInputVal();this._setTextByParsedValue(),e.preventDefault();var l=this._getInputVal(),u=h.getCaretOffset(s,l,a);t=h.getCaretWithOffset(t,u);var d=h.getCaretInBoundaries(t,l,a);r.msie?(clearTimeout(this._caretTimeout),this._caretTimeout=setTimeout(this._caret.bind(this,d))):this._caret(d)}e.key===b&&i.trigger(this._input(),C)}},_removeMinusFromText:function(e,t){var n=this._lastKeyName===x&&e.charAt(t.start-1)===w;return n?this._replaceSelectedText(e,{start:t.start-1,end:t.start},""):e},_setTextByParsedValue:function(){var e=this._getFormatPattern(),t=this._parseValue(),n=this._format(t,e)||"";this._setInputText(n)},_formatValue:function(e){var t=this._getInputVal(),n=this._caret(),i=this._removeMinusFromText(t,n),o=i!==t;if(t=i,!this._isInputFromPaste(e)&&this._isValueIncomplete(i))return this._formattedValue=t,void(o&&this._setTextByParsedValue());var a=c.convertDigits(this._formattedValue,!0)!==t;if(a){var r=this._tryParse(t,n,"");_.isDefined(r)&&(this._parsedValue=r)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_adjustParsedValue:function(){if(this._useMaskBehavior()){var e=this._removeStubs(this._getInputVal()),t=e?this._parseValue():null;return a(t)?void(this._parsedValue=l(t,this.option("min"),this.option("max"))):void(this._parsedValue=t)}},_valueChangeEventHandler:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret();this._saveValueChangeEvent(e),this._lastKey=null,this._lastKeyName=null,this._adjustParsedValue(),this.option("value",this._parsedValue),t&&this._caret(t)},_optionChanged:function(e){switch(e.name){case"format":case"useMaskBehavior":this._renderFormatter(),this._renderValue();break;case"min":case"max":this._adjustParsedValue(),this.callBase(e);break;default:this.callBase(e)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});e.exports=S},function(e,t,n){var i=n(30).fitIntoRange,o=n(4).escapeRegExp,a=n(51),r=function(e,t){var n=t.split(";"),i=a.getSign(e,t);n[1]=n[1]||"-"+n[0],t=n[i<0?1:0];var o=function(e){return e.replace(/'([^']*)'/g,function(e){return e.split("").map(function(){return" "}).join("").substr(2)})};t=o(t);var r=/^[^#0.,]*/.exec(t)[0].length,s=/[^#0.,]*$/.exec(t)[0].length;return{start:r,end:e.length-s}},s=function(e,t){var n=a.getDecimalSeparator(),i=new RegExp("[^0-9"+o(n)+"]","g"),r=t.slice(0,e);return r.replace(i,"").length},l=function(e){return e.split("").reverse().join("")},u=function(e,t){if(!e)return-1;for(var n=/[0-9]/g,i=1,o=null,a=n.exec(t);a;){if(o=a.index,!e||i>=e)return o;i++,a=n.exec(t)}return null===o?t.length:o},d=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}},c=function(e,t,n,i){n=d(n,0);var o=a.getDecimalSeparator(),r=h(e),c=r?0:e.indexOf(o),p=t.indexOf(o),g=r?e.split(e[c]):e.split(o),_=t.split(o),m=c!==-1&&n.start>c;if(m){var v=n.start-c-1,y=s(v,g[1]),w=_[1]?p+1+u(y,_[1])+1:t.length;return f(w,t,i)}var x=g[0].length-n.start,b=s(x,l(g[0])),C=u(b,l(_[0])),k=_[0].length-(C+1);return f(k,t,i)},h=function(e){return 1===e.length&&!!e.match(/^[,.][0-9]*$/g)},p=function(e,t,n){e=d(e,0);var i=f(e,t,n);return e.start>=i.start&&e.end<=i.end},f=function(e,t,n){e=d(e,0);var o=r(t,n),a={start:i(e.start,o.start,o.end),end:i(e.end,o.start,o.end)};return a},g=function(e,t,n){var i=r(e,n),o=r(t,n);return o.start-i.start};t.getCaretBoundaries=r,t.isCaretInBoundaries=p,t.getCaretWithOffset=d,t.getCaretInBoundaries=f,t.getCaretAfterFormat=c,t.getCaretOffset=g},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(4),s=n(1),l=n(30),u=n(0).extend,d=n(14).inArray,c=n(16),h=n(25),p=n(302),f=n(8),g=n(549).default,_=n(10),m=n(6).Deferred,v=Math,y="dx-numberbox",w=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],x="NumberBoxForceValueChange",b=p.inherit({_supportedKeys:function(){return u(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e)},downArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e)},enter:function(){}})},_getDefaultOptions:function(){return u(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:_.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:g}])},_isSupportInputMode:function(){var e=parseFloat(h.version);return h.chrome&&e>=66||h.safari&&e>=12||h.msie&&e>=75},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return c.real().generic&&!c.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==c.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(y),this.callBase()},_applyInputAttributes:function(e,t){e.attr("inputmode","decimal"),this.callBase(e,t)},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val(r.applyServerDecimalSeparator(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=f.getChar(e),n=/[\d.,eE\-+]|Subtract/,i=n.test(t);if(!i){var o=f.normalizeKeyName(e);if(e.metaKey||e.ctrlKey||o&&d(o,w)>=0)return;return e.preventDefault(),!1}this._keyPressed=!0},_onMouseWheel:function(e){e.delta>0?this._spinValueChange(1,e):this._spinValueChange(-1,e)},_renderValue:function(){var e=this._input().val(),t=this.option("value");e.length&&Number(e)===t||(this._forceValueRender(),this._toggleEmptinessEventHandler());var n=s.isDefined(t)?null:_.format("dxNumberBox-noDataText");return this.setAria({valuenow:r.ensureDefined(t,""),valuetext:n}),this.option("text",this._input().val()),this._updateButtons(),(new m).resolve()},_forceValueRender:function(){var e=this.option("value"),t=Number(e),n=isNaN(t)?"":this._applyDisplayValueFormatter(e);this._renderDisplayText(n)},_applyDisplayValueFormatter:function(e){return this.option("displayValueFormatter")(e)},_renderProps:function(){this.callBase(),this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:r.ensureDefined(this.option("min"),""),valuemax:r.ensureDefined(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||o.getActiveElement()===e[0]||a.trigger(e,"focus")},_spinUpChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(1,e.event||e)},_spinDownChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(-1,e.event||e)},_spinValueChange:function(e,t){var n=parseFloat(this.option("step"));if(0!==n){var i=parseFloat(this._normalizeInputValue())||0;i=this._correctRounding(i,n*e);var o=this.option("min"),a=this.option("max");void 0!==o&&(i=Math.max(o,i)),void 0!==a&&(i=Math.min(a,i)),this._saveValueChangeEvent(t),this.option("value",i)}},_correctRounding:function(e,t){var n=/[,.](.*)/,i=n.test(e),o=n.test(t);if(i||o){var a=i?n.exec(e)[0].length:0,r=o?n.exec(t)[0].length:0,s=v.max(a,r);return e=this._round(e+t,s)}return e+t},_round:function(e,t){t=t||0;var n=Math.pow(10,t);return e*=n,e=Math.round(e)/n},_renderValueChangeEvent:function(){this.callBase();var e=f.addNamespace("focusout",x);a.off(this.element(),e),a.on(this.element(),e,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this._applyDisplayValueFormatter(this.option("value"));e.val(null),e.val(t)}},_valueChangeEventHandler:function(e){var t=this._input(),n=this._normalizeText(),i=this._parseValue(n),o="."!==n&&"-"!==n;return this._isValueValid()&&!this._validateValue(i)?void t.val(this._applyDisplayValueFormatter(i)):(o&&this.callBase(e,isNaN(i)?null:i),this._applyValueBoundaries(n,i),void this.validationRequest.fire({value:i,editor:this}))},_applyValueBoundaries:function(e,t){var n=this._isValueIncomplete(e),i=this._isValueInRange(e);n||i||null===t||Number(e)!==t&&this._input().val(this._applyDisplayValueFormatter(t))},_replaceCommaWithPoint:function(e){return e.replace(",",".")},_inputIsInvalid:function(){var e="number"===this.option("mode"),t=this._input().get(0).validity;return e&&t&&t.badInput},_renderDisplayText:function(e){this._inputIsInvalid()||this.callBase(e)},_isValueIncomplete:function(e){var t=/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i;return t.test(e)},_isValueInRange:function(e){return l.inRange(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),n=this._isValueValid(),i=!0,o=this._isNumber(t);return isNaN(Number(e))&&(i=!1),!e&&n?i=!0:o||n||(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var e=this._input().val().trim();return this._replaceCommaWithPoint(e)},_parseValue:function(e){var t=parseFloat(e);return isNaN(t)?null:l.fitIntoRange(t,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(e){switch(e.name){case"value":this._validateValue(e.value),this._setSubmitValue(e.value),this.callBase(e),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(e)}}});e.exports=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(5),h=i(c),p=n(191),f=i(p),g=n(550),_=i(g),m=n(8),v=n(23),y=n(0),w="dx-numberbox-spin",x="dx-numberbox-spin-container",b="dx-numberbox-spin-touch-friendly",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_attachEvents",value:function(e,t){var n=this.editor,i=(0,m.addNamespace)(v.down,n.NAME),o=t.children(),a=n._createAction(function(e){return n._spinButtonsPointerDownHandler(e)});h.default.off(t,i),h.default.on(t,i,function(e){return a({event:e})}),_.default.getInstance(o.eq(0)).option("onChange",function(e){return n._spinUpChangeHandler(e)}),_.default.getInstance(o.eq(1)).option("onChange",function(e){return n._spinDownChangeHandler(e)})}},{key:"_create",value:function(){var e=this.editor,t=(0,d.default)("<div>").addClass(x),n=(0,d.default)("<div>").appendTo(t),i=(0,d.default)("<div>").appendTo(t),o=this._getOptions();return this._addToContainer(t),e._createComponent(n,_.default,(0,y.extend)({direction:"up"},o)),e._createComponent(i,_.default,(0,y.extend)({direction:"down"},o)),this._legacyRender(e.$element(),this._isTouchFriendly(),o.visible),{instance:t,$element:t}}},{key:"_getOptions",value:function(){var e=this.editor,t=this._isVisible(),n=e.option("disabled");return{visible:t,disabled:n}}},{key:"_isVisible",value:function(){var e=this.editor;return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_isVisible",this).call(this)&&e.option("showSpinButtons")}},{key:"_isTouchFriendly",value:function(){var e=this.editor;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")}},{key:"_legacyRender",value:function(e,t,n){e.toggleClass(b,t),e.toggleClass(w,n)}},{key:"update",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);if(e){var n=this.editor,i=this.instance,o=n.$element(),a=this._isVisible(),r=this._isTouchFriendly(),s=i.children(),u=_.default.getInstance(s.eq(0)),d=_.default.getInstance(s.eq(1)),c=this._getOptions();u.option(c),d.option(c),this._legacyRender(o,r,a)}}}]),t}(f.default);t.default=C},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(17),s=n(0).extend,l=n(8),u=n(23),d=n(133),c=n(91),h=n(6).Deferred,p="dx-numberbox-spin",f="dx-numberbox-spin-button",g=100,_="dxNumberBox",m=l.addNamespace(u.up,_),v=l.addNamespace(u.cancel,_),y=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var e=p+"-"+this.option("direction");this.$element().addClass(f).addClass(e),this._spinIcon=i("<div>").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=l.addNamespace(u.down,this.NAME),t=this.$element();a.off(t,e),a.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),a.on(this.$element(),c.name,function(){this._feedBackDeferred=new h,d.lock(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,g,{event:e})}.bind(this));var t=o.getDocument();a.on(t,m,this._clearTimer.bind(this)),a.on(t,v,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){a.off(this.$element(),c.name);var e=o.getDocument();a.off(e,m),a.off(e,v),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}});e.exports=y},function(e,t,n){var i=n(9),o=n(552);i("dxDateBox",o),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(8),a=n(1),r=n(11),s=n(0),l=n(30),u=n(5),d=i(u),c=n(553),h=n(32),p=i(h),f=n(212),g=n(188),_=n(554),m=i(_),v="dateBoxMask",y=1,w=-1,x=m.default.inherit({_supportedKeys:function(e){var t=this,n=this.callBase(e),i=function(e){var i=n[(0,o.normalizeKeyName)(e)];return i&&i.apply(t,[e])},a=function(e,n){return t._shouldUseOriginalHandler(e)?i.apply(t,[e]):n.apply(t,[e])};return(0,s.extend)({},n,{del:function(e){return a(e,function(e){t._revertPart(y),t._isAllSelected()||e.preventDefault()})},backspace:function(e){return a(e,function(e){t._revertPart(w),t._isAllSelected()||e.preventDefault()})},home:function(e){return a(e,function(e){t._selectFirstPart(),e.preventDefault()})},end:function(e){return a(e,function(e){t._selectLastPart(),e.preventDefault()})},escape:function(e){return a(e,function(e){t._revertChanges(e)})},enter:function(e){return a(e,function(e){t._enterHandler(e)})},leftArrow:function(e){return a(e,function(e){t._selectNextPart(w),e.preventDefault()})},rightArrow:function(e){return a(e,function(e){t._selectNextPart(y),e.preventDefault()})},upArrow:function(e){return a(e,function(e){t._upDownArrowHandler(y),e.preventDefault()})},downArrow:function(e){return a(e,function(e){t._upDownArrowHandler(w),e.preventDefault()})}})},_shouldUseOriginalHandler:function(e){var t=["backspace","del"],n=this.option("opened")&&e&&t.indexOf((0,o.normalizeKeyName)(e))===-1;return!this._useMaskBehavior()||n||e&&e.altKey},_upDownArrowHandler:function(e){this._setNewDateIfEmpty();var t=this._getActivePartValue(this._initialMaskValue),n=this._getActivePartValue(),i=n-t;this._loadMaskValue(this._initialMaskValue),this._partIncrease(i+e,!0)},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0),advanceCaret:!0})},_isSingleCharKey:function(e){var t=e.originalEvent.key;return"string"==typeof t&&1===t.length&&!e.ctrl&&!e.alt},_keyboardHandler:function(e){var t=e.originalEvent.key,n=this.callBase(e);return this._useMaskBehavior()&&this._isSingleCharKey(e)?(this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(t))?this._searchString(t):this._searchNumber(t),e.originalEvent.preventDefault(),n):n},_isAllSelected:function(){var e=this._caret();return e.end-e.start===this.option("text").length},_getFormatPattern:function(){if(this._formatPattern)return this._formatPattern;var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=(0,a.isString)(e)&&!p.default._getPatternByFormat(e);return t?this._formatPattern=e:this._formatPattern=(0,g.getFormat)(function(t){return p.default.format(t,e)}),this._formatPattern},_setNewDateIfEmpty:function(){if(!this._maskValue){var e="time"===this.option("type")?new Date(null):new Date;this._maskValue=e,this._initialMaskValue=e,this._renderDateParts()}},_searchNumber:function(e){var t=this._getActivePartLimits(),n=t.max,i=String(n).length,o=this._getActivePartProp("pattern").length;if(this._searchValue=(this._searchValue+e).substr(-i),isNaN(this._searchValue)&&(this._searchValue=e),this._setActivePartValue(this._searchValue),this.option("advanceCaret")){var a=1===o,r=a?i:Math.min(o,i),s=this._searchValue.length===r,l=parseInt(this._searchValue+"0")>n;(s||l)&&this._selectNextPart(y)}},_searchString:function(e){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var t=this._getActivePartProp("limits")(this._maskValue),n=this._searchValue+e.toLowerCase(),i=t.max-t.min,o=0;o<=i;o++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(o+1),0===this._getActivePartProp("text").toLowerCase().indexOf(n))return void(this._searchValue=n);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(e))}},_clearSearchValue:function(){this._searchValue=""},_revertPart:function(e){if(!this._isAllSelected()){var t=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(t),this._selectNextPart(e)}this._clearSearchValue()},_useMaskBehavior:function(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_initMaskState:function(){this._activePartIndex=0,this._formatPattern=null,this._regExpInfo=(0,f.getRegExpInfo)(this._getFormatPattern(),p.default),this._loadMaskValue()},_renderMask:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts:function(){if(this._useMaskBehavior()){var e=this.option("text")||this._getDisplayedText(this._maskValue);e&&(this._dateParts=(0,c.renderDateParts)(e,this._regExpInfo),this._selectNextPart())}},_detachMaskEvents:function(){d.default.off(this._input(),"."+v)},_attachMaskEvents:function(){var e=this;d.default.on(this._input(),(0,o.addNamespace)("dxclick",v),this._maskClickHandler.bind(this)),d.default.on(this._input(),(0,o.addNamespace)("paste",v),this._maskPasteHandler.bind(this)),d.default.on(this._input(),(0,o.addNamespace)("drop",v),function(){e._renderDisplayText(e._getDisplayedText(e._maskValue)),e._selectNextPart()})},_selectLastPart:function(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(w))},_selectFirstPart:function(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(y))},_onMouseWheel:function(e){this._useMaskBehavior()&&this._partIncrease(e.delta>0?y:w,e)},_selectNextPart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){e&&(this._initialMaskValue=new Date(this._maskValue));var t=(0,l.fitIntoRange)(this._activePartIndex+e,0,this._dateParts.length-1);
if(this._dateParts[t].isStub){var n=0===t&&e<0||t===this._dateParts.length-1&&e>0;if(!n)return void this._selectNextPart(e>=0?e+1:e-1);t=this._activePartIndex}this._activePartIndex!==t&&this._clearSearchValue(),this._activePartIndex=t,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern:function(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits:function(e){var t=this._getActivePartProp("limits");return t(this._maskValue,e&&this._getRealLimitsPattern())},_getActivePartValue:function(e){e=e||this._maskValue;var t=this._getActivePartProp("getter");return(0,a.isFunction)(t)?t(e):e[t]()},_addLeadingZeroes:function(e){var t=this._searchValue.match(/^0+/),n=this._getActivePartLimits(),i=String(n.max).length;return((t&&t[0]||"")+String(e)).substr(-i)},_setActivePartValue:function(e,t){t=t||this._maskValue;var n=this._getActivePartProp("setter"),i=this._getActivePartLimits();e=(0,l.inRange)(e,i.min,i.max)?e:e%10,e=this._addLeadingZeroes((0,l.fitIntoRange)(e,i.min,i.max)),(0,a.isFunction)(n)?n(t,e):t[n](e),this._renderDisplayText(this._getDisplayedText(t)),this._renderDateParts()},_getActivePartProp:function(e){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][e]},_loadMaskValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=e&&new Date(e),this._initialMaskValue=e&&new Date(e)},_saveMaskValue:function(){var e=this._maskValue&&new Date(this._maskValue);this._initialMaskValue=new Date(e),this.dateOption("value",e)},_revertChanges:function(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText:function(e){this.callBase(e),this._useMaskBehavior()&&this.option("text",e)},_partIncrease:function(e,t){this._setNewDateIfEmpty();var n=this._getActivePartLimits(t),i=n.max,o=n.min,a=i-o;1===a&&a++;var r=e+this._getActivePartValue();r>i?r=this._applyLimits(r,{limitBase:o,limitClosest:i,limitDelta:a}):r<o&&(r=this._applyLimits(r,{limitBase:i,limitClosest:o,limitDelta:a})),this._setActivePartValue(r)},_applyLimits:function(e,t){var n=t.limitBase,i=t.limitClosest,o=t.limitDelta,a=(e-i)%o;return a?n+a-1*(0,l.sign)(a):i},_maskClickHandler:function(){this.option("text")&&(this._activePartIndex=(0,c.getDatePartIndexByPosition)(this._dateParts,this._caret().start),this._caret(this._getActivePartProp("caret")))},_maskPasteHandler:function(e){var t=this._replaceSelectedText(this.option("text"),this._caret(),(0,r.clipboardText)(e)),n=p.default.parse(t,this._getFormatPattern());n&&(this._maskValue=n,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),e.preventDefault()},_isValueDirty:function(){var e=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(e&&e.getTime())},_fireChangeEvent:function(){this._clearSearchValue(),this._isValueDirty()&&d.default.trigger(this._input(),"change")},_enterHandler:function(e){this._fireChangeEvent(),this._selectNextPart(y),e.preventDefault()},_focusOutHandler:function(e){this.callBase(e),this._useMaskBehavior()&&!e.isDefaultPrevented()&&(this._fireChangeEvent(),this._selectFirstPart(e))},_valueChangeEventHandler:function(e){this._useMaskBehavior()?(this._saveValueChangeEvent(e),this.option("text")||(this._maskValue=null),this._saveMaskValue()):this.callBase(e)},_optionChanged:function(e){switch(e.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(e),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(e),this._renderDateParts();break;case"advanceCaret":case"emptyDateValue":break;default:this.callBase(e)}},_clearMaskState:function(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset:function(){this.callBase(),this._clearMaskState(),this._activePartIndex=0},_clean:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});e.exports=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderDateParts=t.getDatePartIndexByPosition=void 0;var i=n(212),o=n(0),a=n(30),r=n(4),s=function(e){return e.getMonth()+1},l=function(e,t){var n=e.getDate(),i=p("M",e),o=(0,a.fitIntoRange)(parseInt(t),i.min,i.max);e.setMonth(o-1,1);var r=p("dM",e),s=r.min,l=r.max,u=(0,a.fitIntoRange)(n,s,l);e.setDate(u)},u={a:function(e){return e.getHours()<12?0:1},E:"getDay",y:"getFullYear",M:s,L:s,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},d=(0,o.extend)({},(0,i.getPatternSetters)(),{a:function(e,t){var n=e.getHours(),i=n>=12;i!==!!parseInt(t)&&e.setHours((n+12)%24)},d:function(e,t){var n=p("dM",e).max;t>n&&e.setMonth(e.getMonth()+1),e.setDate(t)},h:function(e,t){var n=e.getHours()>=12;e.setHours(+t%12+(n?12:0))},M:l,L:l,E:function(e,t){t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:function(e,t){var n=e.getFullYear(),i=String(t).length,o=String(p("y",e).max).length,a=parseInt(String(n).substr(0,o-i)+t);e.setFullYear(a)}}),c=function(e){var t=function(){return e};return u[e]||t},h=function(e,t){for(var n=t.regexp.exec(e),i=0,o=0,a=[],s=1;s<n.length;s++){i=o,o=i+n[s].length;var l=t.patterns[s-1].replace(/^'|'$/g,""),u=c(l[0]);a.push({index:s-1,isStub:l===n[s],caret:{start:i,end:o},pattern:l,text:n[s],limits:p.bind(void 0,l[0]),setter:d[l[0]]||r.noop,getter:u})}return a},p=function(e,t,n){var i={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return i[n||e]||i.getAmPm},f=function(e,t){for(var n=0;n<e.length;n++){var i=e[n].caret.end>=t;if(!e[n].isStub&&i)return n}return null};t.getDatePartIndexByPosition=f,t.renderDateParts=h},function(e,t,n){var i=n(7),o=i.getWindow(),a=n(9),r=n(1),s=n(11),l=n(3).each,u=n(52).compare,d=n(0).extend,c=n(43),h=n(16),p=n(28),f=n(22),g=n(120),_=n(57),m=n(166),v=n(32),y=n(10),w="dx-datebox",x="dx-auto-width",b="dx-show-invalid-badge",C="dx-clear-button-area",k="dx-datebox-wrapper",I={calendar:"calendar",rollers:"rollers",list:"list","native":"native"},S={date:"date",datetime:"datetime",time:"time"},D={calendar:"Calendar",dateView:"DateView","native":"Native",calendarWithTime:"CalendarWithTime",list:"List"},T={Calendar:n(316),DateView:n(555),Native:n(558),CalendarWithTime:n(559),List:n(561)},E=m.inherit({_supportedKeys:function(){return d(this.callBase(),this._strategy.supportedKeys())},_setDeprecatedOptions:function(){this.callBase(),d(this._deprecatedOptions,{maxZoomLevel:{since:"18.1",alias:"calendarOptions.maxZoomLevel"},minZoomLevel:{since:"18.1",alias:"calendarOptions.minZoomLevel"}})},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return d(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,maxZoomLevel:"month",minZoomLevel:"century",pickerType:I.calendar,invalidDateMessage:y.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:y.format("validation-range"),applyButtonText:y.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showPopupTitle:!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var e=h.real(),t=e.platform;return"ios"===t||"android"===t},options:{pickerType:I.native}},{device:function(e){var t=h.real(),n=t.platform,i=t.version;return"generic"===n&&"desktop"!==e.deviceType||"android"===n&&u(i,[4,4])<0},options:{pickerType:I.rollers}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(e){this._userOptions=d({},e),this.callBase(e),this._updatePickerOptions()},_updatePickerOptions:function(){var e=this.option("pickerType"),t=this.option("type");e!==I.list||t!==S.datetime&&t!==S.date||(e=I.calendar),t===S.time&&e===I.calendar&&(e=I.list),this.option("showDropDownButton","generic"!==h.real().platform||e!==I.native),this._pickerType=e},_init:function(){this._initStrategy(),this.option(d({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this._skipCustomValidation=!1,this.callBase()},_toLowerCaseFirstLetter:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},_initStrategy:function(){var e=this._getStrategyName(this._getFormatType()),t=T[e];this._strategy&&this._strategy.NAME===e||(this._strategy=new t(this))},_getFormatType:function(){var e=this.option("type"),t=/h|m|s/g.test(e),n=/d|M|Y/g.test(e),i="";return n&&(i+=S.date),t&&(i+=S.time),i},_getStrategyName:function(e){var t=this._pickerType;return t===I.rollers?D.dateView:t===I.native?D.native:e===S.date?D.calendar:e===S.datetime?D.calendarWithTime:D.list},_initMarkup:function(){this.$element().addClass(w),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass(x,!this.option("width"))},_refreshFormatClass:function(){var e=this.$element();l(S,function(t,n){e.removeClass(w+"-"+n)}),e.addClass(w+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var e=this.$element();l(I,function(t,n){e.removeClass(w+"-"+n)}),e.addClass(w+"-"+this._pickerType)},_formatValidationIcon:function(){if(i.hasWindow()){var e=this._input().get(0),t=this.option("rtlEnabled"),n=this._getClearButtonWidth(),a=this._getLongestElementDimensions(),r=parseFloat(o.getComputedStyle(e).width)-n,s=a.width>r,l=e.style;this.$element().toggleClass(b,!s),s?(void 0===this._storedPadding&&(this._storedPadding=t?a.leftPadding:a.rightPadding),t?l.paddingLeft=0:l.paddingRight=0):t?l.paddingLeft=this._storedPadding+"px":l.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var e=0;if(this._isClearButtonVisible()&&""===this._input().val()){var t=this.$element().find("."+C).get(0);e=parseFloat(o.getComputedStyle(t).width)}return e},_getLongestElementDimensions:function(){var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=v.format(g.getLongestDate(e,v.getMonthNames(),v.getDayNames()),e),n=this._input(),i=n.get(0),a=s.createTextElementHiddenCopy(n,t),r=void 0!==this._storedPadding,l=r?this._storedPadding:0;a.appendTo(this.$element());var u=parseFloat(o.getComputedStyle(a.get(0)).width),d=parseFloat(o.getComputedStyle(i).paddingRight),c=parseFloat(o.getComputedStyle(i).paddingLeft),h=u+c+d+l;return a.remove(),{width:h,leftPadding:c,rightPadding:d}},_attachChildKeyboardEvents:function(){this._strategy.attachKeyboardEvents(this._keyboardProcessor)},_renderPopup:function(){this.callBase(),this._popup._wrapper().addClass(k),this._renderPopupWrapper()},_popupConfig:function(){var e=this.callBase();return d(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.$element(),t=d({},S,I);l(t,function(t,n){e.removeClass(k+"-"+n)}.bind(this)),this._popup._wrapper().addClass(k+"-"+this.option("type")).addClass(k+"-"+this._pickerType)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupHiddenHandler:function(){this.callBase(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._formatValidationIcon()},_clearValueHandler:function(e){this.option("text",""),this.callBase(e)},_readOnlyPropValue:function(){if(this._pickerType===I.rollers)return!0;var e=h.real().platform,t=this._isNativeType()&&("ios"===e||"android"===e);return t?this.option("readOnly"):this.callBase()},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value");return this.option("text",this._getDisplayedText(e)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat"),n=g.SUBMIT_FORMATS_MAP[this.option("type")],i=t?_.serializeDate(e,t):g.toStandardDateFormat(e,n);this._getSubmitElement().val(i)},_getDisplayedText:function(e){var t,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));t=v.format(e,i)}else{var o=this._getFormatByMode(n);t=o?v.format(e,o):g.toStandardDateFormat(e,n)}return t},_getFormatByMode:function(e){return c.inputType(e)?null:g.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var t=this.option("text"),n=this.dateOption("value");if(t===this._getDisplayedText(n))return void this._validateValue(n);var i=this._getParsedDate(t),o=n||this._getDateByDefault(),a=this.option("type"),r=g.mergeDates(o,i,a),s=i&&"time"===a?r:i;if(this._applyInternalValidation(s)){var l=this._getDisplayedText(r);o&&r&&o.getTime()===r.getTime()&&l!==t?this._renderValue():this.dateValue(r,e)}this._applyCustomValidation(r)},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=this._strategy.getParsedText(e,t);return r.isDefined(n)?n:void 0},_validateValue:function(e){var t=this._applyInternalValidation(e),n=!!this._skipCustomValidation||this._applyCustomValidation(e);return this._skipCustomValidation=!1,t&&n},_applyInternalValidation:function(e){var t=this.option("text"),n=!!t&&null!==e,i=!!e&&r.isDate(e)&&!isNaN(e.getTime()),o=i&&f.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),a=!n&&!e||o,s="";return i?o||(s=this.option("dateOutOfRangeMessage")):s=this.option("invalidDateMessage"),this.option({isValid:a,validationError:a?null:{editorSpecific:!0,message:s}}),a},_applyCustomValidation:function(e){return this.validationRequest.fire({editor:this,value:e}),this.option("isValid")},_isValueChanged:function(e){var t=this.dateOption("value"),n=t&&t.getTime(),i=e&&e.getTime();return n!==i},_isTextChanged:function(e){var t=this.option("text"),n=e&&this._getDisplayedText(e)||"";return t!==n},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy(),this._strategy.renderOpenedState()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===S.time?y.format("dxDateBox-simulatedDataPickerTitleTime"):t===S.date||t===S.datetime?y.format("dxDateBox-simulatedDataPickerTitleDate"):""},_renderPlaceholder:function(){this._popup&&this._popup.option("title",this._getPopupTitle()),this.callBase()},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(e){var t=this._strategy.getValue();this._applyInternalValidation(t)&&this.dateValue(t,e.event),this.callBase()},_dispose:function(){this._strategy&&this._strategy.dispose(),this.callBase()},_isNativeType:function(){return this._pickerType===I.native},_optionChanged:function(e){switch(e.name){case"showClearButton":case"buttons":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:e.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:e.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this._renderPlaceholder();break;case"min":case"max":this.option("isValid")?this._applyInternalValidation(this.dateOption("value")):this._validateValue(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":case"minZoomLevel":case"maxZoomLevel":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"formatWidthCalculator":break;case"closeOnValueChange":var t=e.value?"instantly":"useButtons";this.option("applyValueMode",t);break;case"applyValueMode":this.option("closeOnValueChange","instantly"===e.value),this.callBase.apply(this,arguments);break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"showDropDownButton":this._formatValidationIcon();break;case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var e=this.option("value");if(this.option("dateSerializationFormat")&&p().forceIsoDateParsing)return this.option("dateSerializationFormat");if(r.isNumeric(e))return"number";if(r.isString(e))return _.getDateSerializationFormat(e)},_updateValue:function(e){this.callBase(),this._validateValue(e||this.dateOption("value"))},dateValue:function(e,t){var n=this._isValueChanged(e);return n&&t&&this._saveValueChangeEvent(t),!n&&this._isTextChanged(e)&&this._updateValue(e),this.dateOption("value",e)},dateOption:function(e,t){if(1===arguments.length)return _.deserializeDate(this.option(e));var n=this._getSerializationFormat();this.option(e,_.serializeDate(t,n))},reset:function(){var e=this._getDefaultOptions();this._skipCustomValidation=e.value===this.dateOption("value"),this.callBase(),this._updateValue(this.dateOption("value"))}});a("dxDateBox",E),e.exports=E},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(556),r=n(196),s=n(43),l=n(0).extend,u=n(120),d=n(10),c=r.inherit({NAME:"DateView",getDefaultOptions:function(){return l(this.callBase(),{openOnFieldClick:!0,applyButtonText:d.format("OK")})},getDisplayFormat:function(e){return e||u.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(e){return{showTitle:!0,toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:e.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform;return"generic"===t||"ios"===t},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,n=e.phone;return"generic"===t&&n},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:o}}}]}},_renderWidget:function(){if(s.inputType(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))return void(this._widget&&(this._widget.$element().remove(),this._widget=null));var e=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var t=i("<div>").appendTo(e.$content());this._widget=this._createWidget(t)}this._widget.$element().appendTo(this._getWidgetContainer())},_getWidgetName:function(){return a},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*u.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});e.exports=c},function(e,t,n){var i=n(2),o=n(48),a=n(557),r=n(22),s=n(3).each,l=n(0).extend,u=n(120),d=n(9),c=n(32),h="dx-dateview",p="dx-dateview-compact",f="dx-dateview-wrapper",g="dx-dateview-rollers",_="dx-dateviewroller",m={date:"date",datetime:"datetime",time:"time"},v={year:"year",month:"month",day:"day",hours:"hours"},y=o.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===m.date?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return l(this.callBase(),{minDate:u.MIN_DATEVIEW_DEFAULT_DATE,maxDate:u.MAX_DATEVIEW_DEFAULT_DATE,type:m.date,value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(h),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass(h+"-"+e),t&&this.$element().removeClass(h+"-"+t)},_toggleCompactClass:function(){this.$element().toggleClass(p,this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=i("<div>").addClass(f),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=i("<div>").addClass(g)),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;s(e._rollerConfigs,function(t){var n=i("<div>").appendTo(e._$rollersContainer).addClass(_+"-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(n,a,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:!1,onStart:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex"))},onEnd:function(e){var t=e.component;t._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){var i=n.component;e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex"))}})}),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},c.getFormatParts(u.FORMATS_MAP[e]).forEach(function(e){t._createRollerConfig(e)})},_createRollerConfig:function(e){for(var t=u.DATE_COMPONENTS_INFO[e],n=this._calculateRollerConfigValueRange(e),i=n.startValue,o=n.endValue,a=t.formatter,r=this._getCurrentDate(),s={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-i}},l=i;l<=o;l++)s.valueItems.push(l),s.displayItems.push(a(l,r));s.selectedIndex=s.getIndex(r),this._rollerConfigs[e]=s},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];s(this._rollers,function(){this.toggleActiveState(this===t)})},_updateRollersPosition:function(){var e=this;s(this._rollers,function(t){var n=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",n)})},_setRollerState:function(e,t){if(t!==e.selectedIndex){var n=e.valueItems[t],i=e.setValue,o=new Date(this._getCurrentDate()),a=o.getDate(),s=this.option("minDate"),l=this.option("maxDate");e.type===v.month?a=Math.min(a,u.getMaxMonthDay(o.getFullYear(),n)):e.type===v.year&&(a=Math.min(a,u.getMaxMonthDay(n,o.getMonth()))),o.setDate(a),o[i](n);var d=r.normalizeDate(o,s,l);o=u.mergeDates(d,o,"time"),o=r.normalizeDate(o,s,l),this.option("value",o),e.selectedIndex=t}e.type===v.year&&this._refreshRollers(),e.type===v.month&&(this._refreshRoller(v.day),this._refreshRoller(v.hours))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var n=this._rollerConfigs[e];e!==v.day&&n.displayItems.toString()===t.option("items").toString()||t.option({items:n.displayItems,selectedIndex:n.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),n=this.option("maxDate");return r.normalizeDate(e,t,n)},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),o=r.sameYear(t,n),a=o&&t.getMonth()===n.getMonth(),s=r.sameYear(t,i),l=s&&t.getMonth()===i.getMonth(),d=a&&t.getDate()===n.getDate(),c=l&&t.getDate()===i.getDate(),h=u.DATE_COMPONENTS_INFO[e],p=h.startValue,f=h.endValue;return e===v.year&&(p=n.getFullYear(),f=i.getFullYear()),e===v.month&&(o&&(p=n.getMonth()),s&&(f=i.getMonth())),e===v.day&&(f=u.getMaxMonthDay(t.getFullYear(),t.getMonth()),o&&a&&(p=n.getDate()),s&&l&&(f=i.getDate())),e===v.hours&&(p=d?n.getHours():p,f=c?i.getHours():f),{startValue:p,endValue:f}},_refreshRollers:function(){this._refreshRoller(v.month),this._refreshRoller(v.day),this._refreshRoller(v.hours)},_optionChanged:function(e){switch(e.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer},_dispose:function(){clearTimeout(this._deferredRenderDayTimeout),clearTimeout(this._deferredRenderMonthTimeout),this.callBase()}});d("dxDateView",y),e.exports=y},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(0).extend,s=n(3).each,l=n(8),u=n(20),d=n(94),c=n(39),h=n(27),p="dx-dateviewroller",f="dx-state-active",g="dx-dateviewroller-current",_="dx-dateview-item",m="dx-dateview-item-selected",v="dx-dateview-item-selected-frame",y="dx-dateview-item-selected-border",w=d.inherit({_getDefaultOptions:function(){return r(this.callBase(),{showScrollbar:!1,useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{scrollByContent:!0}}])},_init:function(){this.callBase(),this._renderSelectedItemFrame()},_render:function(){this.callBase(),this.$element().addClass(p),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._wrapAction("_endAction",this._endActionHandler.bind(this)),this._renderSelectedIndexChanged()},_renderSelectedIndexChanged:function(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")},_renderContainerClick:function(){if(this.option("showOnClick")){var e=l.addNamespace(u.name,this.NAME),t=this._createActionByOption("onClick");o.off(this._$container,e),o.on(this._$container,e,function(e){t({event:e})})}},_wrapAction:function(e,t){var n=this._strategy,i=n[e];n[e]=function(){return t.apply(this,arguments),i.apply(this,arguments)}},_renderItems:function(){var e=this.option("items")||[],t=i();this._$content.empty(),e.forEach(function(e){t=t.add(i("<div>").addClass(_).append(e))}),this._$content.append(t),this._$items=t,this.update()},_renderSelectedItemFrame:function(){i("<div>").addClass(v).append(i("<div>").addClass(y)).appendTo(this._$container)},_renderSelectedValue:function(e){var t=this._fitIndex(e||this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()},_fitIndex:function(e){var t=this.option("items")||[],n=t.length;return e>=n?n-1:e<0?0:e},_getItemPosition:function(e){return Math.round(this._itemHeight()*e)},_renderItemsClick:function(){var e=this._getItemSelector(),t=l.addNamespace(u.name,this.NAME);o.off(this.$element(),t,e),o.on(this.$element(),t,e,this._itemClickHandler.bind(this))},_getItemSelector:function(){return"."+_},_itemClickHandler:function(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))},_itemElementIndex:function(e){return this._itemElements().index(e)},_itemElements:function(){return this.$element().find(this._getItemSelector())},_renderActiveStateItem:function(){var e=this.option("selectedIndex");s(this._$items,function(t){i(this).toggleClass(m,e===t)})},_moveTo:function(e){e=this._normalizeLocation(e);var t=this._location(),n={x:-(t.left-e.left),y:-(t.top-e.top)};if(this._isVisible()&&(n.x||n.y))if(this._strategy._prepareDirections(!0),this._animation){var i=this;c.stop(this._$content),c.animate(this._$content,{duration:200,type:"slide",to:{top:Math.floor(n.y)},complete:function(){h.resetPosition(i._$content),i._strategy.handleMove({delta:n})}}),delete this._animation}else this._strategy.handleMove({delta:n})},_validate:function(e){return this._strategy.validate(e)},_endActionHandler:function(){var e=this.option("selectedIndex"),t=-this._location().top/this._itemHeight(),n=Math.round(t);this._animation=!0,n===e?this._renderSelectedValue(n):this.option("selectedIndex",n)},_itemHeight:function(){var e=this._$items.first();return e.get(0)&&e.get(0).getBoundingClientRect().height||0},_toggleActive:function(e){this.$element().toggleClass(f,e)},_isVisible:function(){return this._$container.is(":visible")},_fireSelectedIndexChanged:function(e,t){this._selectedIndexChanged({value:e,previousValue:t,event:void 0})},_visibilityChanged:function(e){this.callBase(e),e&&this._renderSelectedValue(this.option("selectedIndex")),this.toggleActiveState(!1)},toggleActiveState:function(e){this.$element().toggleClass(g,e)},_refreshSelectedIndex:function(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)},_optionChanged:function(e){switch(e.name){case"selectedIndex":this._fireSelectedIndexChanged(e.value,e.previousValue),this._renderSelectedValue(e.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:this.callBase(e)}}});a("dxDateViewRoller",w),e.exports=w},function(e,t,n){var i=n(4).noop,o=n(196),a=n(43),r=n(14).inArray,s=n(120),l=n(57),u=o.inherit({NAME:"Native",popupConfig:i,getParsedText:function(e){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):s.fromStandardDateFormat(e):null},renderPopupContent:i,_getWidgetName:i,_getWidgetOptions:i,_getDateBoxType:function(){var e=this.dateBox.option("type");return r(e,s.SUPPORTED_FORMATS)===-1?e="date":"datetime"!==e||a.inputType(e)||(e="datetime-local"),e},customizeButtons:function(){var e=this.dateBox.getButton("dropDown");e&&e.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||s.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:l.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:l.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});e.exports=u},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(316),r=n(560),s=n(32),l=n(0).extend,u=n(194),d=n(120),c=573,h="dx-datebox-adaptivity-mode",p=a.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return l(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after",showPopupTitle:!1})},getDisplayFormat:function(e){return e||"shortdateshorttime"},_is24HourFormat:function(){return s.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent(i("<div>"),r,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this));
},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e._wrapper().toggleClass(h,this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView(),t=this._currentAdaptiveMode;return e!==t?(this._currentAdaptiveMode=e,void 0!==t):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date,d.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return i(o).width()<=c},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().$content();this._box=this.dateBox._createComponent(i("<div>").appendTo(e),u,{direction:"row",crossAlign:"start",items:this._getBoxItems(),itemTemplate:function(e){var t=i("<div>");switch(e.name){case"calendar":t.append(this._widget.$element()),this._isShrinkView()&&t.append(this._timeView.$element());break;case"time":t.append(this._timeView.$element())}return t}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e),n=l(t,{onShowing:function(){if("fallback"===this._box.option("_layoutStrategy")){var e=this._getPopup().$content().find(".dx-timeview-clock").css("minWidth");this._timeView.$element().css("maxWidth",e)}}.bind(this)});return n},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var e=this.dateBox,t=function(t){t.shiftKey&&(t.preventDefault(),e.focus())};this._timeView._hourBox.registerKeyHandler("tab",t)},_preventFocusOnPopup:function(e){i(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},getValue:function(){var e=this._widget.option("value"),t=this._timeView.option("value");return e=e?new Date(e):new Date,e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(48),s=i(r),l=n(119),u=i(l),d=n(95),c=i(d),h=n(194),p=i(h),f=n(0),g=n(9),_=i(g),m=n(32),v=n(120),y="dx-timeview",w="dx-timeview-clock",x="dx-timeview-field",b="dx-timeview-hourarrow",C="dx-timeview-time-separator",k="dx-timeview-format12",I=-1,S=1,D="dx-timeview-minutearrow",T=function(e,t,n){E(e,t,n)},E=function(e,t,n){e.css("transform","rotate("+t+"deg) translate(0,"+n+"px)")},O=s.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{_arrowOffset:15}},{device:{platform:"generic"},options:{_arrowOffset:5}}])},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass(y)},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=(0,a.default)("<div>").appendTo(this.$element()),t=[];this.option("_showClock")&&t.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),t.push({ratio:0,shrink:0,baseSize:50,template:this._renderField.bind(this)}),this._createComponent(e,p.default,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,n){this._$hourArrow=(0,a.default)("<div>").addClass(b),this._$minuteArrow=(0,a.default)("<div>").addClass(D);var i=(0,a.default)(n);i.addClass(w).append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",i)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,n=e.getMinutes()/60*360;T(this._$hourArrow,t,this.option("_arrowOffset")),T(this._$minuteArrow,n,this.option("_arrowOffset"))},_getBoxItems:function(e){var t=this,n=[{ratio:0,shrink:0,baseSize:"auto",template:function(){return t._hourBox.$element()}},{ratio:0,shrink:0,baseSize:"auto",template:(0,a.default)("<div>").addClass(C).text((0,m.getTimeSeparator)())},{ratio:0,shrink:0,baseSize:"auto",template:function(){return t._minuteBox.$element()}}];return e&&n.push({ratio:0,shrink:0,baseSize:"auto",template:function(){return t._format12.$element()}}),n},_renderField:function(){var e=!this.option("use24HourFormat");return this._createHourBox(),this._createMinuteBox(),e&&this._createFormat12Box(),this._createComponent((0,a.default)("<div>").addClass(x),p.default,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(e)}).$element()},_attachKeyboardProcessorToEditor:function(e){var t=e._keyboardProcessor;t&&t.attachChildProcessor().reinitialize(this._keyboardHandler,this)},_createHourBox:function(){var e=this._hourBox=this._createComponent((0,a.default)("<div>"),u.default,(0,f.extend)({min:-1,max:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this)},this._getNumberBoxConfig()));e.setAria("label","hours"),this._attachKeyboardProcessorToEditor(e)},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(e){var t=this._getValue(),n=new Date(t),i=this._convertMaxHourToMin(e.value);this._isPM()&&(i+=12),n.setHours(i),(0,v.normalizeTime)(n),this.option("value",n)},_convertMaxHourToMin:function(e){var t=this.option("use24HourFormat")?24:12;return(t+e)%t},_createMinuteBox:function(){var e=this,t=this._minuteBox=this._createComponent((0,a.default)("<div>"),u.default,(0,f.extend)({min:-1,max:60,value:this._getValue().getMinutes(),onValueChanged:function(t){var n=t.value,i=t.component,o=(60+n)%60;i.option("value",o);var a=new Date(e._getValue());a.setMinutes(o),(0,v.normalizeTime)(a),e.option("value",a)}},this._getNumberBoxConfig()));t.setAria("label","minutes"),this._attachKeyboardProcessorToEditor(t)},_createFormat12Box:function(){var e=this,t=(0,m.getPeriodNames)(),n=this._format12=this._createComponent((0,a.default)("<div>").addClass(k),c.default,{items:[{value:I,text:t[0]},{value:S,text:t[1]}],valueExpr:"value",displayExpr:"text",onValueChanged:function(t){var n=t.value,i=e._getValue().getHours(),o=new Date(e._getValue()),a=(i+12*n)%24;o.setHours(a),e.option("value",o)},value:this._getValue().getHours()>=12?S:I,stylingMode:this.option("stylingMode")});this._attachKeyboardProcessorToEditor(n),n.setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var e=this._getValue(),t=e.getHours(),n=t>=12,i=n?S:I;this._silentEditorValueUpdate(this._format12,i)}},_silentEditorValueUpdate:function(e,t){e&&(e._suppressValueChangeAction(),e.option("value",t),e._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(e){return(e<10?"0":"")+e},stylingMode:this.option("stylingMode")}},_normalizeHours:function(e){return this.option("use24HourFormat")?e:e%12||12},_updateField:function(){var e=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,e),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_optionChanged:function(e){switch(e.name){case"value":this._updateTime(),this.callBase(e);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(e)}}});(0,_.default)("dxTimeView",O),e.exports=O},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(103),r=n(196),s=n(4).noop,l=n(4).ensureDefined,u=n(1).isDate,d=n(0).extend,c=n(120),h=n(32),p="date",f={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},g=r.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){this.option("opened")&&this.close()},space:s,home:s,end:s}},getDefaultOptions:function(){return d(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){return d(e,{width:this._getPopupWidth()})},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},_getPopupWidth:function(){return this.dateBox.$element().outerWidth()},popupShowingHandler:function(){this._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return a},_getWidgetOptions:function(){var e=this.dateBox._keyboardProcessor;return{_keyboardProcessor:e?e.attachChildProcessor():null,itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",e.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var e=this.dateBoxValue(),t=this._getDateIndex(e);t===-1?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",t)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(e){for(var t=-1,n=0,i=this._widgetItems.length;n<i;n++)if(this._areDatesEqual(e,this._widgetItems[n])){t=n;break}return t},_areDatesEqual:function(e,t){return u(e)&&u(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},_getTimeListItems:function(){var e=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),t=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),n=this.dateBox.dateOption("value")||null,i=t-e,o=e.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>c.ONE_DAY&&(i=c.ONE_DAY),n-e<c.ONE_DAY?this._getRangeItems(e,new Date(e),i):(e=this._getBoundaryDate("min"),e.setMinutes(o),n&&Math.abs(n-t)<c.ONE_DAY&&(i=(60*t.getHours()+Math.abs(t.getMinutes()-o))*c.ONE_MINUTE),this._getRangeItems(e,new Date(e),i)))},_getRangeItems:function(e,t,n){for(var i=[],o=this.dateBox.option("interval");t-e<n;)i.push(new Date(t)),t.setMinutes(t.getMinutes()+o);return i},_getBoundaryDate:function(e){var t=f[e],n=new Date(l(this.dateBox.dateOption("value"),0));return new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes())},_timeListItemTemplate:function(e){var t=this.dateBox.option("displayFormat");return h.format(e,this.getDisplayFormat(t))},_listItemClickHandler:function(e){this.dateBox.option("opened",!1);var t=this.dateBox.option("value"),n=e.itemData,i=n.getHours(),o=n.getMinutes(),a=n.getSeconds(),r=n.getFullYear(),s=n.getMonth(),l=n.getDate();t?(t=new Date(t),t.setHours(i),t.setMinutes(o),t.setSeconds(a),t.setFullYear(r),t.setMonth(s),t.setDate(l)):t=new Date(r,s,l,i,o,0,0),this.dateBoxValue(t)},attachKeyboardEvents:function(e){var t=e.attachChildProcessor();this._widget&&this._widget.option("_keyboardProcessor",t)},_dimensionChanged:function(){this._getPopup()&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this.dateBox._setPopupOption("width",this._getPopupWidth())},_updatePopupHeight:function(){this.dateBox._setPopupOption("height","auto");var e=this._widget.$element().outerHeight(),t=.45*i(o).height();this.dateBox._setPopupOption("height",Math.min(e,t)),this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(e,t){var n=this.callBase(e,t);return n&&(n=c.mergeDates(n,new Date(null),p)),n}});e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(197),d=i(u),c=n(2),h=i(c),p=n(27),f=i(p),g=n(0),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"useDefaultAnimation",value:function(){return!0}},{key:"defaultPositionRendering",value:function(e,t,n){var i=this,o=this.getDrawerInstance();if((0,h.default)(o.content()).css(o.isHorizontalDirection()?"width":"height",e.maxSize),n){var a={$element:e.$content,position:e.contentPosition,direction:o.getDrawerPosition(),duration:o.option("animationDuration"),complete:function(){i._elementsAnimationCompleteHandler()}};u.animation.moveTo(a)}else o.isHorizontalDirection()?f.default.move(e.$content,{left:e.contentPosition}):f.default.move(e.$content,{top:e.contentPosition})}},{key:"getPositionRenderingConfig",value:function(e){return(0,g.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e),{contentPosition:this._getPanelSize(e)*this.getDrawerInstance()._getPositionCorrection(),maxSize:this._getPanelSize(!0)})}}]),t}(d.default);e.exports=_},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(197),d=i(u),c=n(2),h=i(c),p=n(0),f=n(33),g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"slidePositionRendering",value:function(e,t,n){if(n){var i=(0,p.extend)(e.defaultAnimationConfig,{$element:e.$panel,margin:e.panelOffset,duration:this.getDrawerInstance().option("animationDuration"),direction:e.direction});u.animation.margin(i)}else e.$panel.css("margin"+(0,f.camelize)(e.direction,!0),e.panelOffset)}},{key:"expandPositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();if(n){var o=(0,p.extend)(e.defaultAnimationConfig,{$element:e.$panel,size:e.size,duration:i.option("animationDuration"),direction:e.direction});u.animation.size(o)}else i.isHorizontalDirection()?(0,h.default)(e.$panel).css("width",e.size):(0,h.default)(e.$panel).css("height",e.size)}},{key:"getPositionRenderingConfig",value:function(e){return(0,p.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e),{panelOffset:this._getPanelOffset(e)})}},{key:"needOrderContent",value:function(e,t){return(t?"left"===e:"right"===e)||"bottom"===e}}]),t}(d.default);e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(197),d=i(u),c=n(2),h=i(c),p=n(27),f=i(p),g=n(59),_=i(g),m=n(4),v=n(0),y=n(33),w=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"renderPanel",value:function(e,t){var n=this;delete this._initialPosition;var i=this.getOverlayPosition(),o=this.getDrawerInstance(),a=o.option(),r=a.opened,s=a.minSize;o._overlay=o._createComponent(o.content(),_.default,{shading:!1,container:o.getOverlayTarget(),position:i,width:r?"auto":s||0,height:"100%",templatesRenderAsynchronously:o.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(e){this._fixOverlayPosition(e.component.$content())}.bind(this),contentTemplate:o.option("template"),onContentReady:function(e){t.resolve(),n._processOverlayZIndex(e.component.content())},visible:!0,propagateOutsideClick:!0})}},{key:"_fixOverlayPosition",value:function(e){var t=(0,m.ensureDefined)(this._initialPosition,{left:0,top:0});f.default.move(e,t);var n=this.getDrawerInstance();"right"===n.getDrawerPosition()&&e.css("left","auto")}},{key:"getOverlayPosition",value:function(){var e=this.getDrawerInstance(),t=e.getDrawerPosition(),n={};if("left"===t&&(n={my:"top left",at:"top left"}),"right"===t){var i=e.option("rtlEnabled")?"top left":"top right";n={my:i,at:"top right"}}return"top"!==t&&"bottom"!==t||(n={my:t,at:t}),n.of=e.getOverlayTarget(),n}},{key:"setPanelSize",value:function(e){var t=this.getDrawerInstance(),n=t.getOverlay();t.isHorizontalDirection()?(n.option("height","100%"),n.option("width",e?t.getRealPanelWidth():this._getPanelSize(t.option("opened")))):(n.option("width",n.option("container").width()),n.option("height",e?t.getRealPanelHeight():this._getPanelSize(t.option("opened"))))}},{key:"setupContent",value:function(e,t){var n=this.getDrawerInstance();e.css("padding"+(0,y.camelize)(t,!0),n.option("minSize")),e.css("transform","inherit")}},{key:"slidePositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();this._initialPosition=i.isHorizontalDirection()?{left:e.panelOffset}:{top:e.panelOffset};var o=i.getDrawerPosition();if(this.setupContent(e.$content,o,e.drawer),n){var a=(0,v.extend)(e.defaultAnimationConfig,{$element:e.$panel,position:e.panelOffset,duration:i.option("animationDuration"),direction:o});u.animation.moveTo(a)}else i.isHorizontalDirection()?f.default.move(e.$panel,{left:e.panelOffset}):f.default.move(e.$panel,{top:e.panelOffset})}},{key:"expandPositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();this._initialPosition={left:0};var o=i.getDrawerPosition();this.setupContent(e.$content,o),f.default.move(e.$panelOverlayContent,{left:0});var a=(0,v.extend)(e.defaultAnimationConfig,{$element:e.$panelOverlayContent,size:e.size,duration:i.option("animationDuration"),direction:o,marginTop:e.marginTop});n?u.animation.size(a):i.isHorizontalDirection()?(0,h.default)(e.$panelOverlayContent).css("width",e.size):((0,h.default)(e.$panelOverlayContent).css("height",e.size),"bottom"===o&&(0,h.default)(e.$panelOverlayContent).css("marginTop",e.marginTop))}},{key:"getPositionRenderingConfig",value:function(e){var n=this.getDrawerInstance(),i=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e);return(0,v.extend)(i,{panelOffset:this._getPanelOffset(e)*this.getDrawerInstance()._getPositionCorrection(),$panelOverlayContent:n.getOverlay().$content(),marginTop:n.getRealPanelHeight()-i.size})}},{key:"getPanelContent",value:function(){return(0,h.default)(this.getDrawerInstance().getOverlay().content())}},{key:"_processOverlayZIndex",value:function(e){var t=(0,h.default)(e).get(0).style,n=t.zIndex||1;this.getDrawerInstance().setZIndex(n)}},{key:"needOrderContent",value:function(e){return"right"===e||"bottom"===e}}]),t}(d.default);e.exports=w},function(e,t,n){var i=n(2),o=n(12),a=n(7),r=a.getWindow(),s=n(5),l=n(9),u=n(4),d=n(0).extend,c=n(3).each,h=n(11),p=n(289),f=n(17),g=n(80),_=n(1).isPromise,m=n(6),v=m.Deferred,y="dx-widget",w="dx-deferrendering",x="dx-pending-rendering",b="dx-pending-rendering-manual",C="dx-pending-rendering-active",k="dx-visible-while-pending-rendering",I="dx-invisible-while-pending-rendering",S="dx-loadindicator-container",D="dx-deferrendering-loadindicator-container",T="dx-deferrendering-load-indicator",E="content",O=["onRendered","onShown"],A=f.inherit({_getDefaultOptions:function(){return d(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return E},_init:function(){this.transitionExecutor=new p.TransitionExecutor,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass(w)},_initRender:function(){var e=this,t=this.$element(),n=this.option("renderWhen"),i=function(){return e._renderDeferredContent()};_(n)?m.fromPromise(n).done(i):(t.data("dx-render-delegate",i),void 0===n&&t.addClass(b))},_initActions:function(){this._actions={},c(O,function(e,t){this._actions[t]=this._createActionByOption(t)||u.noop}.bind(this))},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=function(){}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass(y),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var e=this,t=this.$element(),n=new v;return t.removeClass(b),t.addClass(C),this._abortRenderTask(),this._renderTask=u.executeAsync(function(){e._renderImpl().done(function(){var i={element:t};e._actions.onShown([i]),n.resolve(i)}).fail(function(){n.rejectWith(n,arguments)})}),n.promise()},_isElementInViewport:function(e){var t=e.getBoundingClientRect();return t.bottom>=0&&t.right>=0&&t.top<=(r.innerHeight||o.getDocumentElement().clientHeight)&&t.left<=(r.innerWidth||o.getDocumentElement().clientWidth)},_animate:function(){var e,t=this,n=this.$element(),o=a.hasWindow()&&this.option("animation"),r=this.option("staggerItemSelector");return t.transitionExecutor.stop(),o?(r?n.find(r).each(function(){t._isElementInViewport(this)&&t.transitionExecutor.enter(i(this),o)}):t.transitionExecutor.enter(n,o),e=t.transitionExecutor.start()):e=(new v).resolve().promise(),e},_renderImpl:function(){var e=this.$element(),t={element:e},n=this._getTemplate(this._getAnonymousTemplateName());return n&&n.render({container:e.empty(),noModel:!0}),this._setRenderedState(e),s.trigger(e,"dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var e=this.$element(),t=!!e.find("."+k).length;e.addClass(x),t||e.children().addClass(I),this.option("showLoadIndicator")&&this._showLoadIndicator(e)},_showLoadIndicator:function(e){this._$loadIndicator=new g(i("<div>"),{visible:!0}).$element().addClass(T),i("<div>").addClass(S).addClass(D).append(this._$loadIndicator).appendTo(e)},_setRenderedState:function(){var e=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),e.removeClass(x),e.removeClass(C),h.triggerShownEvent(e.children())},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"renderWhen":n===!1&&t===!0?this._renderOrAnimate():n===!0&&t===!1&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(e)}},_renderOrAnimate:function(){var e;return this._isRendered?(this._setRenderedState(),e=this._animate()):e=this._renderDeferredContent(),e},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});l("dxDeferRendering",A),e.exports=A},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(166),a=i(o),r=n(250),s=i(r),l=n(4),u=n(1),d=n(3),c=n(65),h=i(c),p=n(162),f=i(p),g=n(6),_=n(2),m=i(_),v=n(5),y=i(v),w=n(0),x=n(253),b=n(9),C=i(b),k=n(8),I="dx-dropdownbox",S="content",D=a.default.inherit({_supportedKeys:function(){return(0,w.extend)({},this.callBase(),{tab:function(e){if(this.option("opened")){var t=this._getTabbableElements(),n=e.shiftKey?t.last():t.first();n&&y.default.trigger(n,"focus"),e.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(h.default.tabbable)},_getElements:function(){return(0,m.default)(this.content()).find("*")},_getAnonymousTemplateName:function(){return S},_getDefaultOptions:function(){return(0,w.extend)(this.callBase(),{acceptCustomValue:!1,contentTemplate:"content",openOnFieldClick:!0,displayValueFormatter:function(e){return Array.isArray(e)?e.join(", "):e},useHiddenSubmitElement:!0})},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass(I),this.callBase()},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&(0,u.isObject)(e)},_renderInputValue:function(){var e=this.callBase.bind(this),t=[];if(!this._dataSource)return e(t),(new g.Deferred).resolve();var n=this._getCurrentValue(),i=(0,l.ensureDefined)(n,[]);i=Array.isArray(i)?i:[i];var o=(0,d.map)(i,function(e){return this._loadItem(e).always(function(n){var i=this._displayGetter(n);t.push((0,l.ensureDefined)(i,e))}.bind(this))}.bind(this));return g.when.apply(this,o).always(function(){this.option("displayValue",t),e(t.length&&t)}.bind(this)).fail(e)},_loadItem:function(e){var t=new g.Deferred,n=this,i=(0,l.grep)(this.option("items")||[],function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0];return void 0!==i?t.resolve(i):this._loadValue(e).done(function(e){t.resolve(e)}).fail(function(i){n.option("acceptCustomValue")?t.resolve(e):t.reject()}),t.promise()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth())},_popupElementTabHandler:function(e){if("tab"===(0,k.normalizeKeyName)(e)){var t=this._getTabbableElements().first().get(0),n=this._getTabbableElements().last().get(0),i=e.originalEvent.target,o=!(i!==t||!e.shift),a=!(i!==n||e.shift);(o||a)&&(this.close(),y.default.trigger(this._input(),"focus"),o&&e.originalEvent.preventDefault())}},_renderPopup:function(e){this.callBase(),this.option("focusStateEnabled")&&this._popup._keyboardProcessor.push(new f.default({element:this.content(),handler:this._popupElementTabHandler,context:this}))},_renderPopupContent:function(){if(this.option("contentTemplate")!==S)return this.callBase()},_popupConfig:function(){return(0,w.extend)(this.callBase(),{width:function(){return this.$element().outerWidth()}.bind(this),height:"auto",tabIndex:-1,dragEnabled:!1,focusStateEnabled:this.option("focusStateEnabled"),maxHeight:function(){return(0,x.getElementMaxHeightByWindow)(this.$element())}.bind(this)})},_popupShownHandler:function(){this.callBase();var e=this._getTabbableElements().first();y.default.trigger(e,"focus")},_setCollectionWidgetOption:l.noop,_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"width":this.callBase(e),this._popup&&this._popup.repaint();break;case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",e.value);break;case"displayExpr":this._renderValue();break;default:this.callBase(e)}}}).include(s.default);(0,C.default)("dxDropDownBox",D),e.exports=D},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(9),u=i(l),d=n(34),c=i(d),h=n(4),p=n(1),f=n(3),g=n(14),_=n(0),m=n(45),v=n(25),y=i(v),w=n(11),x=n(10),b=i(x),C=n(17),k=i(C),I=n(48),S=i(I),D=n(7),T=n(87),E=i(T),O=n(568),A=(i(O),n(318)),P=i(A),B=n(320),M=i(B),F=n(94),R=i(F),V=n(6),H=n(31),L=i(H),z=n(571),$=i(z),N=n(323);n(257),n(324);var W="dx-form",j="dx-field-item",q="dx-field-item-label-text",G="dx-form-group",K="dx-form-group-content",U="dx-form-group-with-caption",Y="dx-form-group-caption",X="dx-layout-manager-hidden-label",Z="dx-field-item-label",Q="dx-field-item-label-content",J="dx-field-item-tab",ee="dx-col-",te="dx-group-colcount-",ne="dx-field-item-content",ie="dx-form-validation-summary",oe="dx-widget",ae="dx-state-focused",re=["items","isRequired","validationRules","visible"],se=k.default.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new P.default,this._groupsColCount=[],this._attachSyncSubscriptions()},_initOptions:function(e){"screenByWidth"in e||(e.screenByWidth=D.defaultScreenFactorFunc),this.callBase(e)},_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{formID:"dx-"+new c.default,formData:{},colCount:1,screenByWidth:null,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:b.default.format("dxForm-optionalMark"),requiredMessage:b.default.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return L.default.isMaterial()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){
this.callBase(),(0,_.extend)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getColCount:function(e){for(var t,n=0,i=!0;i;)t=e.find("."+ee+n),t.length?n++:i=!1;return n},_createHiddenElement:function(e){this._$hiddenElement=(0,a.default)("<div>").addClass(oe).addClass(X).appendTo("body");var t=e._renderLabel({text:" ",location:this._labelLocation()}).appendTo(this._$hiddenElement);this._hiddenLabelText=t.find("."+q)[0]},_removeHiddenElement:function(){this._$hiddenElement.remove(),this._hiddenLabelText=null},_getLabelWidthByText:function(e){return this._hiddenLabelText.innerHTML=e,this._hiddenLabelText.offsetWidth},_getLabelsSelectorByCol:function(e,t){t=t||{};var n=t.inOneColumn?j:ee+e,i=t.excludeTabbed?":not(."+J+")":"",o="> ."+Z+" > ."+Q;return"."+n+i+o},_getLabelText:function(e){var t,n,i=e.children.length,o="";for(n=0;n<i;n++)t=e.children[n],o+=(0,m.isEmpty)(t.innerText)?t.innerHTML:t.innerText;return o},_applyLabelsWidthByCol:function(e,t,n){var i,o,a=e.find(this._getLabelsSelectorByCol(t,n)),r=a.length,s=0;for(o=0;o<r;o++)i=this._getLabelWidthByText(this._getLabelText(a[o])),i>s&&(s=i);for(o=0;o<r;o++)a[o].style.width=s+"px"},_applyLabelsWidth:function(e,t,n,i){i=n?1:i||this._getColCount(e);var o,a={excludeTabbed:t,inOneColumn:n};for(o=0;o<i;o++)this._applyLabelsWidthByCol(e,o,a)},_getGroupElementsInColumn:function(e,t,n){var i=(0,p.isDefined)(n)?"."+te+n:"",o="."+ee+t+" > ."+ne+" > ."+G+i;return e.find(o)},_applyLabelsWidthWithGroups:function(e,t,n){var i=this.option("alignItemLabelsInAllGroups");if(i)this._applyLabelsWidthWithNestedGroups(e,t,n);else{var o,a=this.$element().find("."+G);for(o=0;o<a.length;o++)this._applyLabelsWidth(a.eq(o),n)}},_applyLabelsWidthWithNestedGroups:function(e,t,n){var i,o,a,r,s={excludeTabbed:n};for(i=0;i<t;i++)for(r=this._getGroupElementsInColumn(e,i),this._applyLabelsWidthByCol(r,0,s),o=0;o<this._groupsColCount.length;o++){r=this._getGroupElementsInColumn(e,i,this._groupsColCount[o]);var l=this._getColCount(r);for(a=1;a<l;a++)this._applyLabelsWidthByCol(r,a,s)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(e){var t=e.layoutManager,n=e.inOneColumn,i=e.$container,o=e.excludeTabbed,a=e.items;(0,D.hasWindow)()&&"top"!==this._labelLocation()&&(this._createHiddenElement(t),n?this._applyLabelsWidth(i,o,!0):this._checkGrouping(a)?this._applyLabelsWidthWithGroups(i,t._getColCount(),o):this._applyLabelsWidth(i,o,!1,t._getColCount()),this._removeHiddenElement())},_prepareFormData:function(){(0,p.isDefined)(this.option("formData"))||this.option("formData",{})},_initMarkup:function(){E.default.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass(W),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor()},_getCurrentScreenFactor:function(){return(0,D.hasWindow)()?(0,D.getCurrentScreenFactor)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(e,t){this._alignLabelsInColumn({$container:this.$element(),layoutManager:e,excludeTabbed:!0,items:this.option("items"),inOneColumn:t})},_clean:function(){this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0},_renderScrollable:function(){var e=this.option("useNativeScrolling");this._scrollable=new R.default(this.$element(),{useNative:!!e,useSimulatedScrollbar:!e,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?this._scrollable.$content():this.$element()},_renderValidationSummary:function(){var e=this.$element().find("."+ie);if(e.length>0&&e.remove(),this.option("showValidationSummary")){var t=(0,a.default)("<div>").addClass(ie).appendTo(this._getContent());this._validationSummary=t.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance")}},_prepareItems:function(e,t,n,i){if(e){for(var o=[],a=0;a<e.length;a++){var r=e[a],s=(0,N.concatPaths)(n,(0,N.createItemPathByIndex)(a,i)),l=this._itemsRunTimeInfo.add({item:r,itemIndex:a,path:s});if((0,p.isObject)(r)){var u=(0,_.extend)({},r);u.guid=l,this._tryPrepareGroupItem(u),this._tryPrepareTabbedItem(u,s),this._tryPrepareItemTemplate(u),t&&(u.cssItemClass=J),u.items&&(u.items=this._prepareItems(u.items,t,s)),o.push(u)}else o.push(r)}return o}},_tryPrepareGroupItem:function(e){"group"===e.itemType&&(e.alignItemLabels=(0,h.ensureDefined)(e.alignItemLabels,!0),e.template&&(e.groupContentTemplate=this._getTemplate(e.template)),e.template=this._itemGroupTemplate.bind(this,e))},_tryPrepareTabbedItem:function(e,t){"tabbed"===e.itemType&&(e.template=this._itemTabbedTemplate.bind(this,e),e.tabs=this._prepareItems(e.tabs,!0,t,!0))},_tryPrepareItemTemplate:function(e){e.template&&(e.template=this._getTemplate(e.template))},_checkGrouping:function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];if("group"===n.itemType)return!0}},_renderLayout:function(){var e=this,t=e.option("items"),n=e._getContent();t=e._prepareItems(t),e._rootLayoutManager=e._renderLayoutManager(t,n,{colCount:e.option("colCount"),alignItemLabels:e.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(t){e._alignLabels.bind(e)(e._rootLayoutManager,t)},onContentReady:function(t){e._alignLabels(t.component,t.component.isSingleColumnMode())}})},_tryGetItemsForTemplate:function(e){return e.items||[]},_itemTabbedTemplate:function(e,t,n){var i=this,o=(0,a.default)("<div>").appendTo(n),r=(0,_.extend)({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:function(e){return(0,w.triggerShownEvent)(e.itemElement)},itemTemplate:function(e,t,n){var o=(0,a.default)(n),r=(0,h.ensureDefined)(e.alignItemLabels,!0),s=i._renderLayoutManager(i._tryGetItemsForTemplate(e),o,{colCount:e.colCount,alignItemLabels:r,screenByWidth:i.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:function(t){i._alignLabelsInColumn({$container:o,layoutManager:s,items:e.items,inOneColumn:t})}});i._itemsRunTimeInfo&&i._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:s}),r&&i._alignLabelsInColumn({$container:o,layoutManager:s,items:e.items,inOneColumn:s.isSingleColumnMode()})}}),s=this._createComponent(o,M.default,r);e.tabs&&e.tabs.forEach(function(e){return i._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{widgetInstance:s})})},_itemGroupTemplate:function(e,t,n){var i,o,r,s=(0,a.default)("<div>").toggleClass(U,(0,p.isDefined)(e.caption)&&e.caption.length).addClass(G).appendTo(n);if(e.caption&&(0,a.default)("<span>").addClass(Y).text(e.caption).appendTo(s),i=(0,a.default)("<div>").addClass(K).appendTo(s),e.groupContentTemplate){var l={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:l,container:(0,w.getPublicElement)(i)})}else r=this._renderLayoutManager(this._tryGetItemsForTemplate(e),i,{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass}),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:r}),o=r._getColCount(),(0,g.inArray)(o,this._groupsColCount)===-1&&this._groupsColCount.push(o),s.addClass(te+o)},_renderLayoutManager:function(e,t,n){var i,o=(0,a.default)("<div>"),r=this,s=r._getLayoutManagerConfig(e,n),l={lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1};return r._cachedColCountOptions.push({colCountByScreen:(0,_.extend)(l,n.colCountByScreen)}),o.appendTo(t),i=r._createComponent(o,"dxLayoutManager",s),i.on("autoColCountChanged",function(){r._refresh()}),r._cachedLayoutManagers.push(i),i},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(e,t){var n=this,i={form:n,validationGroup:n._getValidationGroup(),showRequiredMark:n.option("showRequiredMark"),showOptionalMark:n.option("showOptionalMark"),requiredMark:n.option("requiredMark"),optionalMark:n.option("optionalMark"),requiredMessage:n.option("requiredMessage"),screenByWidth:n.option("screenByWidth"),layoutData:n.option("formData"),labelLocation:n.option("labelLocation"),customizeItem:n.option("customizeItem"),minColWidth:n.option("minColWidth"),showColonAfterLabel:n.option("showColonAfterLabel"),onEditorEnterKey:n.option("onEditorEnterKey"),onFieldDataChanged:function(e){n._isDataUpdating||n._triggerOnFieldDataChanged(e)},validationBoundary:n.option("scrollingEnabled")?n.$element():void 0};return(0,_.extend)(i,{items:e,onContentReady:function(e){n._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),t.onContentReady&&t.onContentReady(e)},colCount:t.colCount,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass,colCountByScreen:t.colCountByScreen,onLayoutChanged:t.onLayoutChanged,width:t.width})},_createComponent:function(e,t,n){var i=this;return n=n||{},i._extendConfig(n,{readOnly:i.option("readOnly")}),i.callBase(e,t,n)},_attachSyncSubscriptions:function(){var e=this;e.on("optionChanged",function(t){var n=t.fullName;"formData"===n&&((0,p.isDefined)(t.value)||(e._options.formData=t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&(0,f.each)(e._cachedLayoutManagers,function(i,o){"formData"===n&&(e._isDataUpdating=!0,o.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||o.option(n,t.value)})})},_optionChanged:function(e){var t=this._getRootLevelOfExpectedComplexOption(e.fullName,["formData","items"]);if(t)return void this._customHandlerOfComplexOption(e,t);switch(e.name){case"formData":this.option("items")?(0,p.isEmptyObject)(e.value)&&this._resetValues():this._invalidate();break;case"items":case"colCount":case"onFieldDataChanged":case"onEditorEnterKey":case"labelLocation":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"readOnly":break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(e),e.value&&(0,w.triggerShownEvent)(this.$element());break;case"validationGroup":E.default.removeGroup(e.previousValue||this),this._invalidate();break;default:this.callBase(e)}},_getRootLevelOfExpectedComplexOption:function(e,t){var n,i=e.split(".");if(i.length>1){var o,a=i[0];for(o=0;o<t.length;o++)a.search(t[o])!==-1&&(n=t[o])}return n},_tryCreateItemOptionAction:function(e,t,n,i){return(0,$.default)(e,{item:t,value:n,previousValue:i,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(e){return e&&e.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(e){var t=(0,N.getOptionNameFromFullName)(e);re.indexOf(t)>-1&&(E.default.addGroup(this._getValidationGroup()),this.option("showValidationSummary")&&this._validationSummary&&this._validationSummary._initGroupRegistration())},_setLayoutManagerItemOption:function(e,t,n,i){var o=this;if(this._updateLockCount>0){!e._updateLockCount&&e.beginUpdate();var a=this._itemsRunTimeInfo.getKeyByPath(i);this.postponedOperations.add(a,function(){return e.endUpdate(),(new V.Deferred).resolve()})}var r=function e(t){if(t.component.off("contentReady",e),(0,N.isFullPathContainsTabs)(i)){var n=(0,N.tryGetTabPath)(i),a=o._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(n);o._alignLabelsInColumn({items:a.option("items"),layoutManager:a,$container:a.$element(),inOneColumn:a.isSingleColumnMode()})}else o._alignLabels(o._rootLayoutManager,o._rootLayoutManager.isSingleColumnMode())};e.on("contentReady",r),e.option(t,n),this._updateValidationGroupAndSummaryIfNeeded(t)},_tryChangeLayoutManagerItemOption:function(e,t){var n=e.split("."),i=(0,N.getOptionNameFromFullName)(e);if("items"===i&&n.length>1){var o=this._getItemPath(n),a=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(o);if(a){this._itemsRunTimeInfo.removeItemsByItems(a.getItemsRunTimeInfo());var r=this._prepareItems(t,!1,o);return this._setLayoutManagerItemOption(a,i,r,o),!0}}else if(n.length>2){var s=n.length-2,l=this._getItemPath(n.slice(0,s)),u=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(l);if(u){var d=(0,N.getFullOptionName)(n[s],i);return this._setLayoutManagerItemOption(u,d,t,l),!0}}return!1},_tryChangeLayoutManagerItemOptions:function(e,t){var n=this,i=void 0;return this.beginUpdate(),(0,f.each)(t,function(t,o){if(i=n._tryChangeLayoutManagerItemOption((0,N.getFullOptionName)(e,t),o),!i)return!1}),this.endUpdate(),i},_customHandlerOfComplexOption:function(e,t){var n=e.fullName.split("."),i=e.value;if("items"===t){var o=this._getItemPath(n),a=this.option(o),r=e.fullName.replace(o+".",""),s=r.split(".")[0].replace(/\[\d+]/,""),l=this._tryCreateItemOptionAction(s,a,a[s],e.previousValue);if(!this._tryExecuteItemOptionAction(l)&&!this._tryChangeLayoutManagerItemOption(e.fullName,i)&&a){this._changeItemOption(a,r,i);var u=this._generateItemsFromData(this.option("items"));this.option("items",u)}}if("formData"===t){var d=n.slice(1).join("."),c=this.getEditor(d);c?c.option("value",i):this._triggerOnFieldDataChanged({dataField:d,value:i})}},_getItemPath:function(e){var t,n=e[0];for(t=1;t<e.length&&e[t].search(/items\[\d+]|tabs\[\d+]/)!==-1;t++)n+="."+e[t];return n},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_triggerOnFieldDataChangedByDataSet:function(e){var t=this;e&&(0,p.isObject)(e)&&(0,f.each)(e,function(e,n){t._triggerOnFieldDataChanged({dataField:e,value:n})})},_updateFieldValue:function(e,t){if((0,p.isDefined)(this.option("formData"))){var n=this.getEditor(e);if(this.option("formData."+e,t),n){var i=n.option("value");i!==t&&n.option("value",t)}}},_generateItemsFromData:function(e){var t=this.option("formData"),n=[];return!e&&(0,p.isDefined)(t)&&(0,f.each)(t,function(e){n.push({dataField:e})}),e&&(0,f.each)(e,function(e,t){(0,p.isObject)(t)?n.push(t):n.push({dataField:t})}),n},_getItemByField:function(e,t){var n,i=this,o=(0,p.isObject)(e)?e:i._getFieldParts(e),a=o.fieldName,r=o.fieldPath;return t.length&&(0,f.each)(t,function(e,t){var o=t.itemType;if(r.length){var s=r.slice();t=i._getItemByFieldPath(s,a,t)}else if("group"===o&&!t.caption&&!t.name||"tabbed"===o&&!t.name){var l=i._getSubItemField(o);t.items=i._generateItemsFromData(t.items),t=i._getItemByField({fieldName:a,fieldPath:r},t[l])}if((0,N.isExpectedItem)(t,a))return n=t,!1}),n},_getFieldParts:function(e){for(var t=".",n=e,i=n.indexOf(t),o=[];i!==-1;)o.push(n.substr(0,i)),n=n.substr(i+1),i=n.indexOf(t);return{fieldName:n,fieldPath:o.reverse()}},_getItemByFieldPath:function(e,t,n){var i,o=this,a=n.itemType,r=o._getSubItemField(a),s="group"===a||"tabbed"===a||n.title;do{if(!s)break;var l,u=n.name||n.caption||n.title,d=(0,p.isDefined)(u),c=(0,N.getTextWithoutSpaces)(u);if(n[r]=o._generateItemsFromData(n[r]),d&&(l=e.pop()),!e.length&&(i=o._getItemByField(t,n[r])))break;(!d||d&&c===l)&&e.length&&(i=o._searchItemInEverySubItem(e,t,n[r]))}while(e.length&&!(0,p.isDefined)(i));return i},_getSubItemField:function(e){return"tabbed"===e?"tabs":"items"},_searchItemInEverySubItem:function(e,t,n){var i,o=this;return(0,f.each)(n,function(n,a){if(i=o._getItemByFieldPath(e.slice(),t,a))return!1}),i||(i=!1),i},_changeItemOption:function(e,t,n){(0,p.isObject)(e)&&(e[t]=n)},_dimensionChanged:function(){var e=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==e&&(this._isColCountChanged(this._lastMarkupScreenFactor,e)&&(this._targetScreenFactor=e,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=e)},_isColCountChanged:function(e,t){var n=!1;return(0,f.each)(this._cachedColCountOptions,function(i,o){if(o.colCountByScreen[e]!==o.colCountByScreen[t])return n=!0,!1}),n},_refresh:function(){var e="."+ae+" input, ."+ae+" textarea";s.default.trigger(this.$element().find(e),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each(function(e,t){(0,p.isDefined)(t.widgetInstance)&&t.widgetInstance instanceof S.default&&(t.widgetInstance.reset(),t.widgetInstance.option("isValid",!0))}),E.default.resetGroup(this._getValidationGroup())},_updateData:function(e,t,n){var i=this,o=n?t:e;(0,p.isObject)(o)?(0,f.each)(o,function(t,o){i._updateData(n?e+"."+t:t,o,(0,p.isObject)(o))}):(0,p.isString)(e)&&i._updateFieldValue(e,t)},registerKeyHandler:function(e,t){this.callBase(e,t),this._itemsRunTimeInfo.each(function(n,i){(0,p.isDefined)(i.widgetInstance)&&i.widgetInstance.registerKeyHandler(e,t)})},_focusTarget:function(){return this.$element().find("."+ne+" [tabindex]").first()},_visibilityChanged:function(e){e&&y.default.msie&&this._refresh()},_dispose:function(){E.default.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(e,t){this._updateData(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},getButton:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByName(e)},updateDimensions:function(){var e=this,t=new V.Deferred;return e._scrollable?e._scrollable.update().done(function(){t.resolveWith(e)}):t.resolveWith(e),t.promise()},itemOption:function(e,t,n){var i=this,o=this._generateItemsFromData(this.option("items")),a=this._getItemByField(e,o),r=this._itemsRunTimeInfo.getPathFromItem(a);if(a)switch(arguments.length){case 1:return a;case 3:var s=this._tryCreateItemOptionAction(t,a,n,a[t]);this._changeItemOption(a,t,n);var l=(0,N.getFullOptionName)(r,t);this._tryExecuteItemOptionAction(s)||this._tryChangeLayoutManagerItemOption(l,n)||this.option("items",o);break;default:if((0,p.isObject)(t)&&!this._tryChangeLayoutManagerItemOptions(r,t)){var u=void 0;(0,f.each)(t,function(e,t){var n=i._tryCreateItemOptionAction(e,a,t,a[e]);i._changeItemOption(a,e,t),u||i._tryExecuteItemOptionAction(n)||(u=!0)}),u&&this.option("items",o)}}},validate:function(){return E.default.validateGroup(this._getValidationGroup())},getItemID:function(e){return"dx_"+this.option("formID")+"_"+(e||new c.default)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,u.default)("dxForm",se),e.exports=se},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(2),r=i(a),s=n(5),l=i(s),u=n(34),d=i(u),c=n(318),h=i(c),p=n(9),f=i(p),g=n(1),_=n(11),m=i(_),v=n(89),y=n(7),w=i(y),x=n(45),b=i(x),C=n(3),k=n(0),I=n(14),S=n(18),D=i(S),T=n(137),E=i(T),O=n(20),A=i(O),P=n(19),B=i(P),M=n(10),F=i(M),R=n(88),V=i(R),H=n(33),L=i(H),z=n(17),$=i(z),N=n(199),W=i(N),j=n(319),q=i(j),G=n(31),K=i(G);n(93),n(119),n(105),n(195),n(35);var U="dxTextBox",Y="dx-field-item",X="dx-field-empty-item",Z="dx-field-button-item",Q="dx-field-item-required",J="dx-field-item-optional",ee="dx-field-item-required-mark",te="dx-field-item-optional-mark",ne="dx-field-item-label",ie="dx-field-item-label-align",oe="dx-field-item-label-content",ae="dx-field-item-label-text",re="dx-field-item-label-location-",se="dx-field-item-content",le="dx-field-item-content-location-",ue="dx-field-item-content-wrapper",de="dx-field-item-help-text",ce="dx-single-column-item-content",he="dx-label-h-align",pe="dx-label-v-align",fe="dx-layout-manager",ge="dx-first-row",_e="dx-first-col",me="dx-last-col",ve="dx-layout-manager-one-col",ye="dx-flex-layout",we="dx-invalid",xe="flex",be="fallback",Ce="simple",ke="dx-template-wrapper",Ie=["dataSource","items"],Se=["dxTagBox","dxRangeSlider"],De=$.default.inherit({_getDefaultOptions:function(){return(0,k.extend)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",optionalMark:F.default.format("dxForm-optionalMark"),requiredMessage:F.default.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,k.extend)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var e=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new h.default,this._updateReferencedOptions(e),this._initDataAndItems(e)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(e){this._syncDataWithItems(),this._updateItems(e)},_syncDataWithItems:function(){var e=this,t=e.option("items");(0,g.isDefined)(t)&&(0,C.each)(t,function(t,n){var i;n.dataField&&void 0===e._getDataByField(n.dataField)&&(n.editorOptions&&(i=n.editorOptions.value),e._updateFieldValue(n.dataField,i))})},_getDataByField:function(e){return e?this.option("layoutData."+e):null},_updateFieldValue:function(e,t){var n=this.option("layoutData"),i=t;!(0,v.isWrapped)(n[e])&&(0,g.isDefined)(e)?this.option("layoutData."+e,i):(0,v.isWritableWrapped)(n[e])&&(i=(0,g.isFunction)(i)?i():i,n[e](i)),this._triggerOnFieldDataChanged({dataField:e,value:i})},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_updateItems:function(e){var t,n,i=this,o=this.option("items"),a=(0,g.isDefined)(o),r=i.option("customizeItem");t=a?o:this._generateItemsByData(e),(0,g.isDefined)(t)&&(n=[],(0,C.each)(t,function(e,t){i._isAcceptableItem(t)&&(t=i._processItem(t),r&&r(t),(0,g.isObject)(t)&&(0,v.unwrap)(t.visible)!==!1&&n.push(t))}),i._itemWatchers.length&&a||i._updateItemWatchers(t),this._items=n,this._sortItems())},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(e){e()}),this._itemWatchers=[]},_updateItemWatchers:function(e){var t=this,n=t._getWatch();e.forEach(function(e){(0,g.isObject)(e)&&(0,g.isDefined)(e.visible)&&(0,g.isFunction)(n)&&t._itemWatchers.push(n(function(){return(0,v.unwrap)(e.visible)},function(){t._updateItems(t.option("layoutData")),t.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(e){var t=[];return(0,g.isDefined)(e)&&(0,C.each)(e,function(e){t.push({dataField:e})}),t},_isAcceptableItem:function(e){var t=e.dataField||e,n=this._getDataByField(t);return!((0,g.isFunction)(n)&&!(0,v.isWrapped)(n))},_processItem:function(e){if("string"==typeof e&&(e={dataField:e}),"object"!==("undefined"==typeof e?"undefined":o(e))||e.itemType||(e.itemType=Ce),!(0,g.isDefined)(e.editorType)&&(0,g.isDefined)(e.dataField)){var t=this._getDataByField(e.dataField);e.editorType=(0,g.isDefined)(t)?this._getEditorTypeByDataType((0,g.type)(t)):U}return e},_getEditorTypeByDataType:function(e){switch(e){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,I.normalizeIndexes)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(e,t){var n,i=e.visibleIndex,o=t.visibleIndex;return n=i>o?1:i<o?-1:0})},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass(fe),this.callBase(),this._renderResponsiveBox()},_hasBrowserFlex:function(){return V.default.styleProp(xe)===xe},_renderResponsiveBox:function(){var e=this,t=[];if(e._items&&e._items.length){var n,i=e._getColCount(),o=(0,r.default)("<div>").appendTo(e.$element());e._prepareItemsWithMerging(i),n=e._generateLayoutItems(),e._extendItemsWithDefaultTemplateOptions(n,e._items),e._responsiveBox=e._createComponent(o,q.default,e._getResponsiveBoxConfig(n,i,t)),w.default.hasWindow()||e._renderTemplates(t)}},_extendItemsWithDefaultTemplateOptions:function(e,t){t.forEach(function(t){t.merged||((0,g.isDefined)(t.disabled)&&(e[t.visibleIndex].disabled=t.disabled),(0,g.isDefined)(t.visible)&&(e[t.visibleIndex].visible=t.visible))})},_itemStateChangedHandler:function(e){this._refresh()},_renderTemplate:function(e,t){switch(t.itemType){case"empty":this._renderEmptyItem(e);break;case"button":this._renderButtonItem(t,e);break;default:this._renderFieldItem(t,e)}},_renderTemplates:function(e){var t=this;(0,C.each)(e,function(e,n){t._renderTemplate(n.container,n.formItem)})},_getResponsiveBoxConfig:function(e,t,n){var i=this,o=i.option("colCountByScreen"),a=o&&o.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),_layoutStrategy:i._hasBrowserFlex()?xe:be,onLayoutChanged:function e(){var e=i.option("onLayoutChanged"),t=i.isSingleColumnMode();e&&(i.$element().toggleClass(ve,t),e(t))},onContentReady:function(e){w.default.hasWindow()&&i._renderTemplates(n),i.option("onLayoutChanged")&&i.$element().toggleClass(ve,i.isSingleColumnMode(e.component))},itemTemplate:function(e,o,a){if(e.location){var s=(0,r.default)(a),l=e.location.row*t,u=i._items[e.location.col+l],d=(0,r.default)("<div>").addClass(u.cssClass).appendTo(s);n.push({container:d,formItem:u}),s.toggleClass(ce,i.isSingleColumnMode(this)),0===e.location.row&&d.addClass(ge),0===e.location.col&&d.addClass(_e),e.location.col!==t-1&&e.location.col+e.location.colspan!==t||d.addClass(me)}},cols:i._generateRatio(t),rows:i._generateRatio(i._getRowsCount(),!0),dataSource:e,screenByWidth:i.option("screenByWidth"),singleColumnScreen:!a&&"xs"}},_getColCount:function(){var e=this.option("colCount"),t=this.option("colCountByScreen");if(t){var n=this.option("form").getTargetScreenFactor();n||(n=w.default.hasWindow()?w.default.getCurrentScreenFactor(this.option("screenByWidth")):"lg"),e=t[n]||e}if("auto"===e){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=e=this._getMaxColCount()}return e<1?1:e},_getMaxColCount:function(){if(!w.default.hasWindow())return 1;var e=this.option("minColWidth"),t=this.$element().width(),n=this._items.length,i=Math.floor(t/e)||1;return n<i?n:i},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(e){var t,n,i,o,a=this._items.slice(0),r=[];for(o=0;o<a.length;o++)if(t=a[o],r.push(t),(this.option("alignItemLabels")||t.alignItemLabels||t.colSpan)&&(t.col=this._getColByIndex(r.length-1,e)),t.colSpan>1&&t.col+t.colSpan<=e){for(n=[],i=0;i<t.colSpan-1;i++)n.push({merged:!0});r=r.concat(n)}else delete t.colSpan;this._items=r},_getColByIndex:function(e,t){return e%t},_generateLayoutItems:function(){var e,t,n=this._items,i=this._getColCount(),o=[];for(t=0;t<n.length;t++)if(e=n[t],!e.merged){var a={location:{row:parseInt(t/i),col:this._getColByIndex(t,i)}};(0,g.isDefined)(e.colSpan)&&(a.location.colspan=e.colSpan),(0,g.isDefined)(e.rowSpan)&&(a.location.rowspan=e.rowSpan),o.push(a)}return o},_renderEmptyItem:function(e){return e.addClass(X).html("&nbsp;")},_getButtonHorizontalAlignment:function(e){return(0,g.isDefined)(e.horizontalAlignment)?e.horizontalAlignment:(0,g.isDefined)(e.alignment)?(B.default.log("W0001","dxForm","alignment","18.1","Use the 'horizontalAlignment' option in button items instead."),e.alignment):"right"},_getButtonVerticalAlignment:function(e){switch(e.verticalAlignment){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}},_renderButtonItem:function(e,t){var n=(0,r.default)("<div>").appendTo(t),i={validationGroup:this.option("validationGroup")};t.addClass(Z).css("textAlign",this._getButtonHorizontalAlignment(e)),t.parent().css("justifyContent",this._getButtonVerticalAlignment(e));var o=this._createComponent(n,"dxButton",(0,k.extend)(i,e.buttonOptions));return this._itemsRunTimeInfo.add({item:e,widgetInstance:o,guid:e.guid,$itemContainer:t}),this._addItemClasses(t,e.col),n},_addItemClasses:function(e,t){e.addClass(Y).addClass(this.option("cssItemClass")).addClass((0,g.isDefined)(t)?"dx-col-"+t:"")},_renderFieldItem:function(e,t){var n,i=this,o=i._getName(e),a=i.getItemID(o),s=(0,g.isDefined)(e.isRequired)?e.isRequired:!!i._hasRequiredRuleInSet(e.validationRules),l=i._getLabelOptions(e,a,s),u=(0,r.default)("<div>"),c=e.helpText?"dx-"+new d.default:null;this._addItemClasses(t,e.col),t.addClass(s?Q:J),l.visible&&l.text&&(n=i._renderLabel(l).appendTo(t)),e.itemType===Ce&&(i._isLabelNeedBaselineAlign(e)&&"top"!==l.location&&t.addClass(ie),i._hasBrowserFlex()&&t.addClass(ye)),u.data("dx-form-item",e),i._appendEditorToField({$fieldItem:t,$label:n,$editor:u,labelOptions:l});var h=i._renderEditor({$container:u,dataField:e.dataField,name:e.name,editorType:e.editorType,editorOptions:e.editorOptions,template:i._getTemplateByFieldItem(e),isRequired:s,helpID:c,labelID:l.labelID,id:a,validationBoundary:i.option("validationBoundary")});this._itemsRunTimeInfo.add({item:e,widgetInstance:h,guid:e.guid,$itemContainer:t});var p=u.children().first(),f=p.hasClass(ke)?p.children().first():p;f&&f.data("dx-validation-target")&&i._renderValidator(f,e),i._renderHelpText(e,u,c),i._attachClickHandler(n,u,e.editorType)},_hasRequiredRuleInSet:function(e){var t;return e&&e.length&&(0,C.each)(e,function(e,n){if("required"===n.type)return t=!0,!1}),t},_getName:function(e){return e.dataField||e.name},_isLabelNeedBaselineAlign:function(e){var t=["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"];return!!e.helpText&&!this._hasBrowserFlex()||(0,I.inArray)(e.editorType,t)!==-1},_isLabelNeedId:function(e){var t=["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"];return(0,I.inArray)(e.editorType,t)!==-1},_getLabelOptions:function(e,t,n){var i=(0,k.extend)({showColon:this.option("showColonAfterLabel"),location:this.option("labelLocation"),id:t,visible:!0,isRequired:n},e?e.label:{});return this._isLabelNeedId(e)&&(i.labelID="dx-label-"+new d.default),!i.text&&e.dataField&&(i.text=L.default.captionize(e.dataField)),i.text&&(i.text+=i.showColon?":":""),i},_renderLabel:function(e){var t=e.text,n=e.id,i=e.location,o=e.alignment,a=e.isRequired,s=e.labelID,l=void 0===s?null:s;if((0,g.isDefined)(t)&&t.length>0){var u=ne+" "+re+i,d=(0,r.default)("<label>").addClass(u).attr("for",n).attr("id",l),c=(0,r.default)("<span>").addClass(oe).appendTo(d);return(0,r.default)("<span>").addClass(ae).text(t).appendTo(c),o&&d.css("textAlign",o),c.append(this._renderLabelMark(a)),d}},_renderLabelMark:function(e){var t,n=this._getRequiredMarksConfig(),i=n.showRequiredMark&&e,o=n.showOptionalMark&&!e;if(i||o){var a=i?ee:te,s=i?n.requiredMark:n.optionalMark;t=(0,r.default)("<span>").addClass(a).html("&nbsp"+s)}return t},_getRequiredMarksConfig:function(){return this._cashedRequiredConfig||(this._cashedRequiredConfig={showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark")}),this._cashedRequiredConfig},_renderEditor:function(e){var t,n=this._getDataByField(e.dataField),i=void 0!==n?{value:n}:{},o=!0;Se.indexOf(e.editorType)!==-1&&(i.value=i.value||[]);var a=this.option("form");t=(0,k.extend)(o,i,e.editorOptions,{inputAttr:{id:e.id},validationBoundary:e.validationBoundary,stylingMode:a&&a.option("stylingMode")}),this._replaceDataOptions(e.editorOptions,t);var r={editorType:e.editorType,dataField:e.dataField,template:e.template,name:e.name,helpID:e.helpID,labelID:e.labelID,isRequired:e.isRequired};return this._createEditor(e.$container,r,t)},_replaceDataOptions:function(e,t){e&&Ie.forEach(function(n){t[n]&&(t[n]=e[n])})},_renderValidator:function(e,t){var n=this._getFieldLabelName(t),i=this._prepareValidationRules(t.validationRules,t.isRequired,t.itemType,n);
Array.isArray(i)&&i.length&&this._createComponent(e,W.default,{validationRules:i,validationGroup:this.option("validationGroup"),dataGetter:function(){return{formItem:t}}})},_getFieldLabelName:function(e){var t=e.label&&e.label.text,n=t?null:this._getName(e);return t?e.label.text:n&&L.default.captionize(n)},_prepareValidationRules:function(e,t,n,i){var o,a=n===Ce;if(a)if(e)o=e;else{var r=b.default.format(this.option("requiredMessage"),i||"");o=t?[{type:"required",message:r}]:null}return o},_addWrapperInvalidClass:function(e){var t="."+ue,n=function(e){(0,r.default)(e.element).parents(t).toggleClass(we,e.component._isFocused()&&e.component.option("isValid")===!1)};e.on("focusIn",n).on("focusOut",n).on("enterKey",n)},_createEditor:function(e,t,n){var i,o=this,a=t.template;if(t.dataField&&!n.name&&(n.name=t.dataField),o._addItemContentClasses(e),a){var s={dataField:t.dataField,editorType:t.editorType,editorOptions:n,component:o._getComponentOwner(),name:t.name};a.render({model:s,container:m.default.getPublicElement(e)})}else{var l=(0,r.default)("<div>").appendTo(e);try{i=o._createComponent(l,t.editorType,n),i.setAria("describedby",t.helpID),i.setAria("labelledby",t.labelID),i.setAria("required",t.isRequired),K.default.isMaterial()&&o._addWrapperInvalidClass(i),t.dataField&&o._bindDataField(i,t,e)}catch(e){B.default.log("E1035",e.message)}}return i},_getComponentOwner:function(){return this.option("form")||this},_bindDataField:function(e,t,n){var i=this._getComponentOwner();e.on("enterKey",function(e){i._createActionByOption("onEditorEnterKey")((0,k.extend)(e,{dataField:t.dataField}))}),this._createWatcher(e,n,t),this.linkEditorToDataField(e,t.dataField,t.editorType)},_createWatcher:function(e,t,n){var i=this,o=i._getWatch();if((0,g.isFunction)(o)){var a=o(function(){return i._getDataByField(n.dataField)},function(){e.option("value",i._getDataByField(n.dataField))},{deep:!0,skipImmediate:!0});l.default.on(t,E.default,a)}},_getWatch:function(){if(!(0,g.isDefined)(this._watch)){var e=this.option("form");this._watch=e&&e.option("integrationOptions.watchMethod")}return this._watch},_addItemContentClasses:function(e){var t=this._getItemContentLocationSpecificClass();e.addClass([se,t].join(" "))},_getItemContentLocationSpecificClass:function(){var e=this.option("labelLocation"),t={right:"left",left:"right",top:"bottom"};return le+t[e]},_createComponent:function(e,t,n){var i,o=this,a=this.option("readOnly");return i=o.callBase(e,t,n),a&&i.option("readOnly",a),o.on("optionChanged",function(e){"readOnly"!==e.name||(0,g.isDefined)(n.readOnly)||i.option(e.name,e.value)}),i},_getTemplateByFieldItem:function(e){return e.template?this._getTemplate(e.template):null},_appendEditorToField:function(e){if(e.$label){var t=e.labelOptions.location;"top"!==t&&"left"!==t||e.$fieldItem.append(e.$editor),"right"===t&&e.$fieldItem.prepend(e.$editor),this._addInnerItemAlignmentClass(e.$fieldItem,t)}else e.$fieldItem.append(e.$editor)},_addInnerItemAlignmentClass:function(e,t){"top"===t?e.addClass(pe):e.addClass(he)},_renderHelpText:function(e,t,n){var i=e.helpText,o=e.itemType===Ce;if(i&&o){var a=(0,r.default)("<div>").addClass(ue);t.wrap(a),(0,r.default)("<div>").addClass(de).attr("id",n).text(i).appendTo(t.parent())}},_attachClickHandler:function(e,t,n){var i="dxCheckBox"===n||"dxSwitch"===n;e&&i&&l.default.on(e,A.default.name,function(){l.default.trigger(t.children(),A.default.name)})},_generateRatio:function(e,t){var n,i,o=[];for(i=0;i<e;i++)n={ratio:1},t&&(n.baseSize="auto"),o.push(n);return o},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(e){var t=this,n=this.option("layoutData");(0,g.isObject)(n)&&Object.getOwnPropertyNames(n).forEach(function(e){return delete t._optionsByReference["layoutData."+e]}),(0,g.isObject)(e)&&Object.getOwnPropertyNames(e).forEach(function(e){return t._optionsByReference["layoutData."+e]=!0})},_resetWidget:function(e){var t=e._getDefaultOptions();e._setOptionSilent("value",t.value),e.option("isValid",!0)},_optionChanged:function(e){var t=this;if(0!==e.fullName.search("layoutData."))switch(e.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(e.value),this.option("items")?(0,g.isEmptyObject)(e.value)||this._itemsRunTimeInfo.each(function(n,i){if((0,g.isDefined)(i.item)){var o=i.item.dataField;if(o&&(0,g.isDefined)(i.widgetInstance)){var a=D.default.compileGetter(o),r=a(e.value);void 0===r?t._resetWidget(i.widgetInstance):i.widgetInstance.option("value",r)}}}):(this._initDataAndItems(e.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(e.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":break;case"width":this.callBase(e),"auto"===this.option("colCount")&&this._resetColCount();break;case"onFieldDataChanged":break;default:this.callBase(e)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField:function(e,t){var n=this;this.on("optionChanged",function(n){n.fullName==="layoutData."+t&&e._setOptionSilent("value",n.value)}),e.on("valueChanged",function(e){(0,g.isObject)(e.value)&&e.value===e.previousValue||n._updateFieldValue(t,e.value)})},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this.fireEvent("autoColCountChanged")},getItemID:function(e){var t=this.option("form");return t&&t.getItemID(e)},updateData:function(e,t){var n=this;(0,g.isObject)(e)?(0,C.each)(e,function(e,t){n._updateFieldValue(e,t)}):"string"==typeof e&&n._updateFieldValue(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},isSingleColumnMode:function(e){var t=this._responsiveBox||e;if(t)return t.option("currentScreenFactor")===t.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,f.default)("dxLayoutManager",De),e.exports=De},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(26),a=i(o),r=n(15),s=i(r),l=s.default.inherit({ctor:function(e,t){var n=this;this.editor=e,this.validator=t,this.validationRequestsCallbacks=(0,a.default)();var i=function(e){n.validationRequestsCallbacks.fire(e)};e.validationRequest.add(i),e.on("disposing",function(){e.validationRequest.remove(i)})},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(e){this.editor.option({validationErrors:e.brokenRules,validationStatus:e.status})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});e.exports=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(134),d=i(u),c=n(4),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_renderWatchers",value:function(){return this._startWatcher("badge",c.noop),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderWatchers",this).call(this)}}]),t}(d.default);t.default=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(572),u=i(l),d=n(38),c=n(0),h=n(323),p=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"tryExecute",value:function(){var e=this._options.value,t=this.findInstance();return!!t&&(t.option(e),!0)}}]),t}(u.default),f=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"tryExecute",value:function(){var e=this.findInstance();if(e){var t=this._options,n=t.optionName,i=t.item,o=t.value,a=this._itemsRunTimeInfo.findItemIndexByItem(i);if(a>=0)return e.option((0,h.getFullOptionName)("items["+a+"]",n),o),!0}return!1}}]),t}(u.default),g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"tryExecute",value:function(){var e=this._options.item,t=this.findInstance(),n=t&&(0,d.data)(t.$element()[0],"dxValidator");if(n&&e){var i=function(e){return"required"===e.type},o=(n.option("validationRules")||[]).some(i),a=(e.validationRules||[]).some(i);if(!o&&!a||o&&a)return n.option("validationRules",e.validationRules),!0}return!1}}]),t}(u.default),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"tryExecute",value:function(){var e=this.findItemContainer(),t=this._options,n=t.previousValue,i=t.value;return!!e&&(e.removeClass(n).addClass(i),!0)}}]),t}(u.default),m=function(e,t){switch(e){case"editorOptions":case"buttonOptions":return new p(t);case"validationRules":return new g(t);case"cssClass":return new _(t);case"badge":case"disabled":case"icon":case"template":case"tabTemplate":case"title":return new f((0,c.extend)(t,{optionName:e}));default:return null}};t.default=m},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(15),r=function(){function e(t){i(this,e),this._options=t,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}return o(e,[{key:"findInstance",value:function(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}},{key:"findItemContainer",value:function(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}},{key:"tryExecute",value:function(){(0,a.abstract)()}}]),e}();t.default=r},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(4),s=n(1),l=n(7),u=n(0).extend,d=n(11).getPublicElement,c=n(39),h=n(20),p=n(27),f=n(16),g=n(17),_=n(8),m=n(55),v=n(160),y=n(66).BindableTemplate,w=n(6).Deferred,x="dx-gallery",b=x+"-wrapper",C="dx-gallery-loop",k=x+"-container",I=x+"-active",S=x+"-item",D=x+"-item-invisible",T=S+"-loop",E="."+S,O=S+"-selected",A=x+"-indicator",P=A+"-item",B="."+P,M=P+"-selected",F="dx-gallery-item-image",R="dxGalleryItemData",V=1,H=g.inherit({_supportedKeys:function(){return u(this.callBase(),{pageUp:r.noop,pageDown:r.noop})},_getDefaultOptions:function(){return u(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var e=this,t=this.$element(),n=_.addNamespace(h.name,this.NAME);t.addClass(x+"-nav-button-"+this.option("direction")),o.off(t,n),o.on(t,n,function(t){e._createActionByOption("onClick")({event:t})})},_optionChanged:function(e){switch(e.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(e)}}}),L=m.inherit({_activeStateUnit:E,_getDefaultOptions:function(){return u(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===f.real().deviceType&&!f.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new y(function(e,t){var n=i("<img>").addClass(F);s.isPlainObject(t)?(this._prepareDefaultItemTemplate(t,e),n.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(e)):n.attr("src",String(t)).appendTo(e)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return S},_itemDataKey:function(){return R},_actualItemWidth:function(){var e=this.option("wrapAround");if(this.option("stretchImages")){var t=e?this._itemsPerPage()+1:this._itemsPerPage();return 1/t}return e?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var e,t=this.$element().outerWidth(),n=this.option("initialItemWidth");return e=n&&n<=t?n/t:1},_itemsPerPage:function(){var e=l.hasWindow()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(e,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass(x),this.$element().toggleClass(C,this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var e=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(e),!0),this._renderItemVisibility()},_renderDragHandler:function(){var e=_.addNamespace("dragstart",this.NAME);o.off(this.$element(),e),o.on(this.$element(),e,"img",function(){return!1})},_renderWrapper:function(){this._$wrapper||(this._$wrapper=i("<div>").addClass(b).appendTo(this.$element()))},_renderItems:function(e){if(!l.hasWindow()){var t=this.option("selectedIndex");e=e.length>t?e.slice(t,t+1):e.slice(0,1)}this.callBase(e),this._loadNextPageIfNeeded()},_renderItemsContainer:function(){this._$container||(this._$container=i("<div>").addClass(k).appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var e,t=this.option("items")||[],n=t.length,i=n-1;if(n){this._getLoopedItems().remove();var o=Math.min(this._itemsPerPage(),n),a=this._getRealItems(),r=this._itemContainer();for(e=0;e<o;e++)this._cloneItemForDuplicate(a[e],r);for(e=0;e<o;e++)this._cloneItemForDuplicate(a[i-e],r)}}},_cloneItemForDuplicate:function(e,t){e&&i(e).clone(!0).addClass(T).css("margin",0).appendTo(t)},_getRealItems:function(){var e="."+S+":not(."+T+")";return this.$element().find(e)},_getLoopedItems:function(){return this.$element().find("."+T)},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(e){var t=this._itemElements(),n=this._actualItemWidth();void 0!==e&&(t=t.slice(e)),t.each(function(e){i(t[e]).outerWidth(100*n+"%")})},_renderItemPositions:function(){var e=this._actualItemWidth(),t=this._itemsCount(),n=this._itemsPerPage(),o=this.$element().find("."+T).length,a=t+o-1,r=this.option("wrapAround")?.5:0,s=this._itemFreeSpace(),l=!!s,u=this.option("rtlEnabled"),d=this.option("selectedIndex"),c=u?"Right":"Left";this._itemElements().each(function(o){var u=o,d=i(this).hasClass(T);if(o>t+n-1&&(u=a-u-n),!d&&0!==u)return void(l&&i(this).css("margin"+c,100*s+"%"));var h=e*(u+r)+s*(u+1-r),p=d?c.toLowerCase():"margin"+c;i(this).css(p,100*h+"%")}),this._relocateItems(d,d,!0)},_itemFreeSpace:function(){var e=this._itemsPerPage();return this.option("wrapAround")&&(e+=1),(1-this._actualItemWidth()*e)/(e+1)},_renderContainerPosition:function(e,t,n){this._releaseInvisibleItems(),e=e||0;var i,o=this,a=this._actualItemWidth(),r=e,l=this._offsetDirection()*r*(a+this._itemFreeSpace());return s.isDefined(this._animationOverride)&&(n=this._animationOverride,delete this._animationOverride),n?(o._startSwipe(),i=o._animate(l).done(o._endSwipe.bind(o))):(p.move(this._$container,{left:l*this._elementWidth(),top:0}),i=(new w).resolveWith(o)),i.done(function(){this._deferredAnimate&&o._deferredAnimate.resolveWith(o),t&&this._renderItemVisibility()}),i.promise()},_startSwipe:function(){this.$element().addClass(I)},_endSwipe:function(){this.$element().removeClass(I)},_animate:function(e,t){var n=this,i=this._$container,o=new w;return c.animate(this._$container,u({type:"slide",to:{left:e*this._elementWidth()},duration:n.option("animationDuration"),complete:function(){n._needMoveContainerForward()&&p.move(i,{left:0,top:0}),n._needMoveContainerBack()&&p.move(i,{left:n._maxContainerOffset()*n._elementWidth(),top:0}),o.resolveWith(n)}},t||{})),o},_needMoveContainerForward:function(){var e=this._$container.position().left*this._offsetDirection(),t=-this._maxItemWidth()*this._elementWidth()*this._itemsCount();return e<=t+V},_needMoveContainerBack:function(){var e=this._$container.position().left*this._offsetDirection(),t=this._actualItemWidth()*this._elementWidth();return e>=t-V},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var e=this,t=e._itemElements().first().find(".dx-item-content");t&&!t.is(":hidden")&&(e.option("height")||e.option("height",t.outerHeight()),e.option("width")||e.option("width",t.outerWidth()),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var e=this._$indicator=i("<div>").addClass(A).appendTo(this._$wrapper),t=0;t<this._pagesCount();t++)i("<div>").addClass(P).appendTo(e);this._renderSelectedPageIndicator()}},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var e=this.option("selectedIndex");this._itemElements().removeClass(O).eq(e).addClass(O)},_renderItemVisibility:function(){return this.option("initialItemWidth")||this.option("wrapAround")?void this._releaseInvisibleItems():(this._itemElements().each(function(e,t){this.option("selectedIndex")===e?i(t).removeClass(D):i(t).addClass(D)}.bind(this)),void this._getLoopedItems().addClass(D))},_releaseInvisibleItems:function(){this._itemElements().removeClass(D),this._getLoopedItems().removeClass(D)},_renderSelectedPageIndicator:function(){if(this._$indicator){var e=this.option("selectedIndex"),t=this._pagesCount()-1,n=Math.ceil(e/this._itemsPerPage());n=Math.min(t,n),this._$indicator.find(B).removeClass(M).eq(n).addClass(M)}},_renderUserInteraction:function(){var e=this.$element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(e,v,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)});var n=this._createAction(this._indicatorSelectHandler);o.off(e,_.addNamespace(h.name,this.NAME),B),o.on(e,_.addNamespace(h.name,this.NAME),B,function(e){n({event:e})})},_indicatorSelectHandler:function(e){var t=e.event,n=e.component;if(n.option("indicatorEnabled")){var o=i(t.target).index(),a=n._fitPaginatedIndex(o*n._itemsPerPage());n._needLongMove=!0,n.option("selectedIndex",a),n._loadNextPageIfNeeded(a)}},_renderNavButtons:function(){var e=this;return e.option("showNavButtons")?(e._prevNavButton=i("<div>").appendTo(this._$wrapper),e._createComponent(e._prevNavButton,H,{direction:"prev",onClick:function(){e._prevPage()}}),e._nextNavButton=i("<div>").appendTo(this._$wrapper),e._createComponent(e._nextNavButton,H,{direction:"next",onClick:function(){e._nextPage()}}),void this._renderNavButtonsVisibility()):void e._cleanNavButtons()},_prevPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")-e;return t===-e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")+e;return t===e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(e){e=void 0===e?this.option("selectedIndex"):e,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(e)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(e)}.bind(this))},_shouldLoadNextPage:function(e){var t=this._itemsPerPage();return e+2*t>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(e){var t=this._itemsPerPage(),n=e<0?t+e:this._itemsCount()-e;return e>this._itemsCount()-1?(e=0,this._goToGhostItem=!0):n<t&&n>0&&(e>0?e-=t-n:e+=t-n),e},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var e=this.option("selectedIndex"),t=this.option("loop"),n=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===n&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=e===n-this._itemsPerPage(),o=n<2||0===e;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||n<2,o&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var e=this,t=e.option("slideshowDelay");clearTimeout(e._slideshowTimer),t&&(e._slideshowTimer=setTimeout(function(){return e._userInteraction?void e._setupSlideShow():void e.nextItem(!0).done(e._setupSlideShow)},t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=this.$element().width()),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(e){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(!t)return void(e.event.cancel=!0);if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var n=this.option("selectedIndex"),i=t-n-this._itemsPerPage(),o=n,a=this.option("rtlEnabled");e.event.maxLeftOffset=a?o:i,e.event.maxRightOffset=a?i:o}},_stopItemAnimations:function(){c.stop(this._$container,!0)},_swipeUpdateHandler:function(e){var t=this.option("wrapAround")?1:0,n=this._offsetDirection()*e.event.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");n<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(n))),this._renderContainerPosition(n)},_swipeEndHandler:function(e){var t=e.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),n=this.option("selectedIndex"),i=this._fitIndex(n-t),o=this._fitPaginatedIndex(i);return Math.abs(t)<this._itemsPerPage()?void this._relocateItems(n):this._itemsPerPage()===this._itemsCount()?void(t>0?this._relocateItems(-t):this._relocateItems(0)):void this.option("selectedIndex",o)},_setFocusOnSelect:function(){this._userInteraction=!0;var e=this.itemElements().filter("."+O);this.option("focusedElement",d(e)),this._userInteraction=!1},_flipIndex:function(e){var t=this._itemsCount();return e%=t,e>(t+1)/2&&(e-=t),e<-(t-1)/2&&(e+=t),e},_fitIndex:function(e){if(!this.option("loop"))return e;var t=this._itemsCount();return(e>=t||e<0)&&(this._goToGhostItem=!0),e>=t&&(e=t-e),e%=t,e<0&&(e+=t),e},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(e,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(e[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(e,t,n){void 0===t&&(t=e);var i=this._calculateIndexOffset(e,t);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!n).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler:function(){c.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){c.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:r.noop,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var e=this.itemElements().index(i(this.option("focusedElement")));this.goToItem(e,this.option("animationEnabled"))},_visibilityChanged:function(e){e&&this._reviseDimensions()},_calculateIndexOffset:function(e,t){void 0===t&&(t=e);var n=t-e;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(e)&&this._isItemOnLastPage(t)?n=-this._itemsPerPage():this._isItemOnLastPage(e)&&this._isItemOnFirstPage(t)&&(n=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,n-=t},_isItemOnLastPage:function(e){return e>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(e){return e<=this._itemsPerPage()},_optionChanged:function(e){switch(e.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass(C,e.value),this.option("loopItemFocus",e.value),l.hasWindow()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":l.hasWindow()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":case"indicatorEnabled":this._renderUserInteraction();break;default:this.callBase(e)}},goToItem:function(e,t){var n=this.option("selectedIndex"),i=this._itemsCount();return void 0!==t&&(this._animationOverride=t),e=this._fitIndex(e),this._deferredAnimate=new w,e>i-1||e<0||n===e?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",e),this._deferredAnimate.promise())},prevItem:function(e){return this.goToItem(this.option("selectedIndex")-1,e)},nextItem:function(e){return this.goToItem(this.option("selectedIndex")+1,e)}});a("dxGallery",L),e.exports=L},function(e,t,n){e.exports=n(575)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(0),s=n(1),l=n(11),u=n(4),d=n(9),c=i(d),h=n(100),p=n(48),f=i(p),g=n(19),_=i(g),m=n(26),v=i(m),y=n(6),w=n(5),x=i(w),b=n(8),C=n(247),k=i(C),I=n(325),S=n(576),D=i(S);n(594);var T=n(258),E=i(T),O=n(595),A=i(O),P=n(596),B=i(P),M=n(597),F=i(M),R="dx-htmleditor",V="dx-quill-container",H="ql-clipboard",L="dx-htmleditor-submit-element",z="dx-htmleditor-content",$="markdown",N="htmlContent",W=1,j=f.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,mentions:null,customizeModules:null,formDialogOptions:null})},_init:function(){this.callBase(),this._cleanCallback=(0,v.default)(),this._contentInitializedCallback=(0,v.default)()},_getAnonymousTemplateName:function(){return N},_initTemplates:function(){this.callBase(),this._defaultTemplates[N]=new h.EmptyTemplate},_focusTarget:function(){return this._getContent()},_getContent:function(){return this.$element().find("."+z)},_focusInHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(e){return(0,a.default)(e).hasClass(H)},_initMarkup:function(){this._$htmlContainer=(0,a.default)("<div>").addClass(V),this.$element().addClass(R).wrapInner(this._$htmlContainer);var e=this._getTemplate(N),t=!0;this._$templateResult=e&&e.render({container:(0,l.getPublicElement)(this._$htmlContainer),noModel:!0,transclude:t}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,a.default)("<textarea>").addClass(L).attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val(e)},_getSubmitElement:function(){return this._$submitElement},_updateContainerMarkup:function(){var e=this.option("value");this._isMarkdownValue()&&(this._prepareMarkdownConverter(),e=this._markdownConverter.toHtml(e)),e&&this._$htmlContainer.html(e)},_prepareMarkdownConverter:function(){var e=E.default.getConverter("markdown");if(!e)throw _.default.Error("E1051","markdown");this._markdownConverter=new e},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new D.default)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var e=E.default.getConverter("delta");e&&(this._deltaConverter=new e)}this.option("valueType")!==$||this._markdownConverter||this._prepareMarkdownConverter();
},_renderContentImpl:function(){this._contentRenderedDeferred=new y.Deferred;var e=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),e},_renderHtmlEditor:function(){var e=this,t=this.option("customizeModules"),n=this._getModulesConfig();(0,s.isFunction)(t)&&t(n),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:n,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._renderScrollHandler(),this._hasTranscludedContent()?this._updateContentTask=(0,u.executeAsync)(function(){e._applyTranscludedContent()}):this._finalizeContentRendering()},_renderScrollHandler:function(){var e=this._getContent(),t={validate:function(t){if((0,b.isDxMouseWheelEvent)(t))return!!(0,I.allowScroll)(e,-t.delta,t.shiftKey)&&(t._needSkipEvent=!0,!0)}};x.default.on(e,(0,b.addNamespace)(k.default.init,this.NAME),t,u.noop)},_applyTranscludedContent:function(){var e=this._deltaConverter.toHtml(),t=this._quillInstance.clipboard.convert(e);t.ops.length?this._quillInstance.setContents(t):this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var e=this._getRegistrator().getQuill(),t=(0,A.default)(e),n=(0,r.extend)({toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),dropImage:this._getBaseModuleConfig(),resizing:this._getModuleConfigByOption("mediaResizing"),mentions:this._getModuleConfigByOption("mentions"),clipboard:{matchVisual:!1,matchers:[["p.MsoListParagraphCxSpFirst",t],["p.MsoListParagraphCxSpMiddle",t],["p.MsoListParagraphCxSpLast",t],[W,(0,B.default)(e)]]}},this._getCustomModules());return n},_getModuleConfigByOption:function(e){var t=this.option(e),n={};if((0,s.isDefined)(t))return Array.isArray(t)?n[e]=t:n=t,(0,r.extend)(this._getBaseModuleConfig(),n)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var e=this,t={},n=this._getRegistrator().getRegisteredModuleNames();return n.forEach(function(n){t[n]=e._getBaseModuleConfig()}),t},_textChangeHandler:function(e,t,n){var i=this._deltaConverter.toHtml(),o=this._isMarkdownValue()?this._updateValueByType($,i):i;this.option("value")!==o&&(this._isEditorUpdating=!0,this.option("value",o)),this._finalizeContentRendering()},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(e,t){var n=this._markdownConverter;if((0,s.isDefined)(n)){var i=t||this.option("value");return e===$?n.toMarkdown(i):n.toHtml(i)}},_isMarkdownValue:function(){return this.option("valueType")===$},_resetEnabledState:function(){if(this._quillInstance){var e=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(e)}},_renderFormDialog:function(){var e=(0,r.extend)(!0,{width:"auto",height:"auto",closeOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new F.default(this,e)},_getQuillContainer:function(){return this._$htmlContainer},_optionChanged:function(e){switch(e.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var t=this._isMarkdownValue()?this._updateValueByType("HTML",e.value):e.value;this._updateHtmlContent(t)}else this._$htmlContainer.html(e.value);this._setSubmitValue(e.value),this.callBase(e);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":this._invalidate();break;case"valueType":this._prepareConverters();var n=this._updateValueByType(e.value);"html"===e.value&&this._quillInstance?this._updateHtmlContent(n):this.option("value",n);break;case"readOnly":case"disabled":this.callBase(e),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"mediaResizing":e.previousValue&&e.value?this._quillInstance.getModule("resizing").option(e.name,e.value):this._invalidate();break;case"width":this.callBase(e),this._repaintToolbar();break;default:this.callBase(e)}},_repaintToolbar:function(){var e=this._quillInstance.getModule("toolbar");e&&e.repaint()},_updateHtmlContent:function(e){var t=this._quillInstance.clipboard.convert(e);this._quillInstance.setContents(t)},_clean:function(){this._quillInstance&&(x.default.off(this._getContent(),"."+this.NAME),this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod:function(e,t){if(this._quillInstance)return this._quillInstance[e].apply(this._quillInstance,t)},_applyQuillHistoryMethod:function(e){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[e]()},addCleanCallback:function(e){this._cleanCallback.add(e)},addContentInitializedCallback:function(e){this._contentInitializedCallback.add(e)},register:function(e){this._getRegistrator().registerModules(e),this._quillInstance&&this.repaint()},get:function(e){return this._getRegistrator().getQuill().import(e)},getQuillInstance:function(){return this._quillInstance},getSelection:function(){return this._applyQuillMethod("getSelection")},setSelection:function(e,t){this._applyQuillMethod("setSelection",arguments)},format:function(e,t){this._applyQuillMethod("format",arguments)},formatText:function(e,t,n,i){this._applyQuillMethod("formatText",arguments)},formatLine:function(e,t,n,i){this._applyQuillMethod("formatLine",arguments)},getFormat:function(e,t){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(e,t){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},"delete":function(e,t){this._applyQuillMethod("deleteText",arguments)},insertText:function(e,t,n){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(e,t,n){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(e){return this._formDialog.show(e)},formDialogOption:function(e,t){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")}});(0,c.default)("dxHtmlEditor",j),e.exports=j},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(58),r=function(){function e(){if(i(this,e),!e.initialized){var t=this.getQuill(),o=n(578).default,a=n(579).default,r=n(580).default,s=n(581).default,l=n(582).default,u=n(583).default,d=n(326).default,c=n(584).default,h=n(589).default,p=n(590).default,f=n(592).default,g=n(593).default,_=t.import("attributors/style/direction");t.register({"formats/align":u,"formats/direction":_,"formats/font":s,"formats/size":l,"formats/extendedImage":a,"formats/link":r,"formats/mention":d,"modules/toolbar":c,"modules/dropImage":h,"modules/variables":p,"modules/resizing":f,"modules/mentions":g,"themes/basic":o},!0),this._customModules=[],e._initialized=!0}}return o(e,[{key:"createEditor",value:function(e,t){var n=this.getQuill();return new n(e,t)}},{key:"registerModules",value:function(e){var t=RegExp("modules/*"),n=this.getQuill(),i=function(e){return!!n.imports[e]};for(var o in e)t.test(o)&&!i(o)&&this._customModules.push(o.slice(8));n.register(e,!0)}},{key:"getRegisteredModuleNames",value:function(){return this._customModules}},{key:"getQuill",value:function(){return(0,a.getQuill)()}}]),e}();t.default=r},function(e,t){e.exports=window.Quill},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),s=(0,r.getQuill)().import("core/theme"),l=function(e){function t(e,n){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return a.quill.root.classList.add("dx-htmleditor-content"),a}return a(t,e),t}(s);t.default=l},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=n(58),u=n(1),d=(0,l.getQuill)(),c=d.import("formats/image"),h=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),r(t,[{key:"formats",value:function e(){var e=s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formats",this).call(this),n=this.domNode.style.float;return n&&(e.float=n),e}},{key:"format",value:function(e,n){"float"===e?this.domNode.style[e]=n:s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=e&&e.src||e,i=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);if((0,u.isObject)(e)){var o=function(t,n){e[t]&&i.setAttribute(t,n)};o("alt",e.alt),o("width",e.width),o("height",e.height)}return i}},{key:"formats",value:function e(n){var e=s(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,n);return e.imageSrc=n.getAttribute("src"),e}},{key:"value",value:function(e){return{src:e.getAttribute("src"),width:e.getAttribute("width"),height:e.getAttribute("height"),alt:e.getAttribute("alt")}}}]),t}(c);h.blotName="extendedImage",t.default=h},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=n(58),u=n(1),d=(0,l.getQuill)(),c=d.import("formats/link"),h=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),r(t,[{key:"formats",value:function e(){var e=s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formats",this).call(this),n=t.formats(this.domNode),i=n.href,o=n.target;return e.link=i,e.target=o,e}},{key:"format",value:function(e,n){"link"===e&&(0,u.isObject)(n)?(n.text&&(this.domNode.innerText=n.text),n.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",n.href)):s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=e&&e.href||e,i=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return(0,u.isObject)(e)&&(e.text&&(i.innerText=e.text),e.target||i.removeAttribute("target")),i}},{key:"formats",value:function(e){return{href:e.getAttribute("href"),target:e.getAttribute("target")}}},{key:"value",value:function(e){return{href:e.getAttribute("href"),text:e.innerText,target:!!e.getAttribute("target")}}}]),t}(c);t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=(0,i.getQuill)(),a=o.import("attributors/style/font");a.whitelist=null,t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=(0,i.getQuill)(),a=o.import("attributors/style/size");a.whitelist=null,t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=(0,i.getQuill)(),a=o.import("attributors/style/align");a.whitelist.push("left"),t.default=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(58),u=n(2),d=i(u),c=n(168),h=i(c);n(95),n(315);var p=n(588),f=i(p),g=n(3),_=n(1),m=n(0),v=n(10),y=n(33),w=n(5),x=i(w),b=n(8),C=(0,l.getQuill)().import("core/module"),k="dx-htmleditor-toolbar-wrapper",I="dx-htmleditor-toolbar",S="dx-htmleditor-toolbar-format",D="dx-htmleditor-toolbar-separator",T="dx-htmleditor-toolbar-menu-separator",E="dx-format-active",O="dx-box-item-content",A="dx-icon",P="selection-change",B="dxHtmlEditor-dialogColorCaption",M="dxHtmlEditor-dialogBackgroundCaption",F="dxHtmlEditor-dialogLinkCaption",R="dxHtmlEditor-dialogLinkUrlField",V="dxHtmlEditor-dialogLinkTextField",H="dxHtmlEditor-dialogLinkTargetField",L="dx-formdialog-field-target",z="dxHtmlEditor-dialogImageCaption",$="dxHtmlEditor-dialogImageUrlField",N="dxHtmlEditor-dialogImageAltField",W="dxHtmlEditor-dialogImageWidthField",j="dxHtmlEditor-dialogImageHeightField",q="user",G="silent",K=(0,v.format)("dxHtmlEditor-heading"),U=(0,v.format)("dxHtmlEditor-normalText"),Y=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i._editorInstance=n.editorInstance,i._toolbarWidgets=new f.default,i._formatHandlers=i._getFormatHandlers(),(0,_.isDefined)(n.items)&&(i._addCallbacks(),i._renderToolbar(),i.quill.on("editor-change",function(e){var t=e===P;i._updateToolbar(t)})),i}return r(t,e),s(t,[{key:"_addCallbacks",value:function(){this._editorInstance.addCleanCallback(this.clean.bind(this)),this._editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))}},{key:"_updateToolbar",value:function(e){this.updateFormatWidgets(e),this.updateHistoryWidgets()}},{key:"_getDefaultClickHandler",value:function(e){var t=this;return function(n){var i=t.quill.getFormat(),o=i[e],a=!((0,_.isBoolean)(o)?o:(0,_.isDefined)(o));t.quill.format(e,a,q),t._updateFormatWidget(e,a,i)}}},{key:"_updateFormatWidget",value:function(e,t,n){var i=this._toolbarWidgets.getByName(e);i&&(t?this._markActiveFormatWidget(e,i,n):(this._resetFormatWidget(e,i),Object.prototype.hasOwnProperty.call(e)&&delete n[e]),this._toggleClearFormatting(t||!(0,_.isEmptyObject)(n)))}},{key:"_getFormatHandlers",value:function(){var e=this;return{clear:function(t){var n=e.quill.getSelection();n&&(e.quill.removeFormat(n),e.updateFormatWidgets())},link:this._prepareLinkHandler(),image:this._prepareImageHandler(),color:this._prepareColorClickHandler("color"),background:this._prepareColorClickHandler("background"),orderedList:this._prepareShortcutHandler("list","ordered"),bulletList:this._prepareShortcutHandler("list","bullet"),alignLeft:this._prepareShortcutHandler("align","left"),alignCenter:this._prepareShortcutHandler("align","center"),alignRight:this._prepareShortcutHandler("align","right"),alignJustify:this._prepareShortcutHandler("align","justify"),codeBlock:this._getDefaultClickHandler("code-block"),undo:function(){e.quill.history.undo()},redo:function(){e.quill.history.redo()},increaseIndent:function(){e.quill.format("indent","+1",q)},decreaseIndent:function(){e.quill.format("indent","-1",q)},superscript:this._prepareShortcutHandler("script","super"),subscript:this._prepareShortcutHandler("script","sub")}}},{key:"_prepareShortcutHandler",value:function(e,t){var n=this;return function(){var i=n.quill.getFormat(),o=i[e]!==t&&t;n.quill.format(e,o,q),n.updateFormatWidgets(!0)}}},{key:"_prepareLinkHandler",value:function(){var e=this;return function(){e.quill.focus();var t=e.quill.getSelection(),n=e._hasEmbedContent(t),i=t?e.quill.getFormat():{},o={href:i.link||"",text:t&&!n?e.quill.getText(t):"",target:!Object.prototype.hasOwnProperty.call(i,"target")||!!i.target};e._editorInstance.formDialogOption("title",(0,v.format)(F));var a=e._editorInstance.showFormDialog({formData:o,items:e._getLinkFormItems(t)});a.done(function(i){if(t&&!n){var o=i.text||i.href,a=t.index,r=t.length;i.text=void 0,r&&e.quill.deleteText(a,r,G),e.quill.insertText(a,o,"link",i,q),e.quill.setSelection(a+o.length,0,q)}else i.text=t||i.text?i.text:i.href,e.quill.format("link",i,q)}),a.fail(function(){e.quill.focus()})}}},{key:"_hasEmbedContent",value:function(e){return!!e&&this.quill.getText(e).trim().length<e.length}},{key:"_getLinkFormItems",value:function(e){return[{dataField:"href",label:{text:(0,v.format)(R)}},{dataField:"text",label:{text:(0,v.format)(V)},visible:!this._hasEmbedContent(e)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:(0,v.format)(H)},cssClass:L,label:{visible:!1}}]}},{key:"_prepareImageHandler",value:function(){var e=this;return function(){var t=e.quill.getFormat(),n=Object.prototype.hasOwnProperty.call(t,"imageSrc"),i=e._defaultPasteIndex;if(n){var o=e.quill.getFormat(i-1,1),a=o.imageSrc;t.src=t.imageSrc,delete t.imageSrc,a&&0!==i||e.quill.setSelection(i+1,0,G)}var r=e._embedFormatIndex;e._editorInstance.formDialogOption("title",(0,v.format)(z));var s=e._editorInstance.showFormDialog({formData:t,items:e._imageFormItems});s.done(function(t){var o=i;n&&(o=r,e.quill.deleteText(o,1,G)),e.quill.insertEmbed(o,"extendedImage",t,q),e.quill.setSelection(o+1,0,q)}).always(function(){e.quill.focus()})}}},{key:"_renderToolbar",value:function(){var e=this,t=this.options.container||this._getContainer();this._$toolbar=(0,d.default)("<div>").addClass(I).appendTo(t),this._$toolbarContainer=(0,d.default)(t).addClass(k),x.default.on(this._$toolbarContainer,(0,b.addNamespace)("mousedown",this._editorInstance.NAME),function(e){e.preventDefault()}),this.toolbarInstance=this._editorInstance._createComponent(this._$toolbar,h.default,this.toolbarConfig),this._editorInstance.on("optionChanged",function(t){var n=t.name;"readOnly"!==n&&"disabled"!==n||e.toolbarInstance.option("disabled",e.isInteractionDisabled)})}},{key:"clean",value:function(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(k)}},{key:"repaint",value:function(){this.toolbarInstance&&this.toolbarInstance.repaint()}},{key:"_getContainer",value:function(){var e=(0,d.default)("<div>");return this._editorInstance.$element().prepend(e),e}},{key:"_prepareToolbarItems",value:function(){var e=this,t=[];return(0,g.each)(this.options.items,function(n,i){var o=void 0;if((0,_.isObject)(i))o=e._handleObjectItem(i);else if((0,_.isString)(i)){var a=e._prepareButtonItemConfig(i);o=e._getToolbarItem(a)}o&&t.push(o)}),t}},{key:"_handleObjectItem",value:function(e){if(e.formatName&&e.formatValues&&this._isAcceptableItem("dxSelectBox")){var t=this._prepareSelectItemConfig(e);return this._getToolbarItem(t)}if(e.formatName&&this._isAcceptableItem("dxButton")){var n=this._prepareButtonItemConfig(e.formatName),i=(0,m.extend)(!0,n,e);return this._getToolbarItem(i)}return this._getToolbarItem(e)}},{key:"_isAcceptableItem",value:function(e,t){return!e.widget||e.widget===t}},{key:"_prepareButtonItemConfig",value:function(e){var t="clear"===e?"clearformat":e,n=(0,y.titleize)(e);return{widget:"dxButton",formatName:e,options:{hint:n,text:n,icon:t.toLowerCase(),onClick:this._formatHandlers[e]||this._getDefaultClickHandler(e),stylingMode:"text"},showText:"inMenu"}}},{key:"_prepareSelectItemConfig",value:function(e){var t=this;return(0,m.extend)(!0,{widget:"dxSelectBox",formatName:e.formatName,options:{stylingMode:"filled",dataSource:e.formatValues,placeholder:(0,y.titleize)(e.formatName),onValueChanged:function(n){t._isReset||(t.quill.format(e.formatName,n.value,q),t._setValueSilent(n.component,n.value))}}},e)}},{key:"_prepareColorClickHandler",value:function(e){var t=this;return function(){var n=t.quill.getFormat(),i="color"===e?B:M;t._editorInstance.formDialogOption("title",(0,v.format)(i));var o=t._editorInstance.showFormDialog({formData:n,items:[{dataField:e,editorType:"dxColorView",editorOptions:{onContentReady:function(e){(0,d.default)(e.element).closest("."+O).css("flexBasis","auto")},focusStateEnabled:!1},label:{visible:!1}}]});o.done(function(n){t.quill.format(e,n[e],q)}),o.fail(function(){t.quill.focus()})}}},{key:"_getToolbarItem",value:function(e){var t=this,n={options:{onInitialized:function(n){e.formatName&&(n.component.$element().addClass(S),n.component.$element().toggleClass("dx-"+e.formatName.toLowerCase()+"-format",!!e.formatName),t._toolbarWidgets.add(e.formatName,n.component))}}};return(0,m.extend)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(e.formatName),e,n)}},{key:"_getDefaultItemsConfig",value:function(){return{header:{options:{displayExpr:function(e){var t=(0,_.isDefined)(e)&&e!==!1;return t?K+" "+e:U}}},clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},separator:{template:function(e,t,n){(0,d.default)(n).addClass(D)},menuItemTemplate:function(e,t,n){(0,d.default)(n).addClass(T)}}}}},{key:"_getDefaultConfig",value:function(e){return this._getDefaultItemsConfig()[e]}},{key:"updateHistoryWidgets",value:function(){var e=this.quill.history;if(e){var t=e.stack.undo,n=e.stack.redo;this._updateHistoryWidget(this._toolbarWidgets.getByName("undo"),t),this._updateHistoryWidget(this._toolbarWidgets.getByName("redo"),n)}}},{key:"_updateHistoryWidget",value:function(e,t){e&&e.option("disabled",!t.length)}},{key:"updateFormatWidgets",value:function(e){var t=this.quill.getSelection();if(t){var n=this.quill.getFormat(t),i=!(0,_.isEmptyObject)(n);i&&!e||this._resetFormatWidgets();for(var o in n){var a=this._getFormatWidgetName(o,n),r=this._toolbarWidgets.getByName(a)||this._toolbarWidgets.getByName(o);r&&this._markActiveFormatWidget(o,r,n)}this._toggleClearFormatting(i)}}},{key:"_markActiveFormatWidget",value:function(e,t,n){this._isColorFormat(e)&&this._updateColorWidget(e,n[e]),"value"in t.option()?this._setValueSilent(t,n[e]):t.$element().addClass(E)}},{key:"_toggleClearFormatting",value:function(e){var t=this._toolbarWidgets.getByName("clear");t&&t.option("disabled",!e)}},{key:"_isColorFormat",value:function(e){return"color"===e||"background"===e}},{key:"_updateColorWidget",value:function(e,t){var n=this._toolbarWidgets.getByName(e);n&&n.$element().find("."+A).css("borderBottomColor",t||"transparent")}},{key:"_getFormatWidgetName",value:function(e,t){var n=void 0;switch(e){case"align":n=e+(0,y.titleize)(t[e]);break;case"list":n=t[e]+(0,y.titleize)(e);break;case"code-block":n="codeBlock";break;case"script":n=t[e]+e;break;case"imageSrc":n="image";break;default:n=e}return n}},{key:"_setValueSilent",value:function(e,t){this._isReset=!0,e.option("value",t),this._isReset=!1}},{key:"_resetFormatWidgets",value:function(){var e=this;this._toolbarWidgets.each(function(t,n){e._resetFormatWidget(t,n)})}},{key:"_resetFormatWidget",value:function(e,t){t.$element().removeClass(E),this._isColorFormat(e)&&this._updateColorWidget(e),"clear"===e&&t.option("disabled",!0),"dxSelectBox"===t.NAME&&this._setValueSilent(t,null)}},{key:"addClickHandler",value:function(e,t){this._formatHandlers[e]=t;var n=this._toolbarWidgets.getByName(e);n&&"dxButton"===n.NAME&&n.option("onClick",t)}},{key:"_embedFormatIndex",get:function(){var e=this.quill.getSelection();return e?e.length?e.index:e.index-1:this.quill.getLength()}},{key:"_defaultPasteIndex",get:function(){var e=this.quill.getSelection();return e&&e.index||this.quill.getLength()}},{key:"_imageFormItems",get:function(){return[{dataField:"src",label:{text:(0,v.format)($)}},{dataField:"width",label:{text:(0,v.format)(W)}},{dataField:"height",label:{text:(0,v.format)(j)}},{dataField:"alt",label:{text:(0,v.format)(N)}}]}},{key:"toolbarConfig",get:function(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbarContainer}}},{key:"isInteractionDisabled",get:function(){return this._editorInstance.option("readOnly")||this._editorInstance.option("disabled")}}]),t}(C);t.default=Y},function(e,t,n){var i=n(327),o=n(0).extend,a=n(243),r=i.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return a},_menuContainer:function(){return this._toolbar.$element()},_widgetOptions:function(){return o({},this.callBase(),{target:this._$button,showTitle:!1})},_menuButtonOptions:function(){return o({},this.callBase(),{icon:"overflow"})},_toggleMenu:function(){this.callBase.apply(this,arguments),this._menu.toggle(this._menuShown),this._menuShown=!1}});e.exports=r},function(e,t,n){var i=n(0).extend,o=n(327),a=n(587),r=n(198),s="dx-state-invisible",l=o.inherit({NAME:"dropDownMenu",render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButtonContainer(),this._renderWidget())},renderMenuItems:function(){this._menu||this.render(),this.callBase(),this._menu&&!this._menu.option("items").length&&this._menu.close()},_menuWidgetClass:function(){return r},_widgetOptions:function(){var e=this;return i(this.callBase(),{deferRendering:!0,container:e._toolbar.option("menuContainer"),menuWidget:a,onOptionChanged:function(t){"items"===t.name&&e._updateMenuVisibility(t.value)},popupPosition:{at:"bottom right",my:"top right"}})},_updateMenuVisibility:function(e){var t=e||this._getMenuItems(),n=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(n)},_toggleMenuVisibility:function(e){this._menuContainer()&&this._menuContainer().toggleClass(s,!e)},_menuContainer:function(){return this._$menuButtonContainer}});e.exports=l},function(e,t,n){var i=n(2),o=n(9),a=n(3).each,r=n(245),s="dx-toolbar-menu-action",l="dx-toolbar-hidden-button",u="dx-toolbar-menu-section",d="dx-toolbar-menu-last-section",c=r.inherit({_activeStateUnit:"."+s,_initMarkup:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var e=this,t=this._itemContainer();a(["before","center","after","menu"],function(){var n="_$"+this+"Section",o=e[n];o||(e[n]=o=i("<div>").addClass(u)),o.appendTo(t)})},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var e=this.$element().find("."+u);e.removeClass(d),e.not(":empty").eq(-1).addClass(d)},_renderItem:function(e,t,n,i){var o,a=t.location||"menu",r=this["_$"+a+"Section"];return o=this.callBase(e,t,r,i),this._getItemTemplateName({itemData:t})&&o.addClass("dx-toolbar-menu-custom"),("menu"===a||"dxButton"===t.widget||t.isAction)&&o.addClass(s),"dxButton"===t.widget&&o.addClass(l),o.addClass(t.cssClass),o},_getItemTemplateName:function(e){var t=this.callBase(e),n=e.itemData,i=n&&n.menuItemTemplate;return i||t},_itemClickHandler:function(e,t,n){i(e.target).closest("."+s).length&&this.callBase(e,t,n)},_clean:function(){this._getSections().empty(),this.callBase()}});o("dxToolbarMenu",c),e.exports=c},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){i(this,e),this._collection=[]}return o(e,[{key:"clear",value:function(){this._collection=[]}},{key:"add",value:function(e,t){this._collection.push({name:e,instance:t})}},{key:"getByName",value:function(e){var t=this._collection.find(function(t){var n=t.name;return e===n})||{},n=t.instance;return n}},{key:"each",value:function(e){this._collection.forEach(function(t){var n=t.name,i=t.instance;return i&&e(n,i)})}}]),e}();t.default=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(58),u=n(5),d=i(u),c=n(8),h=n(3),p=n(25),f=i(p),g=n(7),_=(0,
l.getQuill)().import("core/module"),m=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));i.editorInstance=n.editorInstance;var r=i.editorInstance.NAME;return d.default.on(i.quill.root,(0,c.addNamespace)("dragover",r),i._dragOverHandler.bind(i)),d.default.on(i.quill.root,(0,c.addNamespace)("drop",r),i._dropHandler.bind(i)),d.default.on(i.quill.root,(0,c.addNamespace)("paste",r),i._pasteHandler.bind(i)),i}return r(t,e),s(t,[{key:"_dragOverHandler",value:function(e){f.default.msie&&e.preventDefault()}},{key:"_dropHandler",value:function(e){var t=e.originalEvent.dataTransfer,n=t&&t.files&&t.files.length;e.preventDefault(),n&&this._getImage(t.files,this._addImage.bind(this))}},{key:"_pasteHandler",value:function(e){var t=this,n=e.originalEvent,i=n.clipboardData;if(i){var o=i.items&&i.items.length,a=i.getData("text/html");!a&&o&&this._getImage(i.items,function(e){f.default.mozilla||(f.default.msie?setTimeout(function(){t._addImage(e)}):t._addImage(e))})}}},{key:"_isImage",value:function(e){return!!e.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}},{key:"_getImage",value:function(e,t){var n=this,i=(0,g.getWindow)();(0,h.each)(e,function(e,o){if(n._isImage(o)){var a=new i.FileReader;a.onload=function(e){var n=e.target;t(n.result)};var r=o.getAsFile?o.getAsFile():o;r instanceof i.Blob&&a.readAsDataURL(r)}})}},{key:"_addImage",value:function(e){var t=this.quill.getSelection(),n=t?t.index:this.quill.getLength();this.quill.insertEmbed(n,"extendedImage",e,"user")}}]),t}(_);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(58),d=n(2),c=i(d),h=n(328),p=i(h),f=n(591),g=i(f),_=n(0),m="dx-variable-format",v="dx-format-active";(0,u.getQuill)().register({"formats/variable":g.default},!0);var y=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=e.getModule("toolbar");return r&&r.addClickHandler("variable",i.showPopup.bind(i)),e.keyboard.addBinding({key:"P",altKey:!0},i.showPopup.bind(i)),i._popup.on("shown",function(e){var t=(0,c.default)(e.component.option("position").of);t.hasClass(m)&&t.addClass(v)}),i}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,_.extend)(e,{escapeChar:""})}}]),s(t,[{key:"showPopup",value:function(e){var n=this.quill.getSelection(),i=n?n.index:this.quill.getLength();this.savePosition(i),this._resetPopupPosition(e,i),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"showPopup",this).call(this)}},{key:"_resetPopupPosition",value:function(e,t){if(e&&e.element)this._popup.option("position",{of:e.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var n=this.quill.getBounds(t),i=this.quill.root.getBoundingClientRect();this._popup.option("position",{of:this.quill.root,offset:{h:n.left,v:n.bottom-i.height},my:"top center",at:"bottom left",collision:"fit flip"})}}},{key:"insertEmbedContent",value:function(e){var t=this.getPosition(),n=e.component.option("selectedItem"),i=(0,_.extend)({},{value:n,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(t,"variable",i),this.quill.setSelection(t+1)}.bind(this))}}]),t}(p.default);t.default=y},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=n(58),u=n(4),d=n(0),c=(0,l.getQuill)(),h=c.import("blots/embed"),p="dx-variable",f=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),r(t,null,[{key:"create",value:function(e){var n=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this),i=void 0,o=void 0,a=e.value;return Array.isArray(e.escapeChar)?(i=(0,u.ensureDefined)(e.escapeChar[0],""),o=(0,u.ensureDefined)(e.escapeChar[1],"")):i=o=e.escapeChar,n.innerText=i+a+o,n.dataset.varStartEscChar=i,n.dataset.varEndEscChar=o,n.dataset.varValue=e.value,n}},{key:"value",value:function(e){return(0,d.extend)({},{value:e.dataset.varValue,escapeChar:[e.dataset.varStartEscChar||"",e.dataset.varEndEscChar||""]})}}]),t}(h);f.blotName="variable",f.tagName="span",f.className=p,t.default=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(5),u=i(l),d=n(20),c=n(8),h=n(27),p=n(16),f=i(p),g=n(178),_=i(g),m="dx-resize-frame",v="dx-touch-device",y="dxHtmlResizingModule",w=(0,c.addNamespace)("keydown",y),x=(0,c.addNamespace)("scroll",y),b=1,C=function(){function e(t,n){o(this,e),this.quill=t,this.editorInstance=n.editorInstance,this.allowedTargets=n.allowedTargets||["image"],this.enabled=!!n.enabled,this.enabled&&(this._attachEvents(),this._createResizeFrame())}return a(e,[{key:"_attachEvents",value:function(){u.default.on(this.quill.root,(0,c.addNamespace)(d.name,y),this._clickHandler.bind(this)),u.default.on(this.quill.root,x,this._scrollHandler.bind(this))}},{key:"_detachEvents",value:function(){u.default.off(this.quill.root,y)}},{key:"_clickHandler",value:function(e){if(this._isAllowedTarget(e.target)){if(this._$target===e.target)return;this._$target=e.target,this.updateFramePosition(),this.showFrame()}else this._$target&&this.hideFrame()}},{key:"_scrollHandler",value:function(e){this._$target&&this.updateFramePosition()}},{key:"_isAllowedTarget",value:function(e){return this._isImage(e)}},{key:"_isImage",value:function(e){return this.allowedTargets.indexOf("image")!==-1&&"IMG"===e.tagName.toUpperCase()}},{key:"showFrame",value:function(){this._$resizeFrame.show(),u.default.on(this.quill.root,w,this.hideFrame.bind(this))}},{key:"hideFrame",value:function(){this._$target=null,this._$resizeFrame.hide(),u.default.off(this.quill.root,w)}},{key:"updateFramePosition",value:function(){var e=this._$target,t=e.height,n=e.width,i=e.offsetTop,o=e.offsetLeft,a=this.quill.root,r=a.scrollTop,s=a.scrollLeft,l=this._getBorderWidth();this._$resizeFrame.css({height:t,width:n,padding:b,top:i-l-r-b,left:o-l-s-b}),(0,h.move)(this._$resizeFrame,{left:0,top:0})}},{key:"_getBorderWidth",value:function(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}},{key:"_createResizeFrame",value:function(){var e=this;if(!this._$resizeFrame){var t=f.default.current(),n=t.deviceType;this._$resizeFrame=(0,s.default)("<div>").addClass(m).toggleClass(v,"desktop"!==n).appendTo(this.editorInstance._getQuillContainer()).hide(),this.editorInstance._createComponent(this._$resizeFrame,_.default,{onResize:function(t){if(e._$target){var n=2*(b+e._getBorderWidth());(0,s.default)(e._$target).attr({height:t.height-n,width:t.width-n}),e.updateFramePosition()}}})}}},{key:"option",value:function(e,t){var n=this;return"mediaResizing"===e?void Object.keys(t).forEach(function(e){return n.option(e,t[e])}):void("enabled"===e?(this.enabled=t,t?this._attachEvents():this._detachEvents()):"allowedTargets"===e&&Array.isArray(t)&&(this.allowedTargets=t))}},{key:"clean",value:function(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}]),e}();t.default=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(18),h=n(1),p=n(0),f=n(11),g=n(290),_=n(328),m=i(_),v=n(326),y=i(v),w="user",x="silent",b="@",C={ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36},k=[C.ARROW_LEFT,C.ARROW_RIGHT,C.PAGE_UP,C.PAGE_DOWN,C.END,C.HOME],I=[" ","\n"],S="dx-state-disabled",D=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i._mentions={},i.editorInstance=n.editorInstance,n.mentions.forEach(function(e){var t=e.marker,n=e.template;if(t||(e.marker=t=b),n){var o=i.editorInstance._getTemplate(n);o&&y.default.addTemplate(t,o)}i._mentions[t]=(0,p.extend)({},i._getDefaultOptions(),e)}),i._attachKeyboardHandlers(),i.editorInstance.addCleanCallback(i.clean.bind(i)),i.quill.on("text-change",i.onTextChange.bind(i)),i}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,p.extend)(e,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}}]),s(t,[{key:"_attachKeyboardHandlers",value:function(){var e=this;this.quill.keyboard.addBinding({key:C.ARROW_UP},this._arrowUpKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_DOWN},this._arrowDownKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ENTER},this._selectItemHandler.bind(this));var t=this.quill.keyboard.bindings[C.ENTER];t.unshift(t.pop()),this.quill.keyboard.addBinding({key:C.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.SPACE},this._selectItemHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_LEFT,shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_RIGHT,shiftKey:!0},this._ignoreKeyHandler.bind(this)),k.forEach(function(t){e.quill.keyboard.addBinding({key:t},e._ignoreKeyHandler.bind(e))})}},{key:"_arrowUpKeyHandler",value:function(){if(this._isMentionActive){var e=(0,d.default)(this._list.option("focusedElement")),t=e.prev();t=t.length?t:this._activeListItems.last(),this._list.option("focusedElement",(0,f.getPublicElement)(t)),this._list.scrollToItem(t)}return!this._isMentionActive}},{key:"_arrowDownKeyHandler",value:function(){if(this._isMentionActive){var e=(0,d.default)(this._list.option("focusedElement")),t=e.next();t=t.length?t:this._activeListItems.first(),this._list.option("focusedElement",(0,f.getPublicElement)(t)),this._list.scrollToItem(t)}return!this._isMentionActive}},{key:"_ignoreKeyHandler",value:function(){return!this._isMentionActive}},{key:"_fitIntoRange",value:function(e,t,n){return e>n?t:e<t?n:e}},{key:"_selectItemHandler",value:function(){return this._isMentionActive&&this._list.selectItem(this._list.option("focusedElement")),!this._isMentionActive}},{key:"_escapeKeyHandler",value:function(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive}},{key:"renderList",value:function(e,n){this.compileGetters(this.options),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderList",this).call(this,e,n)}},{key:"compileGetters",value:function(e){var t=e.displayExpr,n=e.valueExpr;this._valueGetter=(0,c.compileGetter)(t),this._idGetter=(0,c.compileGetter)(n)}},{key:"_getListConfig",value:function(e){var n=this,i=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getListConfig",this).call(this,e);return(0,p.extend)(i,{itemTemplate:this.options.itemTemplate,onContentReady:function(){n._hasSearch&&(n._popup.repaint(),n._focusFirstElement(),n._hasSearch=!1)}})}},{key:"insertEmbedContent",value:function(){var e=this._activeMentionConfig.marker.length,t=e+this._searchValue.length,n=this.getPosition(),i=Math.max(0,n-e),o=this._list.option("selectedItem"),a={value:this._valueGetter(o),id:this._idGetter(o),marker:this._activeMentionConfig.marker};setTimeout(function(){this.quill.insertText(i," ",x),this.quill.deleteText(i+1,t,x),this.quill.insertEmbed(i,"mention",a),this.quill.setSelection(i+2)}.bind(this))}},{key:"_getLastInsertOperation",value:function(e){var t=e[e.length-1],n="insert"in t;if(n)return t;var i="delete"in t;if(i&&e.length>=2){var o=e[e.length-2],a="insert"in o,r=i&&a;if(r)return o}return null}},{key:"onTextChange",value:function(e,t,n){if(n===w){var i=e.ops[e.ops.length-1];if(this._isMentionActive)this._processSearchValue(i)&&this._filterList(this._searchValue);else{var o=e.ops,a=this._getLastInsertOperation(o);a&&this.checkMentionRequest(a,o)}}}},{key:"_processSearchValue",value:function(e){var t="insert"in e;if(t)this._searchValue+=e.insert;else{if(!this._searchValue.length)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}},{key:"checkMentionRequest",value:function(e,t){var n=e.insert,i=this.quill.getSelection();n&&(0,h.isString)(n)&&i&&!this._isMarkerPartOfText(t[0].retain)&&(this._activeMentionConfig=this._mentions[n],this._activeMentionConfig&&(this._updateList(this._activeMentionConfig),this.savePosition(i.index),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()))}},{key:"_isMarkerPartOfText",value:function(e){return!(!e||I.indexOf(this._getCharByIndex(e-1))!==-1)}},{key:"_getCharByIndex",value:function(e){return this.quill.getContents(e,1).ops[0].insert}},{key:"_updateList",value:function(e){var t=e.dataSource,n=e.displayExpr,i=e.valueExpr,o=e.itemTemplate,a=e.searchExpr;this.compileGetters({displayExpr:n,valueExpr:i}),this._list.unselectAll(),this._list.option({dataSource:t,displayExpr:n,itemTemplate:o,searchExpr:a})}},{key:"_filterList",value:function(e){var t=this;if(!this._isMinSearchLengthExceeded(e))return void this._resetFilter();var n=this._activeMentionConfig.searchTimeout;n?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout(function(){t._search(e)},n)):this._search(e)}},{key:"_isMinSearchLengthExceeded",value:function(e){return e.length>=this._activeMentionConfig.minSearchLength}},{key:"_resetFilter",value:function(){clearTimeout(this._searchTimer),this._search(null)}},{key:"_search",value:function(e){this._hasSearch=!0,this._list.option("searchValue",e)}},{key:"_focusFirstElement",value:function(){if(this._list){var e=this._activeListItems.first();this._list.option("focusedElement",(0,f.getPublicElement)(e)),this._list.scrollToItem(e)}}},{key:"_getPopupConfig",value:function(){var e=this;return(0,p.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getPopupConfig",this).call(this),{closeOnTargetScroll:!1,onShown:function(){e._isMentionActive=!0,e._hasSearch=!1,e._focusFirstElement()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null),e._isMentionActive=!1,e._search(null)},focusStateEnabled:!1})}},{key:"clean",value:function(){var e=this;Object.keys(this._mentions).forEach(function(t){e._mentions[t].template&&y.default.removeTemplate(t)})}},{key:"_popupPosition",get:function(){var e=this.getPosition(),t=this.quill.getBounds(e?e-1:e),n=t.left,i=t.top,o=t.height,a=(0,d.default)(this.quill.root).offset(),r=a.left,s=a.top,l=(0,g.Event)("positionEvent",{pageX:r+n,pageY:s+i});return{of:l,offset:{v:o},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}},{key:"_activeListItems",get:function(){return this._list.itemElements().filter(":not(."+S+")")}}]),t}(m.default);t.default=D},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){return Array.isArray(e)?e:Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(258),d=i(u),c=n(58),h=n(1),p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},f="list",g="list-item",_=function(){function e(){r(this,e),this.TextBlot=(0,c.getQuill)().import("blots/text"),this.BreakBlot=(0,c.getQuill)().import("blots/break")}return l(e,[{key:"setQuillInstance",value:function(e){this.quillInstance=e}},{key:"toHtml",value:function(){if(this.quillInstance)return this._isQuillEmpty()?"":this._convertHTML(this.quillInstance.scroll,0,this.quillInstance.getLength(),!0)}},{key:"_isQuillEmpty",value:function(){var e=this.quillInstance.getContents();return 1===e.length()&&this._isDeltaEmpty(e)}},{key:"_isDeltaEmpty",value:function(e){return e.reduce(function(e,t){var n=t.insert;return n.indexOf("\n")!==-1})}},{key:"_convertHTML",value:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((0,h.isFunction)(e.html))return e.html(t,n);if(e instanceof this.TextBlot)return this._escapeText(e.value().slice(t,t+n));if(e.children){if(e.statics.blotName===f)return this._convertList(e,t,n);var a=[];if(e.children.forEachAt(t,n,function(e,t,n){a.push(i._convertHTML(e,t,n))}),this._handleBreakLine(e.children,a),o||e.statics.blotName===g)return a.join("");var r=e.domNode,l=r.outerHTML,u=r.innerHTML,d=l.split(">"+u+"<"),c=s(d,2),p=c[0],_=c[1];return p+">"+a.join("")+"<"+_}return e.domNode.outerHTML}},{key:"_handleBreakLine",value:function(e,t){1===e.length&&e.head instanceof this.BreakBlot&&t.push("<br>")}},{key:"_convertList",value:function(e,t,n){var i=[],o=e.formats();return e.children.forEachAt(t,n,function(e,t,n){var a=e.formats();i.push({child:e,offset:t,length:n,indent:a.indent||0,type:o.list})}),this._getListMarkup(i,-1,[])}},{key:"_getListMarkup",value:function(e,t,n){if(0===e.length){var i=this._getListType(n.pop());return t<=0?"</li></"+i+">":this._processListMarkup([[],t-1,n],i)}var o=a(e),r=o[0],s=r.child,l=r.offset,u=r.length,d=r.indent,c=r.type,h=o.slice(1),p=this._getListType(c),f=[s,l,u],g=[h,d,n];if(d>t){n.push(c);var _=this._correctListMultiIndent(n,c,p,d-t-1);return _+this._processIndentListMarkup(f,g,p)}if(d===t)return this._processIndentListMarkup(f,g);var m=this._getListType(n.pop());return this._processListMarkup([e,t-1,n],m)}},{key:"_correctListMultiIndent",value:function(e,t,n,i){for(var o="";i;)o+="<"+n+">",e.push(t),i--;return o}},{key:"_processListMarkup",value:function(e,t){return"</li></"+t+">"+this._getListMarkup.apply(this,o(e))}},{key:"_processIndentListMarkup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/li",i=this._getListItemAttributes(e[0]);return"<"+n+"><li"+i+">"+this._convertHTML.apply(this,o(e))+this._getListMarkup.apply(this,o(t))}},{key:"_getListItemAttributes",value:function(e){var t=e.domNode;if(!t.hasAttributes())return"";for(var n=t.attributes,i=" ",o=0;o<n.length;o++){var a=n[o],r=a.name,s=a.value;"class"===r&&(s=this._removeIndentClass(s)),s.length&&(i+=r+'="'+s+'"')}return i.length>1?i:""}},{key:"_getListType",value:function(e){return"ordered"===e?"ol":"ul"}},{key:"_removeIndentClass",value:function(e){return e.replace(/ql-indent-\d/g,"").trim()}},{key:"_escapeText",value:function(e){return e.replace(/[&<>"']/g,function(e){return p[e]})}}]),e}();d.default.addConverter("delta",_),t.default=_},function(e,t,n){function i(e){var t=e[1];return t.match(/\S+\./)?"ordered":"bullet"}function o(e){var t=e.getAttribute("style");if(t){var n=t.replace(/\n+/g,"").match(/level(\d+)/);return n?n[1]-1:0}return!1}function a(e){var t=e[e.length-1];t.insert=t.insert.trim()}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){var t=e.import("delta");return function(e,n){var r=n.ops.slice(),s=r[0];s.insert=s.insert.replace(/^\s+/,"");var l=s.insert.match(/^(\S+)\s+/),u=l&&o(e);return l&&u!==!1?(s.insert=s.insert.substring(l[0].length,s.insert.length),a(r),r.push({insert:"\n",attributes:{list:i(l),indent:u}}),new t(r)):n}};t.default=r},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.import("delta"),n=function e(n,o,s){return(0,r.isObject)(o)?Object.keys(o).reduce(function(t,n){return e(t,n,o[n])},n):n.reduce(function(e,t){var n=t.attributes,r=t.insert;return n&&n[o]?e.push(t):e.insert(r,(0,a.extend)({},i({},o,s),n))},new t)};return function(e,t){var i={},o=e.style||{},a=o.textDecoration,r=a&&a.indexOf("line-through")!==-1,s=a&&a.indexOf("underline")!==-1;return r&&(i.strike=!0),s&&(i.underline=!0),(r||s)&&(t=n(t,i)),t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),r=n(1);t.default=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(0),u=n(44),d=i(u),c=n(121),h=i(c),p=n(12),f=n(11),g=n(6),_=n(10),m=n(25),v=i(m),y="dx-formdialog",w="dx-formdialog-form",x=function(){function e(t,n){o(this,e),this._editorInstance=t,this._popupUserConfig=n,this._renderPopup()}return a(e,[{key:"_renderPopup",value:function(){var e=this._editorInstance,t=(0,s.default)("<div>").addClass(y).appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,d.default,n)}},{key:"_escKeyHandler",value:function(){this._popup.hide()}},{key:"_addEscapeHandler",value:function(e){e.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}},{key:"_getPopupConfig",value:function(){var e=this;return(0,l.extend)({onInitialized:function(t){e._popup=t.component,e._popup.on("hiding",function(){e.deferred.reject()}),e._popup.on("shown",function(){e._form.focus()})},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,contentTemplate:function(t){var n=(0,s.default)("<div>").appendTo(t);e._renderForm(n,{onEditorEnterKey:function(t){var n=t.component,i=t.dataField;e._updateEditorValue(n,i),e.hide(n.option("formData"))},customizeItem:function(t){"simple"===t.itemType&&(t.editorOptions=(0,l.extend)(!0,{},t.editorOptions,{onInitialized:e._addEscapeHandler.bind(e)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,_.format)("OK"),onClick:function(){e.hide(e._form.option("formData"))}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,_.format)("Cancel"),onClick:function(){e._popup.hide()}}}]},this._popupUserConfig)}},{key:"_updateEditorValue",value:function(e,t){if(v.default.msie&&parseInt(v.default.version)<=11){var n=e.getEditor(t),i=(0,p.getActiveElement)();n.$element().find(i).length&&(0,f.resetActiveElement)()}}},{key:"_renderForm",value:function(e,t){e.addClass(w),this._form=this._editorInstance._createComponent(e,h.default,t)}},{key:"show",value:function(e){if(!this._popup.option("visible")){this.deferred=new g.Deferred;var t=(0,l.extend)({},e);return this._form.option(t),this._popup.show(),this.deferred.promise()}}},{key:"hide",value:function(e){this.deferred.resolve(e),this._popup.hide()}},{key:"popupOption",value:function(e,t){return this._popup.option.apply(this._popup,arguments)}}]),e}();t.default=x},function(e,t,n){var i=n(2),o=n(5),a=n(7).getWindow(),r=n(43),s=n(4),l=n(11),u=n(3).each,d=n(0).extend,c=n(74),h=n(10),p=n(16),f=n(9),g=n(8),_=n(244),m=n(31),v=n(20),y=n(142),w=n(93),x=n(139).ChildDefaultTemplate,b=n(27),C="dx-lookup",k="dx-lookup-search",I="dx-lookup-search-wrapper",S="dx-lookup-field",D="dx-lookup-arrow",T="dx-lookup-field-wrapper",E="dx-lookup-popup",O="dx-lookup-popup-wrapper",A="dx-lookup-popup-search",P="dx-lookup-popover-mode",B="dx-lookup-empty",M="dx-popover-flipped-vertical",F="dx-texteditor-input",R={popupWidth:"width",popupHeight:"height"},V="dx-list-item-selected",H=4,L=8,z=_.inherit({_supportedKeys:function(){return d(this.callBase(),{space:function(e){e.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return d(this.callBase(),{title:"",titleTemplate:"title",onTitleRendered:null,placeholder:h.format("Select"),searchPlaceholder:h.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,fullScreen:!1,showCancelButton:!0,showClearButton:!1,clearButtonText:h.format("Clear"),applyButtonText:h.format("OK"),popupWidth:function(){return.8*i(a).width()},popupHeight:function(){return.8*i(a).height()},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:h.format("dxList-pullingDownText"),pulledDownText:h.format("dxList-pulledDownText"),refreshingText:h.format("dxList-refreshingText"),pageLoadingText:h.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:h.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,showPopupTitle:!0,focusStateEnabled:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){var e=m.current();return this.callBase().concat([{device:function(){return!r.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!p.isSimulator()&&"desktop"===p.real().deviceType&&"generic"===e.platform},options:{usePopover:!0,popupHeight:"auto"}},{device:{platform:"ios",phone:!0},options:{fullScreen:!0}},{device:{platform:"ios",tablet:!0},options:{popupWidth:function(){return.4*Math.min(i(a).width(),i(a).height())},popupHeight:"auto",usePopover:!0,useInkRipple:!1}},{device:function(){return"desktop"===p.real().deviceType&&!p.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return m.isMaterial(e)},options:{usePopover:!1,closeOnOutsideClick:!0,popupWidth:function(){return i(this.element()).outerWidth()}.bind(this),popupHeight:function(){return this._getPopupHeight(H)}.bind(this),searchEnabled:!1,showCancelButton:!1,showPopupTitle:!1,position:{my:"left top",at:"left top",of:this.element()},_scrollToSelectedItemEnabled:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new x("group"),this._defaultTemplates.title=new x("title")},_initMarkup:function(){this.$element().addClass(C).toggleClass(P,this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find("."+T)},_dataSourceOptions:function(){return d(this.callBase(),{paginate:!0})},_fireContentReadyAction:s.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var e=this._createAction(function(){this._toggleOpenState()}.bind(this));this._$field=i("<div>").addClass(S),o.on(this._$field,g.addNamespace(v.name,this.NAME),function(t){e({event:t})});var t=i("<div>").addClass(D);this._$fieldWrapper=i("<div>").addClass(T).append(this._$field).append(t).appendTo(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_getInputContainer:function(){return this._$fieldWrapper},_renderInkRipple:function(){this._inkRipple=c.render()},_toggleOpenState:function(){this.callBase(),!this.option("fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&this._setPopupPosition()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");return e&&this.option("fieldTemplate")?void this._renderFieldTemplate(e):(this._$field.text(this.option("displayValue")||this.option("placeholder")),void this.$element().toggleClass(B,!this.option("selectedItem")))},_renderFieldTemplate:function(e){this._$field.empty();var t=this._fieldRenderData();e.render({model:t,container:l.getPublicElement(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=i(a))},_scrollToSelectedItem:function(){var e=this._list.option("selectedIndex"),t=this._list.option("items"),n=t.length;0!==n&&(this._list.option("grouped")?this._list.scrollToItem({group:n-1,item:t[n-1].items.length-1}):this._list.scrollToItem(n-1),this._list.scrollToItem(e));
},_setPopupPosition:function(){var e=this._list.option("selectedIndex"),t=this._popup._$wrapper.hasClass(M);if(e!==-1&&!t){var n=i(this._list.element()).find("."+V);n.offset().top<0&&this._scrollToSelectedItem();var o=(n.height()-i(this.element()).height())/2,a=i(this._popup.content()).parent(),r=n.offset().top-a.offset().top,s=i(this.element()).offset().top,l=o;s>r?l+=r:this._scrollToSelectedItem();var u=b.locate(a);b.move(a,{top:u.top-l})}},_getPopupHeight:function(e){return this._list&&this._list.itemElements()?this._list.itemElements().height()*e+2*L:"auto"},_renderPopup:function(){this.option("usePopover")&&!this.option("fullScreen")?this._renderPopover():this.callBase(),this._$popup.addClass(E),this._popup._wrapper().addClass(O)},_popupOptionMap:function(e){return R[e]||e},_renderPopover:function(){this._popup=this._createComponent(this._$popup,y,d(this._popupConfig(),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,closeOnTargetScroll:!0,width:this._isInitialOptionValue("popupWidth")?function(){return this.$element().outerWidth()}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._setPopupContentId(this._popup.$content()),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&b.resetPosition(i(this._popup.content()).parent())},_preventFocusOnPopup:s.noop,_popupConfig:function(){var e=d(this.callBase(),{showTitle:this.option("showPopupTitle"),title:this.option("title"),titleTemplate:this._getTemplateByOption("titleTemplate"),onTitleRendered:this.option("onTitleRendered"),toolbarItems:this._getPopupToolbarItems(),fullScreen:this.option("fullScreen"),shading:this.option("shading"),closeOnTargetScroll:!1,closeOnOutsideClick:this.option("closeOnOutsideClick"),onPositioned:null});return delete e.animation,delete e.position,e.maxHeight=function(){return i(a).height()},u(["position","animation","popupWidth","popupHeight"],function(t,n){void 0!==this.option(n)&&(e[this._popupOptionMap(n)]=this.option(n))}.bind(this)),e},_getPopupToolbarItems:function(){var e="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],t=this._getCancelButtonConfig();t&&e.push(t);var n=this._getClearButtonConfig();return n&&e.push(n),this._applyButtonsLocation(e)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{onInitialized:function(e){e.component.registerKeyHandler("escape",this.close.bind(this))}.bind(this),text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(){this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updatePopupHeight()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("popupWidth")&&this.option("popupWidth",this.$element().width()),this.callBase()},_updatePopupDimensions:function(){this._updatePopupHeight()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch()},_attachSearchChildProcessor:function(e){this._listKeyboardProcessor=this._listKeyboardProcessor||e._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._listKeyboardProcessor)},_detachSearchChildProcessor:function(){this._setListOption("_keyboardProcessor",null)},_renderSearch:function(){var e=this.option("searchEnabled");if(this._toggleSearchClass(e),e){var t=this._$searchWrapper=i("<div>").addClass(I),n=this._$searchBox=i("<div>").addClass(k).appendTo(t),o=p.current(),a=o.android&&o.version[0]>=5?"text":"search";this._searchBox=this._createComponent(n,w,{onDisposing:function(){this._detachSearchChildProcessor()}.bind(this),onFocusIn:this._searchFocusHandler.bind(this),onFocusOut:this._searchBlurHandler.bind(this),mode:a,showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:this._searchHandler.bind(this)}),this._registerSearchKeyHandlers(),t.insertBefore(this._$list),this._setSearchPlaceholder()}},_searchFocusHandler:function(e){this._attachSearchChildProcessor(e.component)},_searchBlurHandler:function(){this._detachSearchChildProcessor()},_removeSearch:function(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler:function(e){var t=i(this._list.option("focusedElement"));t.length&&(e.preventDefault(),this._selectListItem(e.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",s.noop),this._searchBox.registerKeyHandler("home",s.noop)},_toggleSearchClass:function(e){this._popup&&this._popup._wrapper().toggleClass(A,e)},_setSearchPlaceholder:function(){if(this._$searchBox){var e=this.option("minSearchLength"),t=this.option("searchPlaceholder");e&&t===h.format("Search")&&(t=h.getFormatter("dxLookup-searchPlaceholder")(e)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:s.noop,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",function(){this.close()}.bind(this))},_listConfig:function(){return d(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this.option("onScroll"),onPullRefresh:this.option("onPullRefresh"),onPageLoading:this.option("onPageLoading"),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),_keyboardProcessor:this._listKeyboardProcessor,indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):s.noop},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&(this.option("searchEnabled")?this._searchBox.focus():o.trigger(this._$list,"focus"))},_attachChildKeyboardEvents:s.noop,_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event),this._selectListItem(e.itemData,e.event.currentTarget)},_selectListItem:function(e,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(e){this._saveValueChangeEvent(e.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always(function(){this._refreshSelected()}.bind(this))},_renderPlaceholder:function(){0!==this.$element().find("."+F).length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),this._$searchBox=null,delete this._inkRipple,this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"dataSource":this.callBase.apply(this,arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"title":case"titleTemplate":case"onTitleRendered":case"shading":case"animation":case"position":case"closeOnOutsideClick":this._setPopupOption(t);break;case"fullScreen":case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":this.callBase.apply(this,arguments);break;case"popupWidth":this._setPopupOption("popupWidth","auto"===n?this.initialOption("popupWidth"):n);break;case"popupHeight":this._setPopupOption("popupHeight","auto"===n?this.initialOption("popupHeight"):n);break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"onScroll":case"onPullRefresh":case"onPageLoading":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(t);break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;default:this.callBase.apply(this,arguments)}},focus:function(){this.option("opened")?this._setFocusPolicy():o.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});f("dxLookup",z),e.exports=z},function(e,t,n){var i=n(2),o=n(5),a=n(67),r=n(6).fromPromise,s=n(9),l=n(19),u=n(16),d=n(17),c=n(33),h=n(3).each,p=n(0).extend,f=n(14).inArray,g=n(1).isNumeric,_=n(8),m=n(23),v=n(14).wrapToArray,y={googleStatic:n(600),google:n(601),bing:n(602)},w="dx-map",x="dx-map-container",b="dx-map-shield",C="dx-native-click",k=d.inherit({_getDefaultOptions:function(){return p(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,key:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass(w).addClass(C),this._lastAsyncAction=a.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_checkOption:function(e){var t=this.option(e);if("markers"===e&&!Array.isArray(t))throw l.Error("E1022");if("routes"===e&&!Array.isArray(t))throw l.Error("E1023")},_initContainer:function(){this._$container=i("<div>").addClass(x),this.$element().append(this._$container)},_grabEvents:function(){var e=_.addNamespace(m.down,this.NAME);o.on(this.$element(),e,this._cancelEvent.bind(this))},_cancelEvent:function(e){var t=this._provider&&this._provider.isEventsCanceled(e)&&!this.option("disabled");t&&e.stopPropagation()},_saveRendered:function(e){var t=this.option(e);this._rendered[e]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(y[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var e;this.option("disabled")?(e=i("<div>").addClass(b),this.$element().append(e)):(e=this.$element().find("."+b),e.remove())},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=a.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(e){var t=e.name,n=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(e);break;case"width":case"height":this.callBase(e),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"key":l.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+c.titleize(t),n?n.removed:i,n?n.added:this._rendered[t]).then(function(e){n&&n.resolve(e)});break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(e){var t=[].slice.call(arguments).slice(1),n=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||n?a.resolve():this._provider[e].apply(this._provider,t).then(function(e){e=v(e);var t=e[0];return t&&this._triggerReadyAction(),e[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(e,t){this._setOptionSilent(e,t)},addMarker:function(e){return this._addFunction("markers",e)},removeMarker:function(e){return this._removeFunction("markers",e)},addRoute:function(e){return this._addFunction("routes",e)},removeRoute:function(e){return this._removeFunction("routes",e)},_addFunction:function(e,t){var n=this.option(e),i=v(t);return n.push.apply(n,i),this._partialArrayOptionChange(e,n,i,[])},_removeFunction:function(e,t){var n=this.option(e),i=v(t);return h(i,function(t,o){var a=g(o)?o:f(o,n);if(a===-1)throw l.log("E1021",c.titleize(e.substring(0,e.length-1)),o);var r=n.splice(a,1)[0];i.splice(t,1,r)}),this._partialArrayOptionChange(e,n,[],i)},_partialArrayOptionChange:function(e,t,n,i){return r(new a(function(o){this._optionChangeBag={resolve:o,added:n,removed:i},this.option(e,t)}.bind(this)).then(function(e){return e&&1===e.length?e[0]:e}),this)}});s("dxMap",k),e.exports=k},function(e,t,n){var i=n(3).each,o=n(5),a=n(67),r=n(329),s=n(86),l=n(20),u="https://maps.google.com/maps/api/staticmap?",d=r.inherit({_locationToString:function(e){var t=this._getLatLng(e);return t?t.lat+","+t.lng:e.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return a.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return a.resolve()},addMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireMarkerAddedAction({options:n})}),n})},removeMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireMarkerRemovedAction({options:n})}),n})},adjustViewport:function(){return a.resolve()},addRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireRouteAddedAction({options:n})}),n})},removeRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireRouteRemovedAction({options:n})}),n})},clean:function(){return this._$container.css("backgroundImage","none"),o.off(this._$container,this._addEventNamespace(l.name)),a.resolve()},mapRendered:function(){return!0},_updateMap:function(){var e=this._keyOption("googleStatic"),t=this._$container,n=["sensor=false","size="+Math.round(t.width())+"x"+Math.round(t.height()),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];n.push.apply(n,this._routeSubstrings()),e&&n.push("key="+e);var i=u+n.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),a.resolve(!0)},_markersSubstring:function(){var e=this,t=[],n=this._option("markerIconSrc");return n&&t.push("icon:"+n),i(this._option("markers"),function(n,i){t.push(e._locationToString(i.location))}),"markers="+t.join("|")},_routeSubstrings:function(){var e=this,t=[];return i(this._option("routes"),function(n,o){var a=new s(o.color||e._defaultRouteColor()).toHex().replace("#","0x"),r=Math.round(255*(o.opacity||e._defaultRouteOpacity())).toString(16),l=o.weight||e._defaultRouteWeight(),u=[];i(o.locations,function(t,n){u.push(e._locationToString(n))}),t.push("path=color:"+a+r+"|weight:"+l+"|"+u.join("|"))}),t},_attachClickEvent:function(){var e=this,t=this._addEventNamespace(l.name);o.off(this._$container,t),o.on(this._$container,t,function(t){e._fireClickAction({event:t})})}});e.exports=d},function(e,t,n){var i,o,a=n(2),r=n(7).getWindow(),s=n(4).noop,l=n(16),u=n(67),d=n(0).extend,c=n(3).map,h=n(330),p=n(19),f=n(86),g=n(62),_=n(1).isDefined,m="_googleScriptReady",v="https://maps.googleapis.com/maps/api/js?callback="+m,y="gm-style-iw",w=function(){i=function(e){this._position=e.position,this._offset=e.offset,this._$overlayContainer=a("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(e.html),this.setMap(e.map)},i.prototype=new google.maps.OverlayView,i.prototype.onAdd=function(){var e=a(this.getPanes().overlayMouseTarget);e.append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(e){google.maps.event.trigger(this,"click"),e.preventDefault()}.bind(this)),this.draw()},i.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},i.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:e.x+this._offset.left,top:e.y+this._offset.top,display:"block"})}},x=function(){return r.google&&r.google.maps},b=h.inherit({_mapType:function(e){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[e]||t.hybrid},_movementMode:function(e){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[e]||t.driving},_resolveLocation:function(e){return new u(function(t){var n=this._getLatLng(e);n?t(new google.maps.LatLng(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new u(function(t){if(!_(e))return void t(new google.maps.LatLng(0,0));var n=new google.maps.Geocoder;n.geocode({address:e},function(e,n){n===google.maps.GeocoderStatus.OK?t(e[0].geometry.location):(p.log("W1006",n),t(new google.maps.LatLng(0,0)))})})},_normalizeLocation:function(e){return{lat:e.lat(),lng:e.lng()}},_normalizeLocationRect:function(e){return{northEast:this._normalizeLocation(e.getNorthEast()),southWest:this._normalizeLocation(e.getSouthWest())}},_loadImpl:function(){return new u(function(e){x()?e():(o||(o=this._loadMapScript()),o.then(function(){return x()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){w()})},_loadMapScript:function(){return new u(function(e){var t=this._keyOption("google");r[m]=e,g.sendRequest({url:v+(t?"&key="+t:""),dataType:"script"})}.bind(this)).then(function(){try{delete r[m]}catch(e){r[m]=void 0}})},_init:function(){return new u(function(e){this._resolveLocation(this._option("center")).then(function(t){var n=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:t,disableDefaultUI:!n});var i=google.maps.event.addListener(this._map,"idle",function(){e(i)})}.bind(this))}.bind(this)).then(function(e){google.maps.event.removeListener(e)})},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){this._fireClickAction({location:this._normalizeLocation(e.latLng)})},updateDimensions:function(){var e=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",e),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),u.resolve()},updateBounds:function(){return u.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new google.maps.LatLngBounds;t.extend(e[0]),t.extend(e[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setCenter(e),this._option("center",this._normalizeLocation(e))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),u.resolve()},updateControls:function(){var e=this._option("controls");return this._map.setOptions({disableDefaultUI:!e}),u.resolve()},isEventsCanceled:function(e){var t=this._map&&this._map.get("gestureHandling"),n=a(e.target).closest("."+y).length>0;return!(n||"desktop"!==l.real().deviceType&&"cooperative"===t)&&this.callBase()},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n;n=e.html?new i({map:this._map,position:t,html:e.html,offset:d({top:0,left:0},e.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:e.iconSrc||this._option("markerIconSrc")});var o,a=this._renderTooltip(n,e.tooltip);if(e.onClick||e.tooltip){var r=this._mapWidget._createAction(e.onClick||s),l=this._normalizeLocation(t);o=google.maps.event.addListener(n,"click",function(){r({location:l}),a&&a.open(this._map,n)}.bind(this))}return{location:t,marker:n,listener:o}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new google.maps.InfoWindow({content:t.text});return t.visible&&n.open(this._map,e),n}},_destroyMarker:function(e){e.marker.setMap(null),e.listener&&google.maps.event.removeListener(e.listener)},_renderRoute:function(e){return u.all(c(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new u(function(n){var i=t.shift(),o=t.pop(),a=c(t,function(e){return{location:e,stopover:!0}}),r={origin:i,destination:o,waypoints:a,optimizeWaypoints:!0,travelMode:this._movementMode(e.mode)};(new google.maps.DirectionsService).route(r,function(t,i){if(i===google.maps.DirectionsStatus.OK){var o=new f(e.color||this._defaultRouteColor()).toHex(),a={directions:t,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:e.weight||this._defaultRouteWeight(),strokeOpacity:e.opacity||this._defaultRouteOpacity(),strokeColor:o}},r=new google.maps.DirectionsRenderer(a),s=t.routes[0].bounds;n({instance:r,northEast:s.getNorthEast(),southWest:s.getSouthWest()})}else p.log("W1006",i),n({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();e<t?this._map.setZoom(e):this._option("zoom",t),delete this._preventZoomChangeEvent}return u.resolve()},_extendBounds:function(e){this._bounds?this._bounds.extend(e):(this._bounds=new google.maps.LatLngBounds,this._bounds.extend(e))},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),u.resolve()}});e.exports=b},function(e,t,n){var i,o=n(4).noop,a=n(7).getWindow(),r=n(67),s=n(0).extend,l=n(19),u=n(3),d=n(330),c=n(86),h=n(62),p=n(1).isDefined,f="_bingScriptReady",g="https://www.bing.com/api/maps/mapcontrol?callback="+f,_=13,m="AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",v=1e-16,y=function(){return a.Microsoft&&a.Microsoft.Maps},w=d.inherit({_mapType:function(e){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[e]||t.road},_movementMode:function(e){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[e]||t.driving},_resolveLocation:function(e){return new r(function(t){var n=this._getLatLng(e);n?t(new Microsoft.Maps.Location(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new r(function(t){if(!p(e))return void t(new Microsoft.Maps.Location(0,0));var n=new Microsoft.Maps.Search.SearchManager(this._map),i={where:e,count:1,callback:function(e){var n=e.results[0];if(n){var i=e.results[0].location;t(new Microsoft.Maps.Location(i.latitude,i.longitude))}else t(new Microsoft.Maps.Location(0,0))}};n.geocode(i)}.bind(this))},_normalizeLocation:function(e){return{lat:e.latitude,lng:e.longitude}},_normalizeLocationRect:function(e){var t=this._normalizeLocation(e.getNorthwest()),n=this._normalizeLocation(e.getSoutheast());return{northEast:{lat:t.lat,lng:n.lng},southWest:{lat:n.lat,lng:t.lng}}},_loadImpl:function(){return new r(function(e){y()?e():(i||(i=this._loadMapScript()),i.then(function(){return y()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){return r.all([new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:e})}),new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:e})})])})},_loadMapScript:function(){return new r(function(e){a[f]=e,h.sendRequest({url:g,dataType:"script"})}).then(function(){try{delete a[f]}catch(e){a[f]=void 0}})},_init:function(){return this._createMap(),r.resolve()},_createMap:function(){var e=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||m,zoom:this._option("zoom"),showDashboard:e,showMapTypeSelector:e,showScalebar:e})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){"map"===e.targetType&&this._fireClickAction({location:this._normalizeLocation(e.location)})},updateDimensions:function(){var e=this._$container;return this._map.setOptions({width:e.width(),height:e.height()}),r.resolve()},updateMapType:function(){var e=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(e),labelOverlay:"satellite"===e?t.hidden:t.visible}),r.resolve()},updateBounds:function(){return r.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new Microsoft.Maps.LocationRect.fromLocations(e[0],e[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setView({animate:!1,center:e})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),r.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n={icon:e.iconSrc||this._option("markerIconSrc")};if(e.html){s(n,{htmlContent:e.html,width:null,height:null});var i=e.htmlOffset;i&&(n.anchor=new Microsoft.Maps.Point((-i.left),(-i.top)))}var a=new Microsoft.Maps.Pushpin(t,n);this._map.entities.push(a);var r,l=this._renderTooltip(t,e.tooltip);if(e.onClick||e.tooltip){var u=this._mapWidget._createAction(e.onClick||o),d=this._normalizeLocation(t);r=Microsoft.Maps.Events.addHandler(a,"click",function(){u({location:d}),l&&l.setOptions({visible:!0})})}return{location:t,marker:a,infobox:l,handler:r}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new Microsoft.Maps.Infobox(e,{description:t.text,offset:new Microsoft.Maps.Point(0,_),visible:t.visible});return n.setMap(this._map),n}},_destroyMarker:function(e){this._map.entities.remove(e.marker),e.infobox&&e.infobox.setMap(null),e.handler&&Microsoft.Maps.Events.removeHandler(e.handler)},_renderRoute:function(e){return r.all(u.map(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new r(function(n){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),o=new c(e.color||this._defaultRouteColor()).toHex(),a=new Microsoft.Maps.Color.fromHex(o);a.a=255*(e.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(e.mode),routeDraggable:!1}),u.each(t,function(e,t){var n=new Microsoft.Maps.Directions.Waypoint({location:t});i.addWaypoint(n)});var r=[];r.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t=e.routeSummary[0];n({instance:i,northEast:t.northEast,southWest:t.southWest})})),r.push(Microsoft.Maps.Events.addHandler(i,"directionsError",function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t="RouteResponseCode: "+e.responseCode+" - "+e.message;l.log("W1006",t),n({instance:i})})),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:e});var n=this._map.getZoom();
e<n?this._map.setView({animate:!1,zoom:e}):this._option("zoom",n),delete this._preventZoomChangeEvent}return r.resolve()},_extendBounds:function(e){this._bounds?this._bounds=new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),e):this._bounds=new Microsoft.Maps.LocationRect(e,v,v)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),r.resolve()}});e.exports=w},function(e,t,n){var i=n(9),o=n(0).extend,a=n(604),r=n(200),s="dx-navbar",l="dx-item-content",u="dx-nav-item",d="dx-nav-item-content",c=r.inherit({_getDefaultOptions:function(){return o(this.callBase(),{scrollingEnabled:!1})},_render:function(){this.callBase(),this.$element().addClass(s)},_postprocessRenderItem:function(e){this.callBase(e);var t=e.itemElement,n=e.itemData;t.addClass(u),t.find("."+l).addClass(d),n.icon||t.addClass("dx-navbar-text-item")}});c.ItemClass=a,i("dxNavBar",c),e.exports=c},function(e,t,n){var i=n(322),o="dx-tabs-item-badge",a="dx-navbar-item-badge",r=i.inherit({_renderBadge:function(e){this.callBase(e),this._$element.children("."+o).removeClass(o).addClass(a)}});e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(16),p=i(h),f=n(4),g=n(74),_=i(g),m=n(9),v=i(m),y=n(55),w=i(y),x=n(250),b=i(x),C=n(48),k=i(C),I="dx-radiobutton-checked",S="dx-radiobutton",D="dx-radiobutton-icon-checked",T="dx-radiobutton-icon",E="dx-radiobutton-icon-dot",O="dx-radiogroup-horizontal",A="dx-radiogroup-vertical",P="dx-radio-value-container",B="dx-radiogroup",M=100,F=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_focusTarget",value:function(){return this.$element().parent()}},{key:"_nullValueSelectionSupported",value:function(){return!0}},{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,c.extend)(e,b.default._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}},{key:"_initMarkup",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),(0,f.deferRender)(function(){e.itemElements().addClass(S)})}},{key:"_keyboardEventBindingTarget",value:function(){return this._focusTarget()}},{key:"_postprocessRenderItem",value:function(e){var n=e.itemData.html,i=e.itemElement;if(!n){var o=(0,d.default)("<div>").addClass(T);(0,d.default)("<div>").addClass(E).appendTo(o);var a=(0,d.default)("<div>").append(o).addClass(P);(0,d.default)(i).prepend(a)}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_postprocessRenderItem",this).call(this,e)}},{key:"_processSelectableItem",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_processSelectableItem",this).call(this,e,n),e.toggleClass(I,n).find("."+T).first().toggleClass(D,n),this.setAria("checked",n,e)}},{key:"_refreshContent",value:function(){this._prepareContent(),this._renderContent()}},{key:"_supportedKeys",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this);return(0,c.extend)({},e,{enter:function(t){return t.preventDefault(),e.enter.apply(this,arguments)},space:function(t){return t.preventDefault(),e.space.apply(this,arguments)}})}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}}]),t}(w.default),R=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_clean",value:function(){delete this._inkRipple,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_defaultOptionsRules",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this);return e.concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:function(){return"desktop"===p.default.real().deviceType&&!p.default.isSimulator()},options:{focusStateEnabled:!0}}])}},{key:"_fireContentReadyAction",value:function(e){e&&l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_fireContentReadyAction",this).call(this)}},{key:"_focusTarget",value:function(){return this.$element()}},{key:"_getAriaTarget",value:function(){return this.$element()}},{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,c.extend)(e,(0,c.extend)(b.default._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical",useInkRipple:!1}))}},{key:"_getItemValue",value:function(e){return this._valueGetter?this._valueGetter(e):e.text}},{key:"_getSubmitElement",value:function(){return this._$submitElement}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._activeStateUnit="."+S,this._feedbackHideTimeout=M,this._initDataExpressions()}},{key:"_initMarkup",value:function(){this.$element().addClass(B),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this.option("useInkRipple")&&this._renderInkRipple(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_itemClickHandler",value:function(e){var t=e.itemElement,n=e.event,i=e.itemData;if(this.itemElements().is(t)){var o=this._getItemValue(i);o!==this.option("value")&&(this._saveValueChangeEvent(n),this.option("value",o))}}},{key:"_optionChanged",value:function(e){var n=e.name,i=e.value;switch(this._dataExpressionOptionChanged(e),n){case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(n,i);break;case"disabled":l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e),this._setCollectionWidgetOption(n,i);break;case"dataSource":this._setCollectionWidgetOption("dataSource",this._dataSource);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setCollectionWidgetOption("selectedItemKeys",[i]),this._setSubmitValue(i),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e);break;case"items":case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_render",value:function(){this._renderLayout(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._updateItemsSize()}},{key:"_renderInkRipple",value:function(){this._inkRipple=_.default.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,isCentered:!0})}},{key:"_renderLayout",value:function(){var e=this.option("layout"),t=this.$element();t.toggleClass(A,"vertical"===e),t.toggleClass(O,"horizontal"===e)}},{key:"_renderRadios",value:function(){var e=this,t=(0,d.default)("<div>").appendTo(this.$element());this._radios=this._createComponent(t,F,{displayExpr:this.option("displayExpr"),accessKey:this.option("accessKey"),dataSource:this._dataSource,focusStateEnabled:this.option("focusStateEnabled"),itemTemplate:this.option("itemTemplate"),keyExpr:this._getCollectionKeyExpr(),noDataText:"",onContentReady:function(){return e._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:[this.option("value")],tabIndex:this.option("tabIndex")})}},{key:"_renderSubmitElement",value:function(){this._$submitElement=(0,d.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}},{key:"_setOptionsByReference",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setOptionsByReference",this).call(this),(0,c.extend)(this._optionsByReference,{value:!0})}},{key:"_setSubmitValue",value:function(e){e=e||this.option("value");var t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)}},{key:"_setCollectionWidgetOption",value:function(){this._setWidgetOption("_radios",arguments)}},{key:"_toggleActiveState",value:function(e,n,i){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_toggleActiveState",this).call(this,e,n,i),this._inkRipple){var o={element:e.find("."+T),event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_updateItemsSize",value:function(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var e=this.option("items").length;this.itemElements().css("height",100/e+"%")}}},{key:"focus",value:function(){this._radios&&this._radios.focus()}},{key:"itemElements",value:function(){return this._radios.itemElements()}}]),t}(k.default);R.include(b.default),(0,v.default)("dxRadioGroup",R),e.exports=R},function(e,t,n){var i=n(2),o=n(5),a=n(332),r=n(333),s=n(9),l=n(0).extend,u=n(4).applyServerDecimalSeparator,d=n(8),c=n(10),h="dx-rangeslider",p=h+"-start-handle",f=h+"-end-handle",g=a.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){t.option("start")===t.option("end")&&(t._capturedHandle=n,e.target=t._capturedHandle,o.trigger(t._capturedHandle,"focus"))},a=function(n,o,a){var r=i(n.target).hasClass(p),s=r?"start":"end",l=t.option(s);o=t._valueStep(o),l+=a*(e?-o:o),t.option(s,l)},r=function(i,o){n(i,e?t._$handleStart:t._$handleEnd),a(i,o,1)},s=function(i,o){n(i,e?t._$handleEnd:t._$handleStart),a(i,o,-1)};return l(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),r(e,this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),r(e,this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(p),n=t?"start":"end",o=t?"min":"start",a=this.option(o);this.option(n,a)},end:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(p),n=t?"start":"end",o=t?"end":"max",a=this.option(o);this.option(n,a)}})},_getDefaultOptions:function(){return l(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var e=this.$element();this._$submitStartElement=i("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(e),this._$submitEndElement=i("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(e)},_initOptions:function(e){this.callBase(e);var t=this.initialOption("value"),n=this.option("value");n[0]===t[0]&&n[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:n[0],end:n[1]})},_initMarkup:function(){this.$element().addClass(h),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(p),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass(f),this._updateHandleAriaLabels()},_startHandler:function(e){var t=e.event,n=this._$range,i=n.width(),o=d.eventData(t).x-this._$bar.offset().left,a=n.position().left,r=n.position().left+i,s=this.option("rtlEnabled"),l=(s?-1:1)*((a+r)/2-o)>0;this._capturedHandle=l?this._$handleStart:this._$handleEnd,this.callBase(e)},_updateHandleAriaLabels:function(){this.setAria("label",c.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",c.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(e){var t=this.option("rtlEnabled"),n=t?-1:1,i=this.option("max"),a=this.option("min"),s=this._startOffset+n*e.event.offset/this._swipePixelRatio();s=s.toPrecision(12);var l=s*(i-a)+a;this._updateSelectedRangePosition(s,s),r.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(s);var u,d=this.option("start"),c=this.option("end");d===c&&(u=l<d?this._$handleStart:this._$handleEnd,o.trigger(u,"focus"),u&&u!==this._capturedHandle&&(this._updateSelectedRangePosition((d-a)/(i-a),(c-a)/(i-a)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(u,!0),this._capturedHandle=u),this._updateSelectedRangePosition(s,s),this._changeValueOnSwipe(s))},_updateSelectedRangePosition:function(e,t){var n=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&n||this._capturedHandle===this._$handleEnd&&!n,o=i?"right":"left";n^i?this._$range.css(o,100-100*t+"%"):this._$range.css(o,100*e+"%")},_setValueOnSwipe:function(e){var t=this._capturedHandle===this._$handleStart?"start":"end",n=this.option("start"),i=this.option("end"),o=this.option("max"),a=this.option("min");n=Math.min(Math.max(n,a),o),i=Math.min(Math.max(i,a),o),"start"===t?n=e>i?i:e:i=e<n?n:e,this.option("value",[n,i])},_renderValue:function(){var e=this.option("start"),t=this.option("end"),n=this.option("min"),i=this.option("max"),o=this.option("rtlEnabled");e=Math.max(n,Math.min(e,i)),t=Math.max(e,Math.min(t,i)),this._setOptionSilent("start",e),this._setOptionSilent("end",t),this._setOptionSilent("value",[e,t]),this._$submitStartElement.val(u(e)),this._$submitEndElement.val(u(t));var a=i===n?0:(e-n)/(i-n),s=i===n?0:(t-n)/(i-n),l=parseFloat((100*a).toPrecision(12))+"%",d=parseFloat((100*(1-s)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:o?l:d,left:o?d:l}),r.getInstance(this._$handleStart).option("value",e),r.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(e,t){r.getInstance(this._$handleStart)[e](t),r.getInstance(this._$handleEnd)[e](t)},_setValueOption:function(){var e=this.option("start"),t=this.option("end");this.option("value",[e,t])},_optionChanged:function(e){switch(e.name){case"value":if(e.value[0]===e.previousValue[0]&&e.value[1]===e.previousValue[1])break;this._setOptionSilent("start",e.value[0]),this._setOptionSilent("end",e.value[1]),this._renderValue();var t=this.option("start"),n=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:n,value:[t,n],event:this._valueChangeEventInstance}),this.validationRequest.fire({value:[t,n],editor:this}),this._saveValueChangeEvent(void 0);break;case"start":case"end":this._setValueOption();break;case"startName":this._$submitStartElement.attr("name",e.value);break;case"endName":this._$submitEndElement.attr("name",e.value);break;case"name":break;default:this.callBase(e)}}});s("dxRangeSlider",g),e.exports=g},function(e,t,n){var i=n(2),o=n(5),a=n(11),r=n(51),s=n(16),l=n(0).extend,u=n(4).applyServerDecimalSeparator,d=n(9),c=n(256),h=n(8),p=n(23),f=n(133),g=n(333),_=n(74),m=n(20),v=n(160),y=n(31),w=n(6).Deferred,x="dx-slider",b="dx-slider-wrapper",C=".dx-slider-handle",k="dx-slider-bar",I="dx-slider-range",S="dx-slider-range-visible",D="dx-slider-label",T="dx-slider-label-position-",E="dx-slider-tooltip-position-",O="dx-invalid-message-visible",A="Validation",P=c.inherit({_activeStateUnit:C,_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){e=t._valueStep(e);var i=t.option("step"),o=t.option("value"),a=(o-t.option("min"))%i,r=n?o-e+(a?i-a:0):o+e-a,s=t.option("min"),l=t.option("max");return r<s?r=s:r>l&&(r=l),r},i=function(i){t.option("value",n(i,e))},o=function(i){t.option("value",n(i,!e))};return l(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("min");this.option("value",t)},end:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("max");this.option("value",t)}})},_getDefaultOptions:function(){return l(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(e){return e},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(e){return e}},keyStep:1,useInkRipple:!1,validationMessageOffset:y.isMaterial()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0})},_toggleValidationMessage:function(e){this.option("isValid")||this.$element().toggleClass(O,e)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=y.current();return y.isMaterial(e)},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass(x),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var e=this.NAME+A,t=h.addNamespace("focusin",e),n=h.addNamespace("focusout",e),i=this._focusTarget();o.on(i,t,this._toggleValidationMessage.bind(this,!0)),o.on(i,n,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var e=this._focusTarget();this._toggleValidationMessage(!1),o.off(e,this.NAME+A)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=_.render({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass(b),this._createComponent(this._$wrapper,v,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass(k)},_renderRange:function(){this.callBase(),this._$range.addClass(I),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass(S,Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(e,t){var n=t||i("<div>").appendTo(this._$range),o=this.option("tooltip.format"),a=this.option("tooltip.enabled"),r=this.option("tooltip.position");return this.$element().toggleClass(E+"bottom",a&&"bottom"===r).toggleClass(E+"top",a&&"top"===r),this._createComponent(n,g,{value:e,tooltipEnabled:a,tooltipPosition:r,tooltipFormat:o,tooltipShowMode:this.option("tooltip.showMode"),tooltipFitIn:this.$element()}),n},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_hoverStartHandler:function(e){g.getInstance(i(e.currentTarget)).updateTooltip()},_toggleActiveState:function(e,t){this.callBase(e,t),t&&g.getInstance(e).updateTooltip(),this._renderInkWave(e,null,!!t,1)},_toggleFocusClass:function(e,t){if(this.callBase(e,t),!this._disposed){var n=i(t||this._focusTarget());this._renderInkWave(n,null,e,0)}},_renderLabels:function(){if(this.$element().removeClass(T+"bottom").removeClass(T+"top"),this.option("label.visible")){var e=this.option("min"),t=this.option("max"),n=this.option("label.position"),o=this.option("label.format");this._$minLabel||(this._$minLabel=i("<div>").addClass(D).appendTo(this._$wrapper)),this._$minLabel.html(r.format(e,o)),this._$maxLabel||(this._$maxLabel=i("<div>").addClass(D).appendTo(this._$wrapper)),this._$maxLabel.html(r.format(t,o)),this.$element().addClass(T+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var e=h.addNamespace(p.down,this.NAME),t=h.addNamespace(m.name,this.NAME),n=this._createAction(this._startHandler.bind(this)),i=this.$element();o.off(i,e),o.on(i,e,function(e){h.isMouseEvent(e)&&n({event:e})}),o.off(i,t),o.on(i,t,function(e){var t=this._activeHandle();t&&(o.trigger(t,"focusin"),o.trigger(t,"focus")),n({event:e})}.bind(this))},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(e){var t,n,i=this.option("rtlEnabled");h.isTouchEvent(e.event)&&this._createAction(this._startHandler.bind(this))({event:e.event}),this._feedbackDeferred=new w,f.lock(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio,t=this._startOffset*this._swipePixelRatio(),n=(1-this._startOffset)*this._swipePixelRatio(),e.event.maxLeftOffset=i?n:t,e.event.maxRightOffset=i?t:n,this._itemWidthRatio=this.$element().width()/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(e){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1;delete this._needPreventAnimation,this._changeValueOnSwipe(this._startOffset+t*e.event.targetOffset/this._swipePixelRatio()),delete this._startOffset,this._renderValue()},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(e){this._saveValueChangeEvent(e),this._updateHandlePosition(e)},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=Math.min(this._startOffset+t*e.event.offset/this._swipePixelRatio(),1);this._$range.width(100*n+"%"),g.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(n)},_swipePixelRatio:function(){var e=this.option("min"),t=this.option("max"),n=this._valueStep(this.option("step"));return(t-e)/n},_valueStep:function(e){return e&&!isNaN(e)||(e=1),e=parseFloat(e.toFixed(5)),0===e&&(e=1e-5),e},_changeValueOnSwipe:function(e){var t=this.option("min"),n=this.option("max"),i=this._valueStep(this.option("step")),o=e*(n-t),a=t+o;if(!(i<0))if(a===n||a===t)this._setValueOnSwipe(a);else{var r=(i+"").split(".")[1],s=(t+"").split(".")[1],l=Math.max(r&&r.length||0,s&&s.length||0),u=Math.round((a-t)/i);a=Number((u*i+t).toFixed(l)),this._setValueOnSwipe(Math.max(Math.min(a,n),t))}},_setValueOnSwipe:function(e){this.option("value",e)},_startHandler:function(e){var t=e.event;this._currentRatio=(h.eventData(t).x-this._$bar.offset().left)/this._$bar.width(),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)},_renderValue:function(){this.callBase();var e=this.option("value");this._getSubmitElement().val(u(e)),g.getInstance(this._activeHandle()).option("value",e)},_setRangeStyles:function(e){e&&this._$range.css(e)},_callHandlerMethod:function(e,t){g.getInstance(this._$handle)[e](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("fitTooltipPosition")},_optionChanged:function(e){switch(e.name){case"visible":this.callBase(e),this._renderHandle(),this._repaintHandle(),a.triggerShownEvent(this.$element());break;case"min":case"max":this._renderValue(),this.callBase(e),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,this.callBase()}});d("dxSlider",P),e.exports=P},function(e,t,n){e.exports=n(609)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(9),d=i(u),c=n(0),h=n(34),p=i(h),f=n(49),g=i(f),_=n(17),m=i(_),v=n(301),y=n(155),w=g.default.add,x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{icon:"",onClick:null,label:"",visible:!0,index:0,onContentReady:null,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new p.default})}},{key:"_optionChanged",value:function(e){switch(e.name){case"onClick":case"icon":case"label":case"visible":case"index":(0,v.initAction)(this);break;case"animation":case"id":break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_render",value:function(){var e=this;this._toggleVisibility(!1),(0,y.getSwatchContainer)(this.$element())?(0,v.initAction)(this):w(function(){return(0,v.initAction)(e)})}},{key:"_dispose",value:function(){(0,v.disposeAction)(this._options.id),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_dispose",this).call(this)}}]),t}(m.default);(0,d.default)("dxSpeedDialAction",x),e.exports=x},function(e,t,n){var i=n(2),o=n(16),a=n(9),r=n(33),s=n(3),l=n(1).isDefined,u=n(0).extend,d=n(7),c=n(11).getPublicElement,h=n(4).deferRender,p=n(118),f=n(55),g="dx-tileview",_="dx-tileview-wrapper",m="dx-tile",v="."+m,y="dxTileData",w={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},x=f.inherit({_activeStateUnit:v,_getDefaultOptions:function(){return u(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:!1,height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return m},_itemDataKey:function(){return y},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass(g),this._initScrollView()},_dataSourceLoadingChangedHandler:function(e){var t=this._scrollView;t&&t.startLoading&&(e&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){this._scrollView=this._createComponent(this.$element(),p,{direction:this.option("direction"),scrollByContent:!0,useKeyboard:!1,showScrollbar:this.option("showScrollbar")}),this._$container=i(this._scrollView.content()),this._$container.addClass(_),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),h(function(){this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()}.bind(this))},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=w[this.option("direction")];var e=this.option("items")||[],t=this._config,n=this.option("itemMargin"),i=Math.max.apply(Math,s.map(e||[],function(e){return Math.round(e[t.itemCrossRatio]||1)})),o=d.hasWindow()?this.$element()[t.crossDimension]():parseInt(this.$element().get(0).style[t.crossDimension]);this._cellsPerDimension=Math.floor(o/(this.option(t.baseItemCrossDimension)+n)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(e),d.hasWindow()&&this._$container[t.mainDimension](this._cells.length*this.option(t.baseItemMainDimension)+(this._cells.length+1)*n)},_arrangeItems:function(e){var t=this._config,n=t.itemMainRatio,i=t.itemCrossRatio,o=t.mainPosition;this._itemsPositions=[],s.each(e,function(e,a){var r={};r[n]=a[n]||1,r[i]=a[i]||1,r.index=e,r[n]=r[n]<=0?0:Math.round(r[t.itemMainRatio]),r[i]=r[i]<=0?0:Math.round(r[t.itemCrossRatio]);var s=this._getItemPosition(r);s[o]===-1&&(s[o]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(r,s),this._arrangeItem(r,s),this._itemsPositions.push(s)}.bind(this))},_getItemPosition:function(e){var t=this._config,n=t.mainPosition,i=t.crossPosition,o={};
o[n]=-1,o[i]=0;for(var a=0;a<this._cells.length;a++){for(var r=0;r<this._cellsPerDimension;r++)if(this._itemFit(a,r,e)){o[n]=a,o[i]=r;break}if(o[n]>-1)break}return o},_itemFit:function(e,t,n){var i=!0,o=this._config,a=n[o.itemMainRatio],r=n[o.itemCrossRatio];if(t+r>this._cellsPerDimension)return!1;for(var s=e;s<e+a;s++)for(var l=t;l<t+r;l++)if(this._cells.length-1<s)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[s][l]){i=!1;break}return i},_occupyCells:function(e,t){for(var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],r=e[n.itemCrossRatio],s=i;s<i+a;s++)for(var l=o;l<o+r;l++)this._cells[s][l]=e.index},_arrangeItem:function(e,t){var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],r=e[n.itemCrossRatio],s=this.option(n.baseItemCrossDimension),l=this.option(n.baseItemMainDimension),u=this.option("itemMargin"),d={display:a<=0||r<=0?"none":""},c=a*l+(a-1)*u,h=r*s+(r-1)*u;if(d[n.mainDimension]=c<0?0:c,d[n.crossDimension]=h<0?0:h,d[n.mainPosition]=i*l+(i+1)*u,d[n.crossPosition]=o*s+(o+1)*u,this.option("rtlEnabled")){var p=this._$container.width(),f=this.option("baseItemWidth"),g=t.left,_=g*f,m=f+u,v=m*e.widthRatio,y=g*u;d.left=p-(_+v+y)}this._itemElements().eq(e.index).css(d)},_moveFocus:function(e){var t="up",n="down",o=this.option("rtlEnabled")?"right":"left",a=this.option("rtlEnabled")?"left":"right",r="pageup",s="pagedown",u="horizontal"===this.option("direction"),d=this._cells,h=i(this.option("focusedElement")).index(),p=this._itemsPositions[h].left,f=this._itemsPositions[h].top,g=(u?d:d[0]).length,_=(u?d[0]:d).length,m=function(e,t){return u?d[e][t]:d[t][e]};switch(e){case r:case t:for(;f>0&&h===m(p,f);)f--;f<0&&(f=0);break;case s:case n:for(;f<_&&h===m(p,f);)f++;f===_&&(f=_-1);break;case a:for(;p<g&&h===m(p,f);)p++;p===g&&(p=g-1);break;case o:for(;p>=0&&h===m(p,f);)p--;p<0&&(p=0);break;default:return void this.callBase.apply(this,arguments)}var v=m(p,f);if(l(v)){var y=this._itemElements().eq(v);this.option("focusedElement",c(y)),this._scrollToItem(y)}},_scrollToItem:function(e){if(e.length){var t=this._config,n="outer"+r.captionize(t.mainDimension),i=this.option("itemMargin"),o=e.position()[t.mainPosition],a=e[n](),s=o+a,l=this.scrollPosition(),u=this.$element()[n]();l<=o&&s<=l+u||(l>o?this._scrollView.scrollTo(o-i):this._scrollView.scrollTo(o+a-u+i))}},_optionChanged:function(e){switch(e.name){case"items":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",e.value),this.callBase(e);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(e)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});a("dxTileView",x),e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(612),s=i(r),l=n(613),u=i(l),d=n(7),c=n(19),h=i(c),p=n(258),f=i(p),g=function(){function e(){o(this,e);var t=(0,d.getWindow)(),n=t&&t.TurndownService||s.default,i=t&&t.showdown||u.default;if(!n)throw h.default.Error("E1041","Turndown");if(!i)throw h.default.Error("E1041","Showdown");this._html2Markdown=new n,this._markdown2Html=new i.Converter({simpleLineBreaks:!0,strikethrough:!0})}return a(e,[{key:"toMarkdown",value:function(e){return this._html2Markdown.turndown(e)}},{key:"toHtml",value:function(e){var t=this._markdown2Html.makeHtml(e);return t&&(t=t.replace(new RegExp("\\r?\\n","g"),"")),t}}]),e}();f.default.addConverter("markdown",g),t.default=g},function(e,t){e.exports=window.TurndownService},function(e,t){e.exports=window.showdown},function(e,t,n){var i=n(214),o=n(506);o.dxAccordion=n(261),o.dxContextMenu=n(96),o.dxDataGrid=n(618),o.dxTreeList=n(387),o.dxMenu=n(367),o.dxPivotGrid=n(696),o.dxPivotGridFieldChooser=n(708),i.PivotGridDataSource=n(264),i.XmlaStore=n(709),o.dxScheduler=n(710),o.dxTreeView=n(144),o.dxFilterBuilder=n(374),o.dxFileManager=n(745),o.dxDiagram=n(763),o.dxGantt=n(776)},function(e,t,n){var i=n(15),o=n(4),a=n(3),r=n(3).each,s=n(1),l=n(0).extend,u=n(19),d=n(249).getOperationBySearchMode,c=n(14).inArray,h=n(42),p=n(84),f=n(616),g="expanded",_="selected",m="disabled",v=i.inherit({ctor:function(e){this.options={},l(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,t){this.options[e]=t,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new f,onNodeChanged:o.noop,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(g)},_updateNodesKeysArray:function(e){var t=this,n=[];return r(t._getDataBySelectionMode(),function(i,o){t._isNodeVisible(o)&&o.internalFields[e]&&(e===g||t.options.multipleSelection?n.push(o.internalFields.key):(n.length&&t.toggleSelection(n[0],!1,!0),n=[o.internalFields.key]))}),n},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(e){return e.internalFields.item.visible!==!1},_getByKey:function(e,t){return e===this._dataStructure?this.options.dataConverter._getByKey(t):this.options.dataConverter.getByKey(e,t)},_setChildrenSelection:function(){var e=this;r(this._dataStructure,function(t,n){if(n.internalFields.childrenKeys.length){var i=n.internalFields.selected;i===!0&&e._toggleChildrenSelection(n,i)}})},_setParentSelection:function(){var e=this;r(this._dataStructure,function(t,n){var i=e.options.dataConverter.getParentNode(n);i&&n.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(n,function(t){var n=e._calculateSelectedState(t);e._setFieldState(t,_,n)})})},_setParentExpansion:function(){var e=this;r(this._dataStructure,function(t,n){n.internalFields.expanded&&e._updateOneBranch(n.internalFields.key)})},_updateOneBranch:function(e){var t=this,n=this.getNodeByKey(e);t._iterateParents(n,function(e){t._setFieldState(e,g,!0)})},_iterateChildren:function(e,t,n,i){if(s.isFunction(n)){var o=this,a=e.internalFields.key;i=i||[],i.indexOf(a)===-1&&(i.push(a),r(e.internalFields.childrenKeys,function(e,a){var r=o.getNodeByKey(a);n(r),r.internalFields.childrenKeys.length&&t&&o._iterateChildren(r,t,n,i)}))}},_iterateParents:function(e,t,n){if(e.internalFields.parentKey!==this.options.rootValue&&s.isFunction(t)){n=n||[];var i=e.internalFields.key;if(n.indexOf(i)===-1){n.push(i);var o=this.options.dataConverter.getParentNode(e);o&&(t(o),o.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(o,t,n))}}},_calculateSelectedState:function(e){for(var t=e.internalFields.childrenKeys.length,n=0,i=0,o=!1,a=0;a<=t-1;a++){var r=this.getNodeByKey(e.internalFields.childrenKeys[a]),s=r.internalFields.item.visible===!1,l=r.internalFields.selected;s?i++:l?n++:void 0===l&&(n+=.5)}return n&&(o=n===t-i||void 0),o},_toggleChildrenSelection:function(e,t){var n=this;this._iterateChildren(e,!0,function(e){n._isNodeVisible(e)&&n._setFieldState(e,_,t)})},_setFieldState:function(e,t,n){e.internalFields[t]!==n&&(e.internalFields[t]=n,e.internalFields.publicNode&&(e.internalFields.publicNode[t]=n),this.options.dataAccessors.setters[t](e.internalFields.item,n),this.options.onNodeChanged(e))},_markChildren:function(e){var t=this;r(e,function(e,n){var i=t.getIndexByKey(n),o=t.getNodeByKey(n);t._dataStructure[i]=0,o.internalFields.childrenKeys.length&&t._markChildren(o.internalFields.childrenKeys)})},_removeNode:function(e){var t=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(t.internalFields.childrenKeys);var n=this,i=0,o=l([],this._dataStructure);r(o,function(e,t){t||(n._dataStructure.splice(e-i,1),i++)})},_addNode:function(e){var t=this.options.dataConverter,n=t._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(n),this._initialDataStructure=this._initialDataStructure.concat(n),t._dataStructure=t._dataStructure.concat(n)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var t=null;return r(this._dataStructure,function(n,i){if(i.internalFields.item===e)return t=i,!1}),t},getNodesByItems:function(e){var t=this,n=[];return r(e,function(e,i){var o=t.getNodeByItem(i);o&&n.push(o)}),n},getNodeByKey:function(e,t){return this._getByKey(t||this._getDataBySelectionMode(),e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return h(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,t,n){var i=this._isSingleModeUnselect(t),o=this._getByKey(n||i?this._initialDataStructure:this._dataStructure,e);this._setFieldState(o,_,t),this.options.recursiveSelection&&!n&&(t?this._setChildrenSelection():this._toggleChildrenSelection(o,t),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_isSingleModeUnselect:function(e){return!this.options.multipleSelection&&!e},toggleNodeDisabledState:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,m,t)},toggleSelectAll:function(e){if(s.isDefined(e)){var t=this,n=t._selectedNodesKeys[t._selectedNodesKeys.length-1],i=t._isSingleModeUnselect(e)?this._initialDataStructure:this._dataStructure;r(i,function(n,i){t._isNodeVisible(i)&&t._setFieldState(i,_,e)}),t._selectedNodesKeys=t._updateNodesKeysArray(_),!e&&t.options.selectionRequired&&t.toggleSelection(n,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,g,t),t&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(g)},isFiltered:function(e){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[e]).length},_createCriteria:function(e,t,n){var i=[];return Array.isArray(e)?(a.each(e,function(e,o){i.push([o,n,t],"or")}),i.pop(),i):[e,n,t]},_filterDataStructure:function(e,t){var n=this.options.searchExpr||this.options.dataAccessors.getters.display,i=d(this.options.searchMode),o=this._createCriteria(n,e,i);return t=t||this._initialDataStructure,h(t).filter(o).toArray()},search:function(e){function t(e,i){for(var a=e.length;i<a;){var r=e[i];if(r.internalFields.parentKey!==n.options.rootValue){var s=o.getParentNode(r);s?(s.internalFields.expanded||n._setFieldState(s,g,!0),c(s,e)>-1?i++:(e.splice(i,0,s),t(e,i))):(u.log("W1007",r.internalFields.parentKey,r.internalFields.key),i++)}else i++}}var n=this,i=this._filterDataStructure(e),o=this.options.dataConverter;return t(i,0),this.options.sort&&(i=p.queryByOptions(h(i),{sort:this.options.sort}).toArray()),o._indexByKey={},r(i,function(e,t){t.internalFields.childrenKeys=[],o._indexByKey[t.internalFields.key]=e}),o._dataStructure=i,o.setChildrenKeys(),o._dataStructure}});e.exports=v},function(e,t,n){var i=n(15),o=n(0).extend,a=n(19),r=n(3).each,s=n(1),l=i.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,t){var n=this;r(e,function(e,i){var o=s.isDefined(t)?t:n._getParentId(i),a=n._convertItemToNode(i,o);n._dataStructure.push(a),n._checkForDuplicateId(a.internalFields.key),n._indexByKey[a.internalFields.key]=n._dataStructure.length-1,n._itemHasChildren(i)&&n._convertItemsToNodes(n._dataAccessors.getters.items(i),a.internalFields.key)})},_checkForDuplicateId:function(e){if(s.isDefined(this._indexByKey[e]))throw a.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){if("plain"!==this._dataType){var t=this._dataAccessors.getters.items(e);return t&&t.length}},_getUniqueKey:function(e){var t=this._dataAccessors.getters.key,n=t(e),i=t&&(n||0===n)&&s.isPrimitive(n);return i?n:this.getItemsCount()},_convertItemToNode:function(e,t){this._itemsCount++,e.visible!==!1&&this._visibleItemsCount++;var n=this,i={internalFields:{disabled:n._dataAccessors.getters.disabled(e,{defaultValue:!1}),expanded:n._dataAccessors.getters.expanded(e,{defaultValue:!1}),selected:n._dataAccessors.getters.selected(e,{defaultValue:!1}),key:n._getUniqueKey(e),parentKey:s.isDefined(t)?t:n._rootValue,item:n._makeObjectFromPrimitive(e),childrenKeys:[]}};return o(i,e),delete i.items,i},setChildrenKeys:function(){var e=this;r(this._dataStructure,function(t,n){if(n.internalFields.parentKey!==e._rootValue){var i=e.getParentNode(n);i&&i.internalFields.childrenKeys.push(n.internalFields.key)}})},_makeObjectFromPrimitive:function(e){if(s.isPrimitive(e)){var t=e;e={},this._dataAccessors.setters.key(e,t)}return e},_convertToPublicNode:function(e,t){if(!e)return null;var n={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:t||null,itemData:e.internalFields.item,children:[],items:[]};return n.parent&&(n.parent.children.push(n),n.parent.items.push(n)),n},convertToPublicNodes:function(e,t){if(!e.length)return[];var n=this,i=[];return r(e,function(e,o){o=s.isPrimitive(o)?n._getByKey(o):o;var a=n._convertToPublicNode(o,t);a.children=n.convertToPublicNodes(o.internalFields.childrenKeys,a),i.push(a),o.internalFields.publicNode=a}),i},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function e(t,n){var i=null,o=this,e=function e(t,n){return r(t,function(t,a){var r=a.internalFields&&a.internalFields.key||o._dataAccessors.getters.key(a),s=o._dataAccessors.getters.items(a);return r.toString()===n.toString()?(i=a,!1):void(s&&e(s,n))}),i};return e(t,n)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},r(this._dataStructure,function(t,n){e._checkForDuplicateId(n.internalFields.key),e._indexByKey[n.internalFields.key]=t})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},r(this._dataStructure,function(e,t){t.internalFields.childrenKeys=[]})},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,t,n){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=t,this._dataType=n,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}});e.exports=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(2),d=i(u),c=n(3),h=n(190),p=i(h),f=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"_getPlainItems",value:function(){return(0,c.map)(this._collectionWidget.option("items"),function e(t){return t.items?[t].concat((0,c.map)(t.items,e)):t})}},{key:"_stringifyItem",value:function(e){var t=this;return JSON.stringify(e,function(e,n){return"template"===e?t._getTemplateString(n):n})}},{key:"_getTemplateString",value:function(e){var t=void 0;return t="object"===("undefined"==typeof e?"undefined":s(e))?(0,d.default)(e).text():e.toString()}}]),t}(p.default);e.exports=f},function(e,t,n){e.exports=n(340)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(9),s=i(r),l=n(4),u=i(l),d=n(1),c=i(d),h=n(3),p=n(0),f=n(63),g=n(25),_=i(g),m=n(17),v=i(m),y=n(24),w=i(y),x=n(31),b=i(x);n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628);var C=".dx-row",k="Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.";w.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var I=v.default.inherit({_activeStateUnit:C,_getDefaultOptions:function(){var e=this,t=e.callBase();return(0,h.each)(w.default.modules,function(){c.default.isFunction(this.defaultOptions)&&(0,p.extend)(!0,t,this.defaultOptions())}),t},_setDeprecatedOptions:function(){this.callBase(),(0,p.extend)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return b.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}},{device:function(){return _.default.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){var e=this;e.callBase(),w.default.processModules(e,w.default),(0,y.callModuleItemsMethod)(e,"init")},_clean:u.default.noop,_optionChanged:function(e){var t=this;(0,y.callModuleItemsMethod)(t,"optionChanged",[e]),e.handled||t.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;u.default.deferRender(function(){e._renderContentImpl()})},_getTemplate:function(e){var t=e;return c.default.isString(t)&&"#"===t[0]&&(t=(0,a.default)(e),f.logger.warn(k)),this.callBase(t)},_dispose:function(){var e=this;e.callBase(),(0,y.callModuleItemsMethod)(e,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){var e=this;e.callBase(),(0,y.callModuleItemsMethod)(e,"beginUpdate")},endUpdate:function(){var e=this;(0,y.callModuleItemsMethod)(e,"endUpdate"),e.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.getController("keyboardNavigation").focus(e)}});I.registerModule=w.default.registerModule.bind(w.default),(0,s.default)("dxDataGrid",I),e.exports=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(341),s=i(r);t.ColumnHeadersView=s.default.views.columnHeadersView,a.default.registerModule("columnHeaders",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(343),s=i(r),l=n(0);a.default.registerModule("columns",{defaultOptions:function(){return(0,l.extend)(!0,{},s.default.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:s.default.controllers})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(19),s=i(r),l=n(201),u=i(l),d=n(345),c=i(d);t.DataController=c.default.controllers.data.inherit(function(){return{_getDataSourceAdapter:function(){return u.default},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&s.default.log("W1011"),this.callBase()}}}()),a.default.registerModule("data",{defaultOptions:c.default.defaultOptions,controllers:{data:t.DataController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(346),s=i(r);a.default.registerModule("sorting",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(348),s=i(r);t.RowsView=s.default.views.rowsView,a.default.registerModule("rows",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(349),s=i(r);a.default.registerModule("contextMenu",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(350),s=i(r);a.default.registerModule("errorHandling",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(351),s=i(r);a.default.registerModule("gridView",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(352),s=i(r);t.HeaderPanel=s.default.views.headerPanel,a.default.registerModule("headerPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(353),s=i(r);a.default.registerModule("stateStoring",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(355),s=i(r);a.default.registerModule("selection",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(356),s=i(r);t.ColumnChooserController=s.default.controllers.columnChooser,t.ColumnChooserView=s.default.views.columnChooserView,a.default.registerModule("columnChooser",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=n(5),l=n(10),u=i(l),d=n(20),c=i(d),h=n(4),p=i(h),f=n(7),g=i(f),_=n(1),m=n(0),v=n(3),y=n(11),w=n(105),x=i(w),b=n(339),C=i(b),k=n(8),I=n(23),S=n(135),D=i(S),T=n(39),E=i(T),O=n(94),A=i(O),P=n(80),B=i(P),M=n(6),F="dx-treeview",R=F+"-node",V=R+"-container",H=R+"-loadindicator",L=R+"-container-opened",z=R+"-is-leaf",$=F+"-item",N=$+"-with-checkbox",W=$+"-without-checkbox",j=$+"-data",q=F+"-toggle-item-visibility",G=F+"-loadindicator",K=F+"-loadindicator-wrapper",U=F+"-toggle-item-visibility-opened",Y=F+"-select-all-item",X="dx-state-invisible",Z="dx-state-disabled",Q="dx-state-selected",J="dxTreeView_expand",ee="data-item-id",te=C.default.inherit({_supportedKeys:function(e){var t=this,n=function(e){var n=(0,a.default)(t.option("focusedElement"));if(n.length){e.target=n,e.currentTarget=n,t._itemClickHandler(e,n.children("."+$));var i=t._getEventNameByOption(t.option("expandEvent")),o=i===(0,k.addNamespace)(c.default.name,J);o&&t._expandEventHandler(e)}},i=function(e){e.preventDefault(),t._changeCheckBoxState((0,a.default)(t.option("focusedElement")))},o=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var n=(0,a.default)(this.option("focusedElement"));if(n.length){var i=this._getItemData(n.find("."+$));this._toggleExpandedNestedItems([i],e)}}};return(0,m.extend)(this.callBase(),{enter:this._showCheckboxes()?i:n,space:this._showCheckboxes()?i:n,asterisk:o.bind(this,!0),minus:o.bind(this,!1)})},_changeCheckBoxState:function(e){var t=this._getCheckBoxInstance(e),n=t.option("value");t.option("disabled")||this._updateItemSelection(!n,e.find("."+$).get(0),!0,e)},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;n<i;n++){var o=e[n],a=this._dataAdapter.getNodeByItem(o);this._toggleExpandedState(a,t),this._toggleExpandedNestedItems(o.items,t)}},_getNodeElement:function(e,t){var n=this._encodeString(e.internalFields.key);if(t)return t.$nodeByKey||(t.$nodeByKey={},this.$element().find("."+R).each(function(){var e=(0,a.default)(this),n=e.attr(ee);t.$nodeByKey[n]=e})),t.$nodeByKey[n]||(0,a.default)();var i=this.$element().get(0).querySelector("["+ee+'="'+n+'"]');return(0,a.default)(i)},_activeStateUnit:"."+$,_widgetClass:function(){return F},_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:u.default.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null})},_initSelectedItems:p.default.noop,_syncSelectionOptions:p.default.asyncNoop,_fireSelectionChanged:function(){var e=this._selectionChangePromise;(0,M.when)(e).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(e){this._selectAllValueChangedAction({value:e})},_checkBoxModeChange:function(e,t){if("none"===t||"none"===e)return void this.repaint();var n=this._$selectAllItem&&this._$selectAllItem.length;switch(e){case"selectAll":!n&&this._renderSelectAllItem();break;case"normal":n&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}},_removeSelection:function(){var e=this;(0,v.each)(this._dataAdapter.getFullData(),function(t,n){e._hasChildren(n)&&e._dataAdapter.toggleSelection(n.internalFields.key,!1,!0)})},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",n);break;case"showCheckBoxesMode":this._checkBoxModeChange(n,i);break;case"scrollDirection":this._scrollableContainer.option("direction",n);break;case"items":delete this._$selectAllItem,this.callBase(e);break;case"dataSource":this.callBase(e),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(e);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",e.value),this.repaint();break;default:this.callBase(e)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(e){e&&e.length&&this.option("items",e)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var e=this._filter;e.custom||(e.custom=this._dataSource.filter()),e.internal||(e.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,_.isFunction)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(e){var t=this.option("createChildren").call(this,e);return Array.isArray(t)?(new M.Deferred).resolve(t).promise():t&&(0,_.isFunction)(t.then)?(0,M.fromPromise)(t):(new M.Deferred).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&this._isVirtualMode()&&t.length||this.option("items",e)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,a.default)("<div>").addClass(G),this._createComponent(this._treeViewLoadIndicator,B.default,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t=void 0;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var n=(0,a.default)("<div>").addClass(K);this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){var e=this;"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",function(t){e.option().items=e.option("items").concat(t),e._dataAdapter.addItem(t),e._dataAdapter.isFiltered(t)&&e._updateLevel(e._parentIdGetter(t));
}).on("removed",function(t){var n=e._dataAdapter.getNodeByKey(t);e.option("items")[e._dataAdapter.getIndexByKey(n.internalFields.key)]=0,e._markChildrenItemsToRemove(n),e._removeItems(),e._dataAdapter.removeItem(t),e._updateLevel(e._parentIdGetter(n))})},_markChildrenItemsToRemove:function(e){var t=this,n=e.internalFields.childrenKeys;(0,v.each)(n,function(e,n){t.option("items")[t._dataAdapter.getIndexByKey(n)]=0,t._markChildrenItemsToRemove(t._dataAdapter.getNodeByKey(n))})},_removeItems:function(){var e=this,t=(0,m.extend)(!0,[],this.option("items")),n=0;(0,v.each)(t,function(t,i){i||(e.option("items").splice(t-n,1),n++)})},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){return e.length?e.children("."+V):this._scrollableContainer?this._scrollableContainer.$content().children():(0,a.default)()},_getContainerByParentKey:function(e){var t=this._dataAdapter.getNodeByKey(e),n=t?this._getNodeElement(t):[];this._getOldContainer(n).remove();var i=this._renderNodeContainer(n);return this._isRootLevel(e)&&(this._scrollableContainer||this._renderScrollableContainer(),this._scrollableContainer.$content().append(i)),i},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();this._scrollableContainer.$content().append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var e=this.getDataSource(),t=e&&!e.isLoaded();t||this.callBase(),this._scrollableContainer&&g.default.hasWindow()&&this._scrollableContainer.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent((0,a.default)("<div>").appendTo(this.$element()),A.default,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=(0,a.default)("<ul>").addClass(V);if(this.setAria("role","group",t),e&&e.length){var n=this._getItemData(e.children("."+$));this._expandedGetter(n)&&t.addClass(L),t.appendTo(e)}return t},_createDOMElement:function(e,t){var n=(0,a.default)("<li>").addClass(R).attr(ee,this._encodeString(t.internalFields.key)).prependTo(e);return this.setAria({role:"treeitem",label:this._displayGetter(t.internalFields.item)||"",expanded:t.internalFields.expanded||!1,level:this._getLevel(e)},n),n},_getLevel:function(e){var t=e.parent();return t.hasClass("dx-scrollable-content")?1:parseInt(t.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(e,t){for(var n=t.length-1,i=n;i>=0;i--)this._renderItem(i,t[i],e);this._renderedItemsCount+=t.length},_renderItem:function(e,t,n){var i=this._createDOMElement(n,t),o=t.internalFields,a=this._showCheckboxes();i.addClass(a?N:W),a&&this._renderCheckBox(i,t),this.setAria("selected",o.selected,i),this._toggleSelectedClass(i,o.selected),this.callBase(this._renderedItemsCount+e,o.item,i),o.item.visible!==!1&&this._renderChildren(i,t)},_setAriaSelected:function(){},_renderChildren:function(e,t){var n=this;return this._hasChildren(t)?(this._renderToggleItemVisibilityIcon(e,t),void(this.option("deferRendering")&&!t.internalFields.expanded||this._loadSublevel(t).done(function(i){n._renderSublevel(e,n._getActualNode(t),i)}))):void this._addLeafClass(e)},_getActualNode:function(e){return this._dataAdapter.getNodeByKey(e.internalFields.key)},_hasChildren:function(e){return this._isVirtualMode()||this._useCustomChildrenLoader()?this._hasItemsGetter(e.internalFields.item)!==!1:this.callBase(e)},_loadSublevel:function(e){var t=this,n=new M.Deferred,i=this._getChildNodes(e);return i.length?n.resolve(i):this._loadNestedItems(e).done(function(e){n.resolve(t._dataAdapter.getNodesByItems(e))}),n.promise()},_renderSublevel:function(e,t,n){var i=this._renderNodeContainer(e,t),o=n.filter(function(e){return t.internalFields.childrenKeys.indexOf(e.internalFields.key)!==-1});if(this._renderItems(i,o),o.length&&!t.internalFields.selected){var a=o[0];this._updateParentsState(a,this._getNodeElement(a))}this._normalizeIconState(e,o.length),t.internalFields.expanded&&i.addClass(L)},_executeItemRenderAction:function(e,t,n){var i=this._getNode(n);this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t,node:this._dataAdapter.getPublicNode(i)})},_addLeafClass:function(e){e.addClass(z)},_expandEventHandler:function(e){var t=(0,a.default)(e.currentTarget.parentNode);t.hasClass(z)||this._toggleExpandedState(e.currentTarget,void 0,e)},_initExpandEvent:function(){var e=this._getEventNameByOption(this.option("expandEvent")),t=this._itemContainer(),n=this._itemSelector();(0,s.off)(t,"."+J,n),(0,s.on)(t,e,n,this._expandEventHandler.bind(this))},_getEventNameByOption:function(e){var t="click"===e?c.default:D.default;return(0,k.addNamespace)(t.name,J)},_getNode:function(e){if(!(0,_.isDefined)(e))return null;if(e.internalFields)return e;if((0,_.isPrimitive)(e))return this._dataAdapter.getNodeByKey(e);var t=(0,a.default)(e).get(0);return t?(0,r.isElementNode)(t)?this._getNodeByElement(t):this._dataAdapter.getNodeByItem(t):null},_getNodeByElement:function(e){var t=(0,a.default)(e).closest("."+R),n=this._decodeString(t.attr(ee));return this._dataAdapter.getNodeByKey(n)},_toggleExpandedState:function(e,t,n){var i=this._getNode(e),o=i.internalFields.expanded;if(!i.internalFields.disabled&&o!==t){if(this._hasChildren(i)){var a=this._getNodeElement(i);if(a.find("."+H+":not(."+X+")").length)return;this._createLoadIndicator(a)}(0,_.isDefined)(t)||(t=!o),this._dataAdapter.toggleExpansion(i.internalFields.key,t),this._updateExpandedItemsUI(i,t,n)}},_createLoadIndicator:function(e){var t=e.children("."+q),n=e.children("."+V);t.hasClass(U)||n.not(":empty").length||(this._createComponent((0,a.default)("<div>").addClass(H),B.default,{}).$element().appendTo(e),t.hide())},_renderToggleItemVisibilityIcon:function(e,t){var n=(0,a.default)("<div>").addClass(q).appendTo(e);t.internalFields.expanded&&(n.addClass(U),e.parent().addClass(L)),t.internalFields.disabled&&n.addClass(Z),this._renderToggleItemVisibilityIconClick(n,t)},_renderToggleItemVisibilityIconClick:function(e,t){var n=this,i=(0,k.addNamespace)(c.default.name,this.NAME);(0,s.off)(e,i),(0,s.on)(e,i,function(e){n._toggleExpandedState(t.internalFields.key,void 0,e)})},_updateExpandedItemsUI:function(e,t,n){var i=this._getNodeElement(e),o=!i.length||t&&i.is(":hidden");if(this.option("expandNodesRecursive")&&o){var a=this._getNode(e.internalFields.parentKey);a&&this._updateExpandedItemsUI(a,t,n)}var r=i.children("."+q),s=i.children("."+V);r.toggleClass(U,t);var l=s.length>0;return!t||l&&!s.is(":empty")?void this._updateExpandedItem(e,t,n):this._isVirtualMode()||this._useCustomChildrenLoader()?void this._loadNestedItemsWithUpdate(e,t,n):(this._renderSublevel(i,e,this._getChildNodes(e)),this._fireContentReadyAction(),void this._updateExpandedItem(e,t,n))},_loadNestedItemsWithUpdate:function(e,t,n){var i=this,o=this._getNodeElement(e);this._loadNestedItems(e).done(function(a){var r=i._getActualNode(e);i._renderSublevel(o,r,i._dataAdapter.getNodesByItems(a)),a&&a.length&&(i._fireContentReadyAction(),i._updateExpandedItem(r,t,n))})},_loadNestedItems:function(e){var t=this;if(this._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(e);return this._loadChildrenByCustomLoader(n).done(function(e){t._areNodesExists(e)||t._appendItems(e)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),e.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(function(e){t._areNodesExists(e)||t._appendItems(e)})):(new M.Deferred).resolve([]).promise()},_areNodesExists:function(e,t){var n=this.keyOf(e[0]),i=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(n,i)},_appendItems:function(e){this.option().items=this.option("items").concat(e),this._initDataAdapter()},_updateExpandedItem:function(e,t,n){this._animateNodeContainer(e,t,n)},_animateNodeContainer:function(e,t,n){var i=this._getNodeElement(e),o=i.children("."+V),a=void 0;o.addClass(L),a=o.height(),E.default.stop(o,!0),E.default.animate(o,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:t?0:a},to:{maxHeight:t?a:0},complete:function(){o.css("maxHeight","none"),o.toggleClass(L,t),this.setAria("expanded",t,i),this._scrollableContainer.update(),this._fireExpandedStateUpdatedEvent(t,e,n)}.bind(this)})},_fireExpandedStateUpdatedEvent:function(e,t,n){if(this._hasChildren(t)){var i=e?"onItemExpanded":"onItemCollapsed";if((0,_.isDefined)(n))this._itemDXEventHandler(n,i,{node:this._dataAdapter.getPublicNode(t)});else{var o=this._getNodeElement(t);this._itemEventHandler(o,i,{event:n,node:this._dataAdapter.getPublicNode(t)})}}},_normalizeIconState:function(e,t){var n=e.find(".dx-loadindicator");if(n.length&&B.default.getInstance(n).option("visible",!1),t){var i=e.find("."+q);return void i.show()}e.find("."+q).removeClass(q),e.addClass(z)},_emptyMessageContainer:function(){return this._scrollableContainer?this._scrollableContainer.content():this.callBase()},_renderContent:function(){var e=this.option("items");e&&e.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(e){e=e||this.$element().find("."+V).first(),this._$selectAllItem=(0,a.default)("<div>").addClass(Y);var t=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,x.default,{value:t,text:this.option("selectAllText"),onValueChanged:function(e){this._toggleSelectAll(e),this._fireSelectAllValueChanged(e.value)}.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,t),e.before(this._$selectAllItem)},_toggleSelectAll:function(e){this._dataAdapter.toggleSelectAll(e.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(e,t){var n=(0,a.default)("<div>").appendTo(e);this._createComponent(n,x.default,{value:t.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(t)})},_toggleSelectedClass:function(e,t){e.toggleClass(Q,!!t)},_toggleNodeDisabledState:function(e,t){var n=this._getNodeElement(e),i=n.find("."+$).eq(0);if(this._dataAdapter.toggleNodeDisabledState(e.internalFields.key,t),i.toggleClass(Z,!!t),this._showCheckboxes()){var o=this._getCheckBoxInstance(n);o.option("disabled",!!t)}},_itemOptionChanged:function(e,t,n){var i=this._dataAdapter.getNodeByItem(e);t===this.option("disabledExpr")&&this._toggleNodeDisabledState(i,n)},_changeCheckboxValue:function(e){var t=(0,a.default)(e.element).parent("."+R),n=t.children("."+$),i=this._getItemData(n),o=this._getNodeByElement(n),r=e.value;o&&o.internalFields.selected===r||this._updateItemSelection(r,i,e.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(e,t,n){var i=t.indexOf(e.key);return i>=0&&t.splice(i,1),n&&(0,v.each)(e.children,function(e,n){this._isLastSelectedBranch(n,t,!0)}.bind(this)),e.parent&&this._isLastSelectedBranch(e.parent,t),0===t.length},_isLastRequired:function(e){var t=this.option("selectionRequired"),n=this._isSingleSelection(),i=this.getSelectedNodesKeys();if(t)return n?1===i.length:this._isLastSelectedBranch(e.internalFields.publicNode,i.slice(),!0)},_updateItemSelection:function(e,t,n){var i=this,o=this._getNode(t);if(o&&o.internalFields.selected!==e)if(e||!this._isLastRequired(o)){var a=this.getSelectedNodesKeys();this._isSingleSelection()&&e&&(0,v.each)(a,function(e,t){i.unselectItem(t)}),this._dataAdapter.toggleSelection(o.internalFields.key,e),this._updateItemsUI();var r=n||this._findItemElementByItem(o.internalFields.item),s=n?this._itemDXEventHandler:this._itemEventHandler;s.call(this,r,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(o),itemData:o.internalFields.item}),this._fireSelectionChanged()}else if(this._showCheckboxes()){var l=this._getNodeElement(o),u=this._getCheckBoxInstance(l);u&&u.option("value",!0)}},_getCheckBoxInstance:function(e){return e.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var e=this,t={};(0,v.each)(this._dataAdapter.getData(),function(n,i){var o=e._getNodeElement(i,t),a=i.internalFields.selected;if(o.length&&(e._toggleSelectedClass(o,a),e.setAria("selected",a,o),e._showCheckboxes())){var r=e._getCheckBoxInstance(o);r.option("value",a)}}),this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value",this._dataAdapter.isAllSelected())},_updateParentsState:function(e,t){if(t){var n=this._dataAdapter.getNodeByKey(e.internalFields.parentKey),i=(0,a.default)(t.parents("."+R)[0]);if(this._showCheckboxes()){var o=n.internalFields.selected;this._getCheckBoxInstance(i).option("value",o),this._toggleSelectedClass(i,o)}n.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(n,i)}},_itemEventHandlerImpl:function(e,t,n){var i=(0,a.default)(e).closest("."+R).children("."+$);return t((0,m.extend)(this._extendActionArgs(i),n))},_itemContextMenuHandler:function(e){this._createEventHandler("onItemContextMenu",e)},_itemHoldHandler:function(e){this._createEventHandler("onItemHold",e)},_createEventHandler:function(e,t){var n=this._getNodeByElement(t.currentTarget);this._itemDXEventHandler(t,e,{node:this._dataAdapter.getPublicNode(n)})},_itemClass:function(){return $},_itemDataKey:function(){return j},_attachClickEvent:function(){var e="."+this._itemClass(),t="."+R+", ."+Y,n=(0,k.addNamespace)(c.default.name,this.NAME),i=(0,k.addNamespace)(I.down,this.NAME),o=this._itemContainer(),r=this;(0,s.off)(o,n,e),(0,s.off)(o,i,t),(0,s.on)(o,n,e,function(e){r._itemClickHandler(e,(0,a.default)(this))}),(0,s.on)(o,i,t,function(e){r._itemPointerDownHandler(e)})},_itemClickHandler:function(e,t){var n=this._getItemData(t),i=this._getNodeByElement(t);this._itemDXEventHandler(e,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&!e.isDefaultPrevented()&&this._updateItemSelection(!i.internalFields.selected,n,e)},_updateSelectionToFirstItem:function(e,t){for(var n=t;n>=0;){var i=(0,a.default)(e[n]);this._updateItemSelection(!0,i.find("."+$).get(0)),n--}},_updateSelectionToLastItem:function(e,t){for(var n=e.length,i=t;i<n;){var o=(0,a.default)(e[i]);this._updateItemSelection(!0,o.find("."+$).get(0)),i++}},_focusInHandler:function(e){var t=this;if(this._updateFocusState(e,!0),this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout(function(){t._setFocusedItem((0,a.default)(t.option("focusedElement")))}));var n=this._getActiveItem();this.option("focusedElement",(0,y.getPublicElement)(n.closest("."+R)))},_setFocusedItem:function(e){e&&e.length&&(e.children().hasClass(Z)||this.callBase(e),this._scrollableContainer.scrollToElement(e.find("."+$).first()))},_itemPointerDownHandler:function(e){if(this.option("focusStateEnabled")){var t=(0,a.default)(e.target).closest("."+R+", ."+Y);if(t.length){var n=t.hasClass(Z)?null:t;this.option("focusedElement",(0,y.getPublicElement)(n))}}},_findNonDisabledNodes:function(e){return e.not(function(){return(0,a.default)(this).children("."+$).hasClass(Z)})},_moveFocus:function(e,t){var n="up",i="down",o="first",a="last",r=this.option("rtlEnabled")?"right":"left",s=this.option("rtlEnabled")?"left":"right";this.$element().find("."+V).each(function(){E.default.stop(this,!0)});var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(e){case n:var u=this._prevItem(l);this.option("focusedElement",(0,y.getPublicElement)(u)),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,u.find("."+$).get(0));break;case i:var d=this._nextItem(l);this.option("focusedElement",(0,y.getPublicElement)(d)),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,d.find("."+$).get(0));break;case o:var c=l.first();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",(0,y.getPublicElement)(c));break;case a:var h=l.last();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",(0,y.getPublicElement)(h));break;case s:this._expandFocusedContainer();break;case r:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_nodeElements:function(){return this.$element().find("."+R).not(":hidden")},_expandFocusedContainer:function(){var e=(0,a.default)(this.option("focusedElement"));if(e.length&&!e.hasClass(z)){var t=e.find("."+V).eq(0);if(t.hasClass(L)){var n=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return void this.option("focusedElement",(0,y.getPublicElement)(n))}var i=this._getNodeByElement(e.children("."+$));this._toggleExpandedState(i,!0)}},_getClosestNonDisabledNode:function(e){do e=e.parent().closest("."+R);while(e.children(".dx-treeview-item.dx-state-disabled").length);return e},_collapseFocusedContainer:function(){var e=(0,a.default)(this.option("focusedElement"));if(e.length){var t=e.find("."+V).eq(0);if(!e.hasClass(z)&&t.hasClass(L)){var n=this._getNodeByElement(e.children("."+$));this._toggleExpandedState(n,!1)}else{var i=this._getClosestNonDisabledNode(e);i.length&&this.option("focusedElement",(0,y.getPublicElement)(i))}}},_encodeString:function(e){return(0,_.isString)(e)?encodeURI(e):e},_decodeString:function(e){return(0,_.isString)(e)?decodeURI(e):e},updateDimensions:function(){var e=this,t=new M.Deferred;return this._scrollableContainer?this._scrollableContainer.update().done(function(){t.resolveWith(e)}):t.resolveWith(this),t.promise()},selectItem:function(e){this._updateItemSelection(!0,e)},unselectItem:function(e){this._updateItemSelection(!1,e)},expandItem:function(e){this._toggleExpandedState(e,!0)},collapseItem:function(e){this._toggleExpandedState(e,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodesKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},expandAll:function(){var e=this._dataAdapter;(0,v.each)(e.getData(),function(t,n){return e.toggleExpansion(n.internalFields.key,!0)}),this.repaint()},collapseAll:function(){(0,v.each)(this._dataAdapter.getExpandedNodesKeys(),function(e,t){this._toggleExpandedState(t,!1)}.bind(this))}});e.exports=te},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(24),s=i(r),l=n(634),u=n(635),d=n(10),c=i(d),h=n(201),p=i(h),f=n(1),g=n(3),_=n(16),m=i(_),v=n(6),y=n(262),w=n(106),x="dx-datagrid-group-panel",b="dx-group-panel-message",C="dx-group-panel-item",k="dx-toolbar-label",I="dx-datagrid-expand",S="dx-group-row",D=".dx-header-filter",T=function(){return{init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(e){var t=this._grouping,n=this.option("grouping.autoExpandAll"),i=this.option("focusedRowEnabled"),o=e?e.remoteOperations:this.remoteOperations(),a=o.filtering&&o.sorting&&o.paging;!a||o.grouping||!n&&i?(!t||t instanceof l.GroupingHelper)&&(this._grouping=new u.GroupingHelper(this)):(!t||t instanceof u.GroupingHelper)&&(this._grouping=new l.GroupingHelper(this))},totalItemsCount:function(){var e=this,t=e.callBase();return t>0&&e._dataSource.group()&&e._dataSource.requireTotalCount()?t+e._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(e){return this._grouping.isGroupItemCountable(e)},isRowExpanded:function(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(e){return this._collapseExpandAll(e,!1)},expandAll:function(e){return this._collapseExpandAll(e,!0)},_collapseExpandAll:function(e,t){var n,i=this,o=i._dataSource,a=o.group(),r=s.default.normalizeSortingInfo(a||[]);if(r.length){for(n=0;n<r.length;n++)void 0===e||e===n?r[n].isExpanded=t:a&&a[n]&&(r[n].isExpanded=a[n].isExpanded);o.group(r),i._grouping.foreachGroups(function(n,i){void 0!==e&&e!==i.length-1||(n.isExpanded=t)},!1,!0),i.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(e){var t=this,n=t._dataSource;if(n.group())return n.beginLoading(),t._lastLoadOptions&&(t._lastLoadOptions.groupExpand=!0),t._changeRowExpandCore(e).always(function(){n.endLoading()})},_changeRowExpandCore:function(e){return this._grouping.changeRowExpand(e)},_hasGroupLevelsExpandState:function(e,t){if(e&&Array.isArray(e))for(var n=0;n<e.length;n++)if(e[n].isExpanded===t)return!0},_customizeRemoteOperations:function(e,t,n){var i=e.remoteOperations;e.storeLoadOptions.group?(i.grouping&&!e.isCustomLoading&&(i.groupPaging&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0)||(i.paging=!1)),i.grouping||i.sorting&&i.filtering&&!e.isCustomLoading&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1)||(i.paging=!1)):!e.isCustomLoading&&i.paging&&n.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(e){return this.callBase(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)},_handleDataLoaded:function(e){return this._grouping.handleDataLoaded(e,this.callBase.bind(this))},_handleDataLoadedCore:function(e){return this._grouping.handleDataLoadedCore(e,this.callBase.bind(this))}}}();p.default.extend(T);var E=function(){return{init:function(){var e=this;e.callBase(),e.createAction("onRowExpanding"),e.createAction("onRowExpanded"),e.createAction("onRowCollapsing"),e.createAction("onRowCollapsed")},_beforeProcessItems:function(e){var t=this._columnsController.getGroupColumns();return e=this.callBase(e),e.length&&t.length&&(e=this._processGroupItems(e,t.length)),e},_processItem:function(e,t){return(0,f.isDefined)(e.groupIndex)&&(0,f.isString)(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=this.callBase.apply(this,arguments),e},_processGroupItem:function(e){return e},_processGroupItems:function(e,t,n){var i,o,a,r,s=this,l=s._columnsController.getGroupColumns(),u=l[l.length-t];if(n||(i=s.option("scrolling.mode"),n={collectContinuationItems:"virtual"!==i&&"infinite"!==i,resultItems:[],path:[],values:[]}),r=n.resultItems,n.data&&(!n.collectContinuationItems&&n.data.isContinuation||r.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)})),e)if(0===t)r.push.apply(r,e);else for(o=0;o<e.length;o++)a=e[o],a&&"items"in a?(n.data=a,n.path.push(a.key),n.values.push(u&&u.deserializeValue&&!u.calculateDisplayValue?u.deserializeValue(a.key):a.key),s._processGroupItems(a.items,t-1,n),n.data=void 0,n.path.pop(),n.values.pop()):r.push(a);return r},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())},expandAll:function(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())},changeRowExpand:function(e){var t=this,n=t.isRowExpanded(e),i={key:e,expanded:n};return t.executeAction(n?"onRowCollapsing":"onRowExpanding",i),i.cancel?(new v.Deferred).resolve():(0,v.when)(t._changeRowExpandCore(e)).done(function(){i.expanded=!n,t.executeAction(n?"onRowCollapsed":"onRowExpanded",i)})},_changeRowExpandCore:function(e){var t,n=this,i=this._dataSource;if(i)return t=new v.Deferred,(0,v.when)(i.changeRowExpand(e)).done(function(){n.load().done(t.resolve).fail(t.reject)}).fail(t.reject),t},isRowExpanded:function(e){var t=this._dataSource;return t&&t.isRowExpanded(e)},expandRow:function(e){return this.isRowExpanded(e)?(new v.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new v.Deferred).resolve()},optionChanged:function(e){"grouping"===e.name&&(e.name="dataSource"),this.callBase(e)}}}(),O=function(e,t){var n=this._columnsController;switch(t.itemData.value){case"group":var i=n._dataSource.group()||[];n.columnOption(e.dataField,"groupIndex",i.length);break;case"ungroup":n.columnOption(e.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},A=function(){return{_getToolbarItems:function(){var e=this.callBase();return this._appendGroupingItem(e)},_appendGroupingItem:function(e){var t=this,n=!1,i=function(e){var i=(0,a.default)(e.itemElement).find("."+x);t._updateGroupPanelContent(i),(0,y.registerKeyboardAction)("groupPanel",t,i,void 0,t._handleActionKeyDown.bind(t)),n&&t.renderCompleted.fire(),n=!0};if(t._isGroupPanelVisible()){var o={html:"<div class='"+x+"'></div>",name:"groupPanel",onItemRendered:i,location:"before",locateInMenu:"never",sortIndex:1};e.push(o)}return e},_handleActionKeyDown:function(e){var t=e.event,n=(0,a.default)(t.target),i=n.closest("."+C).index(),o=this._columnsController.getGroupColumns()[i],r=o&&o.index;n.is(D)?this.getController("headerFilter").showHeaderFilterMenu(r,!0):this._processGroupItemAction(r),t.preventDefault()},_isGroupPanelVisible:function(){var e,t=this.option("groupPanel");return t&&(e=t.visible,"auto"===e&&(e="desktop"===m.default.current().deviceType)),e},_renderGroupPanelItems:function(e,t){var n=this;e.empty(),(0,g.each)(t,function(t,i){n._createGroupPanelItem(e,i)}),(0,w.restoreFocus)(this)},_createGroupPanelItem:function(e,t){var n=(0,a.default)("<div>").addClass(t.cssClass).addClass(C).data("columnData",t).appendTo(e).text(t.caption);return(0,w.setTabIndex)(this,n),n},_columnOptionChanged:function(e){if(!this._requireReady&&!s.default.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),n=t&&t.find("."+x);n&&n.length&&(this._updateGroupPanelContent(n),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(e){var t=this,n=t.getController("columns").getGroupColumns(),i=t.option("groupPanel");t._renderGroupPanelItems(e,n),i.allowColumnDragging&&!n.length&&((0,a.default)("<div>").addClass(b).text(i.emptyPanelText).appendTo(e),e.closest("."+k).css("maxWidth","none"),t.updateToolbarDimensions())},allowDragging:function(e){var t=this.option("groupPanel");return this._isGroupPanelVisible()&&t.allowColumnDragging&&e&&e.allowGrouping},getColumnElements:function(){var e=this.element();return e&&e.find("."+C)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var e,t=this,n=t.element();return n&&n.find("."+x).length?(e=n.offset(),{top:e.top,bottom:e.top+n.height()}):null},getName:function(){return"group"},getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled"),o=(0,a.default)(e.targetElement).closest("."+C);if(o.length&&(e.column=o.data("columnData")),i&&e.column){var r=e.column,s=!(0,f.isDefined)(r.allowGrouping)||r.allowGrouping;if(s){var l=(0,f.isDefined)(r.groupIndex)&&r.groupIndex>-1,u=n.option("grouping.texts"),d=O.bind(n,r);t=[{text:u.ungroup,value:"ungroup",disabled:!l,onItemClick:d},{text:u.ungroupAll,value:"ungroupAll",onItemClick:d}]}}return t},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}();t.GroupingHeaderPanelExtender=A;var P=function(){return{getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled");if(i&&e.row&&"group"===e.row.rowType){var o=n._columnsController,a=o.columnOption("groupIndex:"+e.row.groupIndex);if(a&&a.allowGrouping){var r=n.option("grouping.texts"),s=O.bind(n,a);t=[],t.push({text:r.ungroup,value:"ungroup",onItemClick:s},{text:r.ungroupAll,value:"ungroupAll",onItemClick:s})}}return t},_rowClick:function(e){var t=this,n=t.option("grouping.expandMode"),i=t.option("scrolling.mode"),o="infinite"!==i&&"rowClick"===n&&(0,a.default)(e.event.target).closest("."+S).length,r=(0,a.default)(e.event.target).closest("."+I).length;(o||r)&&t._changeGroupRowState(e),t.callBase(e)},_changeGroupRowState:function(e){var t=this.getController("data"),n=t.items()[e.rowIndex],i=this._columnsController.columnOption("groupIndex:"+n.groupIndex,"allowCollapsing");("data"===n.rowType||"group"===n.rowType&&i!==!1)&&(t.changeRowExpand(n.key),e.event.preventDefault(),e.handled=!0)}}}(),B=function(){return{getContextMenuItems:function(e){var t=this,n=t.option("grouping.contextMenuEnabled"),i=t.callBase(e);if(n&&e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var o=e.column;if(!o.command&&(!(0,f.isDefined)(o.allowGrouping)||o.allowGrouping)){var a=t.option("grouping.texts"),r=(0,f.isDefined)(o.groupIndex)&&o.groupIndex>-1,s=O.bind(t,o);i=i||[],i.push({text:a.groupByThisColumn,value:"group",beginGroup:!0,disabled:r,onItemClick:s}),o.showWhenGrouped&&i.push({text:a.ungroup,value:"ungroup",disabled:!r,onItemClick:s}),i.push({text:a.ungroupAll,value:"ungroupAll",onItemClick:s})}}return i}}}();s.default.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:c.default.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:c.default.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:c.default.format("dxDataGrid-groupHeaderText"),ungroup:c.default.format("dxDataGrid-ungroupHeaderText"),ungroupAll:c.default.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:c.default.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:E,columns:{_getExpandColumnOptions:function(){var e=this.callBase.apply(this,arguments);return e.cellTemplate=s.default.getExpandCellTemplate(),e}}},views:{headerPanel:A,rowsView:P,columnHeadersView:B}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(18),a=n(41),r=n(3),s=n(0),l=n(84),u=n(24),d=n(358),c=n(263),h=n(42),p=i(h),f=n(6),g=function(e,t){var n=new f.Deferred,i=(0,s.extend)({skip:0,take:1,requireTotalCount:!0},t);return e.load(i).done(function(e,t){n.resolve(t&&t.totalCount)}).fail(n.reject.bind(n)),n};t.GroupingHelper=d.GroupingHelper.inherit(function(){var e=function(e,t,n){return e.foreachGroups(function(e){if(!e.isExpanded)return t(e)},!1,!1,n,!0)},t=function(t,n){var i=0,o=n||0;return n&&(e(t,function(e){return!(e.offset-i>=n)&&void(i+=e.count-1);
}),o+=i),o},n=function e(t,n,i,o,a,r){var s,l,u,d=0,c=!1;for(s=0;s<n.length;s++){if(l=n[s],void 0!==l.items){i.push(l.key);var h=t.findGroupInfo(i);h&&!h.isExpanded?(l.collapsedItems=l.items,l.items=null,o+=h.count,r--,r<0&&d++,a&&(c=!0)):l.items&&(u=e(t,l.items,i,o,a,r),a&&(u.offset-o>1?l.isContinuation=!0:c=!0),o=u.offset,r=u.take,r<0&&(l.items.length?l.isContinuationOnNextPage=!0:d++)),i.pop()}else a&&(c=!0),o++,r--,r<0&&d++;a=!1}return c&&n.splice(0,1),d&&n.splice(-d,d),{offset:o,take:r}},i=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!(0,a.keysEqual)(null,e[n],t[n]))return!1;return!0},h=function e(t,n,o,a,r){var s,l;if(n){for(s=0;s<n.length;s++)if(l=n[s],"key"in l&&void 0!==l.items){o.push(l.key),r&&i(r.path,o)&&!l.isContinuation&&(r.offset=a);var u=t.findGroupInfo(o);u&&!l.isContinuation&&(u.offset=a),u&&!u.isExpanded?a+=u.count:a=e(t,l.items,o,a,r),o.pop()}else a++;return a}},_=function(e,t){var n,i;t.group&&(n=(0,u.normalizeSortingInfo)(t.group),i=(0,u.normalizeSortingInfo)(e.sort),e.sort=(0,l.arrangeSortingInfo)(n,i),delete t.group)},m=function(e,t,n){var i,o,a,r=(0,u.normalizeSortingInfo)(n||t.group),s=[];for(i=0;i<e.length;i++){for(a=[],o=0;o<=i;o++)a.push([r[o].selector,i===o?"<>":"=",e[o]]);s.push((0,u.combineFilters)(a))}return s=(0,u.combineFilters)(s,"or"),(0,u.combineFilters)([s,t.filter])},v=function e(t,n){var i,o=t.count||t.items.length;if(!t.count&&n>1)for(o=0,i=0;i<t.items.length;i++)o+=e(t.items[i],n-1);return o};return{handleDataLoading:function(n){var i,o,a=this,l=n.storeLoadOptions,u=[],d=0,c=!1,h=n.loadOptions.group,p=0;_(l,n.loadOptions),n.group=n.group||h,n.isCustomLoading||(i=(0,s.extend)({},l),i.skip=t(a,l.skip),i.skip&&i.take&&h&&(i.skip--,i.take++,c=!0),i.take&&h&&(o=i.take,i.take++),e(a,function(e){return!(e.offset>=i.skip+i.take+p)&&void(e.offset>=i.skip+p&&e.count&&(p+=e.count-1,u.push(e),d+=e.count))}),(0,r.each)(u,function(){i.filter=m(this.path,i,h)}),n.storeLoadOptions=i,n.collapsedGroups=u,n.collapsedItemsCount=d,n.skip=i.skip||0,n.skipFirstItem=c,n.take=o)},handleDataLoaded:function(e,t){function i(e,t,n,a,r){if(e&&t.length&&n.length){var s,l,u=(0,o.toComparable)(t[0],!0);for(s=0;s<e.length&&(l=(0,o.toComparable)(e[s].key,!0),!(r>=a.offset||u===l));s++)r+=v(e[s],n.length);e.length&&u===l||e.splice(s,0,{key:t[0],items:[],count:1===t.length?a.count:void 0}),i(e[s].items,t.slice(1),n.slice(1),a,r)}}var a,r,s=this,d=e.data,c=e.collapsedGroups,h=(0,u.normalizeSortingInfo)(e.group),f=h.length;if(e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra.totalCount+=e.collapsedItemsCount),t(e),f){if(r=(0,p.default)(d),(0,l.multiLevelGroup)(r,h).enumerate().done(function(e){d=e}),c)for(a=0;a<c.length;a++)i(d,c[a].path,h,c[a],e.skip);e.isCustomLoading||n(s,d,[],e.skip,e.skipFirstItem,e.take),e.data=d}},isGroupItemCountable:function(e){return null===e.items},updateTotalItemsCount:function(){var t=0;e(this,function(e){e.count&&(t-=e.count-1)}),this.callBase(t)},changeRowExpand:function(e){var n,i=this,o=i._dataSource,a=o.beginPageIndex?o.beginPageIndex():o.pageIndex(),r=o.items(),s=t(i,a*o.pageSize()),l=i.findGroupInfo(e);return n=l&&!l.isExpanded?(new f.Deferred).resolve(l.count):g(o,{filter:(0,c.createGroupFilter)(e,{filter:o.filter(),group:o.group()})}),(0,f.when)(n).done(function(t){t=parseInt(t.length?t[0]:t),l?(h(i,r,[],s),l.isExpanded=!l.isExpanded,l.count=t):(l={offset:-1,count:t,path:e,isExpanded:!1},h(i,r,[],s,l),l.offset>=0&&i.addGroupInfo(l)),i.updateTotalItemsCount()}).fail(function(){o.fireEvent("loadError",arguments)})},allowCollapseAll:function(){return!1},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,r=o._dataSource;if(this.callBase.apply(this,arguments),n||i.reload)return e(o,function(e){var t=g(r,{filter:(0,c.createGroupFilter)(e.path,a)}),n=g(r,{filter:(0,d.createOffsetFilter)(e.path,a)});return(0,f.when)(n,t).done(function(t,n){t=parseInt(t.length?t[0]:t),n=parseInt(n.length?n[0]:n),e.offset=t,e.count!==n&&(e.count=n,o.updateTotalItemsCount())})},!0)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(3),r=n(24),s=n(358),l=n(263),u=n(19),d=i(u),c=n(37),h=n(6);t.GroupingHelper=s.GroupingHelper.inherit(function(){function e(e,t,n,i){var o=t.items[i],a=e.skips&&e.skips[n],r=e.takes&&e.takes[n],s=i===t.items.length-1,l=0===i,u=l&&a||0,d=o.count>r+u;l&&void 0!==a&&(o.isContinuation=!0),s&&void 0!==r&&d&&(o.isContinuationOnNextPage=!0)}function t(e,t,n){var i=n-1,o=e.group?e.group.length:0;t.skip=e.skips&&e.skips[i],e.takes&&void 0!==e.takes[i]&&(o===n?t.take=t.count?t.count-(t.skip||0):0:t.take=0,t.take+=e.takes[i])}function n(e){return!Array.isArray(e)}function i(e){n(e.data)||(e.data=new h.Deferred)}function u(e,o,a,r,s,l){o.isCustomLoading||(r={},_(e,l,a,r,[]),t(o,r,a));var u=o.group?o.group.length:0;r.paths.length&&u-a>0?(i(o),p(e,o,r,a,s,l)):r.paths.length&&o.storeLoadOptions.group?(i(o),f(e,o,r,l)):n(o.data)&&o.data.resolve(l)}function p(t,n,i,o,r,s){var d=n.group||[],c=d[r+1],p=[];(0,a.each)(i.paths,function(o){var a={requireTotalCount:!1,requireGroupCount:!0,group:[c],groupSummary:n.storeLoadOptions.groupSummary,filter:(0,l.createGroupFilter)(i.paths[o],{filter:n.storeLoadOptions.filter,group:d}),select:n.storeLoadOptions.select};0===o&&(a.skip=i.skip||0),o===i.paths.length-1&&(a.take=i.take);var s=0===a.take?[]:t._dataSource.loadFromStore(a);(0,h.when)(s).done(function(t){var a=i.items[o];e(n,i,r,o),a.items=t}),p.push(s)}),h.when.apply(null,p).done(function(){v(t,n,s,o+1),u(t,n,o+1,i,r+1,s)})}function f(t,n,i,s){var u=[],d=n.group||[];(0,a.each)(i.paths,function(e,t){u.push((0,l.createGroupFilter)(t,{group:n.isCustomLoading?n.storeLoadOptions.group:d}))});var c=n.storeLoadOptions.filter;n.storeLoadOptions.isLoadingAll||(c=(0,r.combineFilters)([c,(0,r.combineFilters)(u,"or")]));var p=(0,o.extend)({},n.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:d.concat((0,r.normalizeSortingInfo)(n.storeLoadOptions.sort||[])),filter:c}),f=t._dataSource.isLastLevelGroupItemsPagingLocal();f||(p.skip=i.skip,p.take=i.take),(0,h.when)(0===i.take?[]:t._dataSource.loadFromStore(p)).done(function(o,r){f&&(o=t._dataSource.sortLastLevelGroupItems(o,d,i.paths),o=i.skip?o.slice(i.skip):o,o=i.take?o.slice(0,i.take):o),(0,a.each)(i.items,function(t,a){var r=a.count-(0===t&&i.skip||0),s=o.splice(0,r);e(n,i,d.length-1,t),a.items=s}),n.data.resolve(s)}).fail(n.data.reject)}var g=function(e,t,n){return e.foreachGroups(function(e,n){if(e.isExpanded)return t(e,n)},!0,!1,n,n)},_=function e(t,n,i,o,a,r,s){var l,u,d,c;if(o.items=o.items||[],o.paths=o.paths||[],o.count=o.count||0,o.lastCount=o.lastCount||0,i)for(l=0;l<n.length;l++)u=n[l],void 0!==u.items&&(a.push(u.key),r?c=!0:(d=t.findGroupInfo(a),c=d&&d.isExpanded),c?u.items?e(t,u.items,i-1,o,a,r,s):1!==i||!u.count||r&&!s||(o.items.push(u),o.paths.push(a.slice(0)),o.count+=o.lastCount,o.lastCount=u.count):(u.collapsedItems=u.items,u.items=null),a.pop())},m=function(e,t,n,i,o){var a,r=e.findGroupInfo(i);r?(n?r.count=t.count>0?t.count:t.items&&t.items.length||0:t.count=r.count||t.count,r.offset=o):(n&&(a=t.count>0?t.count:t.items.length),e.addGroupInfo({isExpanded:e._isGroupExpanded(i.length-1),path:i.slice(0),offset:o,count:a||0}))},v=function e(t,n,i,o,a,r,s){var l,u,d,c=n.group?n.group.length:0,h=c===o,p=n.remoteOperations.paging,f=0,g=0;if(a=a||0,r=r||[],p&&!s&&(f=0===a?n.skip||0:n.skips[a-1]||0),a>=o)return i.length;for(d=0;d<i.length;d++)if(l=i[d]){if(r.push(l.key),!l.count&&!l.items||void 0===l.items)return-1;if(m(t,l,h,r,f+d),u=l.items?e(t,n,l.items,o,a+1,r,d):l.count||-1,u<0)return-1;g+=u,r.pop()}return g},y=function(e,t){return e&&e.length&&e[t]&&!!e[t].isExpanded},w=function(e,t,n){var i,o,a=n;for(i=0;i<e.length;i++)o=e[i].offset+1,i>0&&(o+=e[i-1].childrenTotalCount,t&&(o+=x(a,t,o,i-1)*i)),a+=o;return a},x=function(e,t,n,i){if(i=i||0,t>1&&n>0){var o=e-Math.floor(e/t)*t||t;return o+=n-i-2,o<0&&(o+=t),Math.floor(o/(t-i-1))}return 0},b=function(e,t){var n=new h.Deferred,i=!(!t.group||!t.group.length),a=(0,o.extend)({skip:0,take:1,requireGroupCount:i,requireTotalCount:!i},t,{group:i?t.group:null});return e.load(a).done(function(e,t){var o=t&&(i?t.groupCount:t.totalCount);if(!isFinite(o))throw c.errors.Error(i?"E4022":"E4021");n.resolve(o)}).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(e){var t=0,n=e.extra&&e.extra.totalCount||0,i=e.extra&&e.extra.groupCount||0,o=this._dataSource.pageSize(),a=this._isVirtualPaging();g(this,function(e){e.childrenTotalCount=0}),g(this,function(e,n){var i=w(n,a?0:o,t),r=e.count+e.childrenTotalCount;a||(r+=x(i,o,r,n.length-1)),n[n.length-2]?n[n.length-2].childrenTotalCount+=r:t+=r}),this.callBase(t-n+i)},_isGroupExpanded:function(e){var t=this._dataSource.group();return y(t,e)},_updatePagingOptions:function(e,t){var n=this,i=n._isVirtualPaging(),o=n._dataSource.pageSize(),a=[],r=[],s=0,l=0;e.take&&(g(this,function(e){e.childrenTotalCount=0,e.skipChildrenTotalCount=0}),g(n,function(n,u){var d,c,h=0,p=0,f=w(u,i?0:o,l),g=0,_=0,m=n.count+n.childrenTotalCount,v=m;t&&t(n,f),d=e.skip-f,f<=e.skip+e.take&&m&&(c=e.take,i||(g=x(f,o,m,u.length-1),m+=g*u.length,v+=g,o&&d>=0&&(h=u.length,p=u.length-1,_=Math.floor(d/o))),d>=0?(f+m>e.skip&&a.unshift(d-_*h-n.skipChildrenTotalCount),f+m>=e.skip+c&&r.unshift(c-h-n.childrenTotalCount+n.skipChildrenTotalCount)):f+m>=e.skip+c&&r.unshift(c+d-n.childrenTotalCount)),f<=e.skip&&(u[u.length-2]?u[u.length-2].skipChildrenTotalCount+=Math.min(v,d+1-_*p):s+=Math.min(v,d+1)),f<=e.skip+c&&(m=Math.min(v,d+c-(_+1)*p),u[u.length-2]?u[u.length-2].childrenTotalCount+=m:l+=m)}),e.skip-=s,e.take-=l-s),e.skips=a,e.takes=r},changeRowExpand:function(e){var t=this,n=t.findGroupInfo(e),i=t._dataSource,o=i.remoteOperations().groupPaging,a=(0,r.normalizeSortingInfo)(i.group());return n?(n.isExpanded=!n.isExpanded,o&&n.isExpanded&&e.length<a.length?b(i,{filter:(0,l.createGroupFilter)(e,{filter:i.filter(),group:i.group()}),group:[a[e.length]],select:i.select()}).done(function(e){n.count=e}):(new h.Deferred).resolve()):(new h.Deferred).reject()},handleDataLoading:function(e){var t=this,n=e.storeLoadOptions,i=(0,r.normalizeSortingInfo)(n.group||e.loadOptions.group);if(!e.isCustomLoading&&i.length){if(e.remoteOperations.grouping){var o=t._dataSource.remoteOperations().paging;n.group=(0,r.normalizeSortingInfo)(n.group),n.group.forEach(function(e,t){var i=t===n.group.length-1;e.isExpanded=!o||!i})}e.group=e.group||i,e.remoteOperations.paging?(e.skip=n.skip,e.take=n.take,n.requireGroupCount=!0,n.group=i.slice(0,1),t._updatePagingOptions(e),n.skip=e.skip,n.take=e.take):t.foreachGroups(function(e){e.count=0})}},handleDataLoadedCore:function(e,t){var n,i=this,o=(0,r.normalizeSortingInfo)(e.storeLoadOptions.group||e.loadOptions.group).length,a=e.group?e.group.length:0,s={};if(e.isCustomLoading)t(e),_(i,e.data,o,s,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if(n=v(i,e,e.data,o),n<0)throw d.default.Error("E1037");if(e.remoteOperations.paging||o&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=n,e.extra.groupCount=e.data.length),a&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))throw c.errors.Error("E4022");i.updateTotalItemsCount(e),e.remoteOperations.paging||i._updatePagingOptions(e),t(e),e.remoteOperations.paging||i._processPaging(e,o)}u(i,e,o,s,0,e.data)},_processSkips:function(e,t,n){if(n){var i=e[0],o=t[0],a=i&&i.items;void 0!==o&&(i.isContinuation=!0,a&&(i.items=a.slice(o),this._processSkips(i.items,t.slice(1),n-1)))}},_processTakes:function(e,t,n,i,o){if(i&&e){o=o||[];var a=e[e.length-1],r=a&&a.items,s=n[0],l=t[0];if(a){var u=a.count-(a.isContinuation&&l||0)||r.length;void 0!==s&&u>s&&(a.isContinuationOnNextPage=!0,o.forEach(function(e){e.isContinuationOnNextPage=!0}),r&&(r=r.slice(0,s),a.items=r)),o.push(a),this._processTakes(r,t.slice(1),n.slice(1),i-1,o)}}},_processPaging:function(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(e){return e},refresh:function(e,t,n){function i(e,t){t.length===a+1&&(e.isExpanded=o)}var o,a,u=this,d=u._dataSource,c=e.storeLoadOptions,p=e.group||e.storeLoadOptions.group,f=(0,r.normalizeSortingInfo)(u._group);for(a=0;a<f.length;a++)o=y(p,a),y(u._group,a)!==o&&u.foreachGroups(i);if(u.callBase.apply(this,arguments),p&&e.remoteOperations.paging&&(t||n.reload))return g(u,function(t){var n=b(d,{filter:(0,l.createGroupFilter)(t.path,{filter:c.filter,group:p}),group:p.slice(t.path.length),select:c.select}),i=b(d,{filter:(0,s.createOffsetFilter)(t.path,{filter:c.filter,group:p}),group:p.slice(t.path.length-1,1),select:c.select});return(0,h.when)(i,n).done(function(n,i){n=parseInt(n.length?n[0]:n),i=parseInt(i.length?i[0]:i),t.offset=n,t.count!==i&&(t.count=i,u.updateTotalItemsCount(e))})},!0)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(359),s=i(r);a.default.registerModule("masterDetail",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}n(638);var o=n(24),a=i(o),r=n(362),s=i(r),l=n(0);a.default.registerModule("editing",(0,l.extend)(!0,{},s.default,{extenders:{controllers:{data:{_changeRowExpandCore:function(e){var t=this._editingController;Array.isArray(e)&&t&&t.refresh(),this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(360),s=i(r);a.default.registerModule("editorFactory",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(363),s=i(r);a.default.registerModule("validating",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(201),s=i(r),l=n(364),u=i(l);a.default.registerModule("virtualScrolling",u.default),s.default.extend(u.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(366),s=i(r);a.default.registerModule("filterRow",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(4),h=n(11),p=n(78),f=n(0),g=n(96),_=i(g),m="dx-context-menu-content-delimiter",v="dx-submenu",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,f.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{orientation:"horizontal",tabIndex:null,onHoverStart:c.noop})}},{key:"_initDataAdapter",value:function(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initDataAdapter",this).call(this)}},{key:"_renderContentImpl",value:function(){this._renderContextMenuOverlay(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderContentImpl",this).call(this);var e=this._dataAdapter.getNodeByKey(this.option("_parentKey"));e&&this._renderItems(this._getChildNodes(e)),this._renderDelimiter()}},{key:"_renderDelimiter",value:function(){this.$contentDelimiter=(0,d.default)("<div>").appendTo(this._itemContainer()).addClass(m)}},{key:"_getOverlayOptions",value:function(){return(0,f.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getOverlayOptions",this).call(this),{onPositioned:this._overlayPositionedActionHandler.bind(this)})}},{key:"_overlayPositionedActionHandler",value:function(e){this._showDelimiter(e)}},{key:"_hoverEndHandler",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_hoverEndHandler",this).call(this,e),this._toggleFocusClass(!1,e.currentTarget)}},{key:"_isMenuHorizontal",value:function(){return"horizontal"===this.option("orientation")}},{key:"_hoverStartHandler",value:function(e){var n=this.option("onHoverStart");n(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_hoverStartHandler",this).call(this,e),this._toggleFocusClass(!0,e.currentTarget)}},{key:"_drawSubmenu",value:function(e){this._actions.onShowing({rootItem:(0,h.getPublicElement)(e),submenu:this}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_drawSubmenu",this).call(this,e),this._actions.onShown({rootItem:(0,h.getPublicElement)(e),submenu:this})}},{key:"_hideSubmenu",value:function(e){this._actions.onHiding({cancel:!0,rootItem:(0,h.getPublicElement)(e),submenu:this}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_hideSubmenu",this).call(this,e),this._actions.onHidden({rootItem:(0,h.getPublicElement)(e),submenu:this})}},{key:"_showDelimiter",value:function(e){if(this.$contentDelimiter){var t=this._itemContainer().children("."+v).eq(0),n=this.option("position").of,i={of:t},o=e.position,a=o.v.location,r=o.h.location,s=n.offset(),l=Math.round(s.left),u=Math.round(s.top),d=n.width(),c=n.height(),h=t.width(),f=t.height();this.$contentDelimiter.css("display","block"),this.$contentDelimiter.width(this._isMenuHorizontal()?d<h?d-2:h:2),this.$contentDelimiter.height(this._isMenuHorizontal()?2:c<f?c-2:f),this._isMenuHorizontal()?a>u?Math.round(r)===l?(i.offset="1 -1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="right top"):(this.$contentDelimiter.height(5),Math.round(r)===l?(i.offset="1 4",i.at=i.my="left bottom"):(i.offset="-1 2",i.at=i.my="right bottom")):r>l?Math.round(a)===u?(i.offset="-1 1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="left bottom"):Math.round(a)===u?(i.offset="1 1",i.at=i.my="right top"):(i.offset="1 -1",i.at=i.my="right bottom"),(0,p.setup)(this.$contentDelimiter,i)}}},{key:"_getContextMenuPosition",value:function(){return this.option("position")}},{key:"isOverlayVisible",value:function(){return this._overlay.option("visible")}},{key:"getOverlayContent",value:function(){return this._overlay.$content()}}]),t}(_.default);e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(369),s=i(r);a.default.registerModule("headerFilter",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(371),s=i(r);a.default.registerModule("filterSync",s.default)},function(e,t,n){function i(e,t){var n=a("<div>").addClass(l),i=a("<div>").addClass(u),o=e.value||[],h=function(e){return e&&e.length>0?e[0]:null},p=function(e){return e&&2===e.length?e[1]:null};t.append(n),t.append(a("<span>").addClass(d).text(c)),t.append(i),t.addClass(s),this._editorFactory.createEditor.call(this,n,r({},e.field,e,{value:h(o),parentType:"filterBuilder",setValue:function(t){o=[t,p(o)],e.setValue(o)}})),this._editorFactory.createEditor.call(this,i,r({},e.field,e,{value:p(o),parentType:"filterBuilder",setValue:function(t){o=[h(o),t],e.setValue(o)}}))}function o(e){return{name:"between",caption:e,icon:"range",valueSeparator:c,dataTypes:["number","date","datetime"],editorTemplate:i}}var a=n(2),r=n(0).extend,s="dx-filterbuilder-range",l=s+"-start",u=s+"-end",d=s+"-separator",c="\u2013";t.getConfig=o},function(e,t,n){var i={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},o={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};e.exports={getIconByFilterOperation:function(e){return i[e]},getNameByFilterOperation:function(e){return o[e]}}},function(e,t,n){function i(e){var t=function(e,t){var n=[],i=e.length-1;return e&&e.forEach(function(e,o){if(h.isCondition(e)||h.isGroup(e)){var a=h.getFilterExpression(e,[t],[],"headerFilter");n.push(a)}else n.push(h.getFilterExpression([t.dataField,"=",e],[t],[],"headerFilter"));o!==i&&n.push("or")}),1===n.length&&(n=n[0]),n},n=function(e,t){return t?t+"/"+e:e},i=function e(t,i){var o=[];return t.forEach(function(t){if(t.items){var a=e(t.items,n(t.text,i));o=o.concat(a)}t.selected&&o.push(n(t.text,i))}),o},o=e&&e.getController("headerFilter"),a=function(t){var n=t.value,a=e.columnOption(t.field.dataField),r=a&&a.headerFilter,s=a&&a.lookup;if(r&&r.dataSource||s&&s.dataSource){a=u({},a,{filterType:"include",filterValues:[n]});var l=o.getDataSource(a);l.paginate=!1;var h=r&&r.dataSource;!h&&s.items&&(l.store=s.items);var p=new d.DataSource(l),f=new c.Deferred;return p.load().done(function(e){f.resolve(i(e)[0])}),f}var g=o.getHeaderItemText(n,a,0,e.option("headerFilter"));return g};return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:t,editorTemplate:function(t,n){var i=s("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(n),a=u(!0,{},e.columnOption(t.field.dataField));(0,r.renderValueText)(i,t.text&&t.text.split("|"));var l=function(e){t.setValue(e)};return a.filterType="include",a.filterValues=t.value?t.value.slice():[],o.showHeaderFilterMenuBase({columnElement:i,column:a,apply:function(){l(this.filterValues),o.hideHeaderFilterMenu(),t.closeEditor()},onHidden:function(){t.closeEditor()},isFilterBuilder:!0}),n},customizeText:a}}function o(e){return u(i(e),{name:"anyof",icon:"selectall",caption:l.format("dxFilterBuilder-filterOperationAnyOf")})}function a(e){var t=i(e);return u({},t,{calculateFilterExpression:function(e,n){var i=t.calculateFilterExpression(e,n);return i&&0!==i.length?"!"===i[0]?i:["!",i]:null},name:"noneof",icon:"unselectall",caption:l.format("dxFilterBuilder-filterOperationNoneOf")})}var r=n(372),s=n(2),l=n(10),u=n(0).extend,d=n(46),c=n(6),h=n(202);t.anyOf=o,t.noneOf=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(373),s=i(r);a.default.registerModule("filterBuilder",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(375),s=i(r);a.default.registerModule("filterPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(376),s=i(r);a.default.registerModule("search",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(377),s=i(r);a.default.registerModule("pager",s.default)},function(e,t,n){var i=n(2),o=n(5),a=n(15),r=n(45),s=n(9),l=n(4),u=n(3).each,d=n(1),c=n(0).extend,h=n(20),p=n(23),f=n(10),g=n(17),_=n(95),m=n(119),v=n(8),y=n(106),w=4,x="dx-pager",b="dx-page",C="."+b,k="dx-pages",I="dx-light-mode",S="dx-light-pages",D="dx-page-index",T="dx-pages-count",E="dx-selection",O="dx-separator",A="dx-page-sizes",P="dx-page-size",B="."+P,M="dx-navigate-button",F="dx-prev-button",R="dx-next-button",V="dx-info",H="dx-info-text",L="dx-button-disable",z=a.inherit({ctor:function(e,t){var n=this;n.index=t,n._$page=i("<div>").text(e).addClass(b)},value:function(e){var t=this;if(!d.isDefined(e)){var n=t._$page.text();return d.isNumeric(n)?parseInt(n):n}t._$page.text(e)},element:function(){return this._$page},select:function(e){this._$page.toggleClass(E,e)},render:function(e,t){t?this._$page.prependTo(e):this._$page.appendTo(e)}}),$=g.inherit({_getDefaultOptions:function(){return c(this.callBase(),{visible:!0,pagesNavigatorVisible:"auto",pageIndex:1,maxPagesCount:10,pageCount:10,totalCount:0,pageSize:5,showPageSizes:!0,pageSizes:[5,10],hasKnownLastPage:!0,showNavigationButtons:!1,showInfo:!1,infoText:f.getFormatter("dxPager-infoText"),pagesCountText:f.getFormatter("dxPager-pagesCountText"),rtlEnabled:!1,lightModeEnabled:!1,pageIndexChanged:l.noop,pageSizeChanged:l.noop})},_toggleVisibility:function(e){var t=this.$element();t&&t.css("display",e?"":"none")},_getPages:function(e,t){var n,i,o=[],a=!this.option("hasKnownLastPage");if(t>0||a)if(t<=this.option("maxPagesCount")){for(i=1;i<=t;i++)o.push(new z(i,i-1));a&&o.push(new z(">",i-1))}else{for(o.push(new z(1,0)),n=e?e.value()-e.index:1,i=1;i<=w;i++)o.push(new z(n+i,i));o.push(new z(t,w+1)),a&&o.push(new z(">",w+1))}return o},_getPageByValue:function(e){var t,n,i=this;for(n=0;n<i._pages.length;n++)if(t=i._pages[n],t.value()===e)return t},_processSelectedPage:function(e,t,n){var i,o=this,a=!1;o._pages&&(u(o._pages,function(e,n){t===n.value()&&(a=!0)}),a||(o.selectedPage=null)),d.isDefined(o.selectedPage)?t===n&&n>e&&o.selectedPage.index!==w+1&&(o.selectedPage.index=w+1):t>w&&t<n&&(i=n-w<t?w-(n-t)+1:2,o.selectedPage=new z(t,i))},_selectPageByValue:function(e){var t,n,i,o,a=this,r=a._getPageByValue(e),s=a._pages,l=s.length;if(d.isDefined(r)){if(n=a._pages[r.index-1],i=a._pages[r.index+1],i&&">"===i.value()&&(o=i,i=void 0,l--,s.pop()),a.selectedPage&&a.selectedPage.select(!1),r.select(!0),a.selectedPage=r,i&&i.value()-e>1)if(0!==r.index)for(n.value(e+1),a._pages.splice(r.index,1),a._pages.splice(r.index-1,0,r),a._pages[r.index].index=r.index,r.index=r.index-1,t=r.index-1;t>0;t--)a._pages[t].value(a._pages[t+1].value()-1);else for(t=0;t<l-1;t++)a._pages[t].value(t+1);if(n&&e-n.value()>1)if(r.index!==l-1)for(i.value(e-1),a._pages.splice(r.index,1),a._pages.splice(r.index+1,0,r),a._pages[r.index].index=r.index,r.index=r.index+1,t=r.index+1;t<l-1;t++)a._pages[t].value(a._pages[t-1].value()+1);else for(t=1;t<=l-2;t++)a._pages[l-1-t].value(a._pages[l-1].value()-t);o&&s.push(o)}},_updatePagesTabIndices:function(){var e=this,t=this.selectedPage._$page,n=function n(){var a=i(e.element()).find("[role=button]:not(.dx-button-disable)");u(a,function(e,t){return i(t).attr("tabindex",0)}),o.off(t,"focus",n)};o.on(t,"focus",n)},_nextPage:function(e){var t=this.option("pageIndex"),n=this.option("pageCount");d.isDefined(t)&&(t="next"===e?++t:--t,t>0&&t<=n&&this.option("pageIndex",t))},_wrapClickAction:function(e){var t=this;return function(n){if("dxpointerup"===n.type)t._pointerUpHappened=!0;else if(t._pointerUpHappened)return void(t._pointerUpHappened=!1);e({event:n})}},_renderPages:function(e){var t,n,a=this,r=e.length,s=a._createAction(function(e){var t=e.event,n=i(t.target).text(),o=">"===n?a.option("pageCount")+1:Number(n);a.option("pageIndex",o)});r>1&&(a._pageClickHandler=this._wrapClickAction(s),o.on(a._$pagesChooser,v.addNamespace([p.up,h.name],a.Name+"Pages"),C,a._pageClickHandler),y.registerKeyboardAction("pager",a,a._$pagesChooser,C,s));for(var l=0;l<r;l++)n=e[l],n.render(a._$pagesChooser,a.option("rtlEnabled")),a.setAria({role:"button",label:"Page "+n.value()},n.element()),y.setTabIndex(a,n.element()),e[l+1]&&e[l+1].value()-n.value()>1&&(t=i("<div>").text(". . .").addClass(O),a.option("rtlEnabled")?t.prependTo(a._$pagesChooser):t.appendTo(a._$pagesChooser))},_calculateLightPagesWidth:function(e,t){return Number(e.css("minWidth").replace("px",""))+10*t.toString().length},_renderLightPages:function(){var e,t,n=this,a=this.option("pageCount"),r=this.option("pageIndex"),s=n._createAction(function(){n.option("pageIndex",a)}),l=this.option("pagesCountText"),u=i("<div>").addClass(S).appendTo(this._$pagesChooser);t=i("<div>").addClass(D).appendTo(u),n._pageIndexEditor=n._createComponent(t,m,{value:r,min:1,max:a,width:n._calculateLightPagesWidth(t,a),onValueChanged:function(e){n.option("pageIndex",e.value)}}),i("<span>").text(l).addClass(H+" "+V).appendTo(u),e=i("<span>").addClass(T).text(a),o.on(e,v.addNamespace(h.name,n.Name+"PagesCount"),function(e){s({event:e})}),y.registerKeyboardAction("pager",n,e,void 0,s),e.appendTo(u),n.setAria({role:"button",label:"Navigates to the last page"},e)},_renderPagesChooser:function(){var e=this,t=e.option("lightModeEnabled"),n=e.option("pagesNavigatorVisible"),o=e.$element();if(e._$pagesChooser&&e._$pagesChooser.remove(),n){if(e._pages&&0===e._pages.length)return void(e.selectedPage=null);e._$pagesChooser=i("<div>").addClass(k).appendTo(o),"auto"===n&&e._$pagesChooser.css("visibility",1===e.option("pageCount")?"hidden":""),t||e._renderInfo(),e._renderNavigateButton("prev"),t?e._renderLightPages():e._renderPages(e._pages),e._renderNavigateButton("next"),e._updatePagesChooserWidth()}},_renderPageSizes:function(){var e,t,n,a=this,r=a.option("pageSizes"),s=r&&r.length,l=a.option("pageSize"),u=a._createAction(function(e){var n=e.event;t=parseInt(i(n.target).text()),a.option("pageSize",t)});for(o.on(a._$pagesSizeChooser,v.addNamespace(h.name,a.Name+"PageSize"),B,function(e){u({event:e})}),y.registerKeyboardAction("pager",a,a._$pagesSizeChooser,B,u),e=0;e<s;e++)n=i("<div>").text(r[e]).addClass(P),a.setAria({role:"button",label:"Display "+r[e]+" items on page"},n),y.setTabIndex(a,n),l===r[e]&&n.addClass(E),a._$pagesSizeChooser.append(n)},_calculateLightPageSizesWidth:function(e){return Number(this._$pagesSizeChooser.css("minWidth").replace("px",""))+10*Math.max.apply(Math,e).toString().length},_renderLightPageSizes:function(){var e,t=this,n=t.option("pageSizes");e=i("<div>").appendTo(t._$pagesSizeChooser),t._pageSizeEditor=t._createComponent(e,_,{dataSource:n,value:t.option("pageSize"),onSelectionChanged:function(e){t.option("pageSize",e.selectedItem)},width:t._calculateLightPageSizesWidth(n)})},_renderPagesSizeChooser:function(){var e=this,t=e.option("pageSizes"),n=e.option("showPageSizes"),o=t&&t.length,a=e.$element();e._$pagesSizeChooser&&e._$pagesSizeChooser.remove(),n&&o&&(e._$pagesSizeChooser=i("<div>").addClass(A).appendTo(a),e.option("lightModeEnabled")?e._renderLightPageSizes():e._renderPageSizes(),e._pagesSizeChooserWidth=e._$pagesSizeChooser.width())},_renderInfo:function(){var e=this.option("infoText");this.option("showInfo")&&d.isDefined(e)&&(this._$info=i("<div>").css("display",this._isInfoHide?"none":"").addClass(V).text(r.format(e,this.selectedPage&&this.selectedPage.value(),this.option("pageCount"),this.option("totalCount"))).appendTo(this._$pagesChooser),this._isInfoHide||(this._infoWidth=this._$info.outerWidth(!0)))},_renderNavigateButton:function(e){var t,n=this,a=n._createAction(function(){n._nextPage(e)});(n.option("showNavigationButtons")||n.option("lightModeEnabled"))&&(t=i("<div>").addClass(M),o.on(t,v.addNamespace([p.up,h.name],n.Name+"Pages"),n._wrapClickAction(a)),y.registerKeyboardAction("pager",n,t,void 0,a),n.setAria({role:"button",label:"prev"===e?"Previous page":" Next page"},t),y.setTabIndex(n,t),n.option("rtlEnabled")?(t.addClass("prev"===e?R:F),t.prependTo(this._$pagesChooser)):(t.addClass("prev"===e?F:R),t.appendTo(this._$pagesChooser)))},_renderContentImpl:function(){this.$element().toggleClass(I,this.option("lightModeEnabled")),this._toggleVisibility(this.option("visible")),this._updatePageSizes(!0),this._updatePages(!0),y.restoreFocus(this)},_initMarkup:function(){var e=this.$element();e.addClass(x);var t=i("<div>").addClass(b);this._$pagesChooser=i("<div>").addClass(k).append(t).appendTo(e)},_render:function(){this.option().lightModeEnabled=!1,this.callBase(),this._updateLightMode()},_updatePageSizes:function(e){var t=this.option("lightModeEnabled"),n=this.option("pageSize"),i=this.option("pageSizes");
t&&this._pageSizeEditor&&this._pageSizeEditor.option({value:n,dataSource:i,width:this._calculateLightPageSizesWidth(i)}),t&&!e||this._renderPagesSizeChooser()},_updatePages:function(e){var t=this.option("pageCount"),n=this.option("pageIndex"),i=this.option("lightModeEnabled");i?this._pageIndexEditor&&this._pageIndexEditor.option({value:n,width:this._calculateLightPagesWidth(this._pageIndexEditor.$element(),t)}):(this._processSelectedPage(this.option("maxPagesCount"),n,t),this._pages=this._getPages(this.selectedPage,t),this._selectPageByValue(n)),i&&!e||this._renderPagesChooser(),this._updateButtonsState(n)},_isPageIndexInvalid:function(e,t){var n="next"===e,i=this.option("rtlEnabled");return i&&n||!i&&!n?t<=1:t>=this.option("pageCount")},_updateButtonsState:function(e){var t=this.$element().find("."+R),n=this.$element().find("."+F);t.toggleClass(L,this._isPageIndexInvalid("next",e)),n.toggleClass(L,this._isPageIndexInvalid("prev",e))},_optionChanged:function(e){switch(e.name){case"visible":this._toggleVisibility(e.value);break;case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value),this._updatePages();break;case"maxPagesCount":case"pageCount":case"totalCount":case"hasKnownLastPage":case"pagesNavigatorVisible":case"showNavigationButtons":this._updatePages();break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(e.value),this._updatePageSizes();break;case"pageSizes":this._updatePageSizes();break;case"lightModeEnabled":this._renderContentImpl(),!e.value&&this._updateLightMode();break;default:this._invalidate()}},_clean:function(){this._$pagesChooser&&(o.off(this._$pagesChooser,v.addNamespace([p.up,h.name],this.Name+"Pages"),C,this._pageClickHandler),y.registerKeyboardAction("pager",this,this._$pagesChooser,C,this._pageKeyDownHandler)),this.callBase()},_getMinPagerWidth:function(){var e=d.isDefined(this._pagesChooserWidth)?this._pagesChooserWidth:0,t=d.isDefined(this._pagesSizeChooserWidth)?this._pagesSizeChooserWidth:0;return e+t},_updatePagesChooserWidth:l.deferUpdater(function(){var e=this._pages&&this._pages.length>0?this._pages[this._pages.length-1]._$page.width():0;this._pagesChooserWidth=this._$pagesChooser.width()+e}),_updateLightMode:l.deferUpdater(function(){var e=this,t=this.$element().width(),n=d.isDefined(this._infoWidth)?this._infoWidth:0;l.deferRender(function(){e._isInfoHide&&t>e._getMinPagerWidth()+n&&(e._$info.show(),e._updatePagesChooserWidth(),e._isInfoHide=!1),!e._isInfoHide&&t>e._getMinPagerWidth()-n&&t<e._getMinPagerWidth()&&(e._$info.hide(),e._updatePagesChooserWidth(),e._isInfoHide=!0),l.deferUpdate(function(){l.deferRender(function(){e.option("lightModeEnabled")&&t>e._previousWidth?e.option("lightModeEnabled",!1):t<e._getMinPagerWidth()&&e.option("lightModeEnabled",!0),e._previousWidth=t})})})}),_dimensionChanged:function(){this._updateLightMode()},getHeight:function(){return this.option("visible")?this.$element().outerHeight():0}});e.exports=$,s("dxPager",$)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(378),s=i(r);t.DraggingHeaderView=s.default.views.draggingHeaderView,t.DraggingHeaderViewController=s.default.controllers.draggingHeader,t.ColumnsSeparatorView=s.default.views.columnsSeparatorView,t.TablePositionViewController=s.default.controllers.tablePosition,t.ColumnsResizerViewController=s.default.controllers.columnsResizer,t.TrackerView=s.default.views.trackerView,a.default.registerModule("columnsResizingReordering",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(379),s=i(r);a.default.registerModule("keyboardNavigation",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(4),s=n(1),l=n(3),u=n(0),d=n(18),c=n(19),h=i(c),p=n(24),f=i(p),g=n(10),_=i(g),m=n(201),v=i(m),y=n(171),w=i(y),x=n(656),b=i(x),C=n(42),k=i(C),I=n(84),S=n(41),D="dx-datagrid-total-footer",T="dx-datagrid-summary-item",E="dx-datagrid-text-content",O="dx-datagrid-group-footer",A="dx-datagrid-group-text-content",P="dx-datagrid-nowrap",B="groupFooter",M=function(e,t){var n,i,o=(0,a.default)(e),r=t.column,s=t.summaryItems,l=[];if(!r.command&&s){for(n=0;n<s.length;n++)i=s[n],l.push((0,a.default)("<div>").css("textAlign",i.alignment||r.alignment).addClass(T).addClass(E).addClass(i.cssClass).toggleClass(A,"group"===t.rowType).text(f.default.getSummaryText(i,t.summaryTexts)));o.append(l)}},F=function(e,t){var n=e.option("summary.texts")||{};return{totalItem:t.row,summaryItems:t.row.summaryCells[t.columnIndex],summaryTexts:n}},R=function(e){return e.summary||e.aggregates||[]},V=function(e){return e.option("summary.recalculateWhileEditing")};t.FooterView=w.default.ColumnsView.inherit(function(){return{_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(e){return(0,u.extend)(this.callBase(e),F(this,e))},_renderCellContent:function(e,t){M(e,t),this.callBase(e,t)},_renderCore:function(e){var t=this._dataController.footerItems()[0];e&&e.columnIndices||this.element().empty().addClass(D).toggleClass(P,!this.option("wordWrapEnabled")),t&&t.summaryCells&&t.summaryCells.length&&this._updateContent(this._renderTable({change:e}),e)},_updateContent:function(e,t){if(!t||"update"!==t.changeType||!t.columnIndices)return this.callBase.apply(this,arguments);var n=this._getTableElement().find(".dx-row"),i=e.find(".dx-row");this._updateCells(n,i,t.columnIndices[0])},_rowClick:function(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,u.extend)({},e,t))},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&this.callBase(e)},_handleDataChanged:function(e){var t=e.changeType;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():"refresh"!==t&&"append"!==t&&"prepend"!==t||this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}}}());var H=function(){function e(t,n,i,o){o=o||[];for(var a=0;a<t.length;a++)o.push(t[a].key),1===n?i(o,t[a].items):e(t[a].items,n-1,i,o),o.pop()}return{init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=r.noop},summaryGetter:function(e){return arguments.length?void((0,s.isFunction)(e)&&(this._summaryGetter=e)):this._summaryGetter},summary:function(e){return arguments.length?void(this._summaryGetter=function(){return e}):this._summaryGetter()},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var e=this.summary(),t=e&&e.sortByGroups();return t&&t.length},sortLastLevelGroupItems:function(t,n,i){var o=(0,I.multiLevelGroup)((0,k.default)(t),n).toArray(),a=[];return i.forEach(function(t){e(o,n.length,function(e,n){t.toString()===e.toString()&&(a=a.concat(n))})}),a}}}(),L=function(){var e=function e(t,n,i){return i?e(t,n.map(function(e){return{items:[e]}},i-1)):t.concat(n)},t=function e(t,n,i){return i?t.map(function(t){var o={},a=e(t.items||[],n,i-1);return Object.defineProperty(o,"aggregates",{get:function(){return t.aggregates},set:function(e){t.aggregates=e}}),(0,u.extend)(o,t,{items:a})}):t.filter(function(e){return n.indexOf(e)<0})},n=function(n,i,o,a){var r;if(V(n)){var s=n.getController("editing");if(s){var l=s.getInsertedData();l.length&&(o=e(o,l,a));var u=s.getRemovedData();u.length&&(o=t(o,u,a))}}return i&&(r=new b.default({totalAggregates:i.totalAggregates,groupAggregates:i.groupAggregates,data:o,groupLevel:a}),r.calculate()),r?r.totalAggregates():[]},i=function e(t,n,i){if(!t||!n.length)return t;var o,a=n[0],r=i[0];return a&&r&&r.length&&(o=(0,k.default)(t),(0,l.each)(r,function(e){o=0===e?o.sortBy(this.selector,this.desc):o.thenBy(this.selector,this.desc)}),o.enumerate().done(function(e){t=e})),n=n.slice(1),i=i.slice(1),n.length&&i.length&&(0,l.each)(t,function(){this.items=e(this.items,n,i)}),t},o=function(e,t,n){var o=n&&n.sortByGroups&&n.sortByGroups();return o&&o.length?i(e,t,o):e};return{_customizeRemoteOperations:function(e){var t=this.summary();t&&(e.remoteOperations.summary?e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var n=e.cachedPagesData.extra;n&&n.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(e){var t,i=this,a=(0,S.normalizeSortingInfo)(e.storeLoadOptions.group||e.loadOptions.group||[]),r=e.remoteOperations||{},l=i.summaryGetter()(r);e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(r.summary?!r.paging&&a.length&&l&&(r.grouping||n(i,{groupAggregates:l.groupAggregates},e.data,a.length),e.data=o(e.data,a,l)):r.paging||(t=n(i,l,e.data,a.length),e.data=o(e.data,a,l),e.extra=(0,s.isPlainObject)(e.extra)?e.extra:{},e.extra.summary=t)),e.isCustomLoading||(i._totalAggregates=e.extra&&e.extra.summary||i._totalAggregates),i.callBase(e)}}}();v.default.extend(H),v.default.extend(L),t.renderSummaryCell=M,f.default.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:_.default.getFormatter("dxDataGrid-summarySum"),sumOtherColumn:_.default.getFormatter("dxDataGrid-summarySumOtherColumn"),min:_.default.getFormatter("dxDataGrid-summaryMin"),minOtherColumn:_.default.getFormatter("dxDataGrid-summaryMinOtherColumn"),max:_.default.getFormatter("dxDataGrid-summaryMax"),maxOtherColumn:_.default.getFormatter("dxDataGrid-summaryMaxOtherColumn"),avg:_.default.getFormatter("dxDataGrid-summaryAvg"),avgOtherColumn:_.default.getFormatter("dxDataGrid-summaryAvgOtherColumn"),count:_.default.getFormatter("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:t.FooterView},extenders:{controllers:{data:function(){return{_isDataColumn:function(e){return e&&(!(0,s.isDefined)(e.groupIndex)||e.showWhenGrouped)},_isGroupFooterVisible:function(){var e,t,n,i=this.option("summary.groupItems")||[];for(n=0;n<i.length;n++)if(e=i[n],t=this._columnsController.columnOption(e.showInColumn||e.column),e.showInGroupFooter&&this._isDataColumn(t))return!0;return!1},_processGroupItems:function(e,t,n){var i=n&&n.data,o=this.callBase.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!i.isContinuationOnNextPage)&&o.push({rowType:B,key:n.path.slice(),data:i,groupIndex:n.path.length-1,values:[]})),o},_processGroupItem:function(e,t){var n=this;if(t.summaryGroupItems||(t.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===e.rowType){var i=-1,o=-1;(0,l.each)(t.visibleColumns,function(n){var a=t.visibleColumns[n-1];e.groupIndex===this.groupIndex&&(i=this.index),n>0&&"expand"===a.command&&"expand"!==this.command&&(o=this.index)}),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,R(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter?-1:e.alignByColumn&&t&&!(0,s.isDefined)(t.groupIndex)&&t.index!==o?t.index:i})}return e.rowType===B&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,R(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter&&n._isDataColumn(t)?t.index:-1})),e},_calculateSummaryCells:function(e,t,n,i){var o=this,a=[],r={};return(0,l.each)(e,function(e,n){var a,l=o._columnsController.columnOption(n.column),d=n.showInColumn&&o._columnsController.columnOption(n.showInColumn)||l,c=i(n,d);if(c>=0&&(r[c]||(r[c]=[]),a=t[e],a===a)){var h;(0,s.isDefined)(n.valueFormat)?h=n.valueFormat:"count"!==n.summaryType&&(h=f.default.getFormatByDataType(l&&l.dataType)),r[c].push((0,u.extend)({},n,{value:(0,s.isString)(a)&&l&&l.deserializeValue?l.deserializeValue(a):a,valueFormat:h,columnCaption:l&&l.index!==c?l.caption:void 0}))}}),(0,s.isEmptyObject)(r)||(0,l.each)(n,function(){a.push(r[this.index]||[])}),a},_getSummaryCells:function(e,t){var n=this,i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(),function(e,t){return n._isDataColumn(t)?t.index:-1})},_updateItemsCore:function(e){var t,n,i=this,o=i._dataSource,a=i._footerItems,r=a&&a[0]&&a[0].summaryCells,s=i.option("summary.totalItems");i._footerItems=[],o&&s&&s.length&&(n=o.totalAggregates(),t=i._getSummaryCells(s,n),e&&e.repaintChangesOnly&&r&&(e.totalColumnIndices=t.map(function(e,t){return JSON.stringify(e)!==JSON.stringify(r[t])?t:-1}).filter(function(e){return e>=0})),t.length&&i._footerItems.push({rowType:"totalFooter",summaryCells:t})),i.callBase(e)},_prepareUnsavedDataSelector:function(e){var t=this;if(V(t)){var n=t.getController("editing");if(n)return function(t){return t=n.getUpdatedData(t),e(t)}}return e},_prepareAggregateSelector:function(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(t){var n=e(t);return(0,s.isDefined)(n)?Number(n):n}:e},_getAggregates:function(e,t){var n=this,i=n.getController("columns"),o=n.option("summary.calculateCustomSummary"),a=n.option("summary.skipEmptyValues");return(0,l.map)(e||[],function(e){var r,l=i.columnOption(e.column),u=l&&l.calculateCellValue?l.calculateCellValue.bind(l):(0,d.compileGetter)(l?l.dataField:e.column),c=e.summaryType||"count",p=e.column,f=(0,s.isDefined)(e.skipEmptyValues)?e.skipEmptyValues:a;return t?{selector:e.column,summaryType:c}:(p=n._prepareAggregateSelector(u,c),"custom"===c&&(o||(h.default.log("E1026"),o=function(){}),r={component:n.component,name:e.name},o(r),r.summaryProcess="calculate",c={seed:function(e){return r.summaryProcess="start",r.totalValue=void 0,r.groupIndex=e,delete r.value,o(r),r.totalValue},step:function(e,t){return r.summaryProcess="calculate",r.totalValue=e,r.value=t,o(r),r.totalValue},finalize:function(e){return r.summaryProcess="finalize",r.totalValue=e,delete r.value,o(r),r.totalValue}}),{selector:p,aggregator:c,skipEmptyValues:f})})},_addSortInfo:function(e,t,n,i){var o;t&&(o=t.groupIndex,i=i||t.sortOrder,(0,s.isDefined)(o)&&(e[o]=e[o]||[],e[o].push({selector:n,desc:"desc"===i})))},_findSummaryItem:function(e,t){var n=-1,i=function(e){var t=e.summaryType,n=e.column;return t&&n&&t+"_"+n};return(0,s.isDefined)(t)&&(0,l.each)(e||[],function(e){if(this.name===t||e===t||this.summaryType===t||this.column===t||i(this)===t)return n=e,!1}),n},_getSummarySortByGroups:function(e,t){var n=this,i=n._columnsController,o=i.getGroupColumns(),a=[];if(t&&t.length)return(0,l.each)(e||[],function(){var e=this.sortOrder,r=this.groupColumn,u=n._findSummaryItem(t,this.summaryItem);if(!(u<0)){var d=function(e){return R(e)[u]};(0,s.isDefined)(r)?(r=i.columnOption(r),n._addSortInfo(a,r,d,e)):(0,l.each)(o,function(t,i){n._addSortInfo(a,i,d,e)})}}),a},_createDataSourceAdapterCore:function(e,t){var n=this,i=this.callBase(e,t);return i.summaryGetter(function(e){return n._getSummaryOptions(e||t)}),i},_getSummaryOptions:function(e){var t=this,n=t.option("summary.groupItems"),i=t.option("summary.totalItems"),o=t.option("sortByGroupSummaryInfo"),a=t._getAggregates(n,e&&e.grouping&&e.summary),r=t._getAggregates(i,e&&e.summary),s=function(){return t._getSummarySortByGroups(o,n)};if(a.length||r.length)return{groupAggregates:a,totalAggregates:r,sortByGroups:s}},publicMethods:function(){var e=this.callBase();return e.push("getTotalSummaryValue"),e},getTotalSummaryValue:function(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]},optionChanged:function(e){"summary"!==e.name&&"sortByGroupSummaryInfo"!==e.name||(e.name="dataSource"),this.callBase(e)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}}}(),editing:function(){return{_refreshSummary:function(){V(this)&&this._dataController.refresh({load:!0,changesOnly:!0})},_addEditData:function(e){var t=this.callBase.apply(this,arguments);return e.type&&this._refreshSummary(),t},_removeEditDataItem:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e},cancelEditData:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e}}}()},views:{rowsView:function(){return{_createRow:function(e){var t=this.callBase(e);return e&&t.addClass(e.rowType===B?O:""),t},_renderCells:function(e,t){this.callBase.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)},_hasAlignByColumnSummaryItems:function(e,t){return!(0,s.isDefined)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length},_getAlignByColumnCellCount:function(e,t){for(var n,i=0,o=1;o<e;o++)n=t.row.summaryCells.length-o,i=this._hasAlignByColumnSummaryItems(n,t)?o:i;return i},_renderGroupSummaryCells:function(e,t){var n=e.children().last(),i=Number(n.attr("colSpan"))||1,o=this._getAlignByColumnCellCount(i,t);this._renderGroupSummaryCellsCore(n,t,i,o)},_renderGroupSummaryCellsCore:function(e,t,n,i){if(i>0){e.attr("colSpan",n-i);for(var o=0;o<i;o++){var a=t.columns.length-i+o;this._renderCell(e.parent(),(0,u.extend)({column:t.columns[a],columnIndex:this._getSummaryCellIndex(a,t.columns)},t))}}},_getSummaryCellIndex:function(e){return e},_getCellTemplate:function(e){return!e.column.command&&!(0,s.isDefined)(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?M:this.callBase(e)},_getCellOptions:function(e){var t=this,n=t.callBase(e);return e.row.summaryCells?(0,u.extend)(n,F(t,e)):n}}}()}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){var a=0;if(e<t)for(;a<n.items.length;a++)o(e+1,t,n.items[a],i);e===t&&i(n)}function a(e,t){var n,i;if("map"in e)return e.map(t);i=new Array(e.length);for(n in e)i[n]=t(e[n],n);return i}function r(e){return e!==e||""===e||null===e||void 0===e}function s(e){return e===f.aggregators.count}function l(e){var t=(0,c.compileGetter)(e.selector),n=!("skipEmptyValues"in e)||e.skipEmptyValues,i=e.aggregator;if("string"==typeof i&&(i=f.aggregators[i],!i))throw p.errors.Error("E4001",e.aggregator);return{selector:t,aggregator:i,skipEmptyValues:n}}var u=n(15),d=i(u),c=n(18),h=n(1),p=n(37),f=n(41);e.exports=d.default.inherit({ctor:function(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=a(e.totalAggregates||[],l),this._groupAggregates=a(e.groupAggregates||[],l),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(e,t,n){var i,o,a=t.items?t.items.length:0;for(i=0;i<e.length;i++)if(s(e[i].aggregator))n[i]=(n[i]||0)+a;else for(o=0;o<a;o++)this._accumulate(i,e[i],n,t.items[o])},_calculateTotals:function(e,t){var n;if(0===e&&(this._totals=this._seed(this._totalAggregates)),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(n=0;n<t.items.length;n++)this._calculateTotals(e+1,t.items[n]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(e){function t(e){e.aggregates=a(i-1),i===n?r(e,e.aggregates):o(i,n,e,function(t){r(t,e.aggregates)}),e.aggregates=s(e.aggregates)}for(var n=this._groupLevel,i=n+1,a=this._seed.bind(this,this._groupAggregates),r=this._aggregate.bind(this,this._groupAggregates),s=this._finalize.bind(this,this._groupAggregates);--i>0;)o(0,i,e,t)},_seed:function(e,t){return a(e,function(e){var n=e.aggregator,i="seed"in n?(0,h.isFunction)(n.seed)?n.seed(t):n.seed:NaN;return i})},_accumulate:function(e,t,n,i){var o=t.selector(i),a=t.aggregator,s=t.skipEmptyValues;s&&r(o)||(n[e]!==n[e]?n[e]=o:n[e]=a.step(n[e],o))},_finalize:function(e,t){return a(e,function(e,n){var i=e.aggregator.finalize;return i?i(t[n]):t[n]})}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(380),s=i(r);a.default.registerModule("columnFixing",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(381),s=i(r);a.default.registerModule("adaptivity",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(382),s=i(r);a.default.registerModule("virtualColumns",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(15),s=i(r),l=n(1),u=n(0),d=n(101),c=n(14),h=i(c),p=n(24),f=i(p),g=n(384),_=i(g),m=n(176),v=n(10),y=i(v),w=n(35),x=i(w),b=n(103),C=i(b),k=n(96),I=i(k),S=n(6),D="dx-datagrid-export-menu",T="dx-datagrid-export-button",E="export-to",O="xlsxfile",A="exportselected",P="export-excel-button",B="dx-toolbar-item-auto-hide",M="dx-toolbar-hidden-button",F="dx-button",R=3;t.DataProvider=s.default.inherit({_getGroupValue:function(e){var t=this._options.groupColumns[e.groupIndex],n=f.default.getDisplayValue(t,e.key[e.groupIndex],e.data,e.rowType),i=t.caption+": "+f.default.formatValue(n,t),o=e.summaryCells;return o&&o[0]&&o[0].length&&(i+=" "+f.default.getGroupRowSummaryText(o[0],this._options.summaryTexts)),i},_correctCellIndex:function(e){return e},_initOptions:function(){var e=this._exportController,t=e._columnsController.getGroupColumns(),n=e.option("export.excelWrapTextEnabled");this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:this._selectedRowsOnly||e._selectionOnly?e._getSelectedItems():e._getAllItems(),getVisibleIndex:e._columnsController.getVisibleIndex.bind(e._columnsController),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),customizeExportData:e.option("customizeExportData"),rtlEnabled:e.option("rtlEnabled"),wrapTextEnabled:(0,l.isDefined)(n)?n:!!e.option("wordWrapEnabled"),customizeExcelCell:e.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,l.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e,t){this._options.customizeExcelCell&&(e.gridCell=t,(0,l.isDefined)(this._exportController)&&(0,l.isDefined)(this._exportController.component)&&(e.component=this._exportController.component),this._options.customizeExcelCell(e))},ctor:function(e,t,n){this._exportController=e,this._initialColumnWidthsByColumnIndex=t,this._selectedRowsOnly=n},getStyles:function(){var e=this._options.wrapTextEnabled,t=["center","left","right"].map(function(e){return{bold:!0,alignment:e,wrapText:!0}});return this.getColumns().forEach(function(n){t.push({alignment:n.alignment||"left",format:n.format,wrapText:e,dataType:n.dataType})}),t.push({bold:!0,wrapText:!1,alignment:(0,d.getDefaultAlignment)(this._options.rtlEnabled)}),t},_getTotalCellStyleId:function(e){var t=this.getColumns()[e]&&this.getColumns()[e].alignment||"right";return["center","left","right"].indexOf(t)},getStyleId:function(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?R+this.getColumns().length:t+R},getColumns:function(e){var t=this._options.columns;return e?t:t[t.length-1]},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType},getGroupLevel:function(e){var t=this._options.items[e-this.getHeaderRowCount()],n=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:(0,l.isDefined)(n)?n:this._options.groupColumns.length},getCellType:function(e,t){var n=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<n.length){var i=this._options.items.length&&this._options.items[e],o=n[t];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(t)])&&!(0,l.isDefined)(o.customizeText)?(0,l.isDefined)(o.lookup)?o.lookup.dataType:o.dataType:"string"}},ready:function(){var e,t=this;return t._initOptions(),e=this._options,(0,S.when)(e.items).done(function(n){e.customizeExportData&&e.customizeExportData(t.getColumns(t.getHeaderRowCount()>1),n),e.items=n}).fail(function(){e.items=[]})},_convertFromGridGroupSummaryItems:function(e){var t=void 0;return(0,l.isDefined)(e)&&e.length>0&&(t=e.map(function(e){return{value:e.value,name:e.name}})),t},getCellData:function(e,t,n){var i,o,a,r,s,u,d={cellSourceData:{},value:o},c=this.getColumns(),h=this._correctCellIndex(t);if(e<this.getHeaderRowCount()){var p=this.getColumns(!0)[e];i=p[t],d.cellSourceData.rowType="header",d.cellSourceData.column=i&&i.gridColumn,d.value=i&&i.caption}else if(e-=this.getHeaderRowCount(),u=this._options.items.length&&this._options.items[e])switch(s=u.values,d.cellSourceData.rowType=u.rowType,d.cellSourceData.column=c[t]&&c[t].gridColumn,u.rowType){case"groupFooter":case"totalFooter":h<s.length&&(o=s[h],(0,l.isDefined)(o)?(d.cellSourceData.value=o.value,d.cellSourceData.totalSummaryItemName=o.name,d.value=f.default.getSummaryText(o,this._options.summaryTexts)):d.cellSourceData.value=void 0);break;case"group":if(d.cellSourceData.groupIndex=u.groupIndex,t<1)d.cellSourceData.column=this._options.groupColumns[u.groupIndex],d.cellSourceData.value=u.key[u.groupIndex],d.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(u.summaryCells[0]),d.value=this._getGroupValue(u);else if(r=u.values[h],Array.isArray(r)){for(d.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(r),o="",a=0;a<r.length;a++)o+=(a>0?n?"\n":" \n ":"")+f.default.getSummaryText(r[a],this._options.summaryTexts);d.value=o}else d.cellSourceData.value=void 0;break;default:if(i=c[t]){var g=s[h],_=f.default.getDisplayValue(i,g,u.data,u.rowType);d.value=!isFinite(_)||i.customizeText?f.default.formatValue(_,i):_,d.cellSourceData.value=g}d.cellSourceData.data=u.data}return d},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(e,t){var n=this._options.items,i=n[e],o=this._correctCellIndex(t),a=i.summaryCells&&i.summaryCells[o]&&i.summaryCells[o].length>0&&i.summaryCells[o][0].alignByColumn;return i&&"groupFooter"===i.rowType||"totalFooter"===i.rowType||a},getCellMerging:function(e,t){var n=this._options.columns,i=n[e]&&n[e][t];return i?{colspan:(i.exportColspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var e=this;return{x:0,y:e.getHeaderRowCount()}}}),t.ExportController=f.default.ViewController.inherit({}).include(_.default).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(e,t){e.width=t},_getColumns:function(e){var t,n,i,o,a,r,s=[],d=this._columnsController,c=d.getRowCount();for(t=0;t<=c;t++){a=[],o=d.getVisibleColumns(t,!0);var h=void 0;if(t===c)if(this._updateLockCount)h=e;else{var p=this._getColumnWidths(this._headersView,this._rowsView);if(p&&p.length){h={};for(var f=0;f<o.length;f++)h[o[f].index]=p[f]}}for(n=0;n<o.length;n++)i=(0,u.extend)({},o[n],{dataType:"datetime"===o[n].dataType?"date":o[n].dataType,gridColumn:o[n]}),this._needColumnExporting(i)&&(r=this._calculateExportColspan(i),(0,l.isDefined)(r)&&(i.exportColspan=r),h&&this._updateColumnWidth(i,h[i.index]),a.push(i));s.push(a)}return o=s[c],s=this._prepareItems(s.slice(0,-1)),s.push(o),s},_calculateExportColspan:function(e){var t=this;if(e.isBand){var n=this._columnsController.getChildrenByBandColumn(e.index,!0);if((0,l.isDefined)(n))return n.reduce(function(e,n){return t._needColumnExporting(n)?e+(t._calculateExportColspan(n)||1):e},0)}},_needColumnExporting:function(e){return!e.command&&(e.allowExporting||void 0===e.allowExporting)},_getFooterSummaryItems:function(e,t){var n,i,o,a,r=[],s=1,l=0;do{for(n=[],a=0;a<e.length;a++)o=e[a],i=o.length,s<i&&(s=i),n.push(o[l]);r.push({values:n,rowType:t?"totalFooter":"groupFooter"})}while(l++<s-1);return r},_hasSummaryGroupFooters:function(){var e,t=this.option("summary.groupItems");if((0,l.isDefined)(t))for(e=0;e<t.length;e++)if(t[e].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(e){var t,n,i=[],o=[],a=[];for(n=0;n<e.length;n++)t=e[n],"groupFooter"===t.rowType?(a=this._getFooterSummaryItems(t.summaryCells),i=i.concat(o,a),o=[]):o.push(t);return i.length?i:o},_updateGroupValuesWithSummaryByColumn:function(e){var t,n,i,o,a,r,s,l=[];for(s=0;s<e.length;s++)if(t=e[s],n=t.summaryCells,"group"===t.rowType&&n&&n.length>1){for(o=t.values.length,r=1;r<n.length;r++)for(a=0;a<n[r].length;a++)i=n[r][a],i&&i.alignByColumn&&(Array.isArray(l[r-o])||(l[r-o]=[]),l[r-o].push(i));l.length>0&&(h.default.merge(t.values,l),l=[])}},_processUnExportedItems:function(e){var t,n,i,o,a,r,s=this._columnsController.getVisibleColumns(null,!0),l=this._columnsController.getGroupColumns();for(a=0;a<e.length;a++){for(t=e[a],i=[],o=[],r=0;r<s.length;r++)n=s[r],this._needColumnExporting(n)&&(t.values&&("group"!==t.rowType||i.length?i.push(t.values[r]):i.push(t.key[t.groupIndex])),t.summaryCells&&("group"!==t.rowType||o.length?o.push(t.summaryCells[r]):o.push(t.summaryCells[r-l.length+t.groupIndex])));i.length&&(t.values=i),o.length&&(t.summaryCells=o)}},_getAllItems:function(e){var t,n,i=this,o=new S.Deferred,a=this.getController("data"),r=a.footerItems(),s=r.length&&r[0],u=i.option("summary.totalItems");return(0,S.when)(e).done(function(e){a.loadAll(e).done(function(e,r){i._updateGroupValuesWithSummaryByColumn(e),i._hasSummaryGroupFooters()&&(e=i._getItemsWithSummaryGroupFooters(e)),t=s&&s.summaryCells,(0,l.isDefined)(r)&&u&&(t=a._getSummaryCells(u,r)),n=s&&i._getFooterSummaryItems(t,!0),n&&(e=e.concat(n)),i._processUnExportedItems(e),o.resolve(e)}).fail(o.reject)}).fail(o.reject),o},_getSelectedItems:function(){var e=this.getController("selection"),t=e.getSelectedRowsData();return this._getAllItems(t)},_getColumnWidths:function(e,t){return e&&e.isVisible()?e.getColumnWidths():t.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getExportFormat:function(){return["EXCEL"]},getDataProvider:function(e){var n=this._getColumnWidths(this._headersView,this._rowsView),i=void 0;if(n&&n.length){i={};for(var o=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),a=0;a<o.length;a++)i[o[a].index]=n[a]}return new t.DataProvider(this,i,e)},exportToExcel:function(e){var t=this;t._selectionOnly=e,(0,m.export)(t.component.getDataProvider(),{fileName:t.option("export.fileName"),proxyUrl:t.option("export.proxyUrl"),format:"EXCEL",autoFilterEnabled:!!t.option("export.excelFilterEnabled"),rtlEnabled:t.option("rtlEnabled"),ignoreErrors:t.option("export.ignoreExcelErrors"),exportingAction:t.getAction("onExporting"),exportedAction:t.getAction("onExported"),fileSavingAction:t.getAction("onFileSaving")},m.excel.getData)},publicMethods:function(){return["getDataProvider","getExportFormat","exportToExcel"]},selectionOnly:function(e){return(0,l.isDefined)(e)?(this._isSelectedRows=e,void this.selectionOnlyChanged.fire()):this._isSelectedRows}}),f.default.registerModule("export",{defaultOptions:function(){return{"export":{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,excelWrapTextEnabled:void 0,proxyUrl:void 0,allowExportSelectedData:!1,ignoreExcelErrors:!0,texts:{exportTo:y.default.format("dxDataGrid-exportTo"),
exportAll:y.default.format("dxDataGrid-exportAll"),exportSelectedRows:y.default.format("dxDataGrid-exportSelectedRows")}}}},controllers:{"export":t.ExportController},extenders:{controllers:{editing:{callbackNames:function(){var e=this.callBase();return(0,l.isDefined)(e)?e.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendExportItems(e)},_appendExportItems:function(e){var t=this,n=t.option("export");if(n.enabled){var i=[];n.allowExportSelectedData?i.push({template:function(e,n,i){var o=(0,a.default)(i);t._renderButton(e,o),t._renderExportMenu(o)},menuItemTemplate:function(e,n,i){t._renderList(e,(0,a.default)(i))},name:"exportButton",allowExportSelected:!0,location:"after",locateInMenu:"auto",sortIndex:30}):i.push({template:function(e,n,i){t._renderButton(e,(0,a.default)(i))},menuItemTemplate:function(e,n,i){t._renderButton(e,(0,a.default)(i),!0)},name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30}),e=e.concat(i),t._correctItemsPosition(e)}return e},_renderButton:function(e,t,n){var i=this,o=i._getButtonOptions(e.allowExportSelected),r=i._getButtonContainer().addClass(T).appendTo(t);if(n){var s=(0,a.default)("<div>").addClass(B);t.wrapInner(s).parent().addClass("dx-toolbar-menu-action dx-toolbar-menu-button "+M),o.text=o.hint}i._createComponent(r,x.default,o)},_renderList:function(e,t){var n=this,i=n.option("export.texts"),o=[{template:function(e,t,i){n._renderFakeButton(e,(0,a.default)(i),O)},text:i.exportAll},{template:function(e,t,i){n._renderFakeButton(e,(0,a.default)(i),A)},text:i.exportSelectedRows,exportSelected:!0}];n._createComponent(t,C.default,{items:o,onItemClick:function(e){n._exportController.exportToExcel(e.itemData.exportSelected)},scrollingEnabled:!1})},_renderFakeButton:function(e,t,n){var i=(0,a.default)("<div>").addClass("dx-icon dx-icon-"+n),o=(0,a.default)("<span>").addClass("dx-button-text").text(e.text),r=(0,a.default)("<div>").addClass("dx-button-content").append(i).append(o),s=(0,a.default)("<div>").addClass(F+" dx-button-has-text dx-button-has-icon dx-datagrid-toolbar-button").append(r),l=(0,a.default)("<div>").addClass(B).append(s);t.append(l).parent().addClass("dx-toolbar-menu-custom "+M)},_correctItemsPosition:function(e){e.sort(function(e,t){return e.sortIndex-t.sortIndex})},_renderExportMenu:function(e){var t=this,n=e.find("."+F),i=t.option("export.texts"),o=[{text:i.exportAll,icon:O},{text:i.exportSelectedRows,exportSelected:!0,icon:A}],r=(0,a.default)("<div>").appendTo(e);t._contextMenu=t._createComponent(r,I.default,{showEvent:"dxclick",items:o,cssClass:D,onItemClick:function(e){t._exportController.exportToExcel(e.itemData.exportSelected)},target:n,position:{at:"left bottom",my:"left top",offset:"0 3",collision:"fit",boundary:t._$parent,boundaryOffset:"1 1"}})},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(e){var t,n=this,i=n.option("export.texts");return t=e?{hint:i.exportTo,icon:E}:{hint:i.exportAll,icon:P,onClick:function(){n._exportController.exportToExcel()}}},optionChanged:function(e){this.callBase(e),"export"===e.name&&(e.handled=!0,this._invalidate())},init:function(){var e=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(t){e.setToolbarItemDisabled("exportButton",t)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(385),s=i(r),l=n(6),u=n(1),d=n(4),c=n(263),h=n(18),p=n(0),f=Number.MAX_SAFE_INTEGER||9007199254740991;a.default.registerModule("focus",(0,p.extend)(!0,{},s.default,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)&&this._isFocusedRowInsideGroup(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(e){var t,n=this.getController("columns"),i=this.option("focusedRowKey"),o=this.getRowIndexByKey(i),a=o>=0&&this.getVisibleRows()[o],r=n.getGroupDataSourceParameters(!0);if(a)for(var s=0;s<e.length;++s)if(t=(0,h.compileGetter)(r[s]&&r[s].selector),t(a.data)!==e[s])return!1;return!0},_getGroupPath:function(e){for(var t=[e.key],n=e.items;n&&n[0];){var i=n[0];void 0!==i.key&&t.push(i.key),n=i.items}return t},_expandGroupByPath:function(e,t,n){var i=new l.Deferred;return n++,e.expandRow(t.slice(0,n)).done(function(){n===t.length?i.resolve():e._expandGroupByPath(e,t,n).done(i.resolve).fail(i.reject)}).fail(i.reject),i.promise()},_calculateGlobalRowIndexByGroupedData:function(e){var t,n=this,i=n._dataSource,o=n._generateFilterByKey(e),a=new l.Deferred,r=Array.isArray(e),s=i.group();return r?a.resolve(-1).promise():i._grouping._updatePagingOptions?(i.load({filter:n._concatWithCombinedFilter(o),group:s}).done(function(i){return i&&0!==i.length&&(0,u.isDefined)(i[0].key)&&i[0].key!==-1?(t=n._getGroupPath(i[0]),void n._expandGroupByPath(n,t,0).done(function(){n._calculateExpandedRowGlobalIndex(a,e,t,s)}).fail(a.reject)):a.resolve(-1).promise()}).fail(a.reject),a.promise()):(n._calculateGlobalRowIndexByFlatData(e,null,!0).done(a.resolve).fail(a.reject),a)},_calculateExpandedRowGlobalIndex:function(e,t,n,i){var o,a=(0,c.createGroupFilter)(n,{group:i}),r=this._dataSource,s=this.option("scrolling.mode"),l="virtual"===s||"infinite"===s,u=r.pageSize();r._grouping._updatePagingOptions({skip:0,take:f},function(e,t){(0,d.equalByValue)(e.path,n)&&(o=t)}),this._calculateGlobalRowIndexByFlatData(t,a).done(function(t){var i,a,r;return t<0?void e.resolve(-1):(a=o%u||u,i=a+t-n.length,r=l?0:Math.floor(i/(u-n.length))*n.length,i=o+t+r,void e.resolve(i))}).fail(e.reject)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),a=i(o),r=n(386),s=i(r);a.default.registerModule("rowDragging",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(664),a=i(o);n(674),n(675),n(676),n(677),n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),e.exports=a.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(9),a=i(o),r=n(4),s=i(r),l=n(1),u=i(l),d=n(3),c=n(0),h=n(17),p=i(h),f=n(29),g=i(f),_=n(31),m=i(_);n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673);var v=g.default.callModuleItemsMethod,y=".dx-row",w="dx-treelist";g.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var x=p.default.inherit({_activeStateUnit:y,_getDefaultOptions:function(){var e=this,t=e.callBase();return(0,d.each)(g.default.modules,function(){u.default.isFunction(this.defaultOptions)&&(0,c.extend)(!0,t,this.defaultOptions())}),t},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return m.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){var e=this;e.callBase(),g.default.processModules(e,g.default),v(e,"init")},_clean:s.default.noop,_optionChanged:function(e){var t=this;v(t,"optionChanged",[e]),e.handled||t.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(w),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;s.default.deferRender(function(){e._renderContentImpl()})},_dispose:function(){var e=this;e.callBase(),v(e,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){var e=this;e.callBase(),v(e,"beginUpdate")},endUpdate:function(){var e=this;v(e,"endUpdate"),e.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),u.default.isDefined(e)&&this.getController("keyboardNavigation").focus(e)}});x.registerModule=g.default.registerModule.bind(g.default),(0,a.default)("dxTreeList",x),e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(341),s=i(r);a.default.registerModule("columnHeaders",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),a=n(29),r=i(a),s=n(343),l=i(s);t.ColumnsController=l.default.controllers.columns.inherit(function(){return{_getFirstItems:function(e){return this.callBase(e).map(function(e){return e.data})},getFirstDataColumnIndex:function(){for(var e=this.getVisibleColumns(),t=e.length,n=0,i=0;i<=t-1;i++)if(!(0,o.isDefined)(e[i].command)){n=e[i].index;break}return n}}}()),r.default.registerModule("columns",{defaultOptions:l.default.defaultOptions,controllers:{columns:t.ColumnsController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(6),r=n(29),s=i(r),l=n(4),u=n(388),d=i(u),c=n(345),h=i(c);t.DataController=h.default.controllers.data.inherit(function(){return{_getDataSourceAdapter:function(){return d.default},_getNodeLevel:function(e){for(var t=-1;e.parent;)e.visible&&t++,e=e.parent;return t},_generateDataItem:function(e,t){return{rowType:"data",node:e,key:e.key,data:e.data,isExpanded:this.isRowExpanded(e.key,t),level:this._getNodeLevel(e)}},_loadOnOptionChange:function(){this._dataSource.load()},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(e){var t=this._dataSource;if(t)return t.keyOf(e)},key:function(){var e=this._dataSource;if(e)return e.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(e){if(this._dataSource){var t=this,n={key:e},i=this.isRowExpanded(e);if(t.executeAction(i?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return t._dataSource.changeRowExpand(e).done(function(){t.executeAction(i?"onRowCollapsed":"onRowExpanded",n)})}return(new a.Deferred).resolve()},isRowExpanded:function(e,t){return this._dataSource&&this._dataSource.isRowExpanded(e,t)},expandRow:function(e){return this.isRowExpanded(e)?(new a.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new a.Deferred).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(e){switch(e.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),e.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":!this._dataSource||this._dataSource._isNodesInitializing||(0,l.equalByValue)(e.value,e.previousValue)||this._loadOnOptionChange(),e.handled=!0;break;case"maxFilterLengthInRequest":e.handled=!0;break;default:this.callBase(e)}},getNodeByKey:function(e){if(this._dataSource)return this._dataSource.getNodeByKey(e)},getChildNodeKeys:function(e){if(this._dataSource)return this._dataSource.getChildNodeKeys(e)},loadDescendants:function(e,t){if(this._dataSource)return this._dataSource.loadDescendants(e,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}}}()),s.default.registerModule("data",{defaultOptions:function(){return(0,o.extend)({},h.default.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:t.DataController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(346),s=i(r);a.default.registerModule("sorting",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(29),s=i(r),l=n(348),u=i(l),d="dx-treelist-text-content",c="dx-treelist-icon-container",h="dx-treelist-cell-expandable",p="dx-treelist-empty-space",f="dx-treelist-expanded",g="dx-treelist-collapsed";t.RowsView=u.default.views.rowsView.inherit(function(){var e=function(e){return(0,a.default)("<div>").addClass(d).appendTo(e)},t=function(e,t){var n=(0,a.default)("<div>").addClass(p);return e&&n.toggleClass(f,t).toggleClass(g,!t).append((0,a.default)("<span>")),n},n=function(e,n){for(var i=n.level,o=0;o<=i;o++)e.append(t(o===i&&n.node.hasChildren,n.isExpanded))};return{_renderExpandIcon:function(e,t){var i=(0,a.default)("<div>").addClass(c).appendTo(e);return n(i,t.row),t.watch&&t.watch(function(){return[t.row.level,t.row.isExpanded,t.row.node.hasChildren]},function(){i.empty(),n(i,t.row)}),e.addClass(h),i},_renderCellCommandContent:function(e,t){return this._renderExpandIcon(e,t),!0},_processTemplate:function(t,n){var i,o=this,a=this.callBase(t),r=o._columnsController.getFirstDataColumnIndex();return i=a&&n.column.index===r?{render:function(t){var n=t.container;o._renderCellCommandContent(n,t.model)&&(t.container=e(n)),a.render(t)}}:a},_updateCell:function(e,t){e=e.hasClass(d)?e.parent():e,this.callBase(e,t)},_rowClick:function(e){var t=this._dataController,n=(0,a.default)(e.event.target),i=this.isExpandIcon(n),o=t&&t.items()[e.rowIndex];i&&o&&t.changeRowExpand(o.key),this.callBase(e)},_createRow:function(e){var t=e&&e.node,n=this.callBase.apply(this,arguments);return t&&(this.setAria("level",e.level,n),t.hasChildren&&this.setAria("expanded",e.isExpanded,n)),n},isExpandIcon:function(e){return!!e.closest("."+f+", ."+g).length}}}()),s.default.registerModule("rows",{defaultOptions:u.default.defaultOptions,views:{rowsView:t.RowsView}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(349),s=i(r);a.default.registerModule("contextMenu",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(350),s=i(r);a.default.registerModule("errorHandling",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(351),s=i(r),l=s.default.views.gridView.inherit(function(){return{_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}}}());a.default.registerModule("gridView",{defaultOptions:s.default.defaultOptions,controllers:s.default.controllers,views:{gridView:l},extenders:{controllers:{resizing:{_toggleBestFitMode:function(e){if(this.callBase(e),!this.option("legacyRendering")){var t=this._rowsView._getTableElement();t.find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),e)}}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(352),s=i(r);a.default.registerModule("headerPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(0),s=n(353),l=i(s),u=l.default.extenders.controllers.stateStoring.applyState;a.default.registerModule("stateStoring",(0,r.extend)(!0,{},l.default,{extenders:{controllers:{stateStoring:{applyState:function(e){u.apply(this,arguments),Object.prototype.hasOwnProperty.call(e,"expandedRowKeys")&&this.option("expandedRowKeys",e.expandedRowKeys&&e.expandedRowKeys.slice())}},data:{getUserState:function(){var e=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(e.expandedRowKeys=this.option("expandedRowKeys")),e}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(356),s=i(r);a.default.registerModule("columnChooser",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(359),s=i(r),l=n(0);a.default.registerModule("masterDetail",(0,l.extend)(!0,{},s.default,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}n(678);var o=n(2),a=i(o),r=n(19),s=i(r),l=n(1),u=n(0),d=n(6),c=n(10),h=i(c),p=n(29),f=i(p),g=n(36),_=i(g),m=n(362),v=i(m),y="dx-treelist-icon-container",w="dx-select-checkbox",x="insert",b=v.default.controllers.editing.inherit(function(){return{_generateNewItem:function(e){var t=this.callBase(e);return t.data={key:e},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_needInsertItem:function(e,t,n,i){var o=e.key.parentKey;if(void 0!==o&&o!==this.option("rootValue")){var a=_.default.getIndexByKey(o,n);return a>=0&&this._dataController.isRowExpanded(o)&&n.splice(a+1,0,i),!1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return e||t&&t.allowAdding},_isDefaultButtonVisible:function(e,t){var n=this.callBase.apply(this,arguments),i=t.row;return"add"===e.name?this.allowAdding(t)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.isNewRow):n},_getEditingButtons:function(e){var t=this.callBase.apply(this,arguments);return e.column.buttons||t.unshift(this._getButtonConfig("add",e)),t},_beforeSaveEditData:function(e){var t,n,i=this._dataController,o=this.callBase.apply(this,arguments);if(e&&e.type!==x&&(n=i&&i.store(),t=n&&n.key(),!(0,l.isDefined)(t)))throw s.default.Error("E1045");return o},addRowByRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return this.addRow(n?n.key:void 0)},addRow:function(e){var t=this,n=t.callBase,i=t.getController("data");if(void 0!==e&&!i.isRowExpanded(e)){var o=new d.Deferred;return i.expandRow(e).done(function(){setTimeout(function(){n.call(t,e),o.resolve()})}).fail(o.reject),o}void 0===e&&(e=t.option("rootValue")),n.call(t,e)},_initNewRow:function(e,t){var n=this.getController("data"),i=n.dataSource(),o=i.createParentIdSetter();o(e.data,t),this.callBase.apply(this,arguments)},allowAdding:function(e){return this._allowEditAction("allowAdding",e)},_needToCloseEditableCell:function(e){return this.callBase.apply(this,arguments)||e.closest("."+y).length&&this.isEditing()},getButtonLocalizationNames:function(){var e=this.callBase.apply(this);return e.add="dxTreeList-editingAddRowToNode",e}}}()),C=v.default.extenders.views.rowsView._rowClick,k=v.default.extenders.views.rowsView._rowDblClick,I=function(e){var t=(0,a.default)(e.event.target),n="dxdblclick"===e.event.type?k:C;return!t.closest("."+w).length&&!S.call(this,e,n)},S=function(e,t){var n=(0,a.default)(e.event.target);return!n.closest("."+y).length&&(t.call(this,e),!0)},D=(0,u.extend)({},v.default.extenders.views.rowsView,{_renderCellCommandContent:function(e,t){var n=this._editingController,i=t.row&&n.isEditRow(t.row.rowIndex),o=t.isEditing||i;return!o&&this.callBase.apply(this,arguments)},_rowClick:function(e){I.call(this,e)&&this.callBase.apply(this,arguments)},_rowDblClick:function(e){I.call(this,e)&&this.callBase.apply(this,arguments)}});f.default.registerModule("editing",{defaultOptions:function(){return(0,u.extend)(!0,v.default.defaultOptions(),{editing:{texts:{addRowToNode:h.default.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:b},extenders:{controllers:(0,u.extend)(!0,{},v.default.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:D,headerPanel:v.default.extenders.views.headerPanel}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(360),s=i(r);a.default.registerModule("editorFactory",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(29),r=i(a),s=n(363),l=i(s),u=(0,o.extend)({},l.default.extenders.controllers.editing);delete u.processItems,delete u.processDataItem,r.default.registerModule("validating",{defaultOptions:l.default.defaultOptions,controllers:l.default.controllers,extenders:{controllers:{editing:u,editorFactory:l.default.extenders.controllers.editorFactory},views:l.default.extenders.views}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(388),s=i(r),l=n(364),u=i(l),d=n(0),c=u.default.defaultOptions,h=u.default.extenders.controllers.data,p=u.default.extenders.dataSourceAdapter;u.default.extenders.controllers.data=(0,d.extend)({},h,{_loadOnOptionChange:function(){var e=this._dataSource&&this._dataSource._virtualScrollController;e&&e.reset(),this.callBase()}}),u.default.extenders.dataSourceAdapter=(0,d.extend)({},p,{changeRowExpand:function(){var e=this;return this.callBase.apply(this,arguments).done(function(){var t=e.getViewportItemIndex();t>=0&&e.setViewportItemIndex(t)})}}),a.default.registerModule("virtualScrolling",(0,d.extend)({},u.default,{defaultOptions:function(){return(0,d.extend)(!0,c(),{scrolling:{mode:"virtual"}})}})),s.default.extend(u.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(366),s=i(r);a.default.registerModule("filterRow",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(369),s=i(r);a.default.registerModule("headerFilter",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(371),s=i(r);a.default.registerModule("filterSync",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(373),s=i(r);a.default.registerModule("filterBuilder",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(375),s=i(r);a.default.registerModule("filterPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(377),s=i(r);a.default.registerModule("pager",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(378),s=i(r);a.default.registerModule("columnsResizingReordering",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(380),s=i(r);a.default.registerModule("columnFixing",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(381),s=i(r);a.default.registerModule("adaptivity",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(29),s=i(r),l=n(4),u=n(355),d=i(u),c=n(19),h=i(c),p=n(0),f="dx-treelist-select-all",g="dx-cell-focus-disabled",_="dx-select-checkbox",m=d.default.extenders.views.rowsView._rowClick,v=d.default.extenders.controllers.data._handleDataChanged,y=function(e,t){return!!e.filter(function(e){return e===t}).length};s.default.registerModule("selection",(0,p.extend)(!0,{},d.default,{defaultOptions:function(){return(0,p.extend)(!0,d.default.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(e){var t=this.getController("selection"),n=t.isRecursiveSelection();!n||e&&"updateSelectionState"===e.changeType||t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),v.apply(this,arguments)},loadDescendants:function(){var e=this,t=e.callBase.apply(e,arguments),n=e.getController("selection"),i=n.isRecursiveSelection();return i&&t.done(function(){n.updateSelectionState({selectedItemKeys:e.option("selectedRowKeys")})}),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var e=this,t=arguments,n=this.callBase.apply(this,arguments),i=n.plainItems;return n.plainItems=function(n){return n?e._dataController.getCachedStoreData()||[]:i.apply(e,t).map(function(e){return e.data})},n.isItemSelected=function(t){var n=e._dataController.keyOf(t);return e.isRowSelected(n)},n.isSelectableItem=function(){return!0},n.getItemData=function(e){return e},n},renderSelectCheckBoxContainer:function(e,t){var n=this,i=n.component.getView("rowsView");e.addClass(g);var o=i._renderSelectCheckBox(e,{value:t.row.isSelected,row:t.row,column:t.column});i._attachCheckBoxClickEvent(o)},_updateSelectColumn:l.noop,_getVisibleNodeKeys:function(e){var t=this.component,n=t.getRootNode(),i={},o=[];return n&&s.default.foreachNodes(n.children,function(n){return void 0!==n.key&&(n.visible||e)&&o.push(n.key),!e&&t.isRowExpanded(n.key,i)}),o},isSelectAll:function(){var e,t=this.component,n=this._getVisibleNodeKeys(),i=n.filter(function(e){return t.isRowSelected(e)});return i.length?i.length===n.length||void 0:(e=n.some(function(e){return void 0===t.isRowSelected(e)}),!!e&&void 0)},selectAll:function(){var e=this,t=e.isRecursiveSelection(),n=e._getVisibleNodeKeys(t).filter(function(t){return!e.isRowSelected(t)});return e.selectRows(n,!0)},deselectAll:function(){var e=this.isRecursiveSelection(),t=this._getVisibleNodeKeys(e);return this.deselectRows(t)},selectedItemKeys:function(e,t,n,i){var o=this,a=o.option("selectedRowKeys"),r=this.isRecursiveSelection(),s=r&&o._normalizeSelectionArgs({keys:e||[]},!n);return s&&!(0,l.equalByValue)(s.selectedRowKeys,a)?(o._isSelectionNormalizing=!0,this.callBase(s.selectedRowKeys,!1,!1,!1).always(function(){o._isSelectionNormalizing=!1}).done(function(e){s.selectedRowsData=e,o._fireSelectionChanged(s)})):this.callBase(e,t,n,i)},changeItemSelection:function(e,t){var n=this.isRecursiveSelection();if(n&&!t.shift){var i=this._dataController.getKeyByRowIndex(e);return this.selectedItemKeys(i,!0,this.isRowSelected(i))}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(e,t){var n,i,o=this,a=t,r=e.parent;r&&(r.children.length>1&&(t===!1?(i=r.children.some(function(e,t,n){return o._selectionStateByKey[e.key]}),a=!!i&&void 0):t===!0&&(n=r.children.some(function(e){return!o._selectionStateByKey[e.key]}),a=!n||void 0)),this._selectionStateByKey[r.key]=a,r.parent&&r.parent.level>=0&&this._updateParentSelectionState(r,a))},_updateChildrenSelectionState:function(e,t){var n=this,i=e.children;i&&i.forEach(function(e){n._selectionStateByKey[e.key]=t,e.children.length>0&&n._updateChildrenSelectionState(e,t)})},_updateSelectionStateCore:function(e,t){for(var n,i=this._dataController,o=0;o<e.length;o++)this._selectionStateByKey[e[o]]=t,n=i.getNodeByKey(e[o]),n&&(this._updateParentSelectionState(n,t),this._updateChildrenSelectionState(n,t))},_getSelectedParentKeys:function(e,t,n){for(var i,o,a=this._dataController.getNodeByKey(e),r=a&&a.parent,s=[];r&&r.level>=0;){if(s.unshift(r.key),i=n?!y(t,r.key)&&this.isRowSelected(r.key):t.indexOf(r.key)>=0){o=r,s=this._getSelectedParentKeys(o.key,t,n).concat(s);break}if(n)break;r=r.parent}return o&&s||[]},_getSelectedChildKeys:function(e,t){var n=this,i=[];return e&&s.default.foreachNodes(e.children,function(e){var o=t.indexOf(e.key);return o<0&&i.push(e.key),o>0||o<0&&void 0===n._selectionStateByKey[e.key]}),i},_normalizeParentKeys:function(e,t){var n,i,o,a=this,r=[e],s=a._getSelectedParentKeys(e,t.selectedRowKeys);s.length&&(r=r.concat(s),r.forEach(function(e){n=t.selectedRowKeys.indexOf(e),n>=0&&t.selectedRowKeys.splice(n,1)}),o=a._dataController.getNodeByKey(s[0]),i=a._getSelectedChildKeys(o,r),t.selectedRowKeys=t.selectedRowKeys.concat(i))},_normalizeChildrenKeys:function(e,t){var n,i=this,o=i._dataController.getNodeByKey(e);o&&o.children.forEach(function(e){n=t.selectedRowKeys.indexOf(e.key),n>=0&&t.selectedRowKeys.splice(n,1),i._normalizeChildrenKeys(e.key,t)})},_normalizeSelectedRowKeysCore:function(e,t,n){var i,o=this;e.forEach(function(e){o.isRowSelected(e)!==n&&(o._normalizeChildrenKeys(e,t),i=t.selectedRowKeys.indexOf(e),n?(i<0&&t.selectedRowKeys.push(e),t.currentSelectedRowKeys.push(e)):(i>=0&&t.selectedRowKeys.splice(i,1),t.currentDeselectedRowKeys.push(e),o._normalizeParentKeys(e,t)))})},_normalizeSelectionArgs:function(e,t){var n,i=Array.isArray(e.keys)?e.keys:[e.keys],o=this.option("selectedRowKeys")||[];return i.length&&(n={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:o.slice(0)},this._normalizeSelectedRowKeysCore(i,n,t)),n},_updateSelectedItems:function(e){this.updateSelectionState(e),this.callBase(e)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(e){return"leavesOnly"===e||e===!0},_getAllSelectedRowKeys:function(e){var t=this,n=[];return e.forEach(function(e){var i=n.length,o=t._getSelectedParentKeys(e,n,!0),a=t._dataController.getChildNodeKeys(e);n.splice.apply(n,[i,0].concat(o)),n.push(e),n=n.concat(a)}),n},_getParentSelectedRowKeys:function(e){var t=this,n=[];return e.forEach(function(i){var o=t._getSelectedParentKeys(i,e);!o.length&&n.push(i)}),n},_getLeafSelectedRowKeys:function(e){var t=this,n=[],i=t._dataController;return e.forEach(function(e){var t=i.getNodeByKey(e);t&&!t.hasChildren&&n.push(e)}),n},isRecursiveSelection:function(){var e=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===e&&t},updateSelectionState:function(e){var t=e.removedItemKeys||[],n=e.selectedItemKeys||[];this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(n,!0)},isRowSelected:function(e){var t=this.callBase.apply(this,arguments),n=this.isRecursiveSelection();return!t&&n?e in this._selectionStateByKey&&this._selectionStateByKey[e]:t},getSelectedRowKeys:function(e){var t=this;if(!t._dataController)return[];e===!0&&h.default.log("W0002","dxTreeList","getSelectedRowKeys(leavesOnly)","18.1","Use the 'getSelectedRowKeys(mode)' method with a string parameter instead");var n=t.callBase.apply(t,arguments);return e&&(this.isRecursiveSelection()&&(n=this._getAllSelectedRowKeys(n)),"all"!==e&&("excludeRecursive"===e?n=t._getParentSelectedRowKeys(n):t._isModeLeavesOnly(e)&&(n=t._getLeafSelectedRowKeys(n)))),n},getSelectedRowsData:function(e){var t=this,n=t._dataController,i=this.getSelectedRowKeys(e)||[],o=[];return i.forEach(function(e){var t=n.getNodeByKey(e);t&&o.push(t.data)}),o},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(e,t){var n,i=this,o=this.callBase(e,t),a=i._columnsController.getFirstDataColumnIndex();return n=o&&"header"===t.rowType&&t.column.index===a?{render:function(e){"multiple"===i.option("selection.mode")&&i.renderSelectAll(e.container,e.model),o.render(e)}}:o},renderSelectAll:function(e,t){e.addClass(f),this._renderSelectAllCheckBox(e)},_isSortableElement:function(e){return this.callBase(e)&&!e.closest("."+_).length}},rowsView:{_renderExpandIcon:function(e,t){var n=this.callBase(e,t);return"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(n,t),n},_rowClick:function(e){var t=(0,a.default)(e.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):m.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(376),s=i(r);a.default.registerModule("search",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(379),s=i(r),l=n(0);a.default.registerModule("keyboardNavigation",(0,l.extend)(!0,{},s.default,{extenders:{
controllers:{keyboardNavigation:{_leftRightKeysHandler:function(e,t){var n,i,o=this.getVisibleRowIndex(),a=this._dataController;return e.ctrl?(i=this._getDirectionCodeByKey(e.keyName),n=a.getKeyByRowIndex(o),"nextInRow"===i?a.expandRow(n):a.collapseRow(n),void 0):this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(382),s=i(r);a.default.registerModule("virtualColumns",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=-1;return e.forEach(function(e,i){t(e)&&(n=i)}),n}var a=n(29),r=i(a),s=n(0),l=n(6),u=n(385),d=i(u);r.default.registerModule("focus",(0,s.extend)(!0,{},d.default,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&this.isRowExpanded(e)&&this._isFocusedRowInside(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(e){for(var t=this.option("focusedRowKey"),n=this.getRowIndexByKey(t),i=n>=0&&this.getVisibleRows()[n],o=i&&i.node.parent;o;){if(o.key===e)return!0;o=o.parent}return!1},getParentKey:function(e){var t=this,n=t._dataSource,i=t.getNodeByKey(e),o=new l.Deferred;return i?o.resolve(i.parent?i.parent.key:void 0):n.load({filter:[n.getKeyExpr(),"=",e]}).done(function(e){var t=e[0];t?o.resolve(n.parentKeyOf(t)):o.reject()}).fail(o.reject),o.promise()},expandAscendants:function(e){var t=this,n=t._dataSource,i=new l.Deferred;return t.getParentKey(e).done(function(e){n&&void 0!==e&&e!==t.option("rootValue")?(n._isNodesInitializing=!0,t.expandRow(e),n._isNodesInitializing=!1,t.expandAscendants(e).done(i.resolve).fail(i.reject)):i.resolve()}).fail(i.reject),i.promise()},getPageIndexByKey:function(e){var t=this,n=t._dataSource,i=new l.Deferred;return t.expandAscendants(e).done(function(){n.load({filter:t.getCombinedFilter(),sort:t.getController("columns").getSortDataSourceParameters(!n.remoteOperations().sorting),parentIds:[]}).done(function(n){var a=o(n,function(n){return t.keyOf(n.data)===e}),r=t.pageIndex();a>=0&&(r=Math.floor(a/t.pageSize())),i.resolve(r)}).fail(i.reject)}).fail(i.reject),i.promise()}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=n(386),s=i(r);a.default.registerModule("rowDragging",s.default)},function(e,t,n){e.exports=n(697)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=0;return(0,b.each)(e,function(e,n){t+=n||0}),t}function a(e,t){for(var n=t/e.length,i=0;i<e.length;i++)e[i]-=n}function r(e){e.off("scroll").off("stop")}function s(e,t){r(e),e.on("scroll",t).on("stop",t)}function l(e){if(fe[e])return fe[e];var t,n=0,i={},o=(0,h.default)(he).css({position:"absolute",visibility:"hidden",top:-1e3,left:-1e3,width:100,height:100}).appendTo("body"),a=(0,h.default)("<p>").css({width:"100%",height:200}).appendTo(o);return"auto"!==e&&(i.useNative=!!e,i.useSimulatedScrollbar=!e),o.dxScrollable(i),t=o.dxScrollable("instance").option("useNative"),n=t?o.width()-a.width():0,o.remove(),fe[e]={scrollBarWidth:n,scrollBarUseNative:t},fe[e]}function u(e,t){var n="width"===t?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return(0,b.each)(e,function(e,t){var o=Y.getComputedStyle(t.get(0));n.forEach(function(e){i+=parseFloat(o[e])||0})}),i}function d(e){return e.closest("."+re).length||e.find("."+re).length}var c=n(2),h=i(c),p=n(7),f=n(25),g=n(5),_=i(g),m=n(9),v=i(m),y=n(11),w=n(45),x=n(4),b=n(3),C=n(1),k=n(0),I=n(20),S=n(10),D=n(17),T=i(D),E=n(8),O=n(36),A=n(81),P=n(698),B=n(702),M=n(703),F=n(177),R=n(704),V=n(390),H=i(V),L=n(266),z=i(L),$=n(706),N=n(707),W=i(N),j=n(44),q=i(j),G=n(96),K=i(G),U=n(6),Y=(0,p.getWindow)(),X="dx-area-data-cell",Z="dx-area-row-cell",Q="dx-area-column-cell",J="dx-area-description-cell",ee="dx-pivotgrid-border",te="dx-pivotgrid",ne="dx-row-lines",ie="dx-bottom-row",oe="dx-bottom-border",ae="dx-pivotgrid-fields-container",re="dx-area-fields",se="dx-fieldchooser-popup",le="dx-incompressible-fields",ue="dx-overflow-hidden",de="<tr>",ce="<td>",he="<div>",pe=66666,fe={},ge=T.default.inherit({_getDefaultOptions:function(){return(0,k.extend)(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:(0,S.format)("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:(0,S.format)("dxPivotGrid-columnFieldArea"),rowFieldArea:(0,S.format)("dxPivotGrid-rowFieldArea"),filterFieldArea:(0,S.format)("dxPivotGrid-filterFieldArea"),dataFieldArea:(0,S.format)("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column","export":{enabled:!1,fileName:"PivotGrid",proxyUrl:void 0,ignoreExcelErrors:!0},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:(0,S.format)("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:(0,S.format)("dxPivotGrid-grandTotal"),total:(0,S.getFormatter)("dxPivotGrid-total"),noData:(0,S.format)("dxDataGrid-noDataText"),showFieldChooser:(0,S.format)("dxPivotGrid-showFieldChooser"),expandAll:(0,S.format)("dxPivotGrid-expandAll"),collapseAll:(0,S.format)("dxPivotGrid-collapseAll"),sortColumnBySummary:(0,S.getFormatter)("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:(0,S.getFormatter)("dxPivotGrid-sortRowBySummary"),removeAllSorting:(0,S.format)("dxPivotGrid-removeAllSorting"),exportToExcel:(0,S.format)("dxDataGrid-exportToExcel"),dataNotAvailable:(0,S.format)("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:(0,S.format)("dxDataGrid-headerFilterEmptyValue"),ok:(0,S.format)("dxDataGrid-headerFilterOK"),cancel:(0,S.format)("dxDataGrid-headerFilterCancel")}}})},_getDataControllerOptions:function(){var e=this;return{component:e,dataSource:e.option("dataSource"),texts:e.option("texts"),showRowTotals:e.option("showRowTotals"),showRowGrandTotals:e.option("showRowGrandTotals"),showColumnTotals:e.option("showColumnTotals"),showTotalsPrior:e.option("showTotalsPrior"),showColumnGrandTotals:e.option("showColumnGrandTotals"),dataFieldArea:e.option("dataFieldArea"),rowHeaderLayout:e.option("rowHeaderLayout"),hideEmptySummaryCells:e.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){(0,b.each)(t,function(t,n){(0,b.each)(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"],function(t,i){void 0===n[i]&&(0,A.setFieldProperty)(n,i,e.option(i))})})}}},_initDataController:function(){var e=this;e._dataController&&e._dataController.dispose(),e._dataController=new P.DataController(e._getDataControllerOptions()),(0,p.hasWindow)()&&e._dataController.changed.add(function(){e._render()}),e._dataController.scrollChanged.add(function(t){e._scrollLeft=t.left,e._scrollTop=t.top}),e._dataController.loadingChanged.add(function(t){e._updateLoading()}),e._dataController.progressChanged.add(e._updateLoading.bind(e)),e._dataController.dataSourceChanged.add(function(){e._trigger("onChanged")});var t=e.option("onExpandValueChanging");t&&e._dataController.expandValueChanging.add(function(e){t(e)})},_init:function(){var e=this;e.callBase(),e._initDataController(),e._scrollLeft=e._scrollTop=null,e._initActions()},_initActions:function(){var e=this;e._actions={onChanged:e._createActionByOption("onChanged"),onContextMenuPreparing:e._createActionByOption("onContextMenuPreparing"),onCellClick:e._createActionByOption("onCellClick"),onExporting:e._createActionByOption("onExporting"),onExported:e._createActionByOption("onExported"),onFileSaving:e._createActionByOption("onFileSaving"),onCellPrepared:e._createActionByOption("onCellPrepared")}},_trigger:function(e,t){this._actions[e](t)},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":t._initDataController(),t._fieldChooserPopup.hide(),t._renderFieldChooser(),t._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":break;case"rtlEnabled":t.callBase(e),t._renderFieldChooser(),t._renderContextMenu(),(0,p.hasWindow)()&&t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate();break;case"export":t._renderDescriptionArea();break;case"onExpandValueChanging":break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":t._actions[e.name]=t._createActionByOption(e.name);break;case"fieldChooser":t._renderFieldChooser(),t._renderDescriptionArea();break;case"loadPanel":(0,p.hasWindow)()&&(t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate());break;case"fieldPanel":t._renderDescriptionArea(),t._invalidate();break;case"headerFilter":t._renderFieldChooser(),t._invalidate();break;case"showBorders":t._tableElement().toggleClass(ee,!!e.value),t.updateDimensions();break;case"wordWrapEnabled":t._tableElement().toggleClass("dx-word-wrap",!!e.value),t.updateDimensions();break;case"rowHeaderLayout":t._tableElement().find("."+Z).toggleClass("dx-area-tree-view","tree"===e.value),t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"height":case"width":t._hasHeight=null,t.callBase(e),t.resize();break;default:t.callBase(e)}},_updateScrollPosition:function(e,t,n){var i,o,a=this,r=a._scrollTop||a._scrollLeft;a._scrollUpdating||(a._scrollUpdating=!0,t&&!t.hasScroll()&&a._hasHeight&&(a._scrollTop=null),e&&!e.hasScroll()&&(a._scrollLeft=null),(null!==a._scrollTop||null!==a._scrollLeft||r||a.option("rtlEnabled"))&&(i=a._scrollTop||0,o=a._scrollLeft||0,n.scrollTo({x:o,y:i}),e.scrollTo(o),t.scrollTo(i),a._dataController.updateWindowScrollPosition(a._scrollTop)),a._scrollUpdating=!1)},_subscribeToEvents:function(e,t,n){var i=this,o=function(o){var a=o.scrollOffset,r=(0,C.isDefined)(a.left)?a.left:i._scrollLeft,s=(0,C.isDefined)(a.top)&&i._hasHeight?a.top:i._scrollTop;(i._scrollLeft||0)===(r||0)&&(i._scrollTop||0)===(s||0)||(i._scrollLeft=r,i._scrollTop=s,i._updateScrollPosition(e,t,n),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop))};(0,b.each)([e,t,n],function(e,t){s(t,o)}),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(n.groupElement())},_clean:x.noop,_needDelayResizing:function(e){var t=e.length*(e.length?e[0].length:0);return t>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var e=this,t=e._pivotGridContainer,n=e.option("fieldChooser")||{},i="onDemand"===n.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:(0,S.format)("OK"),onClick:function(t){e._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),e._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:(0,S.format)("Cancel"),onClick:function(t){e._fieldChooserPopup.hide()}}}]:[],o={layout:n.layout,texts:n.texts||{},dataSource:e.getDataSource(),allowSearch:n.allowSearch,searchTimeout:n.searchTimeout,width:void 0,height:void 0,headerFilter:e.option("headerFilter"),encodeHtml:e.option("encodeHtml"),applyChangesMode:n.applyChangesMode,onContextMenuPreparing:function(t){e._trigger("onContextMenuPreparing",t)}},a={shading:!1,title:n.title,width:n.width,height:n.height,showCloseButton:!0,resizeEnabled:!0,minWidth:n.minWidth,minHeight:n.minHeight,toolbarItems:i,onResize:function(e){e.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(t){e._createComponent(t.component.content(),H.default,o)},onHidden:function(e){var t=e.component.$content().dxPivotGridFieldChooser("instance");t.resetTreeView(),t.cancelChanges()}};e._fieldChooserPopup?(e._fieldChooserPopup.option(a),e._fieldChooserPopup.$content().dxPivotGridFieldChooser(o)):e._fieldChooserPopup=e._createComponent((0,h.default)(he).addClass(se).appendTo(t),q.default,a)},_renderContextMenu:function(){var e=this,t=e._pivotGridContainer;e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,h.default)(he).appendTo(t),K.default,{onPositioning:function(t){var n,i,o,a=t.event;if(t.cancel=!0,a&&(n=a.target.cellIndex>=0?a.target:(0,h.default)(a.target).closest("td").get(0)))return i=e._createEventArgs(n,a),o=e._getContextMenuItems(i),o?(t.component.option("items",o),void(t.cancel=!1)):void 0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:te,target:e.$element()})},_getContextMenuItems:function(e){var t=this,n=[],i=t.option("texts");if("row"===e.area||"column"===e.area){var o=e[e.area+"Fields"],a=e["column"===e.area?"rowFields":"columnFields"],r=e.cell.path&&o[e.cell.path.length-1],s=t.getDataSource();if(r&&r.allowExpandAll&&e.cell.path.length<e[e.area+"Fields"].length&&!s.paginate()&&(n.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){s.expandAll(r.index)}}),n.push({text:i.collapseAll,icon:"none",onItemClick:function(){s.collapseAll(r.index)}})),e.cell.isLast&&!s.paginate()){var l=0;(0,b.each)(a,function(t,o){o.allowSortingBySummary&&(0,b.each)(e.dataFields,function(t,a){if(!(0,C.isDefined)(e.cell.dataIndex)||e.cell.dataIndex===t){var r=!(0,C.isDefined)(e.cell.dataIndex)&&e.dataFields.length>1,u="column"===e.area?i.sortColumnBySummary:i.sortRowBySummary,d=(0,A.findField)(e.dataFields,o.sortBySummaryField)===t&&(e.cell.path||[]).join("/")===(o.sortBySummaryPath||[]).join("/"),c=(0,w.format)(u,r?o.caption+" - "+a.caption:o.caption);n.push({beginGroup:0===l,icon:d?"desc"===o.sortOrder?"sortdowntext":"sortuptext":"none",text:c,onItemClick:function(){s.field(o.index,{sortBySummaryField:a.name||a.caption||a.dataField,sortBySummaryPath:e.cell.path,sortOrder:"desc"===o.sortOrder?"asc":"desc"}),s.load()}}),l++}})}),(0,b.each)(a,function(e,t){if(t.allowSortingBySummary&&(0,C.isDefined)(t.sortBySummaryField))return n.push({beginGroup:0===l,icon:"none",text:i.removeAllSorting,onItemClick:function(){(0,b.each)(a,function(e,t){s.field(t.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})}),s.load()}}),!1})}}if(t.option("fieldChooser.enabled")&&n.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&n.push({beginGroup:!0,icon:"xlsxfile",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),e.items=n,t._trigger("onContextMenuPreparing",e),n=e.items,n&&n.length)return n},_createEventArgs:function(e,t){var n=this,i=n.getDataSource(),o={rowFields:i.getAreaFields("row"),columnFields:i.getAreaFields("column"),dataFields:i.getAreaFields("data"),event:t};return d((0,h.default)(e))?(0,k.extend)(n._createFieldArgs(e),o):(0,k.extend)(n._createCellArgs(e),o)},_createFieldArgs:function(e){var t=(0,h.default)(e).children().data("field"),n={field:t};return(0,C.isDefined)(t)?n:{}},_createCellArgs:function(e){var t=(0,h.default)(e),n=e.cellIndex,i=e.parentElement.rowIndex,o=t.closest("table"),a=o.data("data"),r=a&&a[i]&&a[i][n],s={area:o.data("area"),rowIndex:i,columnIndex:n,cellElement:(0,y.getPublicElement)(t),cell:r};return s},_handleCellClick:function(e){var t=this,n=t._createEventArgs(e.currentTarget,e),i=n.cell;i&&(n.area||!n.rowIndex&&!n.columnIndex)&&(t._trigger("onCellClick",n),i&&!n.cancel&&(0,C.isDefined)(i.expanded)&&setTimeout(function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](n.area,i.path)}))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:O.renderNoDataText,_renderLoadPanel:O.renderLoadPanel,_updateLoading:function(e){var t,n=this,i=n._dataController.isLoading();n._loadPanel&&(t=n._loadPanel.option("visible"),t||(n._startLoadingTime=new Date),i&&(e?new Date-n._startLoadingTime>=1e3&&n._loadPanel.option("message",Math.floor(100*e)+"%"):n._loadPanel.option("message",n.option("loadPanel.text"))),clearTimeout(n._hideLoadingTimeoutID),t&&!i?n._hideLoadingTimeoutID=setTimeout(function(){n._loadPanel.option("visible",!1),n.$element().removeClass(ue)}):(n._loadPanel.option("visible",i),n.$element().toggleClass(ue,!i)))},_renderDescriptionArea:function(){var e=this,t=this.$element(),n=t.find("."+J),i=(0,h.default)(he).addClass("dx-pivotgrid-toolbar"),o=this.option("fieldPanel"),a=t.find(".dx-filter-header"),r=t.find(".dx-column-header"),s=void 0;if(s=o.visible&&o.showFilterFields?a:o.visible&&(o.showDataFields||o.showColumnFields)?r:n,r.toggleClass(oe,!(!o.visible||!o.showDataFields&&!o.showColumnFields)),a.toggleClass(oe,!(!o.visible||!o.showFilterFields)),n.toggleClass("dx-pivotgrid-background",o.visible&&(o.showDataFields||o.showColumnFields||o.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),i.prependTo(s),this.option("fieldChooser.enabled")){var l=(0,h.default)(he).appendTo(i).addClass("dx-pivotgrid-field-chooser-button"),u={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:function(){e.getFieldChooserPopup().show()}};this._createComponent(l,"dxButton",u)}if(this.option("export.enabled")){var d=(0,h.default)(he).appendTo(i).addClass("dx-pivotgrid-export-button"),c={icon:"xlsxfile",hint:this.option("texts.exportToExcel"),onClick:function(){e.exportToExcel()}};this._createComponent(d,"dxButton",c)}},_detectHasContainerHeight:function(){var e,t=this,n=t.$element();(0,C.isDefined)(t._hasHeight)||n.is(":hidden")||(t._pivotGridContainer.addClass("dx-hidden"),e=(0,h.default)(he).height(pe),n.append(e),t._hasHeight=n.height()!==pe,t._pivotGridContainer.removeClass("dx-hidden"),e.remove())},_renderHeaders:function(e,t,n,i){var o=this,a=o.getDataSource();o._rowFields=o._rowFields||new R.FieldsArea(o,"row"),o._rowFields.render(e,a.getAreaFields("row")),o._columnFields=o._columnFields||new R.FieldsArea(o,"column"),o._columnFields.render(t,a.getAreaFields("column")),o._filterFields=o._filterFields||new R.FieldsArea(o,"filter"),o._filterFields.render(n,a.getAreaFields("filter")),o._dataFields=o._dataFields||new R.FieldsArea(o,"data"),o._dataFields.render(i,a.getAreaFields("data")),o.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var e=this,t=(0,h.default)("<table>").css({width:"100%"}).toggleClass(ee,!!e.option("showBorders")).toggleClass("dx-word-wrap",!!e.option("wordWrapEnabled"));return _.default.on(t,(0,E.addNamespace)(I.name,"dxPivotGrid"),"td",e._handleCellClick.bind(e)),t},_renderDataArea:function(e){var t=this,n=t._dataArea||new B.DataArea(t);return t._dataArea=n,n.render(e,t._dataController.getCellsInfo()),n},_renderRowsArea:function(e){var t=this,n=t._rowsArea||new M.VerticalHeadersArea(t);return t._rowsArea=n,n.render(e,t._dataController.getRowsInfo()),n},_renderColumnsArea:function(e){var t=this,n=t._columnsArea||new M.HorizontalHeadersArea(t);return t._columnsArea=n,n.render(e,t._dataController.getColumnsInfo()),n},_initMarkup:function(){var e=this;e.callBase.apply(this,arguments),e.$element().addClass(te)},_renderContentImpl:function(){var e,t,n,i,o,a,s,l,u,d,c,p=this,g=!p._pivotGridContainer;i=!g&&p._tableElement(),i||(p.$element().addClass(ne).addClass(ae),p._pivotGridContainer=(0,h.default)(he).addClass("dx-pivotgrid-container"),p._renderFieldChooser(),p._renderContextMenu(),e=(0,h.default)(ce).addClass(Q),t=(0,h.default)(ce).addClass(Z),n=(0,h.default)(ce).addClass(X),i=p._createTableElement(),c=(0,h.default)(ce).addClass("dx-data-header"),d=(0,h.default)("<td>").attr("colspan","2").addClass("dx-filter-header"),u=(0,h.default)(ce).addClass("dx-column-header"),l=(0,h.default)(ce).addClass(J),(0,h.default)(de).append(d).appendTo(i),(0,h.default)(de).append(c).append(u).appendTo(i),(0,h.default)(de).toggleClass("dx-ie",f.msie===!0).append(l).append(e).appendTo(i),(0,h.default)(de).addClass(ie).append(t).append(n).appendTo(i),p._pivotGridContainer.append(i),p.$element().append(p._pivotGridContainer),"tree"===p.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),p.$element().addClass(ue),p._createComponent(p.$element(),z.default,{dataSource:p.getDataSource(),encodeHtml:p.option("encodeHtml"),allowFieldDragging:p.option("fieldPanel.allowFieldDragging"),headerFilter:p.option("headerFilter"),visible:p.option("visible")}),o=p._renderDataArea(n),a=p._renderRowsArea(t),s=p._renderColumnsArea(e),o.tableElement().prepend(s.headElement()),g&&(p._renderLoadPanel(o.groupElement().parent(),p.$element()),p._renderDescriptionArea(),a.processScroll(),s.processScroll()),[o,a,s].forEach(function(e){r(e)}),p._renderHeaders(l,u,d,c),p._update(g)},_update:function(e){var t,n=this;t=function(){n.updateDimensions().done(function(){n._subscribeToEvents(n._columnsArea,n._rowsArea,n._dataArea)})},n._needDelayResizing(n._dataArea.getData())&&e?setTimeout(t):t()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(e){var t=this;return"column"===e?t._columnsArea.getScrollPath(t._scrollLeft):t._rowsArea.getScrollPath(t._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(e){var t=this;return"column"===e?t._columnsArea.hasScroll():t._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(e){e&&this.updateDimensions()},_dispose:function(){var e=this;clearTimeout(e._hideLoadingTimeoutID),e.callBase.apply(e,arguments),e._dataController&&e._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(e){return"dx-pivotgrid-"+e},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var e,t,n,i,r,s,d,c,f,g,_,m,v,y,w,C,k,I=this,S=I._tableElement(),D=I._rowsArea,T=I._columnsArea,E=I._dataArea,O=0,P=0,B=0,M=I.option("scrolling")||{},R=l(M.useNative),V=R.scrollBarWidth,H=S.find("."+X),L=S.find("."+Z),z=S.find("."+Q),$=S.find("."+J),N=S.find(".dx-filter-header"),W=S.find(".dx-column-header"),j=I._rowFields,q=new U.Deferred;if((0,p.hasWindow)())return k=j.isVisible()&&"tree"!==I.option("rowHeaderLayout"),I._detectHasContainerHeight(),E.headElement().length||E.tableElement().prepend(T.headElement()),k&&(D.updateColspans(j.getColumnsCount()),D.tableElement().prepend(j.headElement())),S.addClass(le),E.reset(),D.reset(),T.reset(),j.reset(),(0,x.deferUpdate)(function(){return s=E.getColumnsWidth(),w=D.getRowsHeight(),i=k?w.slice(1):w,n=E.getRowsHeight(),v=(0,F.getSize)($[0],"height",{paddings:!0,borders:!0,margins:!0})+(k?w[0]:0),C=I._dataController.getColumnsInfo().length,r=(0,A.mergeArraysByMaxValue)(i,n.slice(C)),y=n.slice(0,C),m=o(y),d=D.getColumnsWidth(),I._hasHeight&&(c=u([z,H,S,W,N],"height"),t=I.$element().height()-N.height()-S.find(".dx-data-header").height()-(Math.max(E.headElement().height(),z.height(),v)+c)),O=E.tableElement().width(),P=o(r),O&&P?(B=o(d),_=I.$element().width(),c=u([L,H,S],"width"),e=_-B-c,e=e>0?e:O,f=I._hasHeight&&P-t>=1,g=O-e>=1,f||(t=P+(g?V:0)),void(0,x.deferRender)(function(){if(T.tableElement().append(E.headElement()),j.tableElement().append(D.headElement()),!g&&f&&V&&(a(s,V),O-=V),v>m&&(a(y,m-v),T.setRowsHeight(y)),S.removeClass(le),W.children().css("maxWidth",e),T.groupWidth(e),T.processScrollBarSpacing(f?V:0),T.setColumnsWidth(s),D.groupHeight(I._hasHeight?t:"auto"),D.processScrollBarSpacing(g?V:0),D.setColumnsWidth(d),D.setRowsHeight(r),E.setColumnsWidth(s),E.setRowsHeight(r),E.groupWidth(e),E.groupHeight(I._hasHeight?t:"auto"),k&&j.setColumnsWidth(d),H.toggleClass(oe,!f),L.toggleClass(oe,!f),!I._hasHeight&&_!==I.$element().width()){var n=_-I.$element().width();g||(a(s,n),T.setColumnsWidth(s),E.setColumnsWidth(s)),E.groupWidth(e-n),T.groupWidth(e-n)}if("virtual"===M.mode){var i=I._dataController.calculateVirtualContentParams({virtualRowHeight:M.virtualRowHeight,virtualColumnWidth:M.virtualColumnWidth,itemWidths:s,itemHeights:r,rowCount:r.length,columnCount:s.length,viewportWidth:e,viewportHeight:I._hasHeight?t:(0,h.default)(Y).outerHeight()});E.setVirtualContentParams({top:i.contentTop,left:i.contentLeft,width:i.width,height:i.height}),D.setVirtualContentParams({top:i.contentTop,width:B,height:i.height}),T.setVirtualContentParams({left:i.contentLeft,width:i.width,height:T.groupElement().height()})}var o=[];E.processScroll(R.scrollBarUseNative,g,f),(0,b.each)([T,D,E],function(e,t){o.push(t&&t.updateScrollable())}),I._updateLoading(),I._renderNoDataText(H),U.when.apply(h.default,o).done(function(){I._updateScrollPosition(T,D,E),q.resolve()})})):void q.resolve()}),q},applyPartialDataSource:function(e,t,n){this._dataController.applyPartialDataSource(e,t,n)}}).inherit($.ExportMixin).include(W.default);(0,v.default)("dxPivotGrid",ge),e.exports=ge},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(26),r=i(a),s=n(6),l=n(0),u=n(14),d=n(3),c=i(d),h=n(15),p=i(h),f=n(45),g=i(f),_=n(4),m=i(_),v=n(1),y=n(365),w=i(y),x=n(383),b=i(x),C=n(354),k=i(C),I=n(264),S=i(I),D=n(81),T=i(D),E=Math,O="GT",A="T",P="D",B="#N/A",M=300,F=function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})};t.DataController=p.default.inherit(function(){function e(e,t,n){var i=e.text;return(0,v.isDefined)(e.displayText)?i=e.displayText:(0,v.isDefined)(e.caption)?i=e.caption:e.type===O&&(i=n.texts.grandTotal),e.isAdditionalTotal&&(i=g.default.format(n.texts.total||"",i)),i}function t(e,t,n){return e===B?n:(0,D.formatValue)(e,t)}function n(e,t){var n=[];return c.default.each(e,function(e,i){var o=T.default.findField(t,i.sortBySummaryField);o>=0&&n.push((i.sortBySummaryPath||[]).concat([o]))}),n}function i(e,t){for(var n=0,i=[],o=0;o<e.length;o++)for(var a=0;a<e[o].length;a++){var r=(e[o][a].rowspan||1)-1,s=o+r;if(i[o]&&(n-=i[o],i[o]=0),t(e[o][a],s,o,a,n)===!1)break;i[o+(e[o][a].rowspan||1)]=(i[o+(e[o][a].rowspan||1)]||0)+1,n++}}function a(e,n,o,a,r,s){var l=[],u="row"===r,d=o.values;return d.length&&i(e,function(e,i){var r=l[i]=[],c=d[e.dataSourceIndex>=0?e.dataSourceIndex:o.grandTotalRowIndex]||[];e.isLast&&b.default.foreachColumnInfo(n,function(n,i){var l=(u?e.dataIndex:n.dataIndex)||0,d=a[l];if(n.isLast&&d){var h,p=c[n.dataSourceIndex>=0?n.dataSourceIndex:o.grandTotalColumnIndex];Array.isArray(p)||(p=[p]),h=p[l],r[i]={text:t(h,d,s),value:h,format:d.format,dataType:d.dataType,columnType:n.type,rowType:e.type,rowPath:e.path||[],columnPath:n.path||[],dataIndex:l},d.width&&(r[i].width=d.width)}})}),l}function d(e,t){var n=0,i=[];return(0,D.foreachTree)(e,function(e){var o=e[0],a=(0,D.createPath)(e);if(!o.children||t.showTotals!==!1){var r=(0,l.extend)(!0,{},o,{visibleIndex:n++,path:a});(0,v.isDefined)(r.index)?i[r.index]=r:i.push(r)}}),i}function h(e,t,n){if(t&&"virtual"===t.option("scrolling.mode"))return new w.default.VirtualScrollController(t,(0,l.extend)({hasKnownLastPage:function(){return!0},pageCount:function(){return E.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return e.isLoading()},changingDuration:function(){var t=e._dataSource;return t.paginate()?M:e._changingDuration||0}},n))}function p(e){var t=[];return c.default.each(e,function(e,n){n.showTotals===!1&&t.push(e)}),t}function f(e){var t=[];return e.forEach(function(e,n){(void 0===e.showValues&&e.showTotals===!1||e.showValues===!1)&&t.push(n)}),t}function _(e,t){var n=[];return c.default.each(e,function(e,t){t.showGrandTotals===!1&&n.push(e)}),0===t.length&&n.length===e.length&&(n=[]),n}var y=function(){function t(e,t,n){var i=e[t]=e[t]||[],o=i[n]={};if(e[t+1]){o.children=e[t+1];for(var a=t+1;a<e.length;a++)e[a]=void 0;e.length=t+1}return o}function n(e,n){var i,o=n&&n.length||0,a=[],r=new s.Deferred;return(0,s.when)((0,D.foreachTreeAsync)(e,function(e,n){var r=e[0],s=(0,D.createPath)(e);i=t(a,s.length,n),i.type=P,i.value=r.value,i.path=s,i.text=r.text,i.index=r.index,i.displayText=r.displayText,i.key=r.key,i.isEmpty=r.isEmpty,s.length<o&&(!r.children||0!==r.children.length)&&(i.expanded=!!r.children)})).done(function(){r.resolve(t(a,0,0).children||[])}),r}var i=function(e){var t=0;return(0,D.foreachTree)(e,function(e){t=E.max(t,e.length)}),t},o=function(e,t,n,i){var o={type:e.type,text:e.text};return e.path&&(o.path=e.path),e.width&&(o.width=e.width),(0,v.isDefined)(e.wordWrapEnabled)&&(o.wordWrapEnabled=e.wordWrapEnabled),e.isLast&&(o.isLast=!0),e.sorted&&(o.sorted=!0),e.isMetric&&(o.dataIndex=e.dataIndex),(0,v.isDefined)(e.expanded)&&(o.expanded=e.expanded),t>1&&(o[n?"colspan":"rowspan"]=t),e.depthSize&&e.depthSize>1&&(o[n?"rowspan":"colspan"]=e.depthSize),e.index>=0&&(o.dataSourceIndex=e.index),i&&e.children&&e.children.length&&!e.children[0].isMetric&&(o.width=null,o.isWhiteSpace=!0),o},a=function(e,t){var n,i=t.lastIndex-t.index||1,a=function(e,t,n,i,o){for(var a=o?i:n;!e[a];)e.push([]);o?e[a].push(t):e[a].unshift(t)};return n=o(t.headerItem,i,t.isHorizontal,t.isTree),a(e,n,t.index,t.depth,t.isHorizontal),t.headerItem.children&&0!==t.headerItem.children.length?t.lastIndex:t.lastIndex+1},r=function(e,t){var n,i=e[0],o=(0,v.isString)(t[0]),a=i.dataIndex>=0?e[1]:i;return n=o&&t[0].indexOf("&[")!==-1&&a.key||!a.key?(0,D.createPath)(e):c.default.map(e,function(e){return e.dataIndex>=0?e.value:e.text}).reverse(),i.type===O&&(n=n.slice(1)),n.join("/")===t.join("/")},d=function(t,i,o,a,l){var d=o.length,f=n(t,i),_=l.dataFields,m=new s.Deferred;return(0,s.when)(f).done(function(t){l.notifyProgress(.5),l.showGrandTotals&&t[l.showTotalsPrior?"unshift":"push"]({type:O,isEmpty:l.isEmptyGrandTotal});var n=l.showTotals===!1||_.length>0&&_.length===l.hiddenTotals.length,f=_.length>0&&l.hiddenValues.length===_.length;f&&n&&(a=1),n&&"tree"!==l.layout||p(t,i,l.showTotalsPrior,"tree"===l.layout),(0,s.when)((0,D.foreachTreeAsync)(t,function(e){var t=e[0];t.children&&0!==t.children.length||(t.depthSize=a-e.length+1)})).done(function(){d>1&&h(t,o,l),!l.showEmpty&&g(t),l.notifyProgress(.75),(0,s.when)((0,D.foreachTreeAsync)(t,function(n){var a=n[0],s=a.isMetric,d=i[n.length-1]||{};if(a.type!==P||s||(a.width=d.width),f===!0&&a.type===P){var h=(n[1]?n[1].children:t)||[];return void h.splice((0,u.inArray)(a,h),1)}s?a.wordWrapEnabled=o[a.dataIndex].wordWrapEnabled:a.wordWrapEnabled=d.wordWrapEnabled,a.isLast=!a.children||!a.children.length,a.isLast&&c.default.each(l.sortBySummaryPaths,function(e,t){if((0,v.isDefined)(a.dataIndex)||(t=t.slice(0),t.pop()),r(n,t))return a.sorted=!0,!1}),a.text=e(a,d,l)})).done(function(){t.length||t.push({}),l.notifyProgress(1),m.resolve(t)})})}),m},h=function(e,t,n){(0,D.foreachTree)(e,function(e){
var i,o=e[0];if(!o.children||0===o.children.length)for(o.children=[],i=0;i<t.length;i++){var a=o.type===O,r=o.type===A,s=o.type===P,l=t[i].visible===!1||a&&(0,u.inArray)(i,n.hiddenGrandTotals)!==-1||r&&(0,u.inArray)(i,n.hiddenTotals)!==-1||s&&(0,u.inArray)(i,n.hiddenValues)!==-1;l||o.children.push({caption:t[i].caption,path:o.path,type:o.type,value:i,index:o.index,dataIndex:i,isMetric:!0,isEmpty:o.isEmpty&&o.isEmpty[i]})}})},p=function(e,t,n,i){n=n||i,(0,D.foreachTree)(e,function(o,a){var r=o[0],s=(o[1]?o[1].children:e)||[],u=t[o.length-1];r.type===P&&r.expanded&&(u.showTotals!==!1||i)&&(a!==-1&&s.splice(n?a:a+1,0,(0,l.extend)({},r,{children:null,type:A,expanded:!!n||null,isAdditionalTotal:!0})),n&&(r.expanded=null))})},f=function e(t,n){var i=t[n+1];!t[n].children.length&&i&&i.children&&(i.children.splice((0,u.inArray)(t[n],i.children),1),e(t,n+1))},g=function(e){(0,D.foreachTree)([{children:e}],function(t,n){var i=t[0],o=(t[1]?t[1].children:e)||[],a=i.isEmpty;a&&a.length&&(a=i.isEmpty.filter(function(e){return e}).length===a.length),i&&!i.children&&a&&(o.splice(n,1),f(t,1))})},_=function(e,t,n,i,o){var r,s,l=0,u=[0];(0,D.foreachTree)(t,function(t){var d=t[0];for(s=d.isMetric?n:t.length-1;u.length-1<s;)u.push(u[u.length-1]);r=u[s]||0,l=a(e,{headerItem:d,index:r,lastIndex:l,depth:s,isHorizontal:i,isTree:o}),u.length=s,u.push(l)})};return function(e,t,n,o,a){var r=[],l=i(e)||1,u=new s.Deferred;return d(e,t,n,l,a).done(function(e){_(r,e,l,o,"tree"===a.layout),a.notifyProgress(1),u.resolve(r)}),u}}(),x={ctor:function(e){var t=this,n=t._fireChanged.bind(t);e=t._options=e||{},t.dataSourceChanged=(0,r.default)(),t._dataSource=t._createDataSource(e),t._rowsScrollController=h(t,e.component,{totalItemsCount:function(){return t.totalRowCount()},pageIndex:function(e){return t.rowPageIndex(e)},pageSize:function(){return t.rowPageSize()},load:function(){return t._rowsScrollController.pageIndex()>=this.pageCount()&&t._rowsScrollController.pageIndex(this.pageCount()-1),t._rowsScrollController.handleDataChanged(function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)})}}),t._columnsScrollController=h(t,e.component,{totalItemsCount:function(){return t.totalColumnCount()},pageIndex:function(e){return t.columnPageIndex(e)},pageSize:function(){return t.columnPageSize()},load:function(){return t._columnsScrollController.pageIndex()>=this.pageCount()&&t._columnsScrollController.pageIndex(this.pageCount()-1),t._columnsScrollController.handleDataChanged(function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)})}}),t._stateStoringController=new k.default.StateStoringController(e.component).init(),t._columnsInfo=[],t._rowsInfo=[],t._cellsInfo=[],t.expandValueChanging=(0,r.default)(),t.loadingChanged=(0,r.default)(),t.progressChanged=(0,r.default)(),t.scrollChanged=(0,r.default)(),t.load(),t._update(),t.changed=(0,r.default)()},_fireChanged:function(){var e=this,t=new Date;e.changed&&!e._lockChanged&&e.changed.fire(),e._changingDuration=new Date-t},_correctSkipsTakes:function(e,t,n,i,o,a){var r=n?e+n-1:e;o[i.length]=o[i.length]||0,a[i.length]=a[i.length]||0,r<t?o[i.length]++:a[i.length]++},_calculatePagingForRowExpandedPaths:function(e,t,n,i,o){var a,r,s,l=this._rowsInfo,u=Math.min(e.rowSkip+e.rowTake,l.length),d=e.rowExpandedPaths,c=[],h={};for(d.forEach(function(e,t){h[e]=t}),a=0;a<u;a++){for(n.length=t.length=c.length+1,r=0;r<l[a].length;r++){var p=l[a][r];if("D"===p.type){this._correctSkipsTakes(a,e.rowSkip,p.rowspan,c,t,n),s=p.path||s;var f=s&&s.length>1?h[s.slice(0,-1)]:-1;f>=0&&(i[f]=t[c.length]||0,o[f]=n[c.length]||0),p.rowspan&&c.push(p.rowspan)}}c=c.map(function(e){return e-1}).filter(function(e){return e>0})}},_calculatePagingForColumnExpandedPaths:function(e,t,n,i,o){var a={},r={};b.default.foreachColumnInfo(this._columnsInfo,function(t,n){if("D"===t.type&&t.path&&void 0===t.dataIndex){var i=t.colspan||1,o=t.path.slice(0,-1).toString();a[o]=a[o]||0,r[o]=r[o]||0,n+i<=e.columnSkip?a[o]++:n<e.columnSkip+e.columnTake&&r[o]++}}),t[0]=a[[]],n[0]=r[[]],e.columnExpandedPaths.forEach(function(e,t){var n=a[e],s=r[e];void 0!==n&&(i[t]=n),void 0!==s&&(o[t]=s)})},_processPagingForExpandedPaths:function(e,t,n,i){var o=e[t+"ExpandedPaths"],a=o.map(function(){return 0}),r=o.map(function(){return i?e.pageSize:0}),s=[],l=[];i||("row"===t?this._calculatePagingForRowExpandedPaths(e,s,l,a,r):this._calculatePagingForColumnExpandedPaths(e,s,l,a,r)),this._savePagingForExpandedPaths(e,t,n,s[0],l[0],a,r)},_savePagingForExpandedPaths:function(e,t,n,i,a,r,s){var u=e[t+"ExpandedPaths"];e[t+"ExpandedPaths"]=[],e[t+"Skip"]=void 0!==i?i:e[t+"Skip"],e[t+"Take"]=void 0!==a?a:e[t+"Take"];for(var d=0;d<u.length;d++)if(s[d]){var c,h=e.area&&e.area!==t;n.push((0,l.extend)({area:t,headerName:t+"s"},e,(c={},o(c,t+"Skip",r[d]),o(c,t+"Take",s[d]),o(c,h?"oppositePath":"path",u[d]),c)))}},_handleCustomizeStoreLoadOptions:function(e,t){var n=this,i=e[0],o=this._rowsScrollController;if(this._dataSource.paginate()&&o){var a=o._dataSource.pageSize();"rows"===i.headerName?(i.rowSkip=0,i.rowTake=a,i.rowExpandedPaths=[]):(i.rowSkip=o.beginPageIndex()*a,i.rowTake=(o.endPageIndex()-o.beginPageIndex()+1)*a,this._processPagingForExpandedPaths(i,"row",e,t))}var r=this._columnsScrollController;if(this._dataSource.paginate()&&r){var s=r._dataSource.pageSize();e.forEach(function(i,o){"columns"===i.headerName?(i.columnSkip=0,i.columnTake=s,i.columnExpandedPaths=[]):(i.columnSkip=r.beginPageIndex()*s,i.columnTake=(r.endPageIndex()-r.beginPageIndex()+1)*s,n._processPagingForExpandedPaths(i,"column",e,t))})}},load:function(){var e=this,t=this._stateStoringController;t.isEnabled()&&!t.isLoaded()?t.load().always(function(t){t?e._dataSource.state(t):e._dataSource.load()}):e._dataSource.load()},calculateVirtualContentParams:function(e){var t=this,n=t._rowsScrollController,i=t._columnsScrollController;if(n&&i)return n.viewportItemSize(e.virtualRowHeight),n.viewportSize(e.viewportHeight/n.viewportItemSize()),n.setContentSize(e.itemHeights),i.viewportItemSize(e.virtualColumnWidth),i.viewportSize(e.viewportWidth/i.viewportItemSize()),i.setContentSize(e.itemWidths),m.default.deferUpdate(function(){i.loadIfNeed(),n.loadIfNeed()}),t.scrollChanged.fire({left:i.getViewportPosition(),top:n.getViewportPosition()}),{contentTop:n.getContentOffset(),contentLeft:i.getContentOffset(),width:i.getVirtualContentSize(),height:n.getVirtualContentSize()}},setViewportPosition:function(e,t){this._rowsScrollController.setViewportPosition(t||0),this._columnsScrollController.setViewportPosition(e||0)},subscribeToWindowScrollEvents:function(e){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(e)},updateWindowScrollPosition:function(e){this._rowsScrollController&&this._rowsScrollController.scrollTo(e)},updateViewOptions:function(e){(0,l.extend)(this._options,e),this._update()},_handleExpandValueChanging:function(e){this.expandValueChanging.fire(e)},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleProgressChanged:function(e){this.progressChanged.fire(e)},_handleFieldsPrepared:function(e){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(e)},_createDataSource:function(e){var t,n=this,i=e.dataSource;return n._isSharedDataSource=i instanceof S.default,t=n._isSharedDataSource?i:new S.default(i),n._expandValueChangingHandler=n._handleExpandValueChanging.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._fieldsPreparedHandler=n._handleFieldsPrepared.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._changedHandler=function(){n._update(),n.dataSourceChanged.fire()},n._progressChangedHandler=function(e){n._handleProgressChanged(.8*e)},t.on("changed",n._changedHandler),t.on("expandValueChanging",n._expandValueChangingHandler),t.on("loadingChanged",n._loadingChangedHandler),t.on("progressChanged",n._progressChangedHandler),t.on("fieldsPrepared",n._fieldsPreparedHandler),t.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),t},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var e=this,t=e._dataSource,i=e._options,o=t.getAreaFields("column"),a=t.getAreaFields("row"),r=t.getAreaFields("data"),l="row"===i.dataFieldArea?r:[],u="row"!==i.dataFieldArea?r:[],c=t.getData(),h=p(r),g=f(r),m=_(r,o),w=!(r.length>0)||m.length!==r.length,x=function(t){this.progress=t,e._handleProgressChanged(.8+.1*b.progress+.1*C.progress)},b={isEmptyGrandTotal:c.isEmptyGrandTotalRow,texts:i.texts||{},hiddenTotals:h,hiddenValues:g,hiddenGrandTotals:[],showTotals:i.showRowTotals,showGrandTotals:i.showRowGrandTotals!==!1&&w,sortBySummaryPaths:n(o,r),showTotalsPrior:"rows"===i.showTotalsPrior||"both"===i.showTotalsPrior,showEmpty:!i.hideEmptySummaryCells,layout:i.rowHeaderLayout,fields:a,dataFields:r,progress:0,notifyProgress:x},C={isEmptyGrandTotal:c.isEmptyGrandTotalColumn,texts:i.texts||{},hiddenTotals:h,hiddenValues:g,hiddenGrandTotals:m,showTotals:i.showColumnTotals,showTotalsPrior:"columns"===i.showTotalsPrior||"both"===i.showTotalsPrior,showGrandTotals:i.showColumnGrandTotals!==!1&&w,sortBySummaryPaths:n(a,r),showEmpty:!i.hideEmptySummaryCells,fields:o,dataFields:r,progress:0,notifyProgress:x};(0,v.isDefined)(c.grandTotalRowIndex)||(c.grandTotalRowIndex=d(c.rows,b).length),(0,v.isDefined)(c.grandTotalColumnIndex)||(c.grandTotalColumnIndex=d(c.columns,C).length),t._changeLoadingCount(1),(0,s.when)(y(c.columns,o,u,!0,C),y(c.rows,a,l,!1,b)).always(function(){t._changeLoadingCount(-1)}).done(function(t,n){e._columnsInfo=t,e._rowsInfo=n,e._rowsScrollController&&e._columnsScrollController&&e.changed&&!e._dataSource.paginate()&&(e._rowsScrollController.reset(),e._columnsScrollController.reset(),e._lockChanged=!0,e._rowsScrollController.load(),e._columnsScrollController.load(),e._lockChanged=!1)}).done(function(){e._fireChanged(),e._stateStoringController.isEnabled()&&!e._dataSource.isLoading()&&(e._stateStoringController.state(e._dataSource.state()),e._stateStoringController.save())})},getRowsInfo:function(e){var t,n,o=this,a=o._rowsInfo,r=o._rowsScrollController;if(r&&!e){var s=r.beginPageIndex()*o.rowPageSize(),u=r.endPageIndex()*o.rowPageSize()+o.rowPageSize(),d=[],c=1;return i(a,function(e,i,o,a,r){var h=i>=s&&o<u,p=o<s?0:o-s,f=e;if(h)d[p]=d[p]||[],t=o<s?e.rowspan-(s-o)||1:e.rowspan,s+p+t>u&&(t=u-(p+s)||1),t!==e.rowspan&&(f=(0,l.extend)({},f,{rowspan:t})),d[p].push(f),c=E.max(c,r+1);else if(n>u)return!1}),i(d,function(e,t,n,i,o){var a=e.colspan||1;o+a>c&&(d[n][i]=(0,l.extend)({},e,{colspan:c-o||1}))}),d}return a},getColumnsInfo:function(e){var t=this,n=t._columnsInfo,i=t._columnsScrollController;if(i&&!e){var o=i.beginPageIndex()*t.columnPageSize(),a=i.endPageIndex()*t.columnPageSize()+t.columnPageSize();n=b.default.createColumnsInfo(n,o,a)}return n},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(e){return void 0!==e&&(this._rowPageIndex=e),this._rowPageIndex||0},totalColumnCount:function(){var e=0;if(this._columnsInfo&&this._columnsInfo.length)for(var t=0;t<this._columnsInfo[0].length;t++)e+=this._columnsInfo[0][t].colspan||1;return e},rowPageSize:function(e){return void 0!==e&&(this._rowPageSize=e),this._rowPageSize||20},columnPageSize:function(e){return void 0!==e&&(this._columnPageSize=e),this._columnPageSize||20},columnPageIndex:function(e){return void 0!==e&&(this._columnPageIndex=e),this._columnPageIndex||0},getCellsInfo:function(e){var t=this.getRowsInfo(e),n=this.getColumnsInfo(e),i=this._dataSource.getData(),o=this._options.texts||{};return a(t,n,i,this._dataSource.getAreaFields("data"),this._options.dataFieldArea,o.dataNotAvailable)},dispose:function(){var e=this;e._isSharedDataSource?(e._dataSource.off("changed",e._changedHandler),e._dataSource.off("expandValueChanging",e._expandValueChangingHandler),e._dataSource.off("loadingChanged",e._loadingChangedHandler),e._dataSource.off("progressChanged",e._progressChangedHandler),e._dataSource.off("fieldsPrepared",e._fieldsPreparedHandler),e._dataSource.off("customizeStoreLoadOptions",e._customizeStoreLoadOptionsHandler)):e._dataSource.dispose(),e._columnsScrollController&&e._columnsScrollController.dispose(),e._rowsScrollController&&e._rowsScrollController.dispose(),e._stateStoringController.dispose(),e.expandValueChanging.empty(),e.changed.empty(),e.loadingChanged.empty(),e.progressChanged.empty(),e.scrollChanged.empty(),e.dataSourceChanged.empty()}};return F(x,"applyPartialDataSource"),F(x,"collapseHeaderItem"),F(x,"expandHeaderItem"),F(x,"getData"),F(x,"isEmpty"),x}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(6),a=n(41),r=n(42),s=i(r),l=n(57),u=n(46),d=n(141),c=i(d),h=n(18),p=n(15),f=i(p),g=n(4),_=n(1),m=n(3),v=n(81),y=n(71),w=i(y),x="/./";t.LocalStore=f.default.inherit(function(){function e(e){return e.indexOf(".")!==-1?(0,h.compileGetter)(e):function(t){return t[e]}}function t(e){return function(t){var n=e(t);return!n||n instanceof Date||(n=(0,l.deserializeDate)(n)),n}}function n(i){(0,m.each)(i||[],function(i,o){var a,r,s,l,u=o.dataField,d=o.levels;if(!o.selector){if(l=u?e(u):function(e){return e},d&&n(d),"date"===o.dataType){r=M[o.groupInterval];var c=t(l);a=function(e){var t=c(e);return r?r(t):t}}else"number"===o.dataType?(s=(0,_.isNumeric)(o.groupInterval)&&o.groupInterval>0&&o.groupInterval,a=function(e){var t=l(e);return(0,_.isString)(t)&&(t=Number(t)),s?Math.floor(t/s)*s:t}):a=l;(0,v.setDefaultFieldValueFormatting)(o),(0,v.setFieldProperty)(o,"selector",a)}})}function i(e,t,n,o,a){var r,s,l=t.dimensions[o],u=t.expandedPathsHash;l&&(r=l.selector(t.data),a=void 0!==a?a+x+r:r+"",s=F(r,n,a,t.childrenHash),e.push(s.index),(u&&u[a]||l.expanded)&&(s.children||(s.children=[]),i(e,t,s.children,o+1,a)))}function r(e,t,n,o){var a=[0],r=t.headerName===o?t.path.length:0,s="rows"===o?t.rowExpandedPaths:t.columnExpandedPaths,l={data:e,childrenHash:n[o+"Hash"],dimensions:t[o],expandedPathsHash:t.headerName!==o&&s&&s.hash};return i(a,l,n[o],r),a}function d(e,t,n,i){var o,a,s,l,u=[],d=r(e,i,n,"rows"),c=r(e,i,n,"columns");for(a=0;a<d.length;a++)for(s=d[a],t[s]=t[s]||[],o=0;o<c.length;o++)l=c[o],u.push(t[s][l]=t[s][l]||[]);return u}function p(e){if(e){var t=e.hash={};e.forEach(function(e){var n=e.map(function(e){return e+""}).join(x);t[n]=!0})}}function f(e){e.rows=e.rows||[],e.columns=e.columns||[],e.filters=e.filters||[],p(e.columnExpandedPaths),p(e.rowExpandedPaths),n(e.columns),n(e.rows),n(e.values),n(e.filters)}function y(e){return"custom"===e.summaryType?(e.calculateCustomSummary=e.calculateCustomSummary||g.noop,{seed:function(){var t={summaryProcess:"start",totalValue:void 0};return e.calculateCustomSummary(t),t},step:function(t,n){return t.summaryProcess="calculate",t.value=n,e.calculateCustomSummary(t),t},finalize:function(t){return t.summaryProcess="finalize",delete t.value,e.calculateCustomSummary(t),t.totalValue}}):a.aggregators[e.summaryType]||a.aggregators.count}function b(e,t,n){for(var i=0;i<e.length;i++)for(var o=e[i],a=o.selector(n),r=y(o),s="function"==typeof r.seed,l=0;l<t.length;l++){var u=t[l];u.length<=i&&(u[i]=s?r.seed():r.seed),void 0===u[i]?u[i]=a:(0,_.isDefined)(a)&&(u[i]=r.step(u[i],a))}}function C(e,t){(0,m.each)(e,function(e,n){var i=y(n);i.finalize&&(0,m.each)(t,function(t,n){(0,m.each)(n,function(t,n){n&&void 0!==n[e]&&(n[e]=i.finalize(n[e]))})})})}function k(e,t){var n=e&&e.valueOf(),i=t&&t.valueOf();if(Array.isArray(e)){t=t||[];for(var o=0;o<e.length;o++)if(n=e[o]&&e[o].valueOf(),i=t[o]&&t[o].valueOf(),n!==i)return!1;return!0}return n===i}function I(e,t){var n=[];return(0,m.each)(e,function(e,i){n.push(i.selector(t))}),n}function S(e){var t=[];return(0,m.each)(e,function(e,n){var i,o=n.filterValues||[],a=n.groupName;a&&(0,_.isNumeric)(n.groupIndex)||(i=function(e){for(var t=n.levels?I(n.levels,e):n.selector(e),i=!1,a=0;a<o.length;a++)if(k(o[a],t)){i=!0;break}return"exclude"===n.filterType?!i:i},o.length&&t.push(i))}),t}function D(e){var t=S(e.rows).concat(S(e.columns)).concat(S(e.filters)),n=e[e.headerName],i=e.path;return n&&t.push(function(e){for(var t,o=0;o<i.length;o++)if(t=n[o].selector(e),(0,h.toComparable)(t,!0)!==(0,h.toComparable)(i[o],!0))return!1;return!0}),function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}}function T(e,t,n){function i(){for(var o=new Date,p=h;h<e.length;h++){if(h>p&&h%1e4===0&&new Date-o>=300)return n(h/e.length),void setTimeout(i,0);s=e[h],r(s)&&(a=d(s,u,l,t),b(t.values,a,s))}C(t.values,u),n(1),c.resolve({rows:l.rows,columns:l.columns,values:u,grandTotalRowIndex:0,grandTotalColumnIndex:0})}var a,r,s,l={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},u=[],c=new o.Deferred,h=0;return r=D(t),i(),c}function E(e,t){var n=e.filter();return e.store()instanceof c.default&&n?(n=B(n,t),(0,s.default)(e.items()).filter(n).toArray()):e.items()}function O(e,t,n){var i=new o.Deferred,a=function(n){e.store()instanceof w.default&&(n.storeLoadOptions.filter=B(n.storeLoadOptions.filter,t))};if(e.on("customizeStoreLoadOptions",a),!e.isLoaded()||n){var r=n?e.load():e.reload();(0,o.when)(r).done(function(){O(e,t).done(function(){i.resolve(E(e,t))}).fail(i.reject)}).fail(i.reject)}else i.resolve(E(e,t));return i.always(function(){e.off("customizeStoreLoadOptions",a)})}function A(n,i){i.forEach(function(i){if(i.dataField&&"date"===i.dataType){var o=t(e(i.dataField));n[i.dataField]=function(e){return o(e)}}})}function P(e){var t={};return Array.isArray(e)?A(t,e):e&&["rows","columns","filters"].forEach(function(n){e[n]&&A(t,e[n])}),t}function B(e,t){if(!Array.isArray(e))return e;e=e.slice(0),(0,_.isString)(e[0])&&(e[1]instanceof Date||e[2]instanceof Date)&&(e[0]=t[e[0]]);for(var n=0;n<e.length;n++)e[n]=B(e[n],t);return e}var M={year:function(e){return e&&e.getFullYear()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},dayOfWeek:function(e){return e&&e.getDay()}},F=function(e,t,n,i){var o=i[n];return o||(o={value:e,index:i.length++},i[n]=o,t.push(o)),o};return{ctor:function(e){this._progressChanged=e.onProgressChanged||g.noop,this._dataSource=new u.DataSource(e),this._dataSource.paginate(!1)},getFields:function(e){var t=this,n=t._dataSource,i=new o.Deferred;return O(n,P(e)).done(function(t){i.resolve((0,v.discoverObjectFields)(t,e))}).fail(i.reject),i},key:function(){return this._dataSource.key()},load:function(e){var t=this,n=t._dataSource,i=new o.Deferred;return f(e),O(n,P(e),e.reload).done(function(n){(0,o.when)(T(n,e,t._progressChanged)).done(i.resolve)}).fail(i.reject),i},filter:function(){var e=this._dataSource;return e.filter.apply(e,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(e,t){e=e||{},t=t||{},f(e);for(var n,i=[],o=this._dataSource.items(),a=t.maxRowCount,r=t.customColumns,s=D(e),l=D({rows:(0,v.getFiltersByPath)(e.rows,t.rowPath),columns:(0,v.getFiltersByPath)(e.columns,t.columnPath),filters:[]}),u=0;u<o.length;u++){if(l(o[u])&&s(o[u])){if(r){n={};for(var d=0;d<r.length;d++)n[r[d]]=o[u][r[d]]}else n=o[u];i.push(n)}if(a>0&&i.length===a)break}return i}}}()).include(v.storeDrillDownMixin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n=[];return(0,E.each)(e,function(i,o){n.push({selector:o.dataField,groupInterval:o.groupInterval,desc:t&&"desc"===o.sortOrder,isExpanded:i<e.length-1})}),n}function r(e){var t=e.dataField,n=e.groupInterval;return"date"===e.dataType&&"string"==typeof n&&("quarter"===n.toLowerCase()&&(n="Month"),t=t+"."+(0,P.capitalizeFirstLetter)(n)),t}function s(e,t,n,i){var o=[e,i?"<":">=",n],a=[e,i?">=":"<",n+t];return[o,i?"or":"and",a]}function l(e,t){var n=r(e),i="exclude"===e.filterType,o=[n,i?"<>":"=",t];return(0,I.isDefined)(e.groupInterval)&&("string"==typeof e.groupInterval&&"quarter"===e.groupInterval.toLowerCase()?o=s(n,3,3*(t-1)+1,i):"number"==typeof e.groupInterval&&"date"!==e.dataType&&(o=s(n,e.groupInterval,t,i))),o}function u(e,t){var n=[];return e.searchValue?[e.dataField,"contains",e.searchValue]:(t="exclude"===e.filterType?t||"and":t||"or",(0,E.each)(e.filterValues,function(i,o){var a=[],r=e.levels?e.levels[i]:e;if(Array.isArray(o)){var s=e.levels&&e.levels.length;s&&(a=u({filterValues:o,filterType:r.filterType,levels:e.levels},"and"))}else a=l(r,o);a.length&&(n.length&&n.push(t),n.push(a))}),n)}function d(e){var t=[];return(0,E.each)(e,function(e,n){var i=u(n);return i.length?(t.length&&t.push("and"),void t.push(i)):[]}),1===t.length&&(t=t[0]),t}function c(e,t){var n,i=function(e){return e&&e.length};return n=i(e)&&i(t)?[e,"and",t]:i(e)?e:t}function h(e,t,n){var i=d(e.filters),o=a(e.rows,e.rowTake).concat(a(e.columns,e.columnTake)),r={groupSummary:[],totalSummary:[],group:o.length?o:void 0,take:o.length?void 0:1};return e.rows.length&&e.rowTake?(r.skip=e.rowSkip,r.take=e.rowTake,r.requireGroupCount=!0):e.columns.length&&e.columnTake&&!n&&(r.skip=e.columnSkip,r.take=e.columnTake,r.requireGroupCount=!0),t&&(i=c(i,t)),i.length&&(r.filter=i),(0,E.each)(e.values,function(t,n){var i={selector:n.dataField,summaryType:n.summaryType||"count"};r.groupSummary.push(i),e.includeTotalSummary&&r.totalSummary.push(i)}),r}function p(e,t,n){e=e||[],n=n||0;for(var i=0;i<e.length;i++){var o=e[i];t(o,n),o&&o.items&&o.items.length&&p(o.items,t,n+1)}}function f(e,t,n,i,o){e[n]=e[n]||[],e[n][i]=e[n][i]||[],(0,I.isDefined)(e[n][i][o])||(e[n][i][o]=t)}function g(e,t){return t&&"number"===t.dataType&&(0,I.isString)(e)?Number(e):!t||"date"!==t.dataType||t.groupInterval||e instanceof Date?e:(0,B.deserializeDate)(e)}function _(e,t,n,i){function a(e,t,n,o,a){var r,s,l,u,d=i[t+"Hash"],c=n.slice(0,o+1).join("/");return void 0!==d[c]?l=d[c]:(l={value:g(e.key,a),index:i[t+"Index"]++},u=n.slice(0,o).join("/"),o>0&&void 0!==d[u]?(r=d[u],s=r.children=r.children||[]):s=i[t+"s"],s.push(l),d[c]=l),l}var r=[],s=[],l=i.rowHash,u=i.columnHash;if(t&&t.summary&&(0,E.each)(t.summary,function(e,t){f(i.values,t,i.grandTotalRowIndex,i.grandTotalColumnIndex,e)}),t&&t.groupCount>=0){var d=n.rows.length?n.rowSkip:n.columnSkip;e=[].concat(o(Array(d))).concat(e),e.length=t.groupCount}return p(e,function(e,t){var o,d,c=t>=n.rows.length?n.rows.length:t,h=t>=n.rows.length?t-n.rows.length:0;if(!(t>=n.rows.length&&h>=n.columns.length)){t<n.rows.length&&(s=[]),t>=n.rows.length?e?(s[h]=e.key+"",o=a(e,"column",s,h,n.columns[s.length-1]),d=l[r.slice(0,c+1).join("/")]):i.columns.push({}):e?(r[c]=e.key+"",d=a(e,"row",r,c),o=u[s.slice(0,h+1).join("/")]):i.rows.push({});var p=d&&d.index||i.grandTotalRowIndex,g=o&&o.index||i.grandTotalColumnIndex;(0,E.each)(e&&e.summary||[],function(e,t){f(i.values,t,p,g,e)})}}),i}function m(e){return(e||[]).filter(function(e){return e.filterValues&&e.filterValues.length||e.searchValue})}function v(e,t){if(e.headerName){if(t===e.headerName)return e.path.length;if(e.oppositePath)return e.oppositePath.length}return 0}function y(e){return(0,P.getFiltersByPath)(e[e.headerName],e.path).concat((0,P.getFiltersByPath)(e["rows"===e.headerName?"columns":"rows"],e.oppositePath||[]))}function w(e,t,n,i){var o=[],a=n>i?0:i,r=e.headerName!==t?e[t].slice(a,n):[],s="rows"===t?e.rowExpandedPaths:e.columnExpandedPaths;return(0,E.each)(r,function(e,t){var i=[];(0,E.each)(s,function(t,o){o=o.slice(a,n),e<o.length&&i.push(o[e])}),i.length&&o.push((0,T.extend)({},t,{filterType:"include",filterValues:i}))}),o}function x(e,t,n,i,o,a){var r,s=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[],l="columns"===t?"rows":"columns",u=e[t],d=[];if(s.length)for(var c=n;c<i+1;c++)r={filters:o.concat(w(e,t,c,a))},r[t]=u.slice(n,c+1),r[l]=[],d.push((0,T.extend)({},e,r));else r={filters:o},r[t]=u.slice(n,i+1),r[l]=[],d.push((0,T.extend)({},e,r));return d[0].includeTotalSummary=!0,d}function b(e){var t=0;return(0,E.each)(e,function(e,n){if(!n.expanded)return t=e,!1}),t}function C(e){var t,n=(0,P.getExpandedLevel)(e,"rows"),i=(0,P.getExpandedLevel)(e,"columns"),o=e.filters||[],a=v(e,"columns"),r=b(e.columns),s=b(e.rows),l=v(e,"rows"),u=[];if(o=o.concat(m(e.rows)).concat(m(e.columns)).concat(y(e)),t=x(e,"columns",a,i,o,r),e.rows.length&&e.columns.length){"rows"!==e.headerName&&(u=u.concat(t));for(var d=l;d<n+1;d++)for(var c=e.rows.slice(l,d+1),h=w(e,"rows",d,s),p=a;p<i+1;p++){var f=(0,T.extend)({},e,{columns:e.columns.slice(a,p+1),rows:c,filters:o.concat(w(e,"columns",p,r)).concat(h)});u.push(f)}}else u=e.columns.length?t:x(e,"rows",l,n,o,s);return u}function k(e){(0,E.each)(e||[],function(e,t){var n=t.levels;n&&k(n),(0,P.setDefaultFieldValueFormatting)(t)})}var I=n(1),S=n(15),D=i(S),T=n(0),E=n(3),O=n(46),A=n(6),P=n(81),B=n(57);e.exports=D.default.inherit(function(){return{ctor:function(e){this._dataSource=new O.DataSource(e),this._store=this._dataSource.store()},getFields:function(e){var t=new A.Deferred;return this._store.load({skip:0,take:20}).done(function(n){t.resolve((0,P.discoverObjectFields)(n,e))}).fail(t.reject),t},key:function(){return this._store.key()},load:function(e){var t=this,n=new A.Deferred,i={rows:[],columns:[],values:[[[]]],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},o=C(e),a=[];return k(e.rows),k(e.columns),k(e.filters),(0,E.each)(o,function(n,i){a.push(t._store.load(h(i,t.filter(),e.rows.length)))}),A.when.apply(null,a).done(function(){var e=a.length>1?arguments:[arguments];(0,E.each)(e,function(e,t){_(t[0],t[1],o[e],i)}),n.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})}).fail(n.reject),n},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(e,t){e=e||{},t=t||{};var n=this._store,i=(0,P.getFiltersByPath)(e.rows,t.rowPath).concat((0,P.getFiltersByPath)(e.columns,t.columnPath)).concat(m(e.rows)).concat(e.filters||[]).concat(m(e.columns)),o=d(i);return new O.DataSource({load:function(e){return n.load((0,T.extend)({},e,{filter:c(o,e.filter),select:t.customColumns}))}})}}}())},function(e,t,n){function i(){return{fields:{},positions:{}}}function o(e,t,n){var i,o,a={index:-1};if((0,l.isObject)(t)||(n.fields[t]?t=n[t]:(o=e.columns.concat(e.rows).concat(e.values),i=(0,c.findField)(o,t),t=n[t]=o[i])),t){var r=t.area||"data";a=n.positions[t.index]=n.positions[t.index]||{area:r,index:(0,d.inArray)(t,e["data"===r?"values":r+"s"])}}return a}function a(e){return e===p?"_rowPath":"_columnPath"}function r(e){var t=e.summaryDisplayMode,n=e.allowCrossGroupCalculation,i=f;return(0,l.isFunction)(e.calculateSummaryValue)?i=e.calculateSummaryValue:t&&(i="absoluteVariation"===t?v(n):"percentVariation"===t?y(n):w[t],i&&!e.format&&t.indexOf("percent")!==-1&&(0,c.setFieldProperty)(e,"format","percent")),i}function s(e,t,n,i){var o=e.values[t][n]=e.values[t][n]||[],a=o.originalCell;a&&(!o.allowResetting&&i||(e.values[t][n]=a.slice()),e.values[t][n].allowResetting=i)}var l=n(1),u=n(0),d=n(14),c=n(81),h="column",p="row",f=null,g=function(e,t){var n=e/t;return(0,l.isDefined)(e)&&!isNaN(n)||(n=f),n},_=function(e,t){return g(e.value(),e.grandTotal(t).value())},m=function(e,t){var n=e.parent(t),i=n?n.value():e.value();return g(e.value(),i)},v=function(e){return function(t){var n=t.prev(h,e),i=n&&n.value();return(0,l.isDefined)(i)&&(0,l.isDefined)(t.value())?t.value()-i:f}},y=function(e){var t=v(e);return function(n){var i=t(n),o=n.prev(h,e),a=o&&o.value();return i!==f&&a?i/a:f}},w={percentOfColumnTotal:function(e){return m(e,p)},percentOfRowTotal:function(e){return m(e,h)},percentOfColumnGrandTotal:function(e){return _(e,p)},percentOfRowGrandTotal:function(e){return _(e,h)},percentOfGrandTotal:function(e){return _(e)}},x=function e(t,n){if(t&&t.parent(n)){var i=t.prev(n);return i||(i=e(t.parent(n),n)),i}},b=function(e){if(e.runningTotal){var t=e.runningTotal===h?p:h;return function(n){var i=e.allowCrossGroupCalculation?x(n,t):n.prev(t,!1),o=n.value(!0),a=i&&i.value(!0);return(0,l.isDefined)(a)&&(0,l.isDefined)(o)?o=a+o:(0,l.isDefined)(a)&&(o=a),o}}},C=function(e,t,n,o,a,r){this._columnPath=e,this._rowPath=t,this._fieldIndex=a,this._fieldsCache=r||i(),this._data=n,this._descriptions=o;var s=n.values&&n.values[t[0].index]&&n.values[t[0].index][e[0].index];s&&(s.originalCell=s.originalCell||s.slice(),s.postProcessedFlags=s.postProcessedFlags||[],this._cell=s)};C.prototype=(0,u.extend)(C.prototype,{_getPath:function(e){return this[a(e)]},_getDimension:function(e){return e=e===p?"rows":"columns",this._descriptions[e]},_createCell:function(e){var t=this;return new C(e._columnPath||t._columnPath,e._rowPath||t._rowPath,t._data,t._descriptions,t._fieldIndex)},parent:function(e){var t=this._getPath(e).slice(),n={};return t.shift(),t.length?(n[a(e)]=t,this._createCell(n)):f},children:function(e){var t=this._getPath(e).slice(),n=t[0],i=[],o={};if(n.children)for(var r=0;r<n.children.length;r++)o[a(e)]=[n.children[r]].concat(t.slice()),i.push(this._createCell(o));return i},grandTotal:function(e){var t={},n=this._rowPath,i=this._columnPath,o=this._getPath(e),r=a(e);return e?t[r]=[o[o.length-1]]:(t._rowPath=[n[n.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(e,t){var n,i,o=this._getPath(e),a=o[0],r=this.parent(e);if(r&&(i=(0,d.inArray)(a,o[1].children),n=r.children(e),n[i+1]))return n[i+1];if(t&&r){do r=r.next(e,t),n=r?r.children(e):[];while(r&&!n.length);return n[0]||f}return f},prev:function(e,t){var n,i,o=this._getPath(e),a=o[0],r=this.parent(e);if(r&&(i=(0,d.inArray)(a,o[1].children),n=r.children(e),n[i-1]))return n[i-1];if(t&&r){do r=r.prev(e,t),n=r?r.children(e):[];while(r&&!n.length);return n[n.length-1]||f}return f},cell:function(){return this._cell},field:function e(t){if("data"===t)return this._descriptions.values[this._fieldIndex];var n=this._getPath(t),i=this._getDimension(t),e=i[n.length-2];return e||f},child:function(e,t){for(var n,i=this.children(e),o=0;o<i.length;o++)if(n=n||i[o].field(e),i[o].value(n)===t)return i[o];return f},slice:function(e,t){var n,i,r,s,l=this,u={},d=o(this._descriptions,e,this._fieldsCache),c=d.area,g=d.index,_=f,m=[];if((c===p||c===h)&&(i=this._getPath(c).slice(),s=g!==-1&&i.length-2-g,i[s])){m[i.length-1]=i[i.length-1];for(var v=s;v>=0;v--){if(i[v+1]){n=i[v+1].children||[],r=v===s?t:i[v].value,i[v]=void 0;for(var y=0;y<n.length;y++)if(n[y].value===r){i[v]=n[y];break}}if(void 0===i[v])return _}u[a(c)]=i,_=l._createCell(u)}return _},value:function(e,t){var n,i,a=this._cell,r=this._fieldIndex,s=e===!0||e===!1,u=s?f:e,d=s&&e||t;if((0,l.isDefined)(u)){var c=o(this._descriptions,u,this._fieldsCache);if(r=c.index,"data"!==c.area)return n=this._getPath(c.area),i=r!==-1&&n.length-2-r,n[i]&&n[i].value}return a&&a.originalCell?d?a[r]:a.originalCell[r]:f},isPostProcessed:function(e){var t=this._fieldIndex;if((0,l.isDefined)(e)){var n=o(this._descriptions,e,this._fieldsCache);if(t=n.index,"data"!==n.area)return!1}return!(!this._cell||!this._cell.postProcessedFlags[t])}}),t.applyDisplaySummaryMode=function(e,t){var n=[],o=[{index:t.grandTotalColumnIndex,children:t.columns}],a=[{index:t.grandTotalRowIndex,children:t.rows}],l=e.values,u=i();t.values=t.values||[],(0,c.foreachTree)(a,function(i){var a=i[0];a.isEmpty=[],t.values[a.index]=t.values[a.index]||[],(0,c.foreachTree)(o,function(o){var d,c,h,p,f,g,_=o[0];_.isEmpty=_.isEmpty||[],s(t,a.index,_.index,!1);for(var m=0;m<l.length;m++)p=l[m],d=n[m]=void 0===n[m]?r(p):n[m],f=!1,d&&(c=new C(o,i,t,e,m,u),h=c.cell(),g=h[m]=d(c),h.postProcessedFlags[m]=!0,f=null===g||void 0===g),void 0===_.isEmpty[m]&&(_.isEmpty[m]=!0),void 0===a.isEmpty[m]&&(a.isEmpty[m]=!0),f||(a.isEmpty[m]=_.isEmpty[m]=!1)},!1)},!1),t.isEmptyGrandTotalRow=a[0].isEmpty,t.isEmptyGrandTotalColumn=o[0].isEmpty},t.applyRunningTotal=function(e,t){
var n=[],o=[{index:t.grandTotalColumnIndex,children:t.columns}],a=[{index:t.grandTotalRowIndex,children:t.rows}],r=e.values,l=i();t.values=t.values||[],(0,c.foreachTree)(a,function(i){var a=i[0];t.values[a.index]=t.values[a.index]||[],(0,c.foreachTree)(o,function(o){var u,d,c,h,p=o[0];s(t,a.index,p.index,!0);for(var f=0;f<r.length;f++)h=r[f],u=n[f]=void 0===n[f]?b(h):n[f],u&&(d=new C(o,i,t,e,f,l),c=d.cell(),c[f]=u(d),c.postProcessedFlags[f]=!0)},!1)},!1)},t.createMockSummaryCell=function(e,t,n){var i=new C([],[],{},e,0);return i.value=function(i){if((0,l.isDefined)(i)){var o=(0,c.findField)(t,i),a=t[o];n[o]||!a||(0,l.isDefined)(a.area)||(e.values.push(a),n[o]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(265),s="dx-pivotgrid-area",l="dx-pivotgrid-area-data",u="dx-total",d="dx-grandtotal",c="dx-row-total";t.DataArea=r.AreaItem.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return(0,a.default)("<div>").addClass(s).addClass(l)},_applyCustomStyles:function(e){var t=e.cell,n=e.classArray;"T"!==t.rowType&&"T"!==t.columnType||n.push(u),"GT"!==t.rowType&&"GT"!==t.columnType||n.push(d),"T"!==t.rowType&&"GT"!==t.rowType||n.push(c),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),this.callBase(e)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e.x),this._moveFakeTableTop(e.y),this.callBase()},processScroll:function(e,t,n){var i="both";t&&!n?i="horizontal":!t&&n&&(i="vertical"),this._groupElement.css("borderTopWidth",0).dxScrollable({useNative:!!e,useSimulatedScrollbar:!e,direction:i,bounceEnabled:!1,updateManually:!0})},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(e){this.callBase(e),this._virtualContent.parent().css("height",e.height),this._setTableCss({top:e.top,left:e.left})}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(t){var n=e.data().data,i=t.parentNode.rowIndex,o=t.cellIndex;return n[i]&&n[i][o]&&n[i][o].path}}var a=n(2),r=i(a),s=n(1),l=n(14),u=n(3),d=n(265),c="dx-pivotgrid-area",h="dx-pivotgrid-horizontal-headers",p="dx-pivotgrid-vertical-headers",f="dx-total",g="dx-grandtotal",_="dx-row-total",m="dx-pivotgrid-expanded",v="dx-pivotgrid-collapsed",y="dx-last-cell",w="dx-vertical-scroll",x="dx-expand-border";t.HorizontalHeadersArea=d.AreaItem.inherit({_getAreaName:function(){return"column"},_getAreaClassName:function(){return h},_createGroupElement:function(){return(0,r.default)("<div>").addClass(this._getAreaClassName()).addClass(c)},_applyCustomStyles:function(e){var t=e.cssArray,n=e.cell,i=e.rowsCount,o=e.classArray;e.cellIndex===e.cellsCount-1&&t.push((e.rtlEnabled?"border-left:":"border-right:")+"0px"),n.rowspan!==i-e.rowIndex&&e.rowIndex+1!==i||t.push("border-bottom-width:0px"),"T"!==n.type&&"GT"!==n.type||o.push(_),"T"===e.cell.type&&o.push(f),"GT"===e.cell.type&&o.push(g),(0,s.isDefined)(n.expanded)&&o.push(n.expanded?m:v),this.callBase(e)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({left:e.left,top:0}),this._virtualContentWidth=e.width},hasScroll:function(){var e=this._virtualContent?this._virtualContentWidth:this._tableWidth;return!(!this._groupWidth||!e)&&e-this._groupWidth>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"horizontal",updateManually:!0})},processScrollBarSpacing:function(e){var t=this,n=t.option("rtlEnabled")?"right":"left";t._groupWidth&&t.groupWidth(t._groupWidth-e),t._scrollBarWidth&&t._groupElement.next().remove(),t._groupElement.toggleClass(w,e>0),t._groupElement.css("float",n).width(t._groupHeight),t._scrollBarWidth=e},ctor:function(e){this.callBase(e),this._scrollBarWidth=0},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.left,10)||0,(0,u.each)(n.find("td"),function(n,i){if(1===i.colSpan&&i.offsetLeft<=e&&i.offsetWidth+i.offsetLeft>e)return t=i,!1}),o(n,t)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e),this.callBase()}}),t.VerticalHeadersArea=t.HorizontalHeadersArea.inherit({_getAreaClassName:function(){return p},_applyCustomStyles:function(e){this.callBase(e),e.cellIndex===e.cellsCount-1&&e.classArray.push(y),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),e.cell.isWhiteSpace&&e.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({top:e.top,left:0}),this._virtualContentHeight=e.height},hasScroll:function(){var e=this._virtualContent?this._virtualContentHeight:this._tableHeight;return!(!this._groupHeight||!e)&&e-this._groupHeight>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(e){var t=this;t._groupHeight&&t.groupHeight(t._groupHeight-e),t._scrollBarWidth&&t._groupElement.next().remove(),e&&t._groupElement.after((0,r.default)("<div>").width("100%").height(e-1)),t._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.top,10)||0,(0,u.each)(n.find("tr"),function(n,i){var o=i.childNodes[i.childNodes.length-1];if(o&&1===o.rowSpan&&o.offsetTop<=e&&o.offsetHeight+o.offsetTop>e)return t=o,!1}),o(n,t)},_moveFakeTable:function(e){this._moveFakeTableTop(e),this.callBase()},_getRowClassNames:function(e,t,n){0!==e&t.expanded&&(0,l.inArray)(x,n)===-1&&n.push(x)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(e){var t,n,i,o=this.tableElement()[0].rows,a=0,r=[];if(!(this.getColumnsCount()-e>0))for(n=0;n<o.length;n++)for(i=0;i<o[n].cells.length;i++){var s=o[n].cells[i],l=s.rowSpan;r[n]&&(a-=r[n],r[n]=0),t=e-(a+s.colSpan),i===o[n].cells.length-1&&t>0&&(s.colSpan=s.colSpan+t),r[n+l]=(r[n+l]||0)+s.colSpan,a+=s.colSpan}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){n&&n.groupName&&n.groupName===e.groupName&&(0,r.default)(g).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(i),t&&t.groupName&&t.groupName===e.groupName&&(0,r.default)(g).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(i)}var a=n(2),r=i(a),s=n(4),l=n(3),u=n(265),d=n(81),c=n(44),h=i(c),p=n(35),f=i(p);n(266);var g="<div>",_="dx-pivotgrid-drag-action";t.FieldsArea=u.AreaItem.inherit({ctor:function(e,t){this.callBase(e),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return(0,r.default)(g).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass(_).attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+(0,d.capitalizeFirstLetter)(this._area)+"Fields")},_renderButton:function(e){var t=this,n=(0,r.default)("<td>").appendTo((0,r.default)("<tr>").appendTo(e)),i=t.component._createComponent((0,r.default)(g).appendTo(n),f.default,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var e=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");e.option("visible")||e.show()}});i.$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(e,t){return{contentTemplate:function(){return(0,r.default)("<table>").addClass("dx-area-field-container").append((0,r.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").append(e))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,closeOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(e,t){var n=this,i=e.find(".dx-button"),o=n._getPopupOptions(t,i),a=n.component.$element().dxPivotGridFieldChooserBase("instance");n._rowPopup&&n._rowPopup.$element().remove(),n._rowPopup=n.component._createComponent((0,r.default)(g).appendTo(e),h.default,o),n._rowPopup.$element().addClass("dx-fields-area-popup"),n._rowPopup.content().addClass("dx-pivotgrid-fields-container"),n._rowPopup.content().parent().attr("group","row"),a.subscribeToEvents(n._rowPopup.content()),a.renderSortable(n._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(e,t){var n=this,i=this.groupElement(),a=this.isVisible(),s=n.component.$element().dxPivotGridFieldChooserBase("instance"),u=(0,r.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(e),d=n._area,c=(0,r.default)("<tr>");i.toggleClass("dx-hidden",!a),e.addClass("dx-area-field-container"),a&&((0,l.each)(t,function(e,i){if(i.area===d&&i.visible!==!1){var a=(0,r.default)("<td>").append(s.renderField(i,"row"===i.area)),l=a.find(".dx-column-indicators");l.length&&n._shouldCreateButton()&&l.insertAfter(l.next()),a.appendTo(c),o(i,t[e+1],t[e-1],a)}}),c.children().length||(0,r.default)("<td>").append((0,r.default)(g).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+d+"FieldArea"))).appendTo(c),n._shouldCreateButton()?(n._renderButton(u),n._renderPopup(e,c)):u.append(c))},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:s.noop})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var i=(0,c.default)(e),o=i.offset();if(t>=o.left&&t<=o.left+i.outerWidth(!0)&&n>=o.top&&n<=o.top+i.outerHeight(!0))return!0}function a(e,t,n){return!(0,f.isDefined)(t.posHorizontal)||(n?e>t.posHorizontal:e<t.posHorizontal)}function r(e,t){var n=-1,i=t.get(0);return(0,_.each)(e,function(t,o){var a=(0,c.default)(o);if(a.attr("item-group")&&a.attr("item-group")===e.eq(t-1).attr("item-group")||n++,o===i)return!1}),n===e.length?-1:n}function s(e,t){var n;return(0,_.each)(t,function(){o(this,e.pageX,e.pageY)&&(n=(0,c.default)(this))}),n}function l(e,t,n){for(var i=[],o=[],a=0;a<e.length;a+=o.length)if(o=e.eq(a),o.attr("item-group")&&(o=n.find("[item-group='"+o.attr("item-group")+"']")),o.is(":visible")){var r={item:o,index:i.length,posHorizontal:t?void 0:(o.last().outerWidth(!0)+o.last().offset().left+o.offset().left)/2};t?r.posVertical=(o.last().offset().top+o.offset().top+o.last().outerHeight(!0))/2:r.posVertical=o.last().outerHeight(!0)+o.last().offset().top,i.push(r)}return i}function u(e){function t(e){r=e.scrollOffset.top}function n(){i(),e.scrollTo(r+=d),a=setTimeout(n,E)}function i(){clearTimeout(a)}function o(e){if(e.pageY<=l+T)d=-D;else{if(!(e.pageY>=l+u-T))return d=0,void i();d=D}n()}var a=null,r=e.scrollTop(),s=e.$element(),l=s.offset().top,u=s.height(),d=0;return e.on("scroll",t),{moveIfNeed:o,element:function(){return s},dispose:function(){i(),e.off("scroll",t)}}}var d=n(2),c=i(d),h=n(5),p=i(h),f=n(1),g=n(0),_=n(3),m=n(8),v=n(9),y=i(v),w=n(85),x=i(w),b=n(70),C=i(b),k=n(155),I="dxSortable",S="dx-sortable-old",D=2,T=20,E=10,O=x.default.inherit({_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable-old",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(e,t){var n,i=this.option("itemRender");return i?n=i(e,t):(n=e.clone(),n.css({width:e.width(),height:e.height()})),n},_renderIndicator:function(e,t,n,i){var o=e.outerHeight(!0),a=e.outerWidth(!0),r=e.offset().top-n.offset().top,s=e.offset().left-n.offset().left;this._indicator.css({position:"absolute",top:i&&t?r+o:r,left:i&&!t?s+a:s}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!i).height("").width("").appendTo(n),t?this._indicator.width(a):this._indicator.height(o)},_renderDraggable:function(e){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(e,"drag").addClass(this.option("dragClass")).appendTo((0,k.getSwatchContainer)(e)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var e=[C.default.move,C.default.start,C.default.end,C.default.enter,C.default.leave,C.default.drop].join(" ");p.default.off(this._getEventListener(),(0,m.addNamespace)(e,I))},_getItemOffset:function(e,t,n){for(var i=0;i<t.length;i++){var o,r=n.pageY<t[i].posVertical;if(e?o=r:r&&(o=a(n.pageX,t[i],this.option("rtlEnabled")),!o&&t[i+1]&&t[i+1].posVertical>t[i].posVertical&&(o=!0)),o)return t[i]}},_getEventListener:function(){var e=this.option("groupSelector"),t=this.$element();return e?t.find(e):t},_attachEventHandlers:function(){var e,t,n,i,o,a,d,h=this,f=h.option("itemSelector"),g=h.option("itemContainerSelector"),v=h.option("groupSelector"),y=h.option("sourceClass"),w=h.option("targetClass"),x=h.option("onDragging"),b=h.option("groupFilter"),k=h.$element(),D=null,T=-1,E=function(){o=[],(0,_.each)(e,function(e,t){o.push((0,c.default)(t).offset())})},O=function(){return v?b?(0,c.default)(v).filter(b):k.find(v):k},A=function(){D&&D.dispose(),D=null},P=function(){var o={sourceGroup:a,sourceIndex:t,sourceElement:e,targetGroup:i.attr("group"),targetIndex:i.find(f).index(n)};x&&x(o),o.cancel&&(i=void 0)};if(h._detachEventHandlers(),h.option("allowDragging")){var B=h._getEventListener();p.default.on(B,(0,m.addNamespace)(C.default.start,I),f,function(i){e=(0,c.default)(i.currentTarget);var o=e.closest(v);a=o.attr("group"),t=r((v?o:k).find(f),e),e.attr("item-group")&&(e=o.find("[item-group='"+e.attr("item-group")+"']")),h._renderDraggable(e),n=h._renderItem(e,"target").addClass(w),e.addClass(y),E(),d=O(),h._indicator=(0,c.default)("<div>").addClass("dx-position-indicator")}),p.default.on(B,(0,m.addNamespace)(C.default.move,I),function(r){var p,m,v,x,b,C,k,I=[];if(e){if(T=-1,h._indicator.detach(),(0,_.each)(h._$draggable,function(e,t){(0,c.default)(t).css({top:o[e].top+r.offset.y,left:o[e].left+r.offset.x})}),i&&i.removeClass(w),i=s(r,d),i&&P(),i&&D&&i.get(0)!==D.element().get(0)&&A(),D&&D.moveIfNeed(r),!i)return void n.detach();!D&&i.attr("allow-scrolling")&&(D=u(i.dxScrollable("instance"))),i.addClass(w),m=i.find(g),v=m.find(f);var E=i.closest("."+S).data("dxSortableOld"),O=E.option("useIndicator");if(b="vertical"===(E||h).option("direction"),I=l(v,b,m),C=h._getItemOffset(b,I,r)){if(p=C.item,k=I[C.index-1]&&I[C.index-1].item,p.hasClass(y)||k&&k.hasClass(y)&&k.is(":visible"))return void n.detach();if(T=C.index,!O)return void n.insertBefore(p);var B=i.attr("group")!==a,M=T===t,F=T===t+1;if(B)return void h._renderIndicator(p,b,i,h.option("rtlEnabled")&&!b);M||F||h._renderIndicator(p,b,i,h.option("rtlEnabled")&&!b)}else{if(x=v.last(),x.is(":visible")&&x.hasClass(y))return;m.length&&(T=I.length?I[I.length-1].index+1:0),O?v.length&&h._renderIndicator(x,b,i,!h.option("rtlEnabled")||b):n.appendTo(m)}}}),p.default.on(B,(0,m.addNamespace)(C.default.end,I),function(){if(A(),e){var o=h.option("onChanged"),r={sourceIndex:t,sourceElement:e,sourceGroup:a,targetIndex:T,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};i&&(i.removeClass(w),r.targetGroup=i.attr("group"),(a!==r.targetGroup||T>-1)&&(o&&o(r),r.removeSourceElement&&e.remove())),h._indicator.detach(),r.removeSourceClass&&e.removeClass(y),e=null,h._$draggable.remove(),h._$draggable=null,r.removeTargetElement&&n.remove(),n.removeClass(w),n=null}})}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass(S)},_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._$draggable&&e._$draggable.detach(),e._indicator&&e._indicator.detach()},_optionChanged:function(e){var t=this;switch(e.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":t._attachEventHandlers();break;case"direction":break;default:t.callBase(e)}}});(0,y.default)("dxSortableOld",O),e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.customizeText)return"string";if(e.dataType)return e.dataType;if(e.format){if(1===(0,c.parse)((0,d.format)(1,e.format)))return"number";if((0,d.format)(new Date,e.format))return"date"}return m}var a=n(15),r=i(a),s=n(1),l=n(0),u=n(3),d=n(64),c=n(51),h=n(176),p=i(h),f=n(384),g=i(f),_=n(6),m="string",v=0,y=1,w=2,x=100;t.ExportMixin=(0,l.extend)({},g.default,{exportToExcel:function(){var e=this;p.default.export(e.getDataProvider(),{fileName:e.option("export.fileName"),proxyUrl:e.option("export.proxyUrl"),format:"EXCEL",rtlEnabled:e.option("rtlEnabled"),ignoreErrors:e.option("export.ignoreExcelErrors"),exportingAction:e._actions.onExporting,exportedAction:e._actions.onExported,fileSavingAction:e._actions.onFileSaving},h.excel.getData)},_getLength:function(e){var t,n=e[0].length,i=0;for(t=0;t<n;t++)i+=e[0][t].colspan||1;return i},_correctCellsInfoItemLengths:function(e,t){for(var n=0;n<e.length;n++)for(;e[n].length<t;)e[n].push({});return e},_calculateCellInfoItemLength:function(e){for(var t=0,n=0;n<e.length;n++)t+=(0,s.isDefined)(e[n].colspan)?e[n].colspan:1;return t},_getAllItems:function(e,t,n){var i,o,a,r=n,u=this._getLength(t),d=e.length;if(e.length>0&&e[0].length>0&&n.length>0&&0===n[0].length){var c=this._calculateCellInfoItemLength(e[0]);c>0&&(r=this._correctCellsInfoItemLengths(n,c))}for(a=e.concat(r),o=0;o<t.length;o++)for(i=t[o].length-1;i>=0;i--)(0,s.isDefined)(a[o+d])||(a[o+d]=[]),a[o+d].splice(0,0,(0,l.extend)({},t[o][i]));return a[0].splice(0,0,(0,l.extend)({},this._getEmptyCell(),{alignment:this._options.rtlEnabled?"right":"left",colspan:u,rowspan:d})),this._prepareItems(a)},getDataProvider:function(){var e=this,n=this._dataController,i=new _.Deferred;return n.beginLoading(),setTimeout(function(){var t=(0,l.extend)(!0,[],n.getColumnsInfo(!0)),o=(0,l.extend)(!0,[],n.getRowsInfo(!0)),a=n.getCellsInfo(!0);i.resolve(e._getAllItems(t,o,a)),n.endLoading()}),new t.DataProvider({items:i,rtlEnabled:this.option("rtlEnabled"),dataFields:this.getDataSource().getAreaFields("data"),customizeExcelCell:this.option("export.customizeExcelCell")})}}),t.DataProvider=r.default.inherit({ctor:function(e){this._options=e,this._styles=[]},ready:function(){var e=this,t=e._options,n=t.dataFields;return(0,_.when)(t.items).done(function(i){var a=i[0][0].rowspan,r=i[a-1],s={alignment:t.rtlEnabled?"left":"right"};e._styles=[{alignment:"center",dataType:"string"},{alignment:t.rtlEnabled?"right":"left",dataType:"string"}],n.length?n.forEach(function(t){e._styles.push((0,l.extend)({},s,{format:t.format,dataType:o(t)}))}):e._styles.push(s),(0,u.each)(r,function(e,t){t.width=x}),t.columns=r,t.items=i})},getColumns:function(){return this._options.columns},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(e,t){var n=this._options.items,i=n[e]&&n[e][t];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var e=this._options.items;return{x:e[0][0].colspan,y:e[0][0].rowspan}},getCellType:function(e,t){var n=this._styles[this.getStyleId(e,t)];return n&&n.dataType||"string"},getCellData:function(e,t){var n={},i=this._options.items,o=i[e]&&i[e][t]||{};return"string"===this.getCellType(e,t)?n.value=o.text:n.value=o.value,n},getStyles:function(){return this._styles},getStyleId:function(e,t){var n=this._options.items,i=n[0][0].rowspan,o=n[0][0].colspan,a=n[e]&&n[e][t]||{};return 0===t&&0===e?v:t>=o&&e<i?v:e>=i&&t<o?y:w+(a.dataIndex||0)},hasCustomizeExcelCell:function(){return(0,s.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e){this._options.customizeExcelCell&&this._options.customizeExcelCell(e)}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=[],i=t.length-1;return(0,m.each)(e,function(e,o){n.push(o.text||(0,_.formatValue)(o.value,t[i-e]))}),n.reverse()}function a(e){var t=0;return(0,_.foreachTree)(e,function(e){t=Math.max(t,e.length-1)}),t}function r(e,t){var n=e.chartDataItem,i=t&&t(e);return i?(n=(0,g.extend)({},n,i.chartDataItem),i=(0,g.extend)({},e,i,{chartDataItem:n})):e}function s(e,t,n){function i(){var e,i=(x.values[c]||[])[g]||[],o=i[u],a={rowPath:f,maxRowLevel:T,rowPathFormatted:p,rowFields:k,columnPathFormatted:w,maxColumnLevel:E,columnPath:y,columnFields:I,dataFields:C,dataIndex:u,dataValues:i,visible:v&&h},s=(t.inverted?w:p).join(" - "),l=(t.inverted?p:w).join("/");C.length>1&&("args"!==t.putDataFieldsInto&&"both"!==t.putDataFieldsInto||(l+=" | "+d.caption),"args"!==t.putDataFieldsInto&&(s+=" | "+d.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(e=d.caption))),a.chartDataItem={val:void 0===o?null:o,series:s,arg:l},a=r(a,t.processCell),a.visible&&(n[a.chartDataItem.series]=n[a.chartDataItem.series]||e,b.push(a.chartDataItem))}function s(e){(0,_.foreachTree)(D,function(n){c=n[0].index,n=n.slice(0,n.length-1),h=T===n.length,f=(0,_.createPath)(n),p=o(n,k),0===f.length&&(p=[t.grandTotalText]),(0,_.foreachTree)(S,function(n){g=n[0].index,n=n.slice(0,n.length-1),v=E===n.length,y=(0,_.createPath)(n),w=o(n,I),0===y.length&&(w=[t.grandTotalText]),e()})})}function l(e){(0,m.each)(C,function(t,n){d=n,u=t,e()})}var u,d,c,h,p,f,g,v,y,w,x=e.getData(),b=[],C=e.getAreaFields("data"),k=e.getAreaFields("row"),I=e.getAreaFields("column"),S=[{index:x.grandTotalColumnIndex,children:x.columns}],D=[{index:x.grandTotalRowIndex,children:x.rows}],T=a(D),E=a(S);return t.alternateDataFields===!1?l(function(){s(i)}):s(function(){l(i)}),b}function l(e,t){var n=e.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===n.length){var i=[];return(0,m.each)(n,function(e,n){var o={name:n.caption,title:n.caption,valueType:v[n.dataType]||n.dataType,label:{format:n.format}};n.customizeText&&(o.label.customizeText=function(e){return n.customizeText.call(n,e)}),"splitPanes"===t.dataFieldsDisplayMode&&(o.pane=n.caption),i.push(o)}),i}return[{}]}function u(e,t){var n=[],i=e.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&(0,m.each)(i,function(e,t){n.push({name:t.caption})}),n.length||n.push({}),n}function d(e,t){var n=t.customizeSeries,i=t.customizeChart,o={valueAxis:l(e,t),panes:u(e,t)},a={};return i&&(o=(0,g.extend)(!0,{},o,i(o))),o.dataSource=s(e,t,a),o.seriesTemplate={nameField:"series",customizeSeries:function(e){var i={};return"splitPanes"===t.dataFieldsDisplayMode?i.pane=a[e]:"singleAxis"!==t.dataFieldsDisplayMode&&(i.axis=a[e]),n&&(i=(0,g.extend)(i,n(e,i))),i}},o}function c(e){if(!e)return!1;if(e.NAME)return"dxChart"===e.NAME&&e;var t=(0,f.default)(e);return t.data("dxChart")&&t.dxChart("instance")}function h(e){var t=e.$element().data(y);t&&t()}var p=n(2),f=i(p),g=n(0),_=n(81),m=n(3),v={number:"numeric",date:"datetime"},y="dxPivotGridUnbinding";e.exports={bindChart:function(e,t){t=(0,g.extend)({},t);var n,i=this,o=function(){t.grandTotalText=i.option("texts.grandTotal");var n=d(i.getDataSource(),t);e.option(n)};return(e=c(e))?(h(e),i.on("changed",o),o(),n=function(){e.$element().removeData(y),i.off("changed",o)},e.on("disposing",n),this.on("disposing",n),e.$element().data(y,n),n):null}}},function(e,t,n){e.exports=n(390)},function(e,t,n){var i=n(389);e.exports=i.XmlaStore},function(e,t,n){e.exports=n(711)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(26),s=i(r),l=n(27),u=i(l),d=n(19),c=i(d),h=n(7),p=i(h),f=n(242),g=i(f),_=n(145),m=i(_),v=n(11),y=i(v),w=n(22),x=i(w),b=n(3),C=n(0),k=n(14),I=n(4),S=n(1),D=i(S),T=n(16),E=i(T),O=n(28),A=i(O),P=n(18),B=i(P),M=n(9),F=i(M),R=n(10),V=i(R),H=n(57),L=i(H),z=n(32),$=i(z),N=n(17),W=i(N),j=n(712),q=i(j),G=n(714),K=n(715),U=n(716),Y=i(U),X=n(720),Z=i(X),Q=n(722),J=i(Q),ee=n(396),te=i(ee),ne=n(727),ie=i(ne),oe=n(728),ae=i(oe),re=n(729),se=i(re),le=n(397),ue=i(le),de=n(731),ce=i(de),he=n(732),pe=i(he),fe=n(733),ge=i(fe),_e=n(734),me=i(_e),ve=n(735),ye=i(ve),we=n(736),xe=i(we),be=n(738),Ce=i(be),ke=n(743),Ie=n(391),Se=i(Ie),De=n(294),Te=i(De),Ee=n(83),Oe=i(Ee),Ae=n(744),Pe=i(Ae),Be=n(6),Me=i(Be),Fe=n(100),Re=n(66),Ve=n(31),He=i(Ve),Le=n(25),ze=i(Le),$e=n(43),Ne=Me.default.when,We=Me.default.Deferred,je=x.default.dateToMilliseconds,qe="dx-scheduler",Ge=qe+"-small",Ke=qe+"-adaptive",Ue=qe+"-win-no-touch",Ye=qe+"-readonly",Xe=qe+"-recurrence-rule-item",Ze=qe+"-recurrence-rule-item-opened",Qe=400,Je="yyyyMMddTHHmmss",et=Je+"Z",tt={day:{workSpace:J.default,renderingStrategy:"vertical"},week:{workSpace:te.default,renderingStrategy:"vertical"},workWeek:{workSpace:ie.default,renderingStrategy:"vertical"},month:{workSpace:ae.default,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:se.default,renderingStrategy:"horizontal"},timelineWeek:{workSpace:ue.default,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:ce.default,renderingStrategy:"horizontal"},timelineMonth:{workSpace:pe.default,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:ge.default,renderingStrategy:"agenda"}},nt=W.default.inherit({_getDefaultOptions:function(){return(0,C.extend)(this.callBase(),{views:["day","week"],currentView:"day",currentDate:x.default.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:V.default.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:V.default.format("dxScheduler-openAppointment"),_dropDownButtonIcon:"overflow",_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===E.default.real().deviceType&&!E.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!E.default.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return He.default.isMaterial()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(e,t,n){var i=e.text;i.split(" ").forEach(function(e,t){var i=(0,a.default)("<span>").text(e).addClass("dx-scheduler-header-panel-cell-date");(0,a.default)(n).append(i),t||(0,a.default)(n).append(" ")})},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_dropDownButtonIcon:"chevrondown",_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])},_setDeprecatedOptions:function(){this.callBase(),(0,C.extend)(this._deprecatedOptions,{onAppointmentFormCreated:{since:"18.2",alias:"onAppointmentFormOpening"},dropDownAppointmentTemplate:{since:"19.2",message:"appointmentTooltipTemplate"}})},_postponeDataSourceLoading:function(e){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),e)},_postponeResourceLoading:function(){var e=this,t=this.postponedOperations.add("_loadResources",function(){return e._loadResources()}),n=new We;return t.done(function(e){n.resolve(e)}),this._postponeDataSourceLoading(t),n.promise()},_optionChanged:function(e){var t=this,n=e.value,i=e.name;switch(e.name){case"customizeDateNavigatorText":this._updateOption("header",i,n);break;case"firstDayOfWeek":this._updateOption("workSpace",i,n),this._updateOption("header",i,n);break;case"currentDate":n=this._dateOption(i),n=x.default.trimTime(new Date(n)),this.option("selectedCellData",[]),this._workSpace.option(i,new Date(n)),this._header.option(i,new Date(n)),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this._customizeStoreLoadOptions(),this._appointmentModel.setDataSource(this._dataSource),this._postponeResourceLoading().done(function(e){t._filterAppointmentsByDate(),t._updateOption("workSpace","showAllDayPanel",t.option("showAllDayPanel"))});break;case"min":case"max":n=this._dateOption(i),this._updateOption("header",i,new Date(n)),this._updateOption("workSpace",i,new Date(n));break;case"views":this._processCurrentView(),this._getCurrentViewOptions()?this.repaint():this._header.option(i,n);break;case"useDropDownViewSwitcher":this._header.option(i,n);break;case"currentView":this._processCurrentView(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done(function(e){t.getLayoutManager().initRenderingStrategy(t._getAppointmentsRenderingStrategy()),t._refreshWorkSpace(e),t._updateHeader(),t._filterAppointmentsByDate(),t._appointments.option("allowAllDayResize","day"!==n)});break;case"appointmentTemplate":this._appointments.option("itemTemplate",n);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this._updateOption("workSpace",i,n),this.repaint();break;case"groups":this._postponeResourceLoading().done(function(e){t._refreshWorkSpace(e),t._filterAppointmentsByDate()});break;case"resources":this._resourcesManager.setResources(this.option("resources")),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._postponeResourceLoading().done(function(e){t._appointments.option("items",[]),t._refreshWorkSpace(e),t._filterAppointmentsByDate()});break;case"startDayHour":case"endDayHour":this._appointments.option("items",[]),this._updateOption("workSpace",i,n),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"onAppointmentAdding":case"onAppointmentAdded":case"onAppointmentUpdating":case"onAppointmentUpdated":case"onAppointmentDeleting":case"onAppointmentDeleted":case"onAppointmentFormOpening":this._actions[i]=this._createActionByOption(i);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(i));break;
case"onAppointmentDblClick":this._appointments.option(i,this._createActionByOption(i));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(i));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":this._workSpace.option(i,n);break;case"onCellContextMenu":this._workSpace.option(i,n);break;case"crossScrollingEnabled":this._postponeResourceLoading().done(function(e){t._appointments.option("items",[]),t._refreshWorkSpace(e),t._readyToRenderAppointments&&t._appointments.option("items",t._getAppointmentsToRepaint())});break;case"cellDuration":this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",n/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",i,n),this._updateOption("workSpace",i,n),this._appointments.option(i,n),this.callBase(e);break;case"width":this._updateOption("header",i,n),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",n),this.callBase(e),this._dimensionChanged();break;case"height":this.callBase(e),this._dimensionChanged();break;case"editing":this._initEditing();var o=this._editing;this._bringEditingModeToAppointments(o),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this._postponeResourceLoading().done(function(e){t._filterAppointmentsByDate(),t._updateOption("workSpace","allDayExpanded",n),t._updateOption("workSpace",i,n)});break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",i,n),this.repaint();break;case"appointmentDragging":case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_dropDownButtonIcon":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":break;case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":this._updateExpression(i,n),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;default:this.callBase(e)}},_updateHeader:function(){var e=this._getViewCountConfig();this._header.option("intervalCount",e.intervalCount),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._header.option("min",this._dateOption("min")),this._header.option("max",this._dateOption("max")),this._header.option("currentDate",this._dateOption("currentDate")),this._header.option("firstDayOfWeek",this._getCurrentViewOption("firstDayOfWeek")),this._header.option("currentView",this._currentView)},_dateOption:function(e){var t=this._getCurrentViewOption(e);return L.default.deserializeDate(t)},_getSerializationFormat:function(e){var t=this._getCurrentViewOption(e);if("number"==typeof t)return"number";if(D.default.isString(t))return L.default.getDateSerializationFormat(t)},_bringEditingModeToAppointments:function(e){var t={allowDelete:e.allowUpdating&&e.allowDeleting};this._isAgenda()||(t.allowDrag=e.allowDragging,t.allowResize=e.allowResizing,t.allowAllDayResize=e.allowResizing&&this._supportAllDayResizing()),this._appointments.option(t),this.repaint()},_isAgenda:function(){return"agenda"===this._getAppointmentsRenderingStrategy()},_allowDragging:function(){return this._editing.allowDragging&&!this._isAgenda()},_allowResizing:function(){return this._editing.allowResizing&&!this._isAgenda()},_allowAllDayResizing:function(){return this._editing.allowResizing&&this._supportAllDayResizing()},_supportAllDayResizing:function(){return"day"!==this._getCurrentViewType()||this._currentView.intervalCount>1},_isAllDayExpanded:function(e){return this.option("showAllDayPanel")&&this._appointmentModel.hasAllDayAppointments(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getTimezoneOffsetByOption:function(e){return this._calculateTimezoneByValue(this.option("timeZone"),e)},_calculateTimezoneByValue:function(e,t){var n=e;if("string"==typeof e){t=t||new Date;var i=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes());n=Se.default.getTimezoneOffsetById(e,i)}return n},_filterAppointmentsByDate:function(){var e=this._workSpace.getDateRange();this._appointmentModel.filterByDate(e[0],e[1],this.option("remoteFiltering"),this.option("dateSerializationFormat"))},_loadResources:function(){var e=this._getCurrentViewOption("groups"),t=new We;return this._resourcesManager.loadResources(e).done(function(e){this._loadedResources=e,t.resolve(e)}.bind(this)),t.promise()},_dataSourceLoadedCallback:(0,s.default)(),_reloadDataSource:function(){var e=new We;return this._dataSource?(this._dataSource.load().done(function(){Pe.default.hide(),this._fireContentReadyAction(e)}.bind(this)).fail(function(){Pe.default.hide(),e.reject()}),this._dataSource.isLoading()&&Pe.default.show({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(e),e.promise()},_fireContentReadyAction:function(e){this.callBase(),e&&e.resolve()},_dimensionChanged:function(){var e=this.getFilteredItems();if(this._toggleSmallClass(),!this._isAgenda()&&e&&this._isVisible()){this._workSpace._cleanAllowedPositions(),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(e)),this._workSpace._dimensionChanged();var t=this._layoutManager.createAppointmentsMap(e);this._appointments.option("items",t)}this.hideAppointmentTooltip(),this.resizePopup(),this._appointmentPopup.updatePopupFullScreenMode()},_clean:function(){this._cleanPopup(),this.callBase()},_toggleSmallClass:function(){var e=this.$element().get(0).getBoundingClientRect().width;this.$element().toggleClass(Ge,e<Qe)},_toggleAdaptiveClass:function(){this.$element().toggleClass(Ke,this.option("adaptivityEnabled"))},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr")}),this.callBase(),this._initDataSource(),this._loadedResources=[],this._proxiedCustomizeStoreLoadOptionsHandler=this._customizeStoreLoadOptionsHandler.bind(this),this._customizeStoreLoadOptions(),this.$element().addClass(qe).toggleClass(Ue,!(!ze.default.msie||!$e.touch)),this._initEditing(),this._resourcesManager=new me.default(this.option("resources"));var e=this._combineDataAccessors();this._appointmentModel=new ye.default(this._dataSource,e,this.getAppointmentDurationInMinutes()),this._initActions(),this._compactAppointmentsHelper=new ke.CompactAppointmentsHelper(this),this._subscribes=q.default},_initTemplates:function(){this.callBase(),this._initAppointmentTemplate(),this._defaultTemplates.appointmentTooltip=new Fe.EmptyTemplate,this._defaultTemplates.dropDownAppointment=new Fe.EmptyTemplate},_initAppointmentTemplate:function(){var e=this,t=this._dataAccessors.expr,n=function(e){return B.default.compileGetter("appointmentData."+e)};this._defaultTemplates.item=new Re.BindableTemplate(function(t,n,i){e.getAppointmentsInstance()._renderAppointmentTemplate(t,n,i)},["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:n(t.textExpr),startDate:n(t.startDateExpr),endDate:n(t.endDateExpr),startDateTimeZone:n(t.startDateTimeZoneExpr),endDateTimeZone:n(t.endDateTimeZoneExpr),allDay:n(t.allDayExpr),recurrenceRule:n(t.recurrenceRuleExpr)})},_combineDataAccessors:function(){var e=this._resourcesManager._dataAccessors,t=(0,C.extend)(!0,{},this._dataAccessors);return(0,b.each)(e,function(e,n){t[e].resources=n}.bind(this)),t},_renderContent:function(){this._renderContentImpl()},_dataSourceChangedHandler:function(e){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._filteredItems=this.fire("prerenderFilter"),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(this._filteredItems)),this._isAgenda()&&this.getRenderingStrategyInstance().calculateRows(this._filteredItems,7,this.option("currentDate"),!0),this._filteredItems.length&&this._isVisible()?(this._appointments.option("items",this._getAppointmentsToRepaint()),this._appointmentModel.cleanModelState()):this._appointments.option("items",[]),this._isAgenda()&&(this._workSpace._renderView(),this._dataSourceLoadedCallback.fireWith(this,[e]))}.bind(this))},_getAppointmentsToRepaint:function(){var e=this._layoutManager.createAppointmentsMap(this._filteredItems);return this._layoutManager.getRepaintedAppointments(e,this.getAppointmentsInstance().option("items"))},_initExpressions:function(e){var t=function(e){return"startDate"===e||"endDate"===e};this._dataAccessors||(this._dataAccessors={getter:{},setter:{},expr:{}}),(0,b.each)(e,function(e,n){if(n){var i,o,a=B.default.compileGetter(n),r=B.default.compileSetter(n);if(t(e)){var s=this;i=function(){var e=a.apply(this,arguments);if((0,A.default)().forceIsoDateParsing){if(!s.option("dateSerializationFormat")){var t=L.default.getDateSerializationFormat(e);t&&s.option("dateSerializationFormat",t)}e=L.default.deserializeDate(e)}return e},o=function(e,t){((0,A.default)().forceIsoDateParsing||s.option("dateSerializationFormat"))&&(t=L.default.serializeDate(t,s.option("dateSerializationFormat"))),r.call(this,e,t)}}this._dataAccessors.getter[e]=i||a,this._dataAccessors.setter[e]=o||r,this._dataAccessors.expr[e+"Expr"]=n}else delete this._dataAccessors.getter[e],delete this._dataAccessors.setter[e],delete this._dataAccessors.expr[e+"Expr"]}.bind(this))},_updateExpression:function(e,t){var n={};n[e.replace("Expr","")]=t,this._initExpressions(n)},_initEditing:function(){var e=this.option("editing");this._editing={allowAdding:!!e,allowUpdating:!!e,allowDeleting:!!e,allowResizing:!!e,allowDragging:!!e},D.default.isObject(e)&&(this._editing=(0,C.extend)(this._editing,e)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(Ye,this._isReadOnly())},_isReadOnly:function(){var e=!0,t=this._editing;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=e&&!t[n]);return e},_customizeStoreLoadOptions:function(){this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler)},_dispose:function(){this._appointmentTooltip&&this._appointmentTooltip.dispose(),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._cleanAsyncTemplatesTimer(),this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler),this.callBase()},_customizeStoreLoadOptionsHandler:function(e){e.storeLoadOptions.dxScheduler={startDate:this.getStartViewDate(),endDate:this.getEndViewDate(),resources:this.option("resources")}},_initActions:function(){this._actions={onAppointmentAdding:this._createActionByOption("onAppointmentAdding"),onAppointmentAdded:this._createActionByOption("onAppointmentAdded"),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption("onAppointmentUpdated"),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption("onAppointmentDeleted"),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening")}},_getAppointmentRenderedAction:function(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})},_renderFocusTarget:I.noop,_initMarkup:function(){this.callBase(),this._processCurrentView(),this._renderHeader(),this._layoutManager=new Ce.default(this,this._getAppointmentsRenderingStrategy()),this._appointments=this._createComponent("<div>",xe.default,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=this.option("adaptivityEnabled")?new K.MobileTooltipStrategy(this):new G.DesktopTooltipStrategy(this),this._appointmentPopup=new Y.default(this),this._isLoaded()?(this._initMarkupCore(this._loadedResources),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction()):this._loadResources().done(function(e){this._initMarkupCore(e),this._reloadDataSource()}.bind(this))},_initMarkupCore:function(e){var t=this;this._readyToRenderAppointments=p.default.hasWindow(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(e),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplates(function(){t._workSpaceRecalculation&&t._workSpaceRecalculation.resolve()}),this._filterAppointmentsByDate()},_isLoaded:function(){return this._isResourcesLoaded()&&this._isDataSourceLoaded()},_isResourcesLoaded:function(){return D.default.isDefined(this._loadedResources)},_isDataSourceLoaded:function(){return this._dataSource&&this._dataSource.isLoaded()},_render:function(){this._toggleSmallClass(),this._toggleAdaptiveClass(),this.callBase()},_renderHeader:function(){var e=(0,a.default)("<div>").appendTo(this.$element());this._header=this._createComponent(e,Z.default,this._headerConfig())},_headerConfig:function(){var e,t=this._getCurrentViewOptions(),n=this._getViewCountConfig();return e=(0,C.extend)({firstDayOfWeek:this.option("firstDayOfWeek"),currentView:this._currentView,tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),width:this.option("width"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),_dropDownButtonIcon:this.option("_dropDownButtonIcon"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")},t),e.observer=this,e.intervalCount=n.intervalCount,e.views=this.option("views"),e.min=new Date(this._dateOption("min")),e.max=new Date(this._dateOption("max")),e.currentDate=x.default.trimTime(new Date(this._dateOption("currentDate"))),e},_appointmentsConfig:function(){var e=this,t={observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),onContentReady:function(){e._workSpace&&e._workSpace.option("allDayExpanded",e._isAllDayExpanded(e.getFilteredItems()))}};return t},getCollectorOffset:function(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0},getAppointmentDurationInMinutes:function(){return this._getCurrentViewOption("cellDuration")},_processCurrentView:function(){var e=this.option("views"),t=this.option("currentView"),n=this;this._currentView=t,(0,b.each)(e,function(e,i){var o=D.default.isObject(i),a=o?i.name:i,r=i.type;if(t===a||t===r)return n._currentView=i,!1})},_getCurrentViewType:function(){return this._currentView.type||this._currentView},_getAppointmentsRenderingStrategy:function(){return tt[this._getCurrentViewType()].renderingStrategy},_renderWorkSpace:function(e){this._readyToRenderAppointments&&this._toggleSmallClass();var t=(0,a.default)("<div>").appendTo(this.$element()),n=this._getViewCountConfig();this._workSpace=this._createComponent(t,tt[this._getCurrentViewType()].workSpace,this._workSpaceConfig(e,n)),this._allowDragging()&&this._workSpace.initDragBehavior(this),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),n.startDate&&this._header&&this._header.option("currentDate",this._workSpace._getHeaderDate()),this._appointments.option("_collectorOffset",this.getCollectorOffset())},_getViewCountConfig:function(){var e=this.option("currentView"),t=this._getViewByName(e),n=t&&t.intervalCount||1,i=t&&t.startDate||null;return{intervalCount:n,startDate:i}},_getViewByName:function(e){for(var t=this.option("views"),n=0;n<t.length;n++)if(t[n].name===e||t[n].type===e||t[n]===e)return t[n]},_recalculateWorkspace:function(){var e=this;this._workSpaceRecalculation=new We,this._waitAsyncTemplates(function(){y.default.triggerResizeEvent(e._workSpace.$element()),e._workSpace._refreshDateTimeIndication()})},_workSpaceConfig:function(e,t){var n,i=this,o=this._getCurrentViewOptions();return n=(0,C.extend)({noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:this.option("crossScrollingEnabled"),dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:function(e){i.option("selectedCellData",e.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate")},o),n.observer=this,n.intervalCount=t.intervalCount,n.startDate=t.startDate,n.groups=e,n.onCellClick=this._createActionByOption("onCellClick"),n.onCellContextMenu=this._createActionByOption("onCellContextMenu"),n.min=new Date(this._dateOption("min")),n.max=new Date(this._dateOption("max")),n.currentDate=x.default.trimTime(new Date(this._dateOption("currentDate"))),n.hoursInterval=n.cellDuration/60,n.allDayExpanded=this._isAllDayExpanded(this.getFilteredItems()),n.dataCellTemplate=n.dataCellTemplate?this._getTemplate(n.dataCellTemplate):null,n.timeCellTemplate=n.timeCellTemplate?this._getTemplate(n.timeCellTemplate):null,n.resourceCellTemplate=n.resourceCellTemplate?this._getTemplate(n.resourceCellTemplate):null,n.dateCellTemplate=n.dateCellTemplate?this._getTemplate(n.dateCellTemplate):null,n},_getCurrentViewOptions:function(){return this._currentView},_getCurrentViewOption:function(e){var t=this._getCurrentViewOptions();return t&&void 0!==t[e]?t[e]:this.option(e)},_getAppointmentTemplate:function(e){var t=this._getCurrentViewOptions();return t&&t[e]?this._getTemplate(t[e]):this._getTemplateByOption(e)},_updateOption:function(e,t,n){var i=this._getCurrentViewOptions();i&&D.default.isDefined(i[t])||this["_"+e].option(t,n)},_refreshWorkSpace:function(e){var t=this;this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(e),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplates(function(){t._workSpaceRecalculation.resolve()}))},_cleanWorkspace:function(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])},getWorkSpaceScrollable:function(){return this._workSpace.getScrollable()},getWorkSpaceScrollableScrollTop:function(e){return this._workSpace.getGroupedScrollableScrollTop(e)},getWorkSpaceScrollableScrollLeft:function(){return this._workSpace.getScrollableScrollLeft()},getWorkSpaceScrollableContainer:function(){return this._workSpace.getScrollableContainer()},getWorkSpaceAllDayHeight:function(){return this._workSpace.getAllDayHeight()},getWorkSpaceAllDayOffset:function(){return this._workSpace.getAllDayOffset()},getWorkSpaceHeaderPanelHeight:function(){return this._workSpace.getHeaderPanelHeight()},getWorkSpaceDateTableOffset:function(){return!this.option("crossScrollingEnabled")||this.option("rtlEnabled")?this._workSpace.getWorkSpaceLeftOffset():0},getWorkSpace:function(){return this._workSpace},getAppointmentModel:function(){return this._appointmentModel},getHeader:function(){return this._header},getMaxAppointmentsPerCell:function(){return this._getCurrentViewOption("maxAppointmentsPerCell")},_cleanPopup:function(){this._appointmentPopup.dispose()},_convertDatesByTimezoneBack:function(e,t,n){n=n||t;var i=this.fire("convertDateByTimezoneBack",this.fire("getField","startDate",t),e&&this.fire("getField","startDateTimeZone",t)),o=this.fire("convertDateByTimezoneBack",this.fire("getField","endDate",t),e&&this.fire("getField","endDateTimeZone",t));this.fire("setField","startDate",n,i),this.fire("setField","endDate",n,o)},_checkRecurringAppointment:function(e,t,n,i,o,a,r){delete this._updatedRecAppointment;var s=this.fire("getField","recurrenceRule",e);if(!m.default.getRecurrenceRule(s).isValid||!this._editing.allowUpdating)return void i();var l=this.option("recurrenceEditMode");switch(l){case"series":i();break;case"occurrence":this._singleAppointmentChangesHandler(e,t,n,o,a,r);break;default:r&&(r.cancel=new We),this._showRecurrenceChangeConfirm(o).done(function(s){s&&i(),!s&&this._singleAppointmentChangesHandler(e,t,n,o,a,r)}.bind(this)).fail(function(){this._appointments.moveAppointmentBack(r)}.bind(this))}},_singleAppointmentChangesHandler:function(e,t,n,i,o,a){function r(e,t){var n=this.fire("getField","startDate",e),i=this.fire("convertDateByTimezoneBack",n,this.fire("getField","startDateTimeZone",e)),o=this.fire("getField","endDate",e),a=this.fire("convertDateByTimezoneBack",o,this.fire("getField","endDateTimeZone",e));if("number"==typeof t&&!isNaN(t)){var r=-(this._subscribes.getClientTimezoneOffset(n)/je("hour")),s=-(this._subscribes.getClientTimezoneOffset(o)/je("hour")),l=i.getTime()-r*je("hour"),u=a.getTime()-s*je("hour");i=new Date(l+t*je("hour")),a=new Date(u+t*je("hour"))}this.fire("setField","startDate",e,i),this.fire("setField","endDate",e,a)}n=new Date(n),this.fire("setField","recurrenceRule",t,""),this.fire("setField","recurrenceException",t,""),i||o||(r.call(this,t,this._getTimezoneOffsetByOption()),this.addAppointment(t));var s=this._makeDateAsRecurrenceException(n,e),l=(0,C.extend)({},e);this.fire("setField","recurrenceException",l,s),o?(this._updatedRecAppointment=l,r.call(this,t),this._showAppointmentPopup(t,!0,!0),this._editAppointmentData=e):this._updateAppointment(e,l,function(){this._appointments.moveAppointmentBack(a)},a)},_makeDateAsRecurrenceException:function(e,t){var n=this._getStartDate(t,!0),i=this.fire("getField","startDateTimeZone",t),o=this._getRecurrenceExceptionDate(e,n,i),a=this.fire("getField","recurrenceException",t);return a?a+","+o:o},_getRecurrenceExceptionDate:function(e,t,n){e=this.fire("convertDateByTimezoneBack",e,n);var i=this.fire("convertDateByTimezoneBack",t,n);e.setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());var o=t.getTimezoneOffset()-e.getTimezoneOffset();return e=new Date(e.getTime()-o*je("minute")),L.default.serializeDate(e,et)},_showRecurrenceChangeConfirm:function(e){var t=V.default.format(e?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),n=V.default.format(e?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),i=V.default.format(e?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return g.default.custom({messageHtml:t,showCloseButton:!0,showTitle:!0,buttons:[{text:n,onClick:function(){return!0}},{text:i,onClick:function(){return!1}}]}).show()},_getUpdatedData:function(e){var t=e.data||e,n=this.getTargetCellData(),i=this.fire("getField","allDay",t),o=new Date(this.fire("getField","startDate",t)),a=new Date(this.fire("getField","endDate",t)),r=n.date||o,s=a.getTime()-o.getTime();if(this._workSpace.keepOriginalHours()&&!isNaN(o.getTime())){var l=o.getTime()-x.default.trimTime(o).getTime();r=new Date(x.default.trimTime(r).getTime()+l)}var u={},d=n.allDay;this.fire("setField","allDay",u,d),this.fire("setField","startDate",u,r);var c=new Date(r.getTime()+s);if(this.appointmentTakesAllDay(t)&&!u.allDay&&this._workSpace.supportAllDayRow()&&(c=this._workSpace.calculateEndDate(r)),i&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var h=new Date(r);h.setHours(0),c=new Date(h.getTime()+s),0!==c.getHours()&&c.setHours(this._getCurrentViewOption("endDayHour"))}return this.fire("setField","endDate",u,c),this._resourcesManager.setResourcesToItem(u,n.groups),u},_getCoordinates:function(e,t,n,i){for(var o=[],a=0;a<t.length;a++){for(var r=this._workSpace.getCoordinatesByDateInGroup(t[a],n,i),s=0;s<r.length;s++)(0,C.extend)(r[s],{startDate:t[a],initialStartDate:e[a]});o=o.concat(r)}return o},_isAppointmentRecurrence:function(e){var t=this.fire("getField","recurrenceRule",e);return t&&m.default.getRecurrenceRule(t).isValid},resizePopup:function(){this._appointmentPopup.triggerResize()},_getSingleAppointmentData:function(e,t,n){t=t||{};var i,o,a=t.$appointment,r=t.skipDateCalculation?{}:this._getUpdatedData(t),s=(0,C.extend)({},e,r),l=this.fire("getField","allDay",e),d=this._workSpace.supportAllDayRow()&&l,c=new Date(this.fire("getField","startDate",s)),h=new Date(this.fire("getField","endDate",s)),p=h.getTime()-c.getTime();if(D.default.isDefined(a)&&(n===!0||this._needUpdateAppointmentData(a))){var f=this.getRenderingStrategyInstance().getAppointmentDataCalculator();if(D.default.isFunction(f))i=f(a,c).startDate;else{var g=u.default.locate(a);if(i=new Date(this._workSpace.getCellDataByCoordinates(g,d).startDate),a.hasClass("dx-scheduler-appointment-reduced")&&(o=a.data("dxAppointmentStartDate"),o&&(i=o)),this._isAppointmentRecurrence(e)){o=a.data("dxAppointmentSettings")&&a.data("dxAppointmentSettings").startDate;var _=t.data&&t.target&&t.target.endDate&&new Date(t.data.endDate).getTime()===new Date(t.target.endDate).getTime();o&&!_&&(i=o)}t.skipHoursProcessing||this.fire("convertDateByTimezoneBack",i,this.fire("getField","startDateTimeZone",e))}}return!i&&t.startDate&&(i=t.startDate),i&&(this.fire("setField","startDate",s,i),this.fire("setField","endDate",s,new Date(i.getTime()+p))),s},_needUpdateAppointmentData:function(e){return e.hasClass("dx-scheduler-appointment-compact")||e.hasClass("dx-scheduler-appointment-recurrence")},subscribe:function(e,t){this._subscribes[e]=q.default[e]=t},fire:function(e){var t=this._subscribes[e],n=Array.prototype.slice.call(arguments);if(!D.default.isFunction(t))throw c.default.Error("E1031",e);return t.apply(this,n.slice(1))},getTargetCellData:function(){return this._workSpace.getDataByDroppableCell()},_updateAppointment:function(e,t,n,i){var o={newData:t,oldData:(0,C.extend)({},e),cancel:!1},a=function(e){if(D.default.isFunction(n)&&n.call(this),e&&"Error"===e.name)throw e}.bind(this);this._actions.onAppointmentUpdating(o),i&&!D.default.isDeferred(i.cancel)&&(i.cancel=new We),this._processActionResult(o,function(n){if(n)a();else{this._expandAllDayPanel(t);try{this._appointmentModel.update(e,t).done(function(){i&&i.cancel.resolve(!1)}).always(function(e){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentUpdated,t,e)}.bind(this)).fail(function(){a()})}catch(e){a(e)}}})},_processActionResult:function(e,t){var n=this;D.default.isPromise(e.cancel)?Ne(Me.default.fromPromise(e.cancel)).always(function(i){D.default.isDefined(i)||(i="rejected"===e.cancel.state()),t.call(n,i)}):t.call(this,e.cancel)},_expandAllDayPanel:function(e){!this._isAllDayExpanded(this.getFilteredItems())&&this.appointmentTakesAllDay(e)&&this._workSpace.option("allDayExpanded",!0)},_executeActionWhenOperationIsCompleted:function(e,t,n){var i={appointmentData:t},o=n&&"Error"===n.name;o?i.error=n:this._appointmentPopup.isVisible()&&this._appointmentPopup.hide(),e(i),this._fireContentReadyAction()},_showAppointmentPopup:function(e,t,n){this._appointmentPopup.show(e,t,n)},getAppointmentPopup:function(){return this._appointmentPopup.getPopup()},getAppointmentDetailsForm:function(){return this._appointmentPopup._appointmentForm},getUpdatedAppointment:function(){return this._appointmentModel.getUpdatedAppointment()},getUpdatedAppointmentKeys:function(){return this._appointmentModel.getUpdatedAppointmentKeys()},getAppointmentsInstance:function(){return this._appointments},getResourceManager:function(){return this._resourcesManager},getLayoutManager:function(){return this._layoutManager},getRenderingStrategyInstance:function(){return this._layoutManager.getRenderingStrategyInstance()},getFilteredItems:function(){return this._filteredItems},getActions:function(){return this._actions},appointmentTakesAllDay:function(e){return this._appointmentModel.appointmentTakesAllDay(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getStartDate:function(e,t){var n=this.fire("getField","startDate",e),i=this.fire("getField","startDateTimeZone",e);return n=x.default.makeDate(n),n=this.fire("convertDateByTimezone",n,i),!t&&this.fire("updateAppointmentStartDate",{startDate:n,appointment:e,callback:function(e){n=e}}),n},_getEndDate:function(e,t){var n=this.fire("getField","endDate",e);if(n){var i=this.fire("getField","endDateTimeZone",e);n=x.default.makeDate(n),n=this.fire("convertDateByTimezone",n,i),!t&&this.fire("updateAppointmentEndDate",{endDate:n,callback:function(e){n=e}})}return n},_getRecurrenceException:function(e){var t=this.fire("getField","recurrenceException",e);if(t){for(var n=this.fire("getField","startDate",e),i=t.split(","),o=this.fire("getField","startDateTimeZone",e),a=this.fire("convertDateByTimezone",n,o),r=0;r<i.length;r++)i[r]=this._convertRecurrenceException(i[r],a,o);t=i.join()}return t},_convertRecurrenceException:function(e,t,n){return e=e.replace(/\s/g,""),e=L.default.deserializeDate(e),e=this.fire("convertDateByTimezone",e,n),e.setHours(t.getHours()),e=L.default.serializeDate(e,Je)},recurrenceEditorVisibilityChanged:function(e){this._appointmentPopup._appointmentForm&&this._appointmentPopup._appointmentForm.$element().find("."+Xe).toggleClass(Ze,e)},dayHasAppointment:function(e,t,n){var i=new Date(this.fire("getField","startDate",t)),o=new Date(this.fire("getField","endDate",t)),a=this.fire("getField","startDateTimeZone",t),r=this.fire("getField","endDateTimeZone",t);if(i=this.fire("convertDateByTimezone",i,a),o=this.fire("convertDateByTimezone",o,r),e.getTime()===o.getTime())return i.getTime()===o.getTime();n&&(e=x.default.trimTime(e),i=x.default.trimTime(i),o=x.default.trimTime(o));var s=e.getTime(),l=i.getTime(),u=o.getTime();return(0,k.inArray)(s,[l,u])>-1||l<s&&u>s},setTargetedAppointmentResources:function(e,t,n){var i=this._getCurrentViewOption("groups");
if(i&&i.length){var o,r,s=this._resourcesManager._dataAccessors.setter,l=this._workSpace;this._isAgenda()?(o=function(){var e=this.getLayoutManager()._positionMap[n];return l._getCellGroups(e[0].groupIndex)},r=function(t,n){s[n.name](e,n.id)}):(o=function(){var e=(0,a.default)(t).data("dxAppointmentSettings")||{};return l.getCellDataByCoordinates({left:e.left,top:e.top}).groups},r=function(t,n){s[t](e,n)}),(0,b.each)(o.call(this),r)}},getStartViewDate:function(){return this._workSpace.getStartViewDate()},getEndViewDate:function(){return this._workSpace.getEndViewDate()},showAppointmentPopup:function(e,t,n){var i=n||this._getSingleAppointmentData(e,{skipDateCalculation:!0}),o=this.fire("getField","startDate",n||e);this._checkRecurringAppointment(e,i,o,function(){t||D.default.isEmptyObject(e)?(delete this._editAppointmentData,this._editing.allowAdding&&this._showAppointmentPopup(e,!0,!1)):(this._editAppointmentData=e,this._showAppointmentPopup(e,this._editing.allowUpdating,!0))}.bind(this),!1,!0)},hideAppointmentPopup:function(e){this._appointmentPopup.isVisible()&&(e&&this._appointmentPopup.saveChanges(),this._appointmentPopup.hide())},showAppointmentTooltip:function(e,t,n){e&&this.showAppointmentTooltipCore(t,[{color:this._appointments._tryGetAppointmentColor(t),data:e,currentData:n}],!0)},showAppointmentTooltipCore:function(e,t,n){this._appointmentTooltip.show(e,t,n)},hideAppointmentTooltip:function(){this._appointmentTooltip.hide()},scrollToTime:function(e,t,n){this._workSpace.scrollToTime(e,t,n)},addAppointment:function(e){var t=this.fire("getField","text",e);t||this.fire("setField","text",e,""),this._convertDatesByTimezoneBack(!0,e);var n={appointmentData:e,cancel:!1};this._actions.onAppointmentAdding(n),this._processActionResult(n,function(t){t||(this._expandAllDayPanel(e),this._appointmentModel.add(e,{value:this._getTimezoneOffsetByOption(),clientOffset:this.fire("getClientTimezoneOffset")}).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentAdded,e,t)}.bind(this)))})},updateAppointment:function(e,t){this._updateAppointment(e,t)},deleteAppointment:function(e){var t={appointmentData:e,cancel:!1};this._actions.onAppointmentDeleting(t),this._processActionResult(t,function(t){t||this._appointmentModel.remove(e).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentDeleted,e,t)}.bind(this))})},focus:function(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()},getFirstDayOfWeek:function(){return D.default.isDefined(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):$.default.firstDayOfWeekIndex()}}).include(Te.default,Oe.default);(0,F.default)("dxScheduler",nt),e.exports=nt},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(14),s=i(r),l=n(145),u=i(l),d=n(1),c=i(d),h=n(22),p=i(h),f=n(3),g=n(27),_=i(g),m=n(4),v=n(0),y=n(32),w=i(y),x=n(391),b=i(x),C=n(6),k=60,I=p.default.dateToMilliseconds,S={isCurrentViewAgenda:function(){return"agenda"===this.option("currentView")},currentViewUpdated:function(e){this.option("currentView",e)},currentDateUpdated:function(e){this.option("currentDate",e)},setCellDataCacheAlias:function(e,t){this._workSpace.setCellDataCacheAlias(e,t)},needCoordinates:function(e){var t=this,n=e.appointmentData,i=e.startDate,o=this._getEndDate(n),a=this.fire("getField","recurrenceRule",n),r=this._getRecurrenceException(n),s=this._workSpace.getDateRange(),l=this.appointmentTakesAllDay(n),d=this.appointmentTakesAllDay(n)?p.default.trimTime(new Date(s[0])):s[0],c=e.originalStartDate||i,h=this.getLayoutManager().getRenderingStrategyInstance(),f=this.getFirstDayOfWeek(),g={rule:a,exception:r,start:c,end:o,min:d,max:s[1],firstDayOfWeek:f},_=u.default.getDatesByRecurrence(g),m=void 0;if(_.length?(m=_,_=_.map(function(e){return p.default.roundDateByStartDayHour(e,t._getCurrentViewOption("startDayHour"))})):(_.push(i),m=_),h.needSeparateAppointment(l)){for(var v=_.length,y=[],w=[],x=function(e){var i=h.endDate(n,{startDate:_[e]},!!a);y=p.default.getDatesOfInterval(_[e],i,{milliseconds:t.getWorkSpace().getIntervalDuration(l)});var o=new Date(s[1]);w=w.concat(y.filter(function(e){return new Date(e)<o}))},b=0;b<v;b++)x(b);_=w}var C=this._resourcesManager.getResourcesFromItem(n);l=this.appointmentTakesAllDay(n)&&this._workSpace.supportAllDayRow(),e.callback(this._getCoordinates(m,_,C,l))},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(e){e.skipDateCalculation=!0,e.$appointment=(0,a.default)(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e);this.showAppointmentTooltip(t,e.target,n)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showAddAppointmentPopup:function(e){var t={};(0,f.each)(["startDate","endDate","allDay"],function(n,i){void 0!==e[i]&&(this.fire("setField",i,t,e[i]),delete e[i])}.bind(this)),this.showAppointmentPopup((0,v.extend)(t,e),!0)},showEditAppointmentPopup:function(e){var t=e.data;e.$appointment=(0,a.default)(e.target),e.skipHoursProcessing=!0;var n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n);this.showAppointmentPopup(t,!1,n,i)},updateAppointmentAfterResize:function(e){var t=e.target,n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n),o=(0,v.extend)(!0,{},e.data);this._convertDatesByTimezoneBack(!0,o),this._checkRecurringAppointment(t,n,i,function(){this._updateAppointment(t,o,function(){this._appointments.moveAppointmentBack()})}.bind(this))},getUpdatedData:function(e){return this._getUpdatedData({data:e.data})},updateAppointmentAfterDrag:function(e){var t=e.data,n=this._getUpdatedData(e),i=this._workSpace.getDroppableCellIndex(),o=this._workSpace.getCellIndexByCoordinates(e.coordinates),a=this.fire("getField","allDay",n),r=this.fire("getField","allDay",t),s=e.event,l=(0,v.extend)({},t,n),u=this._workSpace.supportAllDayRow()&&a,d=this._workSpace.getCellDataByCoordinates(e.coordinates,u),c=this._workSpace.supportAllDayRow()&&(r&&!a||!r&&a);i!==o||c?this._checkRecurringAppointment(t,l,d.startDate,function(){this._convertDatesByTimezoneBack(!0,n,l),this._updateAppointment(t,l,function(){this._appointments.moveAppointmentBack(s)},s)}.bind(this),void 0,void 0,s):this._appointments.moveAppointmentBack(s)},deleteAppointment:function(e){e.$appointment=(0,a.default)(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n);this._checkRecurringAppointment(t,n,i,function(){this.deleteAppointment(t)}.bind(this),!0)},getResourceForPainting:function(){return this._resourcesManager.getResourceForPainting(this._getCurrentViewOption("groups"))},getAppointmentColor:function(e){var t=this._resourcesManager,n=t.getResourceForPainting(this._getCurrentViewOption("groups")),i=(new C.Deferred).resolve().promise();if(n){for(var o=t.getField(n),a=e.groupIndex,r=this._workSpace._getCellGroups(a),l=s.default.wrapToArray(t.getDataAccessors(o,"getter")(e.itemData)),u=l.length?l[0]:void 0,d=0;d<r.length;d++)if(r[d].name===o){u=r[d].id;break}i=t.getResourceColor(o,u)}e.callback(i)},getHeaderHeight:function(){return this._header._$element&&parseInt(this._header._$element.outerHeight(),10)},getResourcesFromItem:function(e){e.callback(this._resourcesManager.getResourcesFromItem(e.itemData))},getBoundOffset:function(e){e.callback({top:-this.getWorkSpaceAllDayHeight()})},appointmentTakesAllDay:function(e){e.callback(this.appointmentTakesAllDay(e.appointment))},appointmentTakesSeveralDays:function(e){return this._appointmentModel.appointmentTakesSeveralDays(e)},appointmentFocused:function(){this._workSpace.restoreScrollTop()},getResizableAppointmentArea:function(e){var t=void 0,n=e.allDay,i=this._getCurrentViewOption("groups"),o=i&&i.length;if(o){if(n||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var a=this._workSpace.getGroupBounds(e.coordinates);t={left:a.left,right:a.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(n)&&this._workSpace._isVerticalGroupedWorkSpace()){var r=this._workSpace.getGroupBounds(e.coordinates);t={left:0,right:0,top:r.top,bottom:r.bottom}}}e.callback(t)},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getDraggableAppointmentArea:function(e){e.callback(this.getWorkSpaceScrollableContainer())},getAppointmentGeometry:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(e)},isAllDay:function(e){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(e)},getDeltaTime:function(e,t,n){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(e,t,n)},getDropDownAppointmentWidth:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,e)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getStartDate:function(e,t){return this._getStartDate(e,t)},getCellWidth:function(){return this._cellWidth},getCellHeight:function(){return this._cellHeight},getResizableStep:function(){var e=this._cellWidth,t=this.getWorkSpace();return t.isGroupedByDate()?t._getGroupCount()*e:e},getEndDate:function(e,t){return this._getEndDate(e,t)},getRenderingStrategy:function(){return this._getAppointmentsRenderingStrategy()},getMaxAppointmentCountPerCellByType:function(e){return this.getRenderingStrategyInstance()._getMaxAppointmentCountPerCellByType(e)},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},getWorkSpaceDateTableOffset:function(){return this.getWorkSpaceDateTableOffset()},formatDates:function(e){var t=e.startDate,n=e.endDate,i=e.formatType,o={DATETIME:function(){var e="mediumdatemediumtime",i=w.default.format(t,e)+" - ",o=t.getDate()===n.getDate()?w.default.format(n,"shorttime"):w.default.format(n,e);return i+o},TIME:function(){return w.default.format(t,"shorttime")+" - "+w.default.format(n,"shorttime")},DATE:function(){var e="monthAndDay",i=w.default.format(t,e),o=n.getTime()-t.getTime()>I("day"),a=o||n.getDate()!==t.getDate()?" - "+w.default.format(n,e):"";return i+a}};e.callback(o[i]())},getFullWeekAppointmentWidth:function(e){var t=e.groupIndex,n=this._workSpace.getGroupWidth(t);e.callback(n)},getMaxAppointmentWidth:function(e){var t=this._workSpace.getCellCountToLastViewDate(e.date);e.callback(t*this._workSpace.getCellWidth())},updateAppointmentStartDate:function(e){var t=e.appointment,n=this._workSpace.getStartViewDate(),i=new Date(e.startDate),o=this._getCurrentViewOption("startDayHour"),a=void 0;this.appointmentTakesAllDay(t)?a=p.default.normalizeDate(i,n):(i<n&&(i=n),a=p.default.normalizeDate(e.startDate,new Date(i))),a=p.default.roundDateByStartDayHour(a,o),e.callback(a)},updateAppointmentEndDate:function(e){var t=new Date(e.endDate),n=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),o=t;t.getHours()>=n?o.setHours(n,0,0,0):i>0&&60*t.getHours()+t.getMinutes()<60*i&&(o=new Date(o.getTime()-I("day")),o.setHours(n,0,0,0)),e.callback(o)},renderCompactAppointments:function(e){this._compactAppointmentsHelper.render(e)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this._workSpace._supportCompactDropDownAppointments()},isApplyCompactAppointmentOffset:function(){return this._workSpace._isApplyCompactAppointmentOffset()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(e){var t={appointmentData:e.itemData,appointmentElement:e.itemElement};return e.itemData&&(t.targetedAppointmentData=this.fire("getTargetedAppointmentData",e.itemData,e.itemElement)),t},getOffsetByAllDayPanel:function(e){return this._workSpace._getOffsetByAllDayPanel(e)},getGroupTop:function(e){return this._workSpace._getGroupTop(e)},updateResizableArea:function(){var e=this.$element().find(".dx-scheduler-appointment.dx-resizable"),t=(0,m.grep)(e,function(e){var t=(0,a.default)(e),n=t.dxResizable("instance"),i=n.option("area");return(0,r.inArray)(n.option("handles"),["right left","left right"])>-1&&c.default.isPlainObject(i)});(0,f.each)(t,function(e,t){var n=(0,a.default)(t),i=_.default.locate(n),o=this._appointments._getItemData(n),r=this._appointments._calculateResizableArea({left:i.left},o);n.dxResizable("instance").option("area",r)}.bind(this))},recurrenceEditorVisibilityChanged:function(e){this.recurrenceEditorVisibilityChanged(e)},resizePopup:function(){this.resizePopup()},getField:function(e,t){if(c.default.isDefined(this._dataAccessors.getter[e]))return this._dataAccessors.getter[e](t)},setField:function(e,t,n){if(c.default.isDefined(this._dataAccessors.setter[e])){var i=this.option(e+"Expr").split("."),o=i[0];if(void 0===t[o]&&i.length>1){var a=function(e){for(var t={},n=t,i=e.length-1,o=1;o<i;o++)n=n[e[o]]={};return t}(i);t[o]=a}return this._dataAccessors.setter[e](t,n),t}},prerenderFilter:function(){var e=this.getWorkSpace().getDateRange(),t=this._resourcesManager.getResourcesData(),n=void 0;return!this.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(n=!1),this._appointmentModel.filterLoadedAppointments({startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),min:e[0],max:e[1],resources:t,allDay:n,firstDayOfWeek:this.getFirstDayOfWeek(),recurrenceException:this._getRecurrenceException.bind(this)},this._subscribes.convertDateByTimezone.bind(this))},dayHasAppointment:function(e,t,n){return this.dayHasAppointment(e,t,n)},createResourcesTree:function(){return this._resourcesManager.createResourcesTree(this._loadedResources)},getResourceTreeLeaves:function(e,t){return this._resourcesManager.getResourceTreeLeaves(e,t)},createReducedResourcesTree:function(){var e=this._resourcesManager.createResourcesTree(this._loadedResources);return this._resourcesManager.reduceResourcesTree(e,this.getFilteredItems())},groupAppointmentsByResources:function(e){var t={0:e},n=this._getCurrentViewOption("groups");n&&n.length&&this._resourcesManager.getResourcesData().length&&(t=this._resourcesManager.groupAppointmentsByResources(e,this._loadedResources));var i=0;(0,f.each)(this._loadedResources,function(e,t){e?i*=t.items.length:i=t.items.length});for(var o=0;o<i;o++){var a=o.toString();t[a]||(t[a]=[])}return t},getAgendaRows:function(e){function t(n){var a=i(n,e.agendaDuration,e.currentDate);this._dataSourceLoadedCallback.remove(t),o.resolve(a)}var n=this._layoutManager.getRenderingStrategyInstance(),i=n.calculateRows.bind(n),o=new C.Deferred;return this._dataSourceLoadedCallback.add(t),o.promise()},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},getMaxAppointmentsPerCell:function(){return this.getMaxAppointmentsPerCell()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},agendaIsReady:function(e,t,n){var i=this.getAppointmentsInstance()._itemElements(),o=0;i.css("marginBottom",t);for(var a=function(e,t){var a=t+o-1;i.eq(a).css("marginBottom",n),o+=t},r=0;r<e.length;r++)(0,f.each)(e[r],a)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getClientTimezoneOffset:function(e){return e=e||new Date,b.default.getClientTimezoneOffset(e)},convertDateByTimezone:function(e,t){e=new Date(e);var n=this._subscribes.getComplexOffsets(this,e,t);return e=this._subscribes.translateDateToAppointmentTimeZone(e,n),e=this._subscribes.translateDateToCommonTimeZone(e,n)},convertDateByTimezoneBack:function(e,t){e=new Date(e);var n=this._subscribes.getComplexOffsets(this,e,t);return e=this._subscribes.translateDateToAppointmentTimeZone(e,n,!0),e=this._subscribes.translateDateToCommonTimeZone(e,n,!0)},translateDateToAppointmentTimeZone:function(e,t,n){var i=n?-1:1,o=e.getTime()-i*t.client*I("hour");return new Date(o+i*t.appointment*I("hour"))},translateDateToCommonTimeZone:function(e,t,n){var i=n?-1:1;if("number"==typeof t.common){var o=t.common-t.appointment,a=(o<0?-1:1)*Math.floor(Math.abs(o)),r=o%1;e.setHours(e.getHours()+i*a),e.setMinutes(e.getMinutes()+i*r*k)}return e},getComplexOffsets:function(e,t,n){var i=-this.getClientTimezoneOffset(t)/I("hour"),o=e._getTimezoneOffsetByOption(t),a=e._calculateTimezoneByValue(n,t);return"number"!=typeof a&&(a=i),{client:i,common:o,appointment:a}},getDaylightOffset:function(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()},getTimezonesDisplayName:function(){return b.default.getTimezonesDisplayName()},getTimezoneDisplayNameById:function(e){return b.default.getTimezoneDisplayNameById(e)},getSimilarTimezones:function(e){return b.default.getSimilarTimezones(e)},getTimezonesIdsByDisplayName:function(e){return b.default.getTimezonesIdsByDisplayName(e)},getTargetedAppointmentData:function(e,t,n){var i=(0,a.default)(t),o=i.data(this._appointments._itemIndexKey()),r=this._getSingleAppointmentData(e,{skipDateCalculation:!0,$appointment:i,skipHoursProcessing:!0},n),s={};return(0,v.extend)(!0,s,e,r),this._convertDatesByTimezoneBack(!1,s),t&&this.setTargetedAppointmentResources(s,t,o),s},getAppointmentDurationInMs:function(e){var t=e.startDate,n=e.endDate,i=e.allDay,o=n.getTime()-t.getTime(),a=I("day"),r=this._workSpace.getVisibleDayDuration(),s=0;if(i){var l=Math.ceil(o/a);s=l*r}else{var u=!p.default.sameDate(t,new Date(n.getTime()-1)),d=Math.floor(o/a),c=void 0;if(u){var h=a-r;c=o-(d?d*a:h);var f=this.option("startDayHour")*I("hour"),g=n-p.default.trimTime(n);g<f&&(d&&(c-=h),c+=f-g)}else c=o%a;c>r&&(c=r),s=d*r+c||I("minute")}e.callback(s)},fixWrongEndDate:function(e,t,n){return this._appointmentModel.fixWrongEndDate(e,t,n)},getEndDayHour:function(){return this._workSpace.option("endDayHour")||this.option("endDayHour")},getStartDayHour:function(){return this._workSpace.option("startDayHour")||this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")},moveBack:function(){var e=this.getWorkSpace().dragBehavior;e&&e.moveBack()}};e.exports=S},function(e,t,n){var i=["(UTC) Monrovia, Reykjavik","(UTC+03:00) Nairobi","(UTC+02:00) Harare, Pretoria","(UTC+01:00) West Central Africa","(UTC+02:00) Athens, Bucharest","(UTC+03:00) Kuwait, Riyadh","(UTC+07:00) Bangkok, Hanoi, Jakarta","(UTC+04:00) Abu Dhabi, Muscat","(UTC+12:00) Auckland, Wellington","(UTC-03:00) City of Buenos Aires","(UTC-05:00) Bogota, Lima, Quito, Rio Branco","(UTC-08:00) Pacific Time (US & Canada)","(UTC-05:00) Indiana (East)","(UTC-06:00) Central Time (US & Canada)","(UTC-05:00) Eastern Time (US & Canada)","(UTC-07:00) Mountain Time (US & Canada)","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan","(UTC+05:00) Ashgabat, Tashkent","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi","(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi","(UTC+06:00) Dhaka","(UTC+06:00) Astana","(UTC+05:45) Kathmandu","(UTC+02:00) Jerusalem","(UTC+08:00) Kuala Lumpur, Singapore","(UTC+08:00) Ulaanbaatar","(UTC) Dublin, Edinburgh, Lisbon, London","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","(UTC+10:00) Canberra, Melbourne, Sydney","(UTC+09:30) Darwin","(UTC+10:00) Brisbane","(UTC+09:30) Adelaide","(UTC+10:00) Hobart","(UTC+08:00) Perth","(UTC-02:00) Coordinated Universal Time-02","(UTC-03:00) Brasilia","(UTC-04:00) Atlantic Time (Canada)","(UTC-06:00) Saskatchewan","(UTC-03:30) Newfoundland","(UTC-03:00) Santiago","(UTC+02:00) Cairo","UTC","(UTC+03:30) Tehran","(UTC+09:00) Osaka, Sapporo, Tokyo","(UTC+12:00) Coordinated Universal Time+12","(UTC+02:00) Tripoli","(UTC-07:00) Chihuahua, La Paz, Mazatlan","(UTC-06:00) Guadalajara, Mexico City, Monterrey","(UTC+11:00) Solomon Is., New Caledonia","(UTC-11:00) Coordinated Universal Time-11","(UTC+10:00) Guam, Port Moresby","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb","(UTC+08:00) Taipei","(UTC+09:00) Seoul","(UTC+02:00) Istanbul","(UTC-09:00) Alaska","(UTC-07:00) Arizona","(UTC-10:00) Hawaii","(UTC+03:00) Moscow, St. Petersburg, Volgograd","(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","(UTC) Casablanca","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","(UTC+01:00) Windhoek","(UTC-03:00) Cayenne, Fortaleza","(UTC-04:00) Asuncion","(UTC-03:00) Salvador","(UTC-06:00) Central America","(UTC-04:00) Cuiaba","(UTC-04:30) Caracas","(UTC-03:00) Greenland","(UTC-03:00) Montevideo","(UTC-08:00) Baja California","(UTC-01:00) Azores","(UTC+02:00) Amman","(UTC+10:00) Magadan","(UTC+03:00) Baghdad","(UTC+04:00) Baku","(UTC+02:00) Beirut","(UTC+09:00) Yakutsk","(UTC+05:30) Sri Jayawardenepura","(UTC+02:00) Damascus","(UTC+08:00) Irkutsk","(UTC+04:30) Kabul","(UTC+05:00) Islamabad, Karachi","(UTC+07:00) Krasnoyarsk","(UTC+06:00) Novosibirsk","(UTC+06:30) Yangon (Rangoon)","(UTC+10:00) Vladivostok","(UTC+04:00) Tbilisi","(UTC+05:00) Ekaterinburg","(UTC+04:00) Yerevan","(UTC-01:00) Cabo Verde Is.","(UTC-12:00) International Date Line West","(UTC+13:00) Nuku'alofa","(UTC+14:00) Kiritimati Island","(UTC+02:00) Kaliningrad","(UTC+04:00) Port Louis","(UTC+13:00) Samoa","(UTC+12:00) Fiji","(UTC+8:45) Eucla","(UTC+10:30) Lord Howe Island"],o=[{id:"Africa/Bamako",title:"Bamako",winIndex:0,link:185},{id:"Africa/Banjul",title:"Banjul",winIndex:0,link:185},{id:"Africa/Conakry",title:"Conakry",winIndex:0,link:185},{id:"Africa/Dakar",title:"Dakar",winIndex:0,link:185},{id:"Africa/Freetown",title:"Freetown",winIndex:0,link:185},{id:"Africa/Lome",title:"Lome",winIndex:0,link:185},{id:"Africa/Nouakchott",title:"Nouakchott",winIndex:0,link:185},{id:"Africa/Ouagadougou",title:"Ouagadougou",winIndex:0,link:185},{id:"Africa/Sao_Tome",title:"Sao Tome",winIndex:0,link:185},{id:"Atlantic/St_Helena",title:"St Helena",winIndex:0,link:185},{id:"Africa/Addis_Ababa",title:"Addis Ababa",winIndex:1,link:198},{id:"Africa/Asmara",title:"Asmara",winIndex:1,link:198},{id:"Africa/Dar_es_Salaam",title:"Dar es Salaam",winIndex:1,link:198},{id:"Africa/Djibouti",title:"Djibouti",winIndex:1,link:198},{id:"Africa/Kampala",title:"Kampala",winIndex:1,link:198},{id:"Africa/Mogadishu",title:"Mogadishu",winIndex:1,link:198},{id:"Indian/Antananarivo",title:"Antananarivo",winIndex:1,link:198},{id:"Indian/Comoro",title:"Comoro",winIndex:1,link:198},{id:"Indian/Mayotte",title:"Mayotte",winIndex:1,link:198},{id:"Africa/Blantyre",title:"Blantyre",winIndex:2,link:196},{id:"Africa/Bujumbura",title:"Bujumbura",winIndex:2,link:196},{id:"Africa/Gaborone",title:"Gaborone",winIndex:2,link:196},{id:"Africa/Harare",title:"Harare",winIndex:2,link:196},{id:"Africa/Kigali",title:"Kigali",winIndex:2,link:196},{id:"Africa/Lubumbashi",title:"Lubumbashi",winIndex:2,link:196},{id:"Africa/Lusaka",title:"Lusaka",winIndex:2,link:196},{id:"Africa/Bangui",title:"Bangui",winIndex:3,link:195},{id:"Africa/Brazzaville",title:"Brazzaville",winIndex:3,link:195},{id:"Africa/Douala",title:"Douala",winIndex:3,link:195},{id:"Africa/Kinshasa",title:"Kinshasa",winIndex:3,link:195},{id:"Africa/Libreville",title:"Libreville",winIndex:3,link:195},{id:"Africa/Luanda",title:"Luanda",winIndex:3,link:195},{id:"Africa/Malabo",title:"Malabo",winIndex:3,link:195},{id:"Africa/Niamey",title:"Niamey",winIndex:3,link:195},{id:"Africa/Porto-Novo",title:"Porto-Novo",winIndex:3,link:195},{id:"Africa/Maseru",title:"Maseru",winIndex:2,link:193},{id:"Africa/Mbabane",title:"Mbabane",winIndex:2,link:193},{id:"Africa/Juba",title:"Juba",winIndex:1,link:194},{id:"Europe/Nicosia",title:"Nicosia",winIndex:4,link:381},{id:"Asia/Bahrain",title:"Bahrain",winIndex:5,link:388},{id:"Asia/Aden",title:"Aden",winIndex:5,link:391},{id:"Asia/Kuwait",title:"Kuwait",winIndex:5,link:391},{id:"Asia/Phnom_Penh",title:"Phnom Penh",winIndex:6,link:349},{id:"Asia/Vientiane",title:"Vientiane",winIndex:6,link:349},{id:"Asia/Muscat",title:"Muscat",winIndex:7,link:359},{id:"Antarctica/McMurdo",title:"McMurdo",winIndex:8,link:511},{id:"Africa/Asmera",title:"Asmera",winIndex:1,link:198},{id:"Africa/Timbuktu",title:"Timbuktu",winIndex:0,link:185},{id:"America/Buenos_Aires",title:"Buenos Aires",winIndex:9,link:206},{id:"America/Catamarca",title:"Catamarca",winIndex:9,link:207},{id:"America/Coral_Harbour",title:"Coral Harbour",winIndex:10,link:219},{id:"America/Cordoba",title:"Cordoba",winIndex:9,link:208},{id:"America/Ensenada",title:"Ensenada",winIndex:11,link:325},{id:"America/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Jujuy",title:"Jujuy",winIndex:9,link:209},{id:"America/Knox_IN",title:"Knox IN",winIndex:13,link:261},{id:"America/Louisville",title:"Louisville",winIndex:14,link:272},{id:"America/Mendoza",title:"Mendoza",winIndex:9,link:211},{id:"America/Porto_Acre",title:"Porto Acre",winIndex:10,link:312},{id:"America/Shiprock",title:"Shiprock",winIndex:15,link:244},{id:"America/Virgin",title:"Virgin",winIndex:16,link:303},{id:"Antarctica/South_Pole",title:"South Pole",winIndex:8,link:511},{id:"Asia/Ashkhabad",title:"Ashkhabad",winIndex:17,link:346},{id:"Asia/Calcutta",title:"Calcutta",winIndex:18,link:373},{id:"Asia/Chongqing",title:"Chongqing",winIndex:19,link:395},{id:"Asia/Chungking",title:"Chungking",winIndex:19,link:395},{id:"Asia/Dacca",title:"Dacca",winIndex:20,link:357},{id:"Asia/Harbin",title:"Harbin",winIndex:19,link:395},{id:"Asia/Kashgar",title:"Kashgar",winIndex:21,link:405},{id:"Asia/Katmandu",title:"Katmandu",winIndex:22,link:371},{id:"Asia/Macao",title:"Macao",winIndex:19,link:377},{id:"Asia/Saigon",title:"Saigon",winIndex:6,link:361},{id:"Asia/Tel_Aviv",title:"Tel Aviv",winIndex:23,link:367},{id:"Asia/Thimbu",title:"Thimbu",winIndex:20,link:402},{id:"Asia/Ujung_Pandang",title:"Ujung Pandang",winIndex:24,link:379},{id:"Asia/Ulan_Bator",title:"Ulan Bator",winIndex:25,link:404},{id:"Atlantic/Faeroe",title:"Faeroe",winIndex:26,link:415},{id:"Atlantic/Jan_Mayen",title:"Jan Mayen",winIndex:27,link:483},{id:"Australia/ACT",title:"ACT",winIndex:28,link:429},{id:"Australia/Canberra",title:"Canberra",winIndex:28,link:429},{id:"Australia/NSW",title:"NSW",winIndex:28,link:429},{id:"Australia/North",title:"North",winIndex:29,link:424},{id:"Australia/Queensland",title:"Queensland",winIndex:30,link:421},{id:"Australia/South",title:"South",winIndex:31,link:420},{id:"Australia/Tasmania",title:"Tasmania",winIndex:32,link:425},{id:"Australia/Victoria",title:"Victoria",winIndex:28,link:427},{id:"Australia/West",title:"West",winIndex:33,link:428},{id:"Australia/Yancowinna",title:"Yancowinna",winIndex:31,link:422},{id:"Brazil/Acre",title:"Acre",winIndex:10,link:312},{id:"Brazil/DeNoronha",title:"DeNoronha",winIndex:34,link:294},{id:"Brazil/East",title:"East",winIndex:35,link:317},{id:"Brazil/West",title:"West",winIndex:16,link:279},{id:"Canada/Atlantic",title:"Atlantic",winIndex:36,link:257},{id:"Canada/Central",title:"Central",winIndex:13,link:329},{id:"Canada/East-Saskatchewan",title:"East-Saskatchewan",winIndex:37,link:310},{id:"Canada/Eastern",title:"Eastern",winIndex:14,link:326},{id:"Canada/Mountain",title:"Mountain",winIndex:15,link:246},{id:"Canada/Newfoundland",title:"Newfoundland",winIndex:38,link:320},{id:"Canada/Pacific",title:"Pacific",winIndex:11,link:327},{id:"Canada/Saskatchewan",title:"Saskatchewan",winIndex:37,link:310},{id:"Canada/Yukon",title:"Yukon",winIndex:11,link:328},{id:"Chile/Continental",title:"Continental",winIndex:39,link:315},{id:"Cuba",title:"Cuba",winIndex:14,link:258},{id:"Egypt",title:"Egypt",winIndex:40,link:189},{id:"Eire",title:"Eire",winIndex:26,link:469},{id:"Europe/Belfast",title:"Belfast",winIndex:26,link:476},{id:"Europe/Tiraspol",title:"Tiraspol",winIndex:4,link:467},{id:"GB",title:"GB",winIndex:26,link:476},{id:"GB-Eire",title:"GB-Eire",winIndex:26,link:476},{id:"GMT+0",title:"GMT+0",winIndex:41,link:150},{id:"GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"GMT0",title:"GMT0",winIndex:41,link:150},{id:"Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Hongkong",title:"Hongkong",winIndex:19,link:362},{id:"Iceland",title:"Iceland",winIndex:0,link:417},{id:"Iran",title:"Iran",winIndex:42,link:401},{id:"Israel",title:"Israel",winIndex:23,link:367},{id:"Jamaica",title:"Jamaica",winIndex:10,link:270},{id:"Japan",title:"Japan",winIndex:43,link:403},{id:"Kwajalein",title:"Kwajalein",winIndex:44,link:524},{id:"Libya",title:"Libya",winIndex:45,link:200},{id:"Mexico/BajaNorte",title:"BajaNorte",winIndex:11,link:325},{id:"Mexico/BajaSur",title:"BajaSur",winIndex:46,link:282},{id:"Mexico/General",title:"General",winIndex:47,link:285},{id:"NZ",title:"NZ",winIndex:8,link:511},{id:"Navajo",title:"Navajo",winIndex:15,link:244},{id:"PRC",title:"PRC",winIndex:19,link:395},{id:"Pacific/Ponape",title:"Ponape",winIndex:48,link:532},{id:"Pacific/Samoa",title:"Samoa",winIndex:49,link:530},{id:"Pacific/Truk",title:"Truk",winIndex:50,link:512},{id:"Poland",title:"Poland",winIndex:51,link:498},{id:"Portugal",title:"Portugal",winIndex:26,link:475},{id:"ROC",title:"ROC",winIndex:52,link:398},{id:"ROK",title:"ROK",winIndex:53,link:394},{id:"Singapore",title:"Singapore",winIndex:24,link:396},{id:"Turkey",title:"Turkey",winIndex:54,link:472},{id:"US/Alaska",title:"Alaska",winIndex:55,link:203},{id:"US/Arizona",title:"Arizona",winIndex:56,link:302},{id:"US/Central",title:"Central",winIndex:13,link:235},{id:"US/Eastern",title:"Eastern",winIndex:14,link:291},{id:"US/Hawaii",title:"Hawaii",winIndex:57,link:521},{id:"US/Indiana-Starke",title:"Indiana-Starke",winIndex:13,link:261},{id:"US/Michigan",title:"Michigan",winIndex:14,link:245},{id:"US/Mountain",title:"Mountain",winIndex:15,link:244},{id:"US/Pacific",title:"Pacific",winIndex:11,link:276},{id:"US/Samoa",title:"Samoa",winIndex:49,link:530},{id:"W-SU",title:"W-SU",winIndex:58,link:482},{id:"GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Etc/GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"Etc/GMT+0",title:"GMT+0",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT0",title:"GMT0",winIndex:41,link:150},{id:"Europe/Jersey",title:"Jersey",winIndex:26,link:476},{id:"Europe/Guernsey",title:"Guernsey",winIndex:26,link:476},{id:"Europe/Isle_of_Man",title:"Isle of Man",winIndex:26,link:476},{id:"Europe/Mariehamn",title:"Mariehamn",winIndex:59,link:471},{id:"Europe/Busingen",title:"Busingen",winIndex:27,link:500},{id:"Europe/Vatican",title:"Vatican",winIndex:27,link:487},{id:"Europe/San_Marino",title:"San Marino",winIndex:27,link:487},{id:"Europe/Vaduz",title:"Vaduz",winIndex:27,link:500},{id:"Arctic/Longyearbyen",title:"Longyearbyen",winIndex:27,link:483},{id:"Europe/Ljubljana",title:"Ljubljana",winIndex:60,link:462},{id:"Europe/Podgorica",title:"Podgorica",winIndex:60,link:462},{id:"Europe/Sarajevo",title:"Sarajevo",winIndex:60,link:462},{id:"Europe/Skopje",title:"Skopje",winIndex:60,link:462},{id:"Europe/Zagreb",title:"Zagreb",winIndex:60,link:462},{id:"Europe/Bratislava",title:"Bratislava",winIndex:60,link:485},{id:"Asia/Istanbul",title:"Istanbul",winIndex:54,link:472},{id:"Pacific/Johnston",title:"Johnston",winIndex:57,link:521},{id:"US/Pacific-New",title:"Pacific-New",winIndex:11,link:276},{id:"America/Aruba",title:"Aruba",winIndex:16,link:240},{id:"America/Lower_Princes",title:"Lower Princes",winIndex:16,link:240},{id:"America/Kralendijk",title:"Kralendijk",winIndex:16,link:240},{id:"America/Anguilla",title:"Anguilla",winIndex:16,link:303},{id:"America/Dominica",title:"Dominica",winIndex:16,link:303},{id:"America/Grenada",title:"Grenada",winIndex:16,link:303},{id:"America/Guadeloupe",title:"Guadeloupe",winIndex:16,link:303},{id:"America/Marigot",title:"Marigot",winIndex:16,link:303},{id:"America/Montserrat",title:"Montserrat",winIndex:16,
link:303},{id:"America/St_Barthelemy",title:"St Barthelemy",winIndex:16,link:303},{id:"America/St_Kitts",title:"St Kitts",winIndex:16,link:303},{id:"America/St_Lucia",title:"St Lucia",winIndex:16,link:303},{id:"America/St_Thomas",title:"St Thomas",winIndex:16,link:303},{id:"America/St_Vincent",title:"St Vincent",winIndex:16,link:303},{id:"America/Tortola",title:"Tortola",winIndex:16,link:303},{id:"Africa/Abidjan",title:"Abidjan",winIndex:0,offsets:[-.2688888888888889,0],offsetIndices:"01",untils:"-u9rgl4|Infinity"},{id:"Africa/Accra",title:"Accra",winIndex:0,offsets:[-.014444444444444446,0,.3333333333333333],offsetIndices:"012121212121212121212121212121212121212121212121",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity"},{id:"Africa/Algiers",title:"Algiers",winIndex:3,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121232321212122321212",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity"},{id:"Africa/Bissau",title:"Bissau",winIndex:0,offsets:[-1.038888888888889,-1,0],offsetIndices:"012",untils:"-u9reg4|wvoyk4|Infinity"},{id:"Africa/Cairo",title:"Cairo",winIndex:40,offsets:[2,3],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity"},{id:"Africa/Casablanca",title:"Casablanca",winIndex:61,offsets:[-.5055555555555555,0,1],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Ceuta",title:"Ceuta",winIndex:62,offsets:[0,1,2],offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qyiys0|7x3w0|2vt440|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|k69g40|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Africa/El_Aaiun",title:"El Aaiun",winIndex:61,offsets:[-.88,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Johannesburg",title:"Johannesburg",winIndex:2,offsets:[1.5,2,3],offsetIndices:"012121",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity"},{id:"Africa/Khartoum",title:"Khartoum",winIndex:1,offsets:[2.1688888888888886,2,3],offsetIndices:"01212121212121212121212121212121212",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity"},{id:"Africa/Lagos",title:"Lagos",winIndex:3,offsets:[.22666666666666666,1],offsetIndices:"01",untils:"-q9qbao|Infinity"},{id:"Africa/Maputo",title:"Maputo",winIndex:2,offsets:[2.1722222222222225,2],offsetIndices:"01",untils:"-yvtfd8|Infinity"},{id:"Africa/Monrovia",title:"Monrovia",winIndex:0,offsets:[-.7188888888888889,-.7416666666666667,0],offsetIndices:"012",untils:"-qj6zc4|rqyyqa|Infinity"},{id:"Africa/Nairobi",title:"Nairobi",winIndex:1,offsets:[2.454444444444445,3,2.5,2.75],offsetIndices:"01231",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity"},{id:"Africa/Ndjamena",title:"Ndjamena",winIndex:3,offsets:[1.0033333333333334,1,2],offsetIndices:"0121",untils:"-u9rk4c|zdk5cc|7iak0|Infinity"},{id:"Africa/Tripoli",title:"Tripoli",winIndex:45,offsets:[.8788888888888889,1,2],offsetIndices:"012121212121212121212121212122122",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity"},{id:"Africa/Tunis",title:"Tunis",winIndex:3,offsets:[.15583333333333332,1,2],offsetIndices:"0121212121212121212121212121212121",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity"},{id:"Africa/Windhoek",title:"Windhoek",winIndex:63,offsets:[1.5,2,3,1],offsetIndices:"012113131313131313131313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|23tmo0|7xf00|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|Infinity"},{id:"America/Anchorage",title:"Anchorage",winIndex:55,offsets:[-10,-9,-8],offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Antigua",title:"Antigua",winIndex:16,link:303},{id:"America/Araguaina",title:"Araguaina",winIndex:64,offsets:[-3.2133333333333334,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity"},{id:"America/Argentina/Buenos_Aires",title:"Buenos Aires",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Catamarca",title:"Catamarca",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Cordoba",title:"Cordoba",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Jujuy",title:"Jujuy",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/La_Rioja",title:"La Rioja",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Mendoza",title:"Mendoza",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323231212132221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|3fidg0|7thc0|27bk00|6hes0|1p7mk0|3yik0|Infinity"},{id:"America/Argentina/Rio_Gallegos",title:"Rio Gallegos",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Salta",title:"Salta",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/San_Juan",title:"San Juan",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27qdc0|2txg0|1sgak0|3yik0|Infinity"},{id:"America/Argentina/San_Luis",title:"San Luis",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312122212321212",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|4conw0|7thc0|27qdc0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity"},{id:"America/Argentina/Tucuman",title:"Tucuman",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"012121212121212121212121212121212121212121232323231323222123232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Ushuaia",title:"Ushuaia",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27oio0|12ys0|1u93w0|3yik0|Infinity"},{id:"America/Asuncion",title:"Asuncion",winIndex:65,offsets:[-3.844444444444444,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity"},{id:"America/Atikokan",title:"Atikokan",winIndex:10,offsets:[-6,-5],offsetIndices:"0101111",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity"},{id:"America/Bahia",title:"Bahia",winIndex:66,offsets:[-2.5677777777777777,-3,-2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity"},{id:"America/Bahia_Banderas",title:"Bahia Banderas",winIndex:47,offsets:[-7.016666666666667,-7,-6,-8,-5],offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Barbados",title:"Barbados",winIndex:16,offsets:[-3.974722222222222,-4,-3],offsetIndices:"00121212121",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity"},{id:"America/Belem",title:"Belem",winIndex:64,offsets:[-3.232222222222222,-3,-2],offsetIndices:"012121212121212121212121212121",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Belize",title:"Belize",winIndex:67,offsets:[-5.88,-6,-5.5,-5],offsetIndices:"01212121212121212121212121212121212121212121212121213131",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity"},{id:"America/Blanc-Sablon",title:"Blanc-Sablon",winIndex:16,offsets:[-4,-3],offsetIndices:"010110",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity"},{id:"America/Boa_Vista",title:"Boa Vista",winIndex:16,offsets:[-4.044444444444444,-4,-3],offsetIndices:"0121212121212121212121212121212121",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity"},{id:"America/Bogota",title:"Bogota",winIndex:10,offsets:[-4.937777777777778,-5,-4],offsetIndices:"0121",untils:"-srdoy8|14f1hi8|ha580|Infinity"},{id:"America/Boise",title:"Boise",winIndex:15,offsets:[-8,-7,-6],offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Cambridge_Bay",title:"Cambridge Bay",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Campo_Grande",title:"Campo Grande",winIndex:68,offsets:[-3.641111111111111,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Cancun",title:"Cancun",winIndex:47,offsets:[-5.7844444444444445,-6,-5,-4],offsetIndices:"0123232321212121212121212121212121212121212",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity"},{id:"America/Caracas",title:"Caracas",winIndex:69,offsets:[-4.461111111111111,-4.5,-4],offsetIndices:"01212",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity"},{id:"America/Cayenne",title:"Cayenne",winIndex:64,offsets:[-3.488888888888889,-4,-3],offsetIndices:"012",untils:"-uj7yb4|tcw6r4|Infinity"},{id:"America/Cayman",title:"Cayman",winIndex:10,link:299},{id:"America/Chicago",title:"Chicago",winIndex:13,offsets:[-6,-5],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Chihuahua",title:"Chihuahua",winIndex:46,offsets:[-7.072222222222222,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Costa_Rica",title:"Costa Rica",winIndex:67,offsets:[-5.60361111111111,-6,-5],offsetIndices:"0121212121",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity"},{id:"America/Creston",title:"Creston",winIndex:56,offsets:[-7,-8],offsetIndices:"010",untils:"-rshz80|vbus0|Infinity"},{id:"America/Cuiaba",title:"Cuiaba",winIndex:68,offsets:[-3.738888888888889,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Curacao",title:"Curacao",winIndex:16,offsets:[-4.59638888888889,-4.5,-4],offsetIndices:"012",untils:"-u7lckd|rlo7qd|Infinity"},{id:"America/Danmarkshavn",title:"Danmarkshavn",winIndex:41,offsets:[-1.2444444444444445,-3,-2,0],offsetIndices:"01212121212121212121212121212121213",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity"},{id:"America/Dawson",title:"Dawson",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Dawson_Creek",title:"Dawson Creek",winIndex:56,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101011",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity"},{id:"America/Denver",title:"Denver",winIndex:15,offsets:[-7,-6],offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Detroit",title:"Detroit",winIndex:14,offsets:[-5.536388888888889,-6,-5,-4],offsetIndices:"01233232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlhg0|71mk0|2vcg40|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"
},{id:"America/Edmonton",title:"Edmonton",winIndex:15,offsets:[-7.564444444444445,-7,-6],offsetIndices:"01212121212121221212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|a80840|9cyk0|s36s0|9cyk0|1b6840|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Eirunepe",title:"Eirunepe",winIndex:10,offsets:[-4.657777777777778,-5,-4],offsetIndices:"0121212121212121212121212121212121",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity"},{id:"America/El_Salvador",title:"El Salvador",winIndex:67,offsets:[-5.946666666666667,-6,-5],offsetIndices:"012121",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity"},{id:"America/Fortaleza",title:"Fortaleza",winIndex:64,offsets:[-2.566666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Glace_Bay",title:"Glace Bay",winIndex:36,offsets:[-3.996666666666667,-4,-3],offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Godthab",title:"Godthab",winIndex:70,offsets:[-3.448888888888889,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Goose_Bay",title:"Goose Bay",winIndex:36,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-4,-3,-2],offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Grand_Turk",title:"Grand Turk",winIndex:16,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212122",untils:"-u85og1|z3brw1|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Guatemala",title:"Guatemala",winIndex:67,offsets:[-6.0344444444444445,-6,-5],offsetIndices:"0121212121",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity"},{id:"America/Guayaquil",title:"Guayaquil",winIndex:10,offsets:[-5.233333333333333,-5],offsetIndices:"01",untils:"-kcr84o|Infinity"},{id:"America/Guyana",title:"Guyana",winIndex:16,offsets:[-3.8777777777777778,-3.75,-3,-4],offsetIndices:"01123",untils:"-smcak8|qqnjn8|4sh9c0|81rf90|Infinity"},{id:"America/Halifax",title:"Halifax",winIndex:36,offsets:[-4.24,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Havana",title:"Havana",winIndex:14,offsets:[-5.493333333333334,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity"},{id:"America/Hermosillo",title:"Hermosillo",winIndex:56,offsets:[-7.397777777777778,-7,-6,-8],offsetIndices:"0121212131212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Indiana/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Indiana/Knox",title:"Knox",winIndex:13,offsets:[-6,-5],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Marengo",title:"Marengo",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Petersburg",title:"Petersburg",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Tell_City",title:"Tell City",winIndex:13,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vevay",title:"Vevay",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vincennes",title:"Vincennes",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Winamac",title:"Winamac",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Inuvik",title:"Inuvik",winIndex:15,offsets:[0,-8,-6,-7],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Iqaluit",title:"Iqaluit",winIndex:14,offsets:[0,-4,-5,-3,-6],offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Jamaica",title:"Jamaica",winIndex:10,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121",untils:"-u85og1|wbl181|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity"},{id:"America/Juneau",title:"Juneau",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Louisville",title:"Louisville",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|4s580|7tk40|gxc40|1s3bw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Monticello",title:"Monticello",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/La_Paz",title:"La Paz",winIndex:16,offsets:[-4.543333333333334,-3.5433333333333334,-4],offsetIndices:"012",untils:"-jxzspo|84ik0|Infinity"},{id:"America/Lima",title:"Lima",winIndex:10,offsets:[-5.1433333333333335,-5,-4],offsetIndices:"0121212121212121",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity"},{id:"America/Los_Angeles",title:"Los Angeles",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c40|f2ik0|owdg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Maceio",title:"Maceio",winIndex:64,offsets:[-2.381111111111111,-3,-2],offsetIndices:"012121212121212121212121212121212121212121",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Managua",title:"Managua",winIndex:67,offsets:[-5.753333333333333,-6,-5],offsetIndices:"0121212121212121",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity"},{id:"America/Manaus",title:"Manaus",winIndex:16,offsets:[-4.001111111111111,-4,-3],offsetIndices:"01212121212121212121212121212121",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity"},{id:"America/Martinique",title:"Martinique",winIndex:16,offsets:[-4.072222222222222,-4,-3],offsetIndices:"0121",untils:"-umcvcs|zz5x4s|8zzw0|Infinity"},{id:"America/Matamoros",title:"Matamoros",winIndex:13,offsets:[-6.666666666666667,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Mazatlan",title:"Mazatlan",winIndex:46,offsets:[-7.094444444444445,-7,-6,-8],offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Menominee",title:"Menominee",winIndex:13,offsets:[-6,-5],offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Merida",title:"Merida",winIndex:47,offsets:[-5.974444444444444,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Mexico_City",title:"Mexico City",winIndex:47,offsets:[-6.61,-7,-6,-5],offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Moncton",title:"Moncton",winIndex:36,offsets:[-5,-4,-3],offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Monterrey",title:"Monterrey",winIndex:47,offsets:[-6.687777777777778,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Montevideo",title:"Montevideo",winIndex:71,offsets:[-3.7455555555555553,-3.5,-3,-2,-2.5],offsetIndices:"012121212121212121212121213232323232324242423243232323232323232323232323232323232323232",untils:"-px809g|1s8xzg|9czy0|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7x5a0|6do20|7vam0|humq0|4mju0|8g9s40|8zzw0|38qs0|2inw0|2nf9g0|8zzw0|9q2s0|aunw0|7ves0|awik0|ar440|9pym0|91yq0|9pym0|91yq0|9pym0|q6mq0|5t6k0|tfc40|erfy0|xdta0|m2is0|62fw0|s6w40|ayd80|3z5s40|4ofw0|dzs40|4ofw0|bvus0|6h980|bvus0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"
},{id:"America/Montreal",title:"Montreal",winIndex:14,link:326},{id:"America/Nassau",title:"Nassau",winIndex:14,offsets:[-5.158333333333333,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/New_York",title:"New York",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nipigon",title:"Nipigon",winIndex:14,offsets:[-5,-4],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nome",title:"Nome",winIndex:55,offsets:[-11,-10,-9,-8],offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Noronha",title:"Noronha",winIndex:34,offsets:[-2.161111111111111,-2,-1],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/North_Dakota/Beulah",title:"Beulah",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/Center",title:"Center",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/New_Salem",title:"New Salem",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Ojinaga",title:"Ojinaga",winIndex:15,offsets:[-6.961111111111111,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Panama",title:"Panama",winIndex:10,offsets:[-5.326666666666667,-5],offsetIndices:"01",untils:"-w757vc|Infinity"},{id:"America/Pangnirtung",title:"Pangnirtung",winIndex:14,offsets:[0,-4,-3,-2,-5,-6],offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Paramaribo",title:"Paramaribo",winIndex:64,offsets:[-3.6777777777777776,-3.6811111111111114,-3.6766666666666667,-3.5,-3],offsetIndices:"012334",untils:"-usj4g8|cixc0c|5lydbk|fq7bic|4mkao0|Infinity"},{id:"America/Phoenix",title:"Phoenix",winIndex:56,offsets:[-7,-6],offsetIndices:"01010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity"},{id:"America/Port_of_Spain",title:"Port of Spain",winIndex:16,offsets:[-4.101111111111111,-4],offsetIndices:"01",untils:"-u6m79w|Infinity"},{id:"America/Port-au-Prince",title:"Port-au-Prince",winIndex:14,offsets:[-4.816666666666666,-5,-4],offsetIndices:"01212121212121212121212121212121212121212121",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Porto_Velho",title:"Porto Velho",winIndex:16,offsets:[-4.26,-4,-3],offsetIndices:"012121212121212121212121212121",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Puerto_Rico",title:"Puerto Rico",winIndex:16,offsets:[-4,-3],offsetIndices:"0110",untils:"-efsnk0|1ppu40|2dnc0|Infinity"},{id:"America/Rainy_River",title:"Rainy River",winIndex:13,offsets:[-6,-5],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rankin_Inlet",title:"Rankin Inlet",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Recife",title:"Recife",winIndex:64,offsets:[-2.3266666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/Regina",title:"Regina",winIndex:37,offsets:[-6.9766666666666675,-7,-6],offsetIndices:"012121212121212121212121221212121212121212121212121212",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity"},{id:"America/Resolute",title:"Resolute",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rio_Branco",title:"Rio Branco",winIndex:10,offsets:[-4.52,-5,-4],offsetIndices:"01212121212121212121212121212121",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity"},{id:"America/Santa_Isabel",title:"Santa Isabel",winIndex:72,link:325},{id:"America/Santarem",title:"Santarem",winIndex:64,offsets:[-3.646666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity"},{id:"America/Santiago",title:"Santiago",winIndex:39,offsets:[-4.712777777777777,-5,-4,-3],offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"America/Santo_Domingo",title:"Santo Domingo",winIndex:16,offsets:[-4.666666666666667,-5,-4,-4.5],offsetIndices:"01213131313131212",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity"},{id:"America/Sao_Paulo",title:"Sao Paulo",winIndex:35,offsets:[-3.1077777777777778,-3,-2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Scoresbysund",title:"Scoresbysund",winIndex:73,offsets:[-1.4644444444444444,-2,-1,0],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Sitka",title:"Sitka",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/St_Johns",title:"St Johns",winIndex:38,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-1.5],offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Swift_Current",title:"Swift Current",winIndex:37,offsets:[-7.188888888888888,-7,-6],offsetIndices:"012122121212121212121212",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity"},{id:"America/Tegucigalpa",title:"Tegucigalpa",winIndex:67,offsets:[-5.814444444444445,-6,-5],offsetIndices:"01212121",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity"},{id:"America/Thule",title:"Thule",winIndex:36,offsets:[-4.585555555555556,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Thunder_Bay",title:"Thunder Bay",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Tijuana",title:"Tijuana",winIndex:11,offsets:[-7.801111111111111,-7,-8],offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4r00|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Toronto",title:"Toronto",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Vancouver",title:"Vancouver",winIndex:11,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Whitehorse",title:"Whitehorse",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Winnipeg",title:"Winnipeg",winIndex:13,offsets:[-6,-5],offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"
},{id:"America/Yakutat",title:"Yakutat",winIndex:55,offsets:[-9,-8],offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yellowknife",title:"Yellowknife",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Antarctica/Casey",title:"Casey",winIndex:33,offsets:[0,8,11],offsetIndices:"012121",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|Infinity"},{id:"Antarctica/Davis",title:"Davis",winIndex:6,offsets:[0,7,5],offsetIndices:"01012121",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity"},{id:"Antarctica/DumontDUrville",title:"DumontDUrville",winIndex:50,offsets:[0,10],offsetIndices:"0101",untils:"-c05eo0|2mks80|2i72g0|Infinity"},{id:"Antarctica/Macquarie",title:"Macquarie",winIndex:48,offsets:[10,11,0],offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Antarctica/Mawson",title:"Mawson",winIndex:17,offsets:[0,6,5],offsetIndices:"012",untils:"-8aelc0|t22y80|Infinity"},{id:"Antarctica/Palmer",title:"Palmer",winIndex:39,offsets:[0,-3,-4,-2],offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"Antarctica/Rothera",title:"Rothera",winIndex:64,offsets:[0,-3],offsetIndices:"01",untils:"3lxs00|Infinity"},{id:"Antarctica/Syowa",title:"Syowa",winIndex:1,offsets:[0,3],offsetIndices:"01",untils:"-6qsqo0|Infinity"},{id:"Antarctica/Vostok",title:"Vostok",winIndex:21,offsets:[0,6],offsetIndices:"01",untils:"-6aaao0|Infinity"},{id:"Asia/Almaty",title:"Almaty",winIndex:21,offsets:[5.13,5,6,7],offsetIndices:"012323232323232323232321232323232323232323232323232",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Amman",title:"Amman",winIndex:74,offsets:[2.395555555555555,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Asia/Anadyr",title:"Anadyr",winIndex:75,offsets:[11.83222222222222,12,13,14,11],offsetIndices:"01232212121212121212121141212121212121212121212121212121212121141",untils:"-nu1sv8|379zj8|qi27w0|9et80|9d440|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Aqtau",title:"Aqtau",winIndex:17,offsets:[3.351111111111111,4,5,6],offsetIndices:"012323232323232323232123232312121212121212121212",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Aqtobe",title:"Aqtobe",winIndex:17,offsets:[3.811111111111111,4,5,6],offsetIndices:"0123232323232323232321232323232323232323232323232",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Ashgabat",title:"Ashgabat",winIndex:17,offsets:[3.8922222222222222,4,5,6],offsetIndices:"012323232323232323232322112",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|1fp40|4bpk0|Infinity"},{id:"Asia/Baghdad",title:"Baghdad",winIndex:76,offsets:[2.96,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity"},{id:"Asia/Baku",title:"Baku",winIndex:77,offsets:[3.3233333333333333,3,4,5],offsetIndices:"01232323232323232323232221223232323232323232323232323232323232323232",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7tbs0|1jsc0|9d1c0|9cq80|1twoo0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Bangkok",title:"Bangkok",winIndex:6,offsets:[6.7011111111111115,7],offsetIndices:"01",untils:"-pysda4|Infinity"},{id:"Asia/Beirut",title:"Beirut",winIndex:78,offsets:[2,3],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity"},{id:"Asia/Bishkek",title:"Bishkek",winIndex:21,offsets:[4.973333333333333,5,6,7],offsetIndices:"01232323232323232323232212121212121212121212121212122",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7vc00|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|73aa0|Infinity"},{id:"Asia/Brunei",title:"Brunei",winIndex:24,offsets:[7.661111111111111,7.5,8],offsetIndices:"012",untils:"-mvofy4|3khxs4|Infinity"},{id:"Asia/Chita",title:"Chita",winIndex:79,offsets:[7.564444444444445,8,9,10],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity"},{id:"Asia/Choibalsan",title:"Choibalsan",winIndex:25,offsets:[7.633333333333334,7,8,10,9],offsetIndices:"0123434343434343434343434343434343434343434343424242424242424242424242424242424242424242424242",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Colombo",title:"Colombo",winIndex:80,offsets:[5.325555555555556,5.5,6,6.5],offsetIndices:"01231321",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity"},{id:"Asia/Damascus",title:"Damascus",winIndex:81,offsets:[2.42,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity"},{id:"Asia/Dhaka",title:"Dhaka",winIndex:20,offsets:[5.888888888888888,6.5,5.5,6,7],offsetIndices:"01213343",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|a63o20|jyevw0|a1400|Infinity"},{id:"Asia/Dili",title:"Dili",winIndex:43,offsets:[8.372222222222222,8,9],offsetIndices:"012212",untils:"-u9s4l8|fqcu98|1vc2o0|fz3pc0|cpz440|Infinity"},{id:"Asia/Dubai",title:"Dubai",winIndex:7,offsets:[3.6866666666666665,4],offsetIndices:"01",untils:"-q3gnko|Infinity"},{id:"Asia/Dushanbe",title:"Dushanbe",winIndex:17,offsets:[4.586666666666667,5,6,7],offsetIndices:"0123232323232323232323221",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|8c2s0|Infinity"},{id:"Asia/Ho_Chi_Minh",title:"Ho Chi Minh",winIndex:6,offsets:[7.111111111111112,7.108333333333333,7,8,9],offsetIndices:"0123423232",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity"},{id:"Asia/Hong_Kong",title:"Hong Kong",winIndex:19,offsets:[7.611666666666666,8,9],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y0i2h6|j09kn6|9cyk0|4f2e0|1xyfw0|b6760|bkl80|6udg0|df980|6dpg0|9cyk0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|adzw0|8c2s0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity"},{id:"Asia/Hovd",title:"Hovd",winIndex:6,offsets:[6.11,6,7,8],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Irkutsk",title:"Irkutsk",winIndex:82,offsets:[6.951388888888888,7,8,9],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Jakarta",title:"Jakarta",winIndex:6,offsets:[7.12,7.333333333333333,7.5,9,8,7],offsetIndices:"01232425",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity"},{id:"Asia/Jayapura",title:"Jayapura",winIndex:43,offsets:[9.379999999999999,9,9.5],offsetIndices:"0121",untils:"-jebm20|66bqe0|a37vy0|Infinity"},{id:"Asia/Jerusalem",title:"Jerusalem",winIndex:23,offsets:[2.344444444444444,2,3,4],offsetIndices:"01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|50rhg0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity"},{id:"Asia/Kabul",title:"Kabul",winIndex:83,offsets:[4,4.5],offsetIndices:"01",untils:"-d1pkg0|Infinity"},{id:"Asia/Kamchatka",title:"Kamchatka",winIndex:75,offsets:[10.576666666666666,11,12,13],offsetIndices:"01232323232323232323232212323232323232323232323232323232323232212",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Karachi",title:"Karachi",winIndex:84,offsets:[4.47,5.5,6.5,5,6],offsetIndices:"012133434343",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity"},{id:"Asia/Kathmandu",title:"Kathmandu",winIndex:22,offsets:[5.687777777777778,5.5,5.75],offsetIndices:"012",untils:"-q3gt4s|yg2lus|Infinity"},{id:"Asia/Khandyga",title:"Khandyga",winIndex:79,offsets:[9.036944444444446,8,9,10,11],offsetIndices:"01232323232323232323232212323232323232323232323232343434343434343432",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Kolkata",title:"Kolkata",winIndex:18,offsets:[5.888888888888888,6.5,5.5],offsetIndices:"01212",untils:"-eqtpow|bmgyw|5lxg0|1mn180|Infinity"},{id:"Asia/Krasnoyarsk",title:"Krasnoyarsk",winIndex:85,offsets:[6.190555555555556,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Kuala_Lumpur",title:"Kuala Lumpur",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"01223435",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|iy3o60|Infinity"},{id:"Asia/Kuching",title:"Kuching",winIndex:24,offsets:[7.355555555555555,7.5,8,8.333333333333334,9],offsetIndices:"01232323232323232422",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|iy3ms0|Infinity"},{id:"Asia/Macau",title:"Macau",winIndex:19,offsets:[7.572222222222222,8,9],offsetIndices:"0121212121212121212121212121212121212121211",untils:"-u9s2d8|pon9v8|bvp80|6udg0|bvp80|6u3q0|bvyy0|77c40|biqk0|772e0|biqk0|8ngi0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9d8a0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9cyk0|a04w40|Infinity"},{id:"Asia/Magadan",title:"Magadan",winIndex:75,offsets:[10.053333333333335,10,11,12],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity"},{id:"Asia/Makassar",title:"Makassar",winIndex:24,offsets:[7.96,8,9],offsetIndices:"00121",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity"},{id:"Asia/Manila",title:"Manila",winIndex:24,offsets:[8,9],offsetIndices:"010101010",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity"},{id:"Asia/Nicosia",title:"Nicosia",winIndex:4,offsets:[2.2244444444444444,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Novokuznetsk",title:"Novokuznetsk",winIndex:86,offsets:[5.8133333333333335,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232322122",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|1vbzw0|Infinity"},{id:"Asia/Novosibirsk",title:"Novosibirsk",winIndex:86,offsets:[5.527777777777778,6,7,8],offsetIndices:"0123232323232323232323221232321212121212121212121212121212121212121",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Omsk",title:"Omsk",winIndex:86,offsets:[4.891666666666667,5,6,7],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Oral",title:"Oral",winIndex:17,offsets:[3.4233333333333333,4,5,6],offsetIndices:"01232323232323232121212121212121212121212121212",untils:"-nu15ic|379yec|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Pontianak",title:"Pontianak",winIndex:6,offsets:[7.288888888888889,7.5,9,8,7],offsetIndices:"001213134",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity"},{id:"Asia/Pyongyang",title:"Pyongyang",winIndex:53,offsets:[8.383333333333333,8.5,9],offsetIndices:"012221",untils:"-w895yc|1yh10c|dfsmm0|44cqo0|10ipmo0|Infinity"},{id:"Asia/Qatar",title:"Qatar",winIndex:5,offsets:[3.4355555555555553,4,3],offsetIndices:"012",untils:"-q3gmvk|rctnrk|Infinity"},{id:"Asia/Qyzylorda",title:"Qyzylorda",winIndex:21,offsets:[4.364444444444445,4,5,6],offsetIndices:"0123232323232323232323232323232323232323232323",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Rangoon",title:"Rangoon",winIndex:87,offsets:[6.411111111111111,6.5,9],offsetIndices:"0121",untils:"-q3gv54|bnjp34|1kh520|Infinity"},{id:"Asia/Riyadh",title:"Riyadh",winIndex:5,offsets:[3.1144444444444446,3],offsetIndices:"01",untils:"-bwgbbg|Infinity"},{id:"Asia/Sakhalin",title:"Sakhalin",winIndex:88,offsets:[9.513333333333332,9,11,12,10],offsetIndices:"01123232323232323232323224232323232322424242424242424242424242424242",untils:"-xl87rc|gr8pfc|44elc0|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asys0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity"},{id:"Asia/Samarkand",title:"Samarkand",winIndex:17,offsets:[4.464722222222222,4,5,6],offsetIndices:"01233323232323232323232332",untils:"-nu18eh|37a1ah|qi27w0|9et80|9d1c0|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7wyc0|1g300|Infinity"},{id:"Asia/Seoul",title:"Seoul",winIndex:53,offsets:[8.464444444444444,8.5,9,9.5,10],offsetIndices:"01222131313131313124242",untils:"-w8966g|1yh18g|dfsmm0|454io0|4gadc0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Shanghai",title:"Shanghai",winIndex:19,offsets:[8,9],offsetIndices:"01010101010101010",untils:"-ffs0w0|66580|8jhg0|a8fw0|n9rc40|6u7w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"Asia/Singapore",title:"Singapore",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"012234335",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|ae0xi0|8k2qo0|Infinity"},{id:"Asia/Srednekolymsk",title:"Srednekolymsk",winIndex:75,offsets:[10.247777777777777,10,11,12],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Taipei",title:"Taipei",winIndex:52,offsets:[8,9],offsetIndices:"01010101010101010101010101010101010101010",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity"},{id:"Asia/Tashkent",title:"Tashkent",winIndex:17,offsets:[4.619722222222222,5,6,7],offsetIndices:"01232323232323232323232221",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7x140|1g300|Infinity"},{id:"Asia/Tbilisi",title:"Tbilisi",winIndex:89,offsets:[2.986388888888889,3,4,5],offsetIndices:"0123232323232323232323222121212232323232323232323212",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|gig0|8wlo0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d1c0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity"},{id:"Asia/Tehran",title:"Tehran",winIndex:42,offsets:[3.428888888888889,3.5,4,5,4.5],offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity"},{id:"Asia/Thimphu",title:"Thimphu",winIndex:20,offsets:[5.9766666666666675,5.5,6],offsetIndices:"012",untils:"-bojclo|kxymno|Infinity"},{id:"Asia/Tokyo",title:"Tokyo",winIndex:43,offsets:[9,10],offsetIndices:"0010101010",untils:"-gtzic0|5ivew0|6sd80|ahus0|887w0|cao40|6fek0|cao40|6fek0|Infinity"},{id:"Asia/Ulaanbaatar",title:"Ulaanbaatar",winIndex:25,offsets:[7.125555555555556,7,8,9],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Urumqi",title:"Urumqi",winIndex:21,offsets:[5.838888888888889,6],offsetIndices:"01",untils:"-lx5pjw|Infinity"},{id:"Asia/Ust-Nera",title:"Ust-Nera",winIndex:88,offsets:[9.548333333333334,8,9,12,11,10],offsetIndices:"0123434343434343434343445434343434343434343434343434343434343434345",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"
},{id:"Asia/Vladivostok",title:"Vladivostok",winIndex:88,offsets:[8.791944444444445,9,10,11],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yakutsk",title:"Yakutsk",winIndex:79,offsets:[8.649444444444445,8,9,10],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yekaterinburg",title:"Yekaterinburg",winIndex:90,offsets:[4.0425,3.751388888888889,4,5,6],offsetIndices:"0123434343434343434343433234343434343434343434343434343434343434343",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yerevan",title:"Yerevan",winIndex:91,offsets:[2.966666666666667,3,4,5],offsetIndices:"0123232323232323232323222121212122323232323232323232323232323232",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|91rs0|bcc0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sfzw0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Atlantic/Azores",title:"Azores",winIndex:73,offsets:[-1.9088888888888889,-2,-1,0],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9rc14|2bug54|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Bermuda",title:"Bermuda",winIndex:36,offsets:[-4.321666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Atlantic/Canary",title:"Canary",winIndex:26,offsets:[-1.0266666666666666,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Cape_Verde",title:"Cape Verde",winIndex:92,offsets:[-1.5677777777777777,-2,-1],offsetIndices:"01212",untils:"-wvoub8|im43v8|1mn180|fpqwc0|Infinity"},{id:"Atlantic/Faroe",title:"Faroe",winIndex:26,offsets:[-.45111111111111113,0,1],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Madeira",title:"Madeira",winIndex:26,offsets:[-1.1266666666666665,-1,0,1],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9re7c|2bufjc|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Reykjavik",title:"Reykjavik",winIndex:0,offsets:[-1.4666666666666666,-1,0],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity"},{id:"Atlantic/South_Georgia",title:"South Georgia",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Atlantic/Stanley",title:"Stanley",winIndex:64,offsets:[-3.856666666666667,-4,-3,-2],offsetIndices:"0121212121212123232212121212121212121212121212121212121212121212121212",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|77c40|b5uo0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity"},{id:"Australia/Adelaide",title:"Adelaide",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Brisbane",title:"Brisbane",winIndex:30,offsets:[10,11],offsetIndices:"01010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity"},{id:"Australia/Broken_Hill",title:"Broken Hill",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Currie",title:"Currie",winIndex:32,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Darwin",title:"Darwin",winIndex:29,offsets:[9.5,10.5],offsetIndices:"010101010",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity"},{id:"Australia/Hobart",title:"Hobart",winIndex:32,offsets:[10,11],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Lindeman",title:"Lindeman",winIndex:30,offsets:[10,11],offsetIndices:"010101010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity"},{id:"Australia/Melbourne",title:"Melbourne",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Perth",title:"Perth",winIndex:33,offsets:[8,9],offsetIndices:"0101010101010101010",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Sydney",title:"Sydney",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"CST6CDT",title:"CST6CDT",winIndex:13,offsets:[-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"EST5EDT",title:"EST5EDT",winIndex:14,offsets:[-5,-4],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Etc/GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/GMT+1",title:"GMT+1",winIndex:92,offsets:[-1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+10",title:"GMT+10",winIndex:57,offsets:[-10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+11",title:"GMT+11",winIndex:49,offsets:[-11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+12",title:"GMT+12",winIndex:93,offsets:[-12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+2",title:"GMT+2",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+3",title:"GMT+3",winIndex:64,offsets:[-3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+4",title:"GMT+4",winIndex:16,offsets:[-4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+5",title:"GMT+5",winIndex:10,offsets:[-5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+6",title:"GMT+6",winIndex:67,offsets:[-6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+7",title:"GMT+7",winIndex:56,offsets:[-7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-1",title:"GMT-1",winIndex:3,offsets:[1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-10",title:"GMT-10",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-11",title:"GMT-11",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-12",title:"GMT-12",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-13",title:"GMT-13",winIndex:94,offsets:[13],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-14",title:"GMT-14",winIndex:95,offsets:[14],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-2",title:"GMT-2",winIndex:2,offsets:[2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-3",title:"GMT-3",winIndex:1,offsets:[3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-4",title:"GMT-4",winIndex:7,offsets:[4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-5",title:"GMT-5",winIndex:17,offsets:[5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-6",title:"GMT-6",winIndex:21,offsets:[6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-7",title:"GMT-7",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-8",title:"GMT-8",winIndex:24,offsets:[8],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-9",title:"GMT-9",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UCT",title:"UCT",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UTC",title:"UTC",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Europe/Amsterdam",title:"Amsterdam",winIndex:27,offsets:[.3255555555555556,1.3255555555555556,1.3333333333333333,.3333333333333333,2,1],offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Andorra",title:"Andorra",winIndex:27,offsets:[0,1,2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Athens",title:"Athens",winIndex:4,offsets:[1.581111111111111,2,3,1],offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Belgrade",title:"Belgrade",winIndex:60,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Berlin",title:"Berlin",winIndex:27,offsets:[1,2,3],offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Brussels",title:"Brussels",winIndex:62,offsets:[0,1,2],offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Bucharest",title:"Bucharest",winIndex:4,offsets:[1.74,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Budapest",title:"Budapest",winIndex:60,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Chisinau",title:"Chisinau",winIndex:4,offsets:[1.9166666666666667,1.74,2,3,1,4],offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"
},{id:"Europe/Copenhagen",title:"Copenhagen",winIndex:62,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Dublin",title:"Dublin",winIndex:26,offsets:[-.42250000000000004,.5775,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8580|8a840|bvp80|8n6s0|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Gibraltar",title:"Gibraltar",winIndex:27,offsets:[0,1,2],offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Helsinki",title:"Helsinki",winIndex:59,offsets:[1.6636111111111112,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Istanbul",title:"Istanbul",winIndex:54,offsets:[1.948888888888889,2,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121232323232322121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p25g0|4zjw0|2xms0|f4d80|9vms0|b07w0|19f9g0|9px80|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a8lg0|8ufw0|a31g0|8ovw0|5mbes0|4dbw0|u3es0|75bw0|2wxus0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|c8w80|7x9g0|7k800|b6080|7jww0|ast80|b9ms0|7tek0|7x9g0|a2vw0|8n6s0|a2vw0|iruk0|8yj40|9rjk0|8lkg0|a4i80|8lkg0|a4i80|f2o40|38l80|t4840|8a5c0|9f4c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Kaliningrad",title:"Kaliningrad",winIndex:96,offsets:[1,2,3,4],offsetIndices:"0101010101010121232323232323232322121212121212121212121212121212121212121212121",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|4od40|62fw0|9kd80|351g0|ie8nw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Kiev",title:"Kiev",winIndex:59,offsets:[2.0344444444444445,2,3,1,4],offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Lisbon",title:"Lisbon",winIndex:26,offsets:[-.6125,0,1,2],offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u9rfmr|2bue6r|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/London",title:"London",winIndex:26,offsets:[0,1,2],offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Luxembourg",title:"Luxembourg",winIndex:27,offsets:[.41000000000000003,1,2,0],offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Madrid",title:"Madrid",winIndex:62,offsets:[0,1,2],offsetIndices:"01010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rhcqs0|7x6o0|9tpc0|8y800|9b6o0|9gqo0|2d2yo0|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|3zb9c0|6uao0|8so00|9xeo0|a2yo0|902o0|8a5c0|13yt80|69xc0|bq800|8oyo0|a1400|95mo0|9kg00|8n6s0|a2vw0|8oyo0|1ck5c0|7tk40|ct07w0|905g0|a2vw0|8n6s0|8zzw0|9d440|9px80|905g0|9rrw0|9b9g0|9d6w0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Malta",title:"Malta",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|9d1c0|9d1c0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|9b9g0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Minsk",title:"Minsk",winIndex:96,offsets:[1.8333333333333333,2,3,1,4],offsetIndices:"012131312424242424242424242212121212121212121212121212121212121212122",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9cvs0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbx40|Infinity"},{id:"Europe/Monaco",title:"Monaco",winIndex:27,offsets:[.15583333333333332,0,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Moscow",title:"Moscow",winIndex:58,offsets:[2.504722222222222,2.5219444444444443,3.5219444444444443,4.521944444444444,4,3,5,2],offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jpk0|2d2k7|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Oslo",title:"Oslo",winIndex:27,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Paris",title:"Paris",winIndex:62,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Prague",title:"Prague",winIndex:60,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|8l9c0|afxc0|bitc0|8oyo0|7vc00|a2yo0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Riga",title:"Riga",winIndex:59,offsets:[1.6094444444444445,2.6094444444444442,2,3,1,4],offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Rome",title:"Rome",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|8l3s0|a4yw0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|cls40|64ak0|c8tg0|6h980|cls40|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Samara",title:"Samara",winIndex:58,offsets:[3.338888888888889,3,4,5],offsetIndices:"012232323232323232322121112323232323232323232323232323232323232212",untils:"-qcx7pw|5q63dw|2egvw0|o3lc00|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d440|12w00|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Europe/Simferopol",title:"Simferopol",winIndex:58,offsets:[2.2666666666666666,2,3,1,4],offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity"},{id:"Europe/Sofia",title:"Sofia",winIndex:59,offsets:[2,1,3],offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Stockholm",title:"Stockholm",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tallinn",title:"Tallinn",winIndex:59,offsets:[1.65,1,2,3,4],offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tirane",title:"Tirane",winIndex:60,offsets:[1.3222222222222222,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Uzhgorod",title:"Uzhgorod",winIndex:59,offsets:[1,2,3,4],offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vienna",title:"Vienna",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|902o0|9d1c0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vilnius",title:"Vilnius",winIndex:59,offsets:[1.4,1.5933333333333333,1,2,3,4],offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"
},{id:"Europe/Volgograd",title:"Volgograd",winIndex:58,offsets:[2.961111111111111,3,4,5],offsetIndices:"011223232323232323221212122121212121212121212121212121212121212121",untils:"-q3cw84|2qrjw4|2pu800|gdt980|a48yo0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9q000|9d1c0|ipzw0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Warsaw",title:"Warsaw",winIndex:51,offsets:[1.4,1,2,3],offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zaporozhye",title:"Zaporozhye",winIndex:59,offsets:[2.3333333333333335,2,3,1,4],offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zurich",title:"Zurich",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Indian/Chagos",title:"Chagos",winIndex:21,offsets:[4.827777777777778,5,6],offsetIndices:"012",untils:"-wvpc2s|1ag64us|Infinity"},{id:"Indian/Christmas",title:"Christmas",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Cocos",title:"Cocos",winIndex:87,offsets:[6.5],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Kerguelen",title:"Kerguelen",winIndex:17,offsets:[0,5],offsetIndices:"01",untils:"-afrs00|Infinity"},{id:"Indian/Mahe",title:"Mahe",winIndex:97,offsets:[3.6966666666666668,4],offsetIndices:"01",untils:"-x6pjlo|Infinity"},{id:"Indian/Maldives",title:"Maldives",winIndex:17,offsets:[4.9,5],offsetIndices:"01",untils:"-57x6y0|Infinity"},{id:"Indian/Mauritius",title:"Mauritius",winIndex:97,offsets:[3.8333333333333335,4,5],offsetIndices:"012121",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity"},{id:"Indian/Reunion",title:"Reunion",winIndex:97,offsets:[3.697777777777778,4],offsetIndices:"01",untils:"-uks29s|Infinity"},{id:"MST7MDT",title:"MST7MDT",winIndex:15,offsets:[-7,-6],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Pacific/Apia",title:"Apia",winIndex:98,offsets:[-11.448888888888888,-11.5,-11,-10,14,13],offsetIndices:"01232345454545454545454545454545454545454545454545454545454",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Auckland",title:"Auckland",winIndex:8,offsets:[11.5,12.5,12,13],offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Chuuk",title:"Chuuk",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Efate",title:"Efate",winIndex:48,offsets:[11.22111111111111,11,12],offsetIndices:"0121212121212121212121",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity"},{id:"Pacific/Enderbury",title:"Enderbury",winIndex:94,offsets:[-12,-11,13],offsetIndices:"012",untils:"535io0|7ykl80|Infinity"},{id:"Pacific/Fakaofo",title:"Fakaofo",winIndex:94,offsets:[-11,13],offsetIndices:"01",untils:"lx0jw0|Infinity"},{id:"Pacific/Fiji",title:"Fiji",winIndex:99,offsets:[11.928888888888888,12,13],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|Infinity"},{id:"Pacific/Funafuti",title:"Funafuti",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Galapagos",title:"Galapagos",winIndex:67,offsets:[-5.973333333333333,-5,-6],offsetIndices:"012",untils:"-kcr62o|spdryo|Infinity"},{id:"Pacific/Guadalcanal",title:"Guadalcanal",winIndex:48,offsets:[10.663333333333332,11],offsetIndices:"01",untils:"-tvowac|Infinity"},{id:"Pacific/Guam",title:"Guam",winIndex:50,offsets:[10],offsetIndices:"00",untils:"g5z2w0|Infinity"},{id:"Pacific/Honolulu",title:"Honolulu",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"010102",untils:"-j50la0|13l00|4jvb00|1wd180|votg0|Infinity"},{id:"Pacific/Kiritimati",title:"Kiritimati",winIndex:95,offsets:[-10.666666666666666,-10,14],offsetIndices:"012",untils:"535eyo|7ykm5c|Infinity"},{id:"Pacific/Kosrae",title:"Kosrae",winIndex:48,offsets:[11,12],offsetIndices:"010",untils:"-4r7w0|f9l3w0|Infinity"},{id:"Pacific/Kwajalein",title:"Kwajalein",winIndex:44,offsets:[11,-12,12],offsetIndices:"012",untils:"-4r7w0|cgtbw0|Infinity"},{id:"Pacific/Majuro",title:"Majuro",winIndex:44,offsets:[11,12],offsetIndices:"01",untils:"-4r7w0|Infinity"},{id:"Pacific/Midway",title:"Midway",winIndex:49,link:530},{id:"Pacific/Nauru",title:"Nauru",winIndex:44,offsets:[11.127777777777776,11.5,9,12],offsetIndices:"01213",untils:"-pjxiws|b1kxms|19h8a0|i43qe0|Infinity"},{id:"Pacific/Niue",title:"Niue",winIndex:49,offsets:[-11.333333333333334,-11.5,-11],offsetIndices:"012",untils:"-9wyz6o|ehcj4o|Infinity"},{id:"Pacific/Noumea",title:"Noumea",winIndex:48,offsets:[11.096666666666666,11,12],offsetIndices:"01212121",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity"},{id:"Pacific/Pago_Pago",title:"Pago Pago",winIndex:49,offsets:[-11.379999999999999,-11],offsetIndices:"0111",untils:"-usij20|tcsey0|8p4800|Infinity"},{id:"Pacific/Palau",title:"Palau",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Pohnpei",title:"Pohnpei",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Port_Moresby",title:"Port Moresby",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Rarotonga",title:"Rarotonga",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"012121212121212121212121212",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity"},{id:"Pacific/Saipan",title:"Saipan",winIndex:50,link:520},{id:"Pacific/Tahiti",title:"Tahiti",winIndex:57,offsets:[-9.97111111111111,-10],offsetIndices:"01",untils:"-tvnayw|Infinity"},{id:"Pacific/Tarawa",title:"Tarawa",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Tongatapu",title:"Tongatapu",winIndex:94,offsets:[12.333333333333334,13,14],offsetIndices:"01212121",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|Infinity"},{id:"Pacific/Wake",title:"Wake",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Wallis",title:"Wallis",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"PST8PDT",title:"PST8PDT",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Australia/Eucla",title:"Eucla",winIndex:100,offsets:[8.591111111111111,8.75,9.75],offsetIndices:"01212121212121212121",untils:"-12nxx74|b053ls|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Lord_Howe",title:"Eucla",winIndex:101,offsets:[10.605555555555556,10,10.5,11.5,11],offsetIndices:"01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424",untils:"-133j6sk|18x8f0k|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity"}];e.exports={displayNames:i,timezones:o}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTooltipStrategy=void 0;var s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(2),d=i(u),c=n(392),h=n(169),p=i(h),f=n(27),g=i(f),_=n(99),m=n(43),v="dx-scheduler-appointment-tooltip-wrapper",y=200,w="dxListItemData",x="dx-scheduler-fixed-appointments",b="dx-list-item",C=function(){function e(t){r(this,e),this.scheduler=t}return l(e,[{key:"onListRendered",value:function(e){}},{key:"onListItemClick",value:function(e){}},{key:"getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"createFunctionTemplate",value:function(e,t,n,i){return(0,c.createDefaultTooltipTemplate)(e,t,n,i)}}]),e}(),k=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"onListItemClick",value:function(e){this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"canRaiseClickEvent",value:function(){return!1}}]),t}(C),I=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.state={isAllDay:n,appointment:null,initPosition:{}},i}return a(t,e),l(t,[{key:"onListRendered",value:function(e){var t=this,n=void 0,i=(0,d.default)(e.element);if(this.scheduler._allowDragging()){var o=this._getWorkspaceInstance().dragBehavior;o&&o.addTo(i,{filter:"."+b,container:this.scheduler.$element().find("."+x),cursorOffset:function(){var e=(0,d.default)(n);return{x:e.width()/2,y:e.height()/2}},dragTemplate:function(){return n},onDragStart:function(e){var i=e.event,a=(0,d.default)(e.itemElement).data(w);a&&(i.data=i.data||{},i.data.itemElement=n=t._createDragAppointment(a.data,a.data.settings),o.initialPosition=g.default.locate((0,d.default)(n)),g.default.resetPosition((0,d.default)(n)),t.scheduler.hideAppointmentTooltip())}})}}},{key:"canRaiseClickEvent",value:function(){return!0}},{key:"createFunctionTemplate",value:function(e,n,i,o){return this._isEmptyDropDownAppointmentTemplate()?s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createFunctionTemplate",this).call(this,e,n,i,o):new _.FunctionTemplate(function(t){return e.render({model:n,index:o,container:t.container})})}},{key:"getItemListTemplateName",value:function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltipTemplate":"dropDownAppointmentTemplate"}},{key:"getItemListDefaultTemplateName",value:function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"}},{key:"_isEmptyDropDownAppointmentTemplate",value:function(){return"dropDownAppointment"===this.scheduler.option().dropDownAppointmentTemplate}},{key:"_getAppointmentsInstance",value:function(){return this.scheduler.getAppointmentsInstance()}},{key:"_getWorkspaceInstance",value:function(){return this.scheduler.getWorkSpace()}},{key:"_createDragAppointment",value:function(e,t){var n=this._getAppointmentsInstance(),i=n.option("items").length;t[0].isCompact=!1,t[0].virtual=!1,n._currentAppointmentSettings=t,n._renderItem(i,{itemData:e,settings:t});var o=n._findItemElementByItem(e);return o.length>1?this._getRecurrencePart(o,t[0].startDate):o[0]}},{key:"_getRecurrencePart",value:function(e,t){return e.some(function(e){var n=e.data("dxAppointmentStartDate");return n.getTime()===t.getTime()})}},{key:"_createInitPosition",value:function(e,t){var n=e.parent().get(0),i=n.getBoundingClientRect();return{top:t.top-i.top-e.height()/2,left:t.left-i.left-e.width()/2}}}]),t}(C);t.DesktopTooltipStrategy=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.skipHidingOnScroll=!1,n.isSingleBehavior=!1,n}return a(t,e),l(t,[{key:"_showCore",value:function(e,n,i){this.isSingleBehavior=i,this.behavior=this._createBehavior(i),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_showCore",this).call(this,e,n,i),this.tooltip.option("position",this._getTooltipPosition(n))}},{key:"_onShown",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_onShown",this).call(this),this.isSingleBehavior||(this.list.focus(),this.list.option("focusedElement",null))}},{key:"_createBehavior",value:function(e){return e?new k(this.scheduler):new I(this.scheduler)}},{key:"_getTooltipPosition",value:function(e){return{my:"bottom",at:"top",of:this.target,collision:"fit flipfit",boundary:this._getBoundary(e),offset:this.scheduler.option("_appointmentTooltipOffset")}}},{key:"_getBoundary",value:function(e){return this._isAppointmentInAllDayPanel(e[0].data)?this.scheduler.$element():this.scheduler.getWorkSpaceScrollableContainer()}},{key:"_isAppointmentInAllDayPanel",value:function(e){var t=this.scheduler._workSpace,n=this.scheduler.appointmentTakesAllDay(e);return n&&t.supportAllDayRow()&&t.option("showAllDayPanel")}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return this.behavior.createFunctionTemplate(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return this.behavior.getItemListTemplateName()}},{key:"_getItemListDefaultTemplateName",value:function(){return this.behavior.getItemListDefaultTemplateName()}},{key:"_createListOption",value:function(e,n){var i=s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createListOption",this).call(this,e,n);return i.showScrollbar=m.touch?"always":"onHover",i}},{key:"_createTooltip",value:function(e){var t=this;return this.$tooltip=this._createTooltipElement(),this.scheduler._createComponent(this.$tooltip,p.default,{target:e,onShowing:this._onTooltipShowing.bind(this),closeOnTargetScroll:function(){return t.skipHidingOnScroll},maxHeight:y,rtlEnabled:this.scheduler.option("rtlEnabled")})}},{key:"dispose",value:function(){clearTimeout(this.skipHidingOnScrollTimeId)}},{key:"_onTooltipShowing",value:function(){var e=this;clearTimeout(this.skipHidingOnScrollTimeId),this.skipHidingOnScroll=!0,this.skipHidingOnScrollTimeId=setTimeout(function(){e.skipHidingOnScroll=!1,clearTimeout(e.skipHidingOnScrollTimeId)},0)}},{key:"_createTooltipElement",value:function(){return(0,d.default)("<div>").appendTo(this.scheduler.$element()).addClass(v)}},{key:"_onListRendered",value:function(e){this.behavior.onListRendered(e)}},{key:"_canRaiseClickEvent",value:function(){return this.behavior.canRaiseClickEvent()}}]),t}(c.TooltipStrategyBase)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.MobileTooltipStrategy=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(59),d=i(u),c=n(392),h=n(2),p=i(h),f=n(7),g="dx-scheduler-overlay-panel",_=250,m={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,f.getWindow)()}},to:{position:{my:"center",at:"center",of:(0,f.getWindow)()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:(0,f.getWindow)()}},from:{position:{my:"center",at:"center",of:(0,f.getWindow)()}}}},v={my:"bottom",at:"bottom",of:(0,f.getWindow)()};t.MobileTooltipStrategy=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_onListItemClick",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_onListItemClick",this).call(this,e),this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_shouldUseTarget",value:function(){return!1}},{key:"_onShowing",value:function(){this.tooltip.option("height","auto");var e=this.list.$element().outerHeight();this.tooltip.option("height",e>_?_:"auto")}},{key:"_createTooltip",value:function(e){var t=this,n=(0,p.default)("<div>").addClass(g).appendTo(this.scheduler.$element());return this.scheduler._createComponent(n,d.default,{shading:!1,position:v,animation:m,target:this.scheduler.$element(),container:this.scheduler.$element(),closeOnOutsideClick:!0,width:"100%",height:"auto",onShowing:function(){return t._onShowing()}})}}]),t}(c.TooltipStrategyBase)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(44),u=i(l),d=n(7),c=i(d),h=n(717),p=i(h),f=n(16),g=i(f),_=n(11),m=i(_),v=n(47),y=i(v),w=n(22),x=i(w),b=n(0),C=n(3),k=n(6),I=x.default.dateToMilliseconds,S="dx-scheduler",D=S+"-appointment-popup",T=610,E=768,O="after",A="before",P=function(){function e(t){o(this,e),this.scheduler=t,this._popup=null,this._appointmentForm=null,this.state={lastEditData:null,appointment:{data:null,processTimeZone:!1,isEmptyText:!1,isEmptyDescription:!1}}}return a(e,[{key:"show",value:function(e,t,n){var i=this;this.state.appointment={data:e,processTimeZone:n},this._popup||(this._popup=this._createPopup()),this._popup.option({toolbarItems:t?this._getPopupToolbarItems():[],showCloseButton:!t||this._popup.initialOption("showCloseButton")}),this._popup.option("onShowing",function(t){i._updateForm(e,n);var o={form:i._appointmentForm,appointmentData:e,cancel:!1};i.scheduler._actions.onAppointmentFormOpening(o),i.scheduler._processActionResult(o,function(e){e?t.cancel=!0:i.updatePopupFullScreenMode()})}),this._popup.show()}},{key:"hide",value:function(){this._popup.hide()}},{key:"isVisible",value:function(){return!!this._popup&&this._popup.option("visible")}},{key:"getPopup",value:function(){return this._popup}},{key:"dispose",value:function(){this._$popup&&(this._popup.$element().remove(),this._$popup=null)}},{key:"_createPopup",value:function(){var e=(0,s.default)("<div>").addClass(D).appendTo(this.scheduler.$element());return this.scheduler._createComponent(e,u.default,this._createPopupConfig())}},{key:"_createPopupConfig",value:function(){var e=this;return{height:"auto",maxHeight:"100%",onHiding:function(){e._appointmentForm.resetValues(),e.scheduler.focus()},contentTemplate:function(){return e._createPopupContent()},defaultOptionsRules:[{device:function(){return g.default.current().android},options:{showTitle:!1}}]}}},{key:"_createPopupContent",value:function(){var e=(0,s.default)("<div>");return this._appointmentForm=this._createForm(e),e}},{key:"_createAppointmentFormData",value:function(e){var t=(0,b.extend)(!0,{},e);return(0,C.each)(this.scheduler._resourcesManager.getResourcesFromItem(t,!0)||{},function(e,n){return t[e]=n}),t}},{key:"_createForm",value:function(e){var t=this.scheduler._dataAccessors.expr,n=this.scheduler.option("resources");p.default.prepareAppointmentFormEditors({textExpr:t.textExpr,allDayExpr:t.allDayExpr,startDateExpr:t.startDateExpr,endDateExpr:t.endDateExpr,descriptionExpr:t.descriptionExpr,recurrenceRuleExpr:t.recurrenceRuleExpr,startDateTimeZoneExpr:t.startDateTimeZoneExpr,endDateTimeZoneExpr:t.endDateTimeZoneExpr},this.scheduler),n&&n.length&&(this.scheduler._resourcesManager.setResources(this.scheduler.option("resources")),p.default.concatResources(this.scheduler._resourcesManager.getEditors()));var i=!!this.scheduler._editAppointmentData&&!this.scheduler._editing.allowUpdating;return p.default.create(this.scheduler._createComponent.bind(this.scheduler),e,i,this._createAppointmentFormData(this.state.appointment.data))}},{key:"_updateForm",value:function(e,t){var n=this.scheduler.fire("getField","allDay",e),i=this.scheduler.fire("getField","startDate",e),o=this.scheduler.fire("getField","endDate",e),a=this._createAppointmentFormData(e);this.state.appointment.isEmptyText=void 0===e||void 0===e.text,this.state.appointment.isEmptyDescription=void 0===e||void 0===e.description,this.state.appointment.isEmptyText&&(a.text=""),this.state.appointment.isEmptyDescription&&(a.description=""),t&&(i=this.scheduler.fire("convertDateByTimezone",i),o=this.scheduler.fire("convertDateByTimezone",o),this.scheduler.fire("setField","startDate",a,i),this.scheduler.fire("setField","endDate",a,o));var r=this.scheduler._dataAccessors.expr.startDateExpr,s=this.scheduler._dataAccessors.expr.endDateExpr;a.recurrenceRule=a.recurrenceRule||"",p.default.updateFormData(this._appointmentForm,a),this._appointmentForm.option("readOnly",!!this.scheduler._editAppointmentData&&!this.scheduler._editing.allowUpdating),p.default.checkEditorsType(this._appointmentForm,r,s,n);var l=this.scheduler._dataAccessors.expr.recurrenceRuleExpr,u=l?this._appointmentForm.itemOption(l):null;if(u){var d=u.editorOptions||{};d.startDate=i,this._appointmentForm.itemOption(l,"editorOptions",d)}}},{key:"_isPopupFullScreenNeeded",value:function(){if(c.default.hasWindow()){var e=c.default.getWindow();return(0,s.default)(e).width()<E}return!1}},{key:"triggerResize",value:function(){this._popup&&m.default.triggerResizeEvent(this._popup.$element())}},{key:"updatePopupFullScreenMode",value:function(){if(this.isVisible()){var e=this._isPopupFullScreenNeeded();this._popup.option({maxWidth:e?"100%":T,fullScreen:e})}}},{key:"_getPopupToolbarItems",value:function(){var e=this,t="ios"===g.default.current().platform;return[{shortcut:"done",location:O,onClick:function(t){return e._doneButtonClickHandler(t)}},{shortcut:"cancel",location:t?A:O}]}},{key:"saveChanges",value:function(e){var t=this,n=new k.Deferred,i=this._appointmentForm.validate(),o=this.state.appointment,a=function(e,n){var i=new Date(t.scheduler.fire("getField",n,e)),o=t.scheduler._getTimezoneOffsetByOption()*I("hour")+t.scheduler.fire("getClientTimezoneOffset",i);return new Date(i.getTime()+o)};return e&&this._disableDoneButton(),(0,k.when)(i&&i.complete||i).done(function(e){if(e&&!e.isValid)return t._enableDoneButton(),void n.resolve(!1);var i=y.default.deepExtendArraySafe({},t._getFormData(),!0),r=t.scheduler._editAppointmentData,s=t.scheduler._updatedRecAppointment;o.isEmptyText&&""===i.text&&delete i.text,o.isEmptyDescription&&""===i.description&&delete i.description,void 0===o.data.recurrenceRule&&""===i.recurrenceRule&&delete i.recurrenceRule,r&&t.scheduler._convertDatesByTimezoneBack(!1,i),r&&!s?t.scheduler.updateAppointment(r,i):(s&&(t.scheduler.updateAppointment(r,s),delete t.scheduler._updatedRecAppointment,"number"==typeof t.scheduler._getTimezoneOffsetByOption()&&(t.scheduler.fire("setField","startDate",i,a.call(t,i,"startDate")),t.scheduler.fire("setField","endDate",i,a.call(t,i,"endDate")))),t.scheduler.addAppointment(i)),t._enableDoneButton(),t.state.lastEditData=i,n.resolve(!0)}),n.promise()}},{key:"_getFormData",value:function(){var e=this._appointmentForm.option("formData"),t=this.scheduler.fire("getField","startDate",e),n=this.scheduler.fire("getField","endDate",e);return this.scheduler.fire("setField","startDate",e,t),this.scheduler.fire("setField","endDate",e,n),e}},{key:"_doneButtonClickHandler",value:function(e){e.cancel=!0,this.saveEditData()}},{key:"saveEditData",value:function(){var e=this,t=new k.Deferred;return(0,k.when)(this.saveChanges(!0)).done(function(){if(e.state.lastEditData){var n=e.scheduler.fire("getField","startDate",e.state.lastEditData);e.scheduler._workSpace.updateScrollPosition(n),e.state.lastEditData=null}t.resolve()}),t.promise()}},{key:"_enableDoneButton",value:function(){var e=this._popup.option("toolbarItems");e[0].options=(0,b.extend)(e[0].options,{disabled:!1}),this._popup.option("toolbarItems",e)}},{key:"_disableDoneButton",value:function(){var e=this._popup.option("toolbarItems");e[0].options=(0,b.extend)(e[0].options,{disabled:!0}),this._popup.option("toolbarItems",e);
}}]),e}();t.default=P},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(121),s=i(r),l=n(57),u=i(l),d=n(10),c=i(d),h=n(20),p=i(h),f=n(1),g=i(f),_=n(5),m=i(_);n(718),n(719),n(336),n(260),n(335);var v="dx-scheduler-recurrence-rule-item",y=608,w=460,x={_appointmentForm:{},_lockDateShiftFlag:!1,_validateAppointmentFormDate:function(e,t,n){var i=null===t||!!t,o=null===n||!!n;!i&&o&&e.option("value",n)},_getAllDayStartDate:function(e){return e.setHours(0,0,0,0)},_getAllDayEndDate:function(e){var t=new Date(e);return t.setDate(e.getDate()+1),t},_updateLabelLocation:function(e){e>0&&this._appointmentForm._rootLayoutManager._contentReadyAction&&this._appointmentForm.option("labelLocation",e<y?"top":"left")},create:function(e,t,n,i){var o=this;return this._appointmentForm=e(t,s.default,{items:this._editors,readOnly:n,showValidationSummary:!0,scrollingEnabled:!0,colCount:2,formData:i,showColonAfterLabel:!1,screenByWidth:function(){var e=t.parent().outerWidth();return o._updateLabelLocation(e),e<w?"xs":"lg"}}),this._appointmentForm},prepareAppointmentFormEditors:function(e,t){var n=this;return this._editors=[{dataField:e.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:c.default.format("dxScheduler-editorLabelTitle")}},{dataField:e.startDateExpr,editorType:"dxDateBox",label:{text:c.default.format("dxScheduler-editorLabelStartDate")},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:t.option("firstDayOfWeek")},onValueChanged:function(t){n._validateAppointmentFormDate(t.component,t.value,t.previousValue);var i=u.default.deserializeDate(t.value),o=u.default.deserializeDate(t.previousValue),a=n._appointmentForm.getEditor(e.endDateExpr),r=u.default.deserializeDate(a.option("value"));if(!n._appointmentForm._lockDateShiftFlag&&g.default.isDefined(i)&&g.default.isDefined(r)&&r&&r<i){var s=r.getTime()-o.getTime();a.option("value",new Date(i.getTime()+s))}}}},{dataField:e.startDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",colSpan:2,label:{text:" ",showColon:!1},editorOptions:{observer:t},visible:!1},{dataField:e.endDateExpr,editorType:"dxDateBox",label:{text:c.default.format("dxScheduler-editorLabelEndDate")},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:t.option("firstDayOfWeek")},onValueChanged:function(t){n._validateAppointmentFormDate(t.component,t.value,t.previousValue);var i=u.default.deserializeDate(t.value),o=u.default.deserializeDate(t.previousValue),a=n._appointmentForm.getEditor(e.startDateExpr),r=u.default.deserializeDate(a.option("value"));if(!n._appointmentForm._lockDateShiftFlag&&i&&r>i){var s=o?o.getTime()-r.getTime():0;a.option("value",new Date(i.getTime()-s))}}}},{dataField:e.endDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",colSpan:2,label:{text:" ",showColon:!1},editorOptions:{observer:t},visible:!1},{dataField:e.allDayExpr,editorType:"dxSwitch",colSpan:2,label:{text:c.default.format("dxScheduler-allDay")},editorOptions:{onValueChanged:function(i){var o=i.value,a=n._appointmentForm.getEditor(e.startDateExpr),r=n._appointmentForm.getEditor(e.endDateExpr);if(a&&r){if(a.option("type",o?"date":"datetime"),r.option("type",o?"date":"datetime"),!a.option("value"))return;var s=u.default.deserializeDate(a.option("value"));o?(a.option("value",n._getAllDayStartDate(s)),r.option("value",n._getAllDayEndDate(s))):(s.setHours(t.option("startDayHour")),a.option("value",s),r.option("value",t._workSpace.calculateEndDate(u.default.deserializeDate(a.option("value")))))}}}},{itemType:"empty",colSpan:2},{dataField:e.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:c.default.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2},{dataField:e.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",colSpan:2,editorOptions:{observer:t,firstDayOfWeek:t.option("firstDayOfWeek"),onValueChanged:function(e){var i=n._getRecurrenceRule(t,n._appointmentForm);t.fire("recurrenceEditorVisibilityChanged",i)},onContentReady:function(e){var t=(0,a.default)(e.element).closest(".dx-field-item"),n=t.find(".dx-field-item-label");m.default.off(n,p.default.name),m.default.on(n,p.default.name,function(){e.component.toggle()})}},cssClass:v,label:{text:c.default.format("dxScheduler-editorLabelRecurrence")}}],e.recurrenceRuleExpr||this._editors.splice(9,2),this._editors},_getRecurrenceRule:function(e,t){return!g.default.isEmptyObject(t)&&!!e.fire("getField","recurrenceRule",t.option("formData"))},concatResources:function(e){this._editors=this._editors.concat(e)},checkEditorsType:function(e,t,n,i){var o=e.itemOption(t),a=e.itemOption(n);if(o&&a){var r=o.editorOptions,s=a.editorOptions;i?r.type=s.type="date":r.type=s.type="datetime",e.itemOption(t,"editorOptions",r),e.itemOption(n,"editorOptions",s)}},updateFormData:function(e,t){e._lockDateShiftFlag=!0,e.option("formData",t),e._lockDateShiftFlag=!1}};e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(34),u=i(l),d=n(9),c=i(d),h=n(145),p=i(h),f=n(11),g=i(f),_=n(1),m=n(0),v=n(14),y=n(3),w=n(48),x=i(w),b=n(105),C=i(b),k=n(331),I=i(k),S=n(119),D=i(S),T=n(95),E=i(T),O=n(195),A=i(O),P=n(10),B=i(P),M=n(32),F=i(M),R=n(22),V=i(R),H=n(122),L=i(H),z="dx-recurrence-editor",$="-label",N="-wrapper",W="dx-recurrence-editor-container",j="dx-recurrence-selectbox-freq",q="dx-recurrence-numberbox-interval",G="dx-recurrence-interval-field",K="dx-recurrence-repeat-end",U="dx-recurrence-repeat-end-container",Y="dx-recurrence-radiogroup-repeat-type",X="dx-recurrence-numberbox-repeat-count",Z="dx-recurrence-datebox-until-date",Q="dx-recurrence-repeat-on",J="dx-recurrence-repeat-on-week",ee="dx-recurrence-checkbox-day-of-week",te="dx-recurrence-repeat-on-month",ne="dx-recurrence-numberbox-day-of-month",ie="dx-recurrence-repeat-on-year",oe="dx-recurrence-selectbox-month-of-year",ae="dx-field",re="dx-recurrence-freq-field",se="dx-field-label",le="dx-field-value",ue=[{text:function(){return B.default.format("dxScheduler-recurrenceNever")},value:"never"},{text:function(){return B.default.format("dxScheduler-recurrenceDaily")},value:"daily"},{text:function(){return B.default.format("dxScheduler-recurrenceWeekly")},value:"weekly"},{text:function(){return B.default.format("dxScheduler-recurrenceMonthly")},value:"monthly"},{text:function(){return B.default.format("dxScheduler-recurrenceYearly")},value:"yearly"}],de=[{text:function(){return B.default.format("dxScheduler-recurrenceNever")},value:"never"},{text:function(){return B.default.format("dxScheduler-recurrenceRepeatOnDate")},value:"until"},{text:function(){return B.default.format("dxScheduler-recurrenceRepeatCount")},value:"count"}],ce=["SU","MO","TU","WE","TH","FR","SA"],he=function(){function e(t){o(this,e),this._recurrenceRule=p.default.getRecurrenceRule(t).rule}return a(e,[{key:"makeRules",value:function(e){this._recurrenceRule=p.default.getRecurrenceRule(e).rule}},{key:"makeRule",value:function(e,t){return t?void((0,_.isDefined)(e)&&("until"===e&&delete this._recurrenceRule.count,"count"===e&&delete this._recurrenceRule.until,this._recurrenceRule[e]=t)):void delete this._recurrenceRule[e]}},{key:"repeatableRule",value:function(){var e=this._recurrenceRule;return"count"in e?"count":"until"in e?"until":null}},{key:"recurrenceString",value:function(){return p.default.getRecurrenceString(this._recurrenceRule)}},{key:"rules",value:function(){return this._recurrenceRule}},{key:"daysFromByDayRule",value:function(){return p.default.daysFromByDayRule(this._recurrenceRule)}}]),e}(),pe=x.default.inherit({_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{value:null,startDate:new Date,firstDayOfWeek:void 0})},_getFirstDayOfWeek:function(){return(0,_.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):F.default.firstDayOfWeekIndex()},_createComponent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this._recurrenceRule=new he(this.option("value"))},_render:function(){this.callBase(),this.$element().addClass(z),this._$container=(0,s.default)("<div>").addClass(W).appendTo(this.$element()),this._renderEditors(),this._renderContainerVisibility(this.option("value"))},_renderContainerVisibility:function(e){e?(this._$container.show(),g.default.triggerShownEvent(this._$container)):this._$container.hide()},_changeValueByVisibility:function(e){this._renderContainerVisibility(e),e?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))},_handleDefaults:function(){this._recurrenceRule.makeRule("freq","daily"),this._changeEditorValue()},_changeEditorValue:function(){this.option("value",this._recurrenceRule.recurrenceString()||"")},_renderEditors:function(){this._renderFreqEditor(),this._renderIntervalEditor(),this._renderRepeatOnEditor(),this._renderRepeatEndEditor()},_renderFreqEditor:function(){var e=this,t=(this._recurrenceRule.rules().freq||"never").toLowerCase(),n=(0,s.default)("<div>").addClass(j).addClass(le);this._freqEditor=this._createComponent(n,E.default,{field:"freq",items:ue,value:t,valueExpr:"value",displayExpr:"text",layout:"horizontal",onValueChanged:function(t){e._valueChangedHandler(t),e.invoke("resizePopup")}});var i=(0,s.default)("<div>").addClass(ae).addClass(re).append(n);this.$element().prepend(i)},_renderIntervalEditor:function(){var e=this._recurrenceRule.rules().freq||"daily",t=(0,s.default)("<div>").addClass(q).addClass(le),n=(0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceRepeatEvery")).addClass(q+$).addClass(se);this._$intervalTypeLabel=(0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceRepeat"+e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())).addClass(Y+$);var i=this._recurrenceRule.rules().interval||1;this._intervalEditor=this._createComponent(t,D.default,{field:"interval",min:1,value:i,showSpinButtons:!0,useLargeSpinButtons:!1,onValueChanged:this._valueChangedHandler.bind(this)});var o=(0,s.default)("<div>").addClass(ae).addClass(G).append(n,t,this._$intervalTypeLabel);this._$container.append(o),this._setAriaDescribedBy(this._intervalEditor,n)},_renderRepeatOnEditor:function(){var e=(this._recurrenceRule.rules().freq||"").toLowerCase();return(0,_.isDefined)(this._$repeatOnEditor)||(this._$repeatOnEditor=(0,s.default)("<div>").addClass(Q).addClass(ae).appendTo(this._$container)),e&&"daily"!==e?((0,_.isDefined)(this._$repeatOnLabel)||this._renderRepeatOnLabel(this._$repeatOnEditor),"weekly"!==e||this._$repeatOnWeek?"monthly"!==e||this._$repeatOnMonth?"yearly"!==e||this._$repeatOnYear?void 0:void this._renderRepeatOnYearEditor():void this._renderRepeatOnMonthEditor():void this._renderRepeatOnWeekEditor()):(this._clearRepeatOnEditor(),void this._clearRepeatOnLabel())},_renderRepeatOnLabel:function(e){this._$repeatOnLabel=(0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceRepeatOn")).addClass(Q+$).addClass(se),e.append(this._$repeatOnLabel)},_clearRepeatOnEditor:function(){(0,_.isDefined)(this._$repeatOnWeek)&&(this._$repeatOnWeek.detach(),this._$repeatOnWeek.remove(),delete this._$repeatOnWeek),(0,_.isDefined)(this._$repeatOnMonth)&&(this._$repeatOnMonth.detach(),this._$repeatOnMonth.remove(),delete this._$repeatOnMonth),(0,_.isDefined)(this._$repeatOnYear)&&(this._$repeatOnYear.detach(),this._$repeatOnYear.remove(),delete this._$repeatOnYear)},_clearRepeatOnLabel:function(){(0,_.isDefined)(this._$repeatOnLabel)&&(this._$repeatOnLabel.detach(),this._$repeatOnLabel.remove(),delete this._$repeatOnLabel)},_renderRepeatOnWeekEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnWeek=(0,s.default)("<div>").addClass(J).addClass(le).appendTo(this._$repeatOnEditor);var e=F.default.getDayNames("short"),t=this._daysOfWeekByRules();this._daysOfWeek=[];for(var n=0;n<7;n++){var i=this._getFirstDayOfWeek()+n,o=i%7,a=e[o].toUpperCase(),r=ce[o],l=(0,s.default)("<div>").addClass(ee),u=this._createComponent(l,C.default,{text:a,value:(0,v.inArray)(r,t)>-1,onValueChanged:this._repeatByDayValueChangeHandler.bind(this)});this._daysOfWeek[o]=u,this._$repeatOnWeek.append(l)}},_daysOfWeekByRules:function(){var e=this._recurrenceRule.daysFromByDayRule();return e.length||(e=[ce[this.option("startDate").getDay()]]),e},_repeatByDayValueChangeHandler:function(){var e="";(0,y.each)(this._daysOfWeek,function(t,n){if(n.option("value")){var i=ce[t];e=e?e+","+i:i}}),this._recurrenceRule.makeRule("byday",e),this._changeEditorValue()},_renderRepeatOnMonthEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnMonth=(0,s.default)("<div>").addClass(te).addClass(le).appendTo(this._$repeatOnEditor),this._renderDayOfMonthEditor(this._$repeatOnMonth)},_renderRepeatOnYearEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnYear=(0,s.default)("<div>").addClass(ie).addClass(le).appendTo(this._$repeatOnEditor);for(var e=[],t=F.default.getMonthNames("wide"),n=0;n<12;n++)e[n]={value:String(n+1),text:t[n]};var i=this._monthOfYearByRules(),o=(0,s.default)("<div>").addClass(oe).appendTo(this._$repeatOnYear),a=function(e){this._valueChangedHandler.call(this,e);var t=parseInt(e.component.option("value"));if(this._dayEditor&&t){var n=new Date((new Date).getFullYear(),parseInt(t),0).getDate();2===t&&(n=29),this._dayEditor.option("max",n)}};this._monthEditor=this._createComponent(o,E.default,{field:"bymonth",items:e,value:i,displayExpr:"text",valueExpr:"value",onValueChanged:a.bind(this)}),this._renderDayOfMonthEditor(this._$repeatOnYear)},_monthOfYearByRules:function(){var e=this._recurrenceRule.rules().bymonth;return e||(e=this.option("startDate").getMonth()+1),e},_renderDayOfMonthEditor:function(e){var t=this._dayOfMonthByRules(),n=(0,s.default)("<div>").addClass(ne);this._dayEditor=this._createComponent(n,D.default,{field:"bymonthday",min:1,max:31,showSpinButtons:!0,useLargeSpinButtons:!1,value:t,onValueChanged:this._valueChangedHandler.bind(this)}),e.append(n)},_dayOfMonthByRules:function(){var e=this._recurrenceRule.rules().bymonthday;return e||(e=this.option("startDate").getDate()),e},_setAriaDescribedBy:function(e,t){var n="label-"+new u.default;e.setAria("describedby",n),e.setAria("id",n,t)},_repeatEndSwitchValueChangeHandler:function(e){var t=e.value;this._renderRepeatEndVisibility(t),this._recurrenceRule.rules().count||this._recurrenceRule.rules().until||!t?t||(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until",""),this._changeEditorValue()):this._handleRepeatEndDefaults()},_renderRepeatEndVisibility:function(e){e?this._$repeatEndEditor.show():this._$repeatEndEditor.hide()},_handleRepeatEndDefaults:function(){this._recurrenceRule.makeRule("count",1),this._changeEditorValue()},_renderRepeatEndEditor:function(e){e=(0,_.isDefined)(e)?e:this._recurrenceRule.repeatableRule(),e||(e="count"),(0,_.isDefined)(this._$repeatEndEditor)||((0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceEnd")).addClass(U+$).addClass(se).appendTo(this._$container),this._$repeatEndEditor=(0,s.default)("<div>").addClass(U).addClass(ae).appendTo(this._$container),this._renderRepeatEndTypeEditor())},_renderRepeatEndTypeEditor:function(){var e=this,t=this._recurrenceRule.repeatableRule()||"never";this._$repeatTypeEditor=(0,s.default)("<div>").addClass(Y).addClass(le).appendTo(this._$repeatEndEditor),this._repeatTypeEditor=this._createComponent(this._$repeatTypeEditor,I.default,{items:de,value:t,displayExpr:"text",valueExpr:"value",itemTemplate:function(t){return"count"===t.value?e._renderRepeatCountEditor():"until"===t.value?e._renderRepeatUntilEditor():e._renderDefaultRepeatEnd()},layout:"vertical",onValueChanged:this._repeatTypeValueChangedHandler.bind(this)}),this._disableRepeatEndParts(t)},_renderDefaultRepeatEnd:function(){var e=(0,s.default)("<div>").addClass(K+N);return(0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceNever")).addClass(K+$).appendTo(e),e},_repeatTypeValueChangedHandler:function(e){var t=e.value;this._disableRepeatEndParts(t),"until"===t&&this._recurrenceRule.makeRule(t,this._getUntilValue()),"count"===t&&this._recurrenceRule.makeRule(t,this._repeatCountEditor.option("value")),"never"===t&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()},_disableRepeatEndParts:function(e){"until"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===e&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))},_renderRepeatCountEditor:function(){var e=this._recurrenceRule.rules().count||1,t=(0,s.default)("<div>").addClass(K+N);return(0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceAfter")).addClass(K+$).appendTo(t),this._$repeatCountEditor=(0,s.default)("<div>").addClass(X).addClass(le).appendTo(t),(0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceRepeatCount")).addClass(K+$).appendTo(t),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,D.default,{field:"count",min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:e,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),t},_repeatCountValueChangeHandler:function(e){if("count"===this._recurrenceRule.repeatableRule()){var t=e.value;this._recurrenceRule.makeRule("count",t),this._changeEditorValue()}},_formatUntilDate:function(e){return this._recurrenceRule.rules().until&&V.default.sameDate(this._recurrenceRule.rules().until,e)?e:V.default.setToDayEnd(e)},_renderRepeatUntilEditor:function(){var e=this._recurrenceRule.rules().until||this._formatUntilDate(new Date),t=(0,s.default)("<div>").addClass(K+N);return(0,s.default)("<div>").text(B.default.format("dxScheduler-recurrenceOn")).addClass(K+$).appendTo(t),this._$repeatDateEditor=(0,s.default)("<div>").addClass(Z).addClass(le).appendTo(t),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,A.default,{field:"until",value:e,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()}}),t},_repeatUntilValueChangeHandler:function(e){if("until"===this._recurrenceRule.repeatableRule()){var t=this._formatUntilDate(new Date(e.value));this._repeatUntilDate.option("value",t),this._recurrenceRule.makeRule("until",t),this._changeEditorValue()}},_valueChangedHandler:function(e){var t=e.component.option("value"),n=e.component.option("field"),i=this._freqEditor&&this._freqEditor.option("value"),o=!0;"freq"===n&&"never"===t||"freq"!==n&&"never"===i?(o=!1,this.option("value","")):(this._recurrenceRule.makeRule(n,t),this._makeRepeatOnRule(n,t),this._changeEditorValue()),this._renderContainerVisibility(o)},_makeRepeatOnRule:function(e,t){"freq"===e&&("daily"===t&&(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===t&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday","")))},_optionChanged:function(e){switch(e.name){case"value":this._recurrenceRule.makeRules(e.value),this._repeatTypeEditor.option("value",this._recurrenceRule.repeatableRule()||"never"),this._renderRepeatEndEditor(),this._renderRepeatOnEditor(),this._changeEditorsValues(this._recurrenceRule.rules()),this.callBase(e);break;case"startDate":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._makeRepeatOnRule("freq",this._recurrenceRule.rules().freq),(0,_.isDefined)(this._recurrenceRule.recurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;case"visible":this._changeValueByVisibility(e.value),this.callBase(e);break;default:this.callBase(e)}},_changeEditorsValues:function(e){this._changeCheckBoxesValue(!!e.byday),this._freqEditor.option("value",(e.freq||"never").toLowerCase()),this._changeRepeatTypeLabel(),this._intervalEditor.option("value",e.interval),this._changeRepeatCountValue(),this._changeRepeatUntilValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue()},_changeRepeatTypeLabel:function(){var e=this.$element().find("."+Y+$);if(e.length){var t=this._recurrenceRule.rules().freq||"daily";(0,y.each)(e,function(e,n){(0,s.default)(n).text(B.default.format("dxScheduler-recurrenceRepeat"+t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()))})}},_changeRepeatCountValue:function(){if(this._$repeatCountEditor){var e=this._recurrenceRule.rules().count||1;this._repeatCountEditor.option("value",e)}},_changeRepeatUntilValue:function(){this._$repeatDateEditor&&this._repeatUntilDate.option("value",this._getUntilValue())},_getUntilValue:function(){return this._recurrenceRule.rules().until||this._formatUntilDate(new Date)},_changeCheckBoxesValue:function(e){if(this._$repeatOnWeek&&e){var t=this._daysOfWeekByRules();(0,y.each)(this._daysOfWeek,function(e,n){var i=ce[e];n.option("value",(0,v.inArray)(i,t)>-1)})}},_changeDayOfMonthValue:function(){if(this._$repeatOnMonth||this._$repeatOnYear){var e=this._dayOfMonthByRules()||1;this._dayEditor.option("value",e)}},_changeMonthOfYearValue:function(){if(this._$repeatOnYear){var e=this._monthOfYearByRules()||1;this._monthEditor.option("value",e)}},toggle:function(){this._freqEditor.focus()},setAria:function(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}}).include(L.default);(0,c.default)("dxRecurrenceEditor",pe),e.exports=pe},function(e,t,n){var i=n(2),o=n(9),a=n(0).extend,r=n(122),s=n(10),l=n(48),u=n(95),d="dx-timezone-editor",c="dx-timezone-display-name",h="dx-timezone-iana-id",p=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:null})},_createComponent:function(e,t,n){return n=n||{},this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this.$element().addClass(d)},_render:function(){this._renderDisplayNameEditor(),this._renderIanaIdEditor(),this.callBase()},_renderDisplayNameEditor:function(){var e=s.format("dxScheduler-noTimezoneTitle"),t=this.invoke("getTimezoneDisplayNameById",this.option("value"))||e;this._displayNameEditor=this._renderSelectBox(c,{items:[e].concat(this.invoke("getTimezonesDisplayName")),value:t,onOptionChanged:function(e){"value"===e.name&&this._processDisplayNameChanging(e.value)}.bind(this)})},_renderIanaIdEditor:function(){this._ianaIdEditor=this._renderSelectBox(h,{items:this._idsDataSource(),value:this.option("value"),onOptionChanged:function(e){"value"===e.name&&this.option("value",e.value)}.bind(this),valueExpr:"id",displayExpr:"displayName",disabled:this._calculateIanaIdEditorDisabledState()})},_renderSelectBox:function(e,t){t=t||{};var n=i("<div>").addClass(e),o=this._createComponent(n,u,t);return this.$element().append(n),o},_idsDataSource:function(){return this.invoke("getSimilarTimezones",this.option("value"))},_calculateIanaIdEditorDisabledState:function(){return!this.option("value")},_processDisplayNameChanging:function(e){var t=this.invoke("getTimezonesIdsByDisplayName",e),n=t.length?t[0].id:null;this.option("value",n),this._ianaIdEditor.option({value:n,items:this._idsDataSource(t),disabled:this._calculateIanaIdEditorDisabledState()})},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._ianaIdEditor.option({value:t,items:this._idsDataSource()}),t?this._displayNameEditor.option("value",this.invoke("getTimezoneDisplayNameById",t)):this._displayNameEditor.option("value",s.format("dxScheduler-noTimezoneTitle")),this.callBase(e);break;case"readOnly":this._displayNameEditor&&this._displayNameEditor.option("readOnly",t),this._ianaIdEditor&&this._ianaIdEditor.option("readOnly",t);break;default:this.callBase(e)}}}).include(r);o("dxSchedulerTimezoneEditor",{},p),e.exports=p},function(e,t,n){var i=n(2),o=n(1),a=n(4).noop,r=n(1).isDefined,s=n(0).extend,l=n(3).each,u=n(14).inArray,d=n(33).camelize,c=n(9),h=n(17),p=n(122),f=n(721),g=n(198),_=n(200),m=n(21),v=n(10),y="dx-scheduler-header",w="dx-scheduler-view-switcher",x="dx-scheduler-view-switcher-label",b={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},C=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],k=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{views:[],intervalCount:1,currentView:"day",firstDayOfWeek:void 0,currentDate:new Date,min:void 0,max:void 0,useDropDownViewSwitcher:!1,_dropDownButtonIcon:"overlay"})},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{currentView:!0})},_optionChanged:function(e){var t=e.value;switch(e.name){case"views":this._validateViews(),this._viewSwitcher.option({items:t,selectedItem:this.option("currentView")});break;case"customizeDateNavigatorText":this._navigator.option(e.name,t);break;case"currentView":this._viewSwitcher.option("selectedItem",t),this._navigator.option("step",b[this._getCurrentViewType()]),this._changeViewSwitcherLabelText();break;case"currentDate":this._navigator.option("date",t);break;case"displayedDate":this._navigator.option("displayedDate",t);break;case"min":case"max":case"firstDayOfWeek":case"intervalCount":this._navigator.option(e.name,t);break;case"tabIndex":case"focusStateEnabled":this._viewSwitcher.option(e.name,t),this._navigator.option(e.name,t),this.callBase(e);break;case"useDropDownViewSwitcher":this._refreshViewSwitcher();break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass(y)},_initMarkup:function(){this.callBase(),this._renderNavigator(),this._renderViewSwitcher()},_renderNavigator:function(){this._navigator=this._createComponent("<div>",f,{min:this.option("min"),max:this.option("max"),intervalCount:this.option("intervalCount"),date:this.option("currentDate"),step:b[this._getCurrentViewType()],firstDayOfWeek:this.option("firstDayOfWeek"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),observer:this.option("observer"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")}),this._navigator.$element().appendTo(this.$element())},_renderViewSwitcher:function(){this._validateViews();var e=i("<div>").addClass(w).appendTo(this.$element());this.option("useDropDownViewSwitcher")?this._renderViewSwitcherDropDownMenu(e):this._renderViewSwitcherTabs(e)},_validateViews:function(){var e=this.option("views");l(e,function(e,t){var n=o.isObject(t),i=n&&t.type?t.type:t;u(i,C)===-1&&m.log("W0008",i)})},_getCurrentViewType:function(){var e=this.option("currentView");return e.type||e},_renderViewSwitcherTabs:function(e){var t=this;e.addClass(_.getTabsExpandedClass),this._viewSwitcher=this._createComponent(e,_,{selectionRequired:!0,scrollingEnabled:!0,onSelectionChanged:this._updateCurrentView.bind(this),items:this.option("views"),itemTemplate:function(e){return i("<span>").addClass("dx-tab-text").text(t._getItemText(e))},selectedItem:this.option("currentView"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled")})},_getItemText:function(e){return e.name||v.format("dxScheduler-switcher"+d(e.type||e,!0))},_refreshViewSwitcher:function(){this._viewSwitcher._dispose(),this._viewSwitcher.$element().remove(),delete this._viewSwitcher,this._removeViewSwitcherLabel(),this._renderViewSwitcher()},_removeViewSwitcherLabel:function(){r(this._$viewSwitcherLabel)&&(this._$viewSwitcherLabel.detach(),this._$viewSwitcherLabel.remove(),delete this._$viewSwitcherLabel)},_renderViewSwitcherDropDownMenu:function(e){var t=this;this._$viewSwitcherLabel=i("<div>").addClass(x).appendTo(this.$element()),this._changeViewSwitcherLabelText(),this._viewSwitcher=this._createComponent(e,g,{onItemClick:this._updateCurrentView.bind(this),buttonIcon:this.option("_dropDownButtonIcon"),items:this.option("views"),itemTemplate:function(e){return i("<span>").addClass("dx-dropdownmenu-item-text").text(t._getItemText(e))}})},_changeViewSwitcherLabelText:function(){if(r(this._$viewSwitcherLabel)){var e=this.option("currentView"),t=this._getItemText(e);this._$viewSwitcherLabel.text(t)}},_getCurrentViewName:function(e){return o.isObject(e)?e.name||e.type:e},_updateCurrentView:function(e){var t=e.itemData||e.component.option("selectedItem"),n=this._getCurrentViewName(t);this.notifyObserver("currentViewUpdated",n)},_renderFocusTarget:a}).include(p);c("dxSchedulerHeader",k),e.exports=k},function(e,t,n){var i=n(2),o=n(4).noop,a=n(1).isNumeric,r=n(19),s=n(22),l=n(1),u=n(0).extend,d=n(9),c=n(16),h=n(17),p=n(35),f=n(251),g=n(142),_=n(44),m=n(122),v=n(32),y=n(1).isDefined,w="dx-scheduler-navigator",x="dx-scheduler-navigator-calendar",b="dx-scheduler-navigator-next",C="dx-scheduler-navigator-caption",k="dx-scheduler-navigator-previous",I="dx-scheduler-navigator-calendar-popover",S=1,D=function(e){return e?S:v.firstDayOfWeekIndex()},T=function(e){return function(t){var n=v.getMonthNames(e?"abbreviated":"wide")[t.getMonth()];return[v.format(t,"day"),n].join(" ")}},E=function(e){return v.getMonthNames("abbreviated")[e.getMonth()]+" "+v.format(e,"year")},O=function e(t,n,i){var o=T(t);return function(a){if(n>1){var r=new Date(a),s=i;r.setDate(a.getDate()+s-1);var l=a.getMonth()!==r.getMonth(),u=l||t,d=v.format(a,l?T(u):"d"),c=v.format(r,e(u));return d+"-"+c}return[o(a),v.format(a,"year")].join(" ")}},A=function(e,t,n){var i=this.option("firstDayOfWeek"),o=y(i)?i:D(t);0===o&&n&&(o=S);var a=s.getFirstWeekDate(e,o),r=2;n&&(a=s.normalizeDateByWeek(a,e)),i>=6&&n&&a.setDate(a.getDate()+(7-i+1));var l=new Date(a),u=this.option("intervalCount");return t=t||6,l=new Date(l.setDate(l.getDate()+(u>1?7*(u-1)+t:t))),l.getDay()%6===0&&n&&l.setDate(l.getDate()+r),{text:P.call(this,l,a),startDate:a,endDate:l}},P=function(e,t){var n,i,o=t.getMonth()!==e.getMonth(),a=t.getFullYear()!==e.getFullYear(),r=o||this.option("_useShortDateFormat");return a?(i=v.format(t,O(!0)),n=v.format(e,O(!0))):(i=v.format(t,o?T(r):"d"),n=v.format(e,O(r))),i+"-"+n},B=function(e){var t,n=new Date(s.getFirstMonthDate(e)),i=new Date(s.getLastMonthDate(n));if(this.option("intervalCount")>1){i=new Date(n),i.setMonth(n.getMonth()+this.option("intervalCount")-1),i=new Date(s.getLastMonthDate(i));var o=n.getYear()===i.getYear(),a=E(i),r=o?v.getMonthNames("abbreviated")[n.getMonth()]:E(n);t=r+"-"+a}else t=v.format(e,"monthandyear");return{text:t,startDate:n,endDate:i}},M=function(e,t){return new Date(e[this.setter](e[this.getter]()+t))},F=function(e){var t;switch(e){case"day":return{duration:1*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:M,getCaption:function(e){var t=O(!1,this.option("intervalCount"),this._getConfig().duration);return{text:v.format(e,t),startDate:e,endDate:e}}};case"week":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:M,getCaption:A
};case"workWeek":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:M,getCaption:function(e){return A.call(this,e,4,!0)}};case"month":return{duration:1*this.option("intervalCount"),setter:"setMonth",getter:"getMonth",getDate:function(e,t){var n=e.getDate();e.setDate(1),e=M.call(this,e,t);var i=s.getLastMonthDay(e);return e.setDate(n<i?n:i),e},getCaption:B};case"agenda":return t=this.invoke("getAgendaDuration"),t=a(t)&&t>0?t:7,{duration:t,setter:"setDate",getter:"getDate",getDate:M,getCaption:function(e){var n,i=O(this.option("_useShortDateFormat")),o=new Date(e),a=new Date(e);return t>1?(a.setDate(a.getDate()+t-1),n=P.call(this,a,e)):n=v.format(e,i),{text:n,startDate:o,endDate:a}}}}},R=h.inherit({_getDefaultOptions:function(){return u(this.callBase(),{date:new Date,displayedDate:void 0,step:"day",intervalCount:1,min:void 0,max:void 0,firstDayOfWeek:void 0,_useShortDateFormat:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!c.real().generic||c.isSimulator()},options:{_useShortDateFormat:!0}}])},_optionChanged:function(e){switch(e.name){case"step":case"date":case"intervalCount":case"displayedDate":this._updateButtonsState(),this._renderCaption(),this._setCalendarOption("value",this.option("date"));break;case"min":case"max":this._updateButtonsState(),this._setCalendarOption(e.name,e.value);break;case"firstDayOfWeek":this._setCalendarOption(e.name,e.value);break;case"customizeDateNavigatorText":this._renderCaption();break;case"tabIndex":case"focusStateEnabled":this._next.option(e.name,e.value),this._caption.option(e.name,e.value),this._prev.option(e.name,e.value),this._setCalendarOption(e.name,e.value),this.callBase(e);break;case"_useShortDateFormat":break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass(w),this._initButtons()},_initButtons:function(){var e=i("<div>").addClass(b);this._next=this._createComponent(e,p,{icon:"chevronnext",onClick:this._updateCurrentDate.bind(this,1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var t=i("<div>").addClass(C);this._caption=this._createComponent(t,p,{focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var n=i("<div>").addClass(k);this._prev=this._createComponent(n,p,{icon:"chevronprev",onClick:this._updateCurrentDate.bind(this,-1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}}),this.setAria("label","Next period",e),this.setAria("label","Previous period",n),this._updateButtonsState(),this.$element().append(n,t,e)},_updateButtonsState:function(){var e=this.option("min"),t=this.option("max"),n=this._getConfig().getCaption.call(this,this.option("displayedDate")||this.option("date"));e=e?s.trimTime(e):e,t=t?s.trimTime(t):t,t&&t.setHours(23,59,59),this._prev.option("disabled",e&&!isNaN(e.getTime())&&this._getNextDate(-1,n.endDate)<e),this._next.option("disabled",t&&!isNaN(t.getTime())&&this._getNextDate(1,n.startDate)>t)},_updateCurrentDate:function(e){var t=this._getNextDate(e);s.normalizeDate(t,this.option("min"),this.option("max")),this.notifyObserver("currentDateUpdated",t)},_getNextDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._getConfig(),i=n.duration*e,o=n.getDate(new Date(t||this.option("date")),i);return o},_renderFocusTarget:o,_initMarkup:function(){this.callBase(),this._renderCaption()},_render:function(){this.callBase(),this._renderPopover(),this._renderCaptionKeys()},_renderPopover:function(){var e=c.current().generic?g:_,t=i("<div>").addClass(I);this._popover=this._createComponent(t,e,{onContentReady:this._popoverContentReadyHandler.bind(this),defaultOptionsRules:[{device:function(){return!c.current().generic},options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}},{device:function(){return c.current().generic},options:{target:this._caption.$element()}}]}),this._popover.$element().appendTo(this.$element())},_popoverContentReadyHandler:function(){this._calendar=this._createComponent(i("<div>"),f,this._calendarOptions()),this._calendar.$element().addClass(x),this._popover.$content().append(this._calendar.$element())},_calendarOptions:function(){return{min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),value:this.option("date"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:function(e){this.option("visible")&&(this.notifyObserver("currentDateUpdated",e.value),this._popover.hide())}.bind(this),hasFocus:function(){return!0},tabIndex:null,_keyboardProcessor:this._calendarKeyboardProcessor}},_renderCaption:function(){var e=this.option("displayedDate")||this.option("date"),t=this._getConfig().getCaption.call(this,e),n=this.option("customizeDateNavigatorText"),i=l.isFunction(n)?n(t):t.text;this._caption.option({text:i,onClick:function(){this._popover.toggle()}.bind(this)})},_renderCaptionKeys:function(){if(this.option("focusStateEnabled")&&!this.option("disabled")){this._calendarKeyboardProcessor=this._caption._keyboardProcessor.attachChildProcessor(),this._setCalendarOption("_keyboardProcessor",this._calendarKeyboardProcessor);var e=this,t=function(){return!e._popover.$content().is(":hidden")||void e._popover.show()},n=function(){e._popover.hide()};this._caption.registerKeyHandler("enter",t),this._caption.registerKeyHandler("space",t),this._caption.registerKeyHandler("tab",n)}},_setCalendarOption:function(e,t){this._calendar&&this._calendar.option(e,t)},_getConfig:function(){var e=this.option("step"),t=F.call(this,e);if(!t)throw r.Error("E1033",e);return t}}).include(m);d("dxSchedulerNavigator",R),e.exports=R},function(e,t,n){var i=n(9),o=n(203),a="dx-scheduler-work-space-day",r=o.inherit({_getElementClass:function(){return a},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return this.option("intervalCount")},_setFirstViewDate:function(){this._firstViewDate=this._getViewStartByOptions(),this._setStartDayHour(this._firstViewDate)},_getDateByIndex:function(e){if(1===this.option("intervalCount"))return this._firstViewDate;var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_renderDateHeader:function(){if(1!==this.option("intervalCount"))return this.callBase()},_getRightCell:function(e){return e?this._$focusedCell:this.callBase(e)},_getLeftCell:function(e){return e?this._$focusedCell:this.callBase(e)}});i("dxSchedulerWorkSpaceDay",r),e.exports=r},function(e,t,n){var i=n(394),o="dx-group-row-count",a=i.inherit({prepareCellIndexes:function(e,t,n){var i=this._workSpace.isGroupedByDate();return i?{rowIndex:e.rowIndex,cellIndex:e.cellIndex*this._workSpace._getGroupCount()+t}:{rowIndex:e.rowIndex,cellIndex:e.cellIndex+t*this._workSpace._getCellCount()}},calculateCellIndex:function(e,t){return t%=this._workSpace._getCellCount(),this._workSpace._getRowCount()*t+e},getGroupIndex:function(e,t){var n=this._workSpace.isGroupedByDate(),i=this._workSpace._getGroupCount();return n?t%i:Math.floor(t/this._workSpace._getCellCount())},calculateHeaderCellRepeatCount:function(){return this._workSpace._getGroupCount()||1},insertAllDayRowsIntoDateTable:function(){return!1},getTotalCellCount:function(e){return e=e||1,this._workSpace._getCellCount()*e},getTotalRowCount:function(){return this._workSpace._getRowCount()},addAdditionalGroupCellClasses:function(e,t){return e=this._addLastGroupCellClass(e,t),this._addFirstGroupCellClass(e,t)},_addLastGroupCellClass:function(e,t){var n=this._workSpace.option("groupByDate");if(n){if(t%this._workSpace._getGroupCount()===0)return e+" "+this.getLastGroupCellClass()}else if(t%this._workSpace._getCellCount()===0)return e+" "+this.getLastGroupCellClass();return e},_addFirstGroupCellClass:function(e,t){return(t-1)%this._workSpace._getCellCount()===0?e+" "+this.getFirstGroupCellClass():e},getHorizontalMax:function(e){return this._workSpace.getMaxAllowedPosition()[e]},getVerticalMax:function(e){return this._workSpace.getMaxAllowedVerticalPosition()[0]},calculateTimeCellRepeatCount:function(){return 1},getWorkSpaceMinWidth:function(){return this._workSpace.$element().get(0).getBoundingClientRect().width-this._workSpace.getTimePanelWidth()},getAllDayOffset:function(){return this._workSpace.getAllDayHeight()},getAllDayTableHeight:function(){return this._workSpace._$allDayTable.get(0).getBoundingClientRect().height||0},getGroupCountAttr:function(e,t){return{attr:o,count:t&&t.elements.length}},getLeftOffset:function(){return this._workSpace.getTimePanelWidth()},getGroupBoundsOffset:function(e,t,n,i){var o,a,r,s,l;return this._workSpace.isGroupedByDate()?(r=0,s=t.eq(r).offset().left-n/2,l=t.eq(e*this._workSpace._getGroupCount()-1).offset().left+n+n/2):(a=this._workSpace.getCellIndexByCoordinates(i),o=i.groupIndex||Math.floor(a/e),r=o*e,s=t.eq(r).offset().left-n/2,l=t.eq(r+e-1).offset().left+n+n/2),{left:s,right:l,top:0,bottom:0}},shiftIndicator:function(e,t,n,i){var o=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(i-1,0)*i+this._workSpace.getIndicatorOffset(i)+i,a=n?n-o:o;e.css("left",a),e.css("top",t)},getShaderOffset:function(e,t){var n=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(e-1)*e;return this._workSpace.option("rtlEnabled")?this._workSpace._dateTableScrollable.$content().get(0).getBoundingClientRect().width-n-this._workSpace.getTimePanelWidth()-t:n},getShaderTopOffset:function(e){return-this.getShaderMaxHeight()*(e>0?1:0)},getShaderHeight:function(){var e=this._workSpace.getIndicationHeight();return e},getShaderMaxHeight:function(){return this._workSpace._dateTableScrollable.$content().get(0).getBoundingClientRect().height},getShaderWidth:function(e){return this._workSpace.getIndicationWidth(e)},getScrollableScrollTop:function(e){return e?0:this._workSpace.getScrollable().scrollTop()}});e.exports=a},function(e,t,n){var i=n(394),o="dx-group-column-count",a=10,r=1,s=i.inherit({prepareCellIndexes:function(e,t,n){var i=e.rowIndex+t*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(i+=t,n||(i+=1)),{rowIndex:i,cellIndex:e.cellIndex}},calculateCellIndex:function(e,t){return e%=this._workSpace._getRowCount(),this._workSpace._getRowCount()*t+e},getGroupIndex:function(e,t){return Math.floor(e/this._workSpace._getRowCount())},calculateHeaderCellRepeatCount:function(){return 1},insertAllDayRowsIntoDateTable:function(){return this._workSpace.option("showAllDayPanel")},getTotalCellCount:function(e){return this._workSpace._getCellCount()},getTotalRowCount:function(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()},addAdditionalGroupCellClasses:function(e,t,n,i){return e=this._addLastGroupCellClass(e,n+1),this._addFirstGroupCellClass(e,n+1)},_addLastGroupCellClass:function(e,t){return t%this._workSpace._getRowCount()===0?e+" "+this.getLastGroupCellClass():e},_addFirstGroupCellClass:function(e,t){return(t-1)%this._workSpace._getRowCount()===0?e+" "+this.getFirstGroupCellClass():e},getHorizontalMax:function(e){return this._workSpace.getMaxAllowedPosition()[0]},getVerticalMax:function(e){var t=this._workSpace.getMaxAllowedVerticalPosition()[e];return t+=this._getOffsetByAllDayPanel(e)},_getOffsetByAllDayPanel:function(e){var t=0;return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t=this._workSpace.getCellHeight()*(e+1)),t},_getGroupTop:function(e){return this._workSpace.getMaxAllowedVerticalPosition()[e]-this._workSpace.getCellHeight()*this._workSpace._getRowCount()},calculateTimeCellRepeatCount:function(){return this._workSpace._getGroupCount()||1},getWorkSpaceMinWidth:function(){var e=this._workSpace._getWorkSpaceWidth(),t=this._workSpace.$element().get(0).getBoundingClientRect().width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth()-2*r;return e<t&&(e=t),e},getAllDayOffset:function(){return 0},getAllDayTableHeight:function(){return 0},getGroupCountAttr:function(){return{attr:o,count:this._workSpace.option("groups")&&this._workSpace.option("groups").length}},getLeftOffset:function(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()},getGroupBoundsOffset:function(e,t,n,i){var o=i.groupIndex,r=t.eq(0).offset().left,s=t.eq(e-1).offset().left+n,l=this._workSpace._calculateDayDuration()/this._workSpace.option("hoursInterval")*this._workSpace.getCellHeight(),u=this.getScrollableScrollTop(),d=o*l+this._workSpace._$thead.get(0).getBoundingClientRect().height+this._workSpace.invoke("getHeaderHeight")+a-u;this._workSpace.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(d+=this._workSpace.getCellHeight()*(o+1));var c=d+l;return{left:r,right:s,top:d,bottom:c}},shiftIndicator:function(e,t,n,i){var o=this._workSpace.getIndicatorOffset(0),a=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),r=n?n-o:o,s=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*i;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(s+=this._workSpace.getAllDayHeight()*(i+1)),e.css("left",r+a),e.css("top",t+s)},getShaderOffset:function(e,t){var n=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?this._$container.get(0).getBoundingClientRect().width-n-this._workSpace.getWorkSpaceLeftOffset()-t:n},getShaderTopOffset:function(e){return 0},getShaderHeight:function(){var e=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},getShaderMaxHeight:function(){var e=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},getShaderWidth:function(e){return this._workSpace.getIndicationWidth(0)},getScrollableScrollTop:function(e){return this._workSpace.getScrollable().scrollTop()}});e.exports=s},function(e,t,n){var i=n(2),o=n(395),a="dx-scheduler-date-time-shader-all-day",r="dx-scheduler-date-time-shader-top",s="dx-scheduler-date-time-shader-bottom",l=o.inherit({_renderShader:function(){var e=this._getShaderHeight(),t=this._getShaderMaxHeight(),n=!1;if(e>t&&(e=t,n=!0),e>=0){this._$shader.height(e);var i=this._workspace._getGroupCount()||1;if(n)this._renderTopShader(this._$shader,e,this._$container.get(0).getBoundingClientRect().width,0),this._renderAllDayShader(this._$container.get(0).getBoundingClientRect().width,0);else for(var o=0;o<i;o++){var a=this._getShaderWidth(o);this._renderTopShader(this._$shader,e,a,o),this._renderBottomShader(this._$shader,t-e,a,o),this._renderAllDayShader(a,o)}}},_renderTopShader:function(e,t,n,o){this._$topShader=i("<div>").addClass(r),n&&this._$topShader.width(n)&&this._$topShader.height(t),this._$topShader.css("marginTop",this._getShaderTopOffset(o)),this._$topShader.css("left",this._getShaderOffset(o,n)),e.append(this._$topShader)},_renderBottomShader:function(e,t,n,o){this._$bottomShader=i("<div>").addClass(s),this._$bottomShader.width(n-this._workspace.getCellWidth())&&this._$bottomShader.height(t),this._$bottomShader.css("left",this._getShaderOffset(o,n-this._workspace.getCellWidth())),e.append(this._$bottomShader)},_renderAllDayShader:function(e,t){this._workspace.option("showAllDayPanel")&&(this._$allDayIndicator=i("<div>").addClass(a),this._$allDayIndicator.height(this._workspace.getAllDayHeight()),this._$allDayIndicator.width(e),this._$allDayIndicator.css("left",this._getShaderOffset(t,e)),this._workspace._$allDayPanel.prepend(this._$allDayIndicator))},_getShaderOffset:function(e,t){return this._workspace.getGroupedStrategy().getShaderOffset(e,t)},_getShaderTopOffset:function(e){return this._workspace.getGroupedStrategy().getShaderTopOffset(e)},_getShaderHeight:function(e,t){return this._workspace.getGroupedStrategy().getShaderHeight()},_getShaderMaxHeight:function(e,t){return this._workspace.getGroupedStrategy().getShaderMaxHeight()},_getShaderWidth:function(e){return this._workspace.getGroupedStrategy().getShaderWidth(e)},clean:function(){this.callBase(),this._workspace&&this._workspace._$allDayPanel&&this._workspace._$allDayPanel.find("."+a).remove()}});e.exports=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(193),u=i(l),d=n(27),c=i(d),h=n(0),p="fixedContainer",f="dx-scheduler-appointment",g="dxListItemData",_=function(){function e(t){o(this,e),this.scheduler=t,this.appointments=t._appointments,this.initialPosition={left:0,top:0},this.currentAppointment=null}return a(e,[{key:"isAllDay",value:function(e){return e.data("dxAppointmentSettings").allDay}},{key:"getDraggableArea",value:function(){var e=null;return this.appointments.notifyObserver("getDraggableAppointmentArea",{callback:function(t){return e=t}}),e}},{key:"getContainerShift",value:function(e){var t=this.appointments._getAppointmentContainer(e),n=this.appointments.option(p),i=t[0].getBoundingClientRect(),o=n[0].getBoundingClientRect();return{left:i.left-o.left,top:i.top-o.top}}},{key:"onDragStart",value:function(e){this.initialPosition=c.default.locate((0,s.default)(e.itemElement)),this.appointments.notifyObserver("hideAppointmentTooltip")}},{key:"getAppointmentElement",value:function(e){var t=e.event.data&&e.event.data.itemElement||e.itemElement;return(0,s.default)(t)}},{key:"onDragEnd",value:function(e){var t=this.getAppointmentElement(e),n=this.appointments._getAppointmentContainer(this.isAllDay(t));n.append(t),this.currentAppointment=t,this.appointments.notifyObserver("updateAppointmentAfterDrag",{event:e,data:this.appointments._getItemData(t),$appointment:t,coordinates:this.initialPosition})}},{key:"getItemData",value:function(e){var t=(0,s.default)(e).data(g);return t&&t.data||this.appointments._getItemData(e)}},{key:"createDragStartHandler",value:function(e,t){var n=this;return function(i){i.itemData=n.getItemData(i.itemElement),t.onDragStart&&t.onDragStart(i),i.cancel||e.onDragStart(i)}}},{key:"createDragEndHandler",value:function(e,t){return function(n){t.onDragEnd&&t.onDragEnd(n),n.cancel||(e.onDragEnd(n),n.fromComponent!==n.toComponent&&t.onRemove&&t.onRemove(n))}}},{key:"createDropHandler",value:function(e){var t=this;return function(n){n.itemData=(0,h.extend)({},n.itemData,t.appointments.invoke("getUpdatedData",{data:n.itemData})),n.fromComponent!==n.toComponent&&e.onAdd&&e.onAdd(n)}}},{key:"addTo",value:function(e,t){var n=this.scheduler.option("appointmentDragging")||{},i=(0,h.extend)({component:this.scheduler,contentTemplate:null,filter:"."+f,immediate:!1,onDragStart:this.onDragStart.bind(this),onDragEnd:this.onDragEnd.bind(this)},t);this.appointments._createComponent(e,u.default,(0,h.extend)({},i,n,{onDragStart:this.createDragStartHandler(i,n),onDragEnd:this.createDragEndHandler(i,n),onDrop:this.createDropHandler(n)}))}},{key:"moveBack",value:function(){this.currentAppointment&&void 0!==this.initialPosition.left&&void 0!==this.initialPosition.top&&c.default.move(this.currentAppointment,this.initialPosition)}}]),e}();t.default=_,e.exports=_},function(e,t,n){var i=n(9),o=n(22),a=o.dateToMilliseconds,r=n(396),s=n(32),l="dx-scheduler-work-space-work-week",u=[1,2,3,4,5],d=0,c=r.inherit({_getElementClass:function(){return l},_getCellCount:function(){return 5*this.option("intervalCount")},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||1},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);e%this._getCellCount()===0&&(d=0),t.setDate(this._firstViewDate.getDate()+e+d);for(var n=t.getDay();u.indexOf(n)===-1;)t.setDate(t.getDate()+1),n=t.getDay(),d++;return t},_renderView:function(){d=0,this.callBase()},_getWeekendsCount:function(e){return 2*Math.floor(e/7)},_setFirstViewDate:function(){this._firstViewDate=o.getFirstWeekDate(this._getViewStartByOptions(),this._firstDayOfWeek()||s.firstDayOfWeekIndex()),this._firstViewDate=o.normalizeDateByWeek(this._firstViewDate,this._getViewStartByOptions()),this._setStartDayHour(this._firstViewDate)},_getOffsetByCount:function(e){var t=this._getCellCount(),n=Math.floor(e/t);e-=t*n;var i=Math.floor(e/5);return a("day")*i*2}});i("dxSchedulerWorkSpaceWorkWeek",c),e.exports=c},function(e,t,n){var i=n(2),o=n(4).noop,a=n(9),r=n(203),s=n(22),l=n(32),u="dx-scheduler-work-space-month",d="dx-scheduler-date-table-current-date",c="dx-scheduler-date-table-first-of-month",h="dx-scheduler-date-table-other-month",p="dx-scheduler-scrollable-fixed-content",f=7,g=864e5,_=s.dateToMilliseconds,m=r.inherit({_toggleFixedScrollableClass:function(){this._dateTableScrollable.$content().toggleClass(p,!this._isWorkSpaceWithCount()&&!this._isVerticalGroupedWorkSpace())},_getElementClass:function(){return u},_getRowCount:function(){return this._isWorkSpaceWithCount()?4*this.option("intervalCount")+2:6},_getCellCount:function(){return f},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekday},_calculateCellIndex:function(e,t){return this._isVerticalGroupedWorkSpace()?e%=this._getRowCount():t%=this._getCellCount(),e*this._getCellCount()+t},_getInterval:function(){return g},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=s.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},getCellWidth:function(){var e=7,t=0;return this._getCells().slice(0,e).each(function(e,n){return t+=n.getBoundingClientRect().width}),t/e},_calculateHiddenInterval:function(){return 0},_insertAllDayRowsIntoDateTable:function(){return!1},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getCellCount()),n=e-this._getCellCount()*t;return{rowIndex:t,cellIndex:n}},_createWorkSpaceElements:function(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():this.callBase()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:o,_toggleAllDayVisibility:o,_changeAllDayVisibility:o,_setFirstViewDate:function(){var e=s.getFirstMonthDate(this._getViewStartByOptions());this._firstViewDate=s.getFirstWeekDate(e,this.option("firstDayOfWeek")||l.firstDayOfWeekIndex()),this._setStartDayHour(this._firstViewDate);var t=this._getViewStartByOptions();this._minVisibleDate=new Date(t.setDate(1)),this._maxVisibleDate=new Date(new Date(t.setMonth(t.getMonth()+this.option("intervalCount"))).setDate(0))},_getViewStartByOptions:function(){if(this.option("startDate")){for(var e=this._getStartViewDate(),t=this.option("currentDate"),n=e.getTime()<=t.getTime()?1:-1,i=new Date(new Date(this._getStartViewDate().setMonth(this._getStartViewDate().getMonth()+n*this.option("intervalCount"))));!this._dateInRange(t,e,i,n);)e=new Date(i),n>0&&e.setDate(1),i=new Date(new Date(i.setMonth(i.getMonth()+n*this.option("intervalCount"))));return n>0?e:i}return new Date(this.option("currentDate").getTime())},_getStartViewDate:function(){var e=s.getFirstMonthDate(this.option("startDate"));return e},_renderTableBody:function(e){e.getCellText=this._getCellText.bind(this),this.callBase(e)},_getCellText:function(e,t){this.option("groupByDate")&&this._getGroupCount()?t=Math.floor(t/this._getGroupCount()):t%=this._getCellCount();var n=this._getDate(e,t);return this._isWorkSpaceWithCount()&&this._isFirstDayOfMonth(n)?this._formatMonthAndDay(n):l.format(n,"dd")},_formatMonthAndDay:function(e){var t=l.getMonthNames("abbreviated")[e.getMonth()];return[t,l.format(e,"day")].join(" ")},_getDate:function(e,t){var n=new Date(this._firstViewDate),i=this._getRowCount();return n.setDate(n.getDate()+e%i*f+t),n},_updateIndex:function(e){return e},_prepareCellData:function(e,t,n){var o=this.callBase(e,t,n),a=i(n);return a.toggleClass(d,this._isCurrentDate(o.startDate)).toggleClass(c,this._isFirstDayOfMonth(o.startDate)).toggleClass(h,this._isOtherMonth(o.startDate)),o},_isCurrentDate:function(e){var t=new Date;return s.sameDate(e,t)},_isFirstDayOfMonth:function(e){return this._isWorkSpaceWithCount()&&1===e.getDate()},_isOtherMonth:function(e){return!s.dateInRange(e,this._minVisibleDate,this._maxVisibleDate,"date")},needRenderDateTimeIndication:function(){return!1},getCellDuration:function(){return 36e5*this._calculateDayDuration()},getIntervalDuration:function(){return _("day")},getTimePanelWidth:function(){return 0},getPositionShift:function(e){return{cellPosition:e*this.getCellWidth(),top:0,left:0}},getCellCountToLastViewDate:function(e){var t=e.getTime(),n=this.getEndViewDate().getTime(),i=this.getCellDuration();return Math.ceil((n-t)/i)},supportAllDayRow:function(){return!1},keepOriginalHours:function(){return!0},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},getWorkSpaceLeftOffset:function(){return 0},needApplyCollectorOffset:function(){return!0},_getDateTableBorderOffset:function(){return this._getDateTableBorder()},_getCellPositionByIndex:function(e,t){var n,i=this.callBase(e,t),o=this._getCellCoordinatesByIndex(e).rowIndex;return n=this._isVerticalGroupedWorkSpace()?this.getCellHeight()*(o+t*this._getRowCount()):this.getCellHeight()*o,n&&(i.top=n),i},_getHeaderDate:function(){return this._getViewStartByOptions()},_supportCompactDropDownAppointments:function(){return!1},scrollToTime:o});a("dxSchedulerWorkSpaceMonth",m),e.exports=m},function(e,t,n){var i=n(9),o=n(268),a="dx-scheduler-timeline-day",r=o.inherit({_getElementClass:function(){return a},_setFirstViewDate:function(){this._firstViewDate=this.option("currentDate"),this._setStartDayHour(this._firstViewDate)},_needRenderWeekHeader:function(){return this._isWorkSpaceWithCount()}});i("dxSchedulerTimelineDay",r),e.exports=r},function(e,t,n){var i=n(395),o=i.inherit({_renderShader:function(){var e="horizontal"===this._workspace.option("groupOrientation")?this._workspace._getGroupCount():1;if(this._customizeShader(this._$shader,0),e>1)for(var t=1;t<e;t++){var n=this._createShader();this._customizeShader(n,1),this._shader.push(n)}},_customizeShader:function(e,t){var n=this._workspace.getIndicationWidth(),i=this._$container.get(0).getBoundingClientRect().width;n>i&&(n=i),n>0&&e.width(n),e.css("left",this._workspace._getCellCount()*this._workspace.getCellWidth()*t)}});e.exports=o},function(e,t,n){var i=n(9),o=n(397),a=n(22),r=a.dateToMilliseconds,s="dx-scheduler-timeline-work-week",l=1,u=o.inherit({_getElementClass:function(){return s},_getWeekDuration:function(){return 5},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||l},_incrementDate:function(e){var t=e.getDay();5===t&&e.setDate(e.getDate()+2),this.callBase(e)},_getOffsetByCount:function(e,t){var n=Math.floor(e/(5*this._getCellCountInDay()));return n>0?r("day")*n*2:0},_getWeekendsCount:function(e){return 2*Math.floor(e/7)},_setFirstViewDate:function(){this._firstViewDate=a.getFirstWeekDate(this.option("currentDate"),this._firstDayOfWeek()),this._firstViewDate=a.normalizeDateByWeek(this._firstViewDate,this.option("currentDate")),this._setStartDayHour(this._firstViewDate)}});i("dxSchedulerTimelineWorkWeek",u),e.exports=u},function(e,t,n){var i=n(9),o=n(268),a=n(22),r="dx-scheduler-timeline-month",s=864e5,l=a.dateToMilliseconds,u=o.inherit({_renderView:function(){this.callBase(),this._updateScrollable()},_getElementClass:function(){return r},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_getHiddenInterval:function(){return 0},_getIndicationFirstViewDate:function(){return a.trimTime(new Date(this._firstViewDate))},getCellDuration:function(){return l("day")},calculateEndViewDate:function(e){return new Date(e.getTime()+this._calculateDayDuration()*l("hour"))},_getCellCount:function(){var e=this.option("currentDate"),t=0;if(this._isWorkSpaceWithCount())for(var n=this.option("intervalCount"),i=1;i<=n;i++)t+=new Date(e.getFullYear(),e.getMonth()+i,0).getDate();else t=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return t},_setFirstViewDate:function(){this._firstViewDate=a.getFirstMonthDate(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getFormat:function(){return this._formatWeekdayAndDay},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getInterval:function(){return s},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=a.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},_calculateHiddenInterval:function(){return 0},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},needUpdateScrollPosition:function(e,t,n,i){return this._dateWithinBounds(n,i)},getPositionShift:function(){return{top:0,left:0,cellPosition:0}}});i("dxSchedulerTimelineMonth",u),e.exports=u},function(e,t,n){var i=n(2),o=n(12),a=n(4).noop,r=n(3).each,s=n(11).getPublicElement,l=n(9),u=n(393),d=n(0).extend,c=n(32),h=n(267),p="dx-scheduler-agenda",f="dx-scheduler-agenda-date",g="dx-scheduler-group-table",_="dx-group-column-count",m="dx-scheduler-time-panel-row",v="dx-scheduler-time-panel-cell",y="dx-scheduler-agenda-nodata",w="dx-scheduler-date-table-last-row",x=5,b=20,C=u.inherit({_activeStateUnit:void 0,_getDefaultOptions:function(){return d(this.callBase(),{agendaDuration:7,rowHeight:60,noDataText:""})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":n&&n.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountAttr()),this.callBase(e);break;default:this.callBase(e)}},_renderFocusState:a,_renderFocusTarget:a,_cleanFocusState:a,supportAllDayRow:function(){return!1},_isVerticalGroupedWorkSpace:function(){return!1},_getElementClass:function(){return p},_setFirstViewDate:function(){this._firstViewDate=new Date(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getRowCount:function(){return this.option("agendaDuration")},_getCellCount:function(){return 1},_getTimePanelRowCount:function(){return this.option("agendaDuration")},_getDateByIndex:a,_getFormat:function(){return"d ddd"},_renderAllDayPanel:a,_toggleAllDayVisibility:a,_initWorkSpaceUnits:function(){this._initGroupTable(),this._$timePanel=i("<table>").addClass(this._getTimePanelClass()),this._$dateTable=i("<table>").addClass(this._getDateTableClass())},_initGroupTable:function(){var e=this.option("groups");e&&e.length&&(this._$groupTable=i("<table>").addClass(g))},_renderView:function(){this._setFirstViewDate(),this._rows=[],this.invoke("getAgendaRows",{agendaDuration:this.option("agendaDuration"),currentDate:new Date(this.option("currentDate"))}).done(function(e){this._recalculateAgenda(e)}.bind(this))},_recalculateAgenda:function(e){var t=[];return this._cleanView(),this._rowsIsEmpty(e)?void this._renderNoData():(this._rows=e,this._$groupTable&&(t=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),
this.invoke("agendaIsReady",e,x,b),this._applyCellTemplates(t),void this._dateTableScrollable.update())},_renderNoData:function(){this._$noDataContainer=i("<div>").addClass(y).html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)},_setTableSizes:a,_toggleHorizontalScrollClass:a,_createCrossScrollingConfig:a,_setGroupHeaderCellsHeight:function(){var e=this._getGroupHeaderCells().filter(function(e,t){return!t.getAttribute("rowSpan")}),t=this._removeEmptyRows(this._rows);if(t.length)for(var n=0;n<e.length;n++){var i=e.eq(n).find(".dx-scheduler-group-header-content");i.outerHeight(this._getGroupRowHeight(t[n]))}},_rowsIsEmpty:function(e){for(var t=!0,n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;o++)if(i[o]){t=!1;break}return t},_detachGroupCountAttr:function(){this.$element().removeAttr(_)},_attachGroupCountAttr:function(){this.$element().attr(_,this.option("groups").length)},_removeEmptyRows:function(e){for(var t=[],n=function(e){return!e.some(function(e){return e>0})},i=0;i<e.length;i++)e[i].length&&!n(e[i])&&t.push(e[i]);return t},_getGroupHeaderContainer:function(){return this._$groupTable},_makeGroupRows:function(){var e=this.invoke("createReducedResourcesTree"),t=this.option("resourceCellTemplate"),n=this._getGroupHeaderContentClass(),a=[],r=h.makeGroupedTableFromJSON(h.VERTICAL,e,{cellTag:"th",groupTableClass:g,groupRowClass:this._getGroupRowClass(),groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent:function(e,r,l,u){var d=o.createElement("div"),c=o.createElement("div");d.className=n,c.appendChild(r),d.appendChild(c),d.className=n,t&&t.render?a.push(t.render.bind(t,{model:{data:u.data,id:u.value,color:u.color,text:r.textContent},container:s(i(d)),index:l})):(c.appendChild(r),d.appendChild(c)),e.appendChild(d)},cellTemplate:t});return{elements:i(r).find("."+this._getGroupRowClass()),cellTemplates:a}},_cleanView:function(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)},_createWorkSpaceElements:function(){this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._$groupTable&&this._dateTableScrollable.$content().prepend(this._$groupTable),this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._dateTableScrollable.$element())},_renderDateTable:function(){this._renderTableBody({container:s(this._$dateTable),rowClass:this._getDateTableRowClass(),cellClass:this._getDateTableCellClass()})},_attachTablesEvents:a,_attachEvents:a,_cleanCellDataCache:a,needRenderDateTimeIndication:function(){return!1},_prepareCellTemplateOptions:function(e,t,n,i){var o=this.option("groups"),a={},r=o.length&&this._getPathToLeaf(n)||[];return r.forEach(function(e,t){var n=o[t].name;a[n]=e}),{model:{text:e,date:t,groups:a},container:s(i),index:n}},_renderTableBody:function(e){var t=[],n=e.cellTemplate;this._$rows=[];for(var o=function(o,r){if(r){var s,l,u,d=i("<tr>"),h=i("<td>").height(this._getRowHeight(r));if(e.getStartDate&&(s=e.getStartDate&&e.getStartDate(o),l=c.format(s,"d"),u=c.format(s,this._formatWeekday)),n&&n.render){var p=this._prepareCellTemplateOptions(l+" "+u,s,a,h);t.push(n.render.bind(n,p))}else l&&u&&h.addClass(f).text(l+" "+u);e.rowClass&&d.addClass(e.rowClass),e.cellClass&&h.addClass(e.cellClass),d.append(h),this._$rows.push(d)}}.bind(this),a=0;a<this._rows.length;a++)r(this._rows[a],o),this._setLastRowClass();i(e.container).append(i("<tbody>").append(this._$rows)),this._applyCellTemplates(t)},_setLastRowClass:function(){if(this._rows.length>1&&this._$rows.length){var e=this._$rows[this._$rows.length-1];e.addClass(w)}},_renderTimePanel:function(){this._renderTableBody({container:s(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:m,cellClass:v,cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})},_getTimePanelStartDate:function(e){var t=new Date(this.option("currentDate")),n=new Date(t.setDate(t.getDate()+e));return n},_getRowHeight:function(e){var t=this.option("rowHeight"),n=(e-1)*x;return e?t*e+n+b:0},_getGroupRowHeight:function(e){if(e){for(var t=0,n=0;n<e.length;n++)t+=this._getRowHeight(e[n]);return t}},getAgendaVerticalStepHeight:function(){return this.option("rowHeight")},getEndViewDate:function(){var e=new Date(this.option("currentDate")),t=this.option("agendaDuration");e.setHours(this.option("endDayHour"));var n=e.setDate(e.getDate()+t-1)-6e4;return new Date(n)},getCoordinatesByDate:function(){return{top:0,left:0,max:0,groupIndex:0}},getCellDataByCoordinates:function(){return{startDate:null,endDate:null}}});l("dxSchedulerAgenda",C),e.exports=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(14),s=i(r),l=n(4),u=n(1),d=n(47),c=i(d),h=n(3),p=i(h),f=n(0),g=n(42),_=i(g),m=n(18),v=i(m),y=n(46),w=i(y),x=n(6),b=function(e){return e.valueExpr||"id"},C=function(e){return e.displayExpr||"text"},k=function(){function e(t){o(this,e),this._resourceLoader={},this.setResources(t)}return a(e,[{key:"_wrapDataSource",value:function(e){return e instanceof w.default.DataSource?e:new w.default.DataSource({store:w.default.normalizeDataSourceOptions(e).store,pageSize:0})}},{key:"_mapResourceData",value:function(e,t){var n=v.default.compileGetter(b(e)),i=v.default.compileGetter(C(e));return p.default.map(t,function(e){var t={id:n(e),text:i(e)};return e.color&&(t.color=e.color),t})}},{key:"_isMultipleResource",value:function(e){var t=!1;return p.default.each(this.getResources(),function(n,i){var o=this.getField(i);if(o===e)return t=i.allowMultiple,!1}.bind(this)),t}},{key:"getDataAccessors",value:function(e,t){var n=null;return p.default.each(this._dataAccessors[t],function(t,i){if(e===t)return n=i,!1}),n}},{key:"getField",value:function(e){return e.fieldExpr||e.field}},{key:"setResources",value:function(e){this._resources=e,this._dataAccessors={getter:{},setter:{}},this._resourceFields=p.default.map(e||[],function(e){var t=this.getField(e);return this._dataAccessors.getter[t]=v.default.compileGetter(t),this._dataAccessors.setter[t]=v.default.compileSetter(t),t}.bind(this))}},{key:"getResources",value:function(){return this._resources||[]}},{key:"getResourcesData",value:function(){return this._resourcesData||[]}},{key:"getEditors",value:function(){var e=[],t=this;return p.default.each(this.getResources(),function(n,i){var o=t.getField(i),a=t._getResourceDataByField(o);e.push({editorOptions:{dataSource:a.length?a:t._wrapDataSource(i.dataSource),displayExpr:C(i),valueExpr:b(i)},dataField:o,editorType:i.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:i.label||o}})}),e}},{key:"getResourceDataByValue",value:function(e,t){var n=this,i=new x.Deferred;return p.default.each(this.getResources(),function(o,a){var r=n.getField(a);if(r===e){var s=n._wrapDataSource(a.dataSource),l=b(a);return n._resourceLoader[e]||(n._resourceLoader[e]=s.load()),n._resourceLoader[e].done(function(o){var a=(0,_.default)(o).filter(l,t).toArray();delete n._resourceLoader[e],i.resolve(a[0])}).fail(function(){delete n._resourceLoader[e],i.reject()}),!1}}),i.promise()}},{key:"setResourcesToItem",value:function(e,t){var n=this._dataAccessors.setter;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];n[i](e,this._isMultipleResource(i)?s.default.wrapToArray(o):o)}}},{key:"getResourcesFromItem",value:function(e,t){var n=this,i=null;return(0,u.isDefined)(t)||(t=!1),this._resourceFields.forEach(function(o){p.default.each(e,function(e,a){var r={};r[e]=a;var l=n.getDataAccessors(o,"getter")(r);if((0,u.isDefined)(l))return i||(i={}),1===l.length&&(l=l[0]),!t||t&&n._isMultipleResource(o)?n.getDataAccessors(o,"setter")(r,s.default.wrapToArray(l)):n.getDataAccessors(o,"setter")(r,l),(0,f.extend)(i,r),!0})}),i}},{key:"loadResources",value:function(e){var t=new x.Deferred,n=this,i=[];return p.default.each(this.getResourcesByFields(e),function(e,t){var o=new x.Deferred,a=n.getField(t);i.push(o),n._wrapDataSource(t.dataSource).load().done(function(e){o.resolve({name:a,items:n._mapResourceData(t,e),data:e})}).fail(function(){o.reject()})}),i.length?(x.when.apply(null,i).done(function(){var e=Array.prototype.slice.call(arguments),i=function(e){return{name:e.name,items:e.items,data:e.data}};n._resourcesData=e,t.resolve(e.map(i))}).fail(function(){t.reject()}),t.promise()):(n._resourcesData=[],t.resolve([]))}},{key:"getResourcesByFields",value:function(e){return(0,l.grep)(this.getResources(),function(t){var n=this.getField(t);return(0,r.inArray)(n,e)>-1}.bind(this))}},{key:"getResourceByField",value:function(e){return this.getResourcesByFields([e])[0]||{}}},{key:"getResourceColor",value:function(e,t){var n,i=this.getResourceByField(e).valueExpr||"id",o=v.default.compileGetter(i),a=this.getResourceByField(e).colorExpr||"color",r=v.default.compileGetter(a),s=new x.Deferred,l=this._getResourceDataByField(e),u=l.length;if(u){for(var d=0;d<u;d++)if(o(l[d])===t){n=r(l[d]);break}s.resolve(n)}else this.getResourceDataByValue(e,t).done(function(e){e&&(n=r(e)),s.resolve(n)}).fail(function(){s.reject()});return s.promise()}},{key:"getResourceForPainting",value:function(e){var t,n=this.getResources();return p.default.each(n,function(e,n){if(n.useColorAsDefault)return t=n,!1}),t||(Array.isArray(e)&&e.length&&(n=this.getResourcesByFields(e)),t=n[n.length-1]),t}},{key:"createResourcesTree",value:function(e){function t(i,o,a,r){a=a||[];for(var s=0;s<i.items.length;s++){var l=i.items[s],u={name:i.name,value:l.id,title:l.text,data:i.data&&i.data[s],children:[],parent:r?r:null};a.push(u);var d=o+1;e[d]&&t.call(this,e[d],d,u.children,u),u.children.length||(u.leafIndex=n,n++)}return a}var n=0,i=i||0;return t.call(this,e[0],0)}},{key:"_hasGroupItem",value:function(e,t,n){var i=this.getDataAccessors(t,"getter")(e);return!!(i&&(0,r.inArray)(n,i)>-1)}},{key:"_getResourceDataByField",value:function(e){for(var t=this.getResourcesData(),n=[],i=0,o=t.length;i<o;i++)if(t[i].name===e){n=t[i].data;break}return n}},{key:"getResourceTreeLeaves",value:function(e,t,n){n=n||[];for(var i=0;i<e.length;i++)this._hasGroupItem(t,e[i].name,e[i].value)&&((0,u.isDefined)(e[i].leafIndex)&&n.push(e[i].leafIndex),e[i].children&&this.getResourceTreeLeaves(e[i].children,t,n));return n}},{key:"groupAppointmentsByResources",value:function(e,t){var n=this.createResourcesTree(t),i={};return p.default.each(e,function(e,t){for(var o=this.getResourcesFromItem(t),a=this.getResourceTreeLeaves(n,o),r=0;r<a.length;r++)i[a[r]]||(i[a[r]]=[]),i[a[r]].push(c.default.deepExtendArraySafe({},t,!0))}.bind(this)),i}},{key:"reduceResourcesTree",value:function(e,t,n){n=n?n.children:[];var i=this;return e.forEach(function(e,o){var a=!1,r=e.name,s=e.value,l=e.title,u=e.data,d=i.getDataAccessors(r,"getter");t.forEach(function(e){if(!a){var t=d(e);Array.isArray(t)?t.indexOf(s)>-1&&(n.push({name:r,value:s,title:l,data:u,children:[]}),a=!0):t===s&&(n.push({name:r,value:s,title:l,data:u,children:[]}),a=!0)}}),a&&e.children&&e.children.length&&i.reduceResourcesTree(e.children,t,n[o])}),n}}]),e}();t.default=k},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(28),s=i(r),l=n(3),u=i(l),d=n(57),c=i(d),h=n(145),p=i(h),f=n(22),g=i(f),_=n(4),m=n(1),v=i(m),y=n(14),w=i(y),x=n(0),b=n(42),C=i(b),k=n(6),I=g.default.dateToMilliseconds,S=0,D=1,T=function(){function e(t){o(this,e),this._filterRegistry=null,this._dataAccessors=t}return a(e,[{key:"isRegistered",value:function(){return!!this._filterRegistry}},{key:"clearRegistry",value:function(){delete this._filterRegistry}},{key:"make",value:function(e,t){this._filterRegistry||(this._filterRegistry={}),this._make(e).apply(this,t)}},{key:"_make",value:function(e){var t=this;switch(e){case"date":return function(e,n,i){var o=i?t._dataAccessors.getter.startDate:t._dataAccessors.expr.startDateExpr,a=i?t._dataAccessors.getter.endDate:t._dataAccessors.expr.endDateExpr,r=t._dataAccessors.expr.recurrenceRuleExpr;t._filterRegistry.date=[[[a,">",e],[o,"<",n]],"or",[r,"startswith","freq"],"or",[[a,e],[o,e]]],r||t._filterRegistry.date.splice(1,2)};case"user":return function(e){t._filterRegistry.user=e}}}},{key:"combine",value:function(){var e=[];return this._filterRegistry.date&&e.push(this._filterRegistry.date),this._filterRegistry.user&&e.push(this._filterRegistry.user),e}},{key:"dateFilter",value:function(){return this._filterRegistry.date}}]),e}(),E=function(e,t,n,i,o){var a=g.default.dateTimeFromDecimal(n),r=e.getHours()>=a.hours&&e.getMinutes()>=a.minutes||t.getHours()===a.hours&&t.getMinutes()>a.minutes||t.getHours()>a.hours||o||i;return r},O=function(e,t,n,i,o,a,r,s){var l,u=(24-i+n)*I("hour"),d=t.getTime()-e.getTime(),c=(u-d)/I("hour"),h=e.getHours(),p=e.getMinutes(),f=g.default.dateTimeFromDecimal(i),_=g.default.dateTimeFromDecimal(n);return l=h<f.hours||h===f.hours&&p<f.minutes||o&&e<=r||a&&e<r&&t>s&&(h<f.hours||60*t.getHours()+t.getMinutes()>60*_.hours),d<u&&h>f.hours&&p>f.minutes&&c<=h-i&&(l=!1),l},A=function(){function e(t,n,i){o(this,e),this.setDataAccessors(n),this.setDataSource(t),this._updatedAppointmentKeys=[],this._filterMaker=new T(n),this._baseAppointmentDuration=i}return a(e,[{key:"_createFilter",value:function(e,t,n,i){this._filterMaker.make("date",[e,t]);var o=this._excessFiltering()?this._dataSource.filter()[D]:this._dataSource.filter();this._filterMaker.make("user",[o]),n&&this._dataSource.filter(this._combineRemoteFilter(i))}},{key:"_excessFiltering",value:function(){var e=this._filterMaker.dateFilter(),t=this._dataSource.filter();return t&&((0,_.equalByValue)(t,e)||t.length&&(0,_.equalByValue)(t[S],e))}},{key:"_combineFilter",value:function(){return this._filterMaker.combine()}},{key:"_getStoreKey",value:function(e){var t=this._dataSource.store();return t.keyOf(e)}},{key:"_filterAppointmentByResources",value:function(e,t){for(var n=this,i=!1,o=function(){var i,o=n._dataAccessors.getter.resources[s];v.default.isFunction(o)&&(i=o(e));for(var r=w.default.wrapToArray(i),l=u.default.map(t[a].items,function(e){return e.id}),d=0,c=r.length;d<c;d++)if((0,y.inArray)(r[d],l)>-1)return!0;return!1},a=0,r=t.length;a<r;a++){var s=t[a].name;if(i=o.call(this),!i)return!1}return i}},{key:"_filterAppointmentByRRule",value:function(e,t,n,i,o,a){var r=e.recurrenceRule,s=e.recurrenceException,l=e.allDay,u=!0,d=e.startDate,c=e.endDate;if(l||this._appointmentPartInInterval(d,c,i,o)){var h=this._trimDates(t,n);t=h.min,n=new Date(h.max.getTime()-I("minute"))}return r&&!p.default.getRecurrenceRule(r).isValid&&(u=c>t&&d<=n),u&&p.default.getRecurrenceRule(r).isValid&&(u=p.default.dateInRecurrenceRange({rule:r,exception:s,start:d,end:c,min:t,max:n,firstDayOfWeek:a})),u}},{key:"_appointmentPartInInterval",value:function(e,t,n,i){var o=e.getHours(),a=t.getHours();return o<=n&&a<=i&&a>=n||a>=i&&o<=i&&o>=n}},{key:"_createCombinedFilter",value:function(e,t){var n=this._dataAccessors,i=e.startDayHour,o=e.endDayHour,a=new Date(e.min),r=new Date(e.max),s=e.resources,l=e.firstDayOfWeek,u=e.recurrenceException,d=this;return[[function(c){var h,p=!0,f=new Date(n.getter.startDate(c)),g=new Date(n.getter.endDate(c)),_=d.appointmentTakesAllDay(c,i,o),m=d.appointmentTakesSeveralDays(c),y=n.getter.allDay(c),w=m||_,x=v.default.isDefined(n.getter.recurrenceRule);x&&(h=n.getter.recurrenceRule(c)),s&&s.length&&(p=d._filterAppointmentByResources(c,s)),_&&e.allDay===!1&&(p=!1);var b=n.getter.startDateTimeZone(c),C=n.getter.endDateTimeZone(c),k=t(f,b),I=t(g,C);if(p&&x){var S=u?u(c):n.getter.recurrenceException(c);p=d._filterAppointmentByRRule({startDate:k,endDate:I,recurrenceRule:h,recurrenceException:S,allDay:_},a,r,i,o,l)}return p&&I<a&&w&&!y&&(!x||x&&!h)&&(p=!1),p&&void 0!==i&&(p=E(k,I,i,_,m)),p&&void 0!==o&&(p=O(k,I,i,o,_,m,r,a)),p&&x&&!h&&I<a&&!y&&(p=!1),p}]]}},{key:"setDataSource",value:function(e){this._dataSource=e,this.cleanModelState(),this._initStoreChangeHandlers(),this._filterMaker&&this._filterMaker.clearRegistry()}},{key:"_initStoreChangeHandlers",value:function(){var e=this;this._dataSource&&this._dataSource.store().on("updating",function(t){e._updatedAppointment=t}.bind(this)),this._dataSource&&this._dataSource.store().on("push",function(t){t.forEach(function(t){e._updatedAppointmentKeys.push({key:e._dataSource.store().key(),value:t.key})}.bind(e))}.bind(this))}},{key:"getUpdatedAppointment",value:function(){return this._updatedAppointment}},{key:"getUpdatedAppointmentKeys",value:function(){return this._updatedAppointmentKeys}},{key:"cleanModelState",value:function(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]}},{key:"setDataAccessors",value:function(e){this._dataAccessors=e,this._filterMaker=new T(e)}},{key:"filterByDate",value:function(e,t,n,i){if(this._dataSource){var o=this._trimDates(e,t);this._filterMaker.isRegistered()?(this._filterMaker.make("date",[o.min,o.max]),this._dataSource.filter()&&this._dataSource.filter().length>1&&this._filterMaker.make("user",[this._dataSource.filter()[1]]),n&&this._dataSource.filter(this._combineRemoteFilter(i))):this._createFilter(o.min,o.max,n,i)}}},{key:"_combineRemoteFilter",value:function(e){var t=this._filterMaker.combine();return this._serializeRemoteFilter(t,e)}},{key:"_serializeRemoteFilter",value:function(e,t){var n=this;if(!Array.isArray(e))return e;e=(0,x.extend)([],e);var i=n._dataAccessors.expr.startDateExpr,o=n._dataAccessors.expr.endDateExpr;v.default.isString(e[0])&&(0,s.default)().forceIsoDateParsing&&e.length>1&&(e[0]!==i&&e[0]!==o||(e[e.length-1]=c.default.serializeDate(e[e.length-1],t)));for(var a=0;a<e.length;a++)e[a]=n._serializeRemoteFilter(e[a],t);return e}},{key:"filterLoadedAppointments",value:function(e,t){v.default.isFunction(t)||(t=function(e){return e});var n=this._createCombinedFilter(e,t);if(this._filterMaker.isRegistered()){var i=this._trimDates(e.min,e.max);this._filterMaker.make("date",[i.min,i.max,!0]);var o=this.customizeDateFilter(this._filterMaker.combine(),t);n.push([o])}return(0,C.default)(this._dataSource.items()).filter(n).toArray()}},{key:"_trimDates",value:function(e,t){var n=g.default.trimTime(new Date(e)),i=g.default.trimTime(new Date(t));return i.setDate(i.getDate()+1),{min:n,max:i}}},{key:"hasAllDayAppointments",value:function(e,t,n){if(!e)return!1;var i=this,o=!1;return u.default.each(e,function(e,a){if(i.appointmentTakesAllDay(a,t,n))return o=!0,!1}),o}},{key:"appointmentTakesAllDay",value:function(e,t,n){var i=this._dataAccessors,o=i.getter.startDate(e),a=i.getter.endDate(e),r=i.getter.allDay(e);return r||this._appointmentHasAllDayDuration(o,a,t,n)}},{key:"_appointmentHasAllDayDuration",value:function(e,t,n,i){e=new Date(e),t=new Date(t);var o=24,a=this._getAppointmentDurationInHours(e,t);return a>=o||this._appointmentHasShortDayDuration(e,t,n,i)}},{key:"_appointmentHasShortDayDuration",value:function(e,t,n,i){var o=this._getAppointmentDurationInHours(e,t),a=i-n;return o>=a&&e.getHours()===n&&t.getHours()===i}},{key:"_getAppointmentDurationInHours",value:function(e,t){return(t.getTime()-e.getTime())/I("hour")}},{key:"appointmentTakesSeveralDays",value:function(e){var t=this._dataAccessors,n=t.getter.startDate(e),i=t.getter.endDate(e),o=g.default.trimTime(new Date(n)),a=g.default.trimTime(new Date(i));return o.getTime()!==a.getTime()}},{key:"customizeDateFilter",value:function(e,t){var n=this,i=(0,x.extend)(!0,[],e);return function(e){var o=new Date(n._dataAccessors.getter.startDate(e)),a=new Date(n._dataAccessors.getter.endDate(e));a=n.fixWrongEndDate(e,o,a),e=(0,x.extend)(!0,{},e);var r=n._dataAccessors.getter.startDateTimeZone(e),s=n._dataAccessors.getter.endDateTimeZone(e),l=t(o,r),u=t(a,s);return n._dataAccessors.setter.startDate(e,l),n._dataAccessors.setter.endDate(e,u),(0,C.default)([e]).filter(i).toArray().length>0}.bind(this)}},{key:"fixWrongEndDate",value:function(e,t,n){return this._isEndDateWrong(e,t,n)&&(n=this._dataAccessors.getter.allDay(e)?g.default.setToDayEnd(new Date(t)):new Date(t.getTime()+this._baseAppointmentDuration*I("minute")),this._dataAccessors.setter.endDate(e,n)),n}},{key:"_isEndDateWrong",value:function(e,t,n){return!n||isNaN(n.getTime())||t.getTime()>n.getTime()}},{key:"add",value:function(e,t){var n=this;return this._dataSource.store().insert(e).done(function(){n._dataSource.load()}.bind(this))}},{key:"update",value:function(e,t){var n=this,i=this._getStoreKey(e),o=new k.Deferred;return this._dataSource.store().update(i,t).done(function(){n._dataSource.load().done(o.resolve).fail(o.reject)}).fail(o.reject),o.promise()}},{key:"remove",value:function(e){var t=this,n=this._getStoreKey(e);return this._dataSource.store().remove(n).done(function(){t._dataSource.load()}.bind(this))}}]),e}();e.exports=A},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=i(r),l=n(5),u=i(l),d=n(38),c=i(d),h=n(27),p=i(h),f=n(22),g=i(f),_=n(4),m=i(_),v=n(1),y=i(v),w=n(3),x=n(47),b=i(x),C=n(14),k=i(C),I=n(0),S=n(11),D=n(145),T=i(D),E=n(9),O=i(E),A=n(122),P=i(A),B=n(737),M=i(B),F=n(8),R=i(F),V=n(135),H=i(V),L=n(32),z=i(L),$=n(10),N=i($),W=n(55),j=i(W),q=n(6),G="dxAppointmentSettings",K="dx-scheduler-scrollable-appointments",U="dx-scheduler-appointment",Y="dx-scheduler-appointment-title",X="dx-scheduler-appointment-content-details",Z="dx-scheduler-appointment-content-date",Q="dx-scheduler-appointment-recurrence-icon",J="dx-scheduler-appointment-content-allday",ee=R.default.addNamespace(H.default.name,"dxSchedulerAppointment"),te=g.default.dateToMilliseconds,ne=j.default.inherit({ctor:function(e,t){this.callBase(e,t)},_supportedKeys:function(){var e=this.callBase(),t=function(e){var t=this._getAccessAppointments(),n=t.filter(".dx-state-focused"),i=n.data(G).sortedIndex,o=t.length-1;if(i>0&&e.shiftKey||i<o&&!e.shiftKey){e.preventDefault(),e.shiftKey?i--:i++;var a=this._getAppointmentByIndex(i);this._resetTabIndex(a),u.default.trigger(a,"focus")}};return(0,I.extend)(e,{escape:function(){this.moveAppointmentBack(),this._escPressed=!0}.bind(this),del:function(e){if(this.option("allowDelete")){e.preventDefault();var t=this._getItemData(e.target);this.notifyObserver("deleteAppointment",{data:t,target:e.target}),this.notifyObserver("hideAppointmentTooltip")}}.bind(this),tab:t})},_getAppointmentByIndex:function(e){var t=this._getAccessAppointments();return t.filter(function(t,n){return c.default.data(n,G).sortedIndex===e}).eq(0)},_getAccessAppointments:function(){return this._itemElements().filter(":visible").not(".dx-state-disabled")},_resetTabIndex:function(e){this._focusTarget().attr("tabIndex",-1),e.attr("tabIndex",this.option("tabIndex"))},_moveFocus:m.default.noop,_focusTarget:function(){return this._itemElements()},_renderFocusTarget:function(){var e=this._getAppointmentByIndex(0);this._resetTabIndex(e)},_focusInHandler:function(e){if(this._targetIsDisabled(e))return void e.stopPropagation();clearTimeout(this._appointmentFocusedTimeout),this.callBase.apply(this,arguments),this._$currentAppointment=(0,a.default)(e.target),this.option("focusedElement",(0,S.getPublicElement)((0,a.default)(e.target)));var t=this;this._appointmentFocusedTimeout=setTimeout(function(){t.notifyObserver("appointmentFocused")})},_targetIsDisabled:function(e){return(0,a.default)(e.currentTarget).is(".dx-state-disabled, .dx-state-disabled *")},_focusOutHandler:function(){var e=this._getAppointmentByIndex(0);this.option("focusedElement",(0,S.getPublicElement)(e)),this.callBase.apply(this,arguments)},_eventBindingTarget:function(){return this._itemContainer()},_getDefaultOptions:function(){return(0,I.extend)(this.callBase(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0})},_optionChanged:function(e){switch(e.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(e.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex((0,a.default)(e.value)),this.callBase(e);break;case"allowDelete":break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),this.callBase(e);break;default:this.callBase(e)}},_isAllDayAppointment:function(e){return e.settings.length&&e.settings[0].allDay||!1},_isRepaintAppointment:function(e){return!y.default.isDefined(e.needRepaint)||e.needRepaint===!0},_isRepaintAll:function(e){if(this.invoke("isCurrentViewAgenda"))return!0;for(var t=0;t<e.length;t++){var n=e[t];if(!this._isRepaintAppointment(n))return!1}return!0},_applyFragment:function(e,t){e.children().length>0&&this._getAppointmentContainer(t).append(e)},_onEachAppointment:function(e,t,n,i){return e&&e.needRemove===!0?void this._clearItem(e):void(this._isRepaintAppointment(e)&&(e.needRepaint=!1,!i&&this._clearItem(e),this._renderItem(t,e,n)))},_repaintAppointments:function(e){var t=this,n=this._isRepaintAll(e),i=(0,a.default)(s.default.createDocumentFragment()),o=(0,a.default)(s.default.createDocumentFragment());n&&(this._getAppointmentContainer(!0).html(""),this._getAppointmentContainer(!1).html("")),!e.length&&this._cleanItemContainer(),e.forEach(function(e,a){var r=t._isAllDayAppointment(e)?i:o;t._onEachAppointment(e,a,r,n)}),this._applyFragment(i,!0),this._applyFragment(o,!1)},_attachAppointmentsEvents:function(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_clearItem:function(e){var t=this._findItemElementByItem(e.itemData);t.length&&(0,w.each)(t,function(e,t){t.detach(),t.remove()})},_clearDropDownItems:function(){this._virtualAppointments={}},_clearDropDownItemsElements:function(){this.invoke("clearCompactAppointments")},_findItemElementByItem:function(e){var t=[],n=this;return this.itemElements().each(function(){var i=(0,a.default)(this);i.data(n._itemDataKey())===e&&t.push(i)}),t},_itemClass:function(){return U},_itemContainer:function(){var e=this.callBase(),t=e,n=this.option("allDayContainer");return n&&(t=e.add(n)),t},_cleanItemContainer:function(){this.callBase();var e=this.option("allDayContainer");e&&e.empty(),this._virtualAppointments={}},_clean:function(){this.callBase(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates},_init:function(){this.callBase(),this.$element().addClass(K),this._preventSingleAppointmentClick=!1},_renderAppointmentTemplate:function(e,t,n){var i=n.appointmentData.settings?new Date(this.invoke("getField","startDate",n.appointmentData.settings)):t.recurrenceRule?n.targetedAppointmentData.startDate:t.startDate,o=n.appointmentData.settings?new Date(this.invoke("getField","endDate",n.appointmentData.settings)):t.recurrenceRule?n.targetedAppointmentData.endDate:t.endDate;(isNaN(i)||isNaN(o))&&(i=t.startDate,o=t.endDate),(0,a.default)("<div>").text(this._createAppointmentTitle(t)).addClass(Y).appendTo(e),y.default.isPlainObject(t)&&t.html&&e.html(t.html);var r=t.recurrenceRule,s=t.allDay,l=(0,a.default)("<div>").addClass(X),u=t.startDateTimeZone,d=t.endDateTimeZone;i=this.invoke("convertDateByTimezone",i,u),o=this.invoke("convertDateByTimezone",o,d),(0,a.default)("<div>").addClass(Z).text(z.default.format(i,"shorttime")).appendTo(l),(0,a.default)("<div>").addClass(Z).text(" - ").appendTo(l),(0,a.default)("<div>").addClass(Z).text(z.default.format(o,"shorttime")).appendTo(l),l.appendTo(e),r&&(0,a.default)("<span>").addClass(Q+" dx-icon-repeat").appendTo(e),s&&(0,a.default)("<div>").text(" "+N.default.format("dxScheduler-allDay")+": ").addClass(J).prependTo(l)},_createAppointmentTitle:function(e){return y.default.isPlainObject(e)?e.text:String(e)},_executeItemRenderAction:function(e,t,n){var i=this._getItemRenderAction();i&&i({appointmentElement:n,appointmentData:t,targetedAppointmentData:this.invoke("getTargetedAppointmentData",t,n)}),delete this._currentAppointmentSettings},_itemClickHandler:function(e){this.callBase(e,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})},_processItemClick:function(e){var t=(0,a.default)(e.currentTarget),n=this._getItemData(t);return this._targetIsDisabled(e)?void e.stopPropagation():"keydown"===e.type||R.default.isFakeClickEvent(e)?void this.notifyObserver("showEditAppointmentPopup",{data:n,target:t}):void(this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&s.default.getBody().contains(t[0])&&this.notifyObserver("showAppointmentTooltip",{data:n,target:t}),this._preventSingleAppointmentClick=!1}.bind(this),300))},_extendActionArgs:function(){var e=this.callBase.apply(this,arguments);return this.invoke("mapAppointmentFields",e)},_render:function(){this.callBase.apply(this,arguments),this._attachAppointmentDblClick()},_attachAppointmentDblClick:function(){var e=this,t=e._itemSelector(),n=this._itemContainer();u.default.off(n,ee,t),u.default.on(n,ee,t,function(t){e._itemDXEventHandler(t,"onAppointmentDblClick",{},{afterExecute:function(t){e._dblClickHandler(t.args[0].event)}})})},_dblClickHandler:function(e){var t=(0,a.default)(e.currentTarget),n=this._getItemData(t);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:n,target:t})},_renderItem:function(e,t,n){for(var i=t.itemData,o=0;o<t.settings.length;o++){var a=t.settings[o];this._currentAppointmentSettings=a;var r=this.callBase(e,i,n);r.data(G,a)}},_getItemContent:function(e){e.data(G,this._currentAppointmentSettings);var t=this.callBase(e);return t},_createItemByTemplate:function(e,t){var n=t.itemData,i=t.container,o=t.index,r=this.invoke("getField","recurrenceRule",n);return e.render({model:{appointmentData:n,targetedAppointmentData:this.invoke("getTargetedAppointmentData",n,(0,a.default)(i).parent(),!!r)},container:i,index:o})},_getAppointmentContainer:function(e){var t=this.option("allDayContainer"),n=this.itemsContainer().not(t);return e&&t&&(n=t),n},_postprocessRenderItem:function(e){this._renderAppointment(e.itemElement,this._currentAppointmentSettings)},_renderAppointment:function(e,t){e.data(G,t),this._applyResourceDataAttr(e);var n=this._getItemData(e),i=this.invoke("getAppointmentGeometry",t),o=!t.isCompact&&this.option("allowResize")&&(!y.default.isDefined(t.skipResizing)||y.default.isString(t.skipResizing)),a=this.option("allowDrag"),r=t.allDay;this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,i);var s=this._getAppointmentColor(e,t.groupIndex);t.virtual?this._processVirtualAppointment(t,e,n,s):(this._createComponent(e,M.default,{observer:this.option("observer"),data:n,geometry:i,direction:t.direction||"vertical",allowResize:o,allowDrag:a,allDay:r,reduced:t.appointmentReduced,isCompact:t.isCompact,startDate:new Date(t.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(n,t)}),s.done(function(t){t&&e.css("backgroundColor",t);
}))},_applyResourceDataAttr:function(e){this.notifyObserver("getResourcesFromItem",{itemData:this._getItemData(e),callback:function(t){t&&(0,w.each)(t,function(t,n){for(var i="data-"+m.default.normalizeKey(t.toLowerCase())+"-",o=0;o<n.length;o++)e.attr(i+m.default.normalizeKey(n[o]),!0)})}})},_resizableConfig:function(e,t){return{area:this._calculateResizableArea(t,e),onResizeStart:function(e){if(this._$currentAppointment=(0,a.default)(e.element),this.invoke("needRecalculateResizableArea")){var t=this._calculateResizableArea(this._$currentAppointment.data(G),this._$currentAppointment.data("dxItemData"));e.component.option("area",t),e.component._renderDragOffsets(e.event)}this._initialSize={width:e.width,height:e.height},this._initialCoordinates=p.default.locate(this._$currentAppointment)}.bind(this),onResizeEnd:function(e){return this._escPressed?void(e.event.cancel=!0):void this._resizeEndHandler(e)}.bind(this)}},_calculateResizableArea:function(e,t){var n=this.$element().closest(".dx-scrollable-content");return this.notifyObserver("getResizableAppointmentArea",{coordinates:{left:e.left,top:0,groupIndex:e.groupIndex},allDay:e.allDay,callback:function(e){e&&(n=e)}}),n},_resizeEndHandler:function(e){var t=(0,a.default)(e.element),n=this._getItemData(t),i=this.invoke("getStartDate",n,!0),o=this.invoke("getEndDate",n,!0),r=this._getDateRange(e,i,o),s={};this.invoke("setField","startDate",s,new Date(r[0])),this.invoke("setField","endDate",s,new Date(r[1]));var l=(0,I.extend)({},n,s);this.notifyObserver("updateAppointmentAfterResize",{target:n,data:l,$appointment:t})},_getDateRange:function(e,t,n){var i,o,a=this._getItemData(e.element),r=this.invoke("getDeltaTime",e,this._initialSize,a),s=this.invoke("getRenderingStrategyDirection"),l=!1,u=this.invoke("isAllDay",a),d=this.invoke("needCorrectAppointmentDates")&&!u;return l="vertical"!==s||u?this.option("rtlEnabled")?e.handles.right:e.handles.left:e.handles.top,l?(i=d?this._correctStartDateByDelta(t,r):t.getTime()-r,o=n.getTime()):(i=t.getTime(),o=d?this._correctEndDateByDelta(n,r):n.getTime()+r),[i,o]},_correctEndDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()+t,a=(n-i)*te("hour"),r=t>0?Math.ceil(t/a):Math.floor(t/a),s=new Date(e),l=new Date(e);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),o>s.getTime()||o<=l.getTime()){var u=s.getTime()-e.getTime(),d=t-u,c=new Date(e.setDate(e.getDate()+r));c.setHours(i,0,0,0),o=c.getTime()+d-a*(r-1)}return o},_correctStartDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()-t,a=(n-i)*te("hour"),r=t>0?Math.ceil(t/a):Math.floor(t/a),s=new Date(e),l=new Date(e);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),o<l.getTime()||o>=s.getTime()){var u=e.getTime()-l.getTime(),d=t-u,c=new Date(e.setDate(e.getDate()-r));c.setHours(n,0,0,0),o=c.getTime()-d+a*(r-1)}return o},_tryGetAppointmentColor:function(e){var t=(0,a.default)(e).data(G);if(t)return this._getAppointmentColor(e,t.groupIndex)},_getAppointmentColor:function(e,t){var n=new q.Deferred;return this.notifyObserver("getAppointmentColor",{itemData:this._getItemData(e),groupIndex:t,callback:function(e){return e.done(function(e){return n.resolve(e)})}}),n.promise()},_calculateBoundOffset:function(){var e={top:0};return this.notifyObserver("getBoundOffset",{callback:function(t){e=t}}),e},_virtualAppointments:{},_processVirtualAppointment:function(e,t,n,i){var o=e.virtual,a=o.index;y.default.isDefined(this._virtualAppointments[a])||(this._virtualAppointments[a]={coordinates:{top:o.top,left:o.left},items:{data:[],colors:[]},isAllDay:!!o.isAllDay,buttonColor:i}),n.settings=[e],this._virtualAppointments[a].items.data.push(n),this._virtualAppointments[a].items.colors.push(i),t.remove()},_renderContentImpl:function(){this.callBase(),this._renderDropDownAppointments()},_renderDropDownAppointments:function(){(0,w.each)(this._virtualAppointments,function(e){var t=this._virtualAppointments[e],n=t.items,i=t.coordinates,o=t.isAllDay?this.option("allDayContainer"):this.$element(),a=i.left,r=this.invoke("getDropDownAppointmentWidth",t.isAllDay),s=this.invoke("getDropDownAppointmentHeight"),l=0;this.option("rtlEnabled")&&(l=r),this.notifyObserver("renderCompactAppointments",{$container:o,coordinates:{top:i.top,left:a+l},items:n,buttonColor:t.buttonColor,itemTemplate:this.option("itemTemplate"),width:r-this.option("_collectorOffset"),height:s,onAppointmentClick:this.option("onItemClick"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(t),applyOffset:!t.isAllDay&&this.invoke("isApplyCompactAppointmentOffset")})}.bind(this))},_isGroupCompact:function(e){return!e.isAllDay&&this.invoke("supportCompactDropDownAppointments")},_sortAppointmentsByStartDate:function(e){e.sort(function(e,t){var n=0,i=new Date(this.invoke("getField","startDate",e.settings||e)).getTime(),o=new Date(this.invoke("getField","startDate",t.settings||t)).getTime();return i<o&&(n=-1),i>o&&(n=1),n}.bind(this))},_processRecurrenceAppointment:function(e,t,n){var i=this.invoke("getField","recurrenceRule",e),o={parts:[],indexes:[]};if(i){for(var a=e.settings||e,r=new Date(this.invoke("getField","startDate",a)),s=new Date(this.invoke("getField","endDate",a)),l=s.getTime()-r.getTime(),u=this.invoke("getField","recurrenceException",e),d=this.invoke("getStartViewDate"),c=this.invoke("getEndViewDate"),h=T.default.getDatesByRecurrence({rule:i,exception:u,start:r,end:s,min:d,max:c}),p=e.settings?1:h.length,f=0;f<p;f++){var g=(0,I.extend)({},e,!0);if(h[f]){var _=this._applyStartDateToObj(h[f],{});this._applyEndDateToObj(new Date(h[f].getTime()+l),_),g.settings=_}else g.settings=a;o.parts.push(g),n||this._processLongAppointment(g,o)}o.indexes.push(t)}return o},_processLongAppointment:function(e,t){var n=this.splitAppointmentByDay(e),i=n.length,o=this.invoke("getEndViewDate").getTime(),a=this.invoke("getStartViewDate").getTime(),r=this.invoke("getField","startDateTimeZone",e);if(t=t||{parts:[]},i>1){(0,I.extend)(e,n[0]);for(var s=1;s<i;s++){var l=this.invoke("getField","startDate",n[s].settings).getTime();l=this.invoke("convertDateByTimezone",l,r),l<o&&l>a&&t.parts.push(n[s])}}return t},_reduceRecurrenceAppointments:function(e,t){(0,w.each)(e,function(e,n){t.splice(n-e,1)})},_combineAppointments:function(e,t){t.length&&k.default.merge(e,t),this._sortAppointmentsByStartDate(e)},_applyStartDateToObj:function(e,t){return this.invoke("setField","startDate",t,e),t},_applyEndDateToObj:function(e,t){return this.invoke("setField","endDate",t,e),t},moveAppointmentBack:function(e){var t=this._$currentAppointment,n=this._initialSize,i=this._initialCoordinates;e&&(y.default.isDeferred(e.cancel)?e.cancel.resolve(!0):e.cancel=!0),this.notifyObserver("moveBack"),t&&!e&&(i&&(p.default.move(t,i),delete this._initialSize),n&&(t.outerWidth(n.width),t.outerHeight(n.height),delete this._initialCoordinates))},focus:function(){if(this._$currentAppointment){var e=(0,S.getPublicElement)(this._$currentAppointment);this.option("focusedElement",e),u.default.trigger(e,"focus")}},splitAppointmentByDay:function(e){var t=e.settings||e,n=new Date(this.invoke("getField","startDate",t)),i=g.default.makeDate(n),o=g.default.makeDate(this.invoke("getField","endDate",t)),a=this.invoke("getField","startDateTimeZone",e),r=this.invoke("getField","endDateTimeZone",e),s=this.invoke("getEndViewDate"),l=this.invoke("getStartDayHour"),u=this.invoke("getEndDayHour"),d=this.invoke("appointmentTakesSeveralDays",e),c=[];for(i=this.invoke("convertDateByTimezone",i,a),o=this.invoke("convertDateByTimezone",o,r),i.getHours()<=u&&i.getHours()>=l&&!d&&(c.push(this._applyStartDateToObj(new Date(i),{appointmentData:e})),i.setDate(i.getDate()+1));d&&i.getTime()<o.getTime()-1&&i<s;){var h=new Date(i),p=new Date(i);this._checkStartDate(h,n,l),this._checkEndDate(p,o,u);var f=b.default.deepExtendArraySafe({},e,!0),_={};this._applyStartDateToObj(h,_),this._applyEndDateToObj(p,_),f.settings=_,c.push(f),i.setDate(i.getDate()+1),i.setHours(l)}return c},_checkStartDate:function(e,t,n){!g.default.sameDate(e,t)||e.getHours()<=n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},_checkEndDate:function(e,t,n){!g.default.sameDate(e,t)||e.getHours()>n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}}).include(P.default);(0,O.default)("dxSchedulerAppointments",ne),e.exports=ne},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(27),u=i(l),d=n(145),c=i(d),h=n(0),p=n(9),f=i(p),g=n(259),_=i(g),m=n(122),v=i(m),y=n(8),w=i(y),x=n(23),b=i(x),C=n(85),k=i(C),I=n(178),S=i(I),D=n(10),T=i(D),E=n(32),O=i(E),A="left right",P="top bottom",B=w.default.addNamespace(b.default.enter,"dxSchedulerAppointment"),M=w.default.addNamespace(b.default.leave,"dxSchedulerAppointment"),F="dx-scheduler-appointment-empty",R="dx-scheduler-all-day-appointment",V={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},H="dx-scheduler-appointment-recurrence",L="dx-scheduler-appointment-compact",z="dx-scheduler-appointment-reduced",$="dx-scheduler-appointment-reduced-icon",N={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},W=k.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{data:{},geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{},cellHeight:0,cellWidth:0})},_optionChanged:function(e){switch(e.name){case"data":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;default:this.callBase(e)}},_getHorizontalResizingRule:function(){var e={head:this.option("rtlEnabled")?"right":"left",body:"",tail:this.option("rtlEnabled")?"left":"right"};return{handles:this.option("reduced")?e[this.option("reduced")]:A,minHeight:0,minWidth:this.invoke("getCellWidth"),step:this.invoke("getResizableStep")}},_getVerticalResizingRule:function(){var e=this.invoke("getCellHeight");return{handles:P,minWidth:0,minHeight:e,step:e}},_render:function(){this.callBase(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderCompactClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate")),this.$element().attr("title",this.invoke("getField","text",this.option("data"))),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable()},_renderAppointmentGeometry:function(){var e=this.option("geometry"),t=this.$element();u.default.move(t,{top:e.top,left:e.left}),t.css({width:e.width<0?0:e.width,height:e.height<0?0:e.height})},_renderEmptyClass:function(){var e=this.option("geometry");(e.empty||this.option("isCompact"))&&this.$element().addClass(F)},_renderReducedAppointment:function(){var e=this.option("reduced");e&&(this.$element().toggleClass(z,!0).toggleClass(N[e],!0),this._renderAppointmentReducedIcon())},_renderAppointmentReducedIcon:function(){var e=(0,a.default)("<div>").addClass($).appendTo(this.$element()),t=this._getEndDate(),n=T.default.format("dxScheduler-editorLabelEndDate"),i=[n,": ",O.default.format(t,"monthAndDay"),", ",O.default.format(t,"year")].join("");s.default.off(e,B),s.default.on(e,B,function(){_.default.show({target:e,content:i})}),s.default.off(e,M),s.default.on(e,M,function(){_.default.hide()})},_getEndDate:function(){var e=this.invoke("getField","endDate",this.option("data"));return e?new Date(e):e},_renderAllDayClass:function(){this.$element().toggleClass(R,!!this.option("allDay"))},_renderRecurrenceClass:function(){var e=this.invoke("getField","recurrenceRule",this.option("data"));c.default.getRecurrenceRule(e).isValid&&this.$element().addClass(H)},_renderCompactClass:function(){this.$element().toggleClass(L,!!this.option("isCompact"))},_renderDirection:function(){this.$element().addClass(V[this.option("direction")])},_createResizingConfig:function(){var e="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return e.roundStepValue=!0,this.invoke("isGroupedByDate")||(e.stepPrecision="strict"),e},_renderResizable:function(){this.option("allowResize")&&!this.option("isCompact")&&this._createComponent(this.$element(),S.default,(0,h.extend)(this._createResizingConfig(),this.option("resizableConfig")))}}).include(v.default);(0,f.default)("dxSchedulerAppointment",W),e.exports=W},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(4),s=n(739),l=i(s),u=n(399),d=i(u),c=n(400),h=i(c),p=n(741),f=i(p),g=n(742),_=i(g),m={horizontal:d.default,horizontalMonth:f.default,horizontalMonthLine:h.default,vertical:l.default,agenda:_.default},v=function(){function e(t,n){o(this,e),this.instance=t,n&&this.initRenderingStrategy(n)}return a(e,[{key:"getCellDimensions",value:function(e){this.instance._workSpace&&e.callback(this.instance._workSpace.getCellWidth(),this.instance._workSpace.getCellHeight(),this.instance._workSpace.getAllDayHeight())}},{key:"getGroupOrientation",value:function(e){this.instance._workSpace&&e.callback(this.instance._workSpace._getRealGroupOrientation())}},{key:"initRenderingStrategy",value:function(e){var t=m[e];this._renderingStrategyInstance=new t(this.instance),this.renderingStrategy=e}},{key:"createAppointmentsMap",value:function(e){var t=this;return this.getCellDimensions({callback:function(e,n,i){t.instance._cellWidth=e,t.instance._cellHeight=n,t.instance._allDayCellHeight=i}}),this.getGroupOrientation({callback:function(e){return t.instance._groupOrientation=e}}),this._positionMap=this._renderingStrategyInstance.createTaskPositionMap(e),this._createAppointmentsMapCore(e||[],this._positionMap)}},{key:"_createAppointmentsMapCore",value:function(e,t){var n=this;return e.map(function(e,i){n._renderingStrategyInstance.keepAppointmentSettings()||delete e.settings;var o=t[i];return o.forEach(function(e){e.direction="vertical"!==n.renderingStrategy||e.allDay?"horizontal":"vertical"}),{itemData:e,settings:o,needRepaint:!0,needRemove:!1}})}},{key:"_hasChangesInData",value:function(e){var t=this.instance.getUpdatedAppointment();return t===e||this.instance.getUpdatedAppointmentKeys().some(function(t){return e[t.key]===t.value})}},{key:"_hasChangesInSettings",value:function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(o&&(o.sortedIndex=i.sortedIndex),!(0,r.equalByValue)(i,o))return!0}return!1}},{key:"_getEqualAppointmentFromList",value:function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(i.itemData===e.itemData)return i}return null}},{key:"_getDeletedAppointments",value:function(e,t){for(var n=[],i=0;i<t.length;i++){var o=t[i],a=this._getEqualAppointmentFromList(o,e);a||(o.needRemove=!0,n.push(o))}return n}},{key:"getRepaintedAppointments",value:function(e,t){if(0===t.length||"agenda"===this.renderingStrategy)return e;for(var n=0;n<e.length;n++){var i=e[n],o=this._getEqualAppointmentFromList(i,t);o&&(i.needRepaint=this._hasChangesInData(i.itemData)||this._hasChangesInSettings(i.settings,o.settings))}return e.concat(this._getDeletedAppointments(e,t))}},{key:"getRenderingStrategyInstance",value:function(){return this._renderingStrategyInstance}}]),e}();e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(269),d=i(u),c=n(0),h=n(1),p=n(16),f=i(p),g=n(22),_=i(g),m=25,v=50,y=5,w=5,x=20,b=_.default.dateToMilliseconds,C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getDeltaTime",value:function(e,t,n){var i=0;if(this.isAllDay(n))i=this._getDeltaWidth(e,t)*b("day");else{var o=e.height-t.height;i=b("minute")*Math.round(o/this.getDefaultCellHeight()*this.instance.getAppointmentDurationInMinutes())}return i}},{key:"_correctCompactAppointmentCoordinatesInAdaptive",value:function(e,n){if(n)l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_correctCompactAppointmentCoordinatesInAdaptive",this).call(this,e,n);else if(0===this._getMaxAppointmentCountPerCellByType()){var i=this.getDefaultCellHeight(),o=this.getDefaultCellWidth();e.top+=(i-this.getDropDownButtonAdaptiveSize())/2,e.left+=(o-this.getDropDownButtonAdaptiveSize())/2}}},{key:"getAppointmentGeometry",value:function(e){var n=null;return n=e.allDay?this._getAllDayAppointmentGeometry(e):this._isAdaptive()&&e.isCompact?this._getAdaptiveGeometry(e):this._getVerticalAppointmentGeometry(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getAppointmentGeometry",this).call(this,n)}},{key:"_getAdaptiveGeometry",value:function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)}},{key:"_getItemPosition",value:function(e){var n=this.isAllDay(e),i=!!this.instance.fire("getField","recurrenceRule",e);if(n)return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getItemPosition",this).call(this,e);for(var o=this._getAppointmentCoordinates(e),a=[],r=0;r<o.length;r++){var s=this.calculateAppointmentHeight(e,o[r],i),u=this.calculateAppointmentWidth(e,o[r],i),d=s,h=null,p=[],f=o[r].vMax;this._isMultiDayAppointment(o[r],s)&&(h="head",d=this._reduceMultiDayAppointment(s,{top:o[r].top,bottom:f}),p=this._getAppointmentParts({sourceAppointmentHeight:s,reducedHeight:d,width:u},o[r])),(0,c.extend)(o[r],{height:d,width:u,allDay:n,appointmentReduced:h}),a=this._getAppointmentPartsPosition(p,o[r],a)}return a}},{key:"_isMultiDayAppointment",value:function(e,t){var n=e.vMax,i=t>n-e.top;return i}},{key:"_reduceMultiDayAppointment",value:function(e,t){return e=t.bottom-Math.floor(t.top)}},{key:"_getAppointmentParts",value:function(e,t){var n=e.sourceAppointmentHeight-e.reducedHeight,i=e.width,o=[],a=this.instance.fire("getGroupTop",t.groupIndex),r=this.instance.fire("isGroupedByDate")?this.getDefaultCellWidth()*this.instance.fire("getGroupCount"):this.getDefaultCellWidth(),s=t.left+r;if(n){var l=this.getAppointmentMinSize();n<l&&(n=l),a+=this.instance.fire("getOffsetByAllDayPanel",t.groupIndex),o.push((0,c.extend)(!0,{},t,{top:a,left:s,height:n,width:i,appointmentReduced:"tail",rowIndex:++t.rowIndex}))}return o}},{key:"_getMinuteHeight",value:function(){return this.getDefaultCellHeight()/this.instance.getAppointmentDurationInMinutes()}},{key:"_getCompactLeftCoordinate",value:function(e,t){var n=1,i=this.getDefaultCellWidth()||this.getAppointmentMinSize();return e+(n+i)*t}},{key:"_checkLongCompactAppointment",value:function(e,t){return this._splitLongCompactAppointment(e,t),t}},{key:"_getVerticalAppointmentGeometry",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell");if(t){var n=this._calculateVerticalGeometryConfig(e);return this._customizeVerticalCoordinates(e,n.width,n.appointmentCountPerCell,n.offset)}var i=this._getAppointmentMaxWidth()/e.count,o=e.height,a=e.top,r=e.left+e.index*i;return i<y&&(i=y),{height:o,width:i,top:a,left:r,empty:this._isAppointmentEmpty(o,i)}}},{key:"_customizeVerticalCoordinates",value:function(e,t,n,i,o){var a,r,s=e.index,l=Math.max(t/n,t/e.count),u=e.height,d=e.left+e.index*l,c=e.top;return e.isCompact&&(a=this.getCompactAppointmentDefaultWidth(),r=this.getCompactAppointmentLeftOffset(),c=e.top+r,d=e.left+(s-n)*(a+r)+r,l=a,t=a,this._markAppointmentAsVirtual(e,o)),{height:u,width:l,top:c,left:d,empty:this._isAppointmentEmpty(u,t)}}},{key:"_calculateVerticalGeometryConfig",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxWidth();o||(o=e.count,a=(r-n.unlimited)/r);var s=(1-a)*r;return("auto"===t||(0,h.isNumeric)(t))&&(a=1,r-=i,s=0),{width:a*r,appointmentCountPerCell:o,offset:s}}},{key:"_getMaxWidth",value:function(){return this.getDefaultCellWidth()||this.invoke("getCellWidth")}},{key:"isAllDay",value:function(e){var t=this.instance.fire("getField","allDay",e);return!!t||this.instance.appointmentTakesAllDay(e)}},{key:"_getAppointmentMaxWidth",value:function(){var e="desktop"!==f.default.current().deviceType||this.instance.fire("isAdaptive")?v:m,t=this.getDefaultCellWidth()-e;return t>0?t:this.getAppointmentMinSize()}},{key:"calculateAppointmentWidth",value:function(e,t,n){if(!this.isAllDay(e))return 0;var i=new Date(this.startDate(e,!1,t)),o=this.endDate(e,t,n),a=this.getDefaultCellWidth()||this.getAppointmentMinSize();i=_.default.trimTime(i);var r=(o.getTime()-i.getTime())/b("hour"),s=Math.ceil(r/24)*a;return s=this.cropAppointmentWidth(s,a)}},{key:"calculateAppointmentHeight",value:function(e,t,n){var i=this.endDate(e,t,n),o=this.startDate(e,!1,t),a=this.instance.fire("getField","allDay",e);if(this.isAllDay(e))return 0;var r=this._getAppointmentDurationInMs(o,i,a),s=this._adjustDurationByDaylightDiff(r,o,i)/b("minute"),l=s*this._getMinuteHeight();return l}},{key:"getDirection",value:function(){return"vertical"}},{key:"_sortCondition",value:function(e,t){var n=e.allDay-t.allDay,i=e.allDay&&t.allDay,o="vertical"===this.instance._groupOrientation&&i?this._columnCondition(e,t):this._rowCondition(e,t),a=n?n:o;return this._fixUnstableSorting(a,e,t)}},{key:"hasAllDayAppointments",value:function(){return!0}},{key:"_getAllDayAppointmentGeometry",value:function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset,!0)}},{key:"_calculateGeometryConfig",value:function(e){this.instance._allowResizing()&&this.instance._allowAllDayResizing()||(e.skipResizing=!0);var n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_calculateGeometryConfig",this).call(this,e);return e.count<=this._getDynamicAppointmentCountPerCell().allDay&&(n.offset=0),n}},{key:"_getAppointmentCount",value:function(e,t){return"auto"===e||1!==t.count||(0,h.isNumeric)(e)?this._getMaxAppointmentCountPerCellByType(t.allDay):t.count}},{key:"_getDefaultRatio",value:function(e,t){return e.count>this.instance.option("_appointmentCountPerCell")?.65:1}},{key:"_getOffsets",value:function(){return{unlimited:w,auto:x}}},{key:"_getMaxHeight",value:function(){return this.getDefaultAllDayCellHeight()||this.getAppointmentMinSize()}},{key:"_needVerticalGroupBounds",value:function(e){return!e}},{key:"_needHorizontalGroupBounds",value:function(){return!1}}]),t}(d.default);e.exports=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(398),d=i(u),c=28,h=40,p=35,f=30,g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getDropDownAppointmentWidth",value:function(e,t){return this.getDropDownButtonAdaptiveSize()}},{key:"getDropDownButtonAdaptiveSize",value:function(){return c}},{key:"getCompactAppointmentTopOffset",value:function(e){var t=this.getRenderingStrategy();return t.hasAllDayAppointments()&&e?(t.getDefaultAllDayCellHeight()-t.getDropDownButtonAdaptiveSize())/2:this.getRenderingStrategy().getDefaultCellHeight()-h}},{key:"getCompactAppointmentLeftOffset",value:function(){return(this.getRenderingStrategy().getDefaultCellWidth()-c)/2}},{key:"getAppointmentDefaultOffset",value:function(){return p}},{key:"getDynamicAppointmentCountPerCell",value:function(){var e=this.getRenderingStrategy();return e.hasAllDayAppointments()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0}},{key:"getDropDownAppointmentHeight",value:function(){return c}},{key:"_getAppointmentMinCount",value:function(){return 0}},{key:"_getAppointmentDefaultWidth",value:function(){var e=this.getRenderingStrategy();return e.hasAllDayAppointments()?f:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getAppointmentDefaultWidth",this).call(this)}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/this.getRenderingStrategy()._getAppointmentDefaultWidth())}}]),t}(d.default);e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(400),d=i(u),c=n(0),h=.6,p=26,f=30,g=36,_=60,m=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getAppointmentParts",value:function(e,t,n){var i=e.sourceAppointmentWidth-e.reducedWidth,o=e.height,a=this._getFullWeekAppointmentWidth(t.groupIndex),r=this._getMaxAppointmentWidth(n),s=Math.ceil(i/a)-1,l=Math.floor(i%a)||a,u=[],d=e.reducedWidth+l,h=t.top+this.getDefaultCellHeight(),p=this._calculateMultiWeekAppointmentLeftOffset(t.hMax,a);"vertical"===this.instance._groupOrientation&&(p+=this.instance.fire("getWorkSpaceDateTableOffset"));for(var f=0;f<s&&!(d>r);f++)u.push((0,c.extend)(!0,{},t,{top:h,left:p,height:o,width:a,appointmentReduced:"body",rowIndex:++t.rowIndex,cellIndex:0})),h+=this.getDefaultCellHeight(),d+=a;return l&&(this._isRtl()&&(p+=a-l),u.push((0,c.extend)(!0,{},t,{top:h,left:p,height:o,width:l,appointmentReduced:"tail",rowIndex:++t.rowIndex,cellIndex:0}))),u}},{key:"_calculateMultiWeekAppointmentLeftOffset",value:function(e,t){return this._isRtl()?e:e-t}},{key:"_getFullWeekAppointmentWidth",value:function(e){return this.instance.fire("getFullWeekAppointmentWidth",{groupIndex:e,callback:function(e){this._maxFullWeekAppointmentWidth=e}.bind(this)}),this._maxFullWeekAppointmentWidth}},{key:"_getAppointmentDefaultHeight",value:function(){return this._getAppointmentHeightByTheme()}},{key:"_getAppointmentMinHeight",value:function(){return this._getAppointmentDefaultHeight()}},{key:"_checkLongCompactAppointment",value:function(e,t){return this._splitLongCompactAppointment(e,t),t}},{key:"_columnCondition",value:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n),a=this._normalizeCondition(e.cellPosition,t.cellPosition,n);return o?o:i?i:a?a:e.isStart-t.isStart}},{key:"createTaskPositionMap",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createTaskPositionMap",this).call(this,e,!0)}},{key:"_getSortedPositions",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getSortedPositions",this).call(this,e,!0)}},{key:"_customizeAppointmentGeometry",value:function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)}},{key:"_getDefaultRatio",value:function(){return h}},{key:"_getOffsets",value:function(){return{unlimited:p,auto:f}}},{key:"getDropDownAppointmentWidth",value:function(e){if(this.instance.fire("isAdaptive"))return this.getDropDownButtonAdaptiveSize();var t=e>1?_:g;return this.getDefaultCellWidth()-t}},{key:"needCorrectAppointmentDates",value:function(){return!1}},{key:"_needVerticalGroupBounds",value:function(){return!1}},{key:"_needHorizontalGroupBounds",value:function(){return!0}}]),t}(d.default);e.exports=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(22),u=i(l),d=n(3),c=n(14),h=i(c),p=n(269),f=i(p),g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getAppointmentMinSize",value:function(){}},{key:"getDeltaTime",value:function(){}},{key:"keepAppointmentSettings",value:function(){return!0}},{key:"getAppointmentGeometry",value:function(e){return e}},{key:"createTaskPositionMap",
value:function(e){if(e.length){var t=this.instance.fire("getAgendaVerticalStepHeight"),n=this.instance.fire("groupAppointmentsByResources",e),i=[];(0,d.each)(n,function(e,t){var n=[],o=[];(0,d.each)(t,function(e,t){var i=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e),a=null;i.indexes.length||(a={parts:[]},a=this.instance.getAppointmentsInstance()._processLongAppointment(t),n=n.concat(a.parts)),n=n.concat(i.parts),o=o.concat(i.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(o,t),this.instance.getAppointmentsInstance()._combineAppointments(t,n),i=i.concat(t)}.bind(this)),Array.prototype.splice.apply(e,[0,e.length].concat(i))}var o=[],a=0;return e.forEach(function(e,i){o.push([{height:t,width:"100%",sortedIndex:a++,groupIndex:this._calculateGroupIndex(i,n)}])}.bind(this)),o}},{key:"_calculateGroupIndex",value:function(e,t){var n,i=0;for(var o in t){var a=t[o].length;if(e>=i&&e<i+a){n=Number(o);break}i+=a}return n}},{key:"_getDeltaWidth",value:function(){}},{key:"_getAppointmentMaxWidth",value:function(){return this.getDefaultCellWidth()}},{key:"_needVerifyItemSize",value:function(){return!1}},{key:"_isRtl",value:function(){return this.instance.option("rtlEnabled")}},{key:"_getAppointmentParts",value:function(){}},{key:"_reduceMultiWeekAppointment",value:function(){}},{key:"calculateAppointmentHeight",value:function(){return 0}},{key:"calculateAppointmentWidth",value:function(){return 0}},{key:"isAppointmentGreaterThan",value:function(){}},{key:"isAllDay",value:function(){return!1}},{key:"_sortCondition",value:function(){}},{key:"_rowCondition",value:function(){}},{key:"_columnCondition",value:function(){}},{key:"_findIndexByKey",value:function(){}},{key:"_getMaxNeighborAppointmentCount",value:function(){}},{key:"_markAppointmentAsVirtual",value:function(){}},{key:"getDropDownAppointmentWidth",value:function(){}},{key:"getDefaultCellWidth",value:function(){return this._defaultWidth}},{key:"getCompactAppointmentDefaultWidth",value:function(){}},{key:"getCompactAppointmentLeftOffset",value:function(){}},{key:"getCompactAppointmentTopOffset",value:function(){}},{key:"calculateRows",value:function(e,t,n,i){this._rows=[];var o={indexes:[],parts:[]},a=this.instance.fire("groupAppointmentsByResources",e);return n=u.default.trimTime(new Date(n)),(0,d.each)(a,function(e,a){var r=[];if(!a.length)return this._rows.push([]),!0;(0,d.each)(a,function(e,t){var n=this.instance.fire("getField","startDate",t),a=this.instance.fire("getField","endDate",t);this.instance.fire("fixWrongEndDate",t,n,a),i&&delete t.settings;var r=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e,!1);o.parts=o.parts.concat(r.parts),o.indexes=o.indexes.concat(r.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(o.indexes,a),h.default.merge(a,o.parts);for(var s=a.length,l=0;l<t;l++){var u=new Date(n);u.setMilliseconds(u.getMilliseconds()+864e5*l),void 0===r[l]&&(r[l]=0);for(var c=0;c<s;c++){var p=a[c].settings||a[c],f=this.instance.fire("appointmentTakesSeveralDays",a[c]),g=this.instance.fire("getField","recurrenceRule",a[c]);(this.instance.fire("dayHasAppointment",u,p,!0)||!g&&f&&this.instance.fire("dayHasAppointment",u,a[c],!0))&&(r[l]+=1)}}this._rows.push(r)}.bind(this)),this._rows}},{key:"_iterateRow",value:function(e,t,n){for(var i=0;i<e.length;i++)if(t.counter=t.counter+e[i],t.counter>=n){t.indexInRow=i;break}}},{key:"getDateByIndex",value:function(e,t,n){var i={counter:0,indexInRow:0};e++;for(var o=0;o<t.length&&(this._iterateRow(t[o],i,e),!i.indexInRow);o++);return new Date(new Date(n).setDate(n.getDate()+i.indexInRow))}},{key:"getAppointmentDataCalculator",value:function(){return function(e,t){var n=e.index(),i=this.instance.getStartViewDate(),o=this.getDateByIndex(n,this._rows,i),a=new Date(t);return{startDate:new Date(o.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))}}.bind(this)}}]),t}(f.default);e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.CompactAppointmentsHelper=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(35),u=i(l),d=n(27),c=i(d),h=n(10),p=i(h),f=n(99),g=n(6),_=i(g),m="dx-scheduler-appointment-collector",v=m+"-compact",y=m+"-content",w=5,x=1;t.CompactAppointmentsHelper=function(){function e(t){o(this,e),this.instance=t,this.elements=[]}return a(e,[{key:"render",value:function(e){var t=e.$container,n=e.width,i=e.height,o=e.items,a=e.isCompact,r=e.applyOffset,s=e.coordinates,l=e.buttonColor,u=this._createTemplate(o.data.length,a),d=this._createCompactButton(t,n,i,u,o,a,r,s),c=d.$element();return this._makeBackgroundColor(c,o.colors,l),this._makeBackgroundDarker(c),this.elements.push(c),c.data("items",this._createAppointmentsData(o)),c}},{key:"clear",value:function(){this.elements.forEach(function(e){e.detach(),e.remove()}),this.elements=[]}},{key:"_createAppointmentsData",value:function(e){return e.data.map(function(t,n){return{data:t,color:e.colors[n]}})}},{key:"_onButtonClick",value:function(e){var t=(0,s.default)(e.element);this.instance.showAppointmentTooltipCore(t,t.data("items"))}},{key:"_getCollectorOffset",value:function(e){return this.instance.fire("getCellWidth")-e-this._getCollectorRightOffset()}},{key:"_getCollectorRightOffset",value:function(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?x:w}},{key:"_makeBackgroundDarker",value:function(e){e.css("boxShadow","inset "+e.get(0).getBoundingClientRect().width+"px 0 0 0 rgba(0, 0, 0, 0.3)")}},{key:"_makeBackgroundColor",value:function(e,t,n){_.default.when.apply(null,t).done(function(){this._makeBackgroundColorCore(e,n,arguments)}.bind(this))}},{key:"_makeBackgroundColorCore",value:function(e,t,n){var i=!0,o=void 0;t&&t.done(function(t){if(n.length){o=n[0];for(var a=1;a<n.length;a++){if(o!==n[a]){i=!1;break}o=t}}t&&i&&e.css("backgroundColor",t)}.bind(this))}},{key:"_setPosition",value:function(e,t){c.default.move(e,{top:t.top,left:t.left})}},{key:"_createCompactButton",value:function(e,t,n,i,o,a,r,s){var l=this,d=this._createCompactButtonElement(e,t,a,r,s);return this.instance._createComponent(d,u.default,{type:"default",width:t,height:n,onClick:function(e){return l._onButtonClick(e)},template:this._renderTemplate(i,o,a)})}},{key:"_createCompactButtonElement",value:function(e,t,n,i,o){var a=(0,s.default)("<div>").addClass(m).toggleClass(v,n).appendTo(e),r=i?this._getCollectorOffset(t):0;return this._setPosition(a,{top:o.top,left:o.left+r}),a}},{key:"_renderTemplate",value:function(e,t,n){return new f.FunctionTemplate(function(i){return e.render({model:{appointmentCount:t.data.length,isCompact:n},container:i.container})})}},{key:"_createTemplate",value:function(e,t){return this._initButtonTemplate(e,t),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")}},{key:"_initButtonTemplate",value:function(e,t){var n=this;this.instance._defaultTemplates.appointmentCollector=new f.FunctionTemplate(function(i){return n._createButtonTemplate(e,(0,s.default)(i.container),t)})}},{key:"_createButtonTemplate",value:function(e,t,n){var i=n?e:p.default.getFormatter("dxScheduler-moreAppointments")(e);return t.append((0,s.default)("<span>").text(i)).addClass(y)}}]),e}()},function(e,t,n){var i=n(2),o=n(73),a=n(167),r=n(6).Deferred,s=null,l=function(e){return new a(i("<div>").appendTo(e&&e.container||o.value()),e)},u=function(){s&&(s.$element().remove(),s=null)};t.show=function(e){return u(),s=l(e),s.show()},t.hide=function(){return s?s.hide().done(u).promise():(new r).resolve()}},function(e,t,n){e.exports=n(746)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(2),c=i(d),h=n(5),p=i(h),f=n(0),g=n(1),_=i(g),m=n(6),v=n(10),y=i(v),w=n(9),x=i(w),b=n(17),C=i(b),k=n(299),I=i(k),S=n(747),D=i(S),T=n(749),E=n(750),O=i(E),A=n(402),P=i(A),B=n(751),M=i(B),F=n(752),R=i(F),V=n(753),H=i(V),L=n(754),z=i(L),$=n(756),N=i($),W=n(761),j=i(W),q=n(762),G=i(q),K="dx-filemanager",U=K+"-wrapper",Y=K+"-container",X=K+"-dirs-panel",Z=K+"-inactive-area",Q=K+"-editing-container",J=K+"-items-panel",ee=K+"-item-custom-thumbnail",te=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_initTemplates",value:function(){}},{key:"_initMarkup",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._onCurrentDirectoryChangedAction=this._createActionByOption("onCurrentDirectoryChanged"),this._onSelectedFileOpenedAction=this._createActionByOption("onSelectedFileOpened"),this._controller=new D.default({currentPath:this.option("currentPath"),rootText:this.option("rootFolderName"),fileProvider:this.option("fileProvider"),allowedFileExtensions:this.option("allowedFileExtensions"),maxUploadFileSize:this.option("upload").maxFileSize,onSelectedDirectoryChanged:this._onSelectedDirectoryChanged.bind(this)}),this._commandManager=new T.FileManagerCommandManager(this.option("permissions")),this.$element().addClass(K),this._createNotificationControl(),this._initCommandManager(),this._setItemsViewAreaActive(!1)}},{key:"_createNotificationControl",value:function(){var e=this,t=(0,c.default)("<div>").addClass("dx-filemanager-notification-container").appendTo(this.$element());this._notificationControl=this._createComponent(t,z.default,{progressPanelContainer:this.$element(),contentTemplate:function(t){return e._createWrapper(t)},onActionProgress:function(t){return e._onActionProgress(t)}}),this._editing.option("notificationControl",this._notificationControl)}},{key:"_createWrapper",value:function(e){this._$wrapper=(0,c.default)("<div>").addClass(U).appendTo(e),this._createEditing();var t=(0,c.default)("<div>").appendTo(this._$wrapper);this._toolbar=this._createComponent(t,H.default,{commandManager:this._commandManager,generalItems:this.option("toolbar.items"),fileItems:this.option("toolbar.fileSelectionItems"),itemViewMode:this.option("itemView").mode}),this._createAdaptivityControl()}},{key:"_createAdaptivityControl",value:function(){var e=this,t=(0,c.default)("<div>").addClass(Y).appendTo(this._$wrapper);this._adaptivityControl=this._createComponent(t,G.default,{drawerTemplate:function(t){return e._createFilesTreeView(t)},contentTemplate:function(t){return e._createItemsPanel(t)},onAdaptiveStateChanged:function(t){return e._onAdaptiveStateChanged(t)}})}},{key:"_createEditing",value:function(){var e=this,t=(0,c.default)("<div>").addClass(Q).appendTo(this.$element());this._editing=this._createComponent(t,N.default,{controller:this._controller,model:{getMultipleSelectedItems:this._getMultipleSelectedItems.bind(this)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),onSuccess:function(t){var n=t.updatedOnlyFiles;return e._redrawComponent(n)},onCreating:function(){return e._setItemsViewAreaActive(!1)}})}},{key:"_createItemsPanel",value:function(e){this._$itemsPanel=(0,c.default)("<div>").addClass(J).appendTo(e),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel)}},{key:"_createFilesTreeView",value:function(e){var t=this,n=(0,c.default)("<div>").addClass(X).appendTo(e);this._filesTreeView=this._createComponent(n,P.default,{storeExpandedState:!0,contextMenu:this._createContextMenu(),getDirectories:this.getDirectories.bind(this),getCurrentDirectory:this._getCurrentDirectory.bind(this),onDirectoryClick:this._onFilesTreeViewDirectoryClick.bind(this),onClick:function(){return t._setItemsViewAreaActive(!1)}})}},{key:"_createItemView",value:function(e,t){var n=this,i=this.option("itemView"),o={selectionMode:this.option("selectionMode"),contextMenu:this._createContextMenu(!0),getItems:this._getItemViewItems.bind(this),onError:function(e){var t=e.error;return n._showError(t)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns")},a=(0,c.default)("<div>").appendTo(e);t=t||i.mode;var r="thumbnails"===t?R.default:M.default;this._itemView=this._createComponent(a,r,o),p.default.on(a,"click",this._onItemViewClick.bind(this))}},{key:"_createBreadcrumbs",value:function(e){var t=this,n=(0,c.default)("<div>").appendTo(e);this._breadcrumbs=this._createComponent(n,j.default,{rootFolderDisplayName:this.option("rootFolderName"),onCurrentDirectoryChanging:function(e){var n=e.currentDirectory;return t._setCurrentDirectory(n)},onOutsideClick:function(){return t._clearSelection()}}),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory())}},{key:"_createContextMenu",value:function(e){var t=(0,c.default)("<div>").appendTo(this._$wrapper);return this._createComponent(t,O.default,{commandManager:this._commandManager,items:this.option("contextMenu.items"),isolateCreationItemCommands:e})}},{key:"_initCommandManager",value:function(){var e=this,t=(0,f.extend)(this._editing.getCommandActions(),{refresh:function(){return e._refreshAndShowProgress()},thumbnails:function(){return e.option("itemView.mode","thumbnails")},details:function(){return e.option("itemView.mode","details")},clear:function(){return e._clearSelection()},showNavPane:function(){return e._adaptivityControl.toggleDrawer()}});this._commandManager.registerActions(t)}},{key:"_onFilesTreeViewDirectoryClick",value:function(e){var t=e.itemData;this._setCurrentDirectory(t),this._setItemsViewAreaActive(!1)}},{key:"_onItemViewSelectionChanged",value:function(){this._updateToolbar()}},{key:"_onAdaptiveStateChanged",value:function(e){var t=e.enabled;this._commandManager.setCommandEnabled("showNavPane",t),this._updateToolbar()}},{key:"_onActionProgress",value:function(e){var t=e.message,n=e.status;this._toolbar.updateRefreshItem(t,n),this._updateToolbar()}},{key:"_refreshAndShowProgress",value:function(){var e=this;return this._notificationControl.tryShowProgressPanel(),this._controller.refresh().then(function(){return e._redrawComponent()})}},{key:"_updateToolbar",value:function(){var e=this._getSelectedItemInfos();this._toolbar.update(e)}},{key:"_setItemsViewAreaActive",value:function(e){if(this._itemsViewAreaActive!==e){this._itemsViewAreaActive=e;var t=null,n=null;e?(t=this._itemView.$element(),n=this._filesTreeView.$element()):(t=this._filesTreeView.$element(),n=this._itemView.$element()),t.removeClass(Z),n.addClass(Z),e||this._clearSelection()}}},{key:"_switchView",value:function(e){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,e),this._toolbar.option({itemViewMode:e})}},{key:"_disposeWidget",value:function(e){e.dispose(),e.$element().remove()}},{key:"_clearSelection",value:function(){this._itemView.clearSelection()}},{key:"_getMultipleSelectedItems",value:function(){return this._itemsViewAreaActive?this._getSelectedItemInfos():[this._getCurrentDirectory()]}},{key:"_showError",value:function(e){this._showNotification(e,!1)}},{key:"_showNotification",value:function(e,t){(0,I.default)({message:e,width:450},t?"success":"error",5e3)}},{key:"_redrawComponent",value:function(e){!e&&this._filesTreeView.refresh(),this._itemView.refresh()}},{key:"_getItemViewItems",value:function(){var e=this._getCurrentDirectory();if(!e)return(new m.Deferred).resolve([]).promise();var t=this.option("itemView").showFolders?this._controller.getDirectoryContents(e):this._controller.getFiles(e);if(this.option("itemView.showParentFolder")&&!e.fileItem.isRoot){var n=e.fileItem.createClone();n.isParentFolder=!0,n.name="..",n.relativeName="..",t=(0,m.when)(t).then(function(e){var t=[].concat(o(e));return t.unshift({fileItem:n,icon:"folder"}),t})}return t}},{key:"_onItemViewClick",value:function(){this._setItemsViewAreaActive(!0)}},{key:"_getItemThumbnailInfo",value:function(e){var t=this.option("customizeThumbnail"),n=_.default.isFunction(t)?t(e.fileItem):e.fileItem.thumbnail;return n?{thumbnail:n,cssClass:ee}:{thumbnail:e.icon}}},{key:"_getDefaultOptions",value:function(){return(0,f.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{fileProvider:null,currentPath:"",rootFolderName:y.default.format("dxFileManager-rootDirectoryName"),selectionMode:"multiple",toolbar:{items:["showNavPane","create","upload","refresh",{name:"separator",location:"after"},"viewSwitcher"],fileSelectionItems:["download","separator","move","copy","rename","separator","delete","refresh","clear"]},contextMenu:{items:["create","upload","rename","move","copy","delete","refresh","download"]},itemView:{mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onCurrentDirectoryChanged:null,onSelectedFileOpened:null,allowedFileExtensions:[".txt",".rtf",".doc",".docx",".odt",".xls",".xlsx",".ods",".ppt",".pptx",".odp",".pdf",".xml",".png",".svg",".gif",".jpg",".jpeg",".ico",".bmp",".avi",".mpeg",".mkv",""],upload:{maxFileSize:0},permissions:{create:!1,copy:!1,move:!1,remove:!1,rename:!1,upload:!1,download:!1}})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"currentPath":this._setCurrentPath(e.value);break;case"fileProvider":case"selectionMode":case"customizeThumbnail":case"customizeDetailColumns":case"rootFolderName":case"allowedFileExtensions":case"permissions":case"upload":this.repaint();break;case"itemView":"itemView.mode"===e.fullName?this._switchView(e.value):this.repaint();break;case"toolbar":this._toolbar.option((0,f.extend)(!0,e.value.items?{generalItems:e.value.items}:{},e.value.fileSelectionItems?{fileItems:e.value.fileSelectionItems}:{}));break;case"contextMenu":this._itemView.option("contextMenu",this._createContextMenu(!0)),this._filesTreeView.option("contextMenu",this._createContextMenu());break;case"onCurrentDirectoryChanged":this._onCurrentDirectoryChangedAction=this._createActionByOption("onCurrentDirectoryChanged");break;case"onSelectedFileOpened":this._onSelectedFileOpenedAction=this._createActionByOption("onSelectedFileOpened");break;default:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"executeCommand",value:function(e){return this._commandManager.executeCommand(e)}},{key:"_setCurrentDirectory",value:function(e){this._controller.setCurrentDirectory(e)}},{key:"_getCurrentDirectory",value:function(){return this._controller.getCurrentDirectory()}},{key:"_onSelectedDirectoryChanged",value:function(){var e=this._controller.getCurrentPath();this._filesTreeView.updateCurrentDirectory(),this._itemView.refresh(),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory()),this.option("currentPath",e),this._onCurrentDirectoryChangedAction()}},{key:"getDirectories",value:function(e){return this._controller.getDirectories(e)}},{key:"_getSelectedItemInfos",value:function(){return this._itemView.getSelectedItems()}},{key:"refresh",value:function(){return this.executeCommand("refresh")}},{key:"getCurrentDirectory",value:function(){var e=this._getCurrentDirectory();return e&&e.fileItem||null}},{key:"getSelectedItems",value:function(){return this._getSelectedItemInfos().map(function(e){return e.fileItem})}},{key:"_onSelectedItemOpened",value:function(e){var t=e.fileItemInfo,n=t.fileItem;if(!n.isDirectory)return void this._onSelectedFileOpenedAction({fileItem:n});var i=n.isParentFolder?this._getCurrentDirectory().parentDirectory:t;this._setCurrentDirectory(i),i&&this._filesTreeView.expandDirectory(i.parentDirectory)}},{key:"_setCurrentPath",value:function(e){this._controller.setCurrentPath(e)}}]),t}(C.default);(0,x.default)("dxFileManager",te),e.exports=te},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(164),l=n(401),u=i(l),d=n(748),c=i(d),h=n(296),p=i(h),f=n(297),g=i(f),_=n(165),m=n(204),v=i(m),y=n(6),w=n(14),x=n(0),b=function(){function e(t){a(this,e),t=t||{},this._options=(0,x.extend)({},t);var n=this._createRootDirectory(t.rootText);this._rootDirectoryInfo=this._createDirectoryInfo(n,null),this._currentDirectoryInfo=this._rootDirectoryInfo,this._defaultIconMap=this._createDefaultIconMap(),this._securityController=new C({allowedFileExtensions:this._options.allowedFileExtensions,maxFileSize:this._options.maxUploadFileSize}),this.setProvider(t.fileProvider),this._onSelectedDirectoryChanged=t&&t.onSelectedDirectoryChanged,this._loadedItems={},this.setCurrentPath(t.currentPath)}return r(e,[{key:"setProvider",value:function(e){this._fileProvider=this._createFileProvider(e),this._resetState()}},{key:"_createFileProvider",value:function(e){if(e||(e=[]),Array.isArray(e))return new u.default({data:e});if("string"==typeof e)return new c.default({url:e});if(e instanceof s.FileProvider)return e;switch(e.type){case"remote":return new p.default(e);case"custom":return new g.default(e)}return new u.default(e)}},{key:"setCurrentPath",value:function(e){var t=this,n=(0,_.getPathParts)(e),i=_.pathCombine.apply(void 0,o(n));if(this.getCurrentDirectory().fileItem.relativeName!==i)return this._getDirectoryByPathParts(this._rootDirectoryInfo,n).then(function(e){for(var n=e.parentDirectory;n;n=n.parentDirectory)n.expanded=!0;t.setCurrentDirectory(e)})}},{key:"getCurrentPath",value:function(){for(var e="",t=this.getCurrentDirectory();t&&!t.fileItem.isRoot;){var n=(0,_.getEscapedFileName)(t.fileItem.name);e=(0,_.pathCombine)(n,e),t=t.parentDirectory}return e}},{key:"getCurrentDirectory",value:function(){return this._currentDirectoryInfo}},{key:"setCurrentDirectory",value:function(e){if(e&&(!this._currentDirectoryInfo||this._currentDirectoryInfo!==e)){var t=this._currentDirectoryInfo.fileItem.key!==e.fileItem.key;this._currentDirectoryInfo=e,t&&this._raiseSelectedDirectoryChanged(e)}}},{key:"getDirectories",value:function(e){return this.getDirectoryContents(e).then(function(e){return e.filter(function(e){return e.fileItem.isDirectory})})}},{key:"getFiles",value:function(e){return this.getDirectoryContents(e).then(function(e){return e.filter(function(e){return!e.fileItem.isDirectory})})}},{key:"getDirectoryContents",value:function(e){var t=this;if(!e)return(new y.Deferred).resolve([this._rootDirectoryInfo]).promise();if(e.itemsLoaded)return(new y.Deferred).resolve(e.items).promise();var n=e.fileItem.key,i=this._loadedItems[n];if(i)return i;var o=this._getPathInfo(e);return i=this._getFileItems(o).then(function(n){return e.items=n.map(function(n){return n.isDirectory&&t._createDirectoryInfo(n,e)||t._createFileInfo(n,e)}),e.itemsLoaded=!0,e.items}),this._loadedItems[n]=i,i.then(function(){delete t._loadedItems[n]}),i}},{key:"_getFileItems",value:function(e){var t=this;return(0,y.when)(this._fileProvider.getItems(e)).then(function(e){return t._securityController.getAllowedItems(e)})}},{key:"createDirectory",value:function(e,t){var n=this,i=this._createEditActionInfo("create",e,e);return this._processEditAction(i,function(){return n._fileProvider.createFolder(e.fileItem,t)},function(){return n._resetDirectoryState(e)})}},{key:"renameItem",value:function(e,t){var n=this,i=this._createEditActionInfo("rename",e,e.parentDirectory);return this._processEditAction(i,function(){return e.fileItem.isDirectory||n._securityController.validateExtension(t),n._fileProvider.renameItem(e.fileItem,t)},function(){n._resetDirectoryState(e.parentDirectory),n.setCurrentDirectory(e.parentDirectory)})}},{key:"moveItems",value:function(e,t){var n=this,i=e.map(function(e){return e.fileItem}),o=this._createEditActionInfo("move",e,t);return this._processEditAction(o,function(){return n._fileProvider.moveItems(i,t.fileItem)},function(){e.forEach(function(e){return n._resetDirectoryState(e.parentDirectory)}),n._resetDirectoryState(t),n.setCurrentDirectory(t)})}},{key:"copyItems",value:function(e,t){var n=this,i=e.map(function(e){return e.fileItem}),o=this._createEditActionInfo("copy",e,t);return this._processEditAction(o,function(){return n._fileProvider.copyItems(i,t.fileItem)},function(){n._resetDirectoryState(t),n.setCurrentDirectory(t),t.expanded=!0})}},{key:"deleteItems",value:function(e){var t=this,n=e.map(function(e){return e.fileItem}),i=e.length>0?e[0].parentDirectory:null,o=this._createEditActionInfo("delete",e,i);return this._processEditAction(o,function(){return t._fileProvider.deleteItems(n)},function(){e.forEach(function(e){var n=e.parentDirectory;t._resetDirectoryState(n),t.setCurrentDirectory(n)})})}},{key:"processUploadSession",value:function(e,t){var n=this,i=this._getItemInfosForUploaderFiles(e.files,t),o=this._createEditActionInfo("upload",i,t,{sessionInfo:e});return this._processEditAction(o,function(){return e.deferreds},function(){return n._resetDirectoryState(t)})}},{key:"uploadFileChunk",value:function(e,t,n){return this._securityController.validateMaxFileSize(e.size),this._securityController.validateExtension(e.name),(0,y.when)(this._fileProvider.uploadFileChunk(e,t,n))}},{key:"abortFileUpload",value:function(e,t,n){return(0,y.when)(this._fileProvider.abortFileUpload(e,t,n))}},{key:"getFileUploadChunkSize",value:function(){return this._fileProvider.getFileUploadChunkSize()}},{key:"downloadItems",value:function(e){var t=e.map(function(e){return e.fileItem});this._fileProvider.downloadItems(t)}},{key:"getItemContent",value:function(e){var t=e.map(function(e){return e.fileItem});return(0,y.when)(this._fileProvider.getItemContent(t))}},{key:"_processEditAction",value:function(e,t,n){var i=this,o=null;this._raiseEditActionStarting(e);try{o=t()}catch(t){return this._raiseEditActionError(e,t),(new y.Deferred).reject().promise()}return Array.isArray(o)?o.length>1&&(e.singleRequest=!1):o=[o],this._raiseEditActionResultAcquired(e),(0,v.default)(o,function(t){return i._raiseCompleteEditActionItem(e,t)},function(t){return i._raiseEditActionItemError(e,t)}).then(function(){n(),i._raiseCompleteEditAction(e)})}},{key:"_createEditActionInfo",value:function(e,t,n,i){t=Array.isArray(t)?t:[t],i=i||{};var o=t.map(function(e){return e.fileItem});return{name:e,itemInfos:t,items:o,directory:n,customData:i,singleRequest:!0}}},{key:"_getItemInfosForUploaderFiles",value:function(e,t){for(var n=this._getPathInfo(t),i=[],o=0;o<e.length;o++){var a=e[o],r=new s.FileManagerItem(n,a.name,(!1)),l=this._createFileInfo(r,t);i.push(l)}return i}},{key:"refresh",value:function(){var e=this;if(this._lockRefresh)return this._refreshDeferred;this._lockRefresh=!0;var t={items:this._rootDirectoryInfo.items},n=this._getDirectoryPathKeyParts(this.getCurrentDirectory());return this._resetDirectoryState(this._rootDirectoryInfo),this.setCurrentDirectory(null),this._refreshDeferred=this._loadItemsRecursive(this._rootDirectoryInfo,t).then(function(){var t=e._findSelectedDirectoryByPathKeyParts(n);e.setCurrentDirectory(t),delete e._lockRefresh})}},{key:"_loadItemsRecursive",value:function(e,t){var n=this;return this.getDirectories(e).then(function(e){for(var i=[],o=function(o){var a=(0,w.find)(t.items,function(t){return e[o].fileItem.key===t.fileItem.key});return a?(e[o].expanded=a.expanded,void(e[o].expanded&&i.push(n._loadItemsRecursive(e[o],a)))):"continue"},a=0;a<e.length;a++){o(a)}return(0,v.default)(i)},function(){return null})}},{key:"_getDirectoryByPathParts",value:function(e,t){var n=this;return t.length<1?(new y.Deferred).resolve(e).promise():this.getDirectories(e).then(function(e){var i=(0,w.find)(e,function(e){return e.fileItem.name===t[0]});return i?n._getDirectoryByPathParts(i,t.splice(1)):(new y.Deferred).reject().promise()})}},{key:"_getDirectoryPathKeyParts",value:function(e){for(var t=[e.fileItem.key];e&&e.parentDirectory;)t.unshift(e.parentDirectory.fileItem.key),e=e.parentDirectory;return t}},{key:"_findSelectedDirectoryByPathKeyParts",value:function(e){var t=this._rootDirectoryInfo;if(e.length<2||e[0]!==this._rootDirectoryInfo.fileItem.key)return t;for(var n=1,i=t;i&&n<e.length;)i=(0,w.find)(t.items,function(t){return t.fileItem.key===e[n]}),i&&(t=i),n++;return t}},{key:"_createDirectoryInfo",value:function(e,t){return(0,x.extend)(this._createFileInfo(e,t),{icon:"folder",expanded:e.isRoot,items:[]})}},{key:"_createFileInfo",value:function(e,t){return{fileItem:e,parentDirectory:t,icon:this._getFileItemDefaultIcon(e)}}},{key:"_resetDirectoryState",value:function(e){e.itemsLoaded=!1,e.items=[]}},{key:"_getFileItemDefaultIcon",value:function(e){if(e.isDirectory)return"folder";var t=e.getExtension(),n=this._defaultIconMap[t];return n||"doc"}},{key:"_createDefaultIconMap",value:function(){var e={".txt":"txtfile",".rtf":"rtffile",".doc":"docfile",".docx":"docxfile",".xls":"xlsfile",".xlsx":"xlsxfile",".ppt":"pptfile",".pptx":"pptxfile",".pdf":"pdffile"};return[".png",".gif",".jpg",".jpeg",".ico",".bmp"].forEach(function(t){e[t]="image"}),e}},{key:"_createRootDirectory",value:function(e){var t=new s.FileManagerRootItem;return t.name=e||"",t}},{key:"_raiseSelectedDirectoryChanged",value:function(e){var t={selectedDirectoryInfo:e};this._onSelectedDirectoryChanged&&this._onSelectedDirectoryChanged(t)}},{key:"_raiseEditActionStarting",value:function(e){this._options.onEditActionStarting&&this._options.onEditActionStarting(e)}},{key:"_raiseEditActionResultAcquired",value:function(e){this._options.onEditActionResultAcquired&&this._options.onEditActionResultAcquired(e)}},{key:"_raiseEditActionError",value:function(e,t){this._options.onEditActionError&&this._options.onEditActionError(e,t)}},{key:"_raiseEditActionItemError",value:function(e,t){this._options.onEditActionItemError&&this._options.onEditActionItemError(e,t)}},{key:"_raiseCompleteEditActionItem",value:function(e,t){this._options.onCompleteEditActionItem&&this._options.onCompleteEditActionItem(e,t)}},{key:"_raiseCompleteEditAction",value:function(e){this._options.onCompleteEditAction&&this._options.onCompleteEditAction(e)}},{key:"_resetState",value:function(){this._selectedDirectory=null,this._rootDirectoryInfo.items=[],this._loadedItems={}}},{key:"_getPathInfo",value:function(e){for(var t=[],n=e;n&&!n.fileItem.isRoot;n=n.parentDirectory)t.unshift({
key:n.fileItem.key,name:n.fileItem.name});return t}},{key:"on",value:function(e,t){var n="on"+e;this._options[n]=t}}]),e}();t.default=b;var C=function(){function e(t){var n=this;a(this,e);var i={allowedFileExtensions:[],maxFileSize:0};this._options=(0,x.extend)(i,t),this._extensionsMap={},this._allowedFileExtensions.forEach(function(e){n._extensionsMap[e]=!0})}return r(e,[{key:"getAllowedItems",value:function(e){var t=this;return 0===this._allowedFileExtensions.length?e:e.filter(function(e){return e.isDirectory||t._isValidExtension(e.name)})}},{key:"validateExtension",value:function(e){this._isValidExtension(e)||this._throwError(m.ErrorCode.WrongFileExtension)}},{key:"validateMaxFileSize",value:function(e){this._maxFileSize&&e>this._maxFileSize&&this._throwError(m.ErrorCode.MaxFileSizeExceeded)}},{key:"_isValidExtension",value:function(e){if(0===this._allowedFileExtensions.length)return!0;var t=(0,_.getFileExtension)(e).toLowerCase();return this._extensionsMap[t]}},{key:"_throwError",value:function(e){throw{errorId:e}}},{key:"_allowedFileExtensions",get:function(){return this._options.allowedFileExtensions}},{key:"_maxFileSize",get:function(){return this._options.maxFileSize}}]),e}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(62),u=i(l),d=n(4),c=n(6),h=n(0),p=n(164),f=n(401),g=i(f),_=function(e){function t(e){o(this,t),e=(0,d.ensureDefined)(e,{});var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._options=e,n._provider=null,n}return r(t,e),s(t,[{key:"getItems",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.getItems(e)})}},{key:"renameItem",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.renameItem(e,t)})}},{key:"createFolder",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.createFolder(e,t)})}},{key:"deleteItems",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.deleteItems(e)})}},{key:"moveItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.moveItems(e,t)})}},{key:"copyItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.copyItems(e,t)})}},{key:"uploadFileChunk",value:function(e,t,n){var i=this;return this._doActionAfterDataAcquired(function(){return i._provider.uploadFileChunk(e,t,n)})}},{key:"abortFileUpload",value:function(e,t,n){var i=this;return this._doActionAfterDataAcquired(function(){return i._provider.abortFileUpload(e,t,n)})}},{key:"_doActionAfterDataAcquired",value:function(e){return this._ensureDataAcquired().then(e.bind(this))}},{key:"_ensureDataAcquired",value:function(){var e=this;return this._provider?(new c.Deferred).resolve().promise():this._getData().done(function(t){var n=(0,h.extend)(e._options,{data:t});e._provider=new g.default(n)})}},{key:"_getData",value:function(){return u.default.sendRequest({url:this._options.url,dataType:"json",cache:!1})}}]),t}(p.FileProvider);e.exports=_},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.FileManagerCommandManager=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),s=n(1),l=n(10),u=i(l);t.FileManagerCommandManager=function(){function e(t){o(this,e),this._actions={},this._permissions=t||{},this._initCommands()}return a(e,[{key:"_initCommands",value:function(){var e=this;this._commands=[{name:"create",text:u.default.format("dxFileManager-commandCreate"),icon:"newfolder",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:u.default.format("dxFileManager-commandRename"),icon:"rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:u.default.format("dxFileManager-commandMove"),icon:"movetofolder",enabled:this._permissions.move},{name:"copy",text:u.default.format("dxFileManager-commandCopy"),icon:"copy",enabled:this._permissions.copy},{name:"delete",text:u.default.format("dxFileManager-commandDelete"),icon:"trash",enabled:this._permissions.remove},{name:"download",text:u.default.format("dxFileManager-commandDownload"),icon:"download",enabled:this._permissions.download},{name:"upload",text:u.default.format("dxFileManager-commandUpload"),icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:u.default.format("dxFileManager-commandRefresh"),icon:"dx-filemanager-i dx-filemanager-i-refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:u.default.format("dxFileManager-commandThumbnails"),enabled:!0,noFileItemRequired:!0},{name:"details",text:u.default.format("dxFileManager-commandDetails"),enabled:!0,noFileItemRequired:!0},{name:"clear",text:u.default.format("dxFileManager-commandClear"),icon:"remove",enabled:!0},{name:"showNavPane",icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach(function(t){e._commandMap[t.name]=t})}},{key:"registerActions",value:function(e){this._actions=(0,r.extend)(this._actions,e)}},{key:"executeCommand",value:function(e,t){var n=(0,s.isString)(e)?e:e.name,i=this._actions[n];if(i)return i(t)}},{key:"setCommandEnabled",value:function(e,t){var n=this.getCommandByName(e);n&&(n.enabled=t)}},{key:"getCommandByName",value:function(e){return this._commandMap[e]}},{key:"isCommandAvailable",value:function(e,t){var n=this.getCommandByName(e);if(!n||!n.enabled)return!1;if(n.noFileItemRequired)return!0;var i=t&&t.length||0;return 0!==i&&!t.some(function(e){return e.fileItem.isRoot||e.fileItem.isParentFolder})&&("download"===e?t.every(function(e){return!e.fileItem.isDirectory}):!n.isSingleFileItemCommand||1===i)}}]),e}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(2),c=i(d),h=n(0),p=n(1),f=n(4),g=n(17),_=i(g),m=n(337),v=i(m),y="dx-filemanager-context-menu",w={create:{},upload:{},download:{},rename:{},move:{},copy:{},"delete":{},refresh:{beginGroup:!0}},x=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_initMarkup",value:function(){var e=this;this._createContextMenuHiddenAction(),this._isVisible=!1;var n=(0,c.default)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(n,v.default,{cssClass:y,showEvent:"",onItemClick:function(t){var n=t.itemData.name;return e._onContextMenuItemClick(n)},onHidden:function(){return e._onContextMenuHidden()}}),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"showAt",value:function(e,t,n){this._isVisible&&this._raiseContextMenuHidden(),this._isVisible=!0;var i=this.createContextMenuItems(e),o={of:t,at:"top left",my:"top left",offset:""};n?o.offset=n.offsetX+" "+n.offsetY:(o.my="left top",o.at="left bottom",o.boundaryOffset="1"),this._contextMenu.option({dataSource:i,target:t,position:o}),this._contextMenu.show()}},{key:"createContextMenuItems",value:function(e,t){var n=this;this._targetFileItems=e;var i=[],o=t||this.option("items");return o.forEach(function(t){var o=(0,p.isString)(t)?t:t.name,a=n._configureItemByCommandName(o,t,e);n._isContextMenuItemAvailable(a,e)&&i.push(a)}),i}},{key:"_isContextMenuItemAvailable",value:function(e,t){return this._isDefaultItem(e.name)&&e._autoHide?!(this._isIsolatedCreationItemCommand(e.name)&&t&&t.length)&&this._commandManager.isCommandAvailable(e.name,t):(0,f.ensureDefined)(e.visible,!0)}},{key:"_isIsolatedCreationItemCommand",value:function(e){return("create"===e||"upload"===e)&&this.option("isolateCreationItemCommands")}},{key:"_isDefaultItem",value:function(e){return!!w[e]}},{key:"_extendAttributes",value:function(e,t,n){n.forEach(function(n){(0,h.extend)(e,t[n]?o({},n,t[n]):{})})}},{key:"_configureItemByCommandName",value:function(e,t,n){if(!this._isDefaultItem(e)){var i=(0,h.extend)(!0,{},t);return Array.isArray(t.items)&&(i.items=this.createContextMenuItems(n,t.items)),i}var o=this._createMenuItemByCommandName(e),a=w[e];return(0,h.extend)(o,a),this._extendAttributes(o,t,["visible","beginGroup","text","icon"]),(0,p.isDefined)(o.visible)?this._extendAttributes(o,t,["visible","disabled"]):o._autoHide=!0,e&&!o.name&&(0,h.extend)(o,{name:e}),o}},{key:"_createMenuItemByCommandName",value:function(e){var t=this,n=this._commandManager.getCommandByName(e),i=n.text,o=n.icon;return{name:e,text:i,icon:o,onItemClick:function(){return t._onContextMenuItemClick(e)}}}},{key:"_onContextMenuItemClick",value:function(e){var t=this._isIsolatedCreationItemCommand(e)?null:this._targetFileItems;this._commandManager.executeCommand(e,t)}},{key:"_createContextMenuHiddenAction",value:function(){this._contextMenuHiddenAction=this._createActionByOption("onContextMenuHidden")}},{key:"_onContextMenuHidden",value:function(){this._isVisible=!1,this._raiseContextMenuHidden()}},{key:"_raiseContextMenuHidden",value:function(){this._contextMenuHiddenAction()}},{key:"_getDefaultOptions",value:function(){return(0,h.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,onContextMenuHidden:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"commandManager":this.repaint();break;case"onContextMenuHidden":this._createContextMenuHiddenAction();break;default:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_commandManager",get:function(){return this.option("commandManager")}}]),t}(_.default);e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(1),h=i(c),p=n(10),f=i(p),g=n(340),_=i(g),m=n(141),v=i(m),y=n(404),w=i(y),x=n(403),b=i(x),C=n(165),k="dx-filemanager-details",I="dx-filemanager-details-item-thumbnail",S="dx-filemanager-details-item-name",D="dx-filemanager-details-item-name-wrapper",T="dx-data-row",E=["name","isDirectory","size","thumbnail","dateModified","isParentFolder"],O=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;this._createFilesView(),this._contextMenu.option("onContextMenuHidden",function(){return e._onContextMenuHidden()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_createFilesView",value:function(){var e=this.option("selectionMode");this._filesView=this._createComponent("<div>",_.default,{hoverStateEnabled:!0,selection:{mode:e},allowColumnResizing:!0,scrolling:{mode:"virtual"},sorting:{mode:"single",showSortIndexes:!1},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!0,columns:this._createColumns(),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._raiseSelectionChanged.bind(this),onOptionChanged:function(e){e.fullName.indexOf("sortOrder")>-1&&this.columnOption("isParentFolder",{sortOrder:"asc",sortIndex:0})}}),this.$element().addClass(k).append(this._filesView.$element()),this.refresh()}},{key:"_createColumns",value:function(){var e=[{dataField:"isDirectory",caption:"",width:64,alignment:"center",cellTemplate:this._createThumbnailColumnCell.bind(this)},{dataField:"name",caption:f.default.format("dxFileManager-listDetailsColumnCaptionName"),cellTemplate:this._createNameColumnCell.bind(this)},{dataField:"dateModified",caption:f.default.format("dxFileManager-listDetailsColumnCaptionDateModified"),width:110,hidingPriority:1},{dataField:"size",caption:f.default.format("dxFileManager-listDetailsColumnCaptionFileSize"),width:90,alignment:"right",hidingPriority:0,calculateCellValue:this._calculateSizeColumnCellValue.bind(this)},{dataField:"isParentFolder",caption:"isParentFolder",visible:!1,sortIndex:0,sortOrder:"asc"}],t=this.option("customizeDetailColumns");h.default.isFunction(t)&&(e=t(e));for(var n=0;n<e.length;n++){var i=E.indexOf(e[n].dataField)<0?"dataItem.":"";e[n].dataField="fileItem."+i+e[n].dataField}return e}},{key:"_onFileItemActionButtonClick",value:function(e){var t=e.component,n=e.element,i=e.event;i.stopPropagation();var o=t.$element().closest(this._getItemSelector()),a=o.data("item");this._ensureItemSelected(a),this._showContextMenu(this.getSelectedItems(),n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_getItemThumbnailCssClass",value:function(){return I}},{key:"_getItemSelector",value:function(){return"."+T}},{key:"_onItemDblClick",value:function(e){var t=(0,d.default)(e.currentTarget),n=t.data("item");this._raiseSelectedItemOpened(n)}},{key:"_onRowPrepared",value:function(e){"data"===e.rowType&&(0,d.default)(e.rowElement).data("item",e.data)}},{key:"_onContextMenuPreparing",value:function(e){var t=null;if(e.row&&"data"===e.row.rowType){var n=e.row.data;this._ensureItemSelected(n),t=this.getSelectedItems()}e.items=this._contextMenu.createContextMenuItems(t)}},{key:"_createThumbnailColumnCell",value:function(e,t){this._getItemThumbnailContainer(t.data).appendTo(e)}},{key:"_createNameColumnCell",value:function(e,t){var n=this,i=(0,d.default)("<div>"),o=(0,d.default)("<span>").text(t.data.fileItem.name).addClass(S),a=(0,d.default)("<div>").append(o,i).addClass(D);(0,d.default)(e).append(a),this._createComponent(i,b.default,{onClick:function(e){return n._onFileItemActionButtonClick(e)}})}},{key:"_calculateSizeColumnCellValue",value:function(e){return e.fileItem.isDirectory?"":(0,C.getDisplayFileSize)(e.fileItem.size)}},{key:"_ensureItemSelected",value:function(e){var t=e.fileItem;if(!this._filesView.isRowSelected(t.key)){var n=this._filesView.getController("selection"),i=n.isSelectionWithCheckboxes();this._filesView.selectRows([t.key],i)}}},{key:"clearSelection",value:function(){this._filesView.clearSelection()}},{key:"refresh",value:function(){this.clearSelection(),this._filesView.option("dataSource",{store:new v.default({key:"fileItem.key",load:this._getItems.bind(this)})})}},{key:"getSelectedItems",value:function(){return this._filesView.getSelectedRowsData()}}]),t}(w.default);e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(6),p=n(5),f=i(p),g=n(8),_=n(163),m=n(165),v=n(10),y=i(v),w=n(404),x=i(w),b="dx-filemanager-thumbnails",C="dx-filemanager-thumbnails-view-port",k="dx-filemanager-thumbnails-container",I="dx-filemanager-thumbnails-item",S="dx-filemanager-thumbnails-item-content",D="dx-filemanager-thumbnails-item-thumbnail",T="dx-filemanager-thumbnails-item-spacer",E="dx-filemanager-thumbnails-item-name",O="dx-filemanager-item-selected",A="dx-filemanager-item-focused",P="dxFileManager_thumbnails",B=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){this._items=[],this._currentLoadOperationId=0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e="multiple"===this.option("selectionMode"),n={onSelectionChanged:this._raiseSelectionChanged.bind(this)},i=e?F:M;this._selectionController=new i(n),this._$itemViewContainer=(0,d.default)("<div>").addClass(k),this._$viewPort=(0,d.default)("<div>").addClass(C),this._$viewPort.append(this._$itemViewContainer),this.$element().addClass(b),this.$element().append(this._$viewPort);var o=(0,g.addNamespace)(_.name,P),a=(0,g.addNamespace)("click",P);f.default.on(this.$element(),o,this._onContextMenu.bind(this)),f.default.on(this.$element(),a,this._onClick.bind(this)),this._loadItems()}},{key:"_supportedKeys",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{rightArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(1,!0,e)},leftArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(-1,!0,e)},upArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(-1,!1,e)},downArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(1,!1,e)},home:function(e){this._beforeKeyProcessing(e),this._selectItemByIndex(0,!0,e)},end:function(e){this._beforeKeyProcessing(e),this._selectItemByIndex(this._items.length-1,!0,e)},pageUp:function(e){this._beforeKeyProcessing(e),this._processPageChange(!0,e)},pageDown:function(e){this._beforeKeyProcessing(e),this._processPageChange(!1,e)},space:function(e){this._beforeKeyProcessing(e),this._selectionController.invertFocusedItemSelection()},enter:function(e){this._beforeKeyProcessing(e),this.tryOpen()},A:function(e){this._beforeKeyProcessing(e),e.ctrlKey&&this._selectAll()}})}},{key:"_beforeKeyProcessing",value:function(e){e.preventDefault(),this._resetLayoutModel()}},{key:"_processMoveArrow",value:function(e,t,n){var i=this._getFocusedItem();if(i){if(!t){var o=this._getLayoutModel();if(!o)return;e*=o.itemPerRowCount}var a=i._state.index+e;this._selectItemByIndex(a,!0,n)}}},{key:"_processPageChange",value:function(e,t){var n=this._getFocusedItem();if(n){var i=this._getLayoutModel();if(i){var o=this._createItemLayoutModel(n._state.index),a=e?i.rowPerPageRate:-i.rowPerPageRate,r=o.itemRowIndex-a,s=e?Math.ceil:Math.floor,l=s(r),u=l*i.itemPerRowCount+o.itemColumnIndex;u<0?u=0:u>=this._items.length&&(u=this._items.length-1),this._selectItemByIndex(u,!0,t)}}}},{key:"_onClick",value:function(e){var t=(0,d.default)(e.target).closest(this._getItemSelector());t.length>0?this._selectItemByItemElement(t,e):this.clearSelection()}},{key:"_onContextMenu",value:function(e){e.preventDefault(),this._onClick(e);var t=this.getSelectedItems();this._showContextMenu(t,e.target,e)}},{key:"_selectItemByItemElement",value:function(e,t){var n=e.data("index");this._selectItemByIndex(n,!1,t)}},{key:"_getItemThumbnailCssClass",value:function(){return D}},{key:"_getItemSelector",value:function(){return"."+I}},{key:"_onItemDblClick",value:function(e){var t=(0,d.default)(e.currentTarget),n=t.data("index"),i=this._items[n];this._raiseSelectedItemOpened(i)}},{key:"_scrollToItem",value:function(e){var t=this._getLayoutModel();if(t){var n=Math.floor(e._state.index/t.itemPerRowCount),i=n*t.itemHeight,o=i+t.itemHeight,a=t.viewPortScrollTop;i<t.viewPortScrollTop?a=i:o>t.viewPortScrollBottom&&(a=o-t.viewPortHeight),this._$viewPort.scrollTop(a)}}},{key:"_resetLayoutModel",value:function(){this._layoutModel=null}},{key:"_getLayoutModel",value:function(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel}},{key:"_createLayoutModel",value:function(){if(0===this._items.length)return null;var e=this._items[0],t=e._state.$element,n=t.outerWidth(!0);if(0===n)return null;var i=t.outerHeight(!0),o=this._$itemViewContainer.innerWidth(),a=this._$viewPort.innerHeight(),r=this._$viewPort.scrollTop(),s=r+a,l=Math.floor(o/n),u=a/i;return{itemWidth:n,itemHeight:i,viewPortWidth:o,viewPortHeight:a,viewPortScrollTop:r,viewPortScrollBottom:s,itemPerRowCount:l,rowPerPageRate:u}}},{key:"_createItemLayoutModel",value:function(e){var t=this._getLayoutModel();if(!t)return null;var n=Math.floor(e/t.itemPerRowCount),i=e%t.itemPerRowCount,o=n*t.itemHeight,a=o+t.itemHeight;return{itemRowIndex:n,itemColumnIndex:i,itemTop:o,itemBottom:a}}},{key:"_selectAll",value:function(){this._selectionController.selectAll()}},{key:"_selectItem",value:function(e,t,n){this._selectionController.selectItem(e,n),t&&this._scrollToItem(e)}},{key:"_selectItemByIndex",value:function(e,t,n){if(e>=0&&e<this._items.length){var i=this._items[e];this._selectItem(i,t,n)}}},{key:"_getFocusedItem",value:function(){return this._selectionController.getFocusedItem()}},{key:"_loadItems",value:function(){var e=this,t=this._getUniqueId();this._currentLoadOperationId=t,(0,h.when)(this._getItems()).then(function(n){e._currentLoadOperationId===t&&e._applyItems(n||[])},function(n){e._currentLoadOperationId===t&&e._raiseOnError(n)})}},{key:"_applyItems",value:function(e){this._items=e,this._selectionController.setItems(e),this._renderItems(e)}},{key:"_renderItems",value:function(e){this._$itemViewContainer.empty();for(var t=0;t<e.length;t++){var n=e[t];n._state={index:t,selected:!1,$element:null},this._renderItem(n)}}},{key:"_renderItem",value:function(e){var t=(0,d.default)("<div>").addClass(I).attr("title",this._getTooltipText(e)).data("index",e._state.index),n=(0,d.default)("<div>").addClass(S),i=this._getItemThumbnailContainer(e);f.default.on(i,"dragstart",this._disableDragging);var o=(0,d.default)("<div>").addClass(T),a=(0,d.default)("<div>").addClass(E).text(e.fileItem.name);t.append(n),n.append(i,o,a),this._$itemViewContainer.append(t),e._state.$element=t}},{key:"_getTooltipText",value:function(e){var t=e.fileItem;if(t.tooltipText)return t.tooltipText;var n=t.name+"\r\n";return t.isDirectory||(n+=y.default.format("dxFileManager-listThumbnailsTooltipTextSize")+": "+(0,m.getDisplayFileSize)(t.size)+"\r\n"),n+=y.default.format("dxFileManager-listThumbnailsTooltipTextDateModified")+": "+t.dateModified}},{key:"_getUniqueId",value:function(){return Date.now()+"_"+Math.round(1e5*Math.random())}},{key:"_disableDragging",value:function(){return!1}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{focusStateEnabled:!0})}},{key:"refresh",value:function(){this.clearSelection(),this._loadItems()}},{key:"tryOpen",value:function(){var e=this._getFocusedItem();e&&this._raiseSelectedItemOpened(e)}},{key:"clearSelection",value:function(){this._selectionController.clearSelection()}},{key:"getSelectedItems",value:function(){return this._selectionController.getSelectedItems()}}]),t}(x.default),M=function(){function e(t){o(this,e),this._items=[],this._selectionChangedHandler=t.onSelectionChanged,this._selectionChanged=!1}return s(e,[{key:"selectAll",value:function(){}},{key:"clearSelection",value:function(){this._beginUpdate(),this._setAllItemsSelectedState(!1),this._endUpdate()}},{key:"selectItem",value:function(e,t){this._beginUpdate(),this._setAllItemsSelectedState(!1,[e]),this._setItemSelectedState(e,!0),this._endUpdate()}},{key:"invertFocusedItemSelection",value:function(e){}},{key:"getFocusedItem",value:function(){var e=this.getSelectedItems();return e.length>0?e[0]:null}},{key:"getSelectedItems",value:function(){return this._items.filter(function(e){return e._state.selected})}},{key:"setItems",value:function(e){this._items=e}},{key:"_setItemSelectedState",value:function(e,t){e._state.selected!==t&&(e._state.selected=t,e._state.$element.toggleClass(O,t),this._selectionChanged=!0)}},{key:"_setAllItemsSelectedState",value:function(e,t){for(var n=0;n<this._items.length;n++){var i=this._items[n];t&&t.indexOf(i)!==-1||this._setItemSelectedState(i,e)}}},{key:"_beginUpdate",value:function(){this._selectionChanged=!1}},{key:"_endUpdate",value:function(){this._selectionChanged&&(this._selectionChangedHandler(),this._selectionChanged=!1)}}]),e}(),F=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._focusedItem=null,n}return r(t,e),s(t,[{key:"selectAll",value:function(){this._beginUpdate(),this._setAllItemsSelectedState(!0),this._endUpdate()}},{key:"selectItem",value:function(e,t){if(this._beginUpdate(),t.shiftKey)this._setItemsRangeSelectedState(this._focusedItem._state.index,e._state.index,t.ctrlKey,!0);else if(t.ctrlKey){var n=1===this._items.length&&this._focusedItem===e||!e._state.selected;this._setItemSelectedState(e,n)}else this._setAllItemsSelectedState(!1,[e]),this._setItemSelectedState(e,!0);this._setFocusedItem(e),this._endUpdate()}},{key:"_setItemsRangeSelectedState",value:function(e,t,n,i){if(e>t){var o=t;t=e,e=o}for(var a=e;a<=t;a++){var r=this._items[a],s=n?!r._state.selected:i;this._setItemSelectedState(r,s)}}},{key:"_setFocusedItem",value:function(e){this._focusedItem!==e&&(this._focusedItem&&this._focusedItem._state.$element.removeClass(A),e._state.$element.addClass(A),this._focusedItem=e)}},{key:"invertFocusedItemSelection",value:function(){this._focusedItem&&(this._beginUpdate(),this._setItemSelectedState(this._focusedItem,!this._focusedItem._state.selected),this._endUpdate())}},{key:"getFocusedItem",value:function(){return this._focusedItem}},{key:"setItems",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setItems",this).call(this,e),this._focusedItem=e.length>0?e[0]:null}}]),t}(M);e.exports=B},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(2),c=i(d),h=n(0),p=n(1),f=n(4),g=n(10),_=i(g),m=n(17),v=i(m),y=n(168),w=i(y),x="dx-filemanager-toolbar",b="dx-filemanager-general-toolbar",C="dx-filemanager-file-toolbar",k=x+"-separator-item",I=x+"-viewmode-item",S=x+"-has-large-icon",D={showNavPane:{location:"before"},create:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},upload:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},refresh:{location:"after",showText:"inMenu",cssClass:S,compactMode:{showText:"inMenu",locateInMenu:"auto"}},viewSwitcher:{location:"after"},download:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},move:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},copy:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},rename:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},"delete":{location:"before",compactMode:{showText:"inMenu"}},clear:{location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}},separator:{location:"before"}},T=["separator","viewSwitcher"],E={"default":"dx-filemanager-i dx-filemanager-i-refresh",progress:"dx-filemanager-i dx-filemanager-i-progress",success:"dx-filemanager-i dx-filemanager-i-done",error:"dx-filemanager-i dx-filemanager-i-danger"},O=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_initMarkup",value:function(){this._commandManager=this.option("commandManager"),this._generalToolbarVisible=!0,this._generalToolbar=this._createToolbar(this.option("generalItems")),
this._fileToolbar=this._createToolbar(this.option("fileItems"),!0),this.$element().addClass(x+" "+b)}},{key:"_render",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this);var e=this._getVisibleToolbar();this._checkCompactMode(e)}},{key:"_dimensionChanged",value:function(e){if(!e||"height"!==e){var t=this._getVisibleToolbar();this._checkCompactMode(t)}}},{key:"_getVisibleToolbar",value:function(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar}},{key:"_createToolbar",value:function(e,t){var n=this._getPreparedItems(e),i=(0,c.default)("<div>").appendTo(this.$element()),o=this._createComponent(i,w.default,{items:n,visible:!t});return o.compactMode=!1,o}},{key:"_getPreparedItems",value:function(e){var t=this,n=!1;return e.map(function(e){var i=(0,p.isString)(e)?e:e.name,o=t._configureItemByCommandName(i,e);if("separator"===i)o.visible=n,n=!1;else{o.available=t._isToolbarItemAvailable(o);var a=o.available;o.visible=a,n=n||a}return o})}},{key:"_configureItemByCommandName",value:function(e,t){var n={},i=this._commandManager.getCommandByName(e);switch(i&&(n=this._createCommandItem(i)),e){case"separator":n=this._createSeparatorItem();break;case"viewSwitcher":n=this._createViewModeItem()}if(this._isDefaultItem(e)){var o=D[e];(0,h.extend)(n,o),this._extendAttributes(n,t,["visible","location","locateInMenu"]),(0,p.isDefined)(t.visible)?this._extendAttributes(n,t,["disabled"]):n._autoHide=!0,this._extendAttributes(n.options,t,["text","icon"])}else(0,h.extend)(n,t),n.widget||(n.widget="dxButton");return e&&!n.name&&(0,h.extend)(n,{name:e}),"dxButton"===n.widget&&(0,h.extend)(!0,n,{options:{stylingMode:"text"}}),"dxSelectBox"===n.widget&&(0,h.extend)(!0,n,{options:{stylingMode:"filled"}}),n}},{key:"_extendAttributes",value:function(e,t,n){n.forEach(function(n){(0,h.extend)(e,t[n]?o({},n,t[n]):{})})}},{key:"_isDefaultItem",value:function(e){return!!D[e]}},{key:"_createCommandItem",value:function(e){var t=this;return{widget:"dxButton",options:{text:e.text,commandText:e.text,icon:e.icon,stylingMode:"text",onClick:function(n){return t._executeCommand(e)}}}}},{key:"_createSeparatorItem",value:function(){return{template:function(e,t,n){(0,c.default)(n).addClass(k)}}}},{key:"_createViewModeItem",value:function(){var e=this,t=["thumbnails","details"].map(function(t){var n=e._commandManager.getCommandByName(t),i=n.text;return{name:t,text:i}}),n="thumbnails"===this.option("itemViewMode")?0:1;return{cssClass:I,widget:"dxSelectBox",options:{items:t,value:t[n],displayExpr:"text",stylingMode:"filled",onValueChanged:function(t){return e._executeCommand(t.value.name)}}}}},{key:"_checkCompactMode",value:function(e){e.compactMode&&this._toggleCompactMode(e,!1);var t=e.$element().width(),n=e._getItemsWidth(),i=t<n;e.compactMode!==i?(e.compactMode||this._toggleCompactMode(e,i),e.compactMode=i):e.compactMode&&this._toggleCompactMode(e,!0)}},{key:"_toggleCompactMode",value:function(e,t){var n=this;e.beginUpdate();var i=e.option("items");i.forEach(function(i,o){if(i.compactMode){var a=null;t?(i.saved=n._getCompactModeOptions(i,i.available),a=i.compactMode):a=i.saved;var r=n._getCompactModeOptions(a,i.available);e.option("items["+o+"]",r)}}),e.endUpdate()}},{key:"_getCompactModeOptions",value:function(e,t){var n=e.showText,i=e.locateInMenu;return{visible:t,showText:(0,f.ensureDefined)(n,"always"),locateInMenu:(0,f.ensureDefined)(i,"never")}}},{key:"_ensureAvailableCommandsVisible",value:function(e,t){var n=this;e.beginUpdate();var i=!1,o=e.option("items");o.forEach(function(o,a){var r=o.available,s=!1;if("separator"===o.name?(s=i,i=!1):(o.available=n._isToolbarItemAvailable(o,t),s=o.available,i=i||s),s!==r){var l="items["+a+"].visible";e.option(l,s)}}),e.endUpdate()}},{key:"_fileToolbarHasEffectiveItems",value:function(e){var t=this,n=this._fileToolbar.option("items");return n.some(function(n){var i=n.name;return"clear"!==i&&"refresh"!==i&&t._commandManager.isCommandAvailable(i,e)})}},{key:"_executeCommand",value:function(e){this._commandManager.executeCommand(e)}},{key:"_isToolbarItemAvailable",value:function(e,t){return this._isDefaultItem(e.name)&&e._autoHide?"refresh"===e.name?this._generalToolbarVisible||!!this._isRefreshVisibleInFileToolbar:T.indexOf(e.name)>-1||this._commandManager.isCommandAvailable(e.name,t):(0,f.ensureDefined)(e.visible,!0)}},{key:"_updateItemInToolbar",value:function(e,t,n){e.beginUpdate();for(var i=e.option("items"),o=0;o<i.length;o++){var a=i[o];if(a.name===t){e.option("items["+o+"]",n);break}}e.endUpdate()}},{key:"_getDefaultOptions",value:function(){return(0,h.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,generalItems:[],fileItems:[],itemViewMode:"details"})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"commandManager":case"itemViewMode":case"generalItems":case"fileItems":this.repaint();break;default:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"updateRefreshItem",value:function(e,t){var n=null;this._isRefreshVisibleInFileToolbar=!1,"default"===t?n={showText:"inMenu",options:{text:_.default.format("dxFileManager-commandRefresh"),icon:E.default}}:(n={showText:"always",options:{text:e,icon:E[t]}},this._isRefreshVisibleInFileToolbar=!0);var i=(0,h.extend)({},n,{visible:this._isRefreshVisibleInFileToolbar});this._updateItemInToolbar(this._generalToolbar,"refresh",n),this._updateItemInToolbar(this._fileToolbar,"refresh",i)}},{key:"update",value:function(e){e=(0,f.ensureDefined)(e,[]);var t=0===e.length||!this._fileToolbarHasEffectiveItems(e);this._generalToolbarVisible!==t&&(this._generalToolbar.option("visible",t),this._fileToolbar.option("visible",!t),this._generalToolbarVisible=t,this.$element().toggleClass(b,t),this.$element().toggleClass(C,!t));var n=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(n,e),this._checkCompactMode(n)}}]),t}(v.default);e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(1),p=n(17),f=i(p),g=n(44),_=i(g),m=n(252),v=i(m),y=n(755),w=i(y),x="dx-filemanager-notification",b=x+"-drawer",C=x+"-popup",k=x+"-popup-error",I=x+"-common",S=x+"-separator",D=x+"-details",T=x+"-common-no-item",E=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions(),this._actionProgressStatus="default",this._operationInProgressCount=0,this._failedOperationCount=0;var n=this.option("progressPanelContainer"),i=(0,d.default)("<div>").addClass(b).appendTo(n),o=this.option("contentTemplate");(0,h.isFunction)(o)&&o(i),this._progressDrawer=this._createComponent(i,v.default,{opened:!1,position:"right",openedStateMode:"overlap",closeOnOutsideClick:!0,shading:!0,template:function(t){return e._progressDrawerTemplate(t)}})}},{key:"tryShowProgressPanel",value:function(){var e=this;"default"!==this._actionProgressStatus&&setTimeout(function(){e._progressDrawer.show(),e._tryHideActionProgress()})}},{key:"addOperation",value:function(e,t,n){this._operationInProgressCount++;var i=this._progressPanel.addOperation(e,t,n);return this._showPopup(e),this._updateActionProgress(e,"progress"),i}},{key:"addOperationDetails",value:function(e,t,n){this._progressPanel.addOperationDetails(e,t,n)}},{key:"updateOperationItemProgress",value:function(e,t,n,i){this._progressPanel.updateOperationItemProgress(e,t,n,i)}},{key:"completeOperationItem",value:function(e,t,n){this._progressPanel.completeOperationItem(e,t,n)}},{key:"completeOperation",value:function(e,t,n,i){if(this._operationInProgressCount--,n?this._failedOperationCount++:this._showPopup(t),this._progressPanel.completeOperation(e,t,n,i),!this._isProgressDrawerOpened()||!this._tryHideActionProgress()){var o=0===this._failedOperationCount?"success":"error";this._updateActionProgress("",o)}}},{key:"completeSingleOperationWithError",value:function(e,t){this._progressPanel.completeSingleOperationWithError(e,t.detailErrorText),this._notifyError(t)}},{key:"addOperationDetailsError",value:function(e,t){this._progressPanel.addOperationDetailsError(e,t.itemIndex,t.detailErrorText),this._notifyError(t)}},{key:"_hideProgressPanel",value:function(){var e=this;setTimeout(function(){return e._progressDrawer.hide()})}},{key:"_tryHideActionProgress",value:function(){return 0===this._operationInProgressCount&&0===this._failedOperationCount&&(this._updateActionProgress("","default"),!0)}},{key:"_updateActionProgress",value:function(e,t){this._actionProgressStatus=t,this._raiseActionProgress(e,t)}},{key:"_progressDrawerTemplate",value:function(e){var t=this,n=(0,d.default)("<div>").appendTo(e);this._progressPanel=this._createComponent(n,this._getProgressPanelComponent(),{onOperationClosed:function(e){var n=e.info;return t._onProgressPanelOperationClosed(n)},onOperationCanceled:function(e){var n=e.info;return t._raiseOperationCanceled(n)},onOperationItemCanceled:function(e){var n=e.item,i=e.itemIndex;return t._raiseOperationItemCanceled(n,i)},onPanelClosed:function(){return t._hideProgressPanel()}})}},{key:"_getProgressPanelComponent",value:function(){return w.default}},{key:"_notifyError",value:function(e){this._showPopupError(e),this._updateActionProgress(e.commonErrorText,"error")}},{key:"_onProgressPanelOperationClosed",value:function(e){e.hasError&&(this._failedOperationCount--,this._tryHideActionProgress())}},{key:"_isProgressDrawerOpened",value:function(){return this._progressDrawer.option("opened")}},{key:"_showPopup",value:function(e,t){this._isProgressDrawerOpened()||(this._getNotificationPopup()._wrapper().toggleClass(k,!!t),this._getNotificationPopup().option("contentTemplate",e),this._getNotificationPopup().option("visible")||this._getNotificationPopup().show())}},{key:"_showPopupError",value:function(e){var t=(0,d.default)("<div>"),n=(0,d.default)("<div>").addClass(I).text(e.commonErrorText),i=(0,d.default)("<div>").addClass(S);(0,d.default)("<div>").appendTo(i);var o=(0,d.default)("<div>").addClass(D);e.item?this._progressPanel.createErrorDetailsProgressBox(o,e.item,e.detailErrorText):(n.addClass(T),this._progressPanel.renderError(o,i,e.detailErrorText)),t.append(n,i,o),this._showPopup(t,!0)}},{key:"_getNotificationPopup",value:function(){if(!this._notificationPopup){var e=(0,d.default)("<div>").addClass(C).appendTo(this.$element());this._notificationPopup=this._createComponent(e,_.default,{container:this.$element(),width:"auto",height:"auto",showTitle:!1,dragEnabled:!1,shading:!1,visible:!1,closeOnOutsideClick:!0,animation:{duration:0},position:{my:"right top",at:"right bottom",of:".dx-filemanager-toolbar",offset:"-50 -5"}})}return this._notificationPopup}},{key:"_raiseActionProgress",value:function(e,t){this._actions.onActionProgress({message:e,status:t})}},{key:"_raiseOperationCanceled",value:function(e){this._actions.onOperationCanceled({info:e})}},{key:"_raiseOperationItemCanceled",value:function(e,t){this._actions.onOperationItemCanceled({item:e,itemIndex:t})}},{key:"_initActions",value:function(){this._actions={onActionProgress:this._createActionByOption("onActionProgress"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled")}}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{progressPanelContainer:null,contentTemplate:null,onActionProgress:null,onOperationCanceled:null,onOperationItemCanceled:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"progressPanelContainer":case"contentTemplate":break;case"onActionProgress":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(f.default);t.default=E},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(4),p=n(56),f=n(10),g=i(f),_=n(17),m=i(_),v=n(255),y=i(v),w=n(35),x=i(w),b=n(308),C=i(b),k="dx-filemanager-progress-panel",I=k+"-container",S=k+"-title",D=k+"-title-text",T=k+"-close-button",E=k+"-infos-container",O=k+"-separator",A=k+"-info",P=k+"-common",B=k+"-info-with-details",M=k+"-details",F="dx-filemanager-progress-box",R=F+"-error",V=F+"-without-close-button",H=F+"-image",L=F+"-wrapper",z=F+"-common",$=F+"-progress-bar",N=F+"-close-button",W=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions(),this._operationCount=0,this.$element().addClass(k);var n=(0,d.default)("<div>").appendTo(this.$element()),i=(0,d.default)("<div>").addClass(I).appendTo(n);this._scrollView=this._createComponent(n,C.default,{scrollByContent:!0,scrollByThumb:!0,showScrollbar:"onScroll"});var o=(0,d.default)("<div>").addClass(S).appendTo(i);(0,d.default)("<div>").text(g.default.format("dxFileManager-notificationProgressPanelTitle")).addClass(D).appendTo(o);var a=(0,d.default)("<div>").addClass(T).appendTo(o);this._createComponent(a,x.default,{icon:"close",stylingMode:"text",onClick:function(){return e._raisePanelClosed()}}),this._$infosContainer=(0,d.default)("<div>").text(g.default.format("dxFileManager-notificationProgressPanelEmptyListText")).addClass(E).appendTo(i)}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{onOperationClosed:null,onOperationCanceled:null,onOperationItemCanceled:null,onPanelClosed:null})}},{key:"_initActions",value:function(){this._actions={onOperationClosed:this._createActionByOption("onOperationClosed"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled"),onPanelClosed:this._createActionByOption("onPanelClosed")}}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"test":break;case"onOperationClosed":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"addOperation",value:function(e,t,n){var i=this;this._operationCount?(0,d.default)("<div>").addClass(O).prependTo(this._$infosContainer):this._$infosContainer.empty(),this._operationCount++;var o={customCloseHandling:t,allowProgressAutoUpdate:(0,h.ensureDefined)(n,!0)},a=(0,d.default)("<div>").addClass(A).prependTo(this._$infosContainer);o.$info=a;var r=(0,d.default)("<div>").addClass(P).appendTo(a);return o.common=this._createProgressBox(r,{commonText:e,showCloseButton:!0,showCloseButtonAlways:t,onCloseButtonClick:function(){return i._closeOperation(o)}}),o}},{key:"addOperationDetails",value:function(e,t,n){var i=this;e.$info.addClass(B);var o=(0,d.default)("<div>").addClass(M).appendTo(e.$info);e.details=t.map(function(t,a){return t.info=e,i._createDetailsItem(o,t,a,!1,n)})}},{key:"_createDetailsItem",value:function(e,t,n,i,o){var a=this,r=(0,d.default)("<div>").appendTo(e);return this._createProgressBox(r,{commonText:t.commonText,imageUrl:t.imageUrl,skipProgressBox:i,showCloseButton:o,showCloseButtonAlways:o,onCloseButtonClick:function(){return a._cancelOperationItem(t,n)}})}},{key:"completeOperationItem",value:function(e,t,n){e.allowProgressAutoUpdate&&this.updateOperationItemProgress(e,t,100,n),this._setCloseButtonVisible(e.details[t],!1)}},{key:"updateOperationItemProgress",value:function(e,t,n,i){if(e.common.progressBar.option("value",i),e.details){var o=e.details[t];o.progressBar.option("value",n)}}},{key:"completeOperation",value:function(e,t,n,i){e.completed=!0,e.common.$commonText.text(t),n?this._removeProgressBar(e.common):e.allowProgressAutoUpdate&&e.common.progressBar.option("value",100),i&&this._setProgressBarText(e.common,i),this._setCloseButtonVisible(e.common,!0)}},{key:"completeSingleOperationWithError",value:function(e,t){e.completed=!0,this._renderOperationError(e.common,t),this._setCloseButtonVisible(e.common,!0)}},{key:"addOperationDetailsError",value:function(e,t,n){var i=e.details[t];this._renderOperationError(i,n),this._setCloseButtonVisible(i,!1)}},{key:"renderError",value:function(e,t,n){(0,d.default)("<div>").text(n).addClass(R).appendTo(e)}},{key:"createErrorDetailsProgressBox",value:function(e,t,n){var i=this._createDetailsItem(e,t,-1,!0);this._renderOperationError(i,n)}},{key:"_renderOperationError",value:function(e,t){this._removeProgressBar(e),this.renderError(e.$wrapper,e.$commonText,t)}},{key:"_removeProgressBar",value:function(e){e.progressBar&&(e.progressBar.dispose(),e.progressBar.$element().remove(),e.progressBar=null)}},{key:"_createProgressBox",value:function(e,t){var n=this;e.addClass(F),t.showCloseButtonAlways||e.addClass(V),t.imageUrl&&(0,p.getImageContainer)(t.imageUrl).addClass(H).appendTo(e);var i=(0,d.default)("<div>").addClass(L).appendTo(e),o=(0,d.default)("<div>").addClass(z).text(t.commonText).appendTo(i),a=null;if(!t.skipProgressBox){var r=(0,d.default)("<div>").addClass($).appendTo(i);a=this._createComponent(r,y.default,{min:0,max:100,width:"100%",validationMessageMode:"always",statusFormat:function(e,t){return n._getStatusString(e,t)}})}var s=null;if(t.showCloseButton){var l=(0,d.default)("<div>").addClass(N).appendTo(e);s=this._createComponent(l,x.default,{icon:"dx-filemanager-i dx-filemanager-i-cancel",stylingMode:"text",visible:t.showCloseButtonAlways,onClick:t.onCloseButtonClick})}return{$commonText:o,progressBar:a,$element:e,$wrapper:i,closeButton:s}}},{key:"_setCloseButtonVisible",value:function(e,t){e.closeButton&&(e.$element.toggleClass(V,!t),e.closeButton.option("visible",t))}},{key:"_setProgressBarText",value:function(e,t){e.progressBar.option("statusFormat",function(){return t})}},{key:"_closeOperation",value:function(e){var t=this;e.customCloseHandling&&!e.completed?(this._raiseOperationCanceled(e),this._setCloseButtonVisible(e.common,!1),e.details.forEach(function(e){return t._displayClosedOperationItem(e)})):(this._raiseOperationClosed(e),e.$info.next("."+O).remove(),e.$info.remove())}},{key:"_cancelOperationItem",value:function(e,t){this._raiseOperationItemCanceled(e,t);var n=e.info.details[t];this._displayClosedOperationItem(n)}},{key:"_displayClosedOperationItem",value:function(e){this._setProgressBarText(e,g.default.format("dxFileManager-notificationProgressPanelOperationCanceled")),this._setCloseButtonVisible(e,!1)}},{key:"_getStatusString",value:function(e,t){return 1===e?g.default.format("Done"):Math.round(100*e)+"%"}},{key:"_raiseOperationClosed",value:function(e){this._actions.onOperationClosed({info:e})}},{key:"_raiseOperationCanceled",value:function(e){this._actions.onOperationCanceled({info:e})}},{key:"_raiseOperationItemCanceled",value:function(e,t){this._actions.onOperationItemCanceled({item:e,itemIndex:t})}},{key:"_raisePanelClosed",value:function(){this._actions.onPanelClosed()}}]),t}(m.default);e.exports=W},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(2),c=i(d),h=n(0),p=n(6),f=n(3),g=n(45),_=n(10),m=i(_),v=n(17),y=i(v),w=n(757),x=i(w),b=n(758),C=i(b),k=n(759),I=i(k),S=n(760),D=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_initMarkup",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions(),this._controller=this.option("controller"),this._controller.on("EditActionStarting",this._onEditActionStarting.bind(this)),this._controller.on("EditActionResultAcquired",this._onEditActionResultAcquired.bind(this)),this._controller.on("EditActionItemError",this._onEditActionItemError.bind(this)),this._controller.on("EditActionError",this._onEditActionError.bind(this)),this._controller.on("CompleteEditActionItem",this._onCompleteEditActionItem.bind(this)),this._controller.on("CompleteEditAction",this._onCompleteEditAction.bind(this)),this._model=this.option("model"),this._uploadOperationInfoMap={},this._renameItemDialog=this._createEnterNameDialog(m.default.format("dxFileManager-dialogRenameItemTitle"),m.default.format("dxFileManager-dialogRenameItemButtonText")),this._createFolderDialog=this._createEnterNameDialog(m.default.format("dxFileManager-dialogCreateDirectoryTitle"),m.default.format("dxFileManager-dialogCreateDirectoryButtonText"));var e=(0,c.default)("<div>").appendTo(this.$element());this._chooseFolderDialog=this._createComponent(e,C.default,{provider:this._controller._fileProvider,getDirectories:this._controller.getDirectories.bind(this._controller),getCurrentDirectory:this._controller.getCurrentDirectory.bind(this._controller),onClosed:this._onDialogClosed.bind(this)}),this._confirmationDialog=this._createConfirmationDialog(),this._fileUploader=this._createFileUploader(),this._createMetadataMap()}},{key:"_initNotificationControl",value:function(e){var t=this;this._notificationControl=e,this._notificationControl.option({onOperationCanceled:function(e){var n=e.info;return t._onCancelUploadSession(n)},onOperationItemCanceled:function(e){var n=e.item,i=e.itemIndex;return t._onCancelFileUpload(n,i)}})}},{key:"_getFileUploaderComponent",value:function(){return I.default}},{key:"_createFileUploader",value:function(){var e=this,t=(0,c.default)("<div>").appendTo(this.$element());return this._createComponent(t,this._getFileUploaderComponent(),{getController:this._getFileUploaderController.bind(this),onUploadSessionStarted:function(t){return e._onUploadSessionStarted(t)},onUploadProgress:function(t){return e._onUploadProgress(t)}})}},{key:"_getFileUploaderController",value:function(){var e=this,t=this._uploadDirectoryInfo&&this._uploadDirectoryInfo.fileItem;return{chunkSize:this._controller.getFileUploadChunkSize(),uploadFileChunk:function(n,i){return e._controller.uploadFileChunk(n,i,t)},abortFileUpload:function(n,i){return e._controller.abortFileUpload(n,i,t)}}}},{key:"_createEnterNameDialog",value:function(e,t){var n=(0,c.default)("<div>").appendTo(this.$element());return this._createComponent(n,x.default,{title:e,buttonText:t,onClosed:this._onDialogClosed.bind(this)})}},{key:"_createConfirmationDialog",value:function(){var e=this;return{show:function(){setTimeout(function(){e._onDialogClosed({dialogResult:{}})})}}}},{key:"_createMetadataMap",value:function(){var e=this;this._metadataMap={create:{action:function(t){return e._tryCreate(t)},affectsAllItems:!0,singleItemProcessingMessage:m.default.format("dxFileManager-editingCreateSingleItemProcessingMessage"),singleItemSuccessMessage:m.default.format("dxFileManager-editingCreateSingleItemSuccessMessage"),singleItemErrorMessage:m.default.format("dxFileManager-editingCreateSingleItemErrorMessage"),commonErrorMessage:m.default.format("dxFileManager-editingCreateCommonErrorMessage")},rename:{action:function(t){return e._tryRename(t)},singleItemProcessingMessage:m.default.format("dxFileManager-editingRenameSingleItemProcessingMessage"),singleItemSuccessMessage:m.default.format("dxFileManager-editingRenameSingleItemSuccessMessage"),singleItemErrorMessage:m.default.format("dxFileManager-editingRenameSingleItemErrorMessage"),commonErrorMessage:m.default.format("dxFileManager-editingRenameCommonErrorMessage")},"delete":{action:function(t){return e._tryDelete(t)},singleItemProcessingMessage:m.default.format("dxFileManager-editingDeleteSingleItemProcessingMessage"),multipleItemsProcessingMessage:m.default.format("dxFileManager-editingDeleteMultipleItemsProcessingMessage"),singleItemSuccessMessage:m.default.format("dxFileManager-editingDeleteSingleItemSuccessMessage"),multipleItemsSuccessMessage:m.default.format("dxFileManager-editingDeleteMultipleItemsSuccessMessage"),singleItemErrorMessage:m.default.format("dxFileManager-editingDeleteSingleItemErrorMessage"),multipleItemsErrorMessage:m.default.format("dxFileManager-editingDeleteMultipleItemsErrorMessage"),commonErrorMessage:m.default.format("dxFileManager-editingDeleteCommonErrorMessage")},move:{action:function(t){return e._tryMove(t)},singleItemProcessingMessage:m.default.format("dxFileManager-editingMoveSingleItemProcessingMessage"),multipleItemsProcessingMessage:m.default.format("dxFileManager-editingMoveMultipleItemsProcessingMessage"),singleItemSuccessMessage:m.default.format("dxFileManager-editingMoveSingleItemSuccessMessage"),multipleItemsSuccessMessage:m.default.format("dxFileManager-editingMoveMultipleItemsSuccessMessage"),singleItemErrorMessage:m.default.format("dxFileManager-editingMoveSingleItemErrorMessage"),multipleItemsErrorMessage:m.default.format("dxFileManager-editingMoveMultipleItemsErrorMessage"),commonErrorMessage:m.default.format("dxFileManager-editingMoveCommonErrorMessage")},copy:{action:function(t){return e._tryCopy(t)},singleItemProcessingMessage:m.default.format("dxFileManager-editingCopySingleItemProcessingMessage"),multipleItemsProcessingMessage:m.default.format("dxFileManager-editingCopyMultipleItemsProcessingMessage"),singleItemSuccessMessage:m.default.format("dxFileManager-editingCopySingleItemSuccessMessage"),multipleItemsSuccessMessage:m.default.format("dxFileManager-editingCopyMultipleItemsSuccessMessage"),singleItemErrorMessage:m.default.format("dxFileManager-editingCopySingleItemErrorMessage"),multipleItemsErrorMessage:m.default.format("dxFileManager-editingCopyMultipleItemsErrorMessage"),commonErrorMessage:m.default.format("dxFileManager-editingCopyCommonErrorMessage")},upload:{action:function(t){return e._tryUpload(t)},allowCancel:!0,allowItemProgress:!0,singleItemProcessingMessage:m.default.format("dxFileManager-editingUploadSingleItemProcessingMessage"),multipleItemsProcessingMessage:m.default.format("dxFileManager-editingUploadMultipleItemsProcessingMessage"),singleItemSuccessMessage:m.default.format("dxFileManager-editingUploadSingleItemSuccessMessage"),multipleItemsSuccessMessage:m.default.format("dxFileManager-editingUploadMultipleItemsSuccessMessage"),singleItemErrorMessage:m.default.format("dxFileManager-editingUploadSingleItemErrorMessage"),multipleItemsErrorMessage:m.default.format("dxFileManager-editingUploadMultipleItemsErrorMessage"),canceledMessage:m.default.format("dxFileManager-editingUploadCanceledMessage")},download:{action:function(t){return e._download(t)}},getItemContent:{action:function(t){return e._getItemContent(t)}}}}},{key:"getCommandActions",value:function(){var e=this,t={};return(0,f.each)(this._metadataMap,function(n){Object.prototype.hasOwnProperty.call(e._metadataMap,n)&&(t[n]=function(t){return e._executeAction(n,t)})}),t}},{key:"_executeAction",value:function(e,t){var n=this._metadataMap[e];return n?n.action(t):null}},{key:"_onCancelUploadSession",value:function(e){this._fileUploader.cancelUpload(e.uploadSessionId)}},{key:"_onCancelFileUpload",value:function(e,t){this._fileUploader.cancelFileUpload(e.info.uploadSessionId,t)}},{key:"_onUploadProgress",value:function(e){var t=e.sessionId,n=e.fileIndex,i=e.commonValue,o=e.fileValue,a=this._uploadOperationInfoMap[t];this._notificationControl.updateOperationItemProgress(a,n,100*o,100*i)}},{key:"_onUploadSessionStarted",value:function(e){var t=e.sessionInfo;this._controller.processUploadSession(t,this._uploadDirectoryInfo)}},{key:"_onEditActionStarting",value:function(e){var t=this._metadataMap[e.name],n=new T(t,e.itemInfos,e.directory),i=this._notificationControl.addOperation(n.processingMessage,t.allowCancel,!t.allowItemProgress);if((0,h.extend)(e.customData,{context:n,operationInfo:i}),"upload"===e.name){var o=e.customData.sessionInfo.sessionId;i.uploadSessionId=o,this._uploadOperationInfoMap[o]=i}}},{key:"_onEditActionResultAcquired",value:function(e){var t=this,n=e.customData,i=n.context,o=n.operationInfo;if(i.singleRequest=e.singleRequest,!i.singleRequest){var a=i.itemInfos.map(function(e){return t._getItemProgressDisplayInfo(e)});this._notificationControl.addOperationDetails(o,a,i.actionMetadata.allowCancel)}}},{key:"_onEditActionError",value:function(e,t){var n=e.customData,i=n.context,o=n.operationInfo;i.singleRequest=e.singleRequest,this._handleActionError(o,i,t),this._completeAction(o,i)}},{key:"_onEditActionItemError",
value:function(e,t){var n=e.customData,i=n.context,o=n.operationInfo;this._handleActionError(o,i,t)}},{key:"_onCompleteEditActionItem",value:function(e,t){var n=e.customData,i=n.context,o=n.operationInfo;t.result&&t.result.canceled||(i.completeOperationItem(t.index),i.singleRequest||this._notificationControl.completeOperationItem(o,t.index,i.commonProgress))}},{key:"_onCompleteEditAction",value:function(e){var t=e.customData,n=t.context,i=t.operationInfo;this._completeAction(i,n),"upload"===e.name&&delete this._uploadOperationInfoMap[e.customData.sessionInfo.sessionId]}},{key:"_tryCreate",value:function(e){var t=this,n=e&&e[0]||this._getCurrentDirectory(),i=m.default.format("dxFileManager-newDirectoryName");return this._showDialog(this._createFolderDialog,i).then(function(e){var i=e.name;return t._controller.createDirectory(n,i)})}},{key:"_tryRename",value:function(e){var t=this,n=e&&e[0]||this._model.getMultipleSelectedItems()[0];return this._showDialog(this._renameItemDialog,n.fileItem.name).then(function(e){var i=e.name;return t._controller.renameItem(n,i)})}},{key:"_tryDelete",value:function(e){var t=this;return e=e||this._model.getMultipleSelectedItems(),this._showDialog(this._confirmationDialog).then(function(){return t._controller.deleteItems(e)})}},{key:"_tryMove",value:function(e){var t=this;return e=e||this._model.getMultipleSelectedItems(),this._showDialog(this._chooseFolderDialog).then(function(n){var i=n.folder;return t._controller.moveItems(e,i)})}},{key:"_tryCopy",value:function(e){var t=this;return e=e||this._model.getMultipleSelectedItems(),this._showDialog(this._chooseFolderDialog).then(function(n){var i=n.folder;return t._controller.copyItems(e,i)})}},{key:"_tryUpload",value:function(e){this._uploadDirectoryInfo=e&&e[0]||this._getCurrentDirectory(),this._fileUploader.tryUpload()}},{key:"_download",value:function(e){return e=e||this._model.getMultipleSelectedItems(),this._controller.downloadItems(e)}},{key:"_getItemContent",value:function(e){return e=e||this._model.getMultipleSelectedItems(),this._controller.getItemContent(e)}},{key:"_completeAction",value:function(e,t){this._notificationControl.completeOperation(e,t.completionMessage,!t.success,t.statusText),t.hasModifiedItems()&&this._raiseOnSuccess(t.onlyFiles)}},{key:"_handleActionError",value:function(e,t,n){e.hasError=!0,t.singleRequest?this._handleSingleRequestActionError(e,t,n):this._handleMultipleRequestActionError(e,t,n)}},{key:"_handleSingleRequestActionError",value:function(e,t,n){var i=t.getItemForSingleRequestError(),o=this._getErrorText(n,i);t.processSingleRequestError(o);var a=this._getOperationErrorInfo(t);this._notificationControl.completeSingleOperationWithError(e,a),t.multipleItems&&this._raiseOnSuccess(t.onlyFiles)}},{key:"_handleMultipleRequestActionError",value:function(e,t,n){var i=t.getItemForMultipleRequestError(n.index),o=this._getErrorText(n,i);t.processMultipleRequestError(n.index,o);var a=this._getOperationErrorInfo(t);this._notificationControl.addOperationDetailsError(e,a)}},{key:"_getOperationErrorInfo",value:function(e){var t=e.errorState.currentDetailError;return{commonErrorText:e.errorState.commonErrorText,item:t.itemInfo?this._getItemProgressDisplayInfo(t.itemInfo):null,itemIndex:t.itemIndex,detailErrorText:t.errorText}}},{key:"_getErrorText",value:function(e,t){var n=t?t.fileItem.name:null;return S.FileManagerMessages.get(e.errorId,n)}},{key:"_getItemProgressDisplayInfo",value:function(e){return{commonText:e.fileItem.name,imageUrl:this._getItemThumbnail(e)}}},{key:"_showDialog",value:function(e,t){return this._dialogDeferred=new p.Deferred,e.show(t),this._dialogDeferred.promise()}},{key:"_onDialogClosed",value:function(e){var t=e.dialogResult;t?this._dialogDeferred.resolve(t):this._dialogDeferred.reject()}},{key:"_getItemThumbnail",value:function(e){var t=this.option("getItemThumbnail");if(!t)return null;var n=t(e);return n?n.thumbnail:null}},{key:"_initActions",value:function(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError"),onCreating:this._createActionByOption("onCreating")}}},{key:"_getDefaultOptions",value:function(){return(0,h.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{model:{getMultipleSelectedItems:null},notificationControl:null,getItemThumbnail:null,onSuccess:null,onError:null,onCreating:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"model":this.repaint();break;case"notificationControl":this._initNotificationControl(e.value);break;case"getItemThumbnail":break;case"onSuccess":case"onError":case"onCreating":this._actions[n]=this._createActionByOption(n);break;default:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_raiseOnSuccess",value:function(e){this._actions.onSuccess({updatedOnlyFiles:e})}},{key:"_raiseOnError",value:function(e,t){var n=t?t.name:null,i=S.FileManagerMessages.get(e,n);this._actions.onError({message:i})}},{key:"_getCurrentDirectory",value:function(){return this._controller.getCurrentDirectory()}}]),t}(y.default),T=function(){function e(t,n,i){a(this,e),this._actionMetadata=t,this._itemInfos=n,this._onlyFiles=!this._actionMetadata.affectsAllItems&&this._itemInfos.every(function(e){return!e.fileItem.isDirectory}),this._items=this._itemInfos.map(function(e){return e.fileItem}),this._multipleItems=this._items.length>1,this._location=i.fileItem.name,this._singleRequest=!0,this._completedItems=[],this._commonProgress=0,this._errorState={failedCount:0}}return l(e,[{key:"completeOperationItem",value:function(e){if(this._singleRequest)this._completedItems=[].concat(o(this._items));else{var t=this._items[e];this._completedItems.push(t)}this._actionMetadata.allowItemProgress||(this._commonProgress=this._completedItems.length/this._items.length*100)}},{key:"processSingleRequestError",value:function(e){this._errorState.failedCount=1,this._errorState.commonErrorText=this._multipleItems?this._actionMetadata.commonErrorMessage:this._actionMetadata.singleItemErrorMessage;var t=this._multipleItems?-1:1,n=this.getItemForSingleRequestError();this._setCurrentDetailError(t,n,e)}},{key:"processMultipleRequestError",value:function(e,t){this._errorState.failedCount++,this._errorState.commonErrorText=this._errorState.failedCount>1?(0,g.format)(this._actionMetadata.multipleItemsErrorMessage,this._errorState.failedCount):this._actionMetadata.singleItemErrorMessage;var n=this.getItemForMultipleRequestError(e);this._setCurrentDetailError(e,n,t)}},{key:"hasModifiedItems",value:function(){return this._hasCompletedItems()||this._singleRequest&&!this.success&&this._multipleItems}},{key:"getItemForSingleRequestError",value:function(){return this._multipleItems?null:this._itemInfos[0]}},{key:"getItemForMultipleRequestError",value:function(e){return this._itemInfos[e]}},{key:"_setCurrentDetailError",value:function(e,t,n){this._errorState.currentDetailError={itemIndex:e,itemInfo:t,errorText:n}}},{key:"_hasCompletedItems",value:function(){return this._completedItems.length>0}},{key:"actionMetadata",get:function(){return this._actionMetadata}},{key:"itemInfos",get:function(){return this._itemInfos}},{key:"errorState",get:function(){return this._errorState}},{key:"singleRequest",get:function(){return this._singleRequest},set:function(e){this._singleRequest=e}},{key:"multipleItems",get:function(){return this._multipleItems}},{key:"onlyFiles",get:function(){return this._onlyFiles}},{key:"processingMessage",get:function(){return this._multipleItems?(0,g.format)(this._actionMetadata.multipleItemsProcessingMessage,this._items.length,this._location):(0,g.format)(this._actionMetadata.singleItemProcessingMessage,this._location)}},{key:"successMessage",get:function(){return this._hasCompletedItems()?this._multipleItems?(0,g.format)(this._actionMetadata.multipleItemsSuccessMessage,this._completedItems.length,this._location):(0,g.format)(this._actionMetadata.singleItemSuccessMessage,this._location):this._multipleItems?(0,g.format)(this._actionMetadata.multipleItemsErrorMessage,this._items.length):this._actionMetadata.singleItemErrorMessage}},{key:"completionMessage",get:function(){return this.success?this.successMessage:this.errorState.commonErrorText}},{key:"statusText",get:function(){return this.success&&!this._hasCompletedItems()?this._actionMetadata.canceledMessage:void 0}},{key:"commonProgress",get:function(){return this._commonProgress}},{key:"success",get:function(){return!this._errorState.failedCount}}]),e}();e.exports=D},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(93),p=i(h),f=n(405),g=i(f),_="dx-filemanager-dialog-name-editor",m="dx-filemanager-dialog-name-editor-popup",v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"show",value:function(e){e=e||"",this._nameTextBox?this._nameTextBox.option("value",e):this._initialNameValue=e,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this)}},{key:"_onPopupShown",value:function(){if(this._nameTextBox){var e=this._nameTextBox._input();e.length&&e[0].select(),this._nameTextBox.focus()}}},{key:"_getDialogOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDialogOptions",this).call(this),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:_,popupCssClass:m})}},{key:"_createContentTemplate",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createContentTemplate",this).call(this,e),this._nameTextBox=this._createComponent((0,d.default)("<div>"),p.default,{value:this._initialNameValue,onEnterKey:this._applyDialogChanges.bind(this)}),this._$contentElement.append(this._nameTextBox.$element())}},{key:"_getDialogResult",value:function(){var e=this._nameTextBox.option("value");return e?{name:e}:null}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{title:"",buttonText:""})}}]),t}(g.default);e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(10),p=i(h),f=n(405),g=i(f),_=n(402),m=i(_),v="dx-filemanager-dialog-folder-chooser",y="dx-filemanager-dialog-folder-chooser-popup",w=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"show",value:function(){this._filesTreeView&&this._filesTreeView.refresh(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this)}},{key:"_getDialogOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDialogOptions",this).call(this),{title:p.default.format("dxFileManager-dialogDirectoryChooserTitle"),buttonText:p.default.format("dxFileManager-dialogDirectoryChooserButtonText"),contentCssClass:v,popupCssClass:y})}},{key:"_createContentTemplate",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createContentTemplate",this).call(this,e),this._filesTreeView=this._createComponent((0,d.default)("<div>"),m.default,{getDirectories:this.option("getDirectories"),getCurrentDirectory:this._getDialogSelectedDirectory.bind(this),onDirectoryClick:this._onFilesTreeViewDirectoryClick.bind(this)}),this._$contentElement.append(this._filesTreeView.$element())}},{key:"_getDialogResult",value:function(){return{folder:this._getDialogSelectedDirectory()}}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{getItems:null})}},{key:"_getDialogSelectedDirectory",value:function(){return this._selectedDirectoryInfo||this.option("getCurrentDirectory")()}},{key:"_onFilesTreeViewDirectoryClick",value:function(e){var t=e.itemData;this._selectedDirectoryInfo=t,this._filesTreeView.updateCurrentDirectory()}}]),t}(g.default);e.exports=w},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(6),p=n(1),f=n(34),g=i(f),_=n(17),m=i(_),v=n(254),y=i(v),w=n(204),x=i(w),b="dx-filemanager-fileuploader",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){this._initActions(),this.$element().addClass(b),this._uploaderInfos=[],this._createInternalFileUploader(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_createInternalFileUploader",value:function(){var e=this,t=this._getController().chunkSize,n=(0,d.default)("<div>").appendTo(this.$element()),i=this._createComponent(n,y.default,{name:"file",multiple:!0,showFileList:!1,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,labelText:"",readyToUploadMessage:"",accept:"*",chunkSize:t,onValueChanged:function(t){return e._onFileUploaderValueChanged(t)},onProgress:function(t){return e._onFileUploaderProgress(t)},onUploaded:function(t){return e._onFileUploaderUploaded(t)},onUploadAborted:function(t){return e._onFileUploaderUploadAborted(t)},onUploadError:function(t){return e._onFileUploaderUploadError(t)}});i.option({uploadChunk:function(t,n){return e._fileUploaderUploadChunk(i,t,n)},abortUpload:function(t,n){return e._fileUploaderAbortUpload(i,t,n)}});var o={fileUploader:i};this._uploaderInfos.push(o)}},{key:"tryUpload",value:function(){var e=this._findAvailableUploaderInfo();e&&e.fileUploader._selectButtonClickHandler()}},{key:"cancelUpload",value:function(e){this._cancelUpload(e)}},{key:"cancelFileUpload",value:function(e,t){this._cancelUpload(e,t)}},{key:"_cancelUpload",value:function(e,t){var n=this._findUploaderInfoBySessionId(e),i=n.fileUploader,o=(0,p.isDefined)(t)?[i._files[t]]:i._files;i._preventFilesUploading(o)}},{key:"_fileUploaderUploadChunk",value:function(e,t,n){var i=this._findSessionByFile(e,t),o=i.session,a=i.fileIndex,r=o.controller;return n.fileIndex=a,r.uploadFileChunk(t,n)}},{key:"_fileUploaderAbortUpload",value:function(e,t,n){var i=this._findSessionByFile(e,t),o=i.session,a=i.fileIndex,r=o.controller;return n.fileIndex=a,r.abortFileUpload(t,n)}},{key:"_onFileUploaderValueChanged",value:function(e){var t=this,n=e.component,i=e.value;if(0!==i.length){var o=i.slice(),a=this._findUploaderInfo(n);this._uploadFiles(a,o),setTimeout(function(){t._findAvailableUploaderInfo()||t._createInternalFileUploader()})}}},{key:"_onFileUploaderProgress",value:function(e){var t=e.component,n=e.file,i=e.bytesLoaded,o=e.bytesTotal,a=this._findSessionByFile(t,n),r=a.session,s=a.fileIndex,l=0!==o?i/o:1,u=t.option("progress")/100,d={sessionId:r.id,fileIndex:s,commonValue:u,fileValue:l};this._raiseUploadProgress(d)}},{key:"_onFileUploaderUploaded",value:function(e){var t=e.component,n=e.file,i=this._getDeferredForFile(t,n);i.resolve()}},{key:"_onFileUploaderUploadAborted",value:function(e){var t=e.component,n=e.file,i=this._getDeferredForFile(t,n);i.resolve({canceled:!0})}},{key:"_onFileUploaderUploadError",value:function(e){var t=e.component,n=e.file,i=e.error,o=this._getDeferredForFile(t,n);o.reject(i)}},{key:"_uploadFiles",value:function(e,t){var n=(new g.default).toString(),i=this._getController(),o=t.map(function(){return new h.Deferred}),a={id:n,controller:i,files:t,deferreds:o};e.session=a;var r={sessionId:n,deferreds:o,files:t};return this._raiseUploadSessionStarted(r),(0,x.default)(o).always(function(){return setTimeout(function(){e.fileUploader.option("value",[]),e.session=null})})}},{key:"_getDeferredForFile",value:function(e,t){var n=this._findSessionByFile(e,t),i=n.session,o=n.fileIndex;return i.deferreds[o]}},{key:"_findSessionByFile",value:function(e,t){var n=this._findUploaderInfo(e),i=n.session,o=i.files.indexOf(t);return{session:i,fileIndex:o}}},{key:"_findUploaderInfoBySessionId",value:function(e){for(var t=0;t<this._uploaderInfos.length;t++){var n=this._uploaderInfos[t],i=n.session;if(i&&i.id===e)return n}return null}},{key:"_findAvailableUploaderInfo",value:function(){for(var e=0;e<this._uploaderInfos.length;e++){var t=this._uploaderInfos[e];if(!t.session)return t}return null}},{key:"_findUploaderInfo",value:function(e){for(var t=0;t<this._uploaderInfos.length;t++){var n=this._uploaderInfos[t];if(n.fileUploader===e)return n}return null}},{key:"_getController",value:function(){var e=this.option("getController");return e()}},{key:"_raiseUploadSessionStarted",value:function(e){this._actions.onUploadSessionStarted({sessionInfo:e})}},{key:"_raiseUploadProgress",value:function(e){this._actions.onUploadProgress(e)}},{key:"_initActions",value:function(){this._actions={onUploadSessionStarted:this._createActionByOption("onUploadSessionStarted"),onUploadProgress:this._createActionByOption("onUploadProgress")}}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{getController:null,onUploadSessionStarted:null,onUploadProgress:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"getController":this.repaint();break;case"onUploadSessionStarted":case"onUploadProgress":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(m.default);e.exports=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.FileManagerMessages=void 0;var o=n(10),a=i(o),r=n(204);t.FileManagerMessages={get:function(e,t){switch(e){case r.ErrorCode.NoAccess:return a.default.format("dxFileManager-errorNoAccess");case r.ErrorCode.FileExists:return a.default.format("dxFileManager-errorFileExistsFormat",t);case r.ErrorCode.FileNotFound:return a.default.format("dxFileManager-errorFileNotFoundFormat",t);case r.ErrorCode.DirectoryExists:return a.default.format("dxFileManager-errorDirectoryExistsFormat",t);case r.ErrorCode.DirectoryNotFound:return a.default.format("dxFileManager-errorDirectoryNotFoundFormat",t);case r.ErrorCode.WrongFileExtension:return a.default.format("dxFileManager-errorWrongFileExtension");case r.ErrorCode.MaxFileSizeExceeded:return a.default.format("dxFileManager-errorMaxFileSizeExceeded");case r.ErrorCode.InvalidSymbols:return a.default.format("dxFileManager-errorInvalidSymbols")}return a.default.format("dxFileManager-errorDefault")}};e.exports.ErrorCode=r.ErrorCode},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(5),p=i(h),f=n(8),g=n(17),_=i(g),m=n(368),v=i(m),y="dx-filemanager-breadcrumbs",w=y+"-parent-folder-item",x=y+"-separator-item",b=y+"-path-separator-item",C="dx-menu-items-container",k="dxFileManager_breadcrubms",I=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._currentDirectory=null}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions(),this._currentDirectory&&this._renderMenu(),this.$element().addClass(y)}},{key:"setCurrentDirectory",value:function(e){this._areDirsEqual(this._currentDirectory,e)||(this._currentDirectory=e,this.repaint())}},{key:"_renderMenu",value:function(){var e=(0,d.default)("<div>").appendTo(this.$element());this._menu=this._createComponent(e,v.default,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)});var t=(0,f.addNamespace)("click",k);p.default.on(e,t,this._onClick.bind(this))}},{key:"_getMenuItems",value:function(){var e=this._getParentDirsLine(),t=[{icon:"arrowup",directory:this._currentDirectory.parentDirectory,isPathItem:!0,cssClass:w},{cssClass:x}];return e.forEach(function(n,i){t.push({text:n.fileItem.name,directory:n,isPathItem:!0}),i!==e.length-1&&t.push({icon:"spinnext",cssClass:b})}),t}},{key:"_onItemClick",value:function(e){var t=e.itemData;if(t.isPathItem){var n=t.directory;this._areDirsEqual(n,this._currentDirectory)||this._raiseCurrentDirectoryChanged(n)}}},{key:"_onClick",value:function(e){var t=e.target,n=(0,d.default)(t).closest("."+C);0===n.length&&this._raiseOutsideClick()}},{key:"_onItemRendered",value:function(e){var t=e.itemElement,n=e.itemData;n.cssClass&&(0,d.default)(t).addClass(n.cssClass)}},{key:"_getParentDirsLine",value:function(){for(var e=this._currentDirectory,t=[];e;)t.unshift(e),e=e.parentDirectory;return t}},{key:"_areDirsEqual",value:function(e,t){return e&&t&&e===t&&e.fileItem.key===t.fileItem.key}},{key:"_initActions",value:function(){this._actions={onCurrentDirectoryChanging:this._createActionByOption("onCurrentDirectoryChanging"),onOutsideClick:this._createActionByOption("onOutsideClick")}}},{key:"_raiseCurrentDirectoryChanged",value:function(e){this._actions.onCurrentDirectoryChanging({currentDirectory:e})}},{key:"_raiseOutsideClick",value:function(){this._actions.onOutsideClick()}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{rootFolderDisplayName:"Files",onCurrentDirectoryChanging:null,onOutsideClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"rootFolderDisplayName":this.repaint();break;case"onCurrentDirectoryChanging":case"onOutsideClick":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(_.default);e.exports=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(0),h=n(1),p=n(7),f=n(17),g=i(f),_=n(252),m=i(_),v=n(406),y=i(v),w=(0,p.getWindow)(),x=573,b="dx-drawer-panel-content-initial",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions(),this._isInAdaptiveState=!1;var e=(0,d.default)("<div>").appendTo(this.$element()),n=this.option("contentTemplate");(0,h.isFunction)(n)&&n(e),this._drawer=this._createComponent(e,m.default),this._drawer.option({opened:!0,template:this._createDrawerTemplate.bind(this)}),(0,d.default)(this._drawer.content()).addClass(b)}},{key:"_createDrawerTemplate",value:function(e){this.option("drawerTemplate")(e),this._splitter=this._createComponent("<div>",y.default,{container:this.$element(),leftElement:(0,d.default)(this._drawer.content()),rightElement:(0,d.default)(this._drawer.viewContent()),onApplyPanelSize:this._onApplyPanelSize.bind(this)}),this._splitter.$element().appendTo(e)}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._checkAdaptiveState()}},{key:"_onApplyPanelSize",value:function(e){if((0,p.hasWindow)()){if(!this._splitter.isSplitterMoved())return void this._updateDrawerDimensions();(0,d.default)(this._drawer.content()).removeClass(b),(0,d.default)(this._drawer.content()).css("width",e.leftPanelWidth),this._drawer.resizeContent()}}},{key:"_updateDrawerDimensions",value:function(){(0,d.default)(this._drawer.content()).css("width",""),this._drawer._initSize(),this._drawer._strategy.setPanelSize(!0)}},{key:"_dimensionChanged",value:function(e){e&&"height"===e||this._checkAdaptiveState()}},{key:"_checkAdaptiveState",value:function(){var e=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),e!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),this._raiseAdaptiveStateChanged(this._isInAdaptiveState),this._splitter.toggleState(!this._isInAdaptiveState))}},{key:"_isSmallScreen",value:function(){return(0,d.default)(w).width()<=x}},{key:"_initActions",value:function(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}}},{key:"_raiseAdaptiveStateChanged",value:function(e){this._actions.onAdaptiveStateChanged({enabled:e})}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"isInAdaptiveState",value:function(){return this._isInAdaptiveState}},{key:"toggleDrawer",value:function(e,t){this._drawer.option("animationEnabled",!t),this._drawer.toggle(e)}}]),t}(g.default);e.exports=C},function(e,t,n){e.exports=n(764)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(17),h=i(c),p=n(317),f=i(p),g=n(80),_=i(g),m=n(9),v=i(m),y=n(0),w=n(1),x=i(w),b=n(18),C=i(b),k=n(765),I=i(k),S=n(767),D=i(S),T=n(768),E=i(T),O=n(769),A=i(O),P=n(770),B=i(P),M=n(771),F=i(M),R=n(772),V=i(R),H=n(773),L=i(H),z=n(774),$=i(z),N=n(169),W=i(N),j=n(146),q=n(7),G=n(5),K=i(G),U=n(8),Y=i(U),X=n(10),Z=i(X),Q=n(51),J=i(Q),ee=n(775),te=i(ee),ne="dx-diagram",ie="dx-diagram-fullscreen",oe=ne+"-toolbar-wrapper",ae=ne+"-content-wrapper",re=ne+"-drawer-wrapper",se=ne+"-content",le=ne+"-loading-indicator",ue="in",de=1,ce="disabled",he="portrait",pe="white",fe="dxDiagramEvent",ge=Y.default.addNamespace("fullscreenchange",fe),_e=Y.default.addNamespace("msfullscreenchange",fe),me=Y.default.addNamespace("webkitfullscreenchange",fe),ve=Y.default.addNamespace("mozfullscreenchange",fe),ye=function(e){
function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){this._updateDiagramLockCount=0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._initDiagram(),this.optionsUpdateBar=new V.default(this)}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e=!(0,q.hasWindow)();this.$element().addClass(ne),this._toolbarInstance=void 0,this.option("toolbar.visible")&&this._renderToolbar();var n=(0,d.default)("<div>").addClass(ae).appendTo(this.$element());this._leftPanel=void 0,this.option("toolbox.visible")&&this._renderLeftPanel(n);var i=(0,d.default)("<div>").addClass(re).appendTo(n);if(this.option("propertiesPanel.enabled")){var o=(0,d.default)("<div>").appendTo(i);this._content=(0,d.default)("<div>").addClass(se).appendTo(o),this._renderRightPanel(o)}else this._content=(0,d.default)("<div>").addClass(se).appendTo(i);this._contextMenu=void 0,this.option("contextMenu.enabled")&&this._renderContextMenu(this._content),this._renderDialog(this._content),!e&&this._diagramInstance.createDocument(this._content[0]),this.option("zoomLevel")!==de&&this._updateZoomLevelState(),this.option("autoZoom")!==ce&&this._updateAutoZoomState(),this.option("simpleView")&&this._updateSimpleViewState(),(this.option("readOnly")||this.option("disabled"))&&this._updateReadOnlyState(),this.option("fullScreen")&&this._updateFullscreenState(),this._diagramInstance.barManager.registerBar(this.optionsUpdateBar)}},{key:"notifyBarCommandExecuted",value:function(){this._diagramInstance.captureFocus()}},{key:"_registerBar",value:function(e){e.bar.onChanged.add(this),this._diagramInstance.barManager.registerBar(e.bar)}},{key:"_renderToolbar",value:function(){var e=this,t=(0,d.default)("<div>").addClass(oe).appendTo(this.$element()),n=[];this.option("propertiesPanel.enabled")&&this.option("propertiesPanel.collapsible")&&n.push("options"),this._toolbarInstance=this._createComponent(t,I.default,{commands:this.option("toolbar.commands"),onContentReady:function(t){return e._registerBar(t.component)},onPointerUp:this._onPanelPointerUp.bind(this),"export":this.option("export"),widgetCommandNames:n})}},{key:"_renderLeftPanel",value:function(e){var t=this,n=!(0,q.hasWindow)(),i=(0,d.default)("<div>").appendTo(e);this._leftPanel=this._createComponent(i,D.default,{toolboxGroups:this._getToolboxGroups(),disabled:this.option("readOnly"),onShapeCategoryRendered:function(i){if(!n){var o=(0,d.default)(i.$element);t._diagramInstance.createToolbox(o[0],40,8,{"data-toggle":"shape-toolbox-tooltip"},i.shapes||i.category,"texts"===i.displayMode),t._createTooltips(e,o.find('[data-toggle="shape-toolbox-tooltip"]'))}},onPointerUp:this._onPanelPointerUp.bind(this)})}},{key:"_createTooltips",value:function(e,t){var n=this;t.each(function(t,i){var o=(0,d.default)(i),a=(0,d.default)("<div>").html(o.attr("title")).appendTo(e);n._createComponent(a,W.default,{target:o.get(0),showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})})}},{key:"_invalidateContextMenuCommands",value:function(){this._contextMenu&&this._contextMenu.option({commands:this.option("contextMenu.commands")})}},{key:"_invalidatePropertiesPanelGroups",value:function(){this._rightPanel&&this._rightPanel.option({propertyGroups:this.option("propertiesPanel.groups")})}},{key:"_invalidateToolbarCommands",value:function(){this._toolbarInstance&&this._toolbarInstance.option({commands:this.option("toolbar.commands")})}},{key:"_invalidateToolboxGroups",value:function(){this._leftPanel&&this._leftPanel.option({toolboxGroups:this._getToolboxGroups()})}},{key:"_setLeftPanelEnabled",value:function(e){this._leftPanel&&this._leftPanel.option({disabled:!e})}},{key:"_renderRightPanel",value:function(e){var t=this,n=this.option("propertiesPanel.collapsible"),i=this._createComponent(e,f.default,{closeOnOutsideClick:n,opened:!n,openedStateMode:n?"overlap":"shrink",position:"right",template:function(e){t._rightPanel=t._createComponent(e,E.default,{propertyGroups:t.option("propertiesPanel.groups"),onContentReady:function(e){return t._registerBar(e.component)},onPointerUp:t._onPanelPointerUp.bind(t)})}});this._toolbarInstance&&this._toolbarInstance.option("onWidgetCommand",function(e){"options"===e.name&&i.toggle()})}},{key:"_onPanelPointerUp",value:function(){this._diagramInstance.captureFocus()}},{key:"_renderContextMenu",value:function(e){var t=this,n=(0,d.default)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(n,A.default,{commands:this.option("contextMenu.commands"),container:e,onContentReady:function(e){var n=e.component;return t._registerBar(n)},onVisibleChanged:function(e){var n=e.component;return t._diagramInstance.barManager.updateBarItemsState(n.bar)},onItemClick:function(e){return t._onBeforeCommandExecuted(e.command)}})}},{key:"_onBeforeCommandExecuted",value:function(e){var t=te.default.getDialogParameters(e);return t&&this._showDialog(t),!!t}},{key:"_renderDialog",value:function(e){var t=(0,d.default)("<div>").appendTo(e);this._dialogInstance=this._createComponent(t,B.default,{})}},{key:"_showDialog",value:function(e){this._dialogInstance&&(this._dialogInstance.option("onGetContent",e.onGetContent),this._dialogInstance.option("onHidden",function(){this._diagramInstance.captureFocus()}.bind(this)),this._dialogInstance.option("command",this._diagramInstance.commandManager.getCommand(e.command)),this._dialogInstance.option("title",e.title),this._dialogInstance._show())}},{key:"_showLoadingIndicator",value:function(){this._loadingIndicator=(0,d.default)("<div>").addClass(le),this._createComponent(this._loadingIndicator,_.default,{});var e=this._content||this.$element();e.append(this._loadingIndicator)}},{key:"_hideLoadingIndicator",value:function(){this._loadingIndicator&&(this._loadingIndicator.remove(),this._loadingIndicator=null)}},{key:"_initDiagram",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramControl;this._diagramInstance=new t,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._diagramInstance.onToggleFullscreen=this._onToggleFullScreen.bind(this),this._diagramInstance.onShowContextMenu=this._onShowContextMenu.bind(this),this._diagramInstance.onHideContextMenu=this._onHideContextMenu.bind(this),this._diagramInstance.onNativeAction.add({notifyItemClick:this._raiseItemClickAction.bind(this),notifyItemDblClick:this._raiseItemDblClickAction.bind(this),notifySelectionChanged:this._raiseSelectionChanged.bind(this)}),this._updateUnitItems(),this._updateFormatUnitsMethod(),this.option("units")!==ue&&this._updateUnitsState(),this.option("pageSize")&&(this.option("pageSize.items")&&this._updatePageSizeItemsState(),this.option("pageSize.width")&&this.option("pageSize.height")&&this._updatePageSizeState()),this.option("pageOrientation")!==he&&this._updatePageOrientationState(),this.option("pageColor")!==pe&&this._updatePageColorState(),this.option("viewUnits")!==ue&&this._updateViewUnitsState(),this.option("showGrid")||this._updateShowGridState(),this.option("snapToGrid")||this._updateSnapToGridState(),this.option("gridSize")&&(this.option("gridSize.items")&&this._updateGridSizeItemsState(),this._updateGridSizeState()),this.option("zoomLevel.items")&&this._updateZoomLevelItemsState(),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()}},{key:"_dispose",value:function(){this._diagramInstance&&(this._diagramInstance.dispose(),this._diagramInstance=void 0),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_dispose",this).call(this)}},{key:"_executeDiagramCommand",value:function(e,t){this._diagramInstance.commandManager.getCommand(e).execute(t)}},{key:"_refreshDataSources",value:function(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()}},{key:"_refreshNodesDataSource",value:function(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption),this.option("nodes.dataSource")&&(this._nodesOption=new L.default(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource())}},{key:"_refreshEdgesDataSource",value:function(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption),this.option("edges.dataSource")&&(this._edgesOption=new $.default(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())}},{key:"_getDiagramData",value:function(){var e=void 0,t=(0,j.getDiagram)(),n=t.DiagramCommand;return this._executeDiagramCommand(n.Export,function(t){e=t}),e}},{key:"_setDiagramData",value:function(e,t){var n=(0,j.getDiagram)(),i=n.DiagramCommand;this._executeDiagramCommand(i.Import,{data:e,keepExistingItems:t})}},{key:"_onDataSourceChanged",value:function(){this._bindDiagramData()}},{key:"_createOptionGetter",value:function(e){var t=this.option(e);return t&&C.default.compileGetter(t)}},{key:"_createOptionSetter",value:function(e){var t=this.option(e);return x.default.isFunction(t)?t:t&&C.default.compileSetter(t)}},{key:"_bindDiagramData",value:function(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var e=(0,j.getDiagram)(),t=e.DiagramCommand,n=e.ConnectorLineOption,i=e.ConnectorLineEnding,o=void 0,a=void 0,r=void 0,s=void 0,l=void 0,u=void 0,d={nodeDataSource:this._nodesOption&&this._nodesOption.getItems(),edgeDataSource:this._edgesOption&&this._edgesOption.getItems(),nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getLocked:this._createOptionGetter("nodes.lockedExpr"),setLocked:this._createOptionSetter("nodes.lockedExpr"),getStyle:this._createOptionGetter("nodes.styleExpr"),setStyle:this._createOptionSetter("nodes.styleExpr"),getStyleText:this._createOptionGetter("nodes.textStyleExpr"),setStyleText:this._createOptionSetter("nodes.textStyleExpr"),getZIndex:this._createOptionGetter("nodes.zIndexExpr"),setZIndex:this._createOptionSetter("nodes.zIndexExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getImage:this._createOptionGetter("nodes.imageUrlExpr"),setImage:this._createOptionSetter("nodes.imageUrlExpr"),getLeft:this._createOptionGetter("nodes.leftExpr"),setLeft:this._createOptionSetter("nodes.leftExpr"),getTop:this._createOptionGetter("nodes.topExpr"),setTop:this._createOptionSetter("nodes.topExpr"),getWidth:this._createOptionGetter("nodes.widthExpr"),setWidth:this._createOptionSetter("nodes.widthExpr"),getHeight:this._createOptionGetter("nodes.heightExpr"),setHeight:this._createOptionSetter("nodes.heightExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr"),getContainerKey:this._createOptionGetter("nodes.containerKeyExpr"),setContainerKey:this._createOptionSetter("nodes.containerKeyExpr"),getChildren:this._createOptionGetter("nodes.childrenExpr"),setChildren:this._createOptionSetter("nodes.childrenExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getLocked:this._createOptionGetter("edges.lockedExpr"),setLocked:this._createOptionSetter("edges.lockedExpr"),getStyle:this._createOptionGetter("edges.styleExpr"),setStyle:this._createOptionSetter("edges.styleExpr"),getStyleText:this._createOptionGetter("edges.textStyleExpr"),setStyleText:this._createOptionSetter("edges.textStyleExpr"),getZIndex:this._createOptionGetter("edges.zIndexExpr"),setZIndex:this._createOptionSetter("edges.zIndexExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getFromPointIndex:this._createOptionGetter("edges.fromPointIndexExpr"),setFromPointIndex:this._createOptionSetter("edges.fromPointIndexExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr"),getToPointIndex:this._createOptionGetter("edges.toPointIndexExpr"),setToPointIndex:this._createOptionSetter("edges.toPointIndexExpr"),getPoints:this._createOptionGetter("edges.pointsExpr"),setPoints:this._createOptionSetter("edges.pointsExpr"),getText:this._createOptionGetter("edges.textExpr"),setText:this._createOptionSetter("edges.textExpr"),getLineOption:(o=this._createOptionGetter("edges.lineTypeExpr"))&&function(e){var t=o(e);switch(t){case"straight":return n.Straight;default:return n.Orthogonal}}.bind(this),setLineOption:(a=this._createOptionSetter("edges.lineTypeExpr"))&&function(e,t){switch(t){case n.Straight:t="straight";break;case n.Orthogonal:t="orthogonal"}a(e,t)}.bind(this),getStartLineEnding:(r=this._createOptionGetter("edges.fromLineEndExpr"))&&function(e){var t=r(e);switch(t){case"arrow":return i.Arrow;default:return i.None}}.bind(this),setStartLineEnding:(s=this._createOptionSetter("edges.fromLineEndExpr"))&&function(e,t){switch(t){case i.Arrow:t="arrow";break;case i.None:t="none"}s(e,t)}.bind(this),getEndLineEnding:(l=this._createOptionGetter("edges.toLineEndExpr"))&&function(e){var t=l(e);switch(t){case"none":return i.None;default:return i.Arrow}}.bind(this),setEndLineEnding:(u=this._createOptionSetter("edges.toLineEndExpr"))&&function(e,t){switch(t){case i.Arrow:t="arrow";break;case i.None:t="none"}u(e,t)}.bind(this)},layoutParameters:this._getDataBindingLayoutParameters()};this._executeDiagramCommand(t.BindDocument,d)}}},{key:"_getDataBindingLayoutParameters",value:function(){var e=(0,j.getDiagram)(),t=e.DataLayoutType,n=e.DataLayoutOrientation,i=this.option("nodes.autoLayout");if(i&&"off"!==i&&"off"!==i.type){var o={},a=i.type||i;return"tree"===a?o.type=t.Tree:"layered"===a&&(o.type=t.Sugiyama),"vertical"===i.orientation?o.orientation=n.Vertical:"horizontal"===i.orientation&&(o.orientation=n.Horizontal),o}}},{key:"_getAutoZoomValue",value:function(e){var t=(0,j.getDiagram)(),n=t.AutoZoomMode;switch(e){case"fitContent":return n.FitContent;case"fitWidth":return n.FitToWidth;default:return n.Disabled}}},{key:"_isBindingMode",value:function(){return this._nodesOption&&this._nodesOption.hasItems()||this._edgesOption&&this._nodesOption.hasItems()}},{key:"_beginUpdateDiagram",value:function(){this._updateDiagramLockCount++}},{key:"_endUpdateDiagram",value:function(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()}},{key:"_getCustomShapes",value:function(){return this.option("customShapes")||[]}},{key:"_getToolboxGroups",value:function(){return F.default.getGroups(this.option("toolbox.groups"))}},{key:"_updateCustomShapes",value:function(e,t){Array.isArray(t)&&this._diagramInstance.removeCustomShapes(t.map(function(e){return e.type})),Array.isArray(e)&&this._diagramInstance.addCustomShapes(e.map(function(e){return{category:e.category,type:e.type,baseType:e.baseType,title:e.title,svgUrl:e.backgroundImageUrl,svgLeft:e.backgroundImageLeft,svgTop:e.backgroundImageTop,svgWidth:e.backgroundImageWidth,svgHeight:e.backgroundImageHeight,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,defaultText:e.defaultText,allowEditText:e.allowEditText,textLeft:e.textLeft,textTop:e.textTop,textWidth:e.textWidth,textHeight:e.textHeight,defaultImageUrl:e.defaultImageUrl,allowEditImage:e.allowEditImage,imageLeft:e.imageLeft,imageTop:e.imageTop,imageWidth:e.imageWidth,imageHeight:e.imageHeight,connectionPoints:e.connectionPoints&&e.connectionPoints.map(function(e){return{x:e.x,y:e.y}})}}))}},{key:"_onToggleFullScreen",value:function(e){this._changeNativeFullscreen(e),this.$element().toggleClass(ie,e),this._diagramInstance.updateLayout()}},{key:"_changeNativeFullscreen",value:function(e){var t=(0,q.getWindow)();t.self!==t.top&&e!==this._inNativeFullscreen()&&(e?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(e))}},{key:"_setNativeFullscreen",value:function(e){var t=(0,q.getWindow)(),n=t.self.document,i=t.self.document.body;e?i.requestFullscreen?i.requestFullscreen():i.mozRequestFullscreen?i.mozRequestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.msRequestFullscreen&&i.msRequestFullscreen():n.exitFullscreen?n.exitFullscreen():n.mozCancelFullscreen?n.mozCancelFullscreen():n.webkitExitFullscreen?n.webkitExitFullscreen():n.msExitFullscreen&&n.msExitFullscreen()}},{key:"_inNativeFullscreen",value:function(){var e=(0,q.getWindow)().document,t=e.fullscreenElement||e.msFullscreenElement||e.webkitFullscreenElement,n=t===e.body||e.webkitIsFullscreen;return!!n}},{key:"_subscribeFullscreenNativeChanged",value:function(){var e=(0,q.getWindow)().document,t=this._onNativeFullscreenChangeHandler.bind(this);K.default.on(e,ge,t),K.default.on(e,_e,t),K.default.on(e,me,t),K.default.on(e,ve,t)}},{key:"_unsubscribeFullscreenNativeChanged",value:function(){var e=(0,q.getWindow)().document;K.default.off(e,ge),K.default.off(e,_e),K.default.off(e,me),K.default.off(e,ve)}},{key:"_onNativeFullscreenChangeHandler",value:function(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this._onToggleFullScreen(!1))}},{key:"_onShowContextMenu",value:function(e,t,n){this._contextMenu._show(e,t,n)}},{key:"_onHideContextMenu",value:function(){this._contextMenu._hide()}},{key:"_getDiagramUnitValue",value:function(e){var t=(0,j.getDiagram)(),n=t.DiagramUnit;switch(e){case"in":return n.In;case"cm":return n.Cm;case"px":return n.Px;default:return n.In}}},{key:"_updateReadOnlyState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand,n=this.option("readOnly")||this.option("disabled");this._executeDiagramCommand(t.ToggleReadOnly,n),this._setLeftPanelEnabled(!n)}},{key:"_updateZoomLevelState",value:function(){var e=this.option("zoomLevel.value");e||(e=this.option("zoomLevel"));var t=(0,j.getDiagram)(),n=t.DiagramCommand;this._executeDiagramCommand(n.ZoomLevel,e)}},{key:"_updateZoomLevelItemsState",value:function(){var e=this.option("zoomLevel.items");if(Array.isArray(e)){var t=(0,j.getDiagram)(),n=t.DiagramCommand;this._executeDiagramCommand(n.ZoomLevelItems,e)}}},{key:"_updateAutoZoomState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.SwitchAutoZoom,this._getAutoZoomValue(this.option("autoZoom")))}},{key:"_updateSimpleViewState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.ToggleSimpleView,this.option("simpleView"))}},{key:"_updateFullscreenState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand,n=this.option("fullScreen");this._executeDiagramCommand(t.Fullscreen,n),this._onToggleFullScreen(n)}},{key:"_updateShowGridState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.ShowGrid,this.option("showGrid"))}},{key:"_updateSnapToGridState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.SnapToGrid,this.option("snapToGrid"))}},{key:"_updateGridSizeState",value:function(){var e=this.option("gridSize.value");e||(e=this.option("gridSize"));var t=(0,j.getDiagram)(),n=t.DiagramCommand;this._executeDiagramCommand(n.GridSize,e)}},{key:"_updateGridSizeItemsState",value:function(){var e=this.option("gridSize.items");if(Array.isArray(e)){var t=(0,j.getDiagram)(),n=t.DiagramCommand;this._executeDiagramCommand(n.GridSizeItems,e)}}},{key:"_updateUnitItems",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramUnit,n={};n[t.In]=Z.default.format("dxDiagram-unitIn"),n[t.Cm]=Z.default.format("dxDiagram-unitCm"),n[t.Px]=Z.default.format("dxDiagram-unitPx"),this._diagramInstance.settings.unitItems=n}},{key:"_updateFormatUnitsMethod",value:function(){this._diagramInstance.settings.formatUnit=function(e){return J.default.format(e)}}},{key:"_updateViewUnitsState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.ViewUnits,this._getDiagramUnitValue(this.option("viewUnits")))}},{key:"_updateUnitsState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.Units,this._getDiagramUnitValue(this.option("units")))}},{key:"_updatePageSizeState",value:function(){var e=this.option("pageSize");if(e&&e.width&&e.height){var t=(0,j.getDiagram)(),n=t.DiagramCommand;this._executeDiagramCommand(n.PageSize,e)}}},{key:"_updatePageSizeItemsState",value:function(){var e=this.option("pageSize.items");if(Array.isArray(e)){var t=(0,j.getDiagram)(),n=t.DiagramCommand;this._executeDiagramCommand(n.PageSizeItems,e)}}},{key:"_updatePageOrientationState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.PageLandscape,"landscape"===this.option("pageOrientation"))}},{key:"_updatePageColorState",value:function(){var e=(0,j.getDiagram)(),t=e.DiagramCommand;this._executeDiagramCommand(t.PageColor,this.option("pageColor"))}},{key:"export",value:function(){return this._getDiagramData()}},{key:"exportTo",value:function(e,t){var n=this._getDiagramExportToCommand(e);this._executeDiagramCommand(n,t)}},{key:"_getDiagramExportToCommand",value:function(e){var t=(0,j.getDiagram)(),n=t.DiagramCommand;switch(e){case"png":return n.ExportPng;case"jpg":return n.ExportJpg;default:return n.ExportSvg}}},{key:"import",value:function(e,t){this._setDiagramData(e,t),this._raiseDataChangeAction()}},{key:"_getDefaultOptions",value:function(){return(0,y.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{readOnly:!1,zoomLevel:de,simpleView:!1,autoZoom:ce,fullScreen:!1,showGrid:!0,snapToGrid:!0,units:ue,viewUnits:ue,pageOrientation:he,pageColor:pe,onDataChanged:null,nodes:{dataSource:null,keyExpr:"id",lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,typeExpr:"type",textExpr:"text",imageUrlExpr:void 0,parentKeyExpr:void 0,itemsExpr:void 0,leftExpr:void 0,topExpr:void 0,widthExpr:void 0,heightExpr:void 0,containerKeyExpr:void 0,childrenExpr:"children",autoLayout:"tree"},edges:{dataSource:null,keyExpr:"id",lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,fromExpr:"from",fromPointIndexExpr:void 0,toExpr:"to",toPointIndexExpr:void 0,pointsExpr:void 0,textExpr:void 0,lineTypeExpr:void 0,fromLineEndExpr:void 0,toLineEndExpr:void 0},customShapes:[],toolbox:{visible:!0},toolbar:{visible:!0},contextMenu:{enabled:!0},propertiesPanel:{enabled:!0,collapsible:!0},"export":{fileName:"Diagram",proxyUrl:void 0},onItemClick:null,onItemDblClick:null,onSelectionChanged:null})}},{key:"_createDataChangeAction",value:function(){this._dataChangeAction=this._createActionByOption("onDataChanged")}},{key:"_raiseDataChangeAction",value:function(){this._dataChangeAction||this._createDataChangeAction(),this._dataChangeAction()}},{key:"_raiseEdgeInsertedAction",value:function(e,t,n){this._edgesOption&&this._edgesOption.insert(e,t,n)}},{key:"_raiseEdgeUpdatedAction",value:function(e,t,n,i){this._edgesOption&&this._edgesOption.update(e,t,n,i)}},{key:"_raiseEdgeRemovedAction",value:function(e,t,n,i){this._edgesOption&&this._edgesOption.remove(e,t,n,i)}},{key:"_raiseNodeInsertedAction",value:function(e,t,n){this._nodesOption&&this._nodesOption.insert(e,t,n)}},{key:"_raiseNodeUpdatedAction",value:function(e,t,n,i){this._nodesOption&&this._nodesOption.update(e,t,n,i)}},{key:"_raiseNodeRemovedAction",value:function(e,t,n,i){this._nodesOption&&this._nodesOption.remove(e,t,n,i)}},{key:"_raiseToolboxDragStart",value:function(){this._leftPanel&&this._leftPanel.$element().addClass("dx-skip-gesture-event")}},{key:"_raiseToolboxDragEnd",value:function(){this._leftPanel&&this._leftPanel.$element().removeClass("dx-skip-gesture-event")}},{key:"_createItemClickAction",value:function(){this._itemClickAction=this._createActionByOption("onItemClick")}},{key:"_createItemDblClickAction",value:function(){this._itemDblClickAction=this._createActionByOption("onItemDblClick")}},{key:"_createSelectionChangedAction",value:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}},{key:"_raiseItemClickAction",value:function(e){this._itemClickAction||this._createItemClickAction(),this._itemClickAction({item:this._nativeItemToDiagramItem(e)})}},{key:"_raiseItemDblClickAction",value:function(e){this._itemDblClickAction||this._createItemDblClickAction(),this._itemDblClickAction({item:this._nativeItemToDiagramItem(e)})}},{key:"_raiseSelectionChanged",value:function(e){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({items:e.map(this._nativeItemToDiagramItem.bind(this))})}},{key:"_nativeItemToDiagramItem",value:function(e){var t=(0,j.getDiagram)(),n=t.NativeShape,i=e instanceof n?this._nativeShapeToDiagramShape.bind(this):this._nativeConnectorToDiagramConnector.bind(this);return(0,y.extend)({id:e.id},i(e))}},{key:"_nativeShapeToDiagramShape",value:function(e){return{dataItem:this._nodesOption&&this._nodesOption.findItem(e.key),text:e.text,type:e.type}}},{key:"_nativeConnectorToDiagramConnector",value:function(e){return{dataItem:this._edgesOption&&this._edgesOption.findItem(e.key),texts:e.texts,fromKey:e.fromKey,toKey:e.toKey}}},{key:"_optionChanged",value:function(e){if(!this.optionsUpdateBar.isUpdateLocked()){this.optionsUpdateBar.beginUpdate();try{this._optionChangedCore(e)}finally{this.optionsUpdateBar.endUpdate()}}}},{key:"_optionChangedCore",value:function(e){switch(e.name){case"readOnly":case"disabled":this._updateReadOnlyState();break;case"zoomLevel":"zoomLevel"!==e.fullName&&"zoomLevel.items"!==e.fullName||this._updateZoomLevelItemsState(),"zoomLevel"!==e.fullName&&"zoomLevel.value"!==e.fullName||this._updateZoomLevelState();break;case"autoZoom":this._updateAutoZoomState();break;case"simpleView":this._updateSimpleViewState();break;case"fullScreen":this._updateFullscreenState();break;case"showGrid":this._updateShowGridState();break;case"snapToGrid":this._updateSnapToGridState();break;case"gridSize":"gridSize"!==e.fullName&&"gridSize.items"!==e.fullName||this._updateGridSizeItemsState(),"gridSize"!==e.fullName&&"gridSize.value"!==e.fullName||this._updateGridSizeState();break;case"viewUnits":this._updateViewUnitsState();break;case"units":this._updateUnitsState();break;case"pageSize":"pageSize"!==e.fullName&&"pageSize.items"!==e.fullName||this._updatePageSizeItemsState(),"pageSize"!==e.fullName&&"pageSize.width"!==e.fullName&&"pageSize.height"!==e.fullName||this._updatePageSizeState();break;case"pageOrientation":this._updatePageOrientationState();break;case"pageColor":this._updatePageColorState();break;case"nodes":"nodes.autoLayout"===e.fullName?this._refreshDataSources():this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"customShapes":this._updateCustomShapes(e.value,e.previousValue),this._invalidate();break;case"contextMenu":"contextMenu.commands"===e.fullName?this._invalidateContextMenuCommands():this._invalidate();break;case"propertiesPanel":"propertiesPanel.groups"===e.name?this._invalidatePropertiesPanelGroups():this._invalidate();break;case"toolbox":"toolbox.groups"===e.fullName?this._invalidateToolboxGroups():this._invalidate();break;case"toolbar":"toolbar.commands"===e.fullName?this._invalidateToolbarCommands():this._invalidate();break;case"onDataChanged":this._createDataChangeAction();break;case"onItemClick":this._createItemClickAction();break;case"onItemDblClick":this._createItemDblClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"export":this._toolbarInstance&&this._toolbarInstance.option("export",e.value);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default);(0,v.default)("dxDiagram",ye),e.exports=ye},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(2),c=i(d),h=n(270),p=i(h),f=n(168),g=i(f),_=n(96),m=i(_),v=n(271),y=i(v),w=n(205),x=i(w),b=n(0),C=n(10),k=i(C);n(95),n(314),n(105);var I="dx-format-active",S="dx-diagram-toolbar",D=[{command:"options",icon:"preferences",hint:k.default.format("dxDiagram-commandProperties"),text:k.default.format("dxDiagram-commandProperties")}],T="dx-diagram-toolbar-separator",E="dx-diagram-toolbar-menu-separator",O=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"_init",value:function(){this.bar=new A(this),this._itemHelpers={},this._contextMenus=[],this._createOnWidgetCommand(),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e=(0,c.default)("<div>").addClass(S).appendTo(this._$element);this._renderToolbar(e)}},{key:"_renderToolbar",value:function(e){var t=y.default.getToolbarCommands(this.option("commands")),n=this.option("widgetCommandNames")||[],i=D.filter(function(e){return n.indexOf(e.command)>-1}),o=this._prepareToolbarItems(t,"before",this._execDiagramCommand);o=o.concat(this._prepareToolbarItems(i,"after",this._execWidgetCommand)),this._toolbarInstance=this._createComponent(e,g.default,{dataSource:o})}},{key:"_prepareToolbarItems",value:function(e,t,n){var i=this;return e.map(function(e){return(0,b.extend)(!0,{location:t,locateInMenu:"auto"},i._createItem(e,t,n),i._createItemOptions(e),i._createItemActionOptions(e,n))})}},{key:"_createItem",value:function(e,t,n){var i=this;return"separator"===e.widget?{template:function(e,t,n){(0,c.default)(n).addClass(T)},menuItemTemplate:function(e,t,n){(0,c.default)(n).addClass(E)}}:{widget:e.widget||"dxButton",cssClass:e.cssClass,options:{stylingMode:"text",text:e.text,hint:e.hint,icon:e.icon,onInitialized:function(t){return i._onItemInitialized(t.component,e);
},onContentReady:function(t){return i._onItemContentReady(t.component,e,n)}}}}},{key:"_createItemOptions",value:function(e){var t=e.widget,n=e.items,i=e.valueExpr,o=e.displayExpr,a=e.showText,r=e.hint,s=e.icon;return"dxSelectBox"===t?this._createSelectBoxItemOptions(r,n,i,o):"dxColorBox"===t?this._createColorBoxItemOptions(r,s):t&&"dxButton"!==t?void 0:{showText:a||"inMenu"}}},{key:"_createSelectBoxItemOptions",value:function(e,t,n,i){var o=this._createSelectBoxBaseItemOptions(e);o=t?(0,b.extend)(!0,o,{options:{items:t,displayExpr:i,valueExpr:n}}):(0,b.extend)(!0,o,{options:{dataSource:t,displayExpr:"title",valueExpr:"value"}});var a=t&&t.every(function(e){return void 0!==e.icon});return a&&(o=(0,b.extend)(!0,o,{options:{fieldTemplate:function(e,t){(0,c.default)("<i>").addClass(e&&e.icon).appendTo(t),(0,c.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(t)},itemTemplate:function(e){return'<i class="'+e.icon+'"'+(e.hint&&' title="'+e.hint)+'"}></i>'}}})),o}},{key:"_createColorBoxItemOptions",value:function(e,t){var n=this._createSelectBoxBaseItemOptions(e);return t&&(n=(0,b.extend)(!0,n,{options:{openOnFieldClick:!0,fieldTemplate:function(e,n){(0,c.default)("<i>").addClass(t).css("borderBottomColor",e).appendTo(n),(0,c.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(n)}}})),n}},{key:"_createSelectBoxBaseItemOptions",value:function(e){return{options:{stylingMode:"filled",hint:e}}}},{key:"_createItemActionOptions",value:function(e,t){var n=this;switch(e.widget){case"dxSelectBox":case"dxColorBox":case"dxCheckBox":return{options:{onValueChanged:function(i){var o=n._getExecCommandParameter(e,i.component.option("value"));t.call(n,e.command,o)}}};default:if(!e.items)return{options:{onClick:function(i){var o=n._getExecCommandParameter(e);t.call(n,e.command,o)}}}}}},{key:"_getExecCommandParameter",value:function(e,t){return e.getParameter?e.getParameter(this,t):t}},{key:"_onItemInitialized",value:function(e,t){void 0!==t.command&&(this._itemHelpers[t.command]=new P(e))}},{key:"_onItemContentReady",value:function(e,t,n){var i=this;if("dxButton"===e.NAME&&t.items){var o=(0,c.default)("<div>").appendTo(this.$element());this._createComponent(o,m.default,{dataSource:t.items,displayExpr:"text",valueExpr:"command",target:e.$element(),showEvent:"dxclick",position:{at:"left bottom"},onItemClick:function(e){var t=e.itemData;if(void 0!==t.command){var o=i._getExecCommandParameter(t);n.call(i,t.command,o)}},onInitialized:function(n){var o=n.component;return i._onContextMenuInitialized(o,t,e)},onDisposing:function(e){var n=e.component;return i._onContextMenuDisposing(n,t)}})}}},{key:"_onContextMenuInitialized",value:function(e,t,n){this._contextMenus.push(e),this._addContextMenuHelper(t.items,e,[],n)}},{key:"_addContextMenuHelper",value:function(e,t,n,i){var o=this;e&&e.forEach(function(e,a){var r=n.concat(a);o._itemHelpers[e.command]=new B(t,r,i),o._addContextMenuHelper(e.items,t,r,i)})}},{key:"_onContextMenuDisposing",value:function(e,t){this._contextMenus=this._contextMenus.filter(function(t){return t!==e})}},{key:"_execDiagramCommand",value:function(e,t){this._updateLocked||this.bar.raiseBarCommandExecuted(e,t)}},{key:"_execWidgetCommand",value:function(e){this._updateLocked||this._onWidgetCommandAction({name:e})}},{key:"_createOnWidgetCommand",value:function(){this._onWidgetCommandAction=this._createActionByOption("onWidgetCommand")}},{key:"_setItemEnabled",value:function(e,t){e in this._itemHelpers&&this._itemHelpers[e].setEnabled(t)}},{key:"_setEnabled",value:function(e){this._toolbarInstance.option("disabled",!e),this._contextMenus.forEach(function(t){return t.option("disabled",!e)})}},{key:"_setItemValue",value:function(e,t){try{this._updateLocked=!0,e in this._itemHelpers&&this._itemHelpers[e].setValue(t)}finally{this._updateLocked=!1}}},{key:"_setItemSubItems",value:function(e,t){this._updateLocked=!0,e in this._itemHelpers&&this._itemHelpers[e].setItems(t),this._updateLocked=!1}},{key:"_optionChanged",value:function(e){switch(e.name){case"onWidgetCommand":this._createOnWidgetCommand();break;case"commands":this._invalidate();break;case"export":break;default:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_getDefaultOptions",value:function(){return(0,b.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{"export":{fileName:"Diagram",proxyUrl:void 0}})}}]),t}(p.default),A=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"getCommandKeys",value:function(){return this.getKeys(y.default.getToolbarCommands())}},{key:"getKeys",value:function(e){var t=this;return e.reduce(function(e,n){return void 0!==n.command&&e.push(n.command),n.items&&(e=e.concat(t.getKeys(n.items))),e},[])}},{key:"setItemValue",value:function(e,t){this._owner._setItemValue(e,t)}},{key:"setItemEnabled",value:function(e,t){this._owner._setItemEnabled(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}},{key:"setItemSubItems",value:function(e,t){this._owner._setItemSubItems(e,t)}}]),t}(x.default),P=function(){function e(t){o(this,e),this._widget=t}return l(e,[{key:"setEnabled",value:function(e){this._widget.option("disabled",!e)}},{key:"setValue",value:function(e){"value"in this._widget.option()?this._widget.option("value",e):void 0!==e&&this._widget.$element().toggleClass(I,e)}},{key:"setItems",value:function(e){"items"in this._widget.option()&&this._widget.option("items",e.map(function(e){var t="object"===s(e.value)?JSON.stringify(e.value):e.value;return{value:t,title:e.text}}))}}]),e}(),B=function(e){function t(e,n,i){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._indexPath=n,r._rootButton=i,r}return r(t,e),l(t,[{key:"setEnabled",value:function(e){var t=this._indexPath.reduce(function(e,t){return e+("items["+t+"].")},"")+"disabled";this._widget.option(t,!e);var n=this._hasEnabledCommandItems(this._widget.option("items"));this._rootButton.option("disabled",!n)}},{key:"_hasEnabledCommandItems",value:function(e){var t=this;return!!e&&e.some(function(e){return void 0!==e.command&&!e.disabled||t._hasEnabledCommandItems(e.items)})}},{key:"setValue",value:function(e){}}]),t}(P);e.exports=O},function(e,t){e.exports=window.DevExpress.diagram},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(270),h=i(c),p=n(261),f=i(p),g=n(118),_=i(g),m=n(6),v="dx-diagram-left-panel",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered",{excludeValidators:["disabled"]})}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass(v);var e=(0,d.default)("<div>").appendTo(this.$element());this._scrollView=this._createComponent(e,_.default);var n=(0,d.default)("<div>").appendTo(this._scrollView.content());this._renderAccordion(n)}},{key:"_getAccordionDataSource",value:function(){for(var e=this,t=[],n=this.option("toolboxGroups"),i=0;i<n.length;i++){var o=n[i].category,a=n[i].title,r={category:o,title:a||o,expanded:n[i].expanded,displayMode:n[i].displayMode,shapes:n[i].shapes,onTemplate:function(t,n,i){e._onShapeCategoryRenderedAction({category:i.category,displayMode:i.displayMode,shapes:i.shapes,$element:n})}};t.push(r)}return t}},{key:"_renderAccordion",value:function(e){var t=this,n=this._getAccordionDataSource();this._accordionInstance=this._createComponent(e,f.default,{multiple:!0,collapsible:!0,displayExpr:"title",dataSource:n,disabled:this.option("disabled"),itemTemplate:function(e,n,i){return e.onTemplate(t,i,e)},onContentReady:function(e){t._updateScrollAnimateSubscription(e.component)}});for(var i=0;i<n.length;i++)n[i].expanded===!1?this._accordionInstance.collapseItem(i):n[i].expanded===!0&&this._accordionInstance.expandItem(i)}},{key:"_updateScrollAnimateSubscription",value:function(e){var t=this;e._deferredAnimate=new m.Deferred,e._deferredAnimate.done(function(){t._scrollView.update(),t._updateScrollAnimateSubscription(e)})}},{key:"_optionChanged",value:function(e){switch(e.name){case"disabled":this._accordionInstance.option("disabled",e.value);break;case"toolboxGroups":this._invalidate();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default);e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(2),c=i(d),h=n(270),p=i(h),f=n(261),g=i(f),_=n(121),m=i(_),v=n(271),y=i(v),w=n(0),x=n(10),b=i(x),C=n(205),k=i(C),I=n(118),S=i(I),D=n(6),T="dx-diagram-right-panel",E="dx-diagram-right-panel-begin-group",O=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"_init",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this.bar=new A(this),this._valueConverters={}}},{key:"_initMarkup",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass(T);var e=(0,c.default)("<div>").appendTo(this.$element());this._scrollView=this._createComponent(e,S.default);var n=(0,c.default)("<div>").appendTo(this._scrollView.content());this._renderAccordion(n)}},{key:"_getAccordionDataSource",value:function(){return[{title:b.default.format("dxDiagram-commandProperties"),onTemplate:function(e,t){return e._renderOptions(t)}}]}},{key:"_renderAccordion",value:function(e){var t=this;this._accordionInstance=this._createComponent(e,g.default,{multiple:!0,collapsible:!0,displayExpr:"title",dataSource:this._getAccordionDataSource(),itemTemplate:function(e,n,i){return e.onTemplate(t,i)},onContentReady:function(e){t._updateScrollAnimateSubscription(e.component)}})}},{key:"_updateScrollAnimateSubscription",value:function(e){var t=this;e._deferredAnimate=new D.Deferred,e._deferredAnimate.done(function(){t._scrollView.update(),t._updateScrollAnimateSubscription(e)})}},{key:"_renderOptions",value:function(e){var t=this,n=y.default.getPropertyPanelCommands(this.option("propertyGroups"));this._formInstance=this._createComponent(e,m.default,{items:n.map(function(e){return(0,w.extend)(!0,{editorType:e.widget,dataField:e.command.toString(),cssClass:e.beginGroup&&E,label:{text:e.text},options:{text:e.text,hint:e.hint,icon:e.icon,onInitialized:function(n){return t._onToolbarItemInitialized(n.component,e.command)}}},t._createWidgetOptions(e))}),onFieldDataChanged:function(e){return t._onDiagramOptionChanged(e.dataField,e.value)}})}},{key:"_createWidgetOptions",value:function(e){if(e.getValue&&e.setValue&&(this._valueConverters[e.command]={getValue:e.getValue,setValue:e.setValue}),"dxSelectBox"===e.widget)return{editorOptions:{dataSource:e.items,displayExpr:"title",valueExpr:"value"}}}},{key:"_onDiagramOptionChanged",value:function(e,t){if(!this._updateLocked&&void 0!==t){var n=this._valueConverters[e];n&&(t=n.getValue(t)),this.bar.raiseBarCommandExecuted(parseInt(e),t)}}},{key:"_setItemValue",value:function(e,t){var n=this._valueConverters[e];n&&(t=n.setValue(t)),this._updateLocked=!0,this._formInstance.updateData(e.toString(),t),this._updateLocked=!1}},{key:"_setItemSubItems",value:function(e,t){this._updateLocked=!0;var n=this._formInstance.getEditor(e.toString());n&&n.option("items",t.map(function(e){var t="object"===s(e.value)?JSON.stringify(e.value):e.value;return{value:t,title:e.text}})),this._updateLocked=!1}},{key:"_setEnabled",value:function(e){this._formInstance.option("disabled",!e)}},{key:"_setItemEnabled",value:function(e,t){var n=this._formInstance.getEditor(e.toString());n&&n.option("disabled",!t)}},{key:"_optionChanged",value:function(e){switch(e.name){case"propertyGroups":this._invalidate();break;default:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_getDefaultOptions",value:function(){return(0,w.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{container:null})}}]),t}(p.default),A=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"getCommandKeys",value:function(){return y.default.getPropertyPanelCommands().map(function(e){return e.command})}},{key:"setItemValue",value:function(e,t){this._owner._setItemValue(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}},{key:"setItemEnabled",value:function(e,t){this._owner._setItemEnabled(e,t)}},{key:"setItemSubItems",value:function(e,t){this._owner._setItemSubItems(e,t)}}]),t}(k.default);e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(17),h=i(c),p=n(96),f=i(p),g=n(271),_=i(g),m=n(205),v=i(m),y=n(146),w="dx-diagram-touchbar",x="dx-diagram-touchbar-target",b=800,C=32,k=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._createOnVisibleChangedAction(),this._createOnItemClickAction(),this.bar=new I(this),this._tempState=void 0,this._commands=[],this._commandToIndexMap={}}},{key:"_initMarkup",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._commands=_.default.getContextMenuCommands(this.option("commands")),this._commandToIndexMap={},this._commands.forEach(function(t,n){return e._commandToIndexMap[t.command]=n}),this._$contextMenuTargetElement=(0,d.default)("<div>").addClass(x).appendTo(this.$element());var n=(0,d.default)("<div>").appendTo(this.$element()),i=(0,y.getDiagram)(),o=i.Browser;this._contextMenuInstance=this._createComponent(n,f.default,{cssClass:o.TouchUI?w:"",items:this._getItems(this._commands),focusStateEnabled:!1,position:o.TouchUI?{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},of:this._$contextMenuTargetElement}:{},onItemClick:function(t){var n=t.itemData;return e._onItemClick(n)},onShowing:function(t){e._tempState!==!0&&(e._tempState=!0,e._onVisibleChangedAction({visible:!0,component:e}),e._contextMenuInstance.option("items",e._getItems(e._commands,!0)),delete e._tempState)},onHiding:function(t){e._tempState=!1,e._onVisibleChangedAction({visible:!1,component:e}),delete e._tempState}})}},{key:"_getItems",value:function(e,t){var n=[],i=!1;return e.forEach(function(e){"separator"===e.widget?i=!0:!e.visible&&t||(n.push({command:e.command,text:e.text,icon:e.icon,getParameter:e.getParameter,beginGroup:i}),i=!1)}),n}},{key:"_show",value:function(e,t,n){this.clickPosition={x:e,y:t};var i=(0,y.getDiagram)(),o=i.Browser;if(o.TouchUI){this._contextMenuInstance.hide(),this._$contextMenuTargetElement.show(),n||(n={x:e,y:t,width:0,height:0});var a=n.width>b?0:(b-n.width)/2;this._$contextMenuTargetElement.css({left:n.x-a,top:n.y-C,width:n.width+2*a,height:n.height+2*C}),this._contextMenuInstance.show()}else this._contextMenuInstance.hide(),this._contextMenuInstance.option("position",{offset:e+" "+t}),this._contextMenuInstance.show()}},{key:"_hide",value:function(){this._$contextMenuTargetElement.hide(),this._contextMenuInstance.hide()}},{key:"_onItemClick",value:function(e){var t=!1;if(this._onItemClickAction&&(t=this._onItemClickAction(e)),!t){var n=this._getExecCommandParameter(e);this.bar.raiseBarCommandExecuted(e.command,n),this._contextMenuInstance.hide()}}},{key:"_getExecCommandParameter",value:function(e){if(e.getParameter)return e.getParameter(this)}},{key:"_setItemEnabled",value:function(e,t){this._setItemVisible(e,t)}},{key:"_setItemVisible",value:function(e,t){if(e in this._commandToIndexMap){var n=this._commands[this._commandToIndexMap[e]];n&&(n.visible=t)}}},{key:"_setEnabled",value:function(e){this._contextMenuInstance.option("disabled",!e)}},{key:"isVisible",value:function(){return void 0!==this._tempState?this._tempState:!!this._contextMenuInstance.option("visible")}},{key:"_createOnVisibleChangedAction",value:function(){this._onVisibleChangedAction=this._createActionByOption("onVisibleChanged")}},{key:"_createOnItemClickAction",value:function(){this._onItemClickAction=this._createActionByOption("onItemClick")}},{key:"_optionChanged",value:function(e){switch(e.name){case"onVisibleChanged":this._createOnVisibleChangedAction();break;case"onItemClick":this._createOnItemClickAction();break;case"commands":this._invalidate();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default),I=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getCommandKeys",value:function(){return _.default.getContextMenuCommands().map(function(e){return e.command})}},{key:"setItemEnabled",value:function(e,t){this._owner._setItemEnabled(e,t)}},{key:"setItemVisible",value:function(e,t){this._owner._setItemVisible(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}},{key:"isVisible",value:function(){return this._owner.isVisible()}}]),t}(v.default);e.exports=k},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(17),h=i(c),p=n(10),f=i(p),g=n(44),_=n(0).extend,m=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._command=void 0,this._isShown=!1,this._createOnGetContentOption(),this._createOnHiddenOption()}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._command=this.option("command"),this._$popupElement=(0,d.default)("<div>").appendTo(this.$element()),this._popupInstance=this._createComponent(this._$popupElement,g,{title:this.option("title"),maxWidth:this.option("maxWidth"),height:this.option("height"),toolbarItems:this.option("toolbarItems"),onHidden:this._onHiddenAction})}},{key:"_clean",value:function(){delete this._popupInstance,this._$popupElement&&this._$popupElement.remove()}},{key:"_getDefaultOptions",value:function(){return _(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{title:"",maxWidth:500,height:"auto",toolbarItems:this._getToolbarItems()})}},{key:"_getToolbarItems",value:function(){return[this._getOkToolbarItem(),this._getCancelToolbarItem()]}},{key:"_getOkToolbarItem",value:function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:f.default.format("dxDiagram-dialogButtonOK"),onClick:function(){this._command.execute(this._commandParameter),this._hide()}.bind(this)}}}},{key:"_getCancelToolbarItem",value:function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:f.default.format("dxDiagram-dialogButtonCancel"),onClick:this._hide.bind(this)}}}},{key:"_optionChanged",value:function(e){switch(e.name){case"title":case"maxWidth":case"height":case"toolbarItems":this._popupInstance.option(e.name,e.value);break;case"command":this._command=e.value;break;case"onGetContent":this._createOnGetContentOption();break;case"onHidden":this._createOnHiddenOption();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_createOnGetContentOption",value:function(){this._onGetContentAction=this._createActionByOption("onGetContent")}},{key:"_createOnHiddenOption",value:function(){this._onHiddenAction=this._createActionByOption("onHidden")}},{key:"_hide",value:function(){this._popupInstance.hide(),this._isShown=!1}},{key:"_show",value:function(){this._popupInstance.content().empty().append(this._onGetContentAction()),this._popupInstance.show(),this._isShown=!0}},{key:"isVisible",value:function(){return this._isShown}}]),t}(h.default);e.exports=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(10),a=i(o),r={groups:{general:{category:"general",title:a.default.format("dxDiagram-categoryGeneral")},flowchart:{category:"flowchart",title:a.default.format("dxDiagram-categoryFlowchart")},orgChart:{category:"orgChart",title:a.default.format("dxDiagram-categoryOrgChart")},containers:{category:"containers",title:a.default.format("dxDiagram-categoryContainers")},custom:{category:"custom",title:a.default.format("dxDiagram-categoryCustom")}},getGroups:function(e){var t=this.groups;return e?e.map(function(e){return"string"==typeof e?{category:e,title:t[e]&&t[e].title||e}:e}).filter(function(e){return e}):[t.general,t.flowchart,t.orgChart,t.containers]}};e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(205),d=i(u),c=n(146),h=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=(0,c.getDiagram)(),r=i.DiagramCommand;return n.commandOptions={},n.commandOptions[r.Fullscreen]="fullScreen",n.commandOptions[r.ZoomLevel]=function(e){"object"===s(this._getOption("zoomLevel"))?this._setOption("zoomLevel.value",e):this._setOption("zoomLevel",e)},n.commandOptions[r.SwitchAutoZoom]=function(e){var t=(0,c.getDiagram)(),n=t.AutoZoomMode;switch(e){case n.FitContent:this._setOption("autoZoom","fitContent");break;case n.FitToWidth:this._setOption("autoZoom","fitWidth");break;case n.Disabled:this._setOption("autoZoom","disabled")}},n.commandOptions[r.ToggleSimpleView]="simpleView",n.commandOptions[r.ShowGrid]="showGrid",n.commandOptions[r.SnapToGrid]="snapToGrid",n.commandOptions[r.GridSize]=function(e){"object"===s(this._getOption("gridSize"))?this._setOption("gridSize.value",e):this._setOption("gridSize",e)},n.commandOptions[r.ViewUnits]="viewUnits",n.commandOptions[r.PageSize]="pageSize",n.commandOptions[r.PageLandscape]=function(e){this._setOption("pageOrientation",e?"landscape":"portrait")},n.commandOptions[r.ViewUnits]=function(e){var t=(0,c.getDiagram)(),n=t.DiagramUnit;switch(e){case n.In:this._setOption("viewUnits","in");break;case n.Cm:this._setOption("viewUnits","cm");break;case n.Px:this._setOption("viewUnits","px")}},n.commandOptions[r.PageColor]="pageColor",n._updateLock=0,n}return r(t,e),l(t,[{key:"getCommandKeys",value:function(){return Object.keys(this.commandOptions).map(function(e){return parseInt(e)})}},{key:"setItemValue",value:function(e,t){if(!this.isUpdateLocked()){this.beginUpdate();try{"function"==typeof this.commandOptions[e]?this.commandOptions[e].call(this,t):this._setOption(this.commandOptions[e],t)}finally{this.endUpdate()}}}},{key:"beginUpdate",value:function(){this._updateLock++}},{key:"endUpdate",value:function(){this._updateLock--}},{key:"isUpdateLocked",value:function(){return this._updateLock>0}},{key:"_getOption",value:function(e){return this._owner.option(e)}},{key:"_setOption",value:function(e,t){this._owner.option(e,t)}}]),t}(d.default);e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(407),u=i(l),d=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getKeyExpr",value:function(){return this._diagramWidget._createOptionGetter("nodes.keyExpr")}}]),t}(u.default);e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(407),u=i(l),d=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getKeyExpr",value:function(){return this._diagramWidget._createOptionGetter("edges.keyExpr")}}]),t}(u.default);e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(146),s=n(10),l=i(s),u=n(7),d=n(254),c={getConfigurations:function(){var e=(0,r.getDiagram)(),t=e.DiagramCommand;return this.dialogList||(this.dialogList=[{command:t.InsertShapeImage,title:l.default.format("dxDiagram-dialogInsertShapeImageTitle"),onGetContent:this.getChangeImageDialogContent},{command:t.EditShapeImage,title:l.default.format("dxDiagram-dialogEditShapeImageTitle"),onGetContent:this.getChangeImageDialogContent}])},getChangeImageDialogContent:function(e){var t=(0,a.default)("<div>");return e.component._createComponent(t,d,{selectButtonText:l.default.format("dxDiagram-dialogEditShapeImageSelectButton"),accept:"image/*",uploadMode:"useForm",onValueChanged:function(t){var n=(0,u.getWindow)(),i=new n.FileReader;
i.onload=function(t){e.component._commandParameter=t.target.result},i.readAsDataURL(t.value[0])}}),t},getDialogParameters:function(e){var t=this.getConfigurations().map(function(e){return e.command}).indexOf(e);return t>=0?this.getConfigurations()[t]:null}};e.exports=c},function(e,t,n){e.exports=n(777)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),d=i(u),c=n(1),h=i(c),p=n(17),f=i(p),g=n(9),_=i(g),m=n(18),v=i(m),y=n(778),w=n(782),x=i(w),b=n(387),C=i(b),k=n(0),I=n(7),S=n(783),D=i(S),T=n(406),E=i(T),O=n(784),A=n(167),P=i(A),B="dx-gantt",M="dx-gantt-view",F="dx-gantt-collapsable-row",R="dx-gantt-treelist-wrapper",V="tasks",H="dependencies",L="resources",z="resourceAssignments",$=34,N=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass(B),this._$treeListWrapper=(0,d.default)("<div>").addClass(R).appendTo(this.$element()),this._$treeList=(0,d.default)("<div>").appendTo(this._$treeListWrapper),this._$splitter=(0,d.default)("<div>").appendTo(this.$element()),this._$ganttView=(0,d.default)("<div>").addClass(M).appendTo(this.$element()),this._$dialog=(0,d.default)("<div>").appendTo(this.$element()),this._$loadPanel=(0,d.default)("<div>").appendTo(this.$element()),this._$contextMenu=(0,d.default)("<div>").appendTo(this.$element()),this._refreshDataSource(V),this._refreshDataSource(H),this._refreshDataSource(L),this._refreshDataSource(z)}},{key:"_renderContent",value:function(){this._renderTreeList(),this._renderSplitter(),this._renderBars()}},{key:"_renderTreeList",value:function(){var e=this,t=this.option(V),n=t.keyExpr,i=t.parentIdExpr;this._treeList=this._createComponent(this._$treeList,C.default,{dataSource:this._tasksRaw,keyExpr:n,parentIdExpr:i,columns:this.option("columns"),columnResizingMode:"nextColumn",height:"100%",width:this.option("taskListWidth"),selection:{mode:this._getSelectionMode(this.option("allowSelection"))},selectedRowKeys:this._getArrayFromOneElement(this.option("selectedRowKey")),sorting:{mode:"none"},scrolling:{showScrollbar:"onHover",mode:"virtual"},allowColumnResizing:!0,autoExpandAll:!0,showRowLines:this.option("showRowLines"),onContentReady:function(t){e._onTreeListContentReady(t)},onSelectionChanged:function(t){e._onTreeListSelectionChanged(t)},onRowCollapsed:function(t){return e._ganttView.changeTaskExpanded(t.key,!1)},onRowExpanded:function(t){return e._ganttView.changeTaskExpanded(t.key,!0)},onRowPrepared:function(t){e._onTreeListRowPrepared(t)},onContextMenuPreparing:function(t){e._onTreeListContextMenuPreparing(t)},onRowDblClick:function(){e._onTreeListRowDblClick()}})}},{key:"_renderSplitter",value:function(){this._splitter=this._createComponent(this._$splitter,E.default,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:this._onApplyPanelSize.bind(this)}),this._setInnerElementsWidth(),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))}},{key:"_renderBars",value:function(){this._contextMenuBar=new x.default(this._$contextMenu,this),this._bars=[this._contextMenuBar]}},{key:"_initGanttView",value:function(){this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,y.GanttView,{width:"100%",height:this._treeList._$element.get(0).offsetHeight,rowHeight:this._getTreeListRowHeight(),headerHeight:this._getTreeListHeaderHeight(),tasks:this._tasks,dependencies:this._dependencies,resources:this._resources,resourceAssignments:this._resourceAssignments,allowSelection:this.option("allowSelection"),selectedRowKey:this.option("selectedRowKey"),showResources:this.option("showResources"),taskTitlePosition:this.option("taskTitlePosition"),showRowLines:this.option("showRowLines"),scaleType:this.option("scaleType"),editing:this.option("editing"),bars:this._bars,onSelectionChanged:this._onGanttViewSelectionChanged.bind(this),onScroll:this._onGanttViewScroll.bind(this),onDialogShowing:this._showDialog.bind(this),onPopupMenuShowing:this._showPopupMenu.bind(this),modelChangesListener:this._createModelChangesListener()}),this._fireContentReadyAction())}},{key:"_onApplyPanelSize",value:function(e){this._setInnerElementsWidth(e)}},{key:"_onTreeListContentReady",value:function(e){e.component.getDataSource()&&(this._initGanttView(),this._initScrollSync(e.component))}},{key:"_onTreeListRowPrepared",value:function(e){"data"===e.rowType&&e.node.children.length>0&&(0,d.default)(e.rowElement).addClass(F)}},{key:"_onTreeListContextMenuPreparing",value:function(e){e.row&&"data"===e.row.rowType&&(this._setTreeListOption("selectedRowKeys",[e.row.data.id]),e.items=[],this._showPopupMenu({position:{x:e.event.clientX,y:e.event.clientY}}))}},{key:"_onTreeListRowDblClick",value:function(){this._ganttView._ganttViewCore.commandManager.showTaskEditDialog.execute()}},{key:"_onTreeListSelectionChanged",value:function(e){var t=e.currentSelectedRowKeys[0];this._setGanttViewOption("selectedRowKey",t),this.option("selectedRowKey",t),this._raiseSelectionChangedAction(t)}},{key:"_onGanttViewSelectionChanged",value:function(e){this._setTreeListOption("selectedRowKeys",this._getArrayFromOneElement(e.id))}},{key:"_onGanttViewScroll",value:function(e){var t=this._treeList.getScrollable();if(t){var n=e.scrollTop-t.scrollTop();0!==n&&t.scrollBy({left:0,top:n})}}},{key:"_onTreeListScroll",value:function(e){var t=this._ganttView.getTaskAreaContainer();t.scrollTop!==e.component.scrollTop()&&(t.scrollTop=e.component.scrollTop())}},{key:"_initScrollSync",value:function(e){var t=this,n=e.getScrollable();n&&(n.off("scroll"),n.on("scroll",function(e){t._onTreeListScroll(e)}))}},{key:"_getTreeListRowHeight",value:function(){var e=this._treeList._$element.find(".dx-data-row"),t=e.length?e.last().get(0).getBoundingClientRect().height:$;return t?t:$}},{key:"_getTreeListHeaderHeight",value:function(){return this._treeList._$element.find(".dx-treelist-headers").get(0).getBoundingClientRect().height}},{key:"_setInnerElementsWidth",value:function(e){if((0,I.hasWindow)()){e||(e=this._getPanelsWidthByOption());var t=e.leftPanelWidth,n=e.rightPanelWidth;this._$treeListWrapper.width(t);var i=h.default.isString(t)&&"%"===t.slice(-1);this._$treeList.width(i?"100%":t),this._splitter.setSplitterPositionLeft(t),this._$ganttView.width(n),this._setGanttViewOption("width",this._$ganttView.width())}}},{key:"_getPanelsWidthByOption",value:function(){return{leftPanelWidth:this.option("taskListWidth"),rightPanelWidth:this._$element.width()-this.option("taskListWidth")}}},{key:"_setGanttViewOption",value:function(e,t){this._ganttView&&this._ganttView.option(e,t)}},{key:"_setTreeListOption",value:function(e,t){this._treeList&&this._treeList.option(e,t)}},{key:"_refreshDataSource",value:function(e){var t=this,n=this["_"+e+"Option"];n&&(n._disposeDataSource(),delete this["_"+e+"Option"],delete this["_"+e]),this.option(e+".dataSource")&&(n=new D.default(e,this._getLoadPanel(),function(e,n){t._dataSourceChanged(e,n)}),n.option("dataSource",this._getSpecificDataSourceOption(e)),n._refreshDataSource(),this["_"+e+"Option"]=n)}},{key:"_getSpecificDataSourceOption",value:function(e){var t=this.option(e+".dataSource");return Array.isArray(t)?{store:{type:"array",data:t,key:this.option(e+".keyExpr")}}:t}},{key:"_compileGettersByOption",value:function(e){var t={},n=this.option(e);for(var i in n){var o=i.match(/(\w*)Expr/);o&&(t[o[1]]=v.default.compileGetter(n[o[0]]))}return t}},{key:"_compileSettersByOption",value:function(e){var t={},n=this.option(e);for(var i in n){var o=i.match(/(\w*)Expr/);o&&(t[o[1]]=v.default.compileSetter(n[o[0]]))}return t}},{key:"_getStoreObject",value:function(e,t){var n=this._compileSettersByOption(e);return Object.keys(n).reduce(function(e,i){return"key"!==i&&n[i](e,t[i]),e},{})}},{key:"_prepareMapHandler",value:function(e){return function(t){return Object.keys(e).reduce(function(n,i){var o="key"===i?"id":i;return n[o]=e[i](t),n},{})}}},{key:"_dataSourceChanged",value:function(e,t){var n=this._compileGettersByOption(e),i=t.map(this._prepareMapHandler(n));this["_"+e]=i,this._setGanttViewOption(e,i),e===V&&(this._tasksRaw=t,this._setTreeListOption("dataSource",t))}},{key:"_createModelChangesListener",value:function(){var e=this;return{NotifyTaskCreated:function(t,n){e._onRecordInserted(V,t,n)},NotifyTaskRemoved:function(t){e._onRecordRemoved(V,t)},NotifyTaskTitleChanged:function(t,n){e._onRecordUpdated(V,t,"title",n)},NotifyTaskDescriptionChanged:function(t,n){e._onRecordUpdated(V,t,"description",n)},NotifyTaskStartChanged:function(t,n){e._onRecordUpdated(V,t,"start",n)},NotifyTaskEndChanged:function(t,n){e._onRecordUpdated(V,t,"end",n)},NotifyTaskProgressChanged:function(t,n){e._onRecordUpdated(V,t,"progress",n)},NotifyDependencyInserted:function(t,n){e._onRecordInserted(H,t,n)},NotifyDependencyRemoved:function(t){e._onRecordRemoved(H,t)},NotifyResourceCreated:function(t,n){e._onRecordInserted(L,t,n)},NotifyResourceRemoved:function(t){e._onRecordRemoved(L,t)},NotifyResourceAssigned:function(t,n){e._onRecordInserted(z,t,n)},NotifyResourceUnassigned:function(t){e._onRecordRemoved(z,t)}}}},{key:"_onRecordInserted",value:function(e,t,n){var i=this,o=this["_"+e+"Option"];if(o){var a=this._getStoreObject(e,t);o.insert(a,function(o){var a=v.default.compileGetter(i.option(e+".keyExpr")),r=a(o);if(n(r),e===V){i._updateTreeListDataSource();var s=t.parentId;if(void 0!==s){var l=i._treeList.option("expandedRowKeys");l.push(s),i._treeList.option("expandedRowKeys",l)}}})}}},{key:"_onRecordRemoved",value:function(e,t){var n=this,i=this["_"+e+"Option"];i&&i.remove(t,function(){e===V&&n._updateTreeListDataSource()})}},{key:"_onRecordUpdated",value:function(e,t,n,i){var o=this,a=this["_"+e+"Option"];if(a){var r=v.default.compileSetter(this.option(e+"."+n+"Expr")),s={};r(s,i),a.update(t,s,function(){e===V&&o._updateTreeListDataSource()})}}},{key:"_updateTreeListDataSource",value:function(){var e=this._tasksOption._getStore()._array;this._setTreeListOption("dataSource",e?e:this.option("tasks.dataSource"))}},{key:"_getLoadPanel",value:function(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,P.default,{position:{of:this.$element()}})),this._loadPanel}},{key:"_createSelectionChangedAction",value:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}},{key:"_raiseSelectionChangedAction",value:function(e){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({selectedRowKey:e})}},{key:"_getSelectionMode",value:function(e){return e?"single":"none"}},{key:"_getArrayFromOneElement",value:function(e){return void 0===e||null===e?[]:[e]}},{key:"_showDialog",value:function(e){this._dialogInstance||(this._dialogInstance=new O.GanttDialog(this,this._$dialog)),this._dialogInstance.show(e.name,e.parameters,e.callback,this.option("editing"))}},{key:"_showPopupMenu",value:function(e){this._ganttView.getBarManager().updateContextMenu(),this._contextMenuBar.show(e.position)}},{key:"_executeCoreCommand",value:function(e){this._ganttView.executeCoreCommand(e)}},{key:"_clean",value:function(){delete this._ganttView,delete this._dialogInstance,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_getDefaultOptions",value:function(){return(0,k.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,taskTitlePosition:"inside",selectedRowKey:void 0,onSelectionChanged:null,allowSelection:!0,showRowLines:!0,scaleType:"auto",editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowDependencyUpdating:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0}})}},{key:"_optionChanged",value:function(e){switch(e.name){case"tasks":this._refreshDataSource(V);break;case"dependencies":this._refreshDataSource(H);break;case"resources":this._refreshDataSource(L);break;case"resourceAssignments":this._refreshDataSource(z);break;case"columns":this._setTreeListOption("columns",this.option(e.name));break;case"taskListWidth":this._setInnerElementsWidth();break;case"showResources":this._setGanttViewOption("showResources",e.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",e.value);break;case"selectedRowKey":this._setTreeListOption("selectedRowKeys",this._getArrayFromOneElement(e.value));break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"allowSelection":this._setTreeListOption("selection.mode",this._getSelectionMode(e.value)),this._setGanttViewOption("allowSelection",e.value);break;case"showRowLines":this._setTreeListOption("showRowLines",e.value),this._setGanttViewOption("showRowLines",e.value);break;case"scaleType":this._setGanttViewOption("scaleType",e.value);break;case"editing":this._setGanttViewOption("editing",this.option(e.name));break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(f.default);(0,_.default)("dxGantt",N),e.exports=N},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.GanttView=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(17),d=i(u),c=n(779),h=n(781);t.GanttView=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._onSelectionChanged=this._createActionByOption("onSelectionChanged"),this._onScroll=this._createActionByOption("onScroll"),this._onDialogShowing=this._createActionByOption("onDialogShowing"),this._onPopupMenuShowing=this._createActionByOption("onPopupMenuShowing")}},{key:"_initMarkup",value:function(){var e=(0,c.getGanttViewCore)(),t=e.GanttView;this._ganttViewCore=new t(this.$element().get(0),this,{showResources:this.option("showResources"),taskTitlePosition:this._getTaskTitlePosition(this.option("taskTitlePosition")),allowSelectTask:this.option("allowSelection"),editing:this.option("editing"),areHorizontalBordersEnabled:this.option("showRowLines"),areAlternateRowsEnabled:!1,viewType:this._getViewTypeByScaleType(this.option("scaleType"))}),this._selectTask(this.option("selectedRowKey"))}},{key:"getTaskAreaContainer",value:function(){return this._ganttViewCore.taskAreaContainer}},{key:"getBarManager",value:function(){return this._ganttViewCore.barManager}},{key:"executeCoreCommand",value:function(e){var t=this._ganttViewCore.commandManager.getCommand(e);t&&t.execute()}},{key:"changeTaskExpanded",value:function(e,t){this._ganttViewCore.changeTaskExpanded(e,t)}},{key:"updateView",value:function(){this._ganttViewCore.updateView()}},{key:"setWidth",value:function(e){this._ganttViewCore.setWidth(e)}},{key:"_selectTask",value:function(e){this._ganttViewCore.selectTaskById(e)}},{key:"_update",value:function(){this._ganttViewCore.loadOptionsFromGanttOwner(),this._ganttViewCore.resetAndUpdate()}},{key:"_getTaskTitlePosition",value:function(e){switch(e){case"outside":return 1;case"none":return 2;default:return 0}}},{key:"_getViewTypeByScaleType",value:function(e){switch(e){case"minutes":return 0;case"hours":return 1;case"days":return 3;case"weeks":return 4;case"months":return 5;case"quarters":return 6;case"years":return 7;default:return}}},{key:"_optionChanged",value:function(e){switch(e.name){case"width":l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e),this._ganttViewCore.setWidth(e.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._update();break;case"showResources":this._ganttViewCore.setShowResources(e.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(e.value));break;case"allowSelection":this._ganttViewCore.setAllowSelection(e.value);break;case"selectedRowKey":this._selectTask(e.value);break;case"editing":this._ganttViewCore.setEditingSettings(e.value);break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(e.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(e.value));break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"getRowHeight",value:function(){return this.option("rowHeight")}},{key:"getHeaderHeight",value:function(){return this.option("headerHeight")}},{key:"getGanttTasksData",value:function(){return this.option("tasks")}},{key:"getGanttDependenciesData",value:function(){return this.option("dependencies")}},{key:"getGanttResourcesData",value:function(){return this.option("resources")}},{key:"getGanttResourceAssignmentsData",value:function(){return this.option("resourceAssignments")}},{key:"getGanttWorkTimeRules",value:function(){return{}}},{key:"getExternalTaskAreaContainer",value:function(e){return this._taskAreaContainer||(this._taskAreaContainer=new h.TaskAreaContainer(e,this)),this._taskAreaContainer}},{key:"changeGanttTaskSelection",value:function(e,t){this._onSelectionChanged({id:e,selected:t})}},{key:"onGanttScroll",value:function(e){this._onScroll({scrollTop:e})}},{key:"showDialog",value:function(e,t,n){this._onDialogShowing({name:e,parameters:t,callback:n})}},{key:"getModelChangesListener",value:function(){return this.option("modelChangesListener")}},{key:"showPopupMenu",value:function(e){this._onPopupMenuShowing({position:e})}},{key:"bars",get:function(){return this.option("bars")}}]),t}(d.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(){return u||(u=a()),u}function a(){var e=(0,l.getWindow)(),t=e&&e.DevExpress&&e.DevExpress.Gantt||n(780);if(!t)throw s.default.Error("E1041","devexpress-gantt");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getGanttViewCore=void 0;var r=n(19),s=i(r),l=n(7),u=void 0;t.getGanttViewCore=o},function(e,t){e.exports=window.DevExpress.Gantt},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaContainer=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(118),s=i(r);t.TaskAreaContainer=function(){function e(t,n){o(this,e),this._element=t,this._scrollView=n._createComponent(this._element,s.default,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:function(){n.updateView()}})}return a(e,[{key:"getWidth",value:function(){return this._element.offsetWidth}},{key:"getHeight",value:function(){return this._element.offsetHeight}},{key:"getElement",value:function(){return this._element}},{key:"scrollTop",get:function(){return this._scrollView.scrollTop()},set:function(e){var t=e-this._scrollView.scrollTop();0!==t&&this._scrollView.scrollBy({left:0,top:t})}},{key:"scrollLeft",get:function(){return this._scrollView.scrollLeft()},set:function(e){var t=e-this._scrollView.scrollLeft();0!==t&&this._scrollView.scrollBy({left:t,top:0})}},{key:"scrollWidth",get:function(){return this._scrollView.scrollWidth()}},{key:"scrollHeight",get:function(){return this._scrollView.scrollHeight()}},{key:"isExternal",get:function(){return!0}}]),e}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(96),s=i(r),l=function(){function e(t,n){o(this,e),this._element=t,this._owner=n,this._createControl()}return a(e,[{key:"_createControl",value:function(){var e=this;this._createItems(),this._menu=this._owner._createComponent(this._element,s.default,{showEvent:void 0,items:this._items,onItemClick:function(t){var n=t.itemData.commandId;void 0!==n&&e._owner._executeCoreCommand(t.itemData.commandId)}})}},{key:"_createItems",value:function(){var e={createTask:0,createSubTask:1,removeTask:2,removeDependency:3,showTasksDialog:4,addTask:5};this._items=[{text:"Add",commandId:e.addTask,items:[{text:"New Task",commandId:e.createTask},{text:"New Subtask",commandId:e.createSubTask}]},{text:"Task Details...",commandId:e.showTasksDialog},{text:"Remove Task",commandId:e.removeTask},{text:"Remove Dependency",commandId:e.removeDependency}]}},{key:"getCommandKeys",value:function(){var e=this._getItemsCache(),t=[];for(var n in e)t.push(parseInt(n));return t}},{key:"setItemEnabled",value:function(e,t){var n=this._getItemsCache();n[e].forEach(function(e){e.disabled=!t})}},{key:"setItemVisible",value:function(e,t){var n=this._getItemsCache();n[e].forEach(function(e){e.visible=t})}},{key:"setItemValue",value:function(e,t){}},{key:"setEnabled",value:function(e){this._menu.option("disabled",!e)}},{key:"updateItemsList",value:function(){}},{key:"isVisible",value:function(){return!0}},{key:"isContextMenu",value:function(){return!0}},{key:"show",value:function(e){this._menu.option("items",this._items),this._menu.option("position.offset",{x:e.x,y:e.y}),this._menu.show()}},{key:"_getItemsCache",value:function(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache}},{key:"_fillCache",value:function(e){var t=this;e.forEach(function(e){var n=e.commandId;void 0!==n&&(t._cache[n]||(t._cache[n]=[]),t._cache[n].push(e)),e.items&&t._fillCache(e.items)})}}]),e}();e.exports=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(112),u=i(l),d=n(83),c=i(d),h=function(e){function t(e,n,i){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._optionName=e,r._loadPanel=n,r._dataSourceChangedCallback=i,r}return r(t,e),s(t,[{key:"insert",value:function(e,t,n){var i=this;this._showLoadPanel(),this._getStore().insert(e).done(function(e){t&&t(e),i._hideLoadPanel()}).fail(function(e){n&&n(e),i._hideLoadPanel()})}},{key:"update",value:function(e,t,n,i){var o=this;this._showLoadPanel(),this._getStore().update(e,t).done(function(e,t){n&&n(e,t),o._hideLoadPanel()}).fail(function(e){i&&i(e),o._hideLoadPanel()})}},{key:"remove",value:function(e,t,n){var i=this;this._showLoadPanel(),this._getStore().remove(e).done(function(e){t&&t(e),i._hideLoadPanel()}).fail(function(e){n&&n(e),i._hideLoadPanel()})}},{key:"_dataSourceChangedHandler",value:function(e,t){this._dataSourceChangedCallback(this._optionName,e)}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_dataSourceLoadingChangedHandler",value:function(e){e&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()}},{key:"_showLoadPanel",value:function(){this._loadPanel.show()}},{key:"_hideLoadPanel",value:function(){this._loadPanel.hide()}},{key:"_getStore",value:function(){return this._dataSource.store()}}]),t}(u.default);h.include(c.default),e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.GanttDialog=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(44),u=i(l),d=n(121),c=i(d);n(260);var h=(t.GanttDialog=function(){function e(t,n){r(this,e),this._popupInstance=t._createComponent(n,u.default),this.infoMap={TaskEdit:p,Resources:f}}return s(e,[{key:"_apply",value:function(){var e=this._dialogInfo.getResult();this._callback(e),this.hide()}},{key:"show",value:function(e,t,n,i){this._callback=n,this.infoMap[e]&&(this._dialogInfo=new this.infoMap[e](t,this._apply.bind(this),this.hide.bind(this),i),this._popupInstance.option({title:this._dialogInfo.getTitle(),toolbarItems:this._dialogInfo.getToolbarItems(),maxWidth:this._dialogInfo.getMaxWidth(),height:this._dialogInfo.getHeight(),contentTemplate:this._dialogInfo.getContentTemplate()}),this._popupInstance.show())}},{key:"hide",value:function(){this._popupInstance.hide(),delete this._dialogInfo}}]),e}(),function(){function e(t,n,i,o){r(this,e),this._parameters=t,this._applyAction=n,this._hideAction=i,this._editingOptions=o}return s(e,[{key:"_getFormItems",value:function(){return{}}},{key:"_updateParameters",value:function(){}},{key:"_getOkToolbarItem",value:function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:"Ok",onClick:this._applyAction}}}},{key:"_getCancelToolbarItem",value:function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:"Cancel",onClick:this._hideAction}}}},{key:"getTitle",value:function(){return""}},{key:"getToolbarItems",value:function(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]}},{key:"getMaxWidth",value:function(){return 400}},{key:"getHeight",value:function(){return"auto"}},{key:"getContentTemplate",value:function(){var e=this;return function(t){return e._form=new c.default(t,{formData:e._parameters,items:e._getFormItems()}),t}}},{key:"getResult",value:function(){var e=this._form.option("formData");return this._updateParameters(e),this._parameters}}]),e}()),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getTitle",value:function(){return"Task Details"}},{key:"_getFormItems",value:function(){var e=this,t=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating;return[{dataField:"title",editorType:"dxTextBox",label:{text:"Title"},editorOptions:{readOnly:t}},{dataField:"start",editorType:"dxDateBox",label:{text:"Start"},editorOptions:{type:"datetime",width:"100%",readOnly:t}},{dataField:"end",editorType:"dxDateBox",label:{text:"End"},editorOptions:{type:"datetime",width:"100%",readOnly:t}},{dataField:"progress",editorType:"dxNumberBox",label:{text:"Progress"},editorOptions:{value:this._parameters.progress/100,showSpinButtons:!0,min:0,max:1,format:"#0%",step:.01,readOnly:t}},{dataField:"assigned.items",editorType:"dxTagBox",label:{text:"Resources"},editorOptions:{readOnly:t,dataSource:this._parameters.resources.items,displayExpr:"text",buttons:[{name:"editResources",location:"after",options:{text:"...",hint:"Edit Resource List",onClick:function(){e._parameters.showResourcesDialogCommand.execute()}}}]}}]}},{key:"_updateParameters",value:function(e){this._parameters.title=e.title,this._parameters.start=e.start,this._parameters.end=e.end,this._parameters.progress=100*e.progress,this._parameters.assigned=e.assigned}}]),t}(h),f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getTitle",value:function(){return"Resources"}},{key:"_getFormItems",value:function(){var e=this;return[{label:{visible:!1},dataField:"resources.items",editorType:"dxList",editorOptions:{allowItemDeleting:this._editingOptions.enabled&&this._editingOptions.allowResourceDeleting,itemDeleteMode:"static",selectionMode:"none",items:this._parameters.resources.items,height:250,noDataText:"No resources",onInitialized:function(t){e.list=t.component},onItemDeleted:function(t){e._parameters.resources.remove(t.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:function(t){e.textBox=t.component},onInput:function(e){var t=e.component.getButton("addResource"),n=e.component.option("text");
t.option("disabled",0===n.length)},buttons:[{name:"addResource",location:"after",options:{text:"Add",disabled:!0,onClick:function(t){var n=e._parameters.resources.createItem();n.text=e.textBox.option("text"),e._parameters.resources.add(n),e.list.option("items",e._parameters.resources.items),e.list.scrollToItem(n),e.textBox.reset(),t.component.option("disabled",!0)}}}]}}]}}]),t}(h)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(893)},function(e,t,n){n(614)}]);