tiseza_oss_live/Scripts/dx.web.js

106 lines
2.9 MiB
JavaScript
Raw Permalink Normal View History

2025-11-15 11:14:31 +00:00
/*!
* 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
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.spli
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({tran
}}}()},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
},_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},_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._syncSelectionOptio
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("backgrou
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:fu
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("searchEnabl
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.g
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
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
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.getVisibleColum
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.curre
}};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(
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.synchroni
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){
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
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._initContentRea
},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("
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:"_getCancelButt
_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._multiTagPreparing
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.f
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.callBa
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:"dxChe
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=!
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._initLoadPan
},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:fu
},_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&
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(),th
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())
})}}},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.getDateSerializat
},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._dataLoadingHand
}),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||"multip
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._l
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._initialize
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
},_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.
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
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("."
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").getFilteringColum
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(
})},_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
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
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
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(
}}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
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).getBoundingCli
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
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
"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,k
"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":"Appl
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&&
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(),t
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._formatterByG
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 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.d
},_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())},_p
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(),th
_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 th
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){Obj
},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(thi
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.
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!==
},_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"
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
},_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._listKeyboardProce
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)
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=
}).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._ren
}),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"
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
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.ca
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="<
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=[],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},getScrollPat
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(
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]
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|a
},{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|b5u
},{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
},{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|4olg
},{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],offs
},{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|7x6
},{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:"Indi
}}]),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
};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())},_popove
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
}))},_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("ge
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(
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
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:"_isToolbarI
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._createActio
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,openedStateM
},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._createOnWidgetCom
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._onApp
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)}]);