diff --git a/_src/admin/js/jquery-ui.js b/_src/admin/js/jquery-ui.js index ad8d539..f263226 100644 --- a/_src/admin/js/jquery-ui.js +++ b/_src/admin/js/jquery-ui.js @@ -1,6 +1,6 @@ -/*! jQuery UI - v1.12.1 - 2018-10-29 +/*! jQuery UI - v1.12.1 - 2019-07-07 * http://jqueryui.com -* Includes: widget.js, position.js, data.js, keycode.js, scroll-parent.js, unique-id.js, widgets/sortable.js, widgets/autocomplete.js, widgets/datepicker.js, widgets/menu.js, widgets/mouse.js +* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { @@ -1260,6 +1260,268 @@ var data = $.extend( $.expr[ ":" ], { } } ); +/*! + * jQuery UI Disable Selection 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: disableSelection +//>>group: Core +//>>description: Disable selection of text content within the set of matched elements. +//>>docs: http://api.jqueryui.com/disableSelection/ + +// This file is deprecated + + +var disableSelection = $.fn.extend( { + disableSelection: ( function() { + var eventType = "onselectstart" in document.createElement( "div" ) ? + "selectstart" : + "mousedown"; + + return function() { + return this.on( eventType + ".ui-disableSelection", function( event ) { + event.preventDefault(); + } ); + }; + } )(), + + enableSelection: function() { + return this.off( ".ui-disableSelection" ); + } +} ); + + +/*! + * jQuery UI Focusable 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: :focusable Selector +//>>group: Core +//>>description: Selects elements which can be focused. +//>>docs: http://api.jqueryui.com/focusable-selector/ + + + +// Selectors +$.ui.focusable = function( element, hasTabindex ) { + var map, mapName, img, focusableIfVisible, fieldset, + nodeName = element.nodeName.toLowerCase(); + + if ( "area" === nodeName ) { + map = element.parentNode; + mapName = map.name; + if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) { + return false; + } + img = $( "img[usemap='#" + mapName + "']" ); + return img.length > 0 && img.is( ":visible" ); + } + + if ( /^(input|select|textarea|button|object)$/.test( nodeName ) ) { + focusableIfVisible = !element.disabled; + + if ( focusableIfVisible ) { + + // Form controls within a disabled fieldset are disabled. + // However, controls within the fieldset's legend do not get disabled. + // Since controls generally aren't placed inside legends, we skip + // this portion of the check. + fieldset = $( element ).closest( "fieldset" )[ 0 ]; + if ( fieldset ) { + focusableIfVisible = !fieldset.disabled; + } + } + } else if ( "a" === nodeName ) { + focusableIfVisible = element.href || hasTabindex; + } else { + focusableIfVisible = hasTabindex; + } + + return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) ); +}; + +// Support: IE 8 only +// IE 8 doesn't resolve inherit to visible/hidden for computed values +function visible( element ) { + var visibility = element.css( "visibility" ); + while ( visibility === "inherit" ) { + element = element.parent(); + visibility = element.css( "visibility" ); + } + return visibility !== "hidden"; +} + +$.extend( $.expr[ ":" ], { + focusable: function( element ) { + return $.ui.focusable( element, $.attr( element, "tabindex" ) != null ); + } +} ); + +var focusable = $.ui.focusable; + + + + +// Support: IE8 Only +// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop +// with a string, so we need to find the proper form. +var form = $.fn.form = function() { + return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); +}; + + +/*! + * jQuery UI Form Reset Mixin 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Form Reset Mixin +//>>group: Core +//>>description: Refresh input widgets when their form is reset +//>>docs: http://api.jqueryui.com/form-reset-mixin/ + + + +var formResetMixin = $.ui.formResetMixin = { + _formResetHandler: function() { + var form = $( this ); + + // Wait for the form reset to actually happen before refreshing + setTimeout( function() { + var instances = form.data( "ui-form-reset-instances" ); + $.each( instances, function() { + this.refresh(); + } ); + } ); + }, + + _bindFormResetHandler: function() { + this.form = this.element.form(); + if ( !this.form.length ) { + return; + } + + var instances = this.form.data( "ui-form-reset-instances" ) || []; + if ( !instances.length ) { + + // We don't use _on() here because we use a single event handler per form + this.form.on( "reset.ui-form-reset", this._formResetHandler ); + } + instances.push( this ); + this.form.data( "ui-form-reset-instances", instances ); + }, + + _unbindFormResetHandler: function() { + if ( !this.form.length ) { + return; + } + + var instances = this.form.data( "ui-form-reset-instances" ); + instances.splice( $.inArray( this, instances ), 1 ); + if ( instances.length ) { + this.form.data( "ui-form-reset-instances", instances ); + } else { + this.form + .removeData( "ui-form-reset-instances" ) + .off( "reset.ui-form-reset" ); + } + } +}; + + +/*! + * jQuery UI Support for jQuery core 1.7.x 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + */ + +//>>label: jQuery 1.7 Support +//>>group: Core +//>>description: Support version 1.7.x of jQuery core + + + +// Support: jQuery 1.7 only +// Not a great way to check versions, but since we only support 1.7+ and only +// need to detect <1.8, this is a simple check that should suffice. Checking +// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0 +// and we'll never reach 1.70.0 (if we do, we certainly won't be supporting +// 1.7 anymore). See #11197 for why we're not using feature detection. +if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) { + + // Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight() + // Unlike jQuery Core 1.8+, these only support numeric values to set the + // dimensions in pixels + $.each( [ "Width", "Height" ], function( i, name ) { + var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], + type = name.toLowerCase(), + orig = { + innerWidth: $.fn.innerWidth, + innerHeight: $.fn.innerHeight, + outerWidth: $.fn.outerWidth, + outerHeight: $.fn.outerHeight + }; + + function reduce( elem, size, border, margin ) { + $.each( side, function() { + size -= parseFloat( $.css( elem, "padding" + this ) ) || 0; + if ( border ) { + size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0; + } + if ( margin ) { + size -= parseFloat( $.css( elem, "margin" + this ) ) || 0; + } + } ); + return size; + } + + $.fn[ "inner" + name ] = function( size ) { + if ( size === undefined ) { + return orig[ "inner" + name ].call( this ); + } + + return this.each( function() { + $( this ).css( type, reduce( this, size ) + "px" ); + } ); + }; + + $.fn[ "outer" + name ] = function( size, margin ) { + if ( typeof size !== "number" ) { + return orig[ "outer" + name ].call( this, size ); + } + + return this.each( function() { + $( this ).css( type, reduce( this, size, true, margin ) + "px" ); + } ); + }; + } ); + + $.fn.addBack = function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + }; +} + +; /*! * jQuery UI Keycode 1.12.1 * http://jqueryui.com @@ -1295,6 +1557,69 @@ var keycode = $.ui.keyCode = { }; + + +// Internal use only +var escapeSelector = $.ui.escapeSelector = ( function() { + var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g; + return function( selector ) { + return selector.replace( selectorEscape, "\\$1" ); + }; +} )(); + + +/*! + * jQuery UI Labels 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: labels +//>>group: Core +//>>description: Find all the labels associated with a given input +//>>docs: http://api.jqueryui.com/labels/ + + + +var labels = $.fn.labels = function() { + var ancestor, selector, id, labels, ancestors; + + // Check control.labels first + if ( this[ 0 ].labels && this[ 0 ].labels.length ) { + return this.pushStack( this[ 0 ].labels ); + } + + // Support: IE <= 11, FF <= 37, Android <= 2.3 only + // Above browsers do not support control.labels. Everything below is to support them + // as well as document fragments. control.labels does not work on document fragments + labels = this.eq( 0 ).parents( "label" ); + + // Look for the label based on the id + id = this.attr( "id" ); + if ( id ) { + + // We don't search against the document in case the element + // is disconnected from the DOM + ancestor = this.eq( 0 ).parents().last(); + + // Get a full set of top level ancestors + ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() ); + + // Create a selector for the label based on the id + selector = "label[for='" + $.ui.escapeSelector( id ) + "']"; + + labels = labels.add( ancestors.find( selector ).addBack( selector ) ); + + } + + // Return whatever we have found for labels + return this.pushStack( labels ); +}; + + /*! * jQuery UI Scroll Parent 1.12.1 * http://jqueryui.com @@ -1330,6 +1655,31 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) { }; +/*! + * jQuery UI Tabbable 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: :tabbable Selector +//>>group: Core +//>>description: Selects elements which can be tabbed to. +//>>docs: http://api.jqueryui.com/tabbable-selector/ + + + +var tabbable = $.extend( $.expr[ ":" ], { + tabbable: function( element ) { + var tabIndex = $.attr( element, "tabindex" ), + hasTabindex = tabIndex != null; + return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex ); + } +} ); + + /*! * jQuery UI Unique ID 1.12.1 * http://jqueryui.com @@ -1585,8 +1935,83 @@ var widgetsMouse = $.widget( "ui.mouse", { } ); + + +// $.ui.plugin is deprecated. Use $.widget() extensions instead. +var plugin = $.ui.plugin = { + add: function( module, option, set ) { + var i, + proto = $.ui[ module ].prototype; + for ( i in set ) { + proto.plugins[ i ] = proto.plugins[ i ] || []; + proto.plugins[ i ].push( [ option, set[ i ] ] ); + } + }, + call: function( instance, name, args, allowDisconnected ) { + var i, + set = instance.plugins[ name ]; + + if ( !set ) { + return; + } + + if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || + instance.element[ 0 ].parentNode.nodeType === 11 ) ) { + return; + } + + for ( i = 0; i < set.length; i++ ) { + if ( instance.options[ set[ i ][ 0 ] ] ) { + set[ i ][ 1 ].apply( instance.element, args ); + } + } + } +}; + + + +var safeActiveElement = $.ui.safeActiveElement = function( document ) { + var activeElement; + + // Support: IE 9 only + // IE9 throws an "Unspecified error" accessing document.activeElement from an '):e(''),x=u.theme?e(''):e(''),u.theme&&g?(w='"):u.theme?(w='"):w=g?'':'',b=e(w),_&&(u.theme?(b.css(f),b.addClass("ui-widget-content")):b.css(d)),u.theme||x.css(u.overlayCSS),x.css("position",g?"fixed":"absolute"),(n||u.forceIframe)&&y.css("opacity",0);var k=[y,x,b],S=e(g?"body":s);e.each(k,function(){this.appendTo(S)}),u.theme&&u.draggable&&e.fn.draggable&&b.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var I=o&&(!e.support.boxModel||e("object,embed",g?null:s).length>0);if(i||I){if(g&&u.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(i||!e.support.boxModel)&&!g)var T=p(s,"borderTopWidth"),D=p(s,"borderLeftWidth"),E=T?"(0 - "+T+")":0,A=D?"(0 - "+D+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)g?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+u.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),g?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),A&&n.setExpression("left",A),E&&n.setExpression("top",E);else if(u.centerY)g&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!u.centerY&&g){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(u.css&&u.css.top?parseInt(u.css.top,10):0)+') + "px"';n.setExpression("top",i)}})}if(_&&(u.theme?b.find(".ui-widget-content").append(_):b.append(_),(_.jquery||_.nodeType)&&e(_).show()),(n||u.forceIframe)&&u.showOverlay&&y.show(),u.fadeIn){var O=u.onBlock?u.onBlock:t,B=u.showOverlay&&!_?O:t,P=_?O:t;u.showOverlay&&x._fadeIn(u.fadeIn,B),_&&b._fadeIn(u.fadeIn,P)}else u.showOverlay&&x.show(),_&&b.show(),u.onBlock&&u.onBlock.bind(b)();if(c(1,s,u),g?(a=b[0],r=e(u.focusableElements,a),u.focusInput&&setTimeout(h,20)):function(e,t,n){var i=e.parentNode,o=e.style,a=(i.offsetWidth-e.offsetWidth)/2-p(i,"borderLeftWidth"),r=(i.offsetHeight-e.offsetHeight)/2-p(i,"borderTopWidth");t&&(o.left=a>0?a+"px":"0");n&&(o.top=r>0?r+"px":"0")}(b[0],u.centerX,u.centerY),u.timeout){var M=setTimeout(function(){g?e.unblockUI(u):e(s).unblock(u)},u.timeout);e(s).data("blockUI.timeout",M)}}}function l(t,n){var i,o,s=t==window,l=e(t),d=l.data("blockUI.history"),h=l.data("blockUI.timeout");h&&(clearTimeout(h),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),c(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),o=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(o.length>1&&(o[1].style.cursor=n.cursorReset),o.length>2&&(o[2].style.cursor=n.cursorReset)),s&&(a=r=null),n.fadeOut?(i=o.length,o.stop().fadeOut(n.fadeOut,function(){0==--i&&u(o,d,n,t)})):u(o,d,n,t)}function u(t,n,i,o){var a=e(o);if(!a.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),a.removeData("blockUI.history")),a.data("blockUI.static")&&a.css("position","static"),"function"==typeof i.onUnblock&&i.onUnblock(o,i);var r=e(document.body),s=r.width(),l=r[0].style.width;r.width(s-1).width(s),r[0].style.width=l}}function c(t,n,i){var o=n==window,r=e(n);if((t||(!o||a)&&(o||r.data("blockUI.isBlocked")))&&(r.data("blockUI.isBlocked",t),o&&i.bindEvents&&(!t||i.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,i,d):e(document).unbind(s,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&a&&t.data.constrainTabKey){var n=r,i=!t.shiftKey&&t.target===n[n.length-1],o=t.shiftKey&&t.target===n[0];if(i||o)return setTimeout(function(){h(o)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function h(e){if(r){var t=r[!0===e?r.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var t=/\+/g;function n(e){return o.raw?e:encodeURIComponent(e)}function i(n,i){var a=o.raw?n:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),o.json?JSON.parse(e):e}catch(e){}}(n);return e.isFunction(i)?i(a):a}var o=e.cookie=function(t,a,r){if(arguments.length>1&&!e.isFunction(a)){if("number"==typeof(r=e.extend({},o.defaults,r)).expires){var s=r.expires,l=r.expires=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s)}return document.cookie=[n(t),"=",function(e){return n(o.json?JSON.stringify(e):String(e))}(a),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}for(var u,c=t?void 0:{},d=document.cookie?document.cookie.split("; "):[],h=0,p=d.length;h0||navigator.msMaxTouchPoints>0),supportFileApi:!!t&&(t.FileReader&&t.File&&t.FileList&&t.Blob),wheelEnm:a,urlUtil:function(e,i){return i=(e={href:t.location.href,param:t.location.search,referrer:n.referrer,pathname:t.location.pathname,hostname:t.location.hostname,port:t.location.port}).href.split(/[\?#]/),e.param=e.param.replace("?",""),e.url=i[0],e.href.search("#")>-1&&(e.hashdata=_.last(i)),i=null,e.baseUrl=_.left(e.href,"?").replace(e.pathname,""),e},getError:function(e,t,n){return g.errorMsg&&g.errorMsg[e]?{className:e,errorCode:t,methodName:n,msg:g.errorMsg[e][t]}:{className:e,errorCode:t,methodName:n}}}}(),f.util=_=function(){var m=Object.prototype.toString;function v(e,t){if(S(e))return[];var n=void 0,i=0,o=e.length;if(void 0===o||"function"==typeof e){for(n in e)if(void 0!==e[n]&&!1===t.call(e[n],n,e[n]))break}else for(;i0&&(t+=","),t+=y(e[n]);t+="]"}else if(f.util.isObject(e)){t+="{";var o=[];v(e,function(e,t){o.push('"'+e+'": '+y(t))}),t+=o.join(", "),t+="}"}else t=f.util.isString(e)?'"'+e+'"':f.util.isNumber(e)?e:f.util.isUndefined(e)?"undefined":f.util.isFunction(e)?'"{Function}"':e;return t}function x(e){return"[object Object]"==m.call(e)}function b(e){return"[object Array]"==m.call(e)}function w(e){return"function"==typeof e}function C(e){return"[object String]"==m.call(e)}function k(e){return"[object Number]"==m.call(e)}function S(e){return null==e||""===e}function I(e,t){return void 0===e||void 0===t?"":C(t)?e.indexOf(t)>-1?e.substr(0,e.indexOf(t)):"":k(t)?e.substr(0,t):""}function T(e,t){return void 0===e||void 0===t?"":(e=""+e,C(t)?e.lastIndexOf(t)>-1?e.substr(e.lastIndexOf(t)+1):"":k(t)?e.substr(e.length-t):"")}function D(e){return e.replace(o,"ms-").replace(a,function(e,t){return t.toUpperCase()})}function E(e){return D(e).replace(r,function(e,t){return"-"+t.toLowerCase()})}function A(e,t){var n,i,o,a=(""+e).split(s);return i=Number(a[0].replace(/,/g,""))<0||"-0"==a[0],o=0,a[0]=a[0].replace(l,""),a[1]?(a[1]=a[1].replace(u,""),o=Number(a[0]+"."+a[1])||0):o=Number(a[0])||0,n=i?-o:o,v(t,function(e,t){var i,o;"round"==e&&(n=k(t)?t<0?+(Math.round(n+"e-"+Math.abs(t))+"e+"+Math.abs(t)):+(Math.round(n+"e+"+t)+"e-"+t):Math.round(n)),"floor"==e&&(n=Math.floor(n)),"ceil"==e?n=Math.ceil(n):"money"==e?n=function(e){var t=""+n;if(isNaN(t)||""==t)return"";var i=t.split(".");i[0]+=".";do{i[0]=i[0].replace(c,"$1,$2")}while(c.test(i[0]));return i.length>1?i.join(""):i[0].split(".")[0]}():"abs"==e?n=Math.abs(Number(n)):"byte"==e&&(i="KB",(o=Number(n)/1024)/1024>1&&(i="MB",o/=1024),o/1024>1&&(i="GB",o/=1024),n=A(o,{round:1})+i)}),n}function O(e,t,n,i,o,a){var r;return new Date,t<0&&(t=0),void 0===i&&(i=12),void 0===o&&(o=0),r=new Date(Date.UTC(e,t,n||1,i,o,a||0)),0==t&&1==n&&r.getUTCHours()+r.getTimezoneOffset()/60<0?r.setUTCHours(0):r.setUTCHours(r.getUTCHours()+r.getTimezoneOffset()/60),r}function B(e,t){var n,i,o,a,r,s,l,u,c,d,h,p,f,_,m,v=void 0,y=void 0,x=void 0,b=void 0,w=void 0,k=void 0,S=void 0,I=void 0,D=void 0,E=void 0;if(C(e))if(0==e.length)e=new Date;else if(e.length>15)/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test(e)||/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i.test(e)?e=new Date(e):(v=(D=(k=e.split(/ /g))[0].split(/\D/g))[0],y=parseFloat(D[1]),x=parseFloat(D[2]),S=(I=k[1]||"09:00").substring(0,5).split(":"),b=parseFloat(S[0]),w=parseFloat(S[1]),"AM"!==T(I,2)&&"PM"!==T(I,2)||(b+=12),e=O(v,y-1,x,b,w));else if(14==e.length)E=e.replace(/\D/g,""),e=O(E.substr(0,4),E.substr(4,2)-1,A(E.substr(6,2)),A(E.substr(8,2)),A(E.substr(10,2)),A(E.substr(12,2)));else if(e.length>7)E=e.replace(/\D/g,""),e=O(E.substr(0,4),E.substr(4,2)-1,A(E.substr(6,2)));else if(e.length>4)E=e.replace(/\D/g,""),e=O(E.substr(0,4),E.substr(4,2)-1,1);else{if(e.length>2)return O((E=e.replace(/\D/g,"")).substr(0,4),E.substr(4,2)-1,1);e=new Date}return void 0===t||void 0===e?e:("add"in t&&(e=function(e,t){var n=void 0,i=void 0,o=void 0,a=void 0;return void 0!==t.d?e.setTime(e.getTime()+864e5*t.d):void 0!==t.m?(n=e.getFullYear(),i=e.getMonth(),o=e.getDate(),(a=P(n+=parseInt(t.m/12),i+=t.m%12))=t||n<0||d&&e-u>=a}function g(){var e=Date.now();if(f(e))return _(e);s=setTimeout(g,function(e){var n=e-u,i=t-(e-l);return d?Math.min(i,a-n):i}(e))}function _(e){return s=void 0,h&&i?p(e):(i=o=void 0,r)}function m(){for(var e=Date.now(),n=f(e),a=arguments.length,h=Array(a),_=0;_\&\"]/gm,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";default:return e}}):""}function z(e){return"[object String]"!=m.call(e)?e:e?e.replace(/(<)|(>)|(&)|(")/gm,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case""":return'"';default:return e}}):""}return{alert:function(e){return t.alert(y(e)),e},each:v,map:function(e,t){if(S(e))return[];var n=void 0,i=0,o=e.length,a=[],r=void 0;if(x(e)){for(n in e)if(void 0!==e[n]){if(r=void 0,!1===(r=t.call(e[n],n,e[n])))break;a.push(r)}}else for(;i0&&(void 0===t[i]||!1!==(o=n.call(e,o,t[--i]))););return o},filter:function(e,t){if(S(e))return[];var n,i=0,o=e.length,a=[];if(x(e))for(n in e)void 0!==e[n]&&t.call(e[n],n,e[n])&&a.push(e[n]);else for(;i7&&B(e)instanceof Date)return!0;if((e=e.replace(/\D/g,"")).length>7){var n=e.substr(4,2),i=e.substr(6,2);(e=B(e)).getMonth()==n-1&&e.getDate()==i&&(t=!0)}}return t},stopEvent:function(e){e||(e=window.event);return e.cancelBubble=!0,e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},selectRange:V,debounce:L,throttle:function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return x(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),L(e,t,{leading:i,maxWait:t,trailing:o})},escapeHtml:H,unescapeHtml:z,string:function(e){return new function(e){this.value=e,this.toString=function(){return this.value},this.format=function(){for(var e=[],t=0,n=arguments.length;t.5?l/(2-a-r):l/(a+r),a){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=u(e,360),t=u(t,100),n=u(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=r(l,s,e+1/3),o=r(l,s,e),a=r(l,s,e-1/3)}return{r:255*i,g:255*o,b:255*a}}return new function(t){this._originalValue=t,t=function(e){var t=void 0;return(t=a.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=a.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=a.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=a.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=a.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=a.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=a.hex8.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:parseInt(t[4]/255,16),format:"hex8"}:(t=a.hex6.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),format:"hex"}:(t=a.hex4.exec(e))?{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),a:parseInt(t[4]+""+t[4],16),format:"hex8"}:!!(t=a.hex3.exec(e))&&{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),format:"hex"}}(t),this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a||1,this._format=t.format,this._hex=l(this.r)+l(this.g)+l(this.b),this.getHexValue=function(){return this._hex},this.lighten=function(t){t=0===t?0:t||10;var n,i=c(this.r,this.g,this.b);return i.l+=t/100,i.l=Math.min(1,Math.max(0,i.l)),i.h=360*i.h,e("rgba("+s((n=d(i.h,r(i.s),r(i.l))).r)+", "+s(n.g)+", "+s(n.b)+", "+this.a+")")},this.darken=function(t){t=0===t?0:t||10;var n,i=c(this.r,this.g,this.b);return i.l-=t/100,i.l=Math.min(1,Math.max(0,i.l)),i.h=360*i.h,e("rgba("+s((n=d(i.h,r(i.s),r(i.l))).r)+", "+s(n.g)+", "+s(n.b)+", "+this.a+")")},this.getBrightness=function(){return(299*this.r+587*this.g+114*this.b)/1e3},this.isDark=function(){return this.getBrightness()<128},this.isLight=function(){return!this.isDark()},this.getHsl=function(){var e=c(this.r,this.g,this.b);return e.l=Math.min(1,Math.max(0,e.l)),e.h=360*e.h,{h:e.h,s:e.s,l:e.l}}}(t)}}}(),"object"===("undefined"==typeof module?"undefined":_typeof(module))&&"object"===_typeof(module.exports)?module.exports=f:e.ax5=f}).call("undefined"!=typeof window?window:void 0),ax5.def={},ax5.info.errorMsg.ax5dialog={501:"Duplicate call error"},ax5.info.errorMsg.ax5picker={401:"Can not find target element",402:"Can not find boundID",501:"Can not find content key"},ax5.info.errorMsg["single-uploader"]={460:"There are no files to be uploaded.",461:"There is no uploaded files."},ax5.info.errorMsg.ax5calendar={401:"Can not find target element"},ax5.info.errorMsg.ax5formatter={401:"Can not find target element",402:"Can not find boundID",501:"Can not find pattern"},ax5.info.errorMsg.ax5menu={501:"Can not find menu item"},ax5.info.errorMsg.ax5select={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},ax5.info.errorMsg.ax5combobox={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},function(){"use strict";var e,t,n,i,o,a,r=/^\s*|\s*$/g;(Object.keys||(Object.keys=(e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),i=(n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(o){if("object"!==(void 0===o?"undefined":_typeof(o))&&("function"!=typeof o||null===o))throw new TypeError("type err");var a,r,s=[];for(a in o)e.call(o,a)&&s.push(a);if(t)for(r=0;r>>0;if("function"!=typeof e)throw TypeError();var i,o=arguments[1];for(i=0;in));i+=1);return e.removeRule(0),r};document.querySelectorAll=function(e){return t(e,1/0)},document.querySelector=function(e){return t(e,1)[0]||null}}}(),String.prototype.trim||(String.prototype.trim=function(){return this.replace(r,"")}),window.JSON||(window.JSON={parse:function(e){return new Function("","return "+e)()},stringify:(a=/["]/g,o=function(e){var t,n,i;switch(t=void 0===e?"undefined":_typeof(e)){case"string":return'"'+e.replace(a,'\\"')+'"';case"number":case"boolean":return e.toString();case"undefined":return"undefined";case"function":return'""';case"object":if(!e)return"null";if(t="",e.splice){for(n=0,i=e.length;n=9)return!1;var e=Array.prototype.splice;Array.prototype.splice=function(){var t=Array.prototype.slice.call(arguments);return void 0===t[1]&&(t[1]=this.length-t[0]),e.apply(this,t)}}(),function(){var e=Array.prototype.slice;try{e.call(document.documentElement)}catch(t){Array.prototype.slice=function(t,n){if(n=void 0!==n?n:this.length,"[object Array]"===Object.prototype.toString.call(this))return e.call(this,t,n);var i,o,a=[],r=this.length,s=t||0;s=s>=0?s:Math.max(0,r+s);var l="number"==typeof n?Math.min(n,r):r;if(n<0&&(l=r+n),(o=l-s)>0)if(a=new Array(o),this.charAt)for(i=0;i":">",'"':""","'":"'","/":"/"};var c=/\s*/,d=/\s+/,h=/\s*=/,p=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function g(e){this.string=e,this.tail=e,this.pos=0}function _(e,t){this.view=e,this.cache={".":this.view,"@each":function(){var e=[];for(var t in this)e.push({"@key":t,"@value":this[t]});return e}},this.parent=t}function m(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},_.prototype.push=function(e){return new _(e,this)},_.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var o,r,s=this,l=!1;s;){if(e.indexOf(".")>0)for(t=s.view,o=e.split("."),r=0;null!=t&&r0?o[o.length-1][4]:n;break;default:i.push(t)}return n}(function(e){for(var t,n,i=[],o=0,a=e.length;o"===a?r=this.renderPartial(o,t,n,i):"&"===a?r=this.unescapedValue(o,t):"name"===a?r=this.escapedValue(o,t):"text"===a&&(r=this.rawValue(o)),void 0!==r&&(s+=r);return s},m.prototype.renderSection=function(e,t,o,a){var r=this,s="",l=t.lookup(e[1]);if(l){if(n(l))for(var u=0,c=l.length;u"'\/]/g,function(e){return u[e]})},e.Scanner=g,e.Context=_,e.Writer=m}),function(){var e=ax5.ui,t=ax5.util,n=void 0;e.addClass({className:"mask"},function(){var i,o=this;this.instanceId=ax5.getGuid(),this.config={theme:"",target:jQuery(document.body).get(0),animateTime:250},this.maskContent="",this.status="off",i=this.config;var a=function(e,t){return e&&e.onStateChanged?e.onStateChanged.call(t,t):this.onStateChanged&&this.onStateChanged.call(t,t),e=null,t=null,!0},r=function(e){this.maskContent=e};this.init=function(){this.onStateChanged=i.onStateChanged,this.onClick=i.onClick,this.config.content&&r.call(this,this.config.content)},this.open=function(e){"on"===this.status&&this.close(),e&&e.content&&r.call(this,e.content),e&&void 0===e.templateName&&(e.templateName="defaultMask"),o.maskConfig=jQuery.extend(!0,{},this.config,e);var t=o.maskConfig,i=t.target,s=jQuery(i),l="ax-mask-"+ax5.getGuid(),u=void 0,c={},d={},h=t.templateName,p=function(e){return void 0===e.templateName&&(e.templateName="defaultMask"),n.tmpl.get.call(this,e.templateName,e)}({theme:t.theme,maskId:l,body:this.maskContent,templateName:h});return jQuery(document.body).append(p),i&&i!==jQuery(document.body).get(0)&&(c={position:t.position||"absolute",left:s.offset().left,top:s.offset().top,width:s.outerWidth(),height:s.outerHeight()},s.addClass("ax-masking"),jQuery(window).on("resize.ax5mask-"+this.instanceId,function(e){this.align()}.bind(this))),void 0!==o.maskConfig.zIndex&&(c["z-index"]=o.maskConfig.zIndex),this.$mask=u=jQuery("#"+l),this.$target=s,this.status="on",u.css(c),t.onClick&&u.on("click",function(e){d={self:o,state:"open",type:"click"},o.maskConfig.onClick.call(d,d)}),a.call(this,null,{self:this,state:"open"}),e=null,t=null,i=null,s=null,l=null,u=null,c=null,d=null,h=null,p=null,this},this.close=function(e){if(this.$mask){var t=function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),a.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)};e?setTimeout(function(){t.call(this)}.bind(this),e):t.call(this)}return this},this.fadeOut=function(){return this.$mask&&(this.$mask.addClass("fade-out"),setTimeout(function(){(function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),a.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)}).call(this)}.bind(this),i.animateTime)),this},this.align=function(){if(this.maskConfig&&this.maskConfig.target&&this.maskConfig.target!==jQuery(document.body).get(0))try{var e={position:this.maskConfig.position||"absolute",left:this.$target.offset().left,top:this.$target.offset().top,width:this.$target.outerWidth(),height:this.$target.outerHeight()};this.$mask.css(e)}catch(e){}return this},this.pullRequest=function(){console.log("test pullRequest01"),console.log("test pullRequest02")},this.main=function(){e.mask_instance=e.mask_instance||[],e.mask_instance.push(this),arguments&&t.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),n=ax5.ui.mask}(),function(){var e=ax5.ui.mask;e.tmpl={defaultMask:function(e){return'\n
\n
\n
\n
\n {{{body}}}\n
\n
\n
\n '},get:function(t,n,i){return ax5.mustache.render(e.tmpl[t].call(this,i),n)}}}(),function(){var e=ax5.ui,t=ax5.util,n=void 0;e.addClass({className:"modal"},function(){var i,o=this,a={mousedown:ax5.info.supportTouch?"touchstart":"mousedown",mousemove:ax5.info.supportTouch?"touchmove":"mousemove",mouseup:ax5.info.supportTouch?"touchend":"mouseup"},r=function(e){var t=e;return"changedTouches"in e&&e.changedTouches&&(t=e.changedTouches[0]),{clientX:t.clientX,clientY:t.clientY}};this.instanceId=ax5.getGuid(),this.config={id:"ax5-modal-"+this.instanceId,position:{left:"center",top:"middle",margin:10},minimizePosition:"bottom-right",clickEventName:"ontouchstart"in document.documentElement?"touchstart":"click",theme:"default",width:300,height:400,closeToEsc:!0,disableDrag:!1,disableResize:!1,animateTime:250,iframe:!1},this.activeModal=null,this.watingModal=!1,this.$={},i=this.config;var s=function(e,t){var n={resize:function(t){e&&e.onResize?e.onResize.call(t,t):this.onResize&&this.onResize.call(t,t)},move:function(){}};return t.state in n&&n[t.state].call(this,t),e&&e.onStateChanged?e.onStateChanged.call(t,t):this.onStateChanged&&this.onStateChanged.call(t,t),!0},l=function(e,i){var l=void 0;jQuery(document.body).append(function(e,t){var i={modalId:e,theme:t.theme,header:t.header,fullScreen:t.fullScreen?"fullscreen":"",styles:"",iframe:t.iframe,iframeLoadingMsg:t.iframeLoadingMsg,disableResize:t.disableResize};return t.zIndex&&(i.styles+="z-index:"+t.zIndex+";"),t.absolute&&(i.styles+="position:absolute;"),i.iframe&&"string"==typeof i.iframe.param&&(i.iframe.param=ax5.util.param(i.iframe.param)),n.tmpl.get.call(this,"content",i,{})}.call(this,e.id,e)),this.activeModal=jQuery("#"+e.id),this.$={root:this.activeModal,header:this.activeModal.find('[data-modal-els="header"]'),body:this.activeModal.find('[data-modal-els="body"]')},e.iframe?(this.$["iframe-wrap"]=this.activeModal.find('[data-modal-els="iframe-wrap"]'),this.$.iframe=this.activeModal.find('[data-modal-els="iframe"]'),this.$["iframe-form"]=this.activeModal.find('[data-modal-els="iframe-form"]'),this.$["iframe-loading"]=this.activeModal.find('[data-modal-els="iframe-loading"]')):this.$["body-frame"]=this.activeModal.find('[data-modal-els="body-frame"]'),this.align(),l={self:this,id:e.id,theme:e.theme,width:e.width,height:e.height,state:"open",$:this.$},e.iframe&&(this.$["iframe-wrap"].css({height:e.height}),this.$.iframe.css({height:e.height}),this.$["iframe-form"].attr({method:e.iframe.method}),this.$["iframe-form"].attr({target:e.id+"-frame"}),this.$["iframe-form"].attr({action:e.iframe.url}),this.$.iframe.on("load",function(){l.state="load",e.iframeLoadingMsg&&this.$["iframe-loading"].hide(),s.call(this,e,l)}.bind(this)),e.iframeLoadingMsg||this.$.iframe.show(),this.$["iframe-form"].submit()),i&&i.call(l,l),this.watingModal||s.call(this,e,l),e.closeToEsc&&jQuery(window).bind("keydown.ax-modal",function(e){c.call(this,e||window.event)}.bind(this)),jQuery(window).bind("resize.ax-modal",function(e){this.align(null,e||window.event)}.bind(this)),this.$.header.off(a.mousedown).off("dragstart").on(a.mousedown,function(n){var i=t.findParentNode(n.target,function(e){if(e.getAttribute("data-modal-header-btn"))return!0});e.isFullScreen||i||1==e.disableDrag||(o.mousePosition=r(n),h.on.call(o)),i&&u.call(o,n||window.event,e)}).on("dragstart",function(e){return t.stopEvent(e.originalEvent),!1}),this.activeModal.off(a.mousedown).off("dragstart").on(a.mousedown,"[data-ax5modal-resizer]",function(t){if(e.disableDrag||e.isFullScreen)return!1;o.mousePosition=r(t),p.on.call(o,this.getAttribute("data-ax5modal-resizer"))}).on("dragstart",function(e){return t.stopEvent(e.originalEvent),!1})},u=function(e,n,i,o,a){var r=void 0;e.srcElement&&(e.target=e.srcElement),(o=t.findParentNode(e.target,function(e){if(e.getAttribute("data-modal-header-btn"))return!0}))&&(r={self:this,key:a=o.getAttribute("data-modal-header-btn"),value:n.header.btns[a],dialogId:n.id,btnTarget:o},n.header.btns[a].onClick&&n.header.btns[a].onClick.call(r,a)),r=null,n=null,o=null,a=null},c=function(e){e.keyCode==ax5.info.eventKeys.ESC&&this.close()},d={"top-left":function(){this.align({left:"left",top:"top"})},"top-right":function(){this.align({left:"right",top:"top"})},"bottom-left":function(){this.align({left:"left",top:"bottom"})},"bottom-right":function(){this.align({left:"right",top:"bottom"})},"center-middle":function(){this.align({left:"center",top:"middle"})}},h={on:function(){var e=this.activeModal.css("z-index"),t=this.activeModal.offset(),n={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()};jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),o.__dx=0,o.__dy=0,o.resizerBg=jQuery('
'),o.resizer=jQuery('
'),o.resizerBg.css({zIndex:e}),o.resizer.css({left:t.left,top:t.top,width:n.width,height:n.height,zIndex:e+1}),jQuery(document.body).append(o.resizerBg).append(o.resizer),o.activeModal.addClass("draged"),jQuery(document.body).on(a.mousemove+".ax5modal-move-"+this.instanceId,function(e){o.resizer.css(function(e){return o.__dx=e.clientX-o.mousePosition.clientX,o.__dy=e.clientY-o.mousePosition.clientY,{left:t.left+o.__dx,top:t.top+o.__dy}}(e))}).on(a.mouseup+".ax5modal-move-"+this.instanceId,function(e){h.off.call(o)}).on("mouseleave.ax5modal-move-"+this.instanceId,function(e){h.off.call(o)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").on("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var e=this.resizer.offset();this.modalConfig.absolute||(e.left-=jQuery(document).scrollLeft(),e.top-=jQuery(document).scrollTop()),this.activeModal.css(e),this.modalConfig.left=e.left,this.modalConfig.top=e.top,e=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,jQuery(document.body).off(a.mousemove+".ax5modal-move-"+this.instanceId).off(a.mouseup+".ax5modal-move-"+this.instanceId).off("mouseleave.ax5modal-move-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").off("selectstart"),s.call(this,o.modalConfig,{self:this,state:"move"})}},p={on:function(e){var t=this.activeModal.css("z-index"),n=this.activeModal.offset(),i={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()},r=(jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),{top:function(e){return l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),{left:n.left,top:n.top+o.__dy,width:i.width,height:i.height-2*o.__dy}):e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),{left:n.left+o.__dy,top:n.top+o.__dy,width:i.width-2*o.__dy,height:i.height-2*o.__dy}):{left:n.left,top:n.top+o.__dy,width:i.width,height:i.height-o.__dy}},bottom:function(e){return l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey?(l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left,top:n.top-o.__dy,width:i.width,height:i.height+2*o.__dy}):e.altKey?(l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left-o.__dy,top:n.top-o.__dy,width:i.width+2*o.__dy,height:i.height+2*o.__dy}):{left:n.left,top:n.top,width:i.width,height:i.height+o.__dy}},left:function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),e.shiftKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top,width:i.width-2*o.__dx,height:i.height}):e.altKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dx,width:i.width-2*o.__dx,height:i.height-2*o.__dx}):{left:n.left+o.__dx,top:n.top,width:i.width-o.__dx,height:i.height}},right:function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),e.shiftKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top,width:i.width+2*o.__dx,height:i.height}):e.altKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top-o.__dx,width:i.width+2*o.__dx,height:i.height+2*o.__dx}):{left:n.left,top:n.top,width:i.width+o.__dx,height:i.height}},"top-left":function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey||e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dy,width:i.width-2*o.__dx,height:i.height-2*o.__dy}):(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dy,width:i.width-o.__dx,height:i.height-o.__dy})},"top-right":function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey||e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top+o.__dy,width:i.width+2*o.__dx,height:i.height-2*o.__dy}):{left:n.left,top:n.top+o.__dy,width:i.width+o.__dx,height:i.height-o.__dy}},"bottom-left":function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey||e.altKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left+o.__dx,top:n.top-o.__dy,width:i.width-2*o.__dx,height:i.height+2*o.__dy}):{left:n.left+o.__dx,top:n.top,width:i.width-o.__dx,height:i.height+o.__dy}},"bottom-right":function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey||e.altKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left-o.__dx,top:n.top-o.__dy,width:i.width+2*o.__dx,height:i.height+2*o.__dy}):{left:n.left,top:n.top,width:i.width+o.__dx,height:i.height+o.__dy}}}),s=100,l=100,u={top:"row-resize",bottom:"row-resize",left:"col-resize",right:"col-resize","top-left":"nwse-resize","top-right":"nesw-resize","bottom-left":"nesw-resize","bottom-right":"nwse-resize"};o.__dx=0,o.__dy=0,o.resizerBg=jQuery('
'),o.resizer=jQuery('
'),o.resizerBg.css({zIndex:t,cursor:u[e]}),o.resizer.css({left:n.left,top:n.top,width:i.width,height:i.height,zIndex:t+1,cursor:u[e]}),jQuery(document.body).append(o.resizerBg).append(o.resizer),o.activeModal.addClass("draged"),jQuery(document.body).bind(a.mousemove+".ax5modal-resize-"+this.instanceId,function(t){o.resizer.css(function(t){return o.__dx=t.clientX-o.mousePosition.clientX,o.__dy=t.clientY-o.mousePosition.clientY,r[e](t)}(t))}).bind(a.mouseup+".ax5modal-resize-"+this.instanceId,function(e){p.off.call(o)}).bind("mouseleave.ax5modal-resize-"+this.instanceId,function(e){p.off.call(o)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").bind("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var e=this.resizer.offset();jQuery.extend(e,{width:this.resizer.width(),height:this.resizer.height()}),this.modalConfig.absolute||(e.left-=jQuery(document).scrollLeft(),e.top-=jQuery(document).scrollTop()),this.activeModal.css(e),this.modalConfig.left=e.left,this.modalConfig.top=e.top,this.modalConfig.width=e.width,this.modalConfig.height=e.height,this.$.body.css({height:e.height-this.modalConfig.headerHeight}),this.modalConfig.iframe&&(this.$["iframe-wrap"].css({height:e.height-this.modalConfig.headerHeight}),this.$.iframe.css({height:e.height-this.modalConfig.headerHeight})),e=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,s.call(this,o.modalConfig,{self:this,state:"resize"}),jQuery(document.body).unbind(a.mousemove+".ax5modal-resize-"+this.instanceId).unbind(a.mouseup+".ax5modal-resize-"+this.instanceId).unbind("mouseleave.ax5modal-resize-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").unbind("selectstart")}};this.init=function(){this.onStateChanged=i.onStateChanged,this.onResize=i.onResize},this.open=function(e,t,n){return void 0===n&&(n=0),this.activeModal?n<3?(this.watingModal=!0,setTimeout(function(){this.open(e,t,n+1)}.bind(this),i.animateTime)):this.watingModal=!1:(e=o.modalConfig=jQuery.extend(!0,{},i,e),l.call(this,e,t),this.watingModal=!1),this},this.close=function(e){var n=void 0,a=void 0;return this.activeModal&&(n=o.modalConfig,this.activeModal.addClass("destroy"),jQuery(window).unbind("keydown.ax-modal"),jQuery(window).unbind("resize.ax-modal"),setTimeout(function(){if(n.iframe){var i=this.$.iframe;if(i){var o=i.get(0),r=o.contentDocument?o.contentDocument:o.contentWindow.document;try{$(r.body).children().each(function(){$(this).remove()})}catch(e){}r.innerHTML="",i.attr("src","about:blank").remove(),window.CollectGarbage&&window.CollectGarbage()}}this.activeModal.remove(),this.activeModal=null,this.watingModal||s.call(this,n,{self:this,state:"close"}),e&&t.isFunction(e.callback)&&(a={self:this,id:n.id,theme:n.theme,width:n.width,height:n.height,state:"close",$:this.$},e.callback.call(a,a))}.bind(this),i.animateTime)),this.minimized=!1,this},this.minimize=function(e){if(!0!==this.minimized){var t=o.modalConfig;void 0===e&&(e=i.minimizePosition),this.minimized=!0,this.$.body.hide(),o.modalConfig.originalHeight=t.height,o.modalConfig.height=0,d[e].call(this),s.call(this,t,{self:this,state:"minimize"})}return this},this.restore=function(){var e=o.modalConfig;return this.minimized&&(this.minimized=!1,this.$.body.show(),o.modalConfig.height=o.modalConfig.originalHeight,o.modalConfig.originalHeight=void 0,this.align({left:"center",top:"middle"}),s.call(this,e,{self:this,state:"restore"})),this},this.css=function(e){return this.activeModal&&!o.fullScreen&&(this.activeModal.css(e),void 0!==e.width&&(o.modalConfig.width=e.width),void 0!==e.height&&(o.modalConfig.height=e.height),this.align()),this},this.setModalConfig=function(e){return o.modalConfig=jQuery.extend({},o.modalConfig,e),this.align(),this},this.align=function(e,n){if(!this.activeModal)return this;var i,a=o.modalConfig,r={width:a.width,height:a.height};return(a.isFullScreen=void 0!==(i=a.fullScreen)&&(t.isFunction(i)?i():void 0))?(a.header&&this.$.header.show(),a.header?(a.headerHeight=this.$.header.outerHeight(),r.height+=a.headerHeight):a.headerHeight=0,r.width=jQuery(window).width(),r.height=a.height,r.left=0,r.top=0):(a.header&&this.$.header.show(),e&&jQuery.extend(!0,a.position,e),a.header?(a.headerHeight=this.$.header.outerHeight(),r.height+=a.headerHeight):a.headerHeight=0,"left"==a.position.left?r.left=a.position.margin||0:"right"==a.position.left?r.left=jQuery(window).width()-r.width-(a.position.margin||0):"center"==a.position.left?r.left=jQuery(window).width()/2-r.width/2:r.left=a.position.left||0,"top"==a.position.top?r.top=a.position.margin||0:"bottom"==a.position.top?r.top=jQuery(window).height()-r.height-(a.position.margin||0):"middle"==a.position.top?r.top=jQuery(window).height()/2-r.height/2:r.top=a.position.top||0,r.left<0&&(r.left=0),r.top<0&&(r.top=0),a.absolute&&(r.top+=jQuery(window).scrollTop(),r.left+=jQuery(window).scrollLeft())),this.activeModal.css(r),this.$.body.css({height:r.height-(a.headerHeight||0)}),a.iframe&&(this.$["iframe-wrap"].css({height:r.height-a.headerHeight}),this.$.iframe.css({height:r.height-a.headerHeight})),this},this.main=function(){e.modal_instance=e.modal_instance||[],e.modal_instance.push(this),arguments&&t.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),n=ax5.ui.modal}(),function(){var e=ax5.ui.modal;e.tmpl={content:function(){return' \n
\n {{#header}}\n
\n {{{title}}}\n {{#btns}}\n
\n {{#@each}}\n \n {{/@each}}\n
\n {{/btns}}\n
\n {{/header}}\n
\n {{#iframe}}\n
\n
{{{iframeLoadingMsg}}}
\n \n
\n
\n \n {{#param}}\n {{#@each}}\n \n {{/@each}}\n {{/param}}\n
\n {{/iframe}}\n {{^iframe}}\n
\n {{/iframe}}\n
\n {{^disableResize}}\n
\n
\n
\n
\n
\n
\n
\n
\n {{/disableResize}}\n
\n '},get:function(t,n,i){return ax5.mustache.render(e.tmpl[t].call(this,i),n)}}}(),function(e){e(["jquery"],function(e){return function(){var t,n,i,o=0,a={error:"error",info:"info",success:"success",warning:"warning"},r={clear:function(n,i){var o=d();t||s(o);l(n,o,i)||function(n){for(var i=t.children(),o=i.length-1;o>=0;o--)l(e(i[o]),n)}(o)},remove:function(n){var i=d();t||s(i);if(n&&0===e(":focus",n).length)return void h(n);t.children().length&&t.remove()},error:function(e,t,n){return c({type:a.error,iconClass:d().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:s,info:function(e,t,n){return c({type:a.info,iconClass:d().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return c({type:a.success,iconClass:d().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.2",warning:function(e,t,n){return c({type:a.warning,iconClass:d().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return r;function s(n,i){return n||(n=d()),(t=e("#"+n.containerId)).length?t:(i&&(t=function(n){return(t=e("
").attr("id",n.containerId).addClass(n.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(e(n.target)),t}(n)),t)}function l(t,n,i){var o=!(!i||!i.force)&&i.force;return!(!t||!o&&0!==e(":focus",t).length)&&(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0)}function u(e){n&&n(e)}function c(n){var a=d(),r=n.iconClass||a.iconClass;if(void 0!==n.optionsOverride&&(a=e.extend(a,n.optionsOverride),r=n.optionsOverride.iconClass||r),!function(e,t){if(e.preventDuplicates){if(t.message===i)return!0;i=t.message}return!1}(a,n)){o++,t=s(a,!0);var l=null,c=e("
"),p=e("
"),f=e("
"),g=e("
"),_=e(a.closeHtml),m={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:o,state:"visible",startTime:new Date,options:a,map:n};return n.iconClass&&c.addClass(a.toastClass).addClass(r),n.title&&(p.append(a.escapeHtml?y(n.title):n.title).addClass(a.titleClass),c.append(p)),n.message&&(f.append(a.escapeHtml?y(n.message):n.message).addClass(a.messageClass),c.append(f)),a.closeButton&&(_.addClass("toast-close-button").attr("role","button"),c.prepend(_)),a.progressBar&&(g.addClass("toast-progress"),c.prepend(g)),a.newestOnTop?t.prepend(c):t.append(c),c.hide(),c[a.showMethod]({duration:a.showDuration,easing:a.showEasing,complete:a.onShown}),a.timeOut>0&&(l=setTimeout(x,a.timeOut),m.maxHideTime=parseFloat(a.timeOut),m.hideEta=(new Date).getTime()+m.maxHideTime,a.progressBar&&(m.intervalId=setInterval(C,10))),function(){c.hover(w,b),!a.onclick&&a.tapToDismiss&&c.click(x);a.closeButton&&_&&_.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),x(!0)});a.onclick&&c.click(function(e){a.onclick(e),x()})}(),u(v),a.debug&&console&&console.log(v),c}function y(e){return null==e&&(e=""),new String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function x(t){var n=t&&!1!==a.closeMethod?a.closeMethod:a.hideMethod,i=t&&!1!==a.closeDuration?a.closeDuration:a.hideDuration,o=t&&!1!==a.closeEasing?a.closeEasing:a.hideEasing;if(!e(":focus",c).length||t)return clearTimeout(m.intervalId),c[n]({duration:i,easing:o,complete:function(){h(c),a.onHidden&&"hidden"!==v.state&&a.onHidden(),v.state="hidden",v.endTime=new Date,u(v)}})}function b(){(a.timeOut>0||a.extendedTimeOut>0)&&(l=setTimeout(x,a.extendedTimeOut),m.maxHideTime=parseFloat(a.extendedTimeOut),m.hideEta=(new Date).getTime()+m.maxHideTime)}function w(){clearTimeout(l),m.hideEta=0,c.stop(!0,!0)[a.showMethod]({duration:a.showDuration,easing:a.showEasing})}function C(){var e=(m.hideEta-(new Date).getTime())/m.maxHideTime*100;g.width(e+"%")}}function d(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},r.options)}function h(e){t||(t=s()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),i=void 0))}}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,i,o="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i.splice(t,1))}}),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function r(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,i=null,r=null,s=function(){e.clientWidth!==i&&d()},l=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",i=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function d(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this);case"biznum":var n,i,o,a=new Array(1,3,7,1,3,7,1,3,5,1),r=0,s=this.replace(/-/gi,"");for(n=0;n<=7;n++)r+=a[n]*s.charAt(n);return i=(i="0"+a[8]*s.charAt(8)).substring(i.length-2,i.length),o=(10-(r+=Math.floor(i.charAt(0))+Math.floor(i.charAt(1)))%10)%10,Math.floor(s.charAt(9))==o&&s.replace(/(\d{3})(\d{2})(\d{5})/,"$1-$2-$3");case"uniqid":return/^[a-z][a-z0-9_]{2,19}$/g.test(this)}},Number.prototype.numberFormat=function(){if(0==this)return 0;for(var e=/(^[+-]?\d+)(\d{3})/,t=this+"";e.test(t);)t=t.replace(e,"$1,$2");return t},String.prototype.numberFormat=function(){return isNaN(parseFloat(this))?"0":parseFloat(this).numberFormat()},String.prototype.unNumberFormat=function(){var e=this;if("number"==typeof e)return e;e=(e=(""+e).replace(/,/gi,"")).replace(/(^\s*)|(\s*$)/g,"");var t=new Number(e);return isNaN(t)?e:t},Number.prototype.unNumberFormat=function(){return this},Date.prototype.dateFormat=function(e){if(!this.valueOf())return" ";if(!e)return this;var t=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],n=["일","월","화","수","목","금","토"],i=this;return e.replace(/(yyyy|yy|MM|dd|E|hh|mm|ss|a\/p)/gi,function(e){switch(e){case"yyyy":return i.getFullYear();case"yy":return(i.getFullYear()%1e3).zf(2);case"MM":return(i.getMonth()+1).zf(2);case"dd":return i.getDate().zf(2);case"E":return t[i.getDay()];case"e":return n[i.getDay()];case"HH":return i.getHours().zf(2);case"hh":return((h=i.getHours()%12)?h:12).zf(2);case"mm":return i.getMinutes().zf(2);case"ss":return i.getSeconds().zf(2);case"a/p":return i.getHours()<12?"오전":"오후";default:return e}})},String.prototype.string=function(e){for(var t="",n=0;n++0&&e.on("submit",function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'로딩중',baseZ:1e4,overlayCSS:{opacity:0}})})}),$(function(){$(document).ajaxError(function(e,t,n){var i="알수없는 오류가 발생하였습니다.";void 0!==t.responseJSON&&void 0!==t.responseJSON.message?i=t.responseJSON.message:500==t.status?i="서버 코드 오류가 발생하였습니다.\n관리자에게 문의하세요":401==t.status&&(i="해당 명령을 실행할 권한이 없습니다."),toastr.error(i,"오류 발생")}).ajaxStart(function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'로딩중',baseZ:1e4,overlayCSS:{opacity:0}})}).ajaxComplete(function(){$.unblockUI()})}),$(function(){$(document).on("change","[data-checkbox]",function(){var e=$(this),t=null!=e.data("checkbox-all"),n=e.data("checkbox"),i=e.prop("checked"),o=t?e:$('[data-checkbox="'+n+'"][data-checkbox-all]');t?$('[data-checkbox="'+n+'"]').prop("checked",i):o.prop("checked",$('[data-checkbox="'+n+'"]').not("[data-checkbox-all]").length==$('[data-checkbox="'+n+'"]:checked').not("[data-checkbox-all]").length)})}),$(function(){$(document).on("keypress","[data-number-format]",function(e){$(this).val($(this).val().trim().unNumberFormat().numberFormat())})}),$(function(){$(document).on("keypress","[data-number-only]",function(e){8!=e.which&&0!=e.which&&45!=e.which&&(e.which<48||e.which>57)&&e.preventDefault()})}),$(function(){$(document).on("keyup","textarea[data-autosize]",function(e){autosize($(this))}),$("textarea[data-autosize]").keyup()}),$(function(){$("body").on("keypress",'[data-regex="phone-number"]',function(e){8!=e.which&&0!=e.which&&45!=e.which&&(e.which<48||e.which>57)&&e.preventDefault()}).on("blur",'[data-regex="phone-number"]',function(e){if(""!=$(this).val()){var t=$(this).val().regex("phone");if(!1===t)return toastr.error("유효하지 않은 전화번호 입니다."),$(this).val(""),void $(this).focus();$(this).val(t)}}),$("body").on("blur",'[data-regex="tel-number"]',function(e){if(""!=$(this).val()){var t=$(this).val().regex("tel");if(!1===t)return toastr.error("유효하지 않은 전화번호 입니다."),$(this).val(""),void $(this).focus();$(this).val(t)}}),$("body").on("blur",'[data-regex="email-address"]',function(e){""!=$(this).val()&&($(this).val().regex("email")||(toastr.error("유효하지 않은 이메일주소 입니다."),$(this).val(""),$(this).focus()))})}),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(t){e(t).on("click.bs.dropdown",this.toggle)};function o(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function a(i){i&&3===i.which||(e(t).remove(),e(n).each(function(){var t=e(this),n=o(t),a={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(n[0],i.target)||(n.trigger(i=e.Event("hide.bs.dropdown",a)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",a)))))}))}i.VERSION="3.3.7",i.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var i=o(n),r=i.hasClass("open");if(a(),!r){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",a);var s={relatedTarget:this};if(i.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var a=o(i),r=a.hasClass("open");if(!r&&27!=t.which||r&&27==t.which)return 27==t.which&&a.find(n).trigger("focus"),i.trigger("click");var s=a.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(t.target);38==t.which&&l>0&&l--,40==t.which&&l',onClick:function(){APP.MODAL.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal.css(t)},align:function(e){APP.modal.align(e)},close:function(e){APP.modal.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal.minimize()},maximize:function(){APP.modal.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),APP.MODAL2=function(){var e={width:400,height:400,position:{left:"center",top:"middle"}},t=$.extend(!0,{},e,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK2.open():"close"===this.state&&APP.MASK2.close()},animateTime:100,zIndex:2001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'',onClick:function(){APP.MODAL2.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal2.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal2.css(t)},align:function(e){APP.modal2.align(e)},close:function(e){APP.modal2.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal2.minimize()},maximize:function(){APP.modal2.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{};e.ui.version="1.12.1";var t,n=0,i=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,o,a;for(a=0;null!=(o=n[a]);a++)try{(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var o,a,r,s={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},o=e[l][t],a=e[l][t]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(r=new n).options=e.widget.extend({},r.options),e.each(i,function(t,i){e.isFunction(i)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,a=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=a,t}}():s[t]=i}),a.prototype=e.widget.extend(r,{widgetEventPrefix:o&&r.widgetEventPrefix||t},s,{constructor:a,namespace:l,widgetName:t,widgetFullName:u}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,a,n._proto)}),delete o._childConstructors):n._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var n,o,a=i.call(arguments,1),r=0,s=a.length;r",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,a,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},i=t.split("."),t=i.shift(),i.length){for(o=r[t]=e.widget.extend({},this.options[t]),a=0;a
"),a=o.children()[0];return e("body").append(o),n=a.offsetWidth,o.css("overflow","scroll"),n===(i=a.offsetWidth)&&(i=o[0].clientWidth),o.remove(),t=n-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===n||"auto"===n&&t.width0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};hn(i(l),i(c))?d.important="horizontal":d.important="vertical",t.using.call(this,e,d)}),r.offset(e.extend(S,{using:a}))})},e.ui.position={fit:{left:function(e,t){var i,o=t.within,a=o.isWindow?o.scrollLeft:o.offset.left,r=o.width,s=e.left-t.collisionPosition.marginLeft,l=a-s,u=s+t.collisionWidth-r-a;t.collisionWidth>r?l>0&&u<=0?(i=e.left+l+t.collisionWidth-r-a,e.left+=l-i):e.left=u>0&&l<=0?a:l>u?a+r-t.collisionWidth:a:l>0?e.left+=l:u>0?e.left-=u:e.left=n(e.left-s,e.left)},top:function(e,t){var i,o=t.within,a=o.isWindow?o.scrollTop:o.offset.top,r=t.within.height,s=e.top-t.collisionPosition.marginTop,l=a-s,u=s+t.collisionHeight-r-a;t.collisionHeight>r?l>0&&u<=0?(i=e.top+l+t.collisionHeight-r-a,e.top+=l-i):e.top=u>0&&l<=0?a:l>u?a+r-t.collisionHeight:a:l>0?e.top+=l:u>0?e.top-=u:e.top=n(e.top-s,e.top)}},flip:{left:function(e,t){var n,o,a=t.within,r=a.offset.left+a.scrollLeft,s=a.width,l=a.isWindow?a.scrollLeft:a.offset.left,u=e.left-t.collisionPosition.marginLeft,c=u-l,d=u+t.collisionWidth-s-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];c<0?((n=e.left+h+p+f+t.collisionWidth-s-r)<0||n0&&((o=e.left-t.collisionPosition.marginLeft+h+p+f-l)>0||i(o)0&&((n=e.top-t.collisionPosition.marginTop+h+p+f-l)>0||i(n)=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&e=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,n){var i=null,o=!1,a=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,a.widgetName+"-item")===a)return i=e(this),!1}),e.data(t.target,a.widgetName+"-item")===a&&(i=e(t.target)),!!i&&(!(this.options.handle&&!n&&(e(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(o=!0)}),!o))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,n,i){var o,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=e("").appendTo(a)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var n,i,o,a,r=this.options,s=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;n--)if(o=(i=this.items[n]).item[0],(a=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(o===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===o||e.contains(this.placeholder[0],o)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],o))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var i=this,o=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e(n).each(function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&i.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n.each(function(){i.push(e(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,i=this.positionAbs.top,o=i+this.helperProportions.height,a=e.left,r=a+e.width,s=e.top,l=s+e.height,u=this.offset.click.top,c=this.offset.click.left,d="x"===this.options.axis||i+u>s&&i+ua&&t+ce[this.floating?"width":"height"]?p:a0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,i,o,a,r=[],s=[],l=this._connectWith();if(l&&t)for(n=l.length-1;n>=0;n--)for(i=(o=e(l[n],this.document[0])).length-1;i>=0;i--)(a=e.data(o[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&s.push([e.isFunction(a.options.items)?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function u(){r.push(this)}for(s.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=s.length-1;n>=0;n--)s[n][0].each(u);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var n=0;n=0;n--)for(i=(o=e(h[n],this.document[0])).length-1;i>=0;i--)(a=e.data(o[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&(d.push([e.isFunction(a.options.items)?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(n=d.length-1;n>=0;n--)for(r=d[n][1],i=0,u=(s=d[n][0]).length;i=0;n--)(i=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=o.outerWidth(),i.height=o.outerHeight()),a=o.offset(),i.left=a.left,i.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)a=this.containers[n].element.offset(),this.containers[n].containerCache.left=a.left,this.containers[n].containerCache.top=a.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){var n,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,i.placeholder={element:function(){var i=t.currentItem[0].nodeName.toLowerCase(),o=e("<"+i+">",t.document[0]);return t._addClass(o,"ui-sortable-placeholder",n||t.currentItem[0].className)._removeClass(o,"ui-sortable-helper"),"tbody"===i?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("",t.document[0]).appendTo(o)):"tr"===i?t._createTrPlaceholder(t.currentItem,o):"img"===i&&o.attr("src",t.currentItem.attr("src")),n||o.css("visibility","hidden"),o},update:function(e,o){n&&!i.forcePlaceholderSize||(o.height()||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var i=this;t.children().each(function(){e(" ",i.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(t){var n,i,o,a,r,s,l,u,c,d,h=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&e.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(o=1e4,a=null,r=(c=h.floating||this._isFloating(this.currentItem))?"left":"top",s=c?"width":"height",d=c?"pageX":"pageY",i=this.items.length-1;i>=0;i--)e.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[r],u=!1,t[d]-l>this.items[i][s]/2&&(u=!0),Math.abs(t[d]-l)this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),o.grid&&(n=this.originalPageY+Math.round((r-this.originalPageY)/o.grid[1])*o.grid[1],r=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-o.grid[1]:n+o.grid[1]:n,i=this.originalPageX+Math.round((a-this.originalPageX)/o.grid[0])*o.grid[0],a=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-o.grid[0]:i+o.grid[0]:i)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(e,t,n,i){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!i)})},_clear:function(e,t){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,t,n){return function(i){n._trigger(e,i,t._uiHash(t))}}for(this.fromOutside&&!t&&i.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||i.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(i.push(function(e){this._trigger("remove",e,this._uiHash())}),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||i.push(o("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(o("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var n=e(t.target),i=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var n=e(t.target).closest(".ui-menu-item"),i=e(t.currentTarget);n[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var n,i,o,a,r=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,i=this.previousFilter||"",a=!1,o=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),o===i?a=!0:o=i+o,n=this._filterMenuItems(o),(n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(o=String.fromCharCode(t.keyCode),n=this._filterMenuItems(o)),n.length?(this.focus(t,n),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,i,o,a=this,r=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev(),i=e("").data("ui-menu-submenu-caret",!0);a._addClass(i,"ui-menu-icon","ui-icon "+r),n.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",n.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(t=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")}),o=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,i,o;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,i,o,a,r,s;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,o=t.offset().top-this.activeMenu.offset().top-n-i,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),s=t.outerHeight(),o<0?this.activeMenu.scrollTop(a+o):o+s>r&&this.activeMenu.scrollTop(a+o-r+s))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(t),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var i;this.active&&(i="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[t]()),this.focus(n,i)},nextPage:function(t){var n,i,o;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(n=e(this)).offset().top-i-o<0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var n,i,o;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(n=e(this)).offset().top-i+o>0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,i,o=this.element[0].nodeName.toLowerCase(),a="textarea"===o,r="input"===o;this.isMultiLine=a||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[a||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return t=!0,i=!0,void(n=!0);t=!1,i=!1,n=!1;var a=e.ui.keyCode;switch(o.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",o);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",o);break;case a.UP:t=!0,this._keyEvent("previous",o);break;case a.DOWN:t=!0,this._keyEvent("next",o);break;case a.ENTER:this.menu.active&&(t=!0,o.preventDefault(),this.menu.select(o));break;case a.TAB:this.menu.active&&this.menu.select(o);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:n=!0,this._searchTimeout(o)}},keypress:function(i){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var o=e.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:this._move("previousPage",i);break;case o.PAGE_DOWN:this._move("nextPage",i);break;case o.UP:this._keyEvent("previous",i);break;case o.DOWN:this._keyEvent("next",i)}}},input:function(e){if(i)return i=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=e("
    ").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==e.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,n){var i,o;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});o=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:o})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(o.value),(i=n.item.attr("aria-label")||o.value)&&e.trim(i).length&&(this.liveRegion.children().hide(),e("
    ").text(i).appendTo(this.liveRegion))},menuselect:function(t,n){var i=n.item.data("ui-autocomplete-item"),o=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=e("
    ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,i=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(n,i){i(e.ui.autocomplete.filter(t,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,o){i.xhr&&i.xhr.abort(),i.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){o(e)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),i=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||n||i)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length").append(e("
    ").text(n.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var i=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return i.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("
    ").text(n).appendTo(this.liveRegion))}});var r;e.ui.autocomplete;function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=l(e("
    "))}function l(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,u)}function u(){e.datepicker._isDisabledDatepicker(r.inline?r.dpDiv.parent()[0]:r.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function c(t,n){for(var i in e.extend(t,n),n)null==n[i]&&(t[i]=n[i]);return t}e.extend(e.ui,{datepicker:{version:"1.12.1"}}),e.extend(s.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,o,a;o="div"===(i=t.nodeName.toLowerCase())||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),o)).settings=e.extend({},n||{}),"input"===i?this._connectDatepicker(t,a):o&&this._inlineDatepicker(t,a)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?l(e("
    ")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,o,a,r=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),r&&(n.append=e(""+r+""),t[s?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(i=this._get(n,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(o=this._get(n,"buttonText"),a=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"buttonImageOnly")?e("").addClass(this._triggerClass).attr({src:a,alt:o,title:o}):e("").addClass(this._triggerClass).html(a?e("").attr({src:a,alt:o,title:o}):o)),t[s?"before":"after"](n.trigger),n.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,i,o,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(n=0,i=0,o=0;on&&(n=e[o].length,i=o);return i},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,o,a){var r,s,l,u,d,h=this._dialogInst;return h||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e(""),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",h)),c(h.settings,o||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+u,l/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(t){var n,i=e(t),o=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(o.append.remove(),o.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||i.removeClass(this.markerClassName).empty(),r===o&&(r=null))},_enableDatepicker:function(t){var n,i,o=e(t),a=e.data(t,"datepicker");o.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((i=o.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var n,i,o=e(t),a=e.data(t,"datepicker");o.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((i=o.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t-1},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(t){var n,i,o,a,r,s,l;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(o=(i=e.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(c(n.settings,o),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),a=!1,e(t).parents().each(function(){return!(a|="fixed"===e(this).css("position"))}),r={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),r=e.datepicker._checkOffset(n,r,a),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":a?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),n.inline||(s=e.datepicker._get(n,"showAnim"),l=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[s]?n.dpDiv.show(s,e.datepicker._get(n,"showOptions"),l):n.dpDiv[s||"show"](s?l:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,r=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,i=this._getNumberOfMonths(t),o=i[1],a=t.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&u.apply(a.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(n=t.yearshtml,setTimeout(function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),n=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,i){var o=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),u=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?o-r:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+s?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+o>l&&l>o?Math.abs(n.left+o-l):0),n.top-=Math.min(n.top,n.top+a>u&&u>a?Math.abs(a+s):0),n},_findPos:function(t){for(var n,i=this._getInst(t),o=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[o?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,i,o,a,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(r,"showAnim"),i=this._get(r,"duration"),o=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[n]||e.effects[n])?r.dpDiv.hide(n,e.datepicker._get(r,"showOptions"),i,o):r.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,o),n||o(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),i=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===i)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,i){var o=e(t),a=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(a,n+("M"===i?this._get(a,"showCurrentAtPos"):0),i),this._updateDatepicker(a))},_gotoToday:function(t){var n,i=e(t),o=this._getInst(i[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(n=new Date,o.selectedDay=n.getDate(),o.drawMonth=o.selectedMonth=n.getMonth(),o.drawYear=o.selectedYear=n.getFullYear()),this._notifyChange(o),this._adjustDate(i)},_selectMonthYear:function(t,n,i){var o=e(t),a=this._getInst(o[0]);a["selected"+("M"===i?"Month":"Year")]=a["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(o)},_selectDay:function(t,n,i,o){var a,r=e(t);e(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=e("a",o).html(),a.selectedMonth=a.currentMonth=n,a.selectedYear=a.currentYear=i,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var i,o=e(t),a=this._getInst(o[0]);n=null!=n?n:this._formatDate(a),a.input&&a.input.val(n),this._updateAlternate(a),(i=this._get(a,"onSelect"))?i.apply(a.input?a.input[0]:null,[n,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,i,o,a=this._get(t,"altField");a&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),o=this.formatDate(n,i,this._getFormatConfig(t)),e(a).val(o))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var o,a,r,s,l=0,u=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),d=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,h=(i?i.dayNames:null)||this._defaults.dayNames,p=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,f=(i?i.monthNames:null)||this._defaults.monthNames,g=-1,_=-1,m=-1,v=-1,y=!1,x=function(e){var n=o+1-1)for(_=1,m=v;;){if(m<=(a=this._getDaysInMonth(g,_-1)))break;_++,m-=a}if((s=this._daylightSavingAdjust(new Date(g,_-1,m))).getFullYear()!==g||s.getMonth()+1!==_||s.getDate()!==m)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var i,o=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,r=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=function(t){var n=i+112?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,o=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),o===e.selectedMonth&&a===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,n,i,o,a,r,s,l,u,c,d,h,p,f,g,_,m,v,y,x,b,w,C,k,S,I,T,D,E,A,O,B,P,M,R,F,V,L,H,z=new Date,N=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth(),z.getDate())),$=this._get(e,"isRTL"),W=this._get(e,"showButtonPanel"),G=this._get(e,"hideIfNoPrevNext"),j=this._get(e,"navigationAsDateFormat"),q=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),U=this._get(e,"stepMonths"),Y=1!==q[0]||1!==q[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),J=e.drawMonth-K,ee=e.drawYear;if(J<0&&(J+=12,ee--),Q)for(t=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-q[0]*q[1]+1,Q.getDate())),t=Z&&tt;)--J<0&&(J=11,ee--);for(e.drawMonth=J,e.drawYear=ee,n=this._get(e,"prevText"),n=j?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,J-U,1)),this._getFormatConfig(e)):n,i=this._canAdjustMonth(e,-1,ee,J)?""+n+"":G?"":""+n+"",o=this._get(e,"nextText"),o=j?this.formatDate(o,this._daylightSavingAdjust(new Date(ee,J+U,1)),this._getFormatConfig(e)):o,a=this._canAdjustMonth(e,1,ee,J)?""+o+"":G?"":""+o+"",r=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?X:N,r=j?this.formatDate(r,s,this._getFormatConfig(e)):r,l=e.inline?"":"",u=W?"
    "+($?l:"")+(this._isInRange(e,s)?"":"")+($?"":l)+"
    ":"",c=parseInt(this._get(e,"firstDay"),10),c=isNaN(c)?0:c,d=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),g=this._get(e,"monthNamesShort"),_=this._get(e,"beforeShowDay"),m=this._get(e,"showOtherMonths"),v=this._get(e,"selectOtherMonths"),y=this._getDefaultDate(e),x="",w=0;w1)switch(k){case 0:T+=" ui-datepicker-group-first",I=" ui-corner-"+($?"right":"left");break;case q[1]-1:T+=" ui-datepicker-group-last",I=" ui-corner-"+($?"left":"right");break;default:T+=" ui-datepicker-group-middle",I=""}T+="'>"}for(T+="
    "+(/all|left/.test(I)&&0===w?$?a:i:"")+(/all|right/.test(I)&&0===w?$?i:a:"")+this._generateMonthYearHeader(e,J,ee,Z,Q,w>0||k>0,f,g)+"
    ",D=d?"":"",b=0;b<7;b++)D+="";for(T+=D+"",A=this._getDaysInMonth(ee,J),ee===e.selectedYear&&J===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),O=(this._getFirstDayOfMonth(ee,J)-c+7)%7,B=Math.ceil((O+A)/7),P=Y&&this.maxRows>B?this.maxRows:B,this.maxRows=P,M=this._daylightSavingAdjust(new Date(ee,J,1-O)),R=0;R",F=d?"":"",b=0;b<7;b++)V=_?_.apply(e.input?e.input[0]:null,[M]):[!0,""],H=(L=M.getMonth()!==J)&&!v||!V[0]||Z&&MQ,F+="",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);T+=F+""}++J>11&&(J=0,ee++),C+=T+="
    "+this._get(e,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+p[E]+"
    "+this._get(e,"calculateWeek")(M)+""+(L&&!m?" ":H?""+M.getDate()+"":""+M.getDate()+"")+"
    "+(Y?"
    "+(q[0]>0&&k===q[1]-1?"
    ":""):"")}x+=C}return x+=u,e._keyEvent=!1,x},_generateMonthYearHeader:function(e,t,n,i,o,a,r,s){var l,u,c,d,h,p,f,g,_=this._get(e,"changeMonth"),m=this._get(e,"changeYear"),v=this._get(e,"showMonthAfterYear"),y="
    ",x="";if(a||!_)x+=""+r[t]+"";else{for(l=i&&i.getFullYear()===n,u=o&&o.getFullYear()===n,x+=""}if(v||(y+=x+(!a&&_&&m?"":" ")),!e.yearshtml)if(e.yearshtml="",a||!m)y+=""+n+"";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),f=(p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(d[0]),g=Math.max(f,p(d[1]||"")),f=i?Math.max(f,i.getFullYear()):f,g=o?Math.min(g,o.getFullYear()):g,e.yearshtml+="",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),v&&(y+=(!a&&_&&m?"":" ")+x),y+="
    "},_adjustInstDate:function(e,t,n){var i=e.selectedYear+("Y"===n?t:0),o=e.selectedMonth+("M"===n?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(i,o))+("D"===n?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,o,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),o=n&&ti?i:o},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var o=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(n,i+(t<0?t:o[0]*o[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var n,i,o=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,s=null,l=this._get(e,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),r=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(r+=i),n[1].match(/[+\-].*/)&&(s+=i)),(!o||t.getTime()>=o.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var o=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),o,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new s,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1";e.datepicker}),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={};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=847)}([function(e,t,n){var i=n(1).isPlainObject;t.extend=function e(t){var n=1,o=!1;for("boolean"==typeof(t=t||{})&&(o=t,t=arguments[1]||{},n++);n=0&&!1!==t.call(e[n],n,e[n]);n--);}},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=i(n(27)),r=i(n(42)),s=n(6),l=n(3),u=n(20),c=n(1),d=[],h=[],p=[],f=void 0,g=function(e,t,n){if(f&&f!==e)return d.push(t),h.push(e),n=n||new s.Deferred,p.push(n),n;var i=f,o=p.length;f=e;var a=t();return a||(p.length>o?a=s.when.apply(this,p.slice(o)):n&&n.resolve()),f=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!f&&d.length&&("render"===h.shift()?_:m)(d.shift(),p.shift()),a||(0,s.when)()},_=function(e,t){return g("render",e,t)},m=function(e,t){return g("update",e,t)},v=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,l.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},y=function(e){switch(void 0===e?"undefined":o(e)){case"string":return e.split(/\s+/,2);case"object":return[e.x||e.h,e.y||e.v];case"number":return[e];default:return e}},x=function(e,t,n){return n=n||0,(e=(0,u.toComparable)(e,!0))===(t=(0,u.toComparable)(t,!0))||n>=3||((0,c.isObject)(e)&&(0,c.isObject)(t)?function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!x(e[i],t[i],n+1))return!1;for(var o in t)if(!(o in e))return!1;return!0}(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;io&&(i.length=0,o=r),i.push(a))}),i},t.normalizeKey=function(e){var t=(0,c.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,l.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},t.denormalizeKey=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},t.equalByValue=x,t.getKeyHash=function(e){if(e instanceof r.default)return e.toString();if((0,c.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},t.escapeRegExp=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},t.applyServerDecimalSeparator=function(e){var t=(0,a.default)().serverDecimalSeparator;return(0,c.isDefined)(e)&&(e=e.toString().replace(".",t)),e},t.noop=function(){},t.asyncNoop=function(){return(new s.Deferred).resolve().promise()},t.grep=function(e,t,n){for(var i=[],o=!n,a=0;a-1&&(h={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,h)),T.callMethod(t,"add",e,[d])},removeHandler:function(i,o){var s=function(t){var r,s=n[t];s.handleObjects.length?(s.handleObjects=s.handleObjects.filter(function(n){var s=a.length&&!B(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return s||(r=n.handler,T.callMethod(t,"remove",e,[n])),s}),!s.handleObjects.length&&t!==y&&(T.callMethod(t,"teardown",e,[a,r]),s.nativeHandler&&s.removeListener(),delete n[t])):delete n[t]};if(r)s(t);else for(var l in n)s(l);0===Object.keys(n).length&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!B(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[y]&&n[y].handleObjects.forEach(o)}}},O=function(e){return function(t,n){var i=A(this,e);t=L.Event(t),i.callHandlers(t,n)}},B=function(e,t){for(var n=0;n-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach(function(t){i[1]=t,e.apply(this,i)})}else e.apply(this,arguments)};return function(e,n){if("object"===(void 0===n?"undefined":o(n))){var i=Array.prototype.slice.call(arguments,0);for(var a in n)i[1]=a,i[i.length-1]=n[a],t.apply(this,i)}else t.apply(this,arguments)}},F=function(e,t){var n=b[e]||e;(function(e,t){return"click"===e&&"a"===t.localName})(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},V=function(e){if(function(e){return null==e.which&&0===e.type.indexOf("key")}(e))return null!=e.charCode?e.charCode:e.keyCode;if(function(e){return!e.which&&void 0!==e.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(e.type)}(e)){return{1:1,2:3,3:1,4:2}[e.button]}return e.which},L=c({on:E(P(R(function(e,t,n,i,o){A(e,t).addHandler(o,n,i)}))),one:E(P(function(e,t,n,i,o){L.on(e,t,n,i,function i(){L.off(e,t,n,i),o.apply(this,arguments)})})),off:E(function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}}(R(function(e,t,n,i){A(e,t).removeHandler(i,n)}))),trigger:E(M(function(e,t,n){var i=t.type,o=A(e,t.type);if(T.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n),!(T.getField(i,"noBubble")||t.isPropagationStopped()||-1!==w.indexOf(i))){var a=[];(function e(t){var n=t.parentNode;n&&(a.push(n),e(n))})(e),a.push(u);for(var s=0;a[s]&&!t.isPropagationStopped();){A(a[s],t.type).callHandlers(r(t,{currentTarget:a[s]}),n),s++}}(e.nodeType||p(e))&&(T.callMethod(i,"_default",e,[t,n]),F(i,e))})),triggerHandler:E(M(function(e,t,n){A(e,t.type).callHandlers(t,n)}))}),H=function(e){e&&(L.Event=e,L.Event.prototype=e.prototype)};H(function(e){return function(t,n){return this instanceof L.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new L.Event(t,n)}}(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof L.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof L.Event||r(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),z("which",V,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++I}));var z=function(e,t,n){Object.defineProperty(n||L.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})};v(z);var N=h(),$=h();L.set=function(e){N.fire(),L.inject(e),H(e.Event),$.fire()},L.subscribeGlobal=function(){D(arguments,P(function(){var e=arguments;L.on.apply(this,e),N.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),L.off.apply(this,t)}),$.add(function(){L.on.apply(this,e)})}))},L.forcePassiveFalseEventNames=C,e.exports=L},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(25),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],u=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new u;return["done","fail"].forEach(function(i){var r="done"===i?e:t;this[i](function(){if(r){var e=r&&r.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,e?[e]:arguments)}else n["done"===i?"resolve":"reject"].apply(this,arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;u.prototype[t+"With"]=function(e,i){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),o.fire(e,i)),this}}),t.fromPromise=function(e,t){if(a(e))return e;if(o(e)){var n=new u;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new u).resolveWith(t,[e])};var c=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new u,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,++i===e.length&&o.resolveWith(n,e)}},s=0;s1:m(e)?i&&(0,s.focused)(n):void 0},createEvent:y,fireEvent:function(e){var t=y(e.originalEvent,e);return a.default.trigger(e.delegateTarget||t.target,t),t},addNamespace:function e(t,n){if(!n)throw r.default.Error("E0017");return"string"==typeof t?-1===t.indexOf(" ")?t+"."+n:e(t.split(/\s+/g),n):((0,u.each)(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},setEventFixMethod:function(e){v=e},normalizeKeyName:function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return t?c[n.toLowerCase()]||n:d[n]||String.fromCharCode(n)},getChar:function(e){return e.key||String.fromCharCode(e.which)}}},function(e,t,n){var i,o=n(2),a=n(27),r=n(12),s=n(7).getWindow(),l=n(5),u=n(13).inArray,c=n(1),d=c.isDefined,h=c.isRenderer,p=n(214),f=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=o(n||"body"),a=i.filter(t).add(i.find(t)),r=0;r");return s.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},t.triggerShownEvent=f("dxshown"),t.triggerHidingEvent=f("dxhiding"),t.triggerResizeEvent=f("dxresize"),t.getElementOptions=m,t.createComponents=function(e,t){var n=[],i="["+_+"]";return e.find(i).add(e.filter(i)).each(function(e,i){var a=o(i),r=m(i);for(var s in r)(!t||u(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},t.extractTemplateMarkup=function(e){var t=(e=o(e)).length&&e.filter(function(){var e=o(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=o("
    ").append(e)).html()},t.normalizeTemplateElement=function e(t){var n=d(t)&&(t.nodeType||h(t))?o(t):o("
    ").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},t.clearSelection=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},t.uniqueId=g,t.closestCommonParent=function(e,t){var n=o(e),i=o(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),r=i.parents(),s=-Math.min(a.length,r.length);s<0;s++)if(a.get(s)===r.get(s))return a.get(s)},t.clipboardText=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||s.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},t.toggleAttr=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},t.contains=function(e,t){return!!t&&(t=r.isTextNode(t)?t.parentNode:t,r.isDocument(e)?e.documentElement.contains(t):e.contains(t))},t.getPublicElement=function(e){return i(e)}},function(e,t,n){function i(e,t){for(var n,i=0,o=e.length,a=[];i2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+n*t)}:"logarithmic"===e.axisType?function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=F(t,e.base)+i*n;return V(o,e.base)}:function(e,n){var i=e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)*n;return t&&i*e<=0?0:i}}var d=n(4).noop,h=n(1),p=n(0).extend,f=n(3).each,g=n(29).adjust,_=n(22).dateToMilliseconds,m=h.isDefined,v=h.isNumeric,y=h.isExponential,x=Math,b=x.round,w=Math.sqrt,C=Math.PI,k=1e10,S=C/180,I=Math.LN10,T=Math.cos,D=Math.sin,E=Math.abs,A=Math.log,O=Math.floor,B=Math.ceil,P=Math.max,M=isNaN,R=Number,F=function(e,t){return e?Math.log(e)/Math.log(t):NaN},V=function(e,t){return Math.pow(t,e)},L=function(e){return(e%360+360)%360},H=function(e){return C*e/180},z=function(e){var t=H(e);return{cos:T(t),sin:D(t)}},N=function(e,t,n,i){var o=n-e,a=i-t;return Math.sqrt(a*a+o*o)},$=function(e){var t,n=E(e);return M(n)?NaN:n>0?(n=A(n)/I,(t=B(n))-n<1e-14?t:O(n)):0};p(t,{decreaseGaps:function(e,t,n){var i;do{(i=o(e,t)).push(x.ceil(n/i.length)),n=a(e,t,x.min.apply(null,i),n)}while(n>0&&i.length>1);return n},normalizeEnum:r,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t=n.x,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=b(w(o*o+a*a-r*r)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-e.width),y:e.y+t}},mergeMarginOptions:function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:Math.max(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:Math.max(e.sizePointNormalState||0,t.sizePointNormalState||0)}}}),t.getVizRangeObject=function(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}},t.convertVisualRangeObject=function(e,t){return t?e:[e.startValue,e.endValue]},t.adjustVisualRange=function(e,n,i,o){var a=h.isDefined(n.startValue),r=h.isDefined(n.endValue),s="discrete"!==e.axisType;o=o||i;var l=c(e,!1),u=a?n.startValue:o.min,d=r?n.endValue:o.max,p=n.length,f=o.categories;if(s&&!h.isDefined(u)&&!h.isDefined(d))return{startValue:u,endValue:d};if(m(p))if(s)"datetime"!==e.dataType||v(p)||(p=_(p)),r&&!a||!r&&!a?(m(i.max)&&(d=d>i.max?i.max:d),u=l(d,p,-1)):a&&!r&&(m(i.min)&&(u=ui.max&&(d=i.max),m(i.min)&&u4&&(a=4)):(i="exponential",(a+=o-1)>3&&(a=3)),{type:i,precision:a})},t.getDistance=N,t.roundValue=function(e,t){if(t>20&&(t=20),v(e))return R(y(e)?e.toExponential(t):e.toFixed(t))},t.getPower=function(e){return e.toExponential().split("e")[1]},t.rotateBBox=function(e,t,n){var i=R(T(n*S).toFixed(3)),o=R(D(n*S).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,c=E(a*i)+E(r*o),d=E(a*o)+E(r*i);return u({x:t[0]+(s-t[0])*i+(l-t[1])*o-c,y:t[1]-(s-t[0])*o+(l-t[1])*i-d,width:2*c,height:2*d})},t.normalizeBBox=u},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(52),a=n(4).noop,r={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var n=e.document||e.ownerDocument;if(!n)return!1;for(var i=this.querySelectorAll(n,t),o=0;o=0&&(r.splice(s,1),i=r.join(" ")),void 0!==i&&(o?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):a}};e.exports=o(r)},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(48),r=n(27),s=function(e,t){return t?(Array.isArray(t)?t:t.toArray()).indexOf(e):-1};t.isEmpty=function(e){return Array.isArray(e)&&!e.length},t.wrapToArray=function(e){return Array.isArray(e)?e:[e]},t.intersection=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return o(e,function(e,i){-1!==s(i,t)&&n.push(i)}),n},t.removeDuplicates=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return o(e,function(e,i){-1===s(i,t)&&n.push(i)}),n},t.normalizeIndexes=function(e,t,n,s){var l={},u=0,c=r().useLegacyVisibleIndex;return o(e,function(e,i){(e=i[t])>=0?(l[e]=l[e]||[],i===n?l[e].unshift(i):l[e].push(i)):i[t]=void 0}),c||o(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}}),u=0,a.orderEach(l,function(e,n){o(n,function(){e>=0&&(this[t]=u++)})}),c&&o(e,function(){i(this[t])||s&&!s(this)||(this[t]=u++)}),u},t.inArray=s,t.merge=function(e,t){for(var n=0;n1&&(i[0]<4||4===i[0]&&i[1]<4)?"B":"A"}}}},b=new(c.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()).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]))throw d.Error("E0005")}else t=a.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},y,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(u(x,function(n,i){return!(t=i(e))}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=y;return i.mac=n,i},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(f));_.changeCallback.add(function(e,t){b.detachCssClasses(t),b.attachCssClasses(e)}),b.isForced()||"win"!==b.current().platform||b.current({version:[10]}),e.exports=b},function(e,t,n){var i=n(2),o=n(5),a=n(18),r=n(110),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(4),d=n(1),h=n(10),p=n(12),f=n(16),g=n(66),_=n(452),m=n(71),v=n(86),y=n(111),x=n(133),b=n(159),w=n(64),C=n(9),k=n(134),S=n(128),I=n(19),T=n(32),D="UIFeedback",E="dx-state-disabled",A="dx-state-focused",O="Focus",B=new v(function(e){var t=e.model.widget;if(t){var n=i("
    "),o=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var r=t;t=T.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",r,"16.1","Use: '"+t+"' instead")}return e.parent?e.parent._createComponent(n,t,o):n[t](o),n}return i()}),P=g.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return s(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,integrationOptions:{watchMethod:function(e,t,n){return(n=n||{}).skipImmediate||t(e()),c.noop},templates:{"dx-polymorph-widget":B},createTemplate:function(e){return new _(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:30,_feedbackHideTimeout:400,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_clearInnerOptionCache:function(e){this[e+"Cache"]={}},_cacheInnerOptions:function(e,t){var n=e+"Cache";this[n]=s(this[n],t)},_getOptionsFromContainer:function(e){var t=e.name,n=e.fullName,i=e.value,o={};t===n?o=i:o[n.split(".").pop()]=i;return o},_innerOptionChanged:function(e,t){var n=this._getOptionsFromContainer(t);e&&e.option(n),this._cacheInnerOptions(t.name,n)},_getInnerOptionsCache:function(e){return this[e+"Cache"]},_initInnerOptionCache:function(e){this._clearInnerOptionCache(e),this._cacheInnerOptions(e,this.option(e))},_bindInnerWidgetOptions:function(e,t){this._options[t]=s({},e.option()),e.on("optionChanged",function(e){this._options[t]=s({},e.component.option())}.bind(this))},_extractTemplates:function(){var e=this.$element().contents().filter("[data-options*='dxTemplate']"),t={};e.each(function(e,n){var o=h.getElementOptions(n).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");i(n).addClass("dx-template-wrapper").detach(),t[o.name]=t[o.name]||[],t[o.name].push(n)}}),u(t,function(e,t){var n=this._findTemplateByDevice(t);n&&this._saveTemplate(e,n)}.bind(this))},_saveTemplate:function(e,t){this.option("integrationOptions.templates")[e]=this._createTemplate(t)},_findTemplateByDevice:function(e){var t=c.findBestMatches(f.current(),e,function(e){return h.getElementOptions(e).dxTemplate})[0];return u(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),o=n.filter(function(e,t){var n=3===t.nodeType,o=i(t).text().trim().length<1;return!(n&&o)}).length<1;e[t]||o||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return"template"},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return d.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!d.isDefined(n))return new y;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||d.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(o=!0,this._createTemplate(e))}.bind(this)),r=a.render(t);return o&&a.dispose&&a.dispose(),r}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){return null==e?new y:e instanceof x?this._defaultTemplates[e.name]:e instanceof m?e:d.isFunction(e.render)&&!d.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||d.isRenderer(e)?t(i(e)):"string"==typeof e?this._renderIntegrationTemplate(e)||this._defaultTemplates[e]||t(e):this._acquireTemplate(e.toString(),t)},_addOneRenderedCall:function(e){var t=e.render.bind(e);return s({},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 m)&&!this.option("templatesRenderAsynchronously"))return this._addOneRenderedCall(t);return t},_createTemplateIfNeeded:function(e){var t=function(e){return d.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_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},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass("dx-widget"),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){h.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var e=this;c.deferRender(function(){if(!e._disposed)return e._renderContentImpl()}).done(function(){e._disposed||e._fireContentReadyAction()})},_renderContentImpl:c.noop,_fireContentReadyAction:c.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass("dx-state-invisible",!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=C.addNamespace(I.name,D);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){C.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+E)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+O,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+O,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),a=this._focusTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var r=C.addNamespace("beforeactivate",e);o.on(this._focusTarget(),r,function(e){i(e.target).is(w.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;-1!==l(n,this._focusTarget())&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){(t&&t.length?t:this._focusTarget()).toggleClass(A,e)},_hasFocusClass:function(e){return i(e||this._focusTarget()).hasClass(A)},_isFocused:function(){return this._hasFocusClass()},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new b({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.keyName,i=e.which,o=this._supportedKeys(t),a=o[n]||o[i];return void 0===a||(a.bind(this)(t)||!1)},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._disposeKeyboardProcessor()},_disposeKeyboardProcessor:function(){this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(k.start,D),a=C.addNamespace(k.end,D);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new r(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,a,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:c.noop,_hoverEndHandler:c.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=C.addNamespace(S.active,D),l=C.addNamespace(S.inactive,D);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var u=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,a,{timeout:n._feedbackShowTimeout},function(t){(e=e||new r(u)).execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){(t=t||new r(u,{excludeValidators:["disabled","readOnly"]})).execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass("dx-state-active",t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass("dx-state-hover",e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(E,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(d.isPlainObject(t[0]))return void u(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null==n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(d.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();u(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=P},function(e,t,n){var i=n(124),o=n(21);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config."})},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(12),s=n(10),l=n(112),u=n(9),c=n(24),d=n(114),h=n(88),p=n(61).compare,f="dxclick",g=Math.abs,_=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},m={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},v=d.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=u.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===c.cancel?void this._cancel(e):(_(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=m.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,o=u.eventDelta(u.eventData(e),this._startEventData),a=g(o.x)>10||g(o.y)>10;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){m.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=a.real(),n=t.generic||t.ios&&p(t.version,[9,3])>=0||t.android&&p(t.version,[5])>=0,r=function(t){return n||i(t).closest("."+e).length},s=null,l=null,c=function(e){var t=e.originalEvent,n=l!==t;(!e.which||1===e.which)&&!s&&r(e.target)&&n&&(l=t,u.fireEvent({type:f,originalEvent:e}))};v=v.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",c)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,r(e.target)||this.callBase(e)},end:function(e){r(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",c)}})}(),function(){if(!a.real().generic){var e=null,t=!1,n="NATIVE_CLICK_FIXER",l=r.getDocument();o.subscribeGlobal(l,u.addNamespace(c.down,n),function(n){e=n.target,t=n.isDefaultPrevented()}),o.subscribeGlobal(l,u.addNamespace("click",n),function(n){var o=i(n.target);t||!e||o.is(e)||i(e).is("label")||!_(o)||s.resetActiveElement(),e=null,t=!1})}}(),h({emitter:v,bubble:!0,events:[f]}),t.name=f},function(e,t,n){var i=n(21),o=n(14),a=n(48),r=n(1),s=n(3).each,l=n(74),u=l.unwrap,c=l.isWrapped,d=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&c(a)?d(a,n):e[t]=n},f=function(e){return(e=e||{}).unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},g=function(e,t){return t.unwrapObservables?u(e):e},_=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){var t=(e=h(e)).split(".");return function(e,n){for(var i=(n=f(n)).functionsAsIs,o=("defaultValue"in n),a=g(e,n),s=0;s=0;t--)i=o[t],(n=Math.floor(e/p(i)))>0&&(a[i+"s"]=n,e-=g(i,n));return a},g=function(e,t){return p(e)*t},_=function(e){var t,n=-1;return u(e)?e:l(e)?(r(e,function(e,i){for(t=0;tn&&(i=n),i):e},E=function(e,t){if(d(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||-23===o?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},A=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},O={dateUnitIntervals:h,convertMillisecondsToDateUnits:f,dateToMilliseconds:function(e){var t=0;return l(e)&&r(e,function(e,n){t+=g(e.substr(0,e.length-1),n)}),u(e)&&(t=g(e,1)),t},getNextDateUnit:function(e,t){switch(_(e)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:g,getDateUnitInterval:_,getDateFormatByTickInterval:function(e){return m[_(e)]||""},getDatesDifferences:function(e,t){var n,i=0;return n={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},r(n,function(e,t){t&&i++}),0===i&&0!==A(e,t)&&(n.hour=!0,i++),n.count=i,n},correctDateWithUnitBeginning:function(e,t,n,i){e=new Date(e.getTime());var o,a,r=new Date(e.getTime()),s=_(t);switch(s){case"second":e=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":(e=T(e,i||0)).setHours(0,0,0,0);break;case"quarter":o=y(e.getMonth()),a=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),a!==o&&e.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&E(r,e),e},trimTime:function(e){return O.correctDateWithUnitBeginning(e,"day")},setToDayEnd:function(e){var t=O.trimTime(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},roundDateByStartDayHour:function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()=6&&(i=new Date(i.setDate(i.getDate()+7))),i},getQuarter:v,getFirstQuarterMonth:y,dateInRange:function(e,t,n,i){return"date"===i&&(t=t&&O.correctDateWithUnitBeginning(t,"day"),n=n&&O.correctDateWithUnitBeginning(n,"day"),e=e&&O.correctDateWithUnitBeginning(e,"day")),D(e,t,n)===e},roundToHour:function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},normalizeDate:D,getViewMinBoundaryDate:function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),1);return"month"===e?n:(n.setMonth(0),"year"===e?n:("decade"===e&&n.setFullYear(I(t)),"century"===e&&n.setFullYear(S(t)),n))},getViewMaxBoundaryDate:function(e,t){var n=new Date(t);return n.setDate(b(t)),"month"===e?n:(n.setMonth(11),n.setDate(b(n)),"year"===e?n:("decade"===e&&n.setFullYear(I(t)+9),"century"===e&&n.setFullYear(S(t)+99),n))},fixTimezoneGap:E,getTimezonesDifference:A,makeDate:function(e){return new Date(e)},getDatesInterval:function(e,t,n){var i=t.getTime()-e.getTime(),o=p(n)||1;return Math.floor(i/o)},getDatesOfInterval:function(e,t,n){for(var i=new Date(e.getTime()),o=[];i-1&&(t.splice(i,1),this._firing&&n.length))for(var o=0;o-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||[]).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};e.exports=function(e){return new i(e)}},function(e,t,n){var i=n(37),o=n(1).type,a="dxTranslator",r=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){return"string"===o(e)&&"%"===e[e.length-1]},u=function(e){var t=e.length?i.data(e.get(0),a):null;if(!t){var n=(e.css("transform")||h({x:0,y:0})).match(r),o=n&&n[1];n?(n=n[2].split(","),"3d"===o?n=n.slice(12,15):(n.push(0),n=n.slice(4,7))):n=[0,0,0],t={x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])},c(e,t)}return t},c=function(e,t){e.length&&i.data(e.get(0),a,t)},d=function(e){e.length&&i.removeData(e.get(0),a)},h=function(e){return e.x=e.x||0,e.y=e.y||0,"translate("+(l(e.x)?e.x:e.x+"px")+", "+(l(e.y)?e.y:e.y+"px")+")"};t.move=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=u(e)).y=o||0:void 0===o?(n=u(e)).x=i||0:c(e,n={x:i||0,y:o||0,z:0}),e.css({transform:h(n)}),(l(i)||l(o))&&d(e)},t.locate=function(e){var t=u(e);return{left:t.x,top:t.y}},t.clearCache=d,t.parseTranslate=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),{x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},t.getTranslate=u,t.getTranslateCss=h,t.resetPosition=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),d(e),t&&(e.get(0).offsetHeight,e.css("transition",n))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(0)),a=i(n(21)),r={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5},optionsParser:function(e){"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw a.default.Error("E3018",t,e)}}},s=function(){return arguments.length?void o.default.extend(r,arguments.length<=0?void 0:arguments[0]):r};"undefined"!=typeof DevExpress&&DevExpress.config&&s(DevExpress.config),e.exports=s},function(e,t,n){var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n(38));(0,i.extend)(t,o.default,{modules:[],foreachNodes:function(e,t){for(var n=0;n=0?n:t[1].length}function a(e,t){if(e<0&&t%2!=1)return NaN;var n=Math.pow(Math.abs(e),1/t);return t%2==1&&e<0?-n:n}var r=n(1).isExponential;t.sign=function(e){return 0===e?0:e/Math.abs(e)},t.fitIntoRange=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},t.inRange=function(e,t,n){return e>=t&&e<=n},t.adjust=function(e,t){var n,a=o(t||0)+2,s=e.toString().split("."),l=e,u=Math.abs(e),c=r(e),d=u>1?10:0;return 1===s.length?e:(c||(r(t)&&(a=s[0].length+i(t)),e=(e=u)-Math.floor(e)+d),a="0.000300"!==3e-4.toPrecision(3)&&i(e)>6||a>7?15:7,c||(n=parseFloat(e.toPrecision(a)).toString().split("."))[0]!==d.toString()?parseFloat(l.toPrecision(a)):parseFloat(s[0]+"."+n[1]))},t.getPrecision=o,t.getExponent=i,t.getRoot=a,t.solveCubicEquation=function(e,t,n,i){var o=1e-8;if(Math.abs(e)0?[(-t+Math.sqrt(r))/(2*e),(-t-Math.sqrt(r))/(2*e)]:[]}var s,l,u=(3*e*n-t*t)/(3*e*e),c=(2*t*t*t-9*e*t*n+27*e*e*i)/(27*e*e*e);if(Math.abs(u)0)s=[(l=a(-c/2-Math.sqrt(d),3))-u/(3*l)];else{l=2*Math.sqrt(-u/3);var h=Math.acos(3*c/u/l)/3,p=2*Math.PI/3;s=[l*Math.cos(h),l*Math.cos(h-p),l*Math.cos(h-2*p)]}}for(var f=0;f",_).addClass("dx-theme-marker").appendTo(_.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,"")).substr(0,$.length)!==$?null:e.substr($.length):null}finally{t.remove()}}function o(e){function t(){x=null,M.fire(),M.empty()}var n;x=e,a()?t():(n=Date.now(),b=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&D.log("W0004",x),(e||i)&&(clearInterval(b),b=void 0,t())},10))}function a(){return!x||i()===x}function r(e){(function(e){try{e!==_&&(v=null)}catch(e){v=null}_=e})((e=e||{}).context||k.getDocument()),_&&(function(){var e=C(L,_);e.length&&(v={},m=C(E.createMarkupFromString(""),_),e.each(function(){var e=C(this,_),t=e.attr(H),n=e.attr("href"),i="true"===e.attr(z);v[t]={url:n,isActive:i}}),e.last().after(m),e.remove())}(),y=void 0,s(e))}function s(e){if(!arguments.length)return y=y||i();c(R()),"string"==typeof(e=e||{})&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(y=e.theme||y,n&&!y&&(y=l(B.current())),(y=function(e){var t=e.split("."),n=null;if(v){if(e in v)return e;O(v,function(e,i){var o=e.split(".");if(o[0]===t[0]&&!(t[1]&&t[1]!==o[1]||t[2]&&t[2]!==o[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}(y))&&(t=v[y]),a&&M.add(a),t)m.attr("href",v[y].url),!M.has()&&!e._forceTimeout||b?x&&(x=y):o(y);else{if(!n)throw D.Error("E0021",y);M.fire(),M.empty()}p()&&D.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead."),u(P.originalViewPort(),y)}function l(e){var t=e.platform;switch(t){case"ios":return"ios7";case"android":case"win":return"generic"}return t}function u(e,t){w=function(e){var t=[],n=(e=e||s())&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(h(e)?"-"+n[2]:""))),t}(t).join(" "),C(e).addClass(w);!function(){var t=S.hasWindow()&&I.devicePixelRatio;if(t&&!(t<2)){var n=C("
    ");n.css("border",".5px solid transparent"),C("body").append(n),1===n.outerHeight()&&(C(e).addClass(N),w+=" "+N),n.remove()}}()}function c(e){C(e).removeClass(w)}function d(e,t){return t||(t=y||i()),new RegExp(e).test(t)}function h(e){return d("material",e)}function p(e){return d("ios7",e)}function f(e,t){var n=k.getDocument(),i=n.createElement("span");i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.visibility="hidden",i.style.fontFamily="Arial",i.style.fontSize="250px",i.style.fontWeight=t,i.innerHTML=e,n.body.appendChild(i);var o=i.offsetWidth;i.style.fontFamily="Roboto, RobotoFallback, Arial";var a=i.offsetWidth;return i.parentNode.removeChild(i),o!==a}function g(){if(r({_autoInit:!0,_forceTimeout:!0}),C(L,_).length)throw D.Error("E0022");W.resolve()}var _,m,v,y,x,b,w,C=n(2),k=n(12),S=n(7),I=S.getWindow(),T=n(6).Deferred,D=n(18),E=n(10),A=n(47).add,O=n(3).each,B=n(16),P=n(76),M=n(228),R=P.value,F=n(83),V=P.changeCallback,L="link[rel=dx-theme]",H="data-theme",z="data-active",N="dx-hairlines",$="dx.",W=new T;S.hasWindow()?g():A(g),V.add(function(e,t){W.done(function(){c(t),u(e)})}),B.changed.add(function(){r({_autoInit:!0})}),t.current=s,t.ready=function(e){M.add(e)},t.init=r,t.attachCssClasses=u,t.detachCssClasses=c,t.themeNameFromDevice=l,t.waitForThemeLoad=o,t.isMaterial=h,t.isIos7=p,t.isGeneric=function(e){return d("generic",e)},t.isWebFontLoaded=f,t.waitWebFont=function(e,t){var n=0;return new F(function(i,o){var a=function(){var n=f(e,t);return n&&i(),n};a()||function e(){return n++>135?void o():void setTimeout(function(){a()||e()},15)}()})},t.resetTheme=function(){m&&m.attr("href","about:blank"),y=null,x=null}},function(e,t,n){var i=n(0).extend,o=n(7).getNavigator(),a=/(webkit)[ \/]([\w.]+)/,r=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,l=/(edge)\/((\d+)?[\w.]+)/,u=/(safari)/i,c=/(mozilla)(?:.*? rv:([\w.]+))/,d=function(e){e=e.toLowerCase();var t={},n=r.exec(e)||s.exec(e)||l.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||a.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&u.exec(e)&&(i="safari",t.webkit=!0,o=(o=/Version\/([0-9.]+)/i.exec(e))&&o[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:d},d(o.userAgent))},function(e,t,n){var i=n(3).map,o=function(e){return null==e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=["0","1","2","3","4","5","6","7","8","9"];t.dasherize=s,t.camelize=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},t.humanize=function(e){return a(s(e).replace(/-/g," "))},t.titleize=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},t.underscore=function(e){return s(e).replace(/-/g,"_")},t.captionize=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t0&&i.push(" "),i.push(n),o=a;return i.join("")}},function(e,t,n){var i=n(52),o=n(1).isString,a=n(3),r=n(13).inArray,s=n(216).getFormatter,l=n(183).getFormat,u=n(209).getParser,c=n(217),d=n(51),h=n(21);n(85);var p={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},f={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},g=i({_getPatternByFormat:function(e){return p[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return-1!==this._expandPattern(e).indexOf("MMMM")},formatUsesDayName:function(e){return-1!==this._expandPattern(e).indexOf("EEEE")},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return a.each(t.split(/\W+/),function(e,t){a.each(f,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return c.getMonthNames(e)},getDayNames:function(e){return c.getDayNames(e)},getQuarterNames:function(e){return c.getQuarterNames(e)},getPeriodNames:function(e){return c.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a").text(n.text).addClass("dx-button-text"):void 0,s=i(t.container);s.append(r),e.option("iconPosition")===w?s.prepend(o):(o.addClass("dx-icon-right"),s.append(o))},this)},_initMarkup:function(){this.$element().addClass("dx-button"),this._renderType(),this._renderStylingMode(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase(),this._updateContent()},_renderInkRipple:function(){var e={};(!this.option("text")&&this.option("icon")||"back"===this.option("type"))&&u(e,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(e)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_updateContent:function(){var e=this.$element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=i("
    ").addClass(v).appendTo(e),e.toggleClass(y,!!t.icon).toggleClass("dx-button-icon-right",!!t.icon&&this.option("iconPosition")!==w).toggleClass("dx-button-has-text",!!t.text);var n=this._getAnonymousTemplateName()===this.option("template"),o=this._getTemplateByOption("template"),a=i(o.render({model:t,container:r.getPublicElement(this._$content),transclude:n}));a.hasClass("dx-template-wrapper")&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(v)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=d.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),o.on(this._$submitInput,"click",function(t){e({event:t})})},_getContentData:function(){var e=this.option("icon"),t=this.option("text");return"back"===this.option("type")&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(_.name,this.NAME),n={excludeValidators:["readOnly"]};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),o.off(this.$element(),t),o.on(this.$element(),t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({event:e,validationGroup:d.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=-1===e.indexOf("base64")?e.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var n=t||e||"";n=n.toString().trim(),this.setAria("label",n)},_renderType:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)},_renderStylingMode:function(){var e=this,t="stylingMode";b.forEach(function(t){return e.$element().removeClass(t)});var n=x+this.option(t);if(-1===b.indexOf(n)){var i=this._getDefaultOptions()[t];n=x+i}this.$element().addClass(n)},_refreshType:function(e){var t=this.option("type");e&&this.$element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.$element().hasClass(y)||"back"!==t||this._updateContent()},_optionChanged:function(e){switch(e.name){case"onClick":this._renderClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._refreshType(e.previousValue),this._updateContent(),this._updateAriaLabel();break;case"template":case"iconPosition":this._updateContent();break;case"stylingMode":this._renderStylingMode();break;case"useInkRipple":case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase(),delete this._$content}}).include(c);l("dxButton",C),e.exports=C},function(e,t,n){var i=n(124),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}"});a={errors:r,errorHandler:null,_errorHandler:function(e){a.errorHandler&&a.errorHandler(e)}},e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(4),r=n(1),s=n(165),l=n(43),u=n(3),c=n(0),d=n(20),h=i(n(189)),p=n(40),f=i(n(63)),g=n(48),_=n(7),m=i(n(5)),v={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}};e.exports=function(){var t=function(){var e,t,n=arguments[1],o=this.calculateCellValue(n);return(0,r.isDefined)(o)?i(this.dataType)?(t=arguments[0],v[t](o)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(o)/e)*e):void 0:null},n=function(e,t){return(0,r.isFunction)(e)&&(0,r.isFunction)(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback:e===t},i=function(e){return"date"===e||"datetime"===e},y=function(e){e.get(0).textContent=" "};return{renderNoDataText:function(e){if(e=e||this.element()){var t=this.addWidgetPrefix("nodata"),n=e.find("."+t).last(),i=this._dataController.isEmpty(),a=this._dataController.isLoading();n.length||(n=(0,o.default)("").addClass(t).appendTo(e)),i&&!a?n.removeClass("dx-hidden").text(this._getNoDataText()):n.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var i,a=this;a._loadPanel&&a._loadPanel.$element().remove(),(i=a.option("loadPanel"))&&("auto"===i.enabled?!n:i.enabled)?(i=(0,c.extend)({shading:!1,message:i.text,position:function(){var t=(0,o.default)((0,_.getWindow)());return e.height()>t.height()?{of:t,boundary:e,collision:"fit"}:{of:e}},container:t},i),a._loadPanel=a._createComponent((0,o.default)("
    ").appendTo(t),h.default,i)):a._loadPanel=null},getIndexByKey:function(e,t,n){var i,o=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var s=0;s=0&&(0,r.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,d.toComparable)(t.filterValue)===(0,d.toComparable)(n.filterValue):(0,d.toComparable)(t)==(0,d.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=f.default.format(e,t.format)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){var i,o,a="(";for(i=0;i0?", ":"")+e.exports.getSummaryText(o,n);return a+")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return n?(0,l.format)(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){var t,n;for(e=e||[],t=(0,p.normalizeSortingInfo)(e),n=0;n0&&((l=e.eq(a-1).offset()).top").addClass(t.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(i),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),i))}}},setEmptyText:y,isDateType:i,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},focusAndSelectElement:function(e,t){m.default.trigger(t,"focus");var n=e.option("editing.selectTextOnEditStart"),i=e.getController("keyboardNavigation"),o=i&&i._isFastEditingStarted();n&&!o&&t.is(".dx-texteditor-input")&&t.get(0).select()},getLastResizableColumnIndex:function(e,t){for(var n=e.some(function(e){return e&&!e.command&&!e.fixed&&!1!==e.allowResizing}),i=e.length-1;e[i];i--){var o=e[i],a=t&&t[i],r=!n||!1!==o.allowResizing;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return i}}}()},function(e,t,n){var i,o=n(176),a=n(12),r=n(5),s=n(177),l=new o,u=new s,c=function(){},d=function(){},h=t.setDataStrategy=function(e){u.fire(e);var t=(i=e).cleanData;i.cleanData=function(e){c(e);var n=t.call(this,e);return d(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;t0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=p.default.format(e)),t[e]):p.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){var n;return(0,u.isFunction)(e)?(n=this.component._createAction(e.bind(this),t),function(e){n({event:e})}):(this._actions[e]=this.component._createActionByOption(e,t),void(this._actionConfigs[e]=t))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,d.each)(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e="dxDataGrid"===this.component.NAME?null:"container";return this.addWidgetPrefix(e)}}),_=g,m=_.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),v=g.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,f.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,s.default)(),this.resizeCompleted=(0,s.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0;return e.get(0).offsetHeight+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,i=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,o.default)("
    ").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!i),i&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){a.default.trigger(this.element(),"focus")}});e.exports={modules:[],View:v,ViewController:m,Controller:_,registerModule:function(e,t){var n,i=this.modules;for(n=0;n=t.duration&&l.reject()}),r.off(e,w),r.on(e,w,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){u.reject()},t.duration+t.delay+ie._simulatedTransitionEndDelay),x(l,u).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ne(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&d.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},O={initAnimation:function(e,t){ne(e,t.from)},animate:function(e,t){var n=new b,i=this;return t?(d.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)t.draw(this.currentValue);else{var n=u({},this.currentValue);n[E]&&(n[E]=d.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,w),r.on(e,w,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return d.each(e.match(/(\w|\d)+\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){return function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],u=e.duration;return p.getEasing(e.easing)(i,r,s,l,u)};return d.each(a,function(e,t){return"string"==typeof t&&!1===parseFloat(t,10)||void(r[e]="object"===(void 0===t?"undefined":i(t))?n(o[e],t):s(e))}),r}(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return!1===t?e:t}},B={initAnimation:function(){},animate:function(){return(new b).resolve().promise()},stop:S,isSynchronous:!0},P=function(e,t,n,i){d.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},M=function(e,t){return P(e,t,function(e){return k(e)},"a plain object")},R={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},F={validateConfig:function(e){M(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=u({of:a},R[t.direction]),te(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,void 0!==(i=this._getRelativeValue(n.top))?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=I.exec(e)))return parseInt(t[1]+"1")*t[2]}},V={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},L={custom:{setup:function(){}},slide:F,slideIn:F,slideOut:F,fade:V,fadeIn:V,fadeOut:V,pop:{validateConfig:function(e){M(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},css:{validateConfig:function(e){!function(e,t){P(e,t,function(e){return"string"==typeof e},"a string")}(e,"css")},setup:function(){}}},H=function(e){var t=L[e.type];if(!t)throw s.Error("E0011",e.type);return t},z={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},N={duration:400,easing:"ease",delay:0},$=function(){var e=this,t=e.element,n=e.config;if(te(t,n.from),te(t,n.to),e.configurator.setup(t,n),t.data(T,e),ie.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},W=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){!function(e){var t=e.element,n=e.config;if(t.removeData(T),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])}(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},G=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},j=v.addNamespace(m,"dxFXStartAnimation"),q=function(e){r.off(e.element,j),r.on(e.element,j,function(){ie.stop(e.element)}),e.deferred.always(function(){r.off(e.element,j)})},K=function(e,t){var n="css"===t.type?N:z,i=u(!0,{},n,t),a=H(i),r=function(e){e=e||{};var t={transition:g.transition()?A:O,frame:O,noAnimation:B},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]}(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:$,start:W,stop:G,deferred:new b};return C(a.validateConfig)&&a.validateConfig(i),q(s),s},U=function(e,t){var n=Y(e);X(e,n),n.push(t),Q(e)||J(e,n)},Y=function(e){return e.data(D)||[]},X=function(e,t){e.data(D,t)},Z=function(e){e.removeData(D)},Q=function(e){return!!e.data(T)},J=function e(t,n){if((n=Y(t)).length){var i=n.shift();0===n.length&&Z(t),ee(i).done(function(){Q(t)||e(t)})}},ee=function(e){return e.setup(),ie.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},te=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=_.calculate(e,t.position),l=e.offset(),c=e.position();c.top>l.top&&(r=n.scrollTop()),c.left>l.left&&(i=n.scrollLeft()),u(t,{left:s.h.location-l.left+c.left-i,top:s.v.location-l.top+c.top-r}),delete t.position}},ne=function(e,t){d.each(t,function(t,n){try{e.css(t,c.isFunction(n)?n():n)}catch(e){}})},ie={off:!1,animationTypes:L,animate:function(e,t){var n=o(e);if(!n.length)return(new b).resolve().promise();var i=K(n,t);return U(n,i),i.deferred.promise()},createAnimation:K,isAnimating:Q,stop:function(e,t){var n=o(e),i=Y(n);d.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),Q(n)||J(n,i);var a=n.data(T);a&&a.stop(t),n.removeData(T),Z(n)},_simulatedTransitionEndDelay:100};e.exports=ie},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(1),a=i(o),r=i(n(12)),s=n(47),l=n(7),u=n(3),c=n(20),d=n(6),h="DEVEXTREME_XHR_ERROR_UNLOAD",p=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n||e};return(0,s.add)(function(){var t=(0,l.getWindow)();r.default.listen(t,"beforeunload",function(){e=!0})}),function(t,i){return e?h:t.status<400?n(i):t.statusText}}(),f={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return te?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},g=function(){var e,t=0;return{obtain:function(){0===t&&(e=new d.Deferred),t++},release:function(){--t<1&&e.resolve()},promise:function(){return(0===t?(new d.Deferred).resolve():e).promise()},reset:function(){t=0,e&&e.resolve()}}}(),_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",m=function(e){var t,n,i=[];for(n=0;n>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},v={XHR_ERROR_UNLOAD:h,normalizeBinaryCriterion:function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},normalizeSortingInfo:function(e){return Array.isArray(e)||(e=[e]),(0,u.map)(e,function(e){var t={selector:(0,o.isFunction)(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},errorMessageFromXhr:p,aggregators:f,keysEqual:function(e,t,n){if(Array.isArray(e)){for(var i,o=(0,u.map)(t,function(e,t){return t}),a=0;a>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n}};e.exports=v},function(e,t,n){var i={array:n(152),remote:n(458)};e.exports=function(){var e=Array.isArray(arguments[0])?"array":"remote";return i[e].apply(this,arguments)},e.exports.queryImpl=i},function(e,t,n){var i=n(14).inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});e.exports=i},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],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),r=function(e){switch(void 0===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,t,n){return e.replace(new RegExp("("+function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")}(t)+")","gi"),n)},l=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.quadToObject=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}},t.format=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=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),i=i.replace(t,n);return i},t.replaceAll=s,t.isEmpty=l},function(e,t,n){var i=n(13).inArray,o=n(12),a=n(70),r=n(7),s=r.getNavigator(),l=n(16),u=n(84),c={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},d=function(e){return!!u.styleProp(e)},h=function(e,t){return(e.hasProperty("ontouchstart")||!!t)&&!e.hasProperty("callPhantom")}(r,s.maxTouchPoints),p=function(e,t){return e.hasProperty("PointerEvent")||!!t.pointerEnabled}(r,s),f=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=h,t.pointerEvents=p,t.touch=h||p&&f,t.transition=a(function(){return d("transition")}),t.transitionEndEventName=a(function(){return c[u.styleProp("transition")]}),t.animation=a(function(){return d("animation")}),t.nativeScrolling=function(){var e=l.real(),t=e.platform,n=e.version;return!(n&&n[0]<4&&"android"===t)&&i(t,["ios","android","win"])>-1||e.mac}(),t.styleProp=u.styleProp,t.stylePropPrefix=u.stylePropPrefix,t.supportProp=d,t.inputType=function(e){if("text"===e)return!0;var t=o.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}}},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){var n;return"string"==typeof e&&(e={paginate:!1,store:function(e){return new y({load:function(){return p.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}(e)}),void 0===e&&(e=[]),void 0===(e=Array.isArray(e)||e instanceof m?{store:e}:c({},e)).store&&(e.store=[]),n=e.store,"load"in e?n=function(){var t={};return h.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new y(t)}():Array.isArray(n)?n=new v(n):f.isPlainObject(n)&&(n=function(e){var t=e.type;return delete e.type,m.create(t,e)}(c({},n))),e.store=n,e}function r(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=r(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?function(e,t){return h.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}(e,n):h.map(e,t):e}return i(e,n?g.normalizeSortingInfo(n).length:0)}var u=n(14),c=n(0).extend,d=n(4),h=n(3),p=n(62),f=n(1),g=n(40),_=n(132),m=n(91),v=n(68),y=n(135),x=n(80),b=n(35).errors,w=n(13),C=n(222),k=n(6),S=k.when,I=k.Deferred,T=f.isString,D=f.isNumeric,E=f.isBoolean,A=f.isDefined,O="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(O),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var B=u.inherit({ctor:function(e){var t=this,n=this,o=0!==(e=a(e)).pushAggregationTimeout?g.throttleChanges(this._onPush,function(){return void 0===e.pushAggregationTimeout?5*n._changedTime:e.pushAggregationTimeout}):this._onPush;this._changedTime=0,this._onPushHandler=function(e){t._aggregationTimeoutId=o.call(t,e)},this._store=e.store,this._store.on("push",this._onPushHandler),this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=!!A(e.reshapeOnPush)&&e.reshapeOnPush,h.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,A(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._store.off("push",this._onPushHandler),this._disposeEvents(),clearTimeout(this._aggregationTimeoutId),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),h.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return D(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return E(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return D(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=r(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return E(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return T(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return C.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,n^(t=this.isLoading())&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==O&&t.fireEvent("loadError",arguments)})},_fireChanged:function(e){var t=new Date;this.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t._fireChanged()})},loadSingle:function(e,t){var n=this,i=new I,o=this.key(),a=this._store,r=this._createStoreLoadOptions();return this._scheduleFailCallbacks(i),arguments.length<2&&(t=e,e=o),delete r.skip,delete r.group,delete r.refresh,delete r.pageIndex,delete r.searchString,(e===o||a instanceof y&&!a._byKeyViaLoad()?a.byKey(t,r):(r.take=1,r.filter=r.filter?[r.filter,[e,t]]:[e,t],a.load(r))).fail(i.reject).done(function(e){!A(e)||w.isEmpty(e)?i.reject(new b.Error("E4009")):(Array.isArray(e)||(e=[e]),i.resolve(n._applyMapFunction(e)[0]))}),i.promise()},load:function(){function e(){if(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=new I;return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=d.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_onPush:function(e){if(this._reshapeOnPush)this.load();else{this.fireEvent("changing",[{changes:e}]);var t=this.group(),n=this.items(),i=0,o=this.paginate()||t?e.filter(function(e){return"update"===e.type}):e;t&&(i=Array.isArray(t)?t.length:1),_.applyBatch(this.store(),n,o,i,!0),this._fireChanged([{changes:e}])}},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof y&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=c({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),h.each(i,function(e,i){o.length&&o.push("or"),o.push([i,n,t])}),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){function n(n,a){i._disposed||o(t)&&function(){var o;n&&!Array.isArray(n)&&n.data&&(a=n,n=n.data),Array.isArray(n)||(n=[n]),o=c({data:n,extra:a},e),i.fireEvent("customizeLoadResult",[o]),S(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}()}var i=this;return e.data?(new I).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return i._isLoaded=!0,i._totalCount=isFinite(a.totalCount)?a.totalCount:-1,t.resolve(o,a)}var i=this,o=e.data,a=e.extra,r=e.storeLoadOptions;i._disposed||(o=i._applyPostProcessFunction(i._applyMapFunction(o)),f.isPlainObject(a)||(a={}),i._items=o,(!o.length||!i._paginate||i._pageSize&&o.length").addClass("dx-popup-content")).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass("dx-popup-fullscreen",e).toggleClass("dx-popup-normal",!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new x(this),this._defaultTemplates.bottom=new x(this)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:g.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("
    ").addClass(S).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(S),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,o){var a=this._getTemplateByOption(e);if(a instanceof x){var r=h(o,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons")});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:r}});var s=n.children("div");return n.replaceWith(s),s}var u=i(a.render({container:l(n)}));return u.hasClass("dx-template-wrapper")&&(n.replaceWith(u),n=u),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:l(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return function(e,t,n){var o=i("
    ").addClass("dx-closebutton");this._createComponent(o,m,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),i(n).append(o)}.bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=g.current().platform,o=0;return u(t,function(t,a){var r=c(a.shortcut),s=r?function(e){var t=g.current(),n=t.platform,i="bottom",o="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("win"===n)o="after";else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}}(a.shortcut):a;if(r&&"ios"===i&&o<2&&(s.toolbar="top",o++),s.toolbar=a.toolbar||s.toolbar||"top",s&&s.toolbar===e){r&&h(s,{location:a.location},this._getToolbarItemByAlias(a));var l="win"===i||"generic"===i;"done"===a.shortcut&&l||"cancel"===a.shortcut&&!l?n.unshift(s):n.push(s)}}.bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getLocalizationKey:function(e){return"done"===e.toLowerCase()?"OK":r(e,!0)},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(d(n,T)<0)return!1;var o=h({text:f.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:t.option("useFlatToolbarButtons")?"text":"contained"},e.options||{}),a=k+"-"+n;return this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=i("
    ").addClass(a).appendTo(r);t._createComponent(s,m,o)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=i("
    ").addClass(I).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(I),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){u(T,function(e,t){var n=k+"-"+t;d(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(){this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass("dx-popup-draggable",this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||s)();var e=this._splitPopupHeight(),t=e.header+e.footer+e.contentVerticalOffsets+e.popupVerticalOffsets,n=this.overlayContent().get(0),o={},a=this._getOptionValue("maxHeight",n),r=this._getOptionValue("minHeight",n),l=!D||!a&&!r;if(this.option("autoResizeEnabled")&&this._isAutoHeight()&&l){if(!D){var u=i(this._getContainer()).get(0),c=w.addOffsetToMaxHeight(a,-t,u),d=w.addOffsetToMinHeight(r,-t,u);o=h(o,{minHeight:d,maxHeight:c})}}else{var p=n.getBoundingClientRect().height-t;o={height:Math.max(0,p)}}this.$content().css(o)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:w.getVisibleHeight(e&&e.get(0)),footer:w.getVisibleHeight(t&&t.get(0)),contentVerticalOffsets:w.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:w.getVerticalOffsets(this.$content().get(0),!0)}},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),C.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass("dx-popup-fullscreen-width",this.overlayContent().outerWidth()===i(o).width())},_renderShadingDimensions:function(){this.option("fullScreen")?this._wrapper().css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments)},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=-1!==e.fullName.search(".options");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._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}});_("dxPopup",E),e.exports=E},function(e,t,n){var i=n(12),o=n(52),a=n(7),r=n(70),s=[],l=r(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){u.fire(),e()})}),u={add:function(e){var t=a.hasWindow();t&&("complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll)?e():(s.push(e),t&&l())},fire:function(){s.forEach(function(e){return e()}),s=[]}};e.exports=o(u)},function(e,t,n){var i=n(1),o=n(74),a=function(){function e(){}return function(t){return e.prototype=t,new e}}(),r=function(e,t,n,i){!i&&o.isWrapped(e[t])?o.assign(e[t],n):e[t]=n};t.clone=a,t.orderEach=function(e,t){var n,o,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(a.sort(function(e,t){var n=i.isNumeric(e),o=i.isNumeric(t);return n&&o?e-t:n&&!o?-1:!n&&o?1:et?1:0}),o=0;o").addClass("dx-invalid-message").html(t.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,h,u({integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._getInnerOptionsCache("validationTooltipOptions"))),this._$validationMessage.toggleClass(p,"auto"===n).toggleClass("dx-invalid-message-always","always"===n),this._setValidationMessageMaxWidth(),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")))},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(100,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=l(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},a="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(o.h=-o.h),"below"!==e&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:n+a[0],at:n+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.$element().toggleClass("dx-state-readonly",!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.$element()[0];o.data(e,f,null),clearTimeout(this.showValidationMessageTimeout),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"validationTooltipOptions":this._innerOptionChanged(this._validationMessage,e);break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}}).include(d);e.exports=g},function(e,t,n){function i(e){var t=y(e);return f[t]||f[g[t]||a()]}function o(e,t){return g[e+"."+t]||_[e+"."+t]||g[e]}function a(e,t){if(!arguments.length)return x||o(p.current())||u;var n=y(t);return x=(e&&e.platform?function(e,t,n){return o(e+t,n)||o(e,n)}(y(e.platform),e.version,n):o(y(e),n))||x,this}function r(e,t){var n=function(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}(e,".")||{name:e},i=n.name,o=n.scheme;o?(g[i]=g[i]||t,g[i+"."+o]=t):g[i]=t}function s(e,t,n,i){var o=n?n[t]:i;void 0!==o&&void 0===e[t]&&(e[t]=o)}function l(e,t,n,i){var o=n?n[t]:i;void 0!==o&&(e[t]=m(!0,{},o,e[t]))}var u,c=n(0).extend,d=n(3).each,h=n(11),p=n(30),f={},g={},_={},m=c,v=d,y=h.normalizeEnum,x=null,b=0,w={};m(t,{currentTheme:a,registerTheme:function(e,t){var n=y(e&&e.name);n&&(e.isDefault&&(u=n),r(n,n),f[n]=m(!0,{},i(t),function(e){return s((e=m(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e)).loadingIndicator,"backgroundColor",e),s(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),s(e.map.background,"color",null,e.backgroundColor),s(e.title.font,"color",null,e.primaryTitleColor),l(e.title,"subtitle",null,e.title),s(e.legend.font,"color",null,e.secondaryTitleColor),s(e.legend.border,"color",null,e.gridColor),function(e){var t=e["chart:common:axis"],n="color";v([t.grid,t.minorGrid],function(t,i){s(i,n,null,e.gridColor)}),v([t,t.tick,t.minorTick,t.label.font],function(t,i){s(i,n,null,e.axisColor)}),s(t.title.font,n,null,e.secondaryTitleColor),s(e.gauge.scale.label.font,n,null,e.axisColor),s(e.gauge.scale.tick,n,null,e.backgroundColor),s(e.gauge.scale.minorTick,n,null,e.backgroundColor),s(e.rangeSelector.scale.label.font,n,null,e.axisColor)}(e),v(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(t,n){s(e[n],"redrawOnResize",e),s(e[n],"containerBackgroundColor",null,e.backgroundColor),l(e[n],"tooltip",e),l(e[n],"export",e)}),v(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(t,n){l(e[n],"loadingIndicator",e),l(e[n],"legend",e),l(e[n],"title",e)}),v(["chart","pie","polar"],function(t,n){l(e,n,null,e["chart:common"])}),v(["chart","polar"],function(t,n){e[n]=e[n]||{},l(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),l(e.rangeSelector.chart,"commonSeriesSettings",e.chart),l(e.rangeSelector.chart,"dataPrepareSettings",e.chart),s(e.treeMap.group.border,"color",null,e.gridColor),s(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),s(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),s(e.map.legend,"backgroundColor",e),function(e){var t=e.map;v(["area","line","marker"],function(e,n){l(t,"layer:"+n,null,t.layer)}),v(["dot","bubble","pie","image"],function(e,n){l(t,"layer:marker:"+n,null,t["layer:marker"])})}(e),e}(e)))},getTheme:i,registerThemeAlias:function(e,t){r(y(e),y(t))},registerThemeSchemeAlias:function(e,t){_[e]=t},refreshTheme:function(){return v(w,function(){this.refresh()}),this},addCacheItem:function(e){var t=++b;e._cache=t,w[t]=e},removeCacheItem:function(e){delete w[e._cache]}})},function(e,t,n){var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(52),a=n(13).inArray,r=n(4).escapeRegExp,s=n(3).each,l=n(1).isPlainObject,u=n(274),c=n(27),d=n(21),h=["currency","fixedpoint","exponential","percent","decimal"],p={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},f=o({numericFormats:h,defaultLargeNumberFormatPostfixes:{1:"K",2:"M",3:"B",4:"T"},_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),s(t,function(e,t){a(t,h)>-1?n.formatType=t:t in p&&(n.power=p[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,4)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",this._formatNumberCore(e,t.formatType,n).replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,10),o=this._getNumberByPower(e,i,10);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=10&&(i++,o/=10),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(o,"fixedpoint",t)+"E"+n},_addZeroes:function(e,t){for(var n=Math.pow(10,t),i=e<0?"-":"",o=(e=(Math.abs(e)*n>>>0)/n).toString();o.length15?NaN:+o*this.getSign(e,t)}},_calcSignificantDigits:function(e){var t=e.split("."),n=i(t,2),o=n[0],a=n[1],r=function(e){for(var t=-1,n=0;n-1?e.length-t:0},s=0;return o&&(s+=r(o.split(""))),a&&(s+=r(a.split("").reverse())),s}});e.exports=f},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,o=n(3).each,a=n(14).inherit(e),r=a,s=new r(e),l={},u=function(t,n){o(t,function(t){i(s[t])?!n&&e[t]||(e[t]=function(){return s[t].apply(e,arguments)}):(n&&(l[t]=e[t]),e[t]=s[t])})};return u(e,!0),e.inject=function(e){r=r.inherit(e),s=new r,u(e)},e.resetInjection=function(){t(e,l),r=a,s=new a},e}},function(e,t){e.exports=window.jQuery},function(e,t,n){var i=n(2),o=n(5),a=n(457),r=n(18),s=n(0).extend,l=n(3).each,u=n(4).noop,c=n(1).isDefined,d=n(186),h=n(20).compileGetter,p=n(45).DataSource,f=n(279),g=n(6),_=g.when,m=g.Deferred,v="dxItemDeleting",y=function(e){return-1!==e},x=a.inherit({_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return s(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=h(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataSource&&this._dataSource.key()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new f({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){e._dataSource._applyMapFunction(t)}):(new m).resolve([])},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=d;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),l(e,function(e,i){var o=t._getIndexByKey(i);y(o)&&n.push(o)}),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done(function(){return e._normalizeSelectedItems()}),this.callBase();var t=this._getSelectedItemIndices();this._renderSelection(t,[])},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){var t,n;switch(e=e||this._chooseSelectOption()){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),c(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":var i=this.option("selectedItems")||[];if(n=this._editStrategy.getIndexByItemData(i[0]),this.option("selectionRequired")&&!y(n))return this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",i[0]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(i));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!y(n))return this._syncSelectionOptions("selectedIndex");c(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",-1));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")){var a=this._getIndexByKey(o[0]);if(!y(a))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(o)}return(new m).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e);return c(t)&&t.length||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1||!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 m).resolve().promise()},_renderSelection:u,_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:i(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=i(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),o=this._isItemSelected(n);this._processSelectableItem(t,o)}},_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,s=[],l=[];for(t._editStrategy.beginCache(),r=0;r-1){var i=o.data(e,y)||0;o.data(e,y,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){if(!o.data(e,y)){var t=r(e,x);x.splice(t,1),b.splice(t,1),w.splice(t,1),o.removeData(e,y)}}};u(_,C),u(m,C),u(v,C);var k=function(e){var t=r(e.get(0),x),n=b[t],i=e.find(n.join(", "));return-1!==r(void 0,n)&&(i=i.add(e)),i},S=function(e){var t=r(e.get(0),x);return w[t]};h({emitter:d.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=a(e.targetElements||(null===e.targetElements?[]:x));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=c.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(f,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e);t===this._currentDropTarget||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};c.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(x,function(o,a){if(n._checkDropTargetActive(a)){var r=i(a);s.each(k(r),function(o,a){var s=i(a);n._checkDropTarget(S(r),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return!(t=t||i===e||l(i,e))}),t},_checkDropTarget:function(e,t,n){if(t.get(0)===this._$element.get(0))return!1;var i=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()}(e,t);if(n.pageXi.left+o.width)&&!(n.pageY>i.top+o.height)&&t},_end:function(e){var t=c.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}}),events:[p,f,g]}),t.move=f,t.start=p,t.end=g,t.enter=_,t.leave=m,t.drop=v},function(e,t,n){var i=n(27),o=n(216).getFormatter,a=n(217),r=n(1),s=r.isString,l=r.isDate,u=r.isNumeric,c="number",d=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,h=/^(\d{2}):(\d{2})(:(\d{2}))?$/,p=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],f=function(e,t){var n,i;return s(e)&&!t&&(n=g(e)),n||(i=!l(e)&&Date.parse(e),n=u(i)?new Date(i):e),n},g=function(e){var t=e.match(d),n=function(e){return+e||0};if(t){var i=t[1],o=--t[3],a=t[5],r=0,s=0;r=n(t[14]),s=n(t[16]),"-"===t[13]&&(r=-r,s=-s);var l=n(t[6])-r,u=n(t[8])-s,c=n(t[10]),p=function(e){return n(e=e||"")*Math.pow(10,3-e.length)}(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,u,c,p)):new Date(i,o,a,l,u,c,p)}if(t=e.match(h))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))};e.exports={dateParser:f,deserializeDate:function(e){return"number"==typeof e?new Date(e):f(e,!i().forceIsoDateParsing)},serializeDate:function(e,t){return t?l(e)?t===c?e&&e.valueOf?e.valueOf():null:o(t,a)(e):null:e},getDateSerializationFormat:function(e){return"number"==typeof e?c:s(e)?(i().forceIsoDateParsing&&(t=function(e,t){var n=e.match(d),i="";if(n){for(var o=1;o=0?"yyyy/MM/dd HH:mm:ss":"yyyy/MM/dd")):e?null:void 0;var t}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getQuill=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(18)),o=n(7),a=void 0;t.getQuill=function(){return a||(a=function(){var e=(0,o.getWindow)(),t=e&&e.Quill||n(552);if(!t)throw i.default.Error("E1041","Quill");return t}()),a}},function(e,t,n){e.exports=n(454)},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(2),o=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")};t.getImageSourceType=o,t.getImageContainer=function(e){var t="dx-icon";switch(o(e)){case"image":return i("").attr("src",e).addClass(t);case"fontIcon":return i("").addClass(t+" "+e);case"dxIcon":return i("").addClass(t+" "+t+"-"+e);default:return null}}},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;as)return 1}return 0}},function(e,t,n){var i=n(6).Deferred,o=n(12),a=n(429),r=n(7),s=r.getWindow(),l=n(0).extendFromObject,u=n(1).isDefined,c=n(83),d=n(52),h="success",p="error",f=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},g=function(e){e.parentNode.removeChild(e)},_=function(e){return o.getHead().appendChild(e)},m=function(e){var t=f({text:e});_(t),g(t)},v=function(e){var t=f({src:e});return new c(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),g(t)};for(var r in i)o.listen(t,r,a);_(t)})},y=function(e,t,n){var i=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText}(t);switch(n){case"jsonp":m(i);break;case"script":m(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,"parsererror",n)}break;default:e.resolve(i,h,t)}},x=function(e){if(!r.hasWindow())return!0;var t=!1,n=o.createElement("a"),i=o.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},b=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||s.location.href;return i||e.cache||((n=n||{})._=Date.now()),n&&!e.upload&&(i||(n=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")}(n)),"GET"===w(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}},w=function(e){return(e.method||"GET").toUpperCase()},C=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||function(e){var t;return e.data&&!e.upload&&"GET"!==w(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t}(e),t.Accept=t.Accept||function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]}(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t};e.exports=d({sendRequest:function(e){var t,n=a.getXhr(),o=new i,r=o.promise(),l=!u(e.async)||e.async,c=e.dataType,d=e.timeout||0;e.crossDomain=x(e.url);var f="jsonp"===c||"script"===c;void 0===e.cache&&(e.cache=!f);var g=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}}(e),_=C(e),m=b(e,_),k=m.url,S=m.parameters;if(g&&(s[g]=function(e){o.resolve(e,h,n)}),e.crossDomain&&f)return v(k).then(function(){"jsonp"!==c&&o.resolve(null,h,n)},function(){o.reject(n,p)}),r;if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(w(e),k,l,e.username,e.password),l&&(n.timeout=d,t=function(e,t){return e&&setTimeout(function(){t.customStatus="timeout",t.abort()},e)}(d,n)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),function(e){return 200<=e&&e<300}(n.status)?function(e){return 204!==e}(n.status)?y(o,n,c):o.resolve(null,"nocontent",n):o.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var I in e.xhrFields)n[I]=e.xhrFields[I];for(var T in"arraybuffer"===e.responseType&&(n.responseType=e.responseType),_)_.hasOwnProperty(T)&&u(_[T])&&n.setRequestHeader(T,_[T]);return e.beforeSend&&e.beforeSend(n),n.send(S),r.abort=function(){n.abort()},r}})},function(e,t,n){var i=n(1),o=n(22),a=n(51),r=n(33),s=n(52);n(148),e.exports=s({format:function(e,t){var n=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),o=i.isNumeric(e)||i.isDate(e);return n&&o?i.isFunction(t)?t(e):(i.isString(t)&&(t={type:t}),i.isNumeric(e)?a.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){n.push(function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"})}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){n.unshift(function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")})}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{n.unshift(function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")})}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i;if(e.length>1)for(t=o.getDatesDifferences(e[0],e[1]),i=1;i0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return this.getDateFormatByDifferences(t)},getDateFormatByTickInterval:function(e,t,n){var a,r,s=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}};return n=i.isString(n)?n.toLowerCase():n,a=o.getDatesDifferences(e,t),e!==t&&function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()==1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()==1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()==1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()==1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()==1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()==1&&(e.month=!0,e.year=!1)}(a,e>t?t:e,e>t?e:t),s(a,r=o.getDateUnitInterval(a),!0),s(a,r=o.getDateUnitInterval(n||"second"),!1),a[{week:"day"}[r]||r]=!0,this.getDateFormatByDifferences(a)}})},function(e,t,n){var i=n(2),o=n(12),a=function(e,t){if(!r(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=e.isContentEditable;return a||l?!o:s&&e.href||i},r=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return a(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&a(t,n)},focused:function(e){var t=i(e).get(0);return o.getActiveElement()===t}}},function(e,t,n){var i=n(2),o=n(71),a=n(5),r=n(130),s=n(3),l=n(1).isPrimitive,u=function(){var e=function(e,t,n){return t(function(){return e},n)},t=function(e,t,n,i,o){var a={},r=n.slice(),l=s.map(n,function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(a[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||o(a)})});return function(){s.each(l,function(e,t){t()})}};return function(n,i,o,a,r){var s,u;return s=e(n,i,function(e){return u&&u(),l(e)?void r(e):void(u=t(e,i,o,a,function(e){r(e)}))}),function(){u&&u(),s&&s()}}}();e.exports=o.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=i(e.container),n=u(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return a.on(t,r,n),t.contents()}})},function(e,t,n){var i=n(2),o=n(5),a=n(7),r=n(0).extend,s=n(27),l=n(21),u=n(10).getPublicElement,c=n(125),d=n(4),h=n(3).each,p=n(1),f=n(13).inArray,g=n(126),_=n(37),m=n(131),v=m.abstract,y="VisibilityChange",x=m.inherit({_getDefaultOptions:function(){return r(this.callBase(),{width:void 0,height:void 0,rtlEnabled:s().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),g.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:v,_dimensionChanged:v,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){return!(this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e))&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);c.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==v},_renderComponent:function(){this._initMarkup(),a.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=r({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:n,height:i})},_isCssUpdateRequired:function(e,t,n){return!!(n||t||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+y;o.off(e.$element(),t),o.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+y,n="dxshown."+this.NAME+y;e._isHidden=!e._isVisible(),o.off(e.$element(),t),o.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),o.off(e.$element(),n),o.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==v&&a.hasWindow()},_clean:d.noop,_modelByElement:function(){return(this.option("modelByElement")||d.noop)(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw l.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&c.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass("dx-rtl",e)},_createComponent:function(e,t,n){var o=this;n=n||{};var a,s=d.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),l=o.option("nestedComponentOptions")||d.noop;if(o._extendConfig(n,r({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},l(this))),p.isString(t)){var u=i(e)[t](n);a=u[t]("instance")}else e&&((a=t.getInstance(e))?a.option(n):a=new t(e,n));if(a){var c=function(e){f(e.name,s)>=0&&a.option(e.name,e.value)};o.on("optionChanged",c),a.on("disposing",function(){o.off("optionChanged",c)})}return a},_extendConfig:function(e,t){h(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return r(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return r(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t];if(!n)return;var i=n.name;0!==i.indexOf("aria-")&&-1===i.indexOf("dx-")&&"role"!==i&&"style"!==i&&"tabindex"!==i||e.removeAttribute(i)}},_removeClasses:function(e){var t=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)});e.className=t.join(" ")},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return u(this.$element())},dispose:function(){var e=this.$element().get(0);_.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});x.getInstance=function(e){return g.getInstanceByElement(i(e),this)},x.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=x},function(e,t,n){var i=n(3).each,o=n(113),a=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),o.fire(e,n)};a.callbacks=o,e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(40),a=i(n(41)),r=n(35),s=i(n(91)),l=i(n(132)),u=s.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw r.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,a.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=l.default.indexByKey(this,this._array,e);return-1===t?(0,o.rejectedPromise)(r.errors.Error("E4009")):(0,o.trivialPromise)(this._array[t])},_insertImpl:function(e){return l.default.insert(this,this._array,e)},_pushImpl:function(e){l.default.applyBatch(this,this._array,e)},_updateImpl:function(e,t){return l.default.update(this,this._array,e,t)},_removeImpl:function(e){return l.default.remove(this,this._array,e)},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=u},function(e,t){e.exports=window.Globalize},function(e,t,n){e.exports=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}}},function(e,t,n){var i=n(2),o=n(12),a=n(25),r=n(10),s=n(14),l=s.abstract,u=a(),c=s.inherit({render:function(e){var t=(e=e||{}).onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),u.fire(n,e.container),t&&t(),n},_ensureResultInContainer:function(e,t){if(t){var n=i(t),a=r.contains(n.get(0),e.get(0));if(n.append(e),!a)o.getBody().contains(n.get(0))&&r.triggerShownEvent(e)}},_renderCore:l});e.exports=c,e.exports.renderedCallbacks=u},function(e,t,n){var i=n(2),o="dx-inkripple",a="dx-inkripple-wave",r="dx-inkripple-showing",s="dx-inkripple-hiding",l=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("
    ").addClass(o).appendTo(e)),t},u=function(e,t){for(var n=l(e),o=n.children("."+a).toArray(),r=o.length;r").appendTo(n).addClass(a);o.push(s[0])}return i(o)},c=function(e,t){var n=u(t.element,e.wavesNumber).eq(t.wave||0);e.hidingTimeout&&clearTimeout(e.hidingTimeout),p(n),n.css(function(e,t){var n,i,o=t.element,a=o.outerWidth(),r=o.outerHeight(),s=parseInt(Math.sqrt(a*a+r*r)),l=Math.min(4e3,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(r-l)/2;else{var u=t.event,c=t.element.offset();n=u.pageX-c.left-l/2,i=u.pageY-c.top-l/2}return{left:n,top:i,height:l,width:l}}(e,t)),e.showingTimeout=setTimeout(d.bind(this,e,n),0)},d=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)},h=function(e){return{showingScale:e?1e3:300,hidingScale:300,hidingOpacity:300}},p=function(e){e.removeClass(s).css("transitionDuration","")},f=function(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=u(t.element,t.wavesNumber).eq(t.wave||0),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(s).removeClass(r).css("transitionDuration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(p.bind(this,n),a)};e.exports={render:function(e){void 0===(e=e||{}).useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||2,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:h(e.useHoldAnimation)};return{showWave:c.bind(this,t),hideWave:f.bind(this,t)}}}},function(e,t,n){function i(e){return e>0?Math.round(e):0}function o(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||C[Number(t.isNode())](e,t),t.applyState()}function a(e,t){t.updateLabelStyle(),t.labelState.visible&&function(e,t,n,i){var o=t.data[e.labelField];t.label=o?String(o):null,(o=t.customLabel||t.label)&&(t.text=e.renderer.text(o).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text))}(e,t,t.labelState,t.labelParams)}function r(e,t){var n,i=t.nodes,o=[],a=[],r=0,s=o.length=a.length=i.length;for(n=0;n0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n0&&(a.value=Number(s[o.valueField])),h+=a.value;t.nodes=u,t.value=h}(n,(e=t._processDataSourceItems(t._dataSourceItems()||[])).items,0,{itemsField:!e.isPlain&&t._getOption("childrenField",!0)||"items",valueField:t._getOption("valueField",!0)||"value",buildNode:t._handlers.buildNode,ctx:t._context,nodes:t._nodes}),t._onNodesCreated(),t._handlers.endBuildNodes(),t._change(["NODES_RESET"])},_onNodesCreated:m.noop,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,o=i(t.border.width),a=o/2,r=1&o?.5:0,s=t.label,l=e._context.settings[0];e._change(["TILES","LABELS"]),l.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(s.shadow),e._calculateLabelSettings(l,s,e._filter.id),n.tileEdge===a&&n.tileInner===r||(n.tileEdge=a,n.tileInner=r,e._change(["TILING"]))},_changeGroupSettings:function(){var e,t=this,n=t._getOption("group"),o=n.label,a=t._rectOffsets,r=i(n.border.width),s=r/2,l=1&r?.5:0,u=i(n.padding),c=t._context.settings[1];t._change(["TILES","LABELS"]),c.state=t._handlers.calculateState(n),t._calculateLabelSettings(c,o),e=n.headerHeight>=0?i(n.headerHeight):c.labelParams.height+2*i(o.paddingTopBottom),t._headerHeight!==e&&(t._headerHeight=e,t._change(["TILING"])),t._groupPadding!==u&&(t._groupPadding=u,t._change(["TILING"])),a.headerEdge===s&&a.headerInner===l||(a.headerEdge=s,a.headerInner=l,t._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var o=this._getTextBBox(t.font),a=i(t.paddingLeftRight),r=i(t.paddingTopBottom),s=this._getOption("tile.label"),l=this._getOption("group.label");e.labelState=(0,h.buildTextAppearance)(t,n),e.labelState.visible=!("visible"in t&&!t.visible),this._suppressDeprecatedWarnings(),e.labelParams={height:o.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:r,paddingLeftRight:a,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0),tileLabelWordWrap:s.wordWrap,tileLabelOverflow:s.textOverflow,groupLabelOverflow:l.textOverflow},this._resumeDeprecatedWarnings()},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){!function e(t,n,i){var o,a,r=n.nodes,s=r.length;for(a=0;a",n,""):o.push(" />"),o.join("")}};t.default=o},function(e,t,n){var i=n(2),o=n(47).add,a=n(25)(),r=i(),s=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);r=n;var o=!!n.length,l=s();e=o?n:i("body"),a.fire(o?s():i(),l)}}();o(function(){s(".dx-viewport")}),t.value=s,t.changeCallback=a,t.originalViewPort=function(){return r}},function(e,t,n){var i,o=n(2),a=n(4),r=n(3).each,s=n(7).getWindow(),l=n(12),u=n(1).isWindow,c=n(0).extend,d=n(26),h=n(44),p=/left|right/,f=/top|bottom/,g=/fit|flip|none/,_=function(e){var t={h:"center",v:"center"},n=a.splitPair(e);return n&&r(n,function(){var e=String(this).toLowerCase();p.test(e)?t.h=e:f.test(e)&&(t.v=e)}),t},m=function(e){return a.pairToObject(e)},v=function(e){var t=a.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return g.test(n)||(n="none"),g.test(i)||(i=n),{h:n,v:i}},y=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},x=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},b=function(e,t){var n=0;return e.myLocationt.max&&(n+=e.myLocation-t.max),n},w=function(e,t,n){return t.myLocationn.max?"h"===e?"right":"bottom":"none"},C=function(e){e.myLocation=e.atLocation+y(e.atAlign)*e.atSize-y(e.myAlign)*e.mySize+e.offset},k={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocationt.max)){var n=c({},e,{myAlign:x(e.myAlign),atAlign:x(e.atAlign),offset:-e.offset});C(n),n.oversize=b(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},S=function(){var e=o("
    ").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},I={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},T=function(e,t){var n=o(e),a=n.offset(),r=c(!0,{},I,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var d=_(t.my),p=_(t.at),f=o(t.of).length&&t.of||s,g=m(t.offset),y=v(t.collision),x=t.boundary,T=m(t.boundaryOffset),D={mySize:n.outerWidth(),myAlign:d.h,atAlign:p.h,offset:g.h,collision:y.h,boundaryOffset:T.h},E={mySize:n.outerHeight(),myAlign:d.v,atAlign:p.v,offset:g.v,collision:y.v,boundaryOffset:T.v};if(f.preventDefault)D.atLocation=f.pageX,E.atLocation=f.pageY,D.atSize=0,E.atSize=0;else if(f=o(f),u(f[0]))D.atLocation=f.scrollLeft(),E.atLocation=f.scrollTop(),D.atSize=f[0].innerWidth>f[0].outerWidth?f[0].innerWidth:f.width(),E.atSize=f[0].innerHeight>f[0].outerHeight?f[0].innerHeight:f.height();else if(9===f[0].nodeType)D.atLocation=0,E.atLocation=0,D.atSize=f.width(),E.atSize=f.height();else{var A=f.offset();D.atLocation=A.left,E.atLocation=A.top,D.atSize=f.outerWidth(),E.atSize=f.outerHeight()}C(D),C(E);var O=function(){var e=o(s),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),u=l.getDocumentElement(),c=h.touch?u.clientWidth/t:1,d=h.touch?u.clientHeight/n:1;void 0===i&&S();var p=t,f=n;if(x){var g=o(x),_=g.offset();a=_.left,r=_.top,p=g.width(),f=g.height()}return{h:{min:a+D.boundaryOffset,max:a+p/c-D.mySize-D.boundaryOffset},v:{min:r+E.boundaryOffset,max:r+f/d-E.mySize-E.boundaryOffset}}}();D.oversize=b(D,O.h),E.oversize=b(E,O.v),D.collisionSide=w("h",D,O.h),E.collisionSide=w("v",E,O.v),k[D.collision]&&k[D.collision](D,O.h),k[E.collision]&&k[E.collision](E,O.v);var B=function(e){return t.precise?e:Math.round(e)};return c(!0,r,{h:{location:B(D.myLocation),oversize:B(D.oversize),fit:D.fit,flip:D.flip,collisionSide:D.collisionSide},v:{location:B(E.myLocation),oversize:B(E.oversize),fit:E.fit,flip:E.flip,collisionSide:E.collisionSide},precise:t.precise}),r},D=function(e,t){var n=o(e);if(!t)return n.offset();d.resetPosition(n,!0);var i=n.offset(),a=t.h&&t.v?t:T(n,t),r=function(e){return t.precise?e:Math.round(e)};return d.move(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a};D.inverseAlign||(D.inverseAlign=x),D.normalizeAlign||(D.normalizeAlign=_),e.exports={calculateScrollbarWidth:S,calculate:T,setup:D,offset:function(e){return e=o(e).get(0),u(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()}}},function(e,t,n){var i=n(53),o=n(27),a=o().useJQuery;i&&!1!==a&&o({useJQuery:!0}),e.exports=function(){return i&&o().useJQuery}},function(e,t,n){function i(e){return function t(n,i,o,a,r,s){function l(e,r,s){_(t(n,i,o,a,r,s)).done(e.resolve)}var u,c,d,h;for(a=a||[],n=n||[],c=r=r||0;cr&&c%1e4==0&&new Date-y>=300)return y=new Date,d=new m,setTimeout(l(d,c,!1),0),d;if(u=n[c],!s){if(a.unshift(u),o&&!1===i(a,c))return;if(u.children&&(h=t(u.children,i,o,a),e&&h))return d=new m,h.done(l(d,c,!0)),d}if(s=!1,!o&&!1===i(a,c))return;a.shift(),n[c]!==u&&c--}}}function o(e){return l.map(["year","quarter","month"],function(t,n){return u({},e,{groupInterval:t,groupIndex:n})})}var a=n(1),r=n(62),s=n(20),l=n(3),u=n(0).extend,c=n(1).isDefined,d=n(33),h=n(63),p=n(45),f=n(68),g=n(6),_=g.when,m=g.Deferred,v=t.setFieldProperty=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];o.hasOwnProperty(t)&&!i||(o[t]=a),e[t]=n};t.sendRequest=function(e){return r.sendRequest(e)};var y=new Date;t.foreachTree=i(!1),t.foreachTreeAsync=i(!0),t.findField=function(e,t){var n,i;if(e&&a.isDefined(t))for(n=0;na?i=1:o=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r0&&e.groupInterval;t&&!e.customizeText&&v(e,"customizeText",function(n){var i=n.value+t,o=h.format(i,e.format);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i1&&(e=e.select(function(e){return r({},e,{items:i(l(e.items),t.slice(1)).toArray()})})),e}function o(e,t){var n=[];return s(e,function(e,i){a(t,function(e){return i.selector===e.selector}).length<1&&n.push(i)}),n.concat(t)}var a=n(4).grep,r=n(0).extend,s=n(3).each,l=n(152),u=n(40).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:function(e,t,n){var a=(t=t||{}).filter;if(a&&(e=e.filter(a)),n)return e;var r=t.sort,l=t.select,c=t.group,d=t.skip,h=t.take;return c&&((c=u(c)).keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(r||c)&&(r=u(r||[]),c&&!c.keepInitialKeyOrder&&(r=o(c,r)),s(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),l&&(e=e.select(l)),c&&(e=i(e,c)),(h||d)&&(e=e.slice(d||0,h)),e}}},function(e,t,n){var i=n(1).isFunction,o=function(){},a=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):o},r={info:a("info"),warn:a("warn"),error:a("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}return{assert:e,assertParam:function(t,n){e(null!=t,n)}}}();t.logger=r,t.debug=s},function(e,t,n){var i=n(6),o=n(7),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||((s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()}).resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(32).camelize,o=n(70),a=n(1),r=n(12),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},u=o(function(){return r.createElement("dx").style}),c=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],d=function(e,t,n){if(e){n=a.isNumeric(n)?n+="px":n;for(var i=0;in;){var i=t[n];if(!1===e(i))break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){p.isMouseEvent(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return d(t,function(e,t){return!(i=i||n[e]!==t)}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),o.push(i))}for(var n=this,o=[],a=i(e.target);a.length;){var r=s.data(a.get(0),m)||[];d(r,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=c(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n;e[i?"pageY":"pageX"]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}})),y="dxEmitterSubscription";e.exports=function(e){var t=e.emitter,n=e.events[0],i=e.events;d(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,y)||{},o=s.data(e,m)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,m,o),s.data(e,y,i)},add:function(e,t){s.data(e,m)[n].configure(u({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,y),o=s.data(e,m),r=o[n];delete t[a];var l=!0;d(i,function(e,n){return l=l&&!t[n]}),l&&(v.isActive(e)&&v.resetEmitter(r),r&&r.dispose(),delete o[n])}})})}},function(e,t,n){var i=n(9),o=n(114),a=n(88),r=Math.abs,s="dxhold";a({emitter:o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>5||r(t.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}}),bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){function i(e){var t;this.baseColor=e,e&&(t=String(e).toLowerCase().replace(/ /g,""),t=function(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=h.length;n.5?c/(2-s):c/s,i=function(e,t,n,i){switch(Math.max(e,t,n)){case e:return(t-n)/i+(tn?n:e}function a(e,t,n){var i,o,a,r,s,l,u;switch(o=(a=(100-t)*n/100)+(r=e%60/60*(n-a)),i=n-r,Math.floor(e%360/60)){case 0:s=n,l=o,u=a;break;case 1:s=i,l=n,u=a;break;case 2:s=a,l=n,u=o;break;case 3:s=a,l=i,u=n;break;case 4:s=o,l=a,u=n;break;case 5:s=n,l=a,u=i}return[Math.round(2.55*s),Math.round(2.55*l),Math.round(2.55*u)]}function r(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function s(e,t,n){return(n=function(e){return e<0&&(e+=1),e>1&&(e-=1),e}(n))<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var i,o,a;if(e=u(e,360),t=u(t,100),n=u(n,100),0===t)i=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=s(c,l,r("r",e)),o=s(c,l,r("g",e)),a=s(c,l,r("b",e))}return[p(255*i),p(255*o),p(255*a)]}function u(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function c(e,t,n){return t=t||0,n=n||255,!(e%1!=0||en||"number"!=typeof e||isNaN(e))}var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},h=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=a(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=l(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],p=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=o(this.r+e),t.g=o(this.g+e),t.b=o(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),a=new i;return a.r=o(p(this.r*(1-t)+n.r*t)),a.g=o(p(this.g*(1-t)+n.g*t)),a.b=o(p(this.b*(1-t)+n.b*t)),a},toHex:function(){return e=this.r,t=this.g,n=this.b,"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1);var e,t,n},getPureColor:function(){return new i("rgb("+a(this.hsv.h,100,100).join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(c(e)&&c(t)&&c(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=l(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){var i=n(14),o=i.abstract,a=n(80),r=n(3).each,s=n(35),l=n(40),u=n(20).compileGetter,c=n(81).queryByOptions,d=n(6).Deferred,h=n(4).noop,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=u(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return c(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new d;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return c(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,push:function(e){this._pushImpl(e),this.fireEvent("push",[e])},_pushImpl:h,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.registerClass=function(e,t){return t&&(p[t]=e),e},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return f.registerClass(i,n),i}}(f.inherit),e.exports=f},function(e,t,n){e.exports=n(490)},function(e,t,n){var i=n(2),o=n(7).getNavigator(),a=n(44),r=n(30),s=n(0).extend,l=n(16),u=n(8),c=n(17),d="dx-loadindicator-segment",h=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=r.current();return this.callBase().concat([{device:function(){return"android"===l.real().platform&&!/chrome/i.test(o.userAgent)},options:{viaImage:!0}},{device:function(){return r.isIos7(e)},options:{_animatingSegmentCount:11}},{device:function(){return r.isMaterial(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return r.isGeneric(e)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("
    ").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("
    ").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!a.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("
    ").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("
    ").addClass(d).addClass(d+t);e&&n.append(i("
    ").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});u("dxLoadIndicator",h),e.exports=h},function(e,t,n){var i=n(2),o=n(5),a=n(44),r=n(31),s=n(4),l=n(1),u=n(0).extend,c=n(10).getPublicElement,d=n(7),h=d.getNavigator(),p=n(12),f=n(16),g=n(8),_=n(66),m=n(64),v=n(9),y=n(511),x=n(295),b=n(188),w=n(6).when,C="dxScrollable",k="dx-scrollable",S="dx-scrollable-content",I="vertical",T="horizontal",D="both",E=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!f.isSimulator()&&"generic"===f.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},A=_.inherit({_getDefaultOptions:function(){return u(this.callBase(),{disabled:!1,onScroll:null,direction:I,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(E(),[{device:function(){return a.nativeScrolling&&"android"===f.real().platform&&!r.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(k),t=this._$container=i("
    ").addClass("dx-scrollable-container"),n=this._$wrapper=i("
    ").addClass("dx-scrollable-wrapper"),a=this._$content=i("
    ").addClass(S);p.hasDocumentProperty("onbeforeactivate")&&r.msie&&r.version<12&&o.on(e,v.addNamespace("beforeactivate",C),function(e){i(e.target).is(m.focusable)||e.preventDefault()}),a.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==f.real().deviceType||h.platform.indexOf("Mac")>-1&&r.webkit||this.$element().addClass("dx-scrollable-customizable-scrollbars")},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this,t=e.option("rtlEnabled");this._updateBounds(),t&&this.option("direction")!==I&&s.deferUpdate(function(){var t=e.scrollWidth()-e.clientWidth();s.deferRender(function(){e.scrollTo({left:t})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};o.off(this._$wrapper,"."+C),o.on(this._$wrapper,v.addNamespace(y.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(y.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(y.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(y.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(y.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(y.stop,C),e.handleStop.bind(e)),o.off(this._$container,"."+C),o.on(this._$container,v.addNamespace("scroll",C),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+T).removeClass("dx-scrollable-"+I).removeClass("dx-scrollable-"+D).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new b(this):new x.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&d.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===I?"left":e===T?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(l.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:l.isDefined(t)?-t:void 0,top:l.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==I?-e:void 0,top:i!==T?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===I?t!==T:e===T?t!==I:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(D)&&e.vertical&&e.horizontal?this._allowedDirectionValue=D:this._isDirection(T)&&e.horizontal?this._allowedDirectionValue=T:this._isDirection(I)&&e.vertical?this._allowedDirectionValue=I:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return c(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return w(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){((e=this._normalizeLocation(e)).top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-s.ensureDefined(e.left,t.left),top:t.top-s.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=i(e),o=this.$content().find(e).length,a=n.parents("."+k).length-n.parents("."+S).length==0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==I&&(r.left=this._scrollToElementPosition(n,T,t)),s!==T&&(r.top=this._scrollToElementPosition(n,I,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===I,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left")-r,l=e[i?"outerHeight":"outerWidth"](),u=i?this.scrollTop():this.scrollLeft(),c=u-s+o,d=u-s-l+(i?this.clientHeight():this.clientWidth())-a;return c<=0&&d>=0?u:u-(Math.abs(c)>Math.abs(d)?d:c)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});g(C,A),e.exports=A,e.exports.deviceDependentOptions=E},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=a.isDefined,s=a.isPromise,l=n(0).extend,u=n(13).inArray,c=n(3).each,d=n(6),h=n(10).getPublicElement,p=d.Deferred,f=n(21),g=n(72),_=n(15),m=n(8),v=n(41),y=n(239),x=y.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return l({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){t.escape&&t.escape.apply(this,arguments),this._cancelEditing()},enter:function(e){var n=this.option("opened"),i=this._input().val().trim(),o=i&&this._list&&!this._list.option("focusedElement");if(!i&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(this._valueChangeEventHandler(),n&&this._toggleOpenState()),n;if(t.enter&&t.enter.apply(this,arguments))return n}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return l(this.callBase(),{placeholder:_.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){r(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_renderSubmitElement:function(){this._$submitElement=i("").attr("type","hidden").appendTo(this.$element())},_renderInkRipple:function(){this._inkRipple=g.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup")},_popupWrapperClass:function(){return this.callBase()+" dx-selectbox-popup-wrapper"},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){if(this._searchValue()){var e=this._list._itemElements(),t=u(this.option("selectedItem"),this.option("items")),n=t>=0&&!this._isCustomItemSelected()?e.eq(t):null;this._focusListElement(n)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);var e=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(e)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",h(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataSource&&this._dataSource.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new p).resolve()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new p).resolve()},_fitIntoRange:function(e,t,n){return e>n?t:e",!0).toArray()},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return c(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e)},_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){return this._getTemplateByOption("fieldTemplate")&&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){c(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"))||this._restoreInputText(),this._wasSearch()&&e)if(this._wasSearch(!1),(this.option("showDataBeforeSearch")||0===this.option("minSearchLength"))&&this._dataSource){if(this._searchTimer)return;var t=this._getActualSearchValue();t&&this._wasSearch(!0),this._filterDataSource(t||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);return(t?String(t):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_restoreInputText:function(){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.callBase(e),this._restoreInputText()},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new p;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=o.ensureDefined(n,t.customItem);return r(n)&&f.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),f.Error("E0121");s(t)?d.fromPromise(t).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_clearValueHandler:function(e){return this.callBase(e),!1},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}}else delete this._preventSubstitution},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=o.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"selectedItem":e.previousValue!==e.value&&this.callBase(e);break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});m("dxSelectBox",x),e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(t,n,i,o,r){var s=c.default.normalizeKeyName(i);"enter"===s||"space"===s?(a(i.target,n),o&&o({event:i})):"tab"===s?r.addClass(h):e.exports.selectView(t,n,i)}function a(e,t){var n=(0,l.default)(e),i=n.attr("aria-label"),o=r(i,t.element()).index(n);v=(0,d.extend)({},{ariaLabel:i,index:o},{viewInstance:t})}function r(e,t){var n=(0,l.default)(t);return e?n.find('[aria-label="'+e+'"][tabindex]'):n.find("[tabindex]")}function s(e){for(var t in e){var n,i=e[t];if((n=(0,l.default)(i).first()).length)return n}}var l=i(n(2)),u=i(n(5)),c=i(n(9)),d=n(0),h="dx-state-focused",p=".dx-datagrid-rowsview .dx-datagrid-content .dx-row > td",f=".dx-treelist-rowsview .dx-treelist-content .dx-row > td",g={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell input"],rowsView:[p+"[tabindex]",""+p,f+"[tabindex]",""+f],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},_=!1,m=!1,v=null;e.exports={hiddenFocus:function(e){m=!0,e.focus(),m=!1},registerKeyboardAction:function(e,t,n,i,a){if(!t.option("useLegacyKeyboardNavigation")){var r=(0,l.default)(t.element());u.default.on(n,"keydown",i,function(n){return o(e,t,n,a,r)}),u.default.on(n,"mousedown",i,function(){_=!0,r.removeClass(h)}),u.default.on(n,"focusin",i,function(){_||m||r.addClass(h),_=!1})}},restoreFocus:function(e){if(!e.option("useLegacyKeyboardNavigation")&&v){var t=v.viewInstance;if(t){var n=r(v.ariaLabel,t.element()).eq(v.index);v=null,u.default.trigger(n,"focus")}}},selectView:function(e,t,n){var i=c.default.normalizeKeyName(n);if(n.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var o=Object.keys(g),a=o.indexOf(e);a>=0&&a1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(e)?Array.isArray(e[0])||(e=e.map(function(e){return[e]})):e=[[e]];var n=!t.gridLayout,i=e.reduce(function(e,t,i){var o=t.reduce(function(e,t,n){var o=t.getSize(),a=t.option("backgroundColor")||g.default.getTheme(t.option("theme")).backgroundColor;return a&&-1===e.backgroundColors.indexOf(a)&&e.backgroundColors.push(a),e.hOffset=e.width,e.width+=o.width,e.height=Math.max(e.height,o.height),e.itemWidth=Math.max(e.itemWidth,o.width),e.items.push({markup:t.svg(),width:o.width,height:o.height,c:n,r:i,hOffset:e.hOffset}),e},{items:[],height:0,itemWidth:0,hOffset:0,width:0,backgroundColors:e.backgroundColors});return e.rowOffsets.push(e.totalHeight),e.rowHeights.push(o.height),e.totalHeight+=o.height,e.items=e.items.concat(o.items),e.itemWidth=Math.max(e.itemWidth,o.itemWidth),e.maxItemLen=Math.max(e.maxItemLen,o.items.length),e.totalWidth=n?Math.max(e.totalWidth,o.width):e.maxItemLen*e.itemWidth,e},{items:[],rowOffsets:[],rowHeights:[],itemWidth:0,totalHeight:0,maxItemLen:0,totalWidth:0,backgroundColors:[]}),o='data-backgroundcolor="'+(1===i.backgroundColors.length?i.backgroundColors[0]:"")+'" ',a=i.totalHeight,r=i.totalWidth;return{markup:"'+i.items.map(function(e){return e.markup.replace("","")}).join("")+"",width:r,height:a}}),H=t.ExportMenu=function(e){var t=this._renderer=e.renderer;this._incidentOccurred=e.incidentOccurred,this._exportTo=e.exportTo,this._print=e.print,this._shadow=t.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=t.g().attr({class:P,"hidden-for-export":!0}).linkOn(t.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=t.g().attr({class:P+"-button"}).append(this._group),this._listGroup=t.g().attr({class:P+"-list"}).append(this._group),this._overlay=t.rect(-S+w,w+k,S,0),this._overlay.attr({"stroke-width":E,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=o(),this._subscribeEvents()};(0,u.extend)(H.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=10,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._fillSpace(),this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){this._group.move(e-w-2-3+n.left,Math.floor(t/2-w/2));var i=this.getLayoutOptions();return(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;this._options=e,e.formats?e.formats=e.formats.reduce(function(e,n){return(n=a(n,t._incidentOccurred,t.validFormats))&&e.push(n),e},[]):e.formats=this.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions:function(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){this._fillSpace();var e=this._options.button.margin;return[w+e.left+e.right,w+e.top+e.bottom]},move:function(e){var t=this._options.button.margin;this._group.attr({translateX:Math.round(e[0])+t.left,translateY:Math.round(e[1])+t.top})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(function(e){return e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(function(e){return e.fixPosition()})},_setButtonState:function(e){var t=this._options.button[e];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents:function(){var e=this;this._renderer.root.on(m.default.up+".export",function(t){var n=t.target[M];return n?void("button"===n?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===n?(e._print(),e._hideList()):"exporting"===n&&(e._exportTo(t.target[R]),e._hideList())):void(e._button&&e._hideList())}),this._listGroup.on(b,function(e){return e.stopPropagation()}),this._buttonGroup.on(m.default.enter,function(){return e._setButtonState("hover")}),this._buttonGroup.on(m.default.leave,function(){return e._setButtonState(e._listShown?"focus":"default")}),this._buttonGroup.on(m.default.down+".export",function(){return e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this._renderer,t=this._options,n={"export-element-type":"button"};this._button||(this._button=e.rect(0,0,w,w).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(n),this._icon=e.path(C).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(n),this._buttonGroup.setTitle(p.default.format("vizExport-titleMenuText")))},_updateList:function(){var e=this._options,t=e.button.default,n=this._listGroup,i=function(e,t){var n=[];return t.printingEnabled&&n.push(s(e,t,{type:"printing",text:p.default.format("vizExport-printingButtonText"),itemIndex:n.length})),t.formats.reduce(function(n,i){return n.push(s(e,t,{type:"exporting",text:p.default.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n},n)}(this._renderer,e);this._shadow.attr({color:e.shadowColor}),this._overlay.attr({height:i.length*D+2*E,fill:t.backgroundColor,stroke:t.borderColor}),n.clear(),this._overlay.append(n),i.forEach(function(e){return e.g.append(n)}),this._menuItems=i}}),t.plugin={name:"export",init:function(){var e=this;this._exportMenu=new t.ExportMenu({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:function(){return e.print()},exportTo:function(t){return e.exportTo(void 0,t)}}),this._layout.add(this._exportMenu)},dispose:function(){this._exportMenu.dispose()},members:{_getExportMenuOptions:function(){return(0,u.extend)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents:function(){var e=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),e},exportTo:function(e,t){var n=this,i=this._exportMenu,o=l(this,this._getOption("export")||{},e,t);i&&i.hide();var a=this._disablePointerEvents();h.default.export(this._renderer.root.element,o,r(o.format)).done(function(){n._renderer.root.attr({"pointer-events":a})}),i&&i.show()},print:function(){var e=this,t=this._exportMenu,n=l(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.forceProxy=!0,n.fileSavingAction=function(e){(function(e,t){var n=(0,c.getWindow)().document,i=n.createElement("iframe");i.onload=function(e,t){return function(){var t=this,n=this.contentWindow,i=n.document.createElement("img");n.document.body.appendChild(i);var o=function(){t.parentElement.removeChild(t)};i.addEventListener("load",function(){n.focus(),n.print(),o()}),i.addEventListener("error",o),i.src=e}}(e),i.style.visibility="hidden",i.style.position="fixed",i.style.right="0",i.style.bottom="0",n.body.appendChild(i)})("data:image/png;base64,"+e.data,n.__test),e.cancel=!0};var i=this._disablePointerEvents();t&&t.hide(),h.default.export(this._renderer.root.element,n,r(n.format)).done(function(){e._renderer.root.attr({"pointer-events":i})}),t&&t.show()}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]}},function(e,t,n){function i(){return!0}function o(){return!1}function a(e){e.component.hasEvent("incidentOccurred")||S.apply(null,[e.target.id].concat(e.target.args||[]))}function r(e){return e.reduce(function(e,t){return t>0&&!e?t:e},0)}function s(e){return h.isDefined(e)&&e>0}var l=n(2),u=n(4).noop,c=n(7),d=n(12),h=n(1),p=n(3).each,f=n(156),g=n(125),_=n(43).format,m=n(1).isObject,v=n(0).extend,y=n(261),x=Math.floor,b=n(66),w=n(143),C=n(11).parseScalar,k=n(757),S=k.log,I=n(168),T=n(759),D=n(16),E=n(5),A="rtlEnabled",O="dx-sized-element",B=b.prototype.option,P=!c.hasWindow();e.exports=P?function(){var e={ctor:function(e,t){this.callBase(e,t);var n=d.createElement("div"),i=t&&h.isNumeric(t.width)?t.width+"px":"100%",o=t&&h.isNumeric(t.height)?t.height+"px":this._getDefaultSize().height+"px";d.setStyle(n,"width",i),d.setStyle(n,"height",o),d.setClass(n,O),d.insertElement(e,n)}},t=b.inherit(e),n=t.inherit;return t.inherit=function(e){for(var t in e)(h.isFunction(e[t])&&"_"!==t.substr(0,1)||"_dispose"===t||"_optionChanged"===t)&&(e[t]=u);return n.call(this,e)},t}():b.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return v(this.callBase(),{onIncidentOccurred:a})},_useLinks:!0,_init:function(){var e,t=this;t._$element.children("."+O).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._optionChangedLocker=0,t._changes=w.changes(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback(function(){t._requestChange(t._themeDependentChanges)}),t._renderElementAttributes(),t._initRenderer(),(e=t._useLinks&&t._renderer.root)&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._toggleParentsScrollSubscription(this._isVisible()),t._initEventTrigger(),t._incidentOccurred=function(e,t){return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:_.apply(null,[k.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:f}})}}(t.NAME,t._eventTrigger),t._layout=new T,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges)},_createThemeManager:function(){return new y.BaseThemeManager(this._getThemeManagerOptions())},_getThemeManagerOptions:function(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var e=this;p(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;p(e._plugins.slice().reverse(),function(t,n){n.dispose.call(e)})},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0==--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions(),e._optionChangedLocker++,e._notify(),e._optionChangedLocker--)},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),p(t,function(e,t){t()}),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,o=i.length;for(e=0;e0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=n.forward(i,this._getMinSize()),e=this._applySize(i)||i,n.backward(e,this._getAlignmentRect()||e)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:v(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=C(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=function(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}(function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()}),g.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(g.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:u,beginUpdate:function(){var e=this;return e._initialized&&0===e._updateLockCount&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){var e=this;return e.callBase.apply(e,arguments),0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||m(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):B.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),B.apply(t,e),t._resumeDeprecatedWarnings()}:function(){B.apply(t,e)}},_clean:u,_render:u,_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n=void 0;e.fullName&&(n=e.fullName.slice(e.fullName.indexOf(".")+1,e.fullName.length));var i=t._partialOptionChangesMap[n]||t._optionChangesMap[e.name];t._eventTrigger.change(e.name)?t._change(["EVENTS"]):i?t._change([i]):t.callBase.apply(t,arguments)}},_notify:u,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(A))},_getRendererOptions:function(){return{rtl:this.option(A),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:o,_dataIsReady:i,_resetIsReady:function(){this.isReady=o},_drawn:function(){var e=this;e.isReady=o,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=i}),e._eventTrigger("drawn",{})}}),w.replaceInherit(e.exports)},function(e,t,n){var i=n(27);t.getDefaultAlignment=function(e){return e||i().rtlEnabled?"right":"left"}},function(e,t,n){var i=n(14),o=n(0).extend,a=n(13).inArray,r=n(3).each,s=n(80),l=n(21),u=n(4),c=n(1),d=n(51),h=n(15),p=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},_isValueEmpty:function(e){return!w.required.validate(e,{})},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),f=p.inherit({NAME:"required",_validate:function(e,t){return!!c.isDefined(e)&&!1!==e&&(e=String(e),!t.trim&&c.isDefined(t.trim)||(e=e.trim()),""!==e)}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||(t.useCultureSettings&&c.isString(e)?!isNaN(d.parse(e)):c.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=w.numeric.validate(e,t),i=c.isDefined(e)&&""!==e,o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!c.isDate(e)&&!i)return!1;if(c.isDefined(a))return c.isDefined(r)?o>=a&&o<=r:o>=a;if(c.isDefined(r))return o<=r;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=c.isDefined(e)?String(e):"",!t.trim&&c.isDefined(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||w.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&c.isFunction(n.option)&&n.option("dataGetter"),o=c.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),y=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;o(t,{reevaluate:!0});var n=t.comparisonTarget();switch(t.comparisonType||"=="){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){c.isDefined(e.message)||(t.defaultFormattedMessage&&c.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},o=this;return r(t||[],function(t,a){var r,s=w[a.type];if(!s)throw l.Error("E0100");return c.isDefined(a.isValid)&&a.value===e&&!a.reevaluate?!!a.isValid||(i.isValid=!1,i.brokenRule=a,!1):(a.value=e,r=s.validate(e,a),a.isValid=r,r||(i.isValid=!1,o._setDefaultMessage(a,s,n),i.brokenRule=a),!!a.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);a(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e),i=n&&n.validators,o=a(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};k.initGroups(),e.exports=k},function(e,t,n){function i(e,t,n){var i=[],o=function(e){return k(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1||(i.push("T"),i.push(o(e.getHours())),i.push(":"),i.push(o(e.getMinutes())),i.push(":"),i.push(o(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(k(e.getMilliseconds(),3))),n||i.push("Z")),i.join("")}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(14),r=n(0).extend,s=n(1),l=n(3),u=n(3).each,c=n(62),d=n(42),h=s.isDefined,p=s.isPlainObject,f=n(4).grep,g=n(6).Deferred,_=n(35).errors,m=n(40),v=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,x=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,b="application/json;odata=verbose",w=function(e){return"string"===s.type(e)?e.split():e},C=function(e){return/\./.test(e)},k=function(e,t,n){for(e=String(e);e.length-1?"&":"?")+d),l&&(c.$format="json"),{url:h,data:c,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:a,async:t.async,timeout:t.timeout,headers:t.headers,contentType:p,accepts:{json:[b,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},I=function(e,t,n,i){var o,a=function(e,t,n){if("nocontent"===t)return null;var i="Unknown error",o=e,a=200,s={requestOptions:n};if("success"!==t){a=e.status,i=m.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var l=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);if(l){i=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||-1!==t.indexOf("inner exception")););return t}(l)||i,s.errorDetails=l,200===a&&(a=500);var u=Number(l.code);isFinite(u)&&u>=400&&(a=u)}return a>=400||0===a?(s.httpStatus=a,r(Error(i),s)):null}(e,t,i);return a?{error:a}:p(e)?(o="d"in e&&(Array.isArray(e.d)||s.isObject(e.d))?T(e,t):D(e,t),A(o,n),o):{data:e}},T=function(e){var t=e.d;return h(t)?(h(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},D=function(e){var t=e;return h(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},E=a.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),A=function e(t,n){n=n||{},u(t,function(i,a){if(null!==a&&"object"===(void 0===a?"undefined":o(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes;if((!r||"String"!==r[i])&&v.test(a)&&(t[i]=new d(a)),!1!==n.deserializeDates)if(a.match(y)){var s=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(s.valueOf()+60*s.getTimezoneOffset()*1e3)}else x.test(a)&&(t[i]=new Date(function(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);if(t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length){t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3]));var a=(o[4]||"").slice(0,3);a=k(a,3,!0),t.setMilliseconds(Number(a))}return t}(t[i]).valueOf()))}})},O=function(e){return e instanceof E?e.valueOf():e.replace(/\./g,"/")},B=function(e){return e instanceof Date?function(e){return"datetime'"+i(e,!0,!0)+"'"}(e):e instanceof d?"guid'"+e+"'":e instanceof E?e.valueOf():"string"==typeof e?function(e){return"'"+e.replace(/'/g,"''")+"'"}(e):String(e)},P=function(e,t){switch(t){case 2:case 3:return B(e);case 4:return function e(t){return t instanceof Date?i(t,!1,!1):t instanceof d?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":B(t)}(e);default:throw _.Error("E4002")}},M={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof E?e:new E(e+"L")},Guid:function(e){return e instanceof d?e:new d(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof E?e:new E(e+"f")},Decimal:function(e){return e instanceof E?e:new E(e+"m")}};t.sendRequest=function e(t,n,i){var o=new g,a=S(t,n,i);return c.sendRequest(a).always(function(n,r){var s,l={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},u=I(n,r,l,a),c=u.error,d=u.data,h=u.nextUrl;c?c.message!==m.XHR_ERROR_UNLOAD&&o.reject(c):i.countOnly?isFinite(u.count)?o.resolve(u.count):o.reject(new _.Error("E4018")):h&&!i.isPaged?(function(e){return/^(?:[a-z]+:)?\/\//i.test(e)}(h)||(h=function(e,t){var n,i=function(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}(e).split("/"),o=t.split("/");for(i.pop();o.length;)".."===(n=o.shift())?i.pop():i.push(n);return i.join("/")}(a.url,h)),e(t,{url:h},i).fail(o.reject).done(function(e){o.resolve(d.concat(e))})):(isFinite(u.count)&&(s={totalCount:u.count}),o.resolve(d,s))}),o.promise()},t.serializePropName=O,t.serializeValue=P,t.serializeKey=function(e,t){if(p(e)){var n=[];return u(e,function(e,i){n.push(O(e)+"="+P(i,t))}),n.join()}return P(e,t)},t.keyConverters=M,t.convertPrimitiveValue=function(e,t){if(null===t)return null;var n=M[e];if(!n)throw _.Error("E4014",e);return n(t)},t.generateExpand=function(e,t,n){return e<4?function(){var e={};return t&&l.each(w(t),function(){e[O(this)]=1}),n&&l.each(w(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[O(t.join("."))]=1)}),l.map(e,function(e,t){return t}).join()}():function(){var e=function(e,t,n){l.each(e,function(e,i){!function e(t,n,i){var o=i(n,t.shift(),t);!1!==o&&e(t,o,i)}(i.split("."),t,n)})},i={};if(t||n)return t&&e(w(t),i,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&e(f(w(n),C),i,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),function(e){var t=[];return l.each(e,function(e,n){t.push(e+function e(t){var n="",i=[],o=[];return l.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),p(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+l.map(i,O).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+l.map(o,O).join()),n+=")"),n}(n))}),t.join()}(i)}()},t.generateSelect=function(e,t){if(t)return e<4?O(t.join()):f(t,C,!0).join()},t.EdmLiteral=E},function(e,t,n){var i=n(497);n(8)("dxList",i),e.exports=i},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(72),l=n(49),u=n(8),c=n(9),d=n(19),h="dx-checkbox-has-text",p=l.inherit({_supportedKeys:function(){return r(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}}])},_canValueBeChangedByClick:function(){return!0},_feedbackHideTimeout:100,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("
    ").addClass("dx-checkbox-container"),this.setAria("role","checkbox"),this.$element().addClass("dx-checkbox"),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("").addClass("dx-checkbox-icon").prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("").addClass("dx-checkbox-text")),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(h)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(h)))},_renderClick:function(){var e=this,t=c.addNamespace(d.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass("dx-checkbox-checked",Boolean(t)),e.toggleClass("dx-checkbox-indeterminate",n),this._$submitElement.val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});u("dxCheckBox",p),e.exports=p},function(e,t,n){e.exports=n(322)},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function o(e,t,n,i,o){e.attr({text:t}).setMaxSize(n,o,i).textChanged&&e.setTitle(t)}function a(e){return e>=0?s(e):p}function r(e){this._params=e,this._group=e.renderer.g().attr({class:e.cssClass}).linkOn(e.root||e.renderer.root,"title"),this._hasText=!1}var s=Number,l=n(1).isString,u=n(0).extend,c=n(11).patchFontOptions,d=n(11).enumParser(["left","center","right"]),h=n(11).enumParser(["top","bottom"]),p=10;u(r.prototype,n(262).LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){this._options=e,this._options.horizontalAlignment=d(e.horizontalAlignment,"center"),this._options.verticalAlignment=h(e.verticalAlignment,"top"),this._options.margin=function(e){var t;return t=e>=0?{left:s(e),top:s(e),right:s(e),bottom:s(e)}:{left:a((e=e||{}).left),top:a(e.top),right:a(e.right),bottom:a(e.bottom)},t}(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,o={align:e._options.horizontalAlignment};e._titleElement||(e._titleElement=t.text().append(n),e._subtitleElement=t.text(),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),e._titleElement.attr(o),e._subtitleElement.attr(o),n.linkAppend(),i(e._options.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t,n=this,o=n._options,a=o.subtitle,r=n._titleElement,s=n._subtitleElement;r.attr({text:"A",y:0}).css(c(o.font)),e=r.getBBox(),n._baseLineCorrection=e.height+e.y,r.attr({text:o.text}),t=-(e=r.getBBox()).y,r.attr({y:t}),i(a.text)&&s.attr({text:a.text,y:0}).css(c(a.font))},_shiftSubtitle:function(){var e=this,t=e._titleElement.getBBox(),n=e._subtitleElement,i=e._options.subtitle.offset;n.move(0,t.y+t.height-n.getBBox().y-i)},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},hasText:function(){return this._hasText},update:function(e,t){var n=this,o=u(!0,{},e,function(e){var t=l(e)?{text:e}:e||{};return t.subtitle=l(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}(t)),a=i(o.text),r=a||a!==n._hasText;return n._baseLineCorrection=0,n._updateOptions(o),n._boundingRect={},a?(n._updateStructure(),n._updateTexts()):n._group.linkRemove(),n._updateBoundingRect(),n._updateBoundingRectAlignment(),n._hasText=a,r},draw:function(e,t){var n=this;return n._hasText&&(n._group.linkAppend(),n._correctTitleLength(e),n._group.getBBox().height>t&&this.freeSpace()),n},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,a=e-i.left-i.right,r=n.placeholderSize;o(t._titleElement,n.text,a,n,r),t._subtitleElement&&(s(r)>0&&(r-=t._titleElement.getBBox().height),o(t._subtitleElement,n.subtitle.text,a,n.subtitle,r),t._shiftSubtitle()),t._updateBoundingRect();var l=this.getCorrectedLayoutOptions(),u=l.x,c=l.y,d=l.height;this._clipRect.attr({x:u,y:c,width:e,height:d})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n},_updateBoundingRect:function(){var e,t=this,n=t._options,i=n.margin,o=t._boundingRect;(e=t._hasText?t._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0}).isEmpty||(e.height+=i.top+i.bottom-t._baseLineCorrection,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._baseLineCorrection-i.top),n.placeholderSize>0&&(e.height=n.placeholderSize),o.height=e.height,o.width=e.width,o.x=e.x,o.y=e.y},getCorrectedLayoutOptions:function(){var e=this.getLayoutOptions(),t=this._baseLineCorrection;return u({},e,{y:e.y-t,height:e.height+t})},layoutOptions:function(){return this._boundingRect&&{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e,t){!function(e,t){return e[2]-e[0]t})},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,o=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,g(e)&&o.push(e),g(t)&&o.push(t)),o},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,r,s,l=this._options.valueErrorBar,c=m(l.type),d=parseFloat(l.value),h=this.getValueFields()[0],p=l.lowValueField||C,g=l.highValueField||w,v=function(e,n){t=n.value,n.lowError=t-d,n.highError=t+d};switch(c){case D:s=v;break;case T:s=function(e,n){var i=(t=n.value)*d/100;n.lowError=t-i,n.highError=t+i};break;case"undefined":s=function(e,t){t.lowError=t.data[p],t.highError=t.data[g]};break;default:switch(i=(n=_(e,function(e){return f(e.data[h])?e.data[h]:null})).length,d=d||1,c){case k:d=a(n,o(n)/i)*d,s=v;break;case S:r=o(n)/i,d=x(a(n,r))*d,s=function(e,t){t.lowError=r-d,t.highError=r+d};break;case I:d=x(a(n,o(n)/i)/i)*d,s=v}}s&&u(e,s)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce(function(e,t){return b(e,2*t.r+t["stroke-width"])},0);return e.size=t.visible?i:0,e.sizePointNormalState=t.visible?2*n.normal.r+n.normal["stroke-width"]:2,e},usePointsToDefineAutoHiding:function(){return!0}};t.chart=s({},E,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],o=n._options.rotated;n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),u(i,function(i,o){e[i]?n._updateTrackerElement(o,e[i]):e[i]=n._drawTrackerElement(o).data({"chart-data-series":n}).append(t)})),n._trackersTranslator=n.groupPointsByCoords(o))},checkAxisVisibleAreaCoord:function(e,t){var n=(e?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return f(t)&&n[0]<=t&&n[1]>=t},checkSeriesViewportCoord:function(e,t){return!0},getShapePairCoord:function(e,t,n){for(var i=null,o=!t&&!this._options.rotated||t&&this._options.rotated,a=o?"vy":"vx",r=o?"vx":"vy",s=this.getVisiblePoints(),l=0;l0&&(r.length>1?n.findNeighborPointsByCoord(e,o,a.slice(0),r,function(e,t){s.push([e,t])}):r[0][o]===e&&s.push([r[0],r[0]])),s},findNeighborPointsByCoord:function(e,t,n,i,o){var a=i;n.length>0&&(n.splice(0,0,i[i.indexOf(n[0])-1]),n.splice(n.length,0,i[i.indexOf(n[n.length-1])+1]),a=n),a.forEach(function(n,i){var r=a[i+1];n&&r&&(n[t]<=e&&r[t]>=e||n[t]>=e&&r[t]<=e)&&o(n,r)})},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,o=i,a=this._trackersTranslator,r=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&a){r=a[i];do{r=a[o]||a[i],i--,o++}while((i>=0||o=i&&(n=i,r=t)}))}return r},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getVisibleArea();e._visibleArea={minX:n[0],maxX:n[1],minY:i[0],maxY:i[1]}}}),t.polar=s({},E,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(u(n,function(t,n){if(n)return e=t,!1}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=h.convertXYToPolar(this.getValueAxis().getCenter(),e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this.getValueAxis().getCanvas();this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}}})},function(e,t,n){function i(e){e.css({left:"-9999px"}).detach()}function o(e){var t,n,i=this;i._eventTrigger=e.eventTrigger,i._widgetRoot=e.widgetRoot,i._wrapper=u("
    ").css({position:"absolute",overflow:"visible",height:"1px",pointerEvents:"none"}).addClass(e.cssClass),i._renderer=t=new c.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),(n=t.root).attr({"pointer-events":"none"}),i._cloud=t.path([],"area").sharp().append(n),i._shadow=t.shadowFilter(),i._textGroup=t.g().attr({align:"center"}).append(n),i._text=t.text(void 0,0,0).append(i._textGroup),i._textGroupHtml=u("
    ").css({position:"absolute",width:0,padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=u("
    ").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var a=n(12),r=n(7),s=n(32),l=r.getWindow(),u=n(2),c=n(168),d=n(1),h=n(0).extend,p=n(11),f=n(63).format,g=Math.ceil,_=Math.max,m=Math.min;o.prototype={constructor:o,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=u(this._widgetRoot).closest(e.container);return 0===t.length&&(t=u(e.container)),(t.length?t:u("body")).get(0)},setOptions:function(e){e=e||{};var t=this,n=t._cloudSettings={opacity:e.opacity,filter:t._shadow.id,"stroke-width":null,stroke:null},i=e.border||{};return t._shadowSettings=h({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),t._options=e,i.visible&&h(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle}),t._textFontStyles=p.patchFontOptions(e.font),t._textFontStyles.color=e.font.color,t._wrapper.css({zIndex:e.zIndex}),t._customizeTooltip=e.customizeTooltip,t},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;i(e._wrapper),e._cloud.attr(e._cloudSettings),e._shadow.attr(e._shadowSettings);var t={};for(var n in e._textFontStyles)t[s.camelize(n)]=e._textFontStyles[n];return e._textGroupHtml.css(t),e._textGroup.css(e._textFontStyles),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,o={};return d.isFunction(n)&&(o=n.call(e,e),"text"in(o=d.isPlainObject(o)?o:{})&&(t.text=d.isDefined(o.text)?String(o.text):""),"html"in o&&(t.html=d.isDefined(o.html)?String(o.html):"")),"text"in t||"html"in t||(t.text=e.valueText||e.description||""),t.color=o.color||i.color,t.borderColor=o.borderColor||(i.border||{}).color,t.textColor=o.fontColor||(i.font||{}).color,!!t.text||!!t.html},show:function(e,t,n,i){var o,a,r=this,s={},u=r._options,c=u.paddingLeftRight,d=u.paddingTopBottom,h=r._textGroupHtml,p=r._textHtml,f=r._shadowSettings,_=f.offsetX,m=f.offsetY,v=2*f.blur+1,y=l.getComputedStyle;return!!r._prepare(e,s,i)&&(r._state=s,s.tc={},r._wrapper.appendTo(r._getContainer()),r._cloud.attr({fill:s.color,stroke:s.borderColor}),s.html?(r._text.attr({text:""}),h.css({color:s.textColor,width:r._getCanvas().width}),p.html(s.html),y?(o=y(p.get(0)),o={x:0,y:0,width:g(parseFloat(o.width)),height:g(parseFloat(o.height))}):(o=p.get(0).getBoundingClientRect(),o={x:0,y:0,width:g(o.width?o.width:o.right-o.left),height:g(o.height?o.height:o.bottom-o.top)}),h.width(o.width),h.height(o.height)):(p.html(""),r._text.css({fill:s.textColor}).attr({text:s.text}),o=r._textGroup.css({fill:s.textColor}).getBBox()),(a=s.contentSize={x:o.x-c,y:o.y-d,width:o.width+2*c,height:o.height+2*d,lm:v-_>0?v-_:0,rm:v+_>0?v+_:0,tm:v-m>0?v-m:0,bm:v+m>0?v+m:0}).fullWidth=a.width+a.lm+a.rm,a.fullHeight=a.height+a.tm+a.bm+u.arrowLength,r.move(t.x,t.y,t.offset),r._eventData&&r._eventTrigger("tooltipHidden",r._eventData),r._eventData=n,r._eventTrigger("tooltipShown",r._eventData),!0)},hide:function(){var e=this;i(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){n=n||0;var i=this,o=i._getCanvas(),a=i._state,r=a.tc,s=a.contentSize;i._calculatePosition(e,t,n,o)&&(i._cloud.attr({points:r.cloudPoints}).move(s.lm,s.tm),a.html?i._textGroupHtml.css({left:-s.x+s.lm,top:-s.y+s.tm+r.correction}):i._textGroup.move(-s.x+s.lm,-s.y+s.tm+r.correction),i._renderer.resize("out"===r.hp?o.fullWidth+s.lm:s.fullWidth,"out"===r.vp?o.fullHeight:s.fullHeight)),n=i._wrapper.css({left:0,top:0}).offset(),i._wrapper.css({left:r.x-n.left,top:r.y-n.top,width:"out"===r.hp?o.fullWidth+s.lm:s.fullWidth})},formatValue:function(e,t){var n=t?function(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision}}}return n}(this._options,t):this._options;return f(e,n.format)},getLocation:function(){return p.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_calculatePosition:function(e,t,n,i){var o,a,r,s=this._options.arrowLength,l=this._state,u=l.tc,c=l.contentSize,d=c.width,h=d/2,p=c.height,f=t-i.top,g=i.top+i.height-t,_=e-i.left,m=i.width+i.left-e,v=p+s+n+c.tm,y=p+s+n+c.bm,x=d+c.lm,b=d+c.rm,w=h+c.lm,C=h+c.rm,k=0,S=[6,0],I=h+10,T=h,D=h-10,E=p+s,A="center",O="bottom";return a=r=p,v>f&&y>g?O="out":v>f&&(O="top"),x>_&&b>m?A="out":w>_&&bm&&x<_&&(A="right"),"out"===A?e=i.left:"left"===A?(I=10,T=D=0):"right"===A?(I=T=d,D=d-10,e-=d):"center"===A&&(e-=h),"out"===O?t=i.top:"top"===O?("out"!==A&&(k=s),S[0]=2,a=r=s,E=I,I=D,D=E,E=0,t+=n):t-=p+s+n,u.x=e-c.lm,u.y=t-c.tm,u.correction=k,(A!==u.hp||O!==u.vp)&&(u.hp=A,u.vp=O,o=[0,0+k,d,0+k,d,p+k,0,p+k],"out"!==A&&"out"!==O&&(S.splice(2,0,I,a,T,E,D,r),o.splice.apply(o,S)),u.cloudPoints=o,!0)},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=a.getDocumentElement(),i=a.getBody(),o=l.pageXOffset||n.scrollLeft||0,r=l.pageYOffset||n.scrollTop||0,s={left:o,top:r,width:n.clientWidth||0,height:n.clientHeight||0,fullWidth:_(i.scrollWidth,n.scrollWidth,i.offsetWidth,n.offsetWidth,i.clientWidth,n.clientWidth)-o,fullHeight:_(i.scrollHeight,n.scrollHeight,i.offsetHeight,n.offsetHeight,i.clientHeight,n.clientHeight)-r};return e!==i&&(o=_(s.left,s.left+t.left),r=_(s.top,s.top+t.top),s.width=m(s.width+s.left-o,t.width+(t.left>0?0:t.left)),s.height=m(s.height+s.top-r,t.height+(t.top>0?0:t.top)),s.fullWidth=s.width,s.fullHeight=s.height,s.left=o,s.top=r),s}},t.Tooltip=o,t.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new t.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element()})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling:function(){this._tooltip&&this._tooltip.hide()}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]}},function(e,t,n){function i(e,t){return te}function a(e,t,n,i){var o=u(t);u(e)?o&&i(e,t)&&n(t):o&&n(t)}var r,s=n(1),l=n(0).extend,u=s.isDefined,c=s.isDate,d=s.isFunction,h=n(11).unique,p="min",f="max",g="minVisible",_="maxVisible",m="base",v="axisType";(r=t.Range=function(e){e&&l(this,e)}).prototype={constructor:r,addRange:function(e){var t=this,n=t.categories,r=e.categories,s=function(n,i){a(t[n],e[n],function(e){t[n]=e},i)},l=function(e,n,i){a(t[e],t[n],function(n){u(t[e])&&(t[e]=n)},i)},c=function(n){t[n]=t[n]||e[n]};return c("invert"),c(v),c("dataType"),c("isSpacedMargin"),c("checkMinDataVisibility"),c("checkMaxDataVisibility"),"logarithmic"===t[v]?c(m):t[m]=void 0,s(p,i),s(f,o),"discrete"===t[v]?(c(g),c(_)):(s(g,i),s(_,o)),s("interval",i),l(p,g,i),l(p,_,i),l(f,_,o),l(f,g,o),t.categories=void 0===n?r:r?h(n.concat(r)):n,t},isEmpty:function(){return!(u(this[p])&&u(this[f])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[v]||c(t[f])||c(t[p])?t:(e(p,f),e(g,_),t)},sortCategories:function(e){if(!1!==e&&this.categories)if(Array.isArray(e))this.categories=e.slice(0).concat(this.categories.filter(function(t){return t&&-1===e.indexOf(t.valueOf())}));else{var t=!d(e);t&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:t&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(2),o=n(27),a=n(7).getWindow(),r=n(1),s=n(3).each,l=n(14),u=n(21),c=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||a,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i").addClass("dx-dateview-formatter-container");return o("").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:["year","day","month","day"]},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e,t;return(t=o("").attr("type","datetime")).val("2000-01-01T01:01Z"),t.val()&&(e="yyyy-MM-ddTHH:mmZ"),e||(e="yyyy-MM-ddTHH:mm:ssZ"),c.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:["year","day","month","day"].concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:["year","day","month","day"].concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=c.FORMATS_INFO[t].getStandardPattern();return a.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.dateParser(e);return r(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(e.valueOf()),a=c.FORMATS_INFO[n];return s(a.components,function(){var e=c.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())}),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;ti&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return l.formatUsesMonthName(e)},formatUsesDayName:function(e){return l.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=u(e),o=9;i&&!c.formatUsesMonthName(i)||(o=c.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||c.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+c.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};c.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setFullYear(e),l.format(i,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setDate(e),t?c.DATE_COMPONENT_TEXT_FORMATTER(e,l.getDayNames()[i.getDay()]):l.format(i,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e,t){var n=l.getMonthNames()[e];return t?c.DATE_COMPONENT_TEXT_FORMATTER(e+1,n):n},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return l.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return l.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=c},function(e,t,n){e.exports={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}}},function(e,t,n){e.exports={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(e,t,n){var i=n(0).extend,o=n(3).each,a=n(4).noop,r=n(7),s=r.getWindow(),l=n(266),u=i,c=n(1).isDefined,d=n(11).normalizeEnum,h=Math,p=h.round,f=h.floor,g=h.ceil,_="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new l.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return c(e)&&("string"==typeof e||c(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,o="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,a=this._checkImage(e.image)!==this._checkImage(t.image);return!(!o&&!a)},_populatePointShape:function(e,t){switch(e){case"square":return function(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}(t);case"polygon":return function(e){var t=g(e);return[-t,0,0,-t,t,0,0,t,-t,0]}(t);case"triangle":case"triangleDown":return function(e){return[-e,-e,e,-e,0,e,-e,-e]}(t);case"triangleUp":return function(e){return[-e,e,e,e,0,-e,-e,e]}(t);case"cross":return function(e){var t=g(e),n=f(t/2),i=g(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.properValue=t.initialValue+e,t.minValue=e)},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=_},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.properValue=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||20,o=n.height||20;return e.image(-p(.5*i),-p(.5*o),i,o,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var o=this,a=o._checkImage(n)?o._createImageMarker(e,i,n):o._createSymbolMarker(e,i);return a&&a.data({"chart-data-point":o}).append(t),a},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||20,o=n.height||20;return{x:e-p(i/2),y:t-p(o/2),width:i,height:o}},_getGraphicBBox:function(){var e=this,t=e._options,n=e.x,i=e.y;return t.visible?e._checkImage(t.image)?e._getImageBBox(n,i):e._getSymbolBBox(n,i,t.styles.normal.r):{x:n,y:i,width:0,height:0}},hideInsideLabel:a,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&!1!==t&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(p(n.x),p(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=e.getBoundingRect(),a=n._getGraphicBBox(e.pointPosition);return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=a.x+a.width+10),i.maxXt.y&&(t.y=i.minY),i.maxYt.x&&(t.x=i.minX),i.maxXt.y&&(t.y=a.y+a.height+10),i.maxY0&&(y=this._getErrorBarBaseEdgeLength()*r.edgeLength),y=f(parseInt(y)/2),m&&(h=i._baseErrorBarPos),v&&(u=i._baseErrorBarPos),"none"!==p&&c(u)&&c(h)&&c(l)?(!v&&s.push([l-y,u,l+y,u]),s.push([l,u,l,h]),!m&&s.push([l+y,h,l-y,h]),a.rotated&&o(s,function(e,t){t.reverse()}),n=i._getErrorBarSettings(r),i._errorBar?(n.points=s,i._errorBar.attr(n)):i._errorBar=e.path(s,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var o=this,a=o.value/e||0,r=o.minValue/e||0,s=a-r;o._label.setDataField("percent",s),o._label.setDataField("total",t),o.series.isFullStackedSeries()&&o.hasValue()&&(o.leftHole&&(o.leftHole/=e-n,o.minLeftHole/=e-n),o.rightHole&&(o.rightHole/=e-i,o.minRightHole/=e-i),o.value=o.properValue=a,o.minValue=r||o.minValue)},_storeTrackerR:function(){var e,t=this,n=s.navigator,i=t._options.styles.normal.r;return e=r.hasProperty("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6,t._options.trackerR=i0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return u({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},c(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},c(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"===n?this.value:this.lowError,o="low"===n?this.value:this.highError;return io?i:o}return this.value}}},function(e,t,n){function i(e){var t=this,n=e.renderer;t._group=n.g().attr({class:"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)}var o=n(11).patchFontOptions,a="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(a)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(a)}}],this._state=0},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css(o(e.font)).attr({text:e.text}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:"linear",duration:400,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){var e=this;e._loadingIndicator=new t.LoadingIndicator({eventTrigger:e._eventTrigger,renderer:e._renderer,notify:function(t){e._skipLoadingIndicatorOptions=!0,e.option("loadingIndicator",{show:t}),e._skipLoadingIndicatorOptions=!1,t&&e._stopCurrentHandling()}}),e._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler:function(e){e&&(this._options.loadingIndicator||{}).enabled&&this._loadingIndicator.show()},_setContentSize:function(){this._loadingIndicator.setSize(this._canvas)}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]}},function(e,t,n){var i,o=n(1).isFunction,a=n(11).normalizeEnum,r=Math.round,s={};t.getAlgorithm=function(e){return s[a(e)]||o(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={"-1":[2,0],1:[0,2]},u=function(e){return e[2]-e[0]0},o=0;o1&&!!e._getOptionsByReference()[i[0]]})}(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==f.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&((t={})[a]=n),o.beginUpdate();try{var r;for(r in t)s(o,t,r,t[r]);for(r in t)l(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return w(n)?n.bind(t)():n}}).include(y);e.exports=T,e.exports.PostponedOperations=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){return i?function e(t,n,i,o){var a;if(o){for(var r=0;r=0)return n}(e,t,n,i)||[]:t}function a(e,t,n,i,o){var a,r=e.key();if(r){if(function(e,t){for(var n="string"==typeof t?t.split():t.slice();n.length;)if(n.shift()in e)return!0;return!1}(i,r)&&!(0,_.keysEqual)(r,n,e.keyOf(i)))return!o&&(0,_.rejectedPromise)(f.errors.Error("E4017"));var s=l(e,t,n);if(s<0)return!o&&(0,_.rejectedPromise)(f.errors.Error("E4009"));a=t[s]}else a=n;if(g.default.deepExtendArraySafe(a,i,!0),!o)return(0,d.default)().useLegacyStoreResult?(0,_.trivialPromise)(n,i):(0,_.trivialPromise)(a,n)}function r(e,t,n,i,o){var a,r,s=e.key();if(r=(0,c.isPlainObject)(n)?(0,p.extend)({},n):n,s){if(void 0===(a=e.keyOf(r))||"object"===(void 0===a?"undefined":u(a))&&(0,c.isEmptyObject)(a)){if(Array.isArray(s))throw f.errors.Error("E4007");a=r[s]=String(new h.default)}else if(void 0!==t[l(e,t,a)])return!o&&(0,_.rejectedPromise)(f.errors.Error("E4008"))}else a=r;if(i>=0?t.splice(i,0,r):t.push(r),function(e,t){e._hasKeyMap&&(e._hasKeyMap[JSON.stringify(t)]=!0)}(t,a),!o)return(0,_.trivialPromise)((0,d.default)().useLegacyStoreResult?n:r,a)}function s(e,t,n,i){var o=l(e,t,n);if(o>-1&&t.splice(o,1),!i)return(0,_.trivialPromise)(n)}function l(e,t,n){var i=e.key();if(!function(e,t){return!e._hasKeyMap||e._hasKeyMap[JSON.stringify(t)]}(t,n))return-1;for(var o=0,a=t.length;o=1024&&n<=t.length-1;)i/=1024,n++;return(i=Math.round(10*i)/10)+" "+t[n]}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(7),r=a.getWindow(),s=n(12),l=n(5),u=n(8),c=n(4),d=n(0).extend,h=n(26),p=n(77),f=n(1),g=n(29),_=n(9),m=n(46),v={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},y={left:-1,top:-1,center:0,right:1,bottom:1},x={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},b={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},w=function(e,t){var n=e.option(t);return C(n)},C=function(e){return f.isObject(e)?e.name:e},k=function(e,t){var n,i,a,r,u=e.option("target"),c=w(e,t+"Event");c&&!e.option("disabled")&&(r=_.addNamespace(c,e.NAME),i=e._createAction(function(){n=function(e,t){var n=e.option(t);return f.isObject(n)&&n.delay}(e,t+"Event"),this._clearEventTimeout("hide"===t),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){i({event:e,target:o(e.currentTarget)})},u.jquery||u.nodeType||f.isWindow(u)?(e["_"+t+"EventHandler"]=void 0,l.on(u,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,u,a)))},S=function(e,t,n,i){var a=i||w(e,n+"Event");a&&(a=_.addNamespace(a,e.NAME),e["_"+n+"EventHandler"]?l.off(s.getDocument(),a,t,e["_"+n+"EventHandler"]):l.off(o(t),a))},I=m.inherit({_getDefaultOptions:function(){return d(this.callBase(),{target:r,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!a.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this._wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){S(this,e,"show"),S(this,e,"hide")},_attachEvents:function(){k(this,"show"),k(this,"hide")},_renderArrow:function(){this._$arrow=o("
    ").addClass("dx-popover-arrow").prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===i(e.to)&&d(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:c.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=p.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),h.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var e=p.calculate(this._$content,this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this._$content.width()-e.h.oversize;this._$content.width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this._$content.height()-e.v.oversize,i=this._$popupContent.height()-e.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var e=c.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var a=(this._isPopoverInside()?-1:1)*y[this._positionSide]*((i?this._$arrow.height():this._$arrow.width())-this._getContentBorderWidth(this._positionSide));i?n+=a:t+=a}return d({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(b[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?v[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){this._$arrow.css(v[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",i=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=o(this._position.of),r=p.offset(a)||{top:0,left:0},s=p.offset(this._$content),l=this._$arrow[i](),u=s[n],c=this._$content[i](),d=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(u,d),_=Math.min(u+c,d+h);t="start"===this.option("arrowPosition")?f-u:"end"===this.option("arrowPosition")?_-u-l:(f+_)/2-u-l/2;var m=this._getContentBorderWidth(e),y=g.fitIntoRange(t-m+this.option("arrowOffset"),m,c-l-2*m);this._$arrow.css(n,y)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),x),t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderShadingPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderShadingDimensions:function(){this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=d({},this._transformStringPosition(this.option("position"),x));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=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at),i=y[t.h]===y[n.h]&&y[t.v]===y[n.v]?-1:1;return Math.abs(y[t.h]-i*y[n.h])>Math.abs(y[t.v]-i*y[n.v])?n.h:n.v},_isVerticalSide:function(e){return"top"===(e=e||this._positionSide)||"bottom"===e},_isHorizontalSide:function(e){return"left"===(e=e||this._positionSide)||"right"===e},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e?"show":"hide"])},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this.callBase(e),this._renderGeometry();break;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=C(e.previousValue);this.hide(),S(this,this.option("target"),t,n),k(this,t);break;case"visible":this._clearEventTimeout(e.value),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});u("dxPopover",I),e.exports=I},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(14),s=n(175),l=n(9),u="dxListEditDecorator",c=l.addNamespace(s.start,u),d=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,c,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,d,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(544)},function(e,t,n){e.exports=n(342)},function(e,t,n){var i=n(21),o=n(0).extend,a=n(3).each,r=n(13).inArray,s=n(22),l=s.dateToMilliseconds,u={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},c={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);d(n,1,-1),n.getDate()>=Math.abs(t)?d(e,1,t):d(e,2,t)}else e.setDate(t),k(e,t)},byday:function(e,t,n,i,o){var a=t;"DAILY"!==i&&"WEEKLY"!==i||!(o&&t>=o||!o&&0===t)||(a=7),t+=g[n]>a?7:0,e.setDate(e.getDate()-e.getDay()+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-g[n],r=o.getTime()-a*l("day");a+1>4?e.setTime(r+7*t*l("day")):e.setTime(r+7*(t-1)*l("day"));var s=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");s&&e.setTime(e.getTime()+s)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},d=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},h={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n,i=new Date(e),o=4-i.getDay()+g[t]-1,a=l("day");e.getDay()e.getTime()?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||X(e,[n.dateRules[t]],n.rule.wkst)}return!1},C=function(e,t){var n=[];return t.split(",").forEach(function(t){var i=(t=Number(t))>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},k=function(e,t){e.getDate()!==t&&e.setDate(t)},S=function(e,t,n,i){var o=new Date(e),a=!0;if(e=s.addInterval(e,n.interval),"MONTHLY"===n.freq&&!n.byday){var r=t.getDate();n.bymonthday&&((r=Number(n.bymonthday.split(",")[i]))<0&&(o.setMonth(o.getMonth()+1,1),c.bymonthday(o,r),e=o,a=!1)),a&&k(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);c.byyearday(e,l)}var u=W(n);for(var d in u[i])c[d]&&c[d](e,u[i][d],n.wkst)}return e},I=function(e,t){return{years:e.getFullYear()-t.getFullYear(),months:e.getMonth()-t.getMonth(),days:e.getDate()-t.getDate(),hours:e.getHours()-t.getHours(),minutes:e.getMinutes()-t.getMinutes(),seconds:e.getSeconds()-t.getSeconds()}},T=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=L(e),t.isValid=E(t.rule,e)),t},D=[],E=function(e,t){return!(F(e)||-1===r(e.freq,f)||O(e)||M(e)||R(e)||B(e)||P(e)||A(e))||(V(t),!1)},A=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},O=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},B=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},P=function(e){var t=!1,n=e.bymonth;return n&&isNaN(parseInt(n))&&(t=!0),t},M=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},R=function(e){var t=N(e),n=!1;return a(t,function(e,t){if(!g.hasOwnProperty(t))return n=!0,!1}),n},F=function(e){var t=!1;return a(e,function(e){if(-1===r(e,p))return t=!0,!1}),t},V=function(e){-1===r(e,D)&&(i.log("W0006",e),D.push(e))},L=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(t&&(e.fdow=t),e.wkst||(e.wkst=t?_[t]:"MO"),e.byweekno&&!e.byday){for(var i=Object.keys(g),o=0;o=n.getTime()&&c.push(u[d]);var h=c.length,p=(r+=h)-a;for(r>a&&c.splice(h-p,p),d=0;d0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},t.replaceInherit=f?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(e){n[e]={}}),e.addPlugin=p,e},e.addChange=p,e.addPlugin=p}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._fontFields,s=e._eventsMap,l=e._initialChanges,u=e._themeDependentChanges,d=e._optionChangesMap,h=e._partialOptionChangesMap,p=e._optionChangesOrder,f=e._layoutChangesOrder,g=e._customChangesOrder,_=t.apply(this,arguments);return(e=_.prototype)._plugins=a(n,e._plugins),e._fontFields=a(i,e._fontFields),e._eventsMap=o(s,e._eventsMap),e._initialChanges=a(l,e._initialChanges),e._themeDependentChanges=a(u,e._themeDependentChanges),e._optionChangesMap=o(d,e._optionChangesMap),e._partialOptionChangesMap=o(h,e._partialOptionChangesMap),e._optionChangesOrder=a(p,e._optionChangesOrder),e._layoutChangesOrder=a(f,e._layoutChangesOrder),e._customChangesOrder=a(g,e._customChangesOrder),r(e),_.addPlugin=c,_},e.prototype._plugins=[],e.prototype._fontFields=[],e.addChange=s,e.addPlugin=c},t.changes=function(){return new i},t.expand=u},function(e,t,n){var i=n(0).extend,o=n(3).each,a=n(107),r=n(169).chart.area,s=a.chart,l=a.polar,u=i,c=o;t.chart={},t.polar={};var d={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,o=s._parsePointStyle.call(this,e,i,n);return o.fill=i,o.hatching=e.hatching,o.dashStyle=e.border&&e.border.dashStyle||"solid",delete o.r,o},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n={};s._setGroupsSettings.apply(this,arguments),e&&t?n=this._getAffineCoordOptions():e||(n={scaleX:1,scaleY:1,translateX:0,translateY:0}),this._markersGroup.attr(n)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;o(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this;t._animatePoints(e,function(){t._animateComplete()},function(e,t){var n=e.length-1;c(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})})},getValueRangeInitialValue:r.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum",_defineDrawingState:function(){},usePointsToDefineAutoHiding:function(){return!1}};t.chart.bar=u({},s,d,{_getAffineCoordOptions:function(){var e=this._options.rotated,t={scaleX:e?.001:1,scaleY:e?1:.001};return t["translate"+(e?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),t},_animatePoints:function(e,t,n){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(this._drawnPoints,t)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),o=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),a=this.getOptions().rotated,r=e.getOptions().inverted,s=this.getVisiblePoints(),l=!e.isArgumentAxis&&!a||e.isArgumentAxis&&a?"height":"width";if(e.isArgumentAxis){var u=!a&&!r||a&&r?-1:1;s[0]&&(i+=u*s[0].getMarkerCoords()[l]/2),s[s.length-1]&&(o-=u*s[s.length-1].getMarkerCoords()[l]/2)}return e.isArgumentAxis&&(!a&&!r||a&&r)||!e.isArgumentAxis&&(a&&!r||!a&&r)?t>=i&&t<=o:t>=o&&t<=i},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,o=i?"vy":"vx",a=this._options.rotated?"minX":"minY",r=i?"height":"width",s=i?"vx":"vy",l=this.getPoints(),u=0;u=h[0]&&e<=h[1]?c[s]:void 0}if(this.checkAxisVisibleAreaCoord(!t,d)){n=d;break}}return n}}),t.polar.bar=u({},l,d,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:s._setGroupsSettings,_drawPoint:function(e,t,n){s._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=d._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:s._createGroups,_setMarkerGroupSettings:function(){var e,t=this,n=t._createPointStyles(t._getMarkerGroupOptions()).normal;n.class="dxc-markers",t._applyMarkerClipRect(n),delete(e=u({},n)).opacity,t._markersGroup.attr(e)},_createLegendState:r._createLegendState})},function(e,t,n){var i,o=n(4).noop,a=n(87),r=a.postCtor,s={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(i in a)"postCtor"!==i&&(s[i]=a[i]);t.plugin={name:"data_source",init:function(){r.call(this)},dispose:o,members:s}},function(e,t,n){var i=Number,o=n(11).getAppropriateFormat,a=n(0).extend,r=n(404),s=a,l=n(98),u=n(788),c=n(789),d=l.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new u.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._tracker=e._factory.createTracker({renderer:e._renderer,container:t}),e._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),++this._valueChangingLocker},_endValueChanging:function(){0==--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var e=this,t=e._renderer,n=e._tooltip;e._tracker.setCallbacks({"tooltip-show":function(e,i){var o=e.getTooltipParameters(),a=t.getRootOffset(),r=s({value:o.value,valueText:n.formatValue(o.value),color:o.color},i);return n.show(r,{x:o.x+a.left,y:o.y+a.top,offset:o.offset},{target:i})},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._translator=e._tracker=null},_cleanCore:function(){this._tracker.deactivate(),this._cleanContent()},_renderCore:function(){var e=this;e._isValidDomain&&(e._renderContent(),e._tracker.setTooltipState(e._tooltip.isEnabled()),e._tracker.activate(),e._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var e=this;e._resizing=e._noAnimation=2===e._changes.count(),e.callBase.apply(e,arguments)},_applySize:function(e){var t=this;t._innerRect={left:e[0],top:e[1],right:e[2],bottom:e[3]};var n=t._layout._cache;return t._cleanCore(),t._renderCore(),t._layout._cache=t._layout._cache||n,[e[0],t._innerRect.top,e[2],t._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){var e=this;e._setupDomainCore(),e._isValidDomain=isFinite(1/(e._translator.getDomain()[1]-e._translator.getDomain()[0])),e._isValidDomain||e._incidentOccurred("W2301"),e._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){var e=this;e._setupCodomain(),e._setupAnimationSettings(),e._setupDefaultFormat(),e._change(["LAYOUT"])},_setupAnimationSettings:function(){var e=this,t=e.option("animation");e._animationSettings=null,(void 0===t||t)&&((t=s({enabled:!0,duration:1e3,easing:"easeOutCubic"},t)).enabled&&t.duration>0&&(e._animationSettings={duration:i(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=o(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new r.Translator1D},createTracker:function(e){return new c(e)}}});t.dxBaseGauge=d;var h=n(63).format,p=function(e,t,n){var i,o=h(e,(t=t||{}).format);return"function"==typeof t.customizeText?(i=s({value:e,valueText:o},n),String(t.customizeText.call(i,i))):o};t.formatValue=p,t.getSampleText=function(e,t){var n=p(e.getDomainStart(),t),i=p(e.getDomainEnd(),t);return n.length>=i.length?n:i},t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&function(e,t){var n,i,o,a=e.length;for(n=0;n0?Number(e):0),i(o,["TILING"]),n=this):n=o.value,n},label:function(e){var n,o=t[this._id];return void 0!==e?(o.customLabel=e?String(e):null,i(o,["LABELS"]),n=this):n=o.customLabel||o.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},r(!0,n._custom,e),n._partialState=n._partialLabelState=null),i(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,i(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},o._extendProxyType=n(4).noop;var s=o._resetNodes;o._resetNodes=function(){s.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var l=a.updateStyles;a.updateStyles=function(){var e=this;l.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),r(!0,e.state,e._partialState))};var u=a.updateLabelStyle;a.updateLabelStyle=function(){var e=this,t=e._custom;u.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||function(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}(e,t.label),e.labelState=r(!0,{},e.labelState,e._partialLabelState))},o.getRootNode=function(){return this._root.proxy},o.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){var i=n(0).extend;n(51).inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,i({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return 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(177);e.exports=new i},function(e,t,n){var i=n(5),o=n(31),a=n(12),r=n(14),s=n(9),l="dxPointerEvents",u=r.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.getDocument(),i.off(e,this._originalEvents)}});e.exports=u},function(e,t,n){var i=n(2),o=n(76),a="dx-swatch-";e.exports={getSwatchContainer:function(e){var t=i(e).closest('[class^="'+a+'"], [class*=" '+a+'"]'),n=o.value();if(!t.length)return n;var r=new RegExp("(\\s|^)("+a+".*?)(\\s|$)"),s=t[0].className.match(r)[2],l=n.children("."+s);return l.length||(l=i("
    ").addClass(s).appendTo(n)),l}}},function(e,t,n){var i=n(14),o=n(1),a=n(3),r=n(20).compileGetter,s=n(20).toComparable,l=n(6).Deferred,u=n(35),c=n(40),d=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1t?1:0},_=d.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if((e=e.value)===(t=t.value))return n-i;for(var o=0,a=this.rules.length;o":return e(i,a,!0);case">":return function(e){return s(i(e))>a};case"<":return function(e){return s(i(e))=":return function(e){return s(i(e))>=a};case"<=":return function(e){return s(i(e))<=a};case"startswith":return function(e){return 0===s(t(i(e))).indexOf(a)};case"endswith":return function(e){var n=s(t(i(e))),o=t(a);return!(n.length-1};case"notcontains":return function(e){return-1===s(t(i(e))).indexOf(a)}}throw u.errors.Error("E4003",o)};return function(e){return o.isFunction(e)?e:c.isGroupCriterion(e)?function(e){var t=[],n=!1,i=!1;return a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&n!==i)throw new u.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=c.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o=this.skip+this.take)return!1;for(;this.pos").addClass("dx-item-content-placeholder");this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),o=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}}(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass("dx-state-disabled",!!e)},_renderVisible:function(e,t){this._$element.toggleClass("dx-state-invisible",void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});s.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=s},function(e,t,n){var i=n(5),o=n(10),a=n(12),r=n(14),s=n(67),l=n(19),u=n(9),c="dxdblclick",d=u.addNamespace(l.name,"dxDblClick"),h=r.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&i.on(a.getDocument(),d,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp<300?(u.fireEvent({type:c,target:o.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(a.getDocument(),d))}});s(c,new h),t.name=c},function(e,t,n){var i=n(1),o=n(3),a=n(27),r=n(0).extend,s=n(180),l=n(101),u=l.serializePropName,c=n(35).errors,d=n(40),h=i.isFunction,p=function(){var e,t,n,s=function(e){return function(t,n){return t+" "+e+" "+n}},h=function(e,n){return function(i,o){var a=[e,"("];return t&&(i=-1===i.indexOf("tolower(")?"tolower("+i+")":i,o=o.toLowerCase()),n?a.push(o,",",i):a.push(i,",",o),a.push(")"),a.join("")}},p={"=":s("eq"),"<>":s("ne"),">":s("gt"),">=":s("ge"),"<":s("lt"),"<=":s("le"),startswith:h("startswith"),endswith:h("endswith")},f=r({},p,{contains:h("substringof",!0),notcontains:h("not substringof",!0)}),g=r({},p,{contains:h("contains"),notcontains:h("not contains")}),_=function(t){var i=(t=d.normalizeBinaryCriterion(t))[1],o=(4===e?g:f)[i.toLowerCase()];if(!o)throw c.Error("E4003",i);var a=t[0],r=t[2];return n&&n[a]&&(r=l.convertPrimitiveValue(n[a],r)),o(u(a),l.serializeValue(r,e))},m=function(e){return Array.isArray(e[0])?function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+m(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")}(e):d.isUnaryOperation(e)?function(e){var t=e[0],n=m(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)}(e):_(e)};return function(o,r,s,l){return n=s,t=i.isDefined(l)?l:a().oDataFilterToLower,e=r,m(o)}}(),f=function(e){var t,n,i,o,a=[],s=[],c=e.expand,d=e.version||2,f=function(){return n||void 0!==i};return{optimize:function(e){!function(e){for(var t=-1,n=0;n").addClass("dx-gesture-cover").css("pointerEvents","none");return o.subscribeGlobal(t,"dxmousewheel",function(e){e.preventDefault()}),u(function(){t.appendTo("body")}),function(e,n){t.css("pointerEvents",e?"all":"none"),e&&t.css("cursor",n)}}),x=f.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(e){return p.needSkipEvent(e)?void this._cancel(e):(this._startEvent=p.createEvent(e),this._startEventData=p.eventData(e),this._stage=1,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(e){if(1===this._stage&&this._directionConfirmed(e)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),0===this._stage)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=p.eventDelta(this._startEventData,p.eventData(e)),i=_(n.x),o=_(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e);return"both"===s&&(a||r)||"horizontal"===s&&a||"vertical"===s&&r||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||v(e)?0:m},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=p.eventDelta(this._startEventData,p.eventData(e));this._startEvent.pageX+=g(n.x)*t,this._startEvent.pageY+=g(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(e){2===this._stage&&function(e,t){y()(e,t)}(e,this.getElement().css("cursor"))},_clearSelection:function(e){v(e)||p.isTouchEvent(e)||l.clearSelection()},end:function(e){this._toggleGestureCover(!1),2===this._stage?this._end(e):1===this._stage&&this._stop(e),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:d,_start:d,_move:d,_stop:d,_end:d});x.initialTouchBoundary=m,x.touchBoundary=function(e){return h(e)?void(m=e):m},e.exports=x},function(e,t,n){var i=n(175),o=n(5),a=n(66),r=n(3).each,s=n(9),l=n(0).extend,u=n(126),c="dxSwipeable",d={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},h=a.inherit({_getDefaultOptions:function(){return l(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),r(d,function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),o.on(this.$element(),n,this._eventData,function(e){return i({event:e})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.off(this.$element(),"."+c)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}}});u.name(h,c),e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(14)),s=n(13),l=n(3),u=n(9),c="compositionstart",d="KeyboardProcessor",h=r.default.inherit({_keydown:(0,u.addNamespace)("keydown",d),_compositionStart:(0,u.addNamespace)(c,d),_compositionEnd:(0,u.addNamespace)("compositionend",d),ctor:function(e){var t=this;(e=e||{}).element&&(this._element=(0,o.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){t.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),a.default.on(this._element,this._keydown,this._processFunction),a.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),a.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(a.default.off(this._element,this._keydown,this._processFunction),a.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),a.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 h;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){var t=this._focusTarget&&this._focusTarget!==e.target&&(0,s.inArray)(e.target,this._focusTarget)<0,n=this._isComposingJustFinished&&229===e.which||this._isComposing||t;if(this._isComposingJustFinished=!1,n)return!1;var i={keyName:(0,u.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};this._handler&&this._handler.call(this._context,i)&&this._childProcessors&&(0,l.each)(this._childProcessors,function(t,n){n.process(e)})},toggleProcessing:function(e){var t=e.type;this._isComposing=t===c,this._isComposingJustFinished=!this._isComposing}});e.exports=h},function(e,t,n){var i=n(2),o=n(5),a=n(44),r=n(16),s=n(14),l=n(67),u=n(9),c=n(89),d="dxContexMenu",h=u.addNamespace("contextmenu",d),p=u.addNamespace(c.name,d),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,"."+d)}});l(f,new g),t.name=f},function(e,t,n){var i=n(2),o=n(282),a=n(5),r=n(42),s=n(8),l=n(4),u=n(10),c=n(64).focused,d=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(10).getPublicElement,g=n(18),_=n(77),m=n(99).getDefaultAlignment,v=n(489).default,y=n(15),x=n(9),b=n(92),w=n(19),C=n(86),k=n(46),S="dx-dropdowneditor-input-wrapper",I=b.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return p({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&a.trigger(t,"focus"),e.preventDefault()}},escape:function(e){this.option("opened")&&e.preventDefault(),this.close()},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0},home:e,end:e})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:v}])},_getDefaultOptions:function(){return p(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:y.format("OK"),cancelButtonText:y.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=m(this.option("rtlEnabled"));return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"generic"===e.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+S)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._initInnerOptionCache("dropDownOptions")},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner(i("
    ").addClass(S)),this._$container=this.$element().children().eq(0),this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&a.off(this._input(),"focusin focusout beforeactivate")},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){!!this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var n=this,o=c(this._input()),r=this._$container;this._disposeKeyboardProcessor();var s=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,l=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;s&&s.removeChild(this._$beforeButtonsContainer[0]),l&&l.removeChild(this._$afterButtonsContainer[0]),r.empty();var d=i("
    ").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(r);e.render({model:t,container:u.getPublicElement(d),onRendered:function(){if(!n._input().length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),o&&a.trigger(n._input(),"focus")}}),r.prepend(this._$beforeButtonsContainer),r.append(this._$afterButtonsContainer)},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new C(function(e){var t=i("
    ").addClass("dx-dropdowneditor-icon");i(e.container).append(t)},this)},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=x.addNamespace(w.name,e.NAME),i=e.option("openOnFieldClick");a.off(t,n),a.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass("dx-dropdowneditor-field-clickable",i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!c(this._input())&&a.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:e?this._popupContentId:void 0})},_createPopup:function(){this._$popup||(this._$popup=i("
    ").addClass("dx-dropdowneditor-overlay").addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,k,p(this._popupConfig(),this._getInnerOptionsCache("dropDownOptions"))),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._popupContentId="dx-"+new r,this.setAria("id",this._popupContentId,this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_contentReadyHandler:l.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:p(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass("dx-dropdowneditor-overlay-flipped",e.position.v.flip)},_popupShowingHandler:l.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=_.setup(this.$element()).top,n=_.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:u.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=e.target,n=i(t),o=this.getButton("dropDown"),a=o&&o.$element(),r=!!n.closest(this.$element()).length,s=!!n.closest(a).length;return!r&&!s},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(a.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){a.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=l.splitPair(t);d(n,function(e,t){p(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_updatePopupWidth:l.noop,_popupOptionChanged:function(e){var t=this._getOptionsFromContainer(e);this._setPopupOption(t),-1!==Object.keys(t).indexOf("width")&&void 0===t.width&&this._updatePopupWidth()},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":h(e.value)?this._renderField():this._invalidate();break;case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._cacheInnerOptions("dropDownOptions",e.value);break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return f(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(o);s("dxDropDownEditor",I),e.exports=I},function(e,t,n){e.exports=n(506)},function(e,t,n){var i=n(2),o=n(30),a=n(8),r=n(4).grep,s=n(0).extend,l=n(13),u=n(3),c=n(560),d=n(561),h=n(286),p=n(133),f={actionSheet:c,dropDownMenu:d},g="dx-toolbar-item-auto-hide",_="dx-toolbar-item-invisible",m=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu",menuContainer:void 0})},_defaultOptionsRules:function(){var e=o.current();return this.callBase().concat([{device:function(){return o.isIos7(e)},options:{submenuType:"actionSheet"}}])},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._defaultTemplates.actionSheetItem=new p("item",this)},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),this._menuStrategy.renderMenuItems()},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(g),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass("dx-toolbar-text-auto-hide"),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find("."+g);if(t.length){e=e||this.$element().width(),i(t).removeClass(_);for(var n=this._getItemsWidth();t.length&&e").addClass(g).append(a)}},n)});return l.merge(o,t)},_getToolbarItems:function(){var e=this;return r(this.option("items")||[],function(t){return!e._isMenuItem(t)})},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=f[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("items")||[],t=!1;return u.each(e,function(e,n){"auto"===n.locateInMenu?t=!0:"always"===n.locateInMenu&&n.widget&&(t=!0)}),t},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto",float:"none"}),u.each(this._restoreItems||[],function(e,t){i(t.container).append(t.item)}),this._restoreItems=[];var e=this.$element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems())},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",n);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});a("dxToolbar",m),e.exports=m},function(e,t,n){e.exports=n(319),e.exports.show=n(249).show,e.exports.hide=n(249).hide},function(e,t,n){var i=n(1),o=n(13).inArray,a=n(3),r=["year","month","day"],s=["year","month","day","hour","minute"];e.exports=function(){var t=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},n=function(e){return"date"===e||"datetime"===e},l=function(e){return i.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:a.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},u=function(n,i,o){var a,r,s,u=this,c=l(n),d=t(u,o);switch("headerFilter"===o?s=e.exports.getGroupInterval(u)[c.length-1]:"datetime"===u.dataType&&(s="minute"),s){case"year":a=new Date(c[0],0,1),r=new Date(c[0]+1,0,1);break;case"month":a=new Date(c[0],c[1],1),r=new Date(c[0],c[1]+1,1);break;case"quarter":a=new Date(c[0],3*c[1],1),r=new Date(c[0],3*c[1]+3,1);break;case"hour":a=new Date(c[0],c[1],c[2],c[3]),r=new Date(c[0],c[1],c[2],c[3]+1);break;case"minute":a=new Date(c[0],c[1],c[2],c[3],c[4]),r=new Date(c[0],c[1],c[2],c[3],c[4]+1);break;case"second":a=new Date(c[0],c[1],c[2],c[3],c[4],c[5]),r=new Date(c[0],c[1],c[2],c[3],c[4],c[5]+1);break;default:a=new Date(c[0],c[1],c[2]),r=new Date(c[0],c[1],c[2]+1)}switch(i){case"<":return[d,"<",a];case"<=":return[d,"<",r];case">":return[d,">=",r];case">=":return[d,">=",a];case"<>":return[[d,"<",a],"or",[d,">=",r]];default:return[[d,">=",a],"and",[d,"<",r]]}},c=function(n,o,a){var r=t(this,a),s=e.exports.getGroupInterval(this);if("headerFilter"===a&&s&&i.isDefined(n)){var l=(""+n).split("/"),u=Number(l[l.length-1]);return[[r,">=",u],"and",[r,"<",u+s[l.length-1]]]}return[r,o||"=",n]};return{defaultCalculateFilterExpression:function(e,o,a){var r=this,s=t(r,a),l=r.calculateDisplayValue&&"search"===a,d=l&&r.lookup&&r.lookup.dataType||r.dataType,h=null;if("headerFilter"!==a&&"filterBuilder"!==a||null!==e)if("string"!==d||r.lookup&&!l){if("between"===o)return function(e,o){var a,r,s,l=t(this,o);if(Array.isArray(e)&&i.isDefined(e[0])&&i.isDefined(e[1]))return r=[l,">=",e[0]],s=[l,"<=",e[1]],n(this.dataType)&&function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1}(e[1])&&((a=new Date(e[1].getTime())).setDate(e[1].getDate()+1),s=[l,"<",a]),[r,"and",s]}.apply(r,[e,a]);if(n(d)&&i.isDefined(e))return u.apply(r,arguments);if("number"===d)return c.apply(r,arguments);"object"!==d&&(h=[s,o||"=",e])}else h=[s,o||"contains",e];else h=[s,o||"=",null],"string"===d&&(h=[h,"="===o?"or":"and",[s,o||"=",""]]);return h},getGroupInterval:function(e){var t,a=[],l=["year","month","day","hour","minute","second"],u=e.headerFilter&&e.headerFilter.groupInterval,c="quarter"===u?"month":u;return n(e.dataType)&&null!==u?(a="datetime"===e.dataType?s:r,(t=o(c,l))>=0?((a=l.slice(0,t)).push(u),a):a):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=i(n(2)),a=i(n(12)),r=n(7),s=i(n(5)),l=i(n(37)),u=i(n(19)),c=i(n(154)),d=i(n(31)),h=n(4),p=i(n(84)),f=n(10),g=i(n(1)),_=i(n(3)),m=n(0),v=n(99),y=i(n(16)),x=i(n(38)),b=n(36),w=i(n(327)),C="scroll-container",k="dx-row",S="dx-group-row",I="dx-master-detail-row",T="0.0001px",D="dxCellHintVisible",E={render:function(e){e.container.append(e.content)}},A=function(e,t,n){function i(e){return setTimeout(function(){a=r=null},e)}var a,r,l;s.default.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(l),"touchstart"===e.type?(a=e.target,r=e.currentTarget,l=i(1e3)):l=i()}),s.default.on(t,n.name,".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var i=t.event;a&&(i.target=a,i.currentTarget=r),(0,o.default)(i.target).closest("a").length||(t.rowIndex=e.getRowIndex(i.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,f.getPublicElement)((0,o.default)(i.currentTarget)),t.columns=e.getColumns(),"dxclick"===n.name?e._rowClick(t):e._rowDblClick(t)))}))},O=function(e){return"auto"===e?"":g.default.isNumeric(e)?e+"px":e},B=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n};t.ColumnsView=x.default.View.inherit(w.default).inherit({_createScrollableOptions:function(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),n=(0,m.extend)({pushBackValue:0},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!t,n.useSimulatedScrollbar=!t),n},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||(0,v.getDefaultAlignment)(this.option("rtlEnabled")),i=a.default.createElement("td");i.style.textAlign=n;var r=(0,o.default)(i);return"data"===e.rowType&&t.headerId&&this.setAria("describedby",t.headerId,r),!g.default.isDefined(t.groupIndex)&&t.cssClass&&r.addClass(t.cssClass),"expand"===t.command&&(r.addClass(t.cssClass),r.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?r.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(i.style.minWidth=O(t.minWidth||t.width)),t.width&&B(i,t,O(t.width))),r},_createRow:function(e){var t=(0,o.default)("").addClass(k);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,i=(0,o.default)("").addClass(n.addWidgetPrefix("table")).addClass(n.addWidgetPrefix("table-fixed"));if(e&&!t?(i.append(n._createColGroup(e)),y.default.real().ios&&i.append((0,o.default)("").append("")),n.setAria("role","presentation",i)):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,o.default)("").appendTo(i)),t)return i;d.default.mozilla&&s.default.on(i,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&s.default.on(i,"mousemove",".dx-row > td",this.createAction(function(e){var t=e.event,i=(0,o.default)(t.target),a=(0,o.default)(t.currentTarget),r=a.parent(),s=r.hasClass("dx-data-row"),l=r.hasClass("dx-header-row"),u=r.hasClass(S),c=r.hasClass(I),h=r.hasClass(n.addWidgetPrefix("filter-row")),p=n._columnsController.getVisibleColumns(),f=r.data("options"),_=a.index(),m=f&&f.cells&&f.cells[_],v=m?m.column:p[_],y=d.default.msie?1:0;c||h||s&&(!s||!v||v.cellTemplate)||l&&(!l||!v||v.headerCellTemplate)||u&&(!u||!v||void 0!==v.groupIndex&&v.groupCellTemplate)||(i.data(D)&&(i.removeAttr("title"),i.data(D,!1)),i[0].scrollWidth-i[0].clientWidth-y>0&&!g.default.isDefined(i.attr("title"))&&(i.attr("title",i.text()),i.data(D,!0)))}));var a=function(e){var t,i,a=(0,o.default)(e.currentTarget),r=(0,o.default)(e.target).closest(".dx-field-item-content"),s=a.parent().data("options"),l=s&&s.cells&&s.cells[a.index()];if(a.closest("table").is(e.delegateTarget))return i=(0,m.extend)({},l,{cellElement:(0,f.getPublicElement)(a),event:e,eventType:e.type}),r.length&&((t=r.data("dx-form-item")).column&&(i.column=t.column,i.columnIndex=n._columnsController.getVisibleIndex(i.column.index))),i};return s.default.on(i,"mouseover",".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.default.on(i,"mouseout",".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.default.on(i,u.default.name,".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellClick",t)}),s.default.on(i,c.default.name,".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellDblClick",t)}),function(e,t){A(e,t,u.default)}(n,i),function(e,t){A(e,t,c.default)}(n,i),i},_isNativeClick:h.noop,_rowClick:h.noop,_rowDblClick:h.noop,_createColGroup:function(e){var t,n,i,a=(0,o.default)("");for(t=0;t");return p.default.setWidth(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter(function(e){return!e.async}),n=e.filter(function(e){return e.async});this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,r.getWindow)().setTimeout(function(){t._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,t){for(var n,i=new Date;e.length;){var r=(n=e.shift()).options,s=r.model,l=a.default.getDocument();if(t&&!(0,o.default)(r.container).closest(l).length||(n.template.render(r),s&&s.column&&this._updateCell(r.container,s)),t&&new Date-i>30){this._renderDelayedTemplatesCoreAsync(e);break}}},_processTemplate:function(e){var t,n,i=this;return e&&e.render&&!g.default.isRenderer(e)?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:g.default.isFunction(e)?n={render:function(t){var n=e((0,f.getPublicElement)(t.container),t.model);n&&(n.nodeType||g.default.isRenderer(n))&&t.container.append(n)}}:(t=g.default.isString(e)?e:(0,o.default)(e).attr("id"))?(i._templatesCache[t]||(i._templatesCache[t]=i.getTemplate(e)),n=i._templatesCache[t]):n=i.getTemplate(e),n},renderTemplate:function(e,t,n,i){var o,a=this,r=a._processTemplate(t,n),s=n.column,l="data"===n.rowType;if(r){if(n.component=a.component,o=s&&(s.renderAsync&&l||a.option("renderAsync")&&(!1!==s.renderAsync&&(s.command||s.showEditorAlways)&&l||"filter"===n.rowType)),(r.allowRenderToDetachedContainer||i)&&!o)return r.render({container:e,model:n}),!0;a._delayedTemplates.push({template:r,options:{container:e,model:n},async:o})}return!1},_getBodies:function(e){return(0,o.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(e,t){var n=this.option("rowTemplate")&&this._getBodies(this._tableElement||e);if(n&&n.filter("."+k).length){var i=(0,o.default)("").addClass(t.attr("class"));return this.setAria("role","presentation",i),i.append(t)}return t},_appendRow:function(e,t,n){(n=n||E).render({content:t,container:e})},_resizeCore:function(){var e=this,t=e._scrollLeft;t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){var t,n=this;(e=e||{}).columns=n._columnsController.getVisibleColumns();var i=e.change&&e.change.changeType;return t=n._createTable(e.columns,"append"===i||"prepend"===i||"update"===i),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this._getRows(t.change),o=t.change&&t.change.columnIndices||[];for(n=0;n=0)&&this._renderCell(e,(0,m.extend)({column:a[n],columnIndex:i,value:o.values&&o.values[i],oldValue:o.oldValues&&o.oldValues[i]},t)),a[n].colspan>1?i+=a[n].colspan:i++},_updateCells:function(e,t,n){var i=e.children(),o=t.children(),a=this.option("highlightChanges"),r=this.addWidgetPrefix("cell-updated-animation");n.forEach(function(e,t){var n=i.eq(e),s=o.eq(t);n.replaceWith(s),a&&!s.hasClass("dx-command-expand")&&s.addClass(r)}),function(e,t){if(e&&t){var n,i,o=e.attributes,a=t.attributes;for(i=0;i=0&&n.splice(e,1)}},t.update=t.update||function(t){this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&(e.row=t),n.forEach(function(e){e()})},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,f.getPublicElement)((0,o.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){l.default.data(e.get(0),"options",t),t.rowElement=(0,f.getPublicElement)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if((0,b.checkChanges)(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=_.default.map(n,function(e){var t=e.visibleWidth||e.width;return g.default.isDefined(t)?t:"auto"});this.setColumnWidths(i)}else this._requireReady||this.render()},getCellIndex:function(e){return e.length?e[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,o.default)()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:h.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(C)).not("."+t.addWidgetPrefix("content-fixed"));t._skipScrollChanged=!1,g.default.isDefined(e)&&g.default.isDefined(e.left)&&t._scrollLeft!==e.left&&(t._scrollLeft=e.left,i&&i.scrollLeft(Math.round(e.left)),t._skipScrollChanged=!0)},_wrapTableInScrollContainer:function(e){var t,n=this;return t=(0,o.default)("
    "),s.default.on(t,"scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}),t.addClass(n.addWidgetPrefix("content")).addClass(n.addWidgetPrefix(C)).append(e).appendTo(n.element()),n.setAria("role","presentation",t),t},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:h.noop,_getWidths:function(e){var t,n,i=[],o=this.option("legacyRendering");return e&&_.default.each(e,function(e,a){t=a.offsetWidth,a.getBoundingClientRect&&((n=a.getBoundingClientRect()).width>t-1&&(t=o?Math.ceil(n.width):n.width)),i.push(t)}),i},getColumnWidths:function(e){var t,n,i=[];if((this.option("forceApplyBindings")||h.noop)(),e=e||this._getTableElement()){t=e.children("tbody").children();for(var o=0;o=0&&(n=i.eq(o)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=(0,o.default)(),i=t.getTableElements();if(_.default.each(i,function(i,a){n=n.add(t._getRowElements((0,o.default)(a)).eq(e))}),n.length)return n},getCellElement:function(e,t){return(0,f.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,f.getPublicElement)(t).get)for(var i=0;i0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElements:function(e){if(e=e||this._getTableElement()){var t=this.option("rowTemplate")&&e.find("> tbody."+k);return t&&t.length?t:e.find("> tbody > ."+k+", > ."+k)}return(0,o.default)()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this.element(),n=this.option("rtlEnabled");t&&t.css(n?{paddingLeft:e}:{paddingRight:e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return void 0===e?k||b:(e=(0,h.normalizeEnum)(e),void(k=e in C?e:void 0))}function a(e,t){e=function(e,t){var n=e||(void 0===k?t:o());return"default"===n&&f.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}(e,(t=t||{}).themeDefault);var n,i=t.type;return v(e)?e.slice(0):(y(e)&&(n=C[(0,h.normalizeEnum)(e)]),n||(n=C[o()]),i?n[i].slice(0):n)}function r(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function s(e,t){function n(){var t=o.next();a=t?function(e,t){var n,i=[],o=e.length;for(n=0;n1?function(e,t,n){var i=new m(e).hsl,o=i.l/100,a=n-1/n,r=o-.5*a,s=o+.5*a,l=(n-1)/2,u=t-l;return rMath.max(.8,o+.15*(1-o))&&(s=Math.max(.8,o+.15*(1-o))),u<0?o-=(r-o)*u/l:o+=u/l*(s-o),i.l=100*o,m.prototype.fromHSL(i).toHex()}(a,g(t/i),o):a},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i0&&(a+=1,s--),o=a>2?Math.floor(a/2):0,i.push(l+o),l+=a;return i.sort(function(e,t){return e-t})}function i(e,t,n){for(var i=0,o=t=(n+t)%n;o<2*n;o+=1){var a=(n+o)%n;if(e[a])return[e[a],i];i++}}function o(e,t){for(var n=0;n-1&&(a[c]=e[l++]);return o(a,i)}var r=e.length,s=[];return{getColor:function(e,n){return n=n||t.count||r,s.length!==n&&(s=a(n)),s[e%n]},generateColors:function(e,n){if(e=e||t.count||r,n&&e>r){for(var i=a(r),o=0;o0?a(e).slice(0,e):[]},reset:function(){}}}(r,t),i.reset(),i}function c(e,t){var n=new m(e).alter(t),i=function(e){return.3*e.r+.59*e.g+.11*e.b}(n);return(i>200||i<55)&&(n=new m(e).alter(-t/2)),n.toHex()}var d;Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0,t.currentPalette=o,t.generateColors=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepLastColorInEnd:!1};return n.type=n.baseColorSet,n.extensionMode=n.paletteExtensionMode,u(e,n).generateColors(t)},t.getPalette=a,t.registerPalette=function(e,t){var n,i={};v(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=v(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=v(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=v(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,h.normalizeEnum)(e),(0,p.extend)(C[n]=C[n]||{},i))},t.getAccentColor=function(e,t){return(e=a(e,{themeDefault:t})).accentColor||e[0]},t.createPalette=u,t.getDiscretePalette=function(e,t,n){var i=t>0?function(e,t){function n(e){var t=a*e,n=g(t),i=_(t);s.push(r[n].blend(r[i],t-n).toHex())}var i,o=t-1,a=e.length-1,r=[],s=[];for(i=0;i<=a;++i)r.push(new m(e[i]));if(o>0)for(i=0;i<=o;++i)n(i/o);else n(.5);return s}(a(e,{type:"gradientSet",themeDefault:n}),t):[];return{getColor:function(e){return i[e]||null}}},t.getGradientPalette=function(e,t){var n=a(e,{type:"gradientSet",themeDefault:t}),i=new m(n[0]),o=new m(n[1]);return{getColor:function(e){return 0<=e&&e<=1?i.blend(o,e).toHex():null}}};var h=n(11),p=n(0),f=function(e){return e&&e.__esModule?e:{default:e}}(n(21)),g=Math.floor,_=Math.ceil,m=n(90),v=Array.isArray,y=n(1).isString,x=50,b="material",w={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},C=(i(d={},b,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),i(d,"default",w),i(d,"office",w),i(d,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),i(d,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),i(d,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),i(d,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),i(d,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),i(d,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),i(d,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),i(d,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),i(d,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),i(d,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),i(d,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),i(d,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),i(d,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),d),k=void 0},function(e,t,n){function i(e){return e&&"string"!=typeof e}function o(e){return U.createElementNS("http://www.w3.org/2000/svg",e)}function a(e,t){return null!==e?"url("+(t?Z.location.href.split("#")[0]:"")+"#"+e+")":e}function r(e,t){var n;for(n in t)e[n]=t[n];return e}function s(e,t){return e=e.toString().split("e"),+((e=(e=re(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))}function l(e,t,n,i,o,a){var r,l=!0,u=s(a,3)-s(o,3);return u&&(ue(u)%360==0&&(o=0,a=360,r=!0,a-=.01),o>360&&(o%=360),a>360&&(a%=360),o>a&&(o-=360),l=!1),o*=_e,a*=_e,[e,t,ie(i,n),oe(i,n),le(o),se(o),le(a),se(a),r,ae(ue(a-o)/ce)%2?"1":"0",l]}function u(e,t){var n=[["M",0,0]];switch(t){case"line":n=c(e);break;case"area":n=c(e,!0);break;case"bezier":n=d(e);break;case"bezierarea":n=d(e,!0)}return n}function c(e,t){return h(e,p,t)}function d(e,t){return h(e,f,t)}function h(e,t,n){var i,o,a=[];if(e[0]&&e[0].length)for(i=0,o=e.length;it)for(o=1,a=e.value.length;o<=a;++o)if(n+e.tspan.getSubStringLength(0,o)>t)return o-1}function S(e){return e.value.length?e.tspan.getSubStringLength(0,e.value.length):0}function I(e,t){return t.hideOverflowEllipsis&&0===e?"":Ae}function T(e,t,n){var i=I(t,n);if(e.value.length&&e.tspan.parentNode)for(var o=e.value.length-1;o>=1;o--){if(e.startBox+e.tspan.getSubStringLength(0,o)0?[0]:[],i=e.value.split("").reduce(function(e,t,n){return" "===t&&e.push(n),e},n),o=0;void 0!==i[o+1]&&e.startBox+e.tspan.getSubStringLength(0,i[o+1])t)return n}(e,t));var s=[],l=void 0;if(isFinite(a)){E(e,a,"");var u=" "===o[a]?1:0,c=o.slice(a+u);if(c.length){var d=C(e.tspan);if(d.textContent=c,e.tspan.parentNode.appendChild(d),(l=r(r({},e),{value:c,startBox:0,height:0,tspan:d,stroke:C(e.stroke),endBox:d.getSubStringLength(0,c.length)})).stroke&&(l.stroke.textContent=c),l.endBox>t&&!(s=D(l,t,n,i)).length)return[]}}if(e.value.length){if("ellipsis"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t&&T(e,n,i),"hide"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t)return[]}else e.tspan.parentNode.removeChild(e.tspan);var h=[];return l&&h.push(l),[{commonLength:o.length,parts:h}].concat(s)}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ae,i=e.value.substr(0,t)+n;e.value=e.tspan.textContent=i,e.stroke&&(e.stroke.textContent=i),n===Ae&&(e.hasEllipsis=!0)}function A(e){e.tspan.parentNode&&e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode&&e.stroke.parentNode.removeChild(e.stroke)}function O(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function B(e,t){return e.inherits?M(e.height,t):e.height||t}function P(e){if(e._texts){var t,n,i=e._texts,o=e._settings.x,a=e._getLineHeight(),r=i[0];for(O(r,"x",o),O(r,"y",e._settings.y),t=1,n=i.length;t=0){O(r,"x",o),O(r,"dy",B(r,a))}}}function M(e,t){var n=ve(e),i=ve(t),o=n||Ee,a=i||Ee;return o>a?isNaN(n)?o:e:isNaN(i)?a:t}function R(e,t,n,i){n=n||{};var o,a,s=e.renderer,l=e._settings,u={},c={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),s.animationEnabled()){for(o in t)a=t[o],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(o)?(u.transform=u.transform||{from:{},to:{}},u.transform.from[o]=o in l?Number(l[o].toFixed(3)):c[o],u.transform.to[o]=a):u[o]="arc"===o||"segments"===o?a:{from:o in l?l[o]:parseFloat(e.element.getAttribute(o)||0),to:a};s.animateElement(e,u,r(r({},s._animation),n))}else n.step&&n.step.call(e,1,1),n.complete&&n.complete.call(e),e.attr(t);return e}function F(e,t){var n={is:!1,name:t.name||t,after:t.after};return e?n.to=e:n.virtual=!0,n}function V(e,t,n){var i=this;i.renderer=e,i.element=o(t),i._settings={},i._styles={},"path"===t&&(i.type=n||"line")}function L(e){Ve.remove(e)}function H(e,t){V.call(this,e,"path",t)}function z(e){V.call(this,e,"path","arc")}function N(e){V.call(this,e,"rect")}function $(e){V.call(this,e,"text"),this.css({"white-space":"pre"})}function W(e,t){var n,i;for(n=t;i=e[n];++n)i._link.i=n}function G(e,t){var n,i,o=t._links,a=e._link.after=e._link.after||t._linkAfter;if(a){for(n=0;(i=o[n])&&i._link.name!==a;++n);if(i)for(++n;(i=o[n])&&i._link.after===a;++n);}else n=o.length;o.splice(n,0,e),W(o,n)}function j(e){var t=this;t.root=t._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:De,stroke:De,"stroke-width":0}).attr({class:e.cssClass}).css({"line-height":"normal","-ms-user-select":De,"-moz-user-select":De,"-webkit-user-select":De,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),t._init(),t.pathModified=!!e.pathModified,t._$container=K(e.container),t.root.append({element:e.container}),t.fixPlacement(),t._locker=0,t._backed=!1}var q=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),K=n(2),U=n(12),Y=n(7),X=n(70),Z=Y.getWindow(),Q=n(5),J=n(31),ee=n(184).getSvgMarkup,te=n(758),ne=Math,ie=ne.min,oe=ne.max,ae=ne.floor,re=ne.round,se=ne.sin,le=ne.cos,ue=ne.abs,ce=ne.PI,de=n(1).isDefined,he=n(11),pe=he.normalizeEnum,fe=he.normalizeBBox,ge=he.rotateBBox,_e=ce/180,me=parseInt,ve=parseFloat,ye={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},xe="text",be="stroke",we="stroke-width",Ce="stroke-opacity",ke="font-size",Se="font-style",Ie="font-weight",Te="text-decoration",De="none",Ee=12,Ae="...",Oe=Object.create?function(e){return Object.create(e)}:function(e){var t=function(){};return t.prototype=e,new t},Be={scaleX:1,scaleY:1,"pointer-events":""},Pe=X(function(){var e=U.createElement("div");return e.style.left="-9999px",e.style.position="absolute",{backupContainer:e,backupCounter:0}}),Me=function(){var e=1;return function(){return"DevExpress_"+e++}}(),Re={full:De,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"},Fe=function(e,t,n,i,o,a,r,s,l,u){return["M",(e+i*o).toFixed(5),(t-i*a).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,u,0,(e+i*r).toFixed(5),(t-i*s).toFixed(5),l?"M":"L",(e+n*r).toFixed(5),(t-n*s).toFixed(5),"A",n.toFixed(5),n.toFixed(5),0,u,1,(e+n*o).toFixed(5),(t-n*a).toFixed(5),"Z"].join(" ")};t.SvgElement=V,V.prototype={constructor:V,_getJQElement:function(){return this._$element||(this._$element=K(this.element))},_addFixIRICallback:function(){var e=this,t=function(){y(e,"fill"),y(e,"clip-path"),y(e,"filter")};e.element._fixFuncIri=t,t.renderer=e.renderer,Ve.add(t),e._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function e(t){var n;for(n=0;nr&&(o=t.slice(0),s(t,e,n));return o}(r,i=u(e.points,a.type),a.type),e.segments={from:r,to:i,end:o},delete e.points),R(a,e,t,n)}}),t.ArcSvgElement=z,z.prototype=Oe(V.prototype),r(z.prototype,{constructor:z,attr:function(e){var t,n,o,a,s,u,c=this._settings;return i(e)&&("x"in(e=r({},e))||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(c.x=t="x"in e?e.x:c.x,delete e.x,c.y=n="y"in e?e.y:c.y,delete e.y,c.innerRadius=o="innerRadius"in e?e.innerRadius:c.innerRadius,delete e.innerRadius,c.outerRadius=a="outerRadius"in e?e.outerRadius:c.outerRadius,delete e.outerRadius,c.startAngle=s="startAngle"in e?e.startAngle:c.startAngle,delete e.startAngle,c.endAngle=u="endAngle"in e?e.endAngle:c.endAngle,delete e.endAngle,e.d=Fe.apply(null,l(t,n,o,a,s,u))),x(this,e)},animate:function(e,t,n){var i=this,o=i._settings,a={from:{},to:{}};return i.renderer.animationEnabled()&&("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(a.from.x=o.x||0,a.from.y=o.y||0,a.from.innerRadius=o.innerRadius||0,a.from.outerRadius=o.outerRadius||0,a.from.startAngle=o.startAngle||0,a.from.endAngle=o.endAngle||0,a.to.x="x"in e?e.x:o.x,delete e.x,a.to.y="y"in e?e.y:o.y,delete e.y,a.to.innerRadius="innerRadius"in e?e.innerRadius:o.innerRadius,delete e.innerRadius,a.to.outerRadius="outerRadius"in e?e.outerRadius:o.outerRadius,delete e.outerRadius,a.to.startAngle="startAngle"in e?e.startAngle:o.startAngle,delete e.startAngle,a.to.endAngle="endAngle"in e?e.endAngle:o.endAngle,delete e.endAngle,e.arc=a),R(i,e,t,n)}}),t.RectSvgElement=N,N.prototype=Oe(V.prototype),r(N.prototype,{constructor:N,attr:function(e){var t,n,o,a,s,l,u,c=this;return i(e)&&(void 0===(e=r({},e)).x&&void 0===e.y&&void 0===e.width&&void 0===e.height&&void 0===e[we]||(t=void 0!==e.x?c._originalX=e.x:c._originalX||0,n=void 0!==e.y?c._originalY=e.y:c._originalY||0,o=void 0!==e.width?c._originalWidth=e.width:c._originalWidth||0,a=void 0!==e.height?c._originalHeight=e.height:c._originalHeight||0,u=((s=void 0!==e[we]?c._originalSW=e[we]:c._originalSW)||0)<(l=~~((o/i.test(t)&&-1===t.indexOf("&")?/\n/g.test(t)?i=function(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];n|\/>)/gi,function(e,n,i,o){return i=(i&&i.match(t)||[]).map(function(e){return e}).join(" "),n+i+o})}(t),i=function(e){var t=[],n=U.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"
    "),function e(t,n,i,o,a){var s,l,u,c,d;if(void 0!==i.wholeText)t.push({value:i.wholeText,style:o,className:a,line:n,height:o[ke]||0});else if("BR"===i.tagName)++n;else if(U.isElementNode(i)){switch(r(s={},o),i.tagName){case"B":case"STRONG":s[Ie]="bold";break;case"I":case"EM":s[Se]="italic";break;case"U":s[Te]="underline"}for((l=i.style).color&&(s.fill=l.color),l.fontSize&&(s[ke]=l.fontSize),l.fontStyle&&(s[Se]=l.fontStyle),l.fontWeight&&(s[Ie]=l.fontWeight),l.textDecoration&&(s[Te]=l.textDecoration),u=0,d=i.childNodes,c=d.length;ue)for(e-u<0?e=0:e-=u,t=function(e,t,n){var i,o,a,r,s,l=[];if(t)for(i=0,o=t.length;ie&&A(s);return l.remove(),c._hasEllipsis=d,d},setMaxSize:function(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this,r=[],s=!1,l=!1,u=e;w.call(a),i=(n=a.renderer.text(Ae).attr(a._styles).append(a.renderer.root)).getBBox().width;var c=a._getElementBBox(),d=c.width,h=c.height;return(d>e||t&&h>t)&&(e-i<0?u=0:u-=i,r=function(e,t,n,i,o){var a=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===a)return e;var r=e.reduce(function(e,r,s,l){var u=q(e,2),c=u[0],d=u[1],h=function(e,t){return e.parts.reduce(function(e,n){return Math.max(e,B(n,t))},0)}(r,o);if((d+=h)i?(r[0].forEach(function(e){e.parts.forEach(function(e){A(e)})}),[]):r[0]}(r=function(e,t,n,i,o){if(!t){var a=e.textContent,r={value:a,height:0,line:0};e.textContent="",b([r],e,"tspan"),t=[r]}return t.reduce(function(e,t){var a=q(e,5),r=a[0],s=a[1],l=a[2],u=a[3],c=a[4],d=r[r.length-1];if(u)return[r,s,l,u];if(d&&t.line===c){if(t.startBox=s,s>i&&"none"===o.wordWrap&&"ellipsis"===o.textOverflow)return A(t),[r,s,l,u,c];d.parts.push(t),d.commonLength+=t.value.length}else t.startBox=s=0,r.push({commonLength:t.value.length,parts:[t]});if(t.endBox=l=s+S(t),s=l,de(n)&&l>n){var h=D(t,n,i,o);h.length?r=r.concat(h.filter(function(e){return e.parts.length>0})):(r=[],u=!0)}return[r,s,l,u,t.line]},[[],0,0,!1,0])[0]}(a.element,a._texts,e,u,o),u,o,t,parseFloat(this._getLineHeight())),this._texts=r.reduce(function(e,t){return e.concat(t.parts)},[]).filter(function(e){return""!==e.value}).map(function(e){return e.stroke&&e.tspan.parentNode.appendChild(e.stroke),e}).map(function(e){return e.tspan.parentNode.appendChild(e.tspan),e}),!this._texts.length&&(this._texts=null),s=!0,this._texts?P(this):(this.element.textContent="",l=!0)),n.remove(),a._hasEllipsis=s,{rowCount:r.length,textChanged:s,textIsEmpty:l}},restoreText:w,_getLineHeight:function(){return isNaN(ve(this._styles[ke]))?Ee:this._styles[ke]}}),t.Renderer=j,j.prototype={constructor:j,_init:function(){var e=this;e._defs=e._createElement("defs").append(e.root),e._animationController=new te.AnimationController(e.root.element),e._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},fixPlacement:function(){if(J.mozilla||J.msie){var e=function(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t||{left:0,top:0}}(this._$container.get(0)),t=s(e.left%1,2),n=s(e.top%1,2);J.msie?this.root.css({transform:"translate("+-t+"px,"+-n+"px)"}):J.mozilla&&this.root.move(-t,-n)}},removePlacementFix:function(){(J.mozilla||J.msie)&&(J.msie?this.root.css({transform:""}):J.mozilla&&this.root.attr({transform:null}))},setOptions:function(e){var t=this;return t.rtl=!!e.rtl,t.encodeHtml=!!e.encodeHtml,t.updateAnimationOptions(e.animation||{}),t.root.attr({direction:t.rtl?"rtl":"ltr"}),t},_createElement:function(e,n,i){var o=new t.SvgElement(this,e,i);return n&&o.attr(n),o},lock:function(){var e=this;return 0===e._locker&&(e._backed=!e._$container.is(":visible"),e._backed&&function(e){0===Pe().backupCounter&&U.getBody().appendChild(Pe().backupContainer),++Pe().backupCounter,e.append({element:Pe().backupContainer})}(e.root)),++e._locker,e},unlock:function(){var e=this;return--e._locker,0===e._locker&&(e._backed&&(function(e,t){e.append({element:t}),--Pe().backupCounter,0===Pe().backupCounter&&U.getBody().removeChild(Pe().backupContainer)}(e.root,e._$container[0]),e.fixPlacement()),e._backed=!1),e},resize:function(e,t){return e>=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;for(e in t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),Ve.removeByRenderer(t),t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return r(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){this.removePlacementFix();var e=this.root.markup();return this.fixPlacement(),e},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,n,i,o){return new t.RectSvgElement(this).attr({x:e||0,y:n||0,width:i||0,height:o||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function(e,t,n,i,o,a){var r=this._createElement("image",{x:e||0,y:t||0,width:n||0,height:i||0,preserveAspectRatio:Re[pe(a)]||De});return r.element.setAttributeNS("http://www.w3.org/1999/xlink","href",o||""),r},path:function(e,n){return new t.PathSvgElement(this,n).attr({points:e||[]})},arc:function(e,n,i,o,a,r){return new t.ArcSvgElement(this).attr({x:e||0,y:n||0,innerRadius:i||0,outerRadius:o||0,startAngle:a||0,endAngle:r||0})},text:function(e,n,i){return new t.TextSvgElement(this).attr({text:e,x:n||0,y:i||0})},linearGradient:function(e){var t,n=Me(),i=this;return(t=i._createElement("linearGradient",{id:n}).append(i._defs)).id=n,e.forEach(function(e){i._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(t)}),t},pattern:function(e,n,i){var o,a,r,s=this,l=(n=n||{}).step||6,u=l/2,c=1.5*l;return o=i||Me(),a="right"===pe(n.direction)?"M "+u+" "+-u+" L "+-u+" "+u+" M 0 "+l+" L "+l+" 0 M "+c+" "+u+" L "+u+" "+c:"M 0 0 L "+l+" "+l+" M "+-u+" "+u+" L "+u+" "+c+" M "+u+" "+-u+" L "+c+" "+u,r=s._createElement("pattern",{id:o,width:l,height:l,patternUnits:"userSpaceOnUse"}).append(s._defs),r.id=o,s.rect(0,0,l,l).attr({fill:e,opacity:n.opacity}).append(r),new t.PathSvgElement(this).attr({d:a,"stroke-width":n.width||1,stroke:e}).append(r),r},_getPointsWithYOffset:function(e,t){return e.map(function(e,n){return n%2!=0?e+t:e})},clipRect:function(e,t,n,i){var o=this,a=Me(),r=o._createElement("clipPath",{id:a}).append(o._defs),s=o.rect(e,t,n,i).append(r);return s.id=a,s.remove=function(){throw"Not implemented"},s.dispose=function(){return r.dispose(),r=null,this},s},shadowFilter:function(e,t,n,i,o,a,r,s,l){var u=this,c=Me(),d=u._createElement("filter",{id:c,x:e||0,y:t||0,width:n||0,height:i||0}).append(u._defs),h=u._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:r||0}).append(d),p=u._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:o||0,dy:a||0}).append(d),f=u._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),g=u._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),_=u._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=c,d.gaussianBlur=h,d.offset=p,d.flood=f,d.composite=g,d.finalComposite=_,d.attr=function(e){var t=this,n={},i={},o={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),x(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(o["flood-color"]=e.color),"opacity"in e&&(o["flood-opacity"]=e.opacity),t.flood.attr(o),t},d},brightFilter:function(e,t){var n=this,i=Me(),o=n._createElement("filter",{id:i}).append(n._defs),a=n._createElement("feComponentTransfer").append(o),r={type:e,slope:t};return o.id=i,n._createElement("feFuncR",r).append(a),n._createElement("feFuncG",r).append(a),n._createElement("feFuncB",r).append(a),o},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=Me(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:Me()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,o,a=this._hatchingStorage,r=function(e,t){return"@"+e+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}(e,t);return a.refToHash[n]!==r&&(n&&this.releaseHatching(n),(i=a.byHash[r])||(o=this.pattern(e,t,a.baseId+"-hatching-"+a.nextId++),i=a.byHash[r]={pattern:o,count:0},a.refToHash[o.id]=r),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];i&&0==--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var Ve=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter(function(e){return e!==t})},removeByRenderer:function(t){e=e.filter(function(e){return e.renderer!==t})},fire:function(){e.forEach(function(e){e()})}}}();t.refreshPaths=function(){Ve.fire()}},function(e,t,n){var i=n(48),o=n(0).extend,a=n(107).chart,r=n(205),s=r.chart.line,l=r.polar.line,u=n(11).map,c=o,d=r.chart.spline._calculateBezierPoints;t.chart={},t.polar={};var h={_createBorderElement:s._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:a.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=s._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var o={points:t.line},a={points:t.area},r=e.line;n?(r&&r.animate(o),e.area.animate(a,{},i)):(r&&r.attr(o),e.area.attr(a))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()})},_parseStyle:function(e,t,n){var i=e.border||{},o=s._parseLineOptions(i,n);return o.stroke=i.visible&&o["stroke-width"]?o.stroke:"none",o["stroke-width"]=o["stroke-width"]||1,{border:o,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},p=t.chart.area=c({},s,h,{_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=function(e){return u(e,function(e){return e.getCoords()}).concat(u(e.slice().reverse(),function(e){return e.getCoords(!0)}))}(n),o=this.getArgumentAxis();if(o.getAxisPosition){var a=o.getAxisPosition(),r=o.getOptions(),s=(t?1:-1)*Math.round(r.width/2);r.visible&&i.forEach(function(n,r){if(n){var l=1===e.length?0:r=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=o({},e);return t?o(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){a[Number(this.isNode())](this.tile,this._getState())}});var a=[function(e,t){e.smartAttr(t)},function(e,t){e.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),e.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}];e.exports=i},function(e,t,n){var i=n(129);n(227),n(450),n(465),n(115),n(474),n(181),n(475),n(476),n(19),n(160),n(154),n(55),n(89),n(134),n(24),n(175),n(281),e.exports=i},function(e,t,n){var i=n(182).fileSaver,o=n(421),a=n(221),r=n(428),s=n(1).isFunction,l=n(6).Deferred;t.export=function(e,t,n){if(!e)return(new l).resolve();var o=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,u={fileName:t.fileName,format:t.format,cancel:!1};return s(o)&&o(u),u.cancel?(new l).resolve():n(e,t,function(e){s(a)&&a(),s(r)&&(u.data=e,r(u)),u.cancel||i.saveAs(u.fileName,t.format,e,t.proxyUrl,void 0,t.forceProxy)})},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(215)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(430).getData},t.svg={creator:r.svgCreator,getData:r.getData}},function(e,t,n){e.exports={_findGroup:function(){var e,t=this.option("validationGroup");return t||(t=(e=this.$element().parents(".dx-validationgroup").first()).length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}}},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(4),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(1),d=n(7),h=n(26),p=n(29).fitIntoRange,f=n(66),g=n(9),_=n(55),m=c.isPlainObject,v=c.isFunction,y=n(10),x="dxResizable",b="dx-resizable-handle",w="dx-resizable-handle-corner",C=g.addNamespace(_.start,x),k=g.addNamespace(_.move,x),S=g.addNamespace(_.end,x),I={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},T=f.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");u(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("
    ");n.addClass(b).addClass(b+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[C]=this._dragStartHandler.bind(this),t[k]=this._dragHandler.bind(this),t[S]=this._dragEndHandler.bind(this),o.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))e.cancel=!0;else{this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null}},_toggleResizingClass:function(e){this.$element().toggleClass("dx-resizable-resizing",e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+b),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset,l=this._getAreaScrollOffset();e.maxLeftOffset=r.left-s.left-l.scrollX,e.maxRightOffset=s.left+t.width-r.left-o+l.scrollX,e.maxTopOffset=r.top-s.top-l.scrollY,e.maxBottomOffset=s.top+t.height-r.top-a+l.scrollY}},_getBorderWidth:function(e,t){if(c.isWindow(e.get(0)))return 0;var n=e.css(I[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),r=o.width+a.x*(n.left?-1:1),s=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(r),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),u=a.y-((l.height||s)-s),c=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?u:0),left:i.left+(n.left?c:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),y.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=r.pairToObject(this.option("step")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,u=Math.sign||function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},c=function(e,t){return(1+.2*u(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>c(t.h,e.x)&&(h+=t.h),l>c(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(w+"-top-left"),o=t.hasClass(w+"-top-right"),a=t.hasClass(w+"-bottom-left"),r=t.hasClass(w+"-bottom-right");return{top:t.hasClass("dx-resizable-handle-top")||n||o,left:t.hasClass("dx-resizable-handle-left")||n||a,bottom:t.hasClass("dx-resizable-handle-bottom")||a||r,right:t.hasClass("dx-resizable-handle-right")||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t={scrollY:0,scrollX:0};if(!v(e)&&!m(e)){var n=i(e)[0];c.isWindow(n)&&(t.scrollX=n.pageXOffset,t.scrollY=n.pageYOffset)}return t},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},c.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",p(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",p(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":d.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":d.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+b).remove()}});a(x,T),e.exports=T},function(e,t,n){var i=n(9),o=n(157),a=n(88),r="dxswipestart",s="dxswipe",l="dxswipeend",u={horizontal:{defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){return(i.eventData(e).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){return(i.eventData(e).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}}},c=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return u[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),(e=this._fireEvent(r,e)).cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy().getBounds.call(this);return e<-n[0]?t?(-2*n[0]+e)/3:-n[0]:e>n[1]?t?(2*n[1]+e)/3:n[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:c,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(13).inArray,o=n(7),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);-1===a?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(-1!==o)return t[o]},this.has=function(t){return-1!==i(t,e)},this.delete=function(n){var o=i(n,e);-1!==o&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(25);e.exports=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}}},function(e,t,n){var i=n(131),o=n(3).each,a=n(0).extend,r=n(16),s=n(39),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},u=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return r.current().android||r.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return"preset_"+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},l.from="forward"===r?{left:a,opacity:e}:"backward"===r?{left:-a,opacity:e}:{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},l.to="forward"===r?{left:-a,opacity:e}:"backward"===r?{left:a,opacity:e}:{left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o(this._registeredPresets,function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];o(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=u;var c=new u;t.presets=c},function(e,t,n){var i=n(229);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},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};n(115);var o=n(69),a=n(51),r=n(21);if(n(69),o&&o.formatNumber){"en"===o.locale().locale&&(o.load({main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{native:"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###",long:{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},short:{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "}},standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)",short:{standard:{"1000-count-one":"¤0K","1000-count-other":"¤0K","10000-count-one":"¤00K","10000-count-other":"¤00K","100000-count-one":"¤000K","100000-count-other":"¤000K","1000000-count-one":"¤0M","1000000-count-other":"¤0M","10000000-count-one":"¤00M","10000000-count-other":"¤00M","100000000-count-one":"¤000M","100000000-count-other":"¤000M","1000000000-count-one":"¤0B","1000000000-count-other":"¤0B","10000000000-count-one":"¤00B","10000000000-count-other":"¤00B","100000000000-count-one":"¤000B","100000000000-count-other":"¤000B","1000000000000-count-one":"¤0T","1000000000000-count-other":"¤0T","10000000000000-count-one":"¤00T","10000000000000-count-other":"¤00T","100000000000000-count-one":"¤000T","100000000000000-count-other":"¤000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}–{1}"}}}}}),o.locale("en"));var s={},l=function(e){var t,n;return n="object"===(void 0===e?"undefined":i(e))?o.locale().locale+":"+JSON.stringify(e):o.locale().locale+":"+e,(t=s[n])||(t=s[n]=o.numberFormatter(e)),t},u={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):l(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t))&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):l(t)(e)},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&r.log("W0011");var n=o.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};a.inject(u)}},function(e,t,n){var i=n(2),o=n(12),a=n(7),r=a.getWindow(),s=a.getNavigator(),l=n(5),u=n(18),c=n(1),d={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},h=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){return"data:"+h[e]+";base64,"+t},_linkDownloader:function(e,t,n){var a=o.createElement("a"),r={download:e,href:t};return l.on(i(a),"click",function(){i(a).remove(),n&&n.apply(this,arguments)}),o.getBody().appendChild(a),i(a).css({display:"none"}).text("load").attr(r)[0].click(),a},_formDownloader:function(e,t,n,o){var a={method:"post",action:e,enctype:"multipart/form-data"},r=i("
    ").css({display:"none"}).attr(a);r.append(''),r.append(''),r.append(''),r.appendTo("body"),l.trigger(r,"submit"),l.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,h[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(h[n],["."+d[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,i){var o=this;if(o._blobSaved=!1,c.isDefined(s.msSaveOrOpenBlob))s.msSaveOrOpenBlob(n,e),o._blobSaved=!0;else if(c.isDefined(r.WinJS))o._winJSBlobSave(n,e,t),o._blobSaved=!0;else{var a=r.URL||r.webkitURL||r.mozURL||r.msURL||r.oURL;if(c.isDefined(a)){var l=a.createObjectURL(n),u=o._revokeObjectURLTimeout;return o._linkDownloader(e,l,function(e){setTimeout(function(){a.revokeObjectURL(l)},u)})}}},saveAs:function(e,t,n,i,o,a){e+="."+d[t],a?this._saveByProxy(i,e,t,n):c.isFunction(r.Blob)?this._saveBlobAs(e,t,n,o):c.isDefined(i)&&!c.isDefined(s.userAgent.match(/iPad/i))?this._saveByProxy(i,e,t,n):(c.isDefined(s.userAgent.match(/iPad/i))||u.log("E1034"),this._linkDownloader(e,this._getDataUri(t,n),o))}}},function(e,t,n){var i=" .,:;/\\<>()-[]،",o=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=1632&&t<1642},a=function(e,t,n){var a=e[t],r=e[t-1],s=e[t+1];if(!n){if("."===a||" "===a&&"."===r)return!0;if("-"===a&&!o(s))return!0}return i.indexOf(a)<0&&n===o(a)},r=function(e,t){if(!o(e[t]))for(;t>0&&!o(e[t-1])&&("."===e[t-1]||i.indexOf(e[t-1])<0);)t--;return t},s=function(e,t,n,i){var s=0,l=[],u=function(t){return e[s]!==t[s]&&(void 0===i||o(e[s])===i)};for(Array.isArray(t)||(t=[t]),s=0;sl;){for(s=i[r=t.pop()],i[r]=-1,a=r+1;a1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=(e=e.replace("0"+n,n+n)).replace("٠"+n,n+n)),e}(e,t,n,i)},u=function(e,t){return Array.isArray(e)?e.map(function(e){return(t(e)||"").toString()}):(t(e)||"").toString()},c=/[a-zA-Z]/g;t.getFormat=function(e){var t=[],n=u(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),o=n,a={},r=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return r.forEach(function(r){var c=s(n,u(r.date,e),t,r.isDigit),d="M"!==r.pattern||a.d?r.pattern:"L";o=l(o,c,d,i),a[d]=c.length}),o=function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(e.match(c)||"'"===e)?i[t]:-1});return e.split("").map(function(e,t){var n=e,i=o.indexOf(t)>=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")}(o,n,t,i),t.length?o:void 0}},function(e,t,n){var i=n(12),o=n(7).getWindow(),a=n(2);t.getSvgMarkup=function(e,t){return function(e){var t=!0;return-1===e.indexOf("xmlns:xlink")&&(e=e.replace("-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n").appendTo(e)}},{key:"_addToContainer",value:function(e){var t=this.$placeMarker,n=this.$container;t?t.replaceWith(e):e.appendTo(n)}},{key:"_attachEvents",value:function(){throw"Not implemented"}},{key:"_create",value:function(){throw"Not implemented"}},{key:"_isRendered",value:function(){return!!this.instance}},{key:"_isVisible",value:function(){var e=this.editor;return this.options.visible||!e.option("readOnly")}},{key:"_isDisabled",value:function(){throw"Not implemented"}},{key:"_shouldRender",value:function(){return this._isVisible()&&!this._isRendered()}},{key:"dispose",value:function(){var e=this.instance,t=this.$placeMarker;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var t=this._create(),n=t.instance,i=t.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(e)}},{key:"update",value:function(){return this._shouldRender()&&this.render(),!!this.instance}}]),e}();t.default=a},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(3).each,s=n(16),l=n(14),u=n(294),c="dxNativeScrollable",d="dx-scrollable-native",h="vertical",p="horizontal",f=l.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=s.real().platform;this._$element.addClass(d).addClass(d+"-"+e).toggleClass("dx-scrollable-scrollbars-hidden",!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:a,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(h),this._renderScrollbar(p)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new u(i("
    ").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:a,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:a,handleStop:a,_eachScrollbar:function(e){e=e.bind(this),r(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location();return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(p)?e.left>=0:void 0,reachedRight:this._isDirection(p)?e.left<=this._containerSize.width-this._componentContentSize.width:void 0,reachedTop:this._isDirection(h)?e.top>=0:void 0,reachedBottom:this._isDirection(h)?e.top<=this._containerSize.height-this._componentContentSize.height:void 0}},handleScroll:function(e){return this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop();n?t+n-2*e||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:a,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===h?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(h)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(p)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(d+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),o.off(this._$element,"."+c),o.off(this._$container,"."+c),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(-t.top-e.top+this.option("pushBackValue")),this._$container.scrollLeft(-t.left-e.left)},validate:function(){return!this.option("disabled")&&this._allowedDirection()},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(8),s=n(0).extend,l=n(93),u=n(58),c=n(6).Deferred,d=n(30),h="dx-loadpanel-indicator",p="dx-loadpanel-message",f=u.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return d.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_initOptions:function(){this.callBase.apply(this,arguments),this.option("templatesRenderAsynchronously",!1)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this._wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$contentWrapper=i("
    ").addClass("dx-loadpanel-content-wrapper"),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new c,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("
    ").addClass(p).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("
    ").addClass(h).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+p).remove(),this.$content().find("."+h).remove()},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",f),e.exports=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(2)),a=i(n(54)),r=n(0),s=n(1),l=i(n(132)),u=n(40),c=n(6),d=n(297),h=n(12);t.default=a.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(t){var n=e._dataSource;n&&!n.isLoaded()&&(e._correctionIndex=0),e._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=e._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=this,n=(0,o.default)(),i=this.key();return this.itemElements().each(function(a,r){var s=(0,o.default)(r),l=t._getItemData(s);if(i?(0,u.keysEqual)(i,t.keyOf(l),e):t._isItemEquals(l,e))return n=s,!1}),n},_dataSourceChangedHandler:function(e,t){t&&t.changes?this._modifyByChanges(t.changes):this.callBase(e,t)},_isItemEquals:function(e,t){try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var e=(0,d.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),this.keyOf.bind(this),this._isItemEquals);if(e)return this._modifyByChanges(e,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly"))try{this._itemsCache=(0,r.extend)(!0,[],this._editStrategy.itemsGetter())}catch(e){this._itemsCache=(0,r.extend)([],this._editStrategy.itemsGetter())}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,n,i){var o=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var a=t[l.default.indexByKey(e,t,n.key)];a&&l.default.update(e,t,n.key,n.data).done(function(){o._renderItem(t.indexOf(a),a,null,o._findItemElementByKey(n.key))})}},_insertByChange:function(e,t,n,i){var o=this;(0,c.when)(i||l.default.insert(e,t,n.data,n.index)).done(function(){o._renderItem((0,s.isDefined)(n.index)?n.index:t.length,n.data),o._correctionIndex++})},_removeByChange:function(e,t,n,i){var o=this,a=i?n.index:l.default.indexByKey(e,t,n.key);if(i?n.oldItem:t[a]){var r=this._findItemElementByKey(n.key),s=this._extendActionArgs(r);this._waitDeletingPrepare(r).done(function(){i?(o._updateIndicesAfterIndex(a-1),o._afterItemElementDeleted(r,s),o._normalizeSelectedItems()):(o._deleteItemElementByIndex(a),o._afterItemElementDeleted(r,s))}),this._correctionIndex--}},_modifyByChanges:function(e,t){var n=this,i=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},a=this._dataSource,r=a&&a.paginate(),s=a&&a.group();(r||s)&&(e=e.filter(function(e){return"insert"!==e.type||void 0!==e.index})),e.forEach(function(e){return n["_"+e.type+"ByChange"](o,i,e,t)}),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,n){var i=e.children(this._itemSelector()).get(n);(0,h.insertElement)(e.get(0),t.get(0),i)},_optionChanged:function(e){switch(e.name){case"items":this._partialRefresh(e.value)||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}})},function(e,t,n){function i(e){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=0?n.ratio||0:((0,_.isDefined)(n.shrink)?n.shrink:1)*a,l=r>=0?i:o;return a+(l?Math.round(r*s/l):0)},l=0;(0,v.each)(e,function(e,t){var i=(0,u.default)(t),o=(0,u.default)(t).data(S),a=s(i);l+=a,i.css(T[n],o.maxSize||"none").css(I[n],o.minSize||"0").css(R[n],a),i.addClass(P)}),this.totalItemSize=l}},{key:"_baseSize",value:function(e){var t=(0,u.default)(e).data(S);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)}},{key:"_contentSize",value:function(e){return(0,u.default)(e)[R[this._option("direction")]]()}},{key:"_parseSize",value:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e}},{key:"_boxSize",value:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)}},{key:"_totalBaseSize",value:function(){var e=this,t=0;return(0,v.each)(this._$items,function(n,i){t+=e._baseSize(i)}),t}},{key:"initSize",value:function(){this._boxSize(this._$element[R[this._option("direction")]]())}},{key:"update",value:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(k).each(function(){e===(0,u.default)(this).parent().closest(k).get(0)&&c.default.triggerHandler(this,B)})}}}]),e}(),j=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,w.default),s(t,[{key:"_getDefaultOptions",value:function(){return(0,h.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){var e=b.default.real(),t="android"===e.platform&&(e.version[0]<4||4===e.version[0]&&e.version[1]<4),n="ios"===e.platform&&e.version[0]<7;return"win"===e.platform||y.default.msie||t||n},options:{_layoutStrategy:"fallback"}}])}},{key:"_itemClass",value:function(){return"dx-box-item"}},{key:"_itemDataKey",value:function(){return S}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this.$element().addClass(C+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()}},{key:"_initLayout",value:function(){this._layout="fallback"===this.option("_layoutStrategy")?new G(this.$element(),this.option.bind(this)):new W(this.$element(),this.option.bind(this))}},{key:"_initBoxQueue",value:function(){this._queue=this.option("_queue")||[]}},{key:"_queueIsNotEmpty",value:function(){return!this.option("_queue")&&!!this._queue.length}},{key:"_pushItemToQueue",value:function(e,t){this._queue.push({$item:e,config:t})}},{key:"_shiftItemFromQueue",value:function(){return this._queue.shift()}},{key:"_initMarkup",value:function(){this.$element().addClass(C),this._layout.renderBox(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._renderAlign(),this._renderActions()}},{key:"_renderActions",value:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}},{key:"_renderAlign",value:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()}},{key:"_renderItems",value:function(e){var n=this;for(this._layout.initSize(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItems",this).call(this,e);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,t,(0,h.extend)({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},i.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){n._isUpdated||n._layout.update(),n._isUpdated=!1,n._updateTimer=null})}},{key:"_renderItemContent",value:function(e){var n=e.itemData&&e.itemData.node;return n?this._renderItemContentByNode(e,n):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItemContent",this).call(this,e)}},{key:"_postprocessRenderItem",value:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)}},{key:"_createItemByTemplate",value:function(e,n){return n.itemData.box?e.source?e.source():(0,u.default)():l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createItemByTemplate",this).call(this,e,n)}},{key:"_visibilityChanged",value:function(e){e&&this._dimensionChanged()}},{key:"_dimensionChanged",value:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())}},{key:"_dispose",value:function(){clearTimeout(this._updateTimer),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_dispose",this).apply(this,arguments)}},{key:"_itemOptionChanged",value:function(e,n,i,o){"visible"===n&&this._onItemStateChanged({name:n,state:i,oldState:!1!==o}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemOptionChanged",this).call(this,e,n,i)}},{key:"_optionChanged",value:function(e){switch(e.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_itemOptions",value:function(){var e=this,n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemOptions",this).call(this);return n.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},n}},{key:"repaint",value:function(){this._dimensionChanged()}}]),t}();j.ItemClass=$,(0,d.default)("dxBox",j),e.exports=j},function(e,t,n){e.exports=n(527)},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(14),s=n(33),l=r.abstract,u=r.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||i("
    "),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:a,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){var n=s.parse(e,t);return n||s.parse(e)},renderInputMinMax:a,renderOpenedState:function(){this._updateValue()},popupConfig:l,renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.off(t,"mousedown"),o.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a,getLastPopupElement:a,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a,popupHiddenHandler:a,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:a,textChangedHandler:a,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,c,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(_[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(g[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(d);r("dxDropDownMenu",m),e.exports=m},function(e,t,n){var i=n(37),o=n(25),a=n(18),r=n(66),s=n(0).extend,l=n(3).map,u=n(173),c=n(100),d=n(546),h=n(8),p=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=o(),this._initAdapter()},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){c.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(c.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,c.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.$element()[0],n=i.data(t,"dx-validation-target"),o=e.option("adapter");if(!o){if(n)return(o=new d(n,this)).validationRequestsCallbacks.add(function(){e.validate()}),void this.option("adapter",o);throw a.Error("E0120")}var r=o.validationRequestsCallbacks;r&&(Array.isArray(r)?r.push(function(){e.validate()}):(a.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),r.add(function(){e.validate()})))},_initMarkup:function(){this.$element().addClass("dx-validator"),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;default:this.callBase(e)}},_getValidationRules:function(){return this._validationRules||(this._validationRules=l(this.option("validationRules"),function(e){return s({},e,{validator:this})}.bind(this))),this._validationRules},_resetValidationRules:function(){delete this._validationRules},validate:function(){var e,t=this.option("adapter"),n=this.option("name"),i=t.bypass&&t.bypass(),o=t.getValue(),a=t.getCurrentValidationError&&t.getCurrentValidationError(),r=this._getValidationRules();return i?e={isValid:!0}:a&&a.editorSpecific?(a.validator=this,e={isValid:!1,brokenRule:a}):e=c.validate(o,r,n),this._applyValidationResult(e,t),e},reset:function(){var e=this.option("adapter");e.reset(),this._resetValidationRules(),this._applyValidationResult({isValid:!0,brokenRule:null},e)},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated");e.validator=this,t.applyValidationResults&&t.applyValidationResults(e),this.option({isValid:e.isValid}),n(e)},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()}}).include(u);h("dxValidator",p),e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(8),s=n(34),l=n(72),u=n(9),c=n(0).extend,d=n(1).isPlainObject,h=n(24),p=n(3),f=n(309),g=n(30),_=n(89),m=n(94),v=n(190).default,y=n(60),x=n(65),b="dx-tabs-expanded",w="dx-tabs-stretched",C="dx-tabs-nav-buttons",k="dx-overflow-hidden",S="dx-tab",I="chevronnext",T="chevronprev",D=v.inherit({_activeStateUnit:"."+S,_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=g.current();return this.callBase().concat([{device:function(){return"generic"!==a.real().platform},options:{showNavButtons:!1}},{device:{platform:"generic"},options:{scrollByContent:!1}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return g.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new x(function(e,t){d(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=y.getImageContainer(t.icon);e.wrapInner(i("").addClass("dx-tab-text")),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return S},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(k)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){var e=[w,b,k];this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(w),this.$element().removeClass(C).addClass(b))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>this.$element().width()},_needStretchItems:function(){var e=this._getVisibleItems(),t=this.$element().width(),n=[];return p.each(e,function(e,t){n.push(i(t).outerWidth(!0))}),Math.max.apply(null,n)>t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=i("
    ").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner(i("
    ").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(e,m,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(C,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,e?I:T);var t=this._leftButton.$element();t.addClass("dx-tabs-nav-button-left"),this.$element().prepend(t),this._rightButton=this._createNavButton(30,e?T:I);var n=this._rightButton.$element();n.addClass("dx-tabs-nav-button-right"),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,a=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,5)},5)}),r=u.addNamespace(_.name,"dxNavButton"),l=u.addNamespace(h.up,"dxNavButton"),c=u.addNamespace(h.out,"dxNavButton"),d=this._createComponent(i("
    ").addClass("dx-tabs-nav-button"),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),p=d.$element();return o.on(p,r,{timeout:300},function(e){a({event:e})}.bind(this)),o.on(p,l,function(){n._clearInterval()}),o.on(p,c,function(){n._clearInterval()}),d},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_renderSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}}});D.ItemClass=f,r("dxTabs",D),e.exports=D,e.exports.getTabsExpandedClass=b},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(329)).default;e.exports={extend:function(e){i=i.inherit(e)},create:function(e){return new i(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return e&&e.length>1&&"!"===e[0]&&!_(e)}function a(e){return o(e)?e[1]:e}function r(e,t){!function(e){return-1!==e.indexOf("!")}(t)?o(e)&&function(e){var t=a(e);e.length=0,[].push.apply(e,t)}(e):o(e)||function(e){var t=e.slice(0);e.length=0,e.push("!",t)}(e)}function s(e){if(_(e))return K;for(var t="",n=0;n0)return i[0];throw new F.default.Error("E1047",e)}function g(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function _(e){return!!Array.isArray(e)&&e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1])}function m(e,t){for(var n=s(e).toLowerCase()||K,i=[],o=0;o",X={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Z={date:"shortDate",datetime:"shortDateShortTime"},Q=["=","<>","isblank","isnotblank"],J=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression"];t.isValidCondition=A,t.isEmptyGroup=function(e){var t=a(e);return!_(t)&&!t.some(function(e){return _(e)})},t.getOperationFromAvailable=function(e,t){for(var n=0;n=0&&i.push(t.name)}}),i.map(function(e){var i=d(n,e);return i?{icon:i.icon||q,text:i.caption||z.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:G.default.getIconByFilterOperation(e)||q,text:c(e,t),value:e}})},t.removeItem=p,t.createCondition=function(e,t){var n=[e.dataField,"",""];return E(n,h(e),t),n},t.createEmptyGroup=function(e){return-1!==e.indexOf("not")?["!",[e.substring(3).toLowerCase()]]:[e]},t.addItem=function(e,t){var n=a(t),i=l(n);return 1===n.length?n.unshift(e):n.push(e,i),t},t.getField=f,t.isGroup=g,t.isCondition=_,t.getNormalizedFields=function(e){return e.reduce(function(e,t){if((0,R.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&J.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=V.default.defaultCalculateFilterExpression,(0,R.isDefined)(n.dataType)||(n.dataType=j),e.push(n)}return e},[])},t.getNormalizedFilter=function e(t){var n,i=a(t);if(0===i.length)return null;var r=[];for(n=0;n3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(w(t))return"";if(Array.isArray(t)){var o=new P.Deferred;return P.when.apply(this,function(e,t,n,i){return t.map(function(t){return b(e,t,n,i)})}(e,t,n,i)).done(function(){for(var e=arguments.length,t=Array(e),n=0;n=0&&p(c))return function(e){var t=r?e.index:c,n=r?c:e.index,i=((o[t]||[[]])[n]||[])[a];return p(i)?i:null}}function q(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];P(e[n],function(a,s){var l=o[s]||{},u=r[s]=r[s]||function(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=function(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:O(function(e){return e[r]}),l=!o&&j(e,t,n,i),u=l&&O(l);return function(e,t){var n=u&&u(e,t)||s(e,t);return"desc"===a?-n:n}}(l,e,t,n,i);a.sort(u)},a)}function K(e,t,n){return D(e[n],function(e){var i=e[0];i.text=i.text||A(i.value,t[n][B(e).length-1])})}function U(e,t){return _(K(t,e,"columns"),K(t,e,"rows"))}function Y(e){var t=new m,n={};return _(D(e,function(e){var t=B(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function X(e,t){var n=[];return f(e,function(){(function(e,t){var n="data"===t||!1!==e.visible;return e.area===t&&!p(e.groupIndex)&&n})(this,t)&&n.push(this)}),n}var Z=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},Q=function e(t,n){var i,o,a=-1;if(t)for(i=0;i=0&&Q(e,n)+1,a=[];return _(D(e,function(e){delete e[0].collapsedChildren})).done(function(){_(D(t,function(t,n){var i=t[0];if(i.index>=0){var r=Z(e,B(t));if(r&&r.index>=0)a[i.index]=r.index;else if(o){var s=B(t.slice(1));r=Z(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},te=function(e,t,n,i){var o,a,r,s,l,u,c=e.values;if(t)for(o=0;o<=t.length;o++)if(r=t[o],l=n[o],p(l)||(l=e.grandTotalRowIndex),r&&p(l))for(c[l]||(c[l]=[]),a=0;a<=r.length;a++)s=r[a],u=i[a],p(u)||(u=e.grandTotalColumnIndex),p(s)&&p(u)&&(c[l][u]=s)};return{ctor:function(e){var n=this,i=t(e=e||{},function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._paginate=!!e.paginate,n._pageSize=e.pageSize||40,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,n._isFieldsModified=!1,f(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);e.hasOwnProperty(i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!p(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?c(n._createDescriptions(),e.descriptions):void 0,i||c(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n=[];return t||"data"===e?N(n=X(this._fields,e)):n=(this._descriptions||{})[R[e]]||[],n},fields:function(e){var t=this;return e&&(t._fields=W(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function(e,t){var n,i=this,a=i._fields,r=a&&a[u.isNumeric(e)?e:E(a,e)];return r&&t&&(f(t,function(e,t){var i=d(e,F)<0;if(M(r,e,t,i),"sortOrder"===e){n=r.levels||[];for(var o=0;o0},state:function(e,t){var i=this;return arguments.length?(e=c({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(i._descriptions?(i._fields=z(e.fields,i._fields),i._descriptions=i._createDescriptions(),!t&&i.load(e)):(i.beginLoading(),_(G(i)).done(function(n){i._fields=z(e.fields,n),i._fieldsPrepared(n),!t&&i.load(e)}).always(function(){i.endLoading()})))):{fields:y(i._fields,F),columnExpandedPaths:n(i._data,i._descriptions,"columns"),rowExpandedPaths:n(i._data,i._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,n^(t=this.isLoading())&&this.fireEvent("loadingChanged",[t])},_hasPagingValues:function(e,t,n){var i=t+"Take",o=t+"Skip",a=this._data.values,r=this._data[t+"s"],s="row"===t?"column":"row",l=[];if(e.path&&e.area===t){var u=Z(r,e.path);if(!(r=u&&u.children))return!1}if(e.oppositePath&&e.area===s){var c=Z(r,e.oppositePath);if(!(r=c&&c.children))return!1}for(var d=e[o];d=r.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o").addClass(c);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t=0?{top:t=x(e.margin),bottom:t,left:t,right:t}:{top:t.top>=0?x(t.top):O,bottom:t.bottom>=0?x(t.bottom):O,left:t.left>=0?x(t.left):O,right:t.right>=0?x(t.right):O},e.margin=t}(e),e.horizontalAlignment=W(e.horizontalAlignment,R),e.verticalAlignment=G(e.verticalAlignment,e.horizontalAlignment===M?L:V),e.orientation=j(e.orientation,e.horizontalAlignment===M?H:z),e.itemTextPosition=q(e.itemTextPosition,e.orientation===H?L:R),e.position=n?K(e.position,N):N,e.itemsAlignment=U(e.itemsAlignment,null),e.hoverMode=E(e.hoverMode),e.customizeText=T(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=T(e.customizeHint)?e.customizeHint:y.noop,e._incidentOccurred=e._incidentOccurred||y.noop,e):null}function r(e,t){return e.rect(0,0,t,t)}function s(e,t){return e.circle(t/2,t/2,t/2)}function l(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function u(e,t,n,i){var o,a={x:0,y:0},r=0,s=0;if(o="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach(function(e,n){var i=e[0],o=e.length;e.forEach(function(e,n){var i=e.offset||t.spacing;a[t.direction]+=e[t.measure]+(n!==o-1?i:0),r=C(r,a[t.direction])}),a[t.direction]=0,a[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,s=C(s,a[t.altDirection])}),r+o>t.length)return t.countItem=function(e,t){return e.altCountItem++,S(t/e.altCountItem)}(t,n),!0}function c(e,t){return e.reduce(function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i},0)}function d(e,t){var n=e.reduce(function(e,n){var i=n?n[t]:e;return C(e,i)},0);e.forEach(function(e){e&&(e[t]=n)})}function h(e){var t,n,i=e.length,o=e[0].length,a=[];for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},i=this;if(t=i._options=a(t,i._textField,i._allowInsidePosition)||{},i._data=e&&t.customizeItems&&t.customizeItems(e.slice())||e,i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new m.default.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var o=t.title;n.horizontalAlignment=function(e){return e.horizontalAlignment===M?M:e.itemTextPosition===R?F:e.itemTextPosition===F?R:M}(t),i._title.update(n,o)}return i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._options,o=n._getItemData();if(n._size={width:e,height:t},n.erase(),!(n.isVisible()&&o&&o.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var a=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-a,t)}n._markersGroup=n._renderer.g().attr({class:n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(o),n._locateElements(i),n._finalUpdate(i);var r=n.getLayoutOptions();return(r.width>e||r.height>t)&&n.freeSpace(),n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,o=n._options,a=o.markerSize,r=n._renderer,s=0,l=Y(o.markerShape);n._markersId={},n._items=(e||[]).map(function(e,u){var c=n._markersGroup,d=x(e.size>0?e.size:a),h=e.states,p=h.normal,f=p.fill,g=l(r,d).attr({fill:f||o.markerColor||o.defaultColor,opacity:p.opacity}).append(c),_=n._createLabel(e,c),m={normal:{fill:f},hovered:i(h.hover,f),selected:i(h.selection,f)},v=_.getBBox();return void 0!==e.id&&(n._markersId[e.id]=u),t=function(e,t,n){var i,o;switch(e.itemTextPosition){case F:case R:i=t+7+n.width,o=C(t,n.height);break;case V:case L:i=C(t,n.width),o=t+4+n.height}return{width:i,height:o}}(o,d,v),s=C(s,t.height),n._createHint(e,_,g),{label:_,labelBBox:v,group:c,bBox:t,marker:g,markerSize:d,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:m,itemTextPosition:o.itemTextPosition,markerOffset:0,bBoxes:[]}}),o.equalRowHeight&&n._items.forEach(function(e){return e.bBox.height=s})},_getItemData:function(){var e=this._data||[];return(this._options||{}).inverted&&(e=e.slice().reverse()),e.filter(function(e){return e.visible})},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return o(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return o(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return o(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=function(e){switch(e){case V:case L:return M;case F:return R;case R:return F}}(this._options.itemTextPosition),o=this._options.customizeText.call(n,n),a=I(e.textOpacity)?A({},this._options.font,{opacity:e.textOpacity}):this._options.font;return this._renderer.text(o,0,0).css((0,p.patchFontOptions)(a)).attr({align:i}).append(t)},_createHint:function(e,t,n){var i=this._getCustomizeObject(e),o=this._options.customizeHint.call(i,i);I(o)&&""!==o&&(t.setTitle(o),n.setTitle(o))},_createBackground:function(){var e=this,t="inside"===e._options.position,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:$);(e._options.border.visible||(t||n)&&n!==$)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,class:e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,o=n._getItemsLayoutOptions(),a=n._items.length;do{t=[],n._createLines(t,o),n._alignLines(t,o),i++}while(u(t,o,a,e.margin)&&it.width&&this._options.horizontalAlignment===M&&(i=e.width/2-t.width/2),n.verticalAlignment===V&&(o=e.height),0===i&&0===o||(this._markersGroup.attr({translateX:i,translateY:o}),this._items.forEach(function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=o,e.tracker.bottom+=o}))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var o=0;o=0&&!n||t<0&&n)||i&&!n||o;return e._options.rotated?a?l:"left":a?"top":"bottom"},_getLabelCoords:function(e){var t=this;return 0===t.initialValue&&t.series.isFullStackedSeries()?this._options.rotated?t._getLabelCoordOfPosition(e,l):t._getLabelCoordOfPosition(e,"top"):"inside"===e.getLayoutOptions().position?t._getLabelCoordOfPosition(e,"inside"):s._getLabelCoords.call(this,e)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea();return n._isPointInVisibleArea(i,n._getGraphicBBox())?n._moveLabelOnCanvas(t,i,e.getBoundingRect()):t},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.heightn.x+n.width||t.x+i.widthi&&(i=t.minX),t.maxXo&&(o=t.minY),t.maxY=0,s=this._getValTranslator().getBusinessRange().invert;return this._options.rotated?(a=t+i/2,o=s?r?e:e+n:r?e+n:e):(o=e+n/2,a=s?r?t+i:t:r?t:t+i),{x:o,y:a,offset:0}},getTooltipParams:function(e){var t=this.x,n=this.y,i=this.width,o=this.height;return"edge"===e?this._getEdgeTooltipParams(t,n,i,o):{x:t+i/2,y:n+o/2,offset:0}},_truncateCoord:function(e,t,n){return null===e?e:en?n:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){s._translateErrorBars.call(this),(this._errorBarPose[1])&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,o=i._options.rotated,a=o?"x":"y",s=o?"y":"x",l=o?"width":"height",u=o?"height":"width",c=i._getArgTranslator(),d=i._getValTranslator(),h=i.series.getArgumentAxis().getVisibleArea(),p=i.series.getValueAxis().getVisibleArea();e=c.translate(i.argument),i[s]=e=null===e?e:e+(i[s+"Correction"]||0),t=d.translate(i.value,1),n=d.translate(i.minValue),i["v"+a]=t,i["v"+s]=e+i[u]/2,t=i._truncateCoord(t,p[0],p[1]),n=i._truncateCoord(n,p[0],p[1]),i[l]=r(t-n),t=th[1]&&(i[u]=h[1]-i[s]))},_updateMarker:function(e,t){this.graphic.smartAttr(i({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,o=e.height,a=e.series.getArgumentAxis(),r=e._options.rotated;if(a.getAxisPosition){var s=a.getOptions(),l=Math.round(s.width/2),u=a.getAxisPosition();if(s.visible)if(r){var c=e.minX===e.defaultX&&e.minX===u-a.getAxisShift();t+=c?l:0,(i-=c?l:0)<0&&(i=0)}else(o-=e.minY===e.defaultY&&e.minY===u-a.getAxisShift()?l:0)<0&&(o=0)}return{x:t,y:n,width:i,height:o}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}})},function(e,t,n){function i(e,t,n,i){var o=u.clone(e);return o.x=t,o.y=n,o.angle=i,o}function o(e,t,n,o,a){var r=e.angle+a,s=h.getCosAndSin(r);return i(t,n.x+(e.radius+o*a)*s.cos,n.y-(e.radius+o*a)*s.sin,r)}function a(e,t,n,i,o){var a=t-e,r=3*n-3*t,s=3*i-6*n+3*t,l=o-3*i+3*n-t;return p.solveCubicEquation(l,s,r,a)}var r=n(107),s=r.chart,l=r.polar,u=n(48),c=n(0).extend,d=n(3).each,h=n(11),p=n(29),f=h.normalizeAngle,g="discrete",_=h.map,m=c,v=d;t.chart={},t.polar={};var y={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){t=m(t,e),this._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{class:"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{class:"dxc-borders"},t._bordersGroup),s._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),s._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:_(e.line||[],function(e){return e.getDefaultCoords()})}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),v(t._graphics||[],function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()})},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var o={points:t.line},a=e.line;n?a.animate(o,{},i):a.attr(o)},_animateComplete:function(){var e=this;s._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;v(e._graphics||[],function(n,i){var o;n===t&&(o=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,o)})},_drawPoint:function(e){s._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp()},_sortPoints:function(e,t){return t?e.sort(function(e,t){return t.y-e.y}):e.sort(function(e,t){return e.x-t.x})},_drawSegment:function(e,t,n,i){var o=this,a=o._options.rotated,r=o._prepareSegment(e,a,i);o._segments.push(r),o._graphics[n]?!t&&o._updateElement(o._graphics[n],r):o._graphics[n]=o._drawElement(t?o._getDefaultSegment(r):r,o._elementsGroup)},_getTrackerSettings:function(){var e=this._defaultTrackerWidth,t=this._styles.normal.elements["stroke-width"];return{"stroke-width":t>e?t:e,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),o=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),a=this.getOptions().rotated,r=e.getOptions().inverted;return e.isArgumentAxis&&(!a&&!r||a&&r)||!e.isArgumentAxis&&(a&&!r||!a&&r)?t>=i&&t<=o:t>=o&&t<=i},getSeriesPairCoord:function(e,t){for(var n=null,i=this.getNearestPointsByCoord(e,t),o=t&&!this._options.rotated||!t&&this._options.rotated,a=0;at&&n>e||e=C.y&&h>=k.y)||t&&(d<=C.x&&d<=k.x||d>=C.x&&d>=k.x)))t?(u=s=d,c=(h+k.y)/2,l=(h+C.y)/2):(c=l=h,u=(d+k.x)/2,s=(d+C.x)/2);else{if(y=_-g,x=p-f,b=g*f-p*_,t){if(!y)return void n.push(e,e,e);p-=w=-1*(x*h+b)/y-d,f-=w}else{if(!x)return void n.push(e,e,e);g-=w=-1*(y*d+b)/x-h,_-=w}u=(d+S*f)/1.5,c=(h+S*_)/1.5,s=(d+S*p)/1.5,l=(h+S*g)/1.5}t?(s=a(C.x,d,s),u=a(k.x,d,u)):(l=a(C.y,h,l),c=a(k.y,h,c)),m=i(e,s,l),v=i(e,u,c),n.push(m,e,v)}else n.push(e,e)}):n.push(o[0]),n},_prepareSegment:function(e,t){return x._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,o=i?"vy":"vx",r=i?"y":"x",s=i?"vx":"vy",l=i?"x":"y",u=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),c=this.getNearestPointsByCoord(e,t),d=function(t){var i=c[t];1===i.length?u[0]<=i[0][s]&&u[1]>=i[0][s]&&(n=i[0][s]):a(e,i[0][o],i[1][r],i[2][r],i[3][o]).forEach(function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*i[0][s]+3*Math.pow(1-e,2)*e*i[1][l]+3*(1-e)*e*e*i[2][l]+e*e*e*i[3][s];u[0]<=t&&u[1]>=t&&(n=t)}});if(null!==n)return"break"},h=0;h0?n._segments.reduce(function(e,t){return e.concat(t.line)},[]):[],l=[];return n.isVisible()&&r.length>0&&(r.length>1?n.findNeighborPointsByCoord(e,o,a.slice(0),r,function(e,t){var n=s.indexOf(e);l.push([e,s[n+1],s[n+2],t])}):r[0][o]===e&&l.push([r[0]])),l}}),t.polar.line=m({},l,y,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,o=[],a=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===g||this.valueAxisType===g)return x._prepareSegment.call(this,e);for(i=1;i=0?360-t:-t},_closeSegment:function(e){var t,n;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),e[e.length-1].angle!==t.angle&&(f(Math.round(e[e.length-1].angle))===f(Math.round(t.angle))?t.angle=e[e.length-1].angle:(n=e[e.length-1].angle-t.angle,t.angle=e[e.length-1].angle+this._getRemainingAngle(n)),e.push(t))},_getTangentPoints:function(e,t,n){var i,a=[],r=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/r;if(0===r)a=[t,e];else if(r>0)for(i=r;i>=0;i--)a.push(o(e,t,n,s,i));else for(i=0;i>=r;i--)a.push(o(e,t,n,s,r-i));return a}})},function(e,t,n){function i(e,t){return null===e?e:S(e)?I(e):t}function o(e){return y(e)?e:x(e)?[e]:null}function a(e){return e?e.value:null}function r(e,t,n){for(var o=e[t],r=y(n)?w(n,a):[],s=0,l=r.length,u=[];s0&&l.width>0,c=e.minorTick,d=c.visible&&c.length>0&&c.width>0,h=e.label,p=Number(h.indentFromTick);return u||d||h.visible?(t=s._scale.measureLabels(m({},s._canvas)),i={min:n=s._getScaleLayoutValue(),max:n},a=(o=s._getTicksCoefficients(e)).inner,r=o.outer,u&&(i.min=T(i.min,n-a*l.length),i.max=D(i.max,n+r*l.length)),d&&(i.min=T(i.min,n-a*c.length),i.max=D(i.max,n+r*c.length)),h.visible&&s._correctScaleIndents(i,p,t),i):{}},_renderContent:function(){var e,t=this,n=t._prepareScaleSettings();t._rangeContainer.render(E(t._getOption("rangeContainer"),{vertical:t._area.vertical})),t._renderScale(n),e=w([t._rangeContainer].concat(t._prepareValueIndicators()),function(e){return e&&e.enabled?e:null}),t._applyMainLayout(e,t._measureScale(n)),A(e,function(e,n){n.resize(t._getElementLayout(n.getOffset()))}),t._shiftScale(t._getElementLayout(0),n),t._beginValueChanging(),t._updateActiveElements(),t._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=m(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=v(t)&&v(t.tickInterval)&&!v(t.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||e._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||5,n.numberMultipliers=M,n.tickOrientation=e._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],o=n[1],a=t._translator.getCodomain(),r=i>o,s=T(i,o),l=D(i,o);e.min=s,e.max=l,e.startAngle=90-a[0],e.endAngle=90-a[1],e.skipViewportExtending=!0,t._scale.updateOptions(e),t._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:s,max:l,invert:r}),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._scale.draw(m({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=S(t._translator.translate(e.baseValue))?I(e.baseValue):t._baseValue,e.vertical=t._area.vertical,e.text&&!e.text.format&&(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),o=C(e.type||n._themeManager.theme(t)),a=E(!0,{},i._default,i[o],e);return a.type=o,a.animation=n._animationSettings,a.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(a),a},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._renderer.root;return new p({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e,t,n=this,i=n._subvalueIndicatorsSet,o=n._prepareIndicatorSettings(n.option("subvalueIndicator")||{},"subvalueIndicatorType");i||(i=n._subvalueIndicatorsSet=n._createSubvalueIndicatorsSet()),e=o.type!==i.type,i.type=o.type,(t=n._createIndicator(o.type,n._renderer.root))&&(t.dispose(),i.render(o,e))},_setupValue:function(e){this.__value=i(e,this.__value)},_setupSubvalues:function(e){var t,n,a,r=void 0===e?this.__subvalues:o(e);if(null!==r){for(t=0,n=r.length,a=[];te){for(t=e,n=r;t0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight}(t)/100:isNaN(e)||(e=parseInt(e)),e},u=function(e,t,n){return e?a.indexOf(e)>-1?t?null:e:(o.isString(e)&&(e=l(e,n)),o.isNumeric(e)?Math.max(0,e+t):"calc("+e+(t<0?" - ":" ")+Math.abs(t)+"px)"):null};t.getSize=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,l=e.getBoundingClientRect()[t],u=r?l:0;return u<=0?(u=parseFloat(o[t]||e.style[t])||0,u-=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0}(t,o,a)):u-=a.padding+a.border,n.paddings&&(u+=a.padding),n.borders&&(u+=a.border),n.margins&&(u+=a.margin),u},t.getElementBoxParams=s,t.addOffsetToMaxHeight=function(e,t,n){var i=u(e,t,n);return null!==i?i:"none"},t.addOffsetToMinHeight=function(e,t,n){var i=u(e,t,n);return null!==i?i:0},t.getVerticalOffsets=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},t.getVisibleHeight=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0}},function(e,t,n){var i=n(4).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?Object.keys(o).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(o[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},r={y:function(e){return"[0-9]+"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},u=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(o).map(function(i){var a=n.getMonthNames(o[i],t);return l(a,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},c={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(e,t,n){return t>2?n.getQuarterNames(o[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["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;is)){var u=r.indexOf(e);u>=0?function(e,t,n,i){var o=t[0],a=h[o],r=c[o];if(a&&r){var s=r(n,t.length,i);e[a]?e[a](s):a(e,s)}}(a,n.patterns[u],i[u+1],t):function(e,t,n){var i=h[t],o="g"+i.substr(1);e[i](n[o]())}(a,e,o)}}),a}return null}},t.getRegExpInfo=g,t.getPatternSetters=function(){return h}},function(e,t,n){var i=n(13).inArray,o=function(){var e=[];return{add:function(t){-1===i(t,e)&&e.push(t)},remove:function(t){var n=i(t,e);-1!==n&&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(171).data=n(233);i.odata=n(480),e.exports=i},function(e,t,n){var i=n(37),o=n(12),a=n(7).getWindow(),r=n(1),s=n(84),l=n(208),u=n(214),c=function(e,t){return new d(e,t)},d=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)||r.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},d.prototype=c.fn;var h=function(e,t){for(var n=0;n1&&arguments.length>1)return h.call(this,"attr",arguments);if(!this[0])return r.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(r.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else p(this[0],e,t);return this},d.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},d.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(r.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},d.prototype.addClass=function(e){return this.toggleClass(e,!0)},d.prototype.removeClass=function(e){return this.toggleClass(e,!1)},d.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n=0)return!0}return!1},d.prototype.toggleClass=function(e,t){if(this.length>1)return h.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),s=0===e.indexOf("inner");d.prototype[e]=function(u){if(this.length>1&&arguments.length>0)return h.call(this,e,arguments);var c=this[0];if(c){if(r.isWindow(c))return i?c["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(c)){var d=o.getDocumentElement(),p=o.getBody();return Math.max(p["scroll"+t],p["offset"+t],d["scroll"+t],d["offset"+t],d["client"+t])}if(0===arguments.length||"boolean"==typeof u){var f={paddings:s||i,borders:i,margins:u};return l.getSize(c,n,f)}if(null==u)return this;if(r.isNumeric(u)){var g=a.getComputedStyle(c),_=l.getElementBoxParams(n,g),m="border-box"===g.boxSizing;i?u-=m?0:_.border+_.padding:s?u+=m?_.border:-_.padding:m&&(u+=_.border+_.padding)}return u+=r.isNumeric(u)?"px":"",o.setStyle(c,n,u),this}}}),d.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!u.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(u.parseHTML(e))):this[0].innerHTML};var f=function(e,t){if(this[0]&&e){"string"==typeof e?e=u.parseHTML(e):e.nodeType?e=[e]:r.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n1){for(var t=0;t1){for(var t=0;t1?h.call(this,"appendTo",arguments):(o.insertElement(c(e)[0],this[0]),this)},d.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},d.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},d.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},d.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},d.prototype.wrap=function(e){if(this[0]){var t=c(e);t.insertBefore(this),t.append(this)}return this},d.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},d.prototype.replaceWith=function(e){if(e&&e[0])return e.insertBefore(this),this.remove(),e},d.prototype.remove=function(){return this.length>1?h.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?h.call(this,"detach",arguments):(o.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?h.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},d.prototype.clone=function(){for(var e=[],t=0;t\x20\t\r\n\f]+)/i,r={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"
    ",endTags:"
    "},td:{tagsCount:3,startTags:"",endTags:"
    "},col:{tagsCount:2,startTags:"",endTags:"
    "},tr:{tagsCount:2,startTags:"",endTags:"
    "}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;t.parseHTML=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment().appendChild(o.createElement("div")),n=a.exec(e),s=n&&n[1].toLowerCase(),l=r[s]||r.default;t.innerHTML=l.startTags+e+l.endTags;for(var u=0;u0){for(n="decimal"!==e?".":"",i=0;i=1632&&t<1642)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(_,"\\/").split("'").map(function(e,t){return t%2==0?e.replace(d,"AM/PM").replace(p,"d").replace(h,"d").replace(f,"M").replace(g,"H").replace(m,"\\[").replace(v,"\\]"):e?e.replace(y,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){e=u[e&&e.type||e]||e;var t=(r.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=s(function(t){return r.format(t,e)});return n&&(n=this._convertDateFormatToOpenXml(n),n=this._getLanguageInfo(t)+n),n},_getLanguageInfo:function(e){var t=l(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):c[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return x._convertDateFormat(e);if(i.isString(e)&&c[e.toLowerCase()])return x._convertNumberFormat(e,t,o)}}}},function(e,t,n){function i(e,t){for(;e.length0?"-":"+",r=Math.abs(o),s=r%60,l=i(Math.floor(r/60).toString(),2),u=i(s.toString(),2);return a+l+(t>=3?":":"")+(t>1||s?u:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":a.x(e,t,n)},Z:function(e,t,n){return a.X(e,t>=5?3:2,n)}};e.exports.getFormatter=function(e,t){return function(n){var i,o,r,s,l=0,u=!1,c="";if(!n)return null;if(!e)return n;var d="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,i=e.fillPatternColor;return!(0,o.isDefined)(t)||(0,o.isDefined)(n)&&(0,o.isDefined)(i)?(0,o.isDefined)(n)&&(0,o.isDefined)(i)?{patternFill:{patternType:n,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=r.default.copy(e.patternFill))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&r.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,o.isDefined)(e)||r.default.isEmpty(e.patternFill)},toXml:function(e){return a.default.toXml("fill",{},r.default.toXml(e.patternFill))}};t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(75)),a={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t=void 0;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},a.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,i.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.rgb)&&!(0,i.isDefined)(e.theme)},areEqual:function(e,t){return a.isEmpty(e)&&a.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return o.default.toXml(e,{rgb:t.rgb,theme:t.theme})}};t.default=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(n(75)),r=i(n(219)),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:r.default.tryCreateTag(e.color)},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=r.default.copy(e.color))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&r.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.size)&&!(0,o.isDefined)(e.name)&&!(0,o.isDefined)(e.family)&&!(0,o.isDefined)(e.scheme)&&(!(0,o.isDefined)(e.bold)||!e.bold)&&(!(0,o.isDefined)(e.italic)||!e.italic)&&!(0,o.isDefined)(e.underline)&&r.default.isEmpty(e.color)},toXml:function(e){var t=[(0,o.isDefined)(e.bold)&&e.bold?a.default.toXml("b",{}):"",(0,o.isDefined)(e.size)?a.default.toXml("sz",{val:e.size}):"",(0,o.isDefined)(e.color)?r.default.toXml("color",e.color):"",(0,o.isDefined)(e.name)?a.default.toXml("name",{val:e.name}):"",(0,o.isDefined)(e.family)?a.default.toXml("family",{val:e.family}):"",(0,o.isDefined)(e.scheme)?a.default.toXml("scheme",{val:e.scheme}):"",(0,o.isDefined)(e.italic)&&e.italic?a.default.toXml("i",{}):"",(0,o.isDefined)(e.underline)?a.default.toXml("u",{val:e.underline}):""].join("");return a.default.toXml("font",{},t)}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var i=(0,b.default)("")[0];return i.width=e+2*n,i.height=t+2*n,i.hidden=!0,i}function a(e,t,n,i,o,a,r,s){var l,u,c,d,h,p,f=(e+n)/2,g=(t+i)/2,_=H(t-i,e-n),m=a?1:-1;_+=M/180*90*(r?1:-1),l=V(L(n-e,2)+L(i-t,2))/2,c=f+m*((u=V(F(L(o,2)-L(l,2))))*z(_)),d=g+m*(u*N(_)),h=H(t-d,e-c),p=H(i-d,n-c),s.arc(c,d,o,h,p,!r)}function r(e){var t,n=U(e.attributes||{}),i=(0,I.extend)({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),o=n.transform;return o&&((t=o.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(t=t[0].match(/-*\d+([.]\d+)*/g),i.translateX=W(t[0]),i.translateY=t[1]?W(t[1]):0),(t=o.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(t=t[0].match(/-*\d+([.]\d+)*/g),i.rotationAngle=W(t[0]),i.rotationX=t[1]&&W(t[1]),i.rotationY=t[2]&&W(t[2]))),function(e,t){var n,i=e.style||{};for(n in i)""!==i[n]&&(t[(0,A.camelize)(n)]=i[n]);T.default.isElementNode(e)&&D.default.contains(T.default.getBody(),e)&&(i=B.getComputedStyle(e),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(e){e in i&&""!==i[e]&&(t[(0,A.camelize)(e)]=i[e])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(e){e in i&&""!==i[e]&&"1"!==i[e]&&(t[e]=W(i[e]))})),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}(e,i),i}function s(e,t){var n,i,o=t.split(" "),r=0;do{switch(n=W(o[r+1]),i=W(o[r+2]),o[r]){case"M":e.moveTo(n,i),r+=3;break;case"L":e.lineTo(n,i),r+=3;break;case"C":e.bezierCurveTo(n,i,W(o[r+3]),W(o[r+4]),W(o[r+5]),W(o[r+6])),r+=7;break;case"A":a(W(o[r-2]),W(o[r-1]),W(o[r+6]),W(o[r+7]),n,W(o[r+4]),W(o[r+5]),e),r+=8;break;case"Z":e.closePath(),r+=1}}while(r2&&void 0!==arguments[2]?arguments[2]:new O.Deferred;if(0===t.length)return o.resolve();var a=n(t[0]);return(0,C.isPromise)(a)?a.then(i):i(),o}(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":var o=(0,I.extend)({},n,r(e));t.save(),f(t,o),g(t,o,i);var a=function(){t.restore()},s=m(e.childNodes,t,o,i);return(0,C.isPromise)(s)?s.then(a):a(),s;case"defs":return m(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=_(e);break;default:return h(e,t,n,i)}})}function v(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(function(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=S.default.map(n,function(e){return W(e)}),e.setLineDash(n))}(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function y(e,t,n){var i=t.fill;i&&"none"!==i&&(e.fillStyle=-1===i.search(/url/)?i:function(e,t,n){var i=n.patterns[l(t)],a=r(i),s=o(a.width,a.height,0),u=s.getContext("2d");return m(i.childNodes,u,a,n),e.createPattern(s,"repeat")}(e,i,n),e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1)}function x(e,t,n,i,a){var r=o(t,n,a),s=r.getContext("2d"),l=k.default.getSvgElement(e);return s.translate(a,a),T.default.getBody().appendChild(r),l.attributes.direction&&(r.dir=l.attributes.direction.textContent),function(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}(s,t,n,i,a),m(l.childNodes,s,{},{clipPaths:{},patterns:{},filters:{}}).then(function(){return T.default.getBody().removeChild(r),r})}var b=i(n(2)),w=i(n(90)),C=n(1),k=i(n(184)),S=i(n(3)),I=n(0),T=i(n(12)),D=i(n(10)),E=i(n(7)),A=n(32),O=n(6),B=E.default.getWindow(),P=Math,M=P.PI,R=P.min,F=P.abs,V=P.sqrt,L=P.pow,H=P.atan2,z=P.cos,N=P.sin,$=S.default.each,W=Number,G=1,j=.05,q="10px",K="#000",U=function(e){var t,n={};return S.default.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=W(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=t.width,o=t.height,a=t.backgroundColor;(0,C.isFunction)(t.__parseAttributesFn)&&(U=t.__parseAttributesFn);var r=new O.Deferred;return x(e,i,o,a,t.margin).then(function(e){r.resolve(function(e,t){var n=e.toDataURL(t,G);return B.atob(n.substring(("data:"+t+";base64,").length))}(e,n))}),r},getData:function(e,n){var i=this,o=new O.Deferred;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format,a=(0,C.isFunction)(B.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e);o.resolve(a)}),o},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n-1&&o.splice(t,1)};r(e.dxpointerdown,function(e){-1===a(e)&&(n(e),o.push(e))}),r(e.dxpointermove,function(e){o[a(e)]=e}),r(e.dxpointerup,s),r(e.dxpointercancel,s),this.pointers=function(){return o},this.reset=function(){o=[]}}},function(e,t,n){var i,o=n(0).extend,a=n(150),r=n(225),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},u=!1,c=function(){u||(i=new r(s,function(){return!0}),u=!0)},d=a.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});d.map=s,d.normalize=l,d.activate=c,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(53),o=n(61).compare,a=n(124);if(n(78)()&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449)},function(e,t,n){var i=n(25);e.exports=new i},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(21);e.exports=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}}},function(e,t,n){var i=n(41),o=n(4),a=n(1),r=o.getKeyHash,s=n(14),l=n(6).Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,n=this.options.addedItems,i=this.options.removedItems,a=this.options.selectedItems,r=this.options.selectedItemKeys,s=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),s({selectedItems:a,selectedItemKeys:r,addedItemKeys:e,removedItemKeys:t,addedItems:n,removedItems:i})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:o.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n){var o=encodeURI(JSON.stringify(e)).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,s=new l,u={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?s.resolve([]):this.options.load(u).done(function(n){var o=a.isPlainObject(n)?n.data:n;t?o=o.filter(t):r&&(o=i(o).filter(e).toArray()),s.resolve(o)}).fail(s.reject.bind(s)),s},updateSelectedItemKeyHash:function(e){for(var t=0;t=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){var i=n(1).isDefined,o=n(27),a=n(101),r=n(234),s=n(35).errors,l=n(41),u=n(91),c=n(236),d=n(6),h=d.when,p=d.Deferred;n(155);var f=u.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,i=e.keyType;if(i){var o="string"==typeof i;t||(t=o?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(i),this._legacyAnonymousKey=t),o&&(i=function(e,t){var n={};return n[e]=t,n}(t,i)),n=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&s.log("W4001",o):n[o]=t[o];return n}(n,i)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=a.generateExpand(this._version,t.expand,t.select),n.$select=a.generateSelect(this._version,t.select)),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n;if(e=e||{},n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes},t=i(e.urlOverride)?e.urlOverride:this._url,i(this._filterToLower)&&(n.filterToLower=this._filterToLower),e.customQueryParams){var o=c.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=c.formatFunctionInvocationUrl(t,o):n.params=o}return l(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new p;return h(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(o().useLegacyStoreResult?e:i||e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new p;return h(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(i){o().useLegacyStoreResult?n.resolve(e,t):n.resolve(i||t,e)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new p;return h(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o=0;o").addClass(C).appendTo((0,_.value)()),m="messageHtml"in e;"message"in e&&v.default.log("W1013");var I=String(m?e.messageHtml:e.message),T=(0,o.default)("
    ").addClass("dx-dialog-message").html(I),D=[],E=e.toolbarItems;E?v.default.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):E=e.buttons,(0,h.each)(E||[w],function(){var e=new r.default(this.onClick,{context:A});D.push({toolbar:"bottom",location:s.default.current().android?"after":"center",widget:"dxButton",options:(0,p.extend)({},this,{onClick:function(){n(e.execute.apply(e,arguments))}})})});var A=new y.default(f,(0,p.extend)({title:e.title||t.title,showTitle:(0,x.ensureDefined)(e.showTitle,!0),dragEnabled:(0,x.ensureDefined)(e.dragEnabled,!0),height:"auto",width:function(){var t=((0,o.default)(b).height()>(0,o.default)(b).width()?"p":"l")+"Width",n=e.hasOwnProperty(t)?e[t]:e.width;return(0,d.isFunction)(n)?n():n},showCloseButton:e.showCloseButton||!1,ignoreChildEvents:!1,onContentReady:function(e){e.component.$content().addClass("dx-dialog-content").append(T)},onShowing:function(e){e.component.bottomToolbar().addClass("dx-dialog-buttons").find("."+k).addClass("dx-dialog-button"),(0,u.resetActiveElement)()},onShown:function(e){var t=e.component.bottomToolbar().find("."+k).first();(0,g.trigger)(t,"focus")},onHiding:function(){i.reject()},toolbarItems:D,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,l.default)().rtlEnabled,boundaryOffset:{h:10,v:0}},e.popupOptions));return A._wrapper().addClass("dx-dialog-wrapper"),e.position&&A.option("position",e.position),A._wrapper().addClass("dx-dialog-root"),{show:function(){return A.show(),i.promise()},hide:n}},t.alert=function(e,n,i){var o=(0,d.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,dragEnabled:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=(0,d.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,buttons:[{text:m.default.format("Yes"),onClick:function(){return!0}},{text:m.default.format("No"),onClick:function(){return!1}}],dragEnabled:i};return t.custom(o).show()}},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(4).noop,r=n(15),s=n(8),l=n(0).extend,u=n(34),c=n(54),d=n(46),h=n(138),p=n(65),f=n(6).Deferred,g=c.inherit({_getDefaultOptions:function(){return l(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:r.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new p(function(e,t){var n=new u(i("
    "),l({onClick:t&&t.click},t));e.append(n.$element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("
    ").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("
    ").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!o.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,l(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,d,l(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:o},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:o}},to:{position:{my:"bottom",at:"bottom",of:o}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:o}},to:{position:{my:"top",at:"bottom",of:o}}}}})),this._popup._wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a,t=this;this._$cancelButton=i("
    ").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,u,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new f;return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",g),e.exports=g},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(42),l=n(8),u=n(4),c=n(1),d=n(0).extend,h=n(13).inArray,p=n(161),f=n(102),g=n(18),_=n(9),m=n(16),v=n(242),y=n(15),x=n(133),b=n(6).Deferred,w=n(283).default,C="dx-skip-gesture-event",k=["startswith","contains","endwith","notcontains"],S=p.inherit({_supportedKeys:function(){var e=this.callBase();return d({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:u.noop,home:u.noop,end:u.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return d(this.callBase(),d(v._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:y.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:u.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{popupPosition:{offset:{v:-6}}}},{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),d(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new x("item",this)},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_createPopup:function(){this.callBase(),this._popup._wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();r.off(e,"mouseup"),r.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_loadItem:function(e,t){var n,o;return t&&"object"!==(void 0===e?"undefined":i(e))&&(t.itemByValue||(t.itemByValue={},(n=this._getPlainItems()).forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),o=t.itemByValue[e]),o||(n=this._getPlainItems(),o=u.grep(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),void 0!==o?(new b).resolve(o).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||[];for(var n=0;n").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,f,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._renderPreventBlur(this._$list)},_renderPreventBlur:function(e){var t=_.addNamespace("mousedown","dxDropDownList");r.off(e,t),r.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase();var e=this.option("opened")||void 0;this.setAria({activedescendant:e&&this._list.getFocusedItemId(),owns:e&&this._listId})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===m.real().deviceType},_listConfig:function(){return{selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),tabIndex:null,onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")}},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:u.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return _.addNamespace("input",this.NAME+"Search")},_getSetFocusPolicyEvent:function(){return _.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),r.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&r.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){r.off(this._input(),this._getSearchEvent()),r.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(this._isMinSearchLengthExceeded()){var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()}else this._searchCanceled()},_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()||[]).length;return!(!this._needPassDataSourceToList()||!e)},_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=c.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=e.offset(),n=o(a).height(),i=Math.max(t.top,n-t.top-e.outerHeight());return Math.min(.5*n,i)},_clean:function(){this._list&&delete this._list,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(v,w);l("dxDropDownList",S),e.exports=S},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(60),l=n(10).getPublicElement,u=n(3).each,c=n(20).compileGetter,d=n(0).extend,h=n(39),p=n(19),f=n(175),g=n(44),_=n(15),m=n(72),v=n(16),y=n(505),x=n(34),b=n(9),w=n(30),C=n(7),k=n(162),S=n(94).deviceDependentOptions,I=n(190).default,T=n(65),D=n(6).Deferred,E=n(283).default,A="dx-list-item",O="."+A,B="dx-list-group",P="dx-list-group-header",M="dx-list-group-body",R="dx-list-group-collapsed",F=c("items"),V=I.inherit({_activeStateUnit:[O,".dx-list-select-all"].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t);i.is(e.option("focusedElement"))&&(o(i,t),i=n(t)),e.option("focusedElement",l(i)),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.$element().height(),a=i(e.option("focusedElement")),r=!0;if(!a.length)return i();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;(r=ln)&&(a=s)}return a},o=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.$element().height()+t.outerHeight()),e.scrollTo(i)};return d(this.callBase(),{leftArrow:a.noop,rightArrow:a.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:_.format("dxList-pullingDownText"),pulledDownText:_.format("dxList-pulledDownText"),refreshingText:_.format("dxList-refreshingText"),pageLoadingText:_.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:_.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=w.current();return this.callBase().concat(S(),[{device:function(){return!g.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!g.nativeScrolling&&!v.isSimulator()&&"generic"===v.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===v.real().deviceType&&!v.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return"win"===v.current().platform&&v.isSimulator()},options:{bounceEnabled:!1}},{device:function(){return w.isMaterial(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return A},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+B).children("."+M).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},reorderItem:function(e,t){return this.callBase(e,t).done(function(){this._refreshItemElements()})},deleteItem:function(e){return this.callBase(e).done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction(),this.setAria("role","listbox")},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return d(this.callBase(),{paginate:a.ensureDefined(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),k,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=i(this._scrollView.content()),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new T(function(e,t){r.isPlainObject(t)?t.key&&e.text(t.key):e.text(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var n=s.getImageContainer(e.icon).addClass("dx-list-item-icon"),o=i("
    ").addClass("dx-list-item-icon-container");o.append(n),t.prepend(o)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){!this._shouldAppendItems()&&C.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){return arguments.length?void(this._isLoadIndicationSuppressed=e):this._isLoadIndicationSuppressed},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){!this.$element().is(":visible")||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(u(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),w.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=b.addNamespace(p.name,this.NAME),t="."+P,n=this.$element(),a=this.option("collapsibleGroups");n.toggleClass("dx-list-collapsible-groups",a),o.off(n,e,t),a&&o.on(n,e,t,function(e){this._createAction(function(e){var t=i(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",l(t.find("."+A).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new D;if(e.hasClass(R)===t)return n.resolve();var i=e.children("."+M),o=i.outerHeight(),a=0===o?i.height("auto").outerHeight():0;return e.toggleClass(R,t),h.animate(i,{type:"custom",from:{height:o},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=i(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?w.isMaterial()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(o)},35):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(e.itemElement))},_attachSwipeEvent:function(e){var t=b.addNamespace(f.end,this.NAME);o.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(){var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=i("
    ").addClass(B).appendTo(this._itemContainer()),o=i("
    ").addClass(P).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,o),s={index:e,itemData:t,container:l(o)};this._createItemByTemplate(r,s),w.isMaterial()&&i("
    ").addClass("dx-list-group-header-indicator").prependTo(o),this._renderingGroupIndex=e;var c=i("
    ").addClass(M).appendTo(n);u(F(t)||[],function(e,t){this._renderItem(e,t,c)}.bind(this)),this._groupRenderAction({groupElement:l(n),groupIndex:e,groupData:t})},attachGroupHeaderInkRippleEvents:function(){var e=this,t="."+P,n=this.$element();o.on(n,"dxpointerdown",t,function(t){e._toggleActiveState(i(t.currentTarget),!0,t)}),o.on(n,"dxpointerup dxhoverend",t,function(t){e._toggleActiveState(i(t.currentTarget),!1)})},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataSource,n=this._getNextButton();this.$element().toggleClass("dx-has-next",e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=i("
    ").addClass("dx-list-next-button"),t=i("
    ").appendTo(e);return this._createComponent(t,x,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:w.isMaterial()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(C.hasWindow()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"useNative":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions(),this._invalidate();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+B),n=t.find("."+A);return d(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new D,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new D,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new D;return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)}):t.resolveWith(e),t.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e);this._scrollView.scrollToElement(t)}}).include(E);V.ItemClass=y,e.exports=V},function(e,t,n){var i=n(2),o=n(0).extend,a=n(15),r=n(92),s=n(18),l=n(6).Deferred;e.exports={_getDefaultOptions:function(){return o(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e,t=this.$element(),n=this.option("searchEnabled"),o=this._addWidgetPrefix("search"),a=this._addWidgetPrefix("with-search");return n?(e=this._getSearchEditorOptions(),void(this._searchEditor?this._searchEditor.option(e):(t.addClass(a),this._$searchEditorElement=i("
    ").addClass(o).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,r,e)))):(t.removeClass(a),void this._removeSearchBox())},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions");return o({mode:"search",placeholder:a.format("Search"),tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new l,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout(function(){e._valueChangeDeferred.resolve()},n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer():this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void s.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){return!this.option("focusedElement")&&this.option("searchEnabled")?void(this._searchEditor&&this._searchEditor.focus()):void this.callBase()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(74),a=n(20),r=n(4),s=n(1),l=n(0).extend,u=n(87),c=n(45),d=n(68),h=n(6).Deferred,p=l({},u,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new c.DataSource({store:new d(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=a.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=a.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new h;return e=this._unwrappedValue(e),s.isDefined(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail(function(){t.reject()}),t.promise()):t.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){return(e=s.isDefined(e)?e:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),o.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},o=0,a=t.length;o").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("
    ").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=i("
    ").addClass("dx-progressbar-animating-container");for(var e=this.option("_animatingSegmentCount"),t=0;t").addClass(l).addClass(l+"-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var t="dx-position-"+e[0];e[1]&&(t+="-"+e[1]),this._$wrapper.addClass(t)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");return e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),void this._setStatus()):void this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat"),t=(e=r(e)?e.bind(this):function(e){return e})(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});s("dxProgressBar",u),e.exports=u},function(e,t,n){var i=n(2),o=n(49),a=n(8),r=n(0).extend,s=n(7),l=n(39),u=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=i("
    ").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=i("
    ").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("
    ").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(en)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){return l.stop(this._$range),e?void(!this._needPreventAnimation&&s.hasWindow()&&l.animate(this._$range,{type:"custom",duration:100,to:e})):void this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){l.stop(this._$range),this.callBase()}});a("dxTrackBar",u),e.exports=u},function(e,t,n){var i=n(8),o=n(5),a=n(4).grep,r=n(0).extend,s=n(3),l=n(173),u=n(100),c=n(54),d="dx-validationsummary",h=c.inherit({_getDefaultOptions:function(){return r(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this._findGroup(),t=u.addGroup(e);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=e,this.groupSubscription=this._groupValidationHandler.bind(this),t.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=u.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return s.each(e,function(e,i){var o=a(t,function(e){if(e.validator===i)return!0})[0];o&&n.push(o)}),n},_groupValidationHandler:function(e){var t=this,n=t._getOrderedItems(e.validators,s.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator}}));t.validators=e.validators,s.each(t.validators,function(e,n){if(n._validationSummary!==this){var i=t._itemValidationHandler.bind(t);n.on("validated",i),n.on("disposing",function(){n.off("validated",i),n._validationSummary=null,i=null}),n._validationSummary=this}}),t.option("items",n)},_itemValidationHandler:function(e){var t,n=this.option("items"),i=e.isValid,o=!1,a=e.brokenRule&&e.brokenRule.message,r=e.validator;s.each(n,function(e,n){if(n.validator===r)return i?t=e:n.text=a,o=!0,!1}),i^o||(i?n.splice(t,1):n.push({text:a,validator:r}),n=this._getOrderedItems(this.validators,n),this.option("items",n))},_initMarkup:function(){this.$element().addClass(d),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return"dx-validationsummary-item"},_itemDataKey:function(){return"dx-validationsummary-item-data"},_postprocessRenderItem:function(e){o.on(e.itemElement,"click",function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()})},_dispose:function(){this.callBase(),this._unsubscribeGroup()}}).include(l);i("dxValidationSummary",h),e.exports=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n").html(t).appendTo(s.value());u=function(){n.remove()},l=new o(n,e)}(e),l.show()},t.hide=function(){return l?l.hide().done(c).promise():(new r).resolve()}},function(e,t,n){var i=n(2),o=n(5),a=n(39),r=n(19),s=n(16),l=n(0).extend,u=n(10).getPublicElement,c=n(3),d=n(1).isPlainObject,h=n(8),p=n(9),f=n(190).default,g=n(6),_=g.when,m=g.Deferred,v=n(65),y=n(60),x=n(1).isDefined,b=n(30),w="dx-accordion-item",C="dx-accordion-item-opened",k="dx-accordion-item-closed",S="dx-accordion-item-title",I="dx-accordion-item-body",T=f.inherit({_activeStateUnit:"."+w,_getDefaultOptions:function(){return l(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return b.isMaterial()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var e=this.$element();e.addClass("dx-accordion"),this._$container=i("
    ").addClass("dx-accordion-wrapper"),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new v(function(e,t){var n=i("
    ").addClass("dx-accordion-item-title-caption").appendTo(e);d(t)?(t.title&&n.text(t.title),n.append(y.getImageContainer(t.icon))):n.text(String(t))},["title","icon"],this.option("integrationOptions.watchMethod"))},_initMarkup:function(){this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return w},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+S)},_itemContents:function(){return this._itemElements().find("."+I)},_getItemData:function(e){return i(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){i(e.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(e,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(e){var t=this.callBase(l({},e,{contentClass:S,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var n=new m;x(this._deferredItems[e.index])?this._deferredItems[e.index]=n:this._deferredItems.push(n),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(e.index)>=0)&&n.resolve(),n.done(this.callBase.bind(this,l({},e,{contentClass:I,container:u(i("
    ").appendTo(i(t).parent()))})))},_attachItemTitleClickAction:function(e){var t=p.addNamespace(r.name,this.NAME);o.off(e,t),o.on(e,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemDXEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(k),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t)},_updateSelection:function(e,t){this._updateItems(e,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(e,t){var n=this._itemElements(),i=this;c.each(e,function(e,t){i._deferredItems[t].resolve();var o=n.eq(t).addClass(C).removeClass(k);i.setAria("hidden",!1,o.find("."+I))}),c.each(t,function(e,t){var o=n.eq(t).removeClass(C);i.setAria("hidden",!0,o.find("."+I))})},_updateItemHeightsWrapper:function(e){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(e)}.bind(this)):this._updateItemHeights(e)},_updateItemHeights:function(e){var t=this,n=t._deferredAnimate,o=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),_.apply(i,[].slice.call(this._itemElements()).map(function(n){return t._updateItemHeight(i(n),o,e)})).done(function(){n&&n.resolveWith(t)})},_updateItemHeight:function(e,t,n){var i=e.children("."+S);a.isAnimating(e)&&a.stop(e);var o=e.outerHeight(),r=e.hasClass(C)?t+i.outerHeight()||e.height("auto").outerHeight():i.outerHeight();return this._animateItem(e,o,r,n,!!t)},_animateItem:function(e,t,n,i,o){var r;return i||t===n?(e.css("height",n),r=(new m).resolve()):r=a.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),r.done(function(){e.hasClass(C)&&!o&&e.css("height",""),e.not("."+C).addClass(k)})},_splitFreeSpace:function(e){return e?e/this.option("selectedItems").length:e},_calculateFreeSpace:function(){var e=this.option("height");if(void 0!==e&&"auto"!==e){var t=this._itemTitles(),n=0;return c.each(t,function(e,t){n+=i(t).outerHeight()}),this.$element().height()-n}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_optionChanged:function(e){switch(e.name){case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",e.value?"multiple":"single");break;default:this.callBase(e)}},expandItem:function(e){return this._deferredAnimate=new m,this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=new m,this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});h("dxAccordion",T),e.exports=T},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(36)),o=n(40);t.createGroupFilter=function(e,t){var n,a=(0,o.normalizeSortingInfo)(t.group),r=[];for(n=0;n1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e0?n:e.offsetWidth};t.AreaItem=a.inherit({_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return o("
    ")},_createTableElement:function(){return o("")},_getCellText:function(e,t){var n=e.isWhiteSpace?" ":e.text||" ";return!t||-1===n.indexOf("<")&&-1===n.indexOf(">")||(n=o("
    ").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"
    "},_getCloseMainElementMarkup:function(){return""},_renderTableContent:function(e,t){var n,i,o,a,r,s,u=this,c=t.length,d=u.option("rtlEnabled"),h=[],p=u.option("encodeHtml");for(e.data("area",u._getAreaName()),e.data("data",t),e.css("width",""),h.push(u._getMainElementMarkup()),o=0;o"),l(i.expanded)&&f.push("
    "),r=this._getCellText(i,p)}else r="";f.push(""+r+""),i.sorted&&f.push(""),f.push("")}s.length&&(h.push("class='"),h.push(s.join(" ")),h.push("'")),h.push(">"),h.push(f.join("")),h.push("")}h.push(this._getCloseMainElementMarkup()),e.append(h.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,l,u,c,d=this,h=e.find("tr"),p=d._getAreaName(),f=d.option("onCellPrepared"),g=d.component.hasEvent("cellPrepared"),_=this.component._defaultActionArgs();if(f||g)for(u=0;u0?n:t.offsetHeight):0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=[],n=this.getRowsLength();for(e=0;e';this._colgroupElement.html(o),this._tableWidth=n-this._groupWidth>.01?Math.ceil(n):n,i.style.width=this._tableWidth+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},groupWidth:function(e){return void 0===e?this._groupElement.width():e>=0?(this._groupWidth=e,this._groupElement[0].style.width=e+"px"):this._groupElement[0].style.width=e},groupHeight:function(e){return void 0===e?this._groupElement.height():(this._groupHeight=null,void(e>=0?(this._groupHeight=e,this._groupElement[0].style.height=e+"px"):this._groupElement[0].style.height=e))},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=o("
    ").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.groupWidth("100%"),e.groupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,function(e){n.option("rtlEnabled")&&l(e.scrollOffset.left)&&(e.scrollOffset.left=i.$content().width()-i._container().width()-e.scrollOffset.left),t(e)}),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.$content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.$content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n)for(var i=0,o=(e=n.cells).length;i",S=m.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),I=_.inherit(v).inherit(y).inherit(m.headerFilterMixin).inherit({_getDefaultOptions:function(){return h(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:f.format("dxDataGrid-headerFilterEmptyValue"),ok:f.format("dxDataGrid-headerFilterOK"),cancel:f.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new S(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&o(this._dataSource.state())!==o(e.value)?this._dataSource.state(e.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,o=a(k).addClass("dx-area-field-content").text(e.caption||e.dataField),r=a(k).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(o),s=i(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:s.filterValues,allowFiltering:s.allowFiltering&&!e.groupIndex},showColumnLines:t})),e.groupName&&r.attr("item-group",e.groupName),r},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),b,h({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=a(this).closest(".dx-sortable"),i=n.data("dxPivotGrid"),o=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!o&&o.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&C(e,function(e,t){n.eq(e).css("width",parseInt(a(t).outerWidth(),10)+1)})):n=a(k).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=a(k);return C(n,function(e,t){var n=a("
    ").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append(a(t));i.append(n)}),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,!0===t.isMeasure?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):!1===t.isMeasure&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,o=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),o&&e._applyChanges([i(n,o)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var o=i.state();i.state(t.option("state"),!0),e(i,n),i.state(o,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState(function(i,o){e.forEach(function(e){var n=e.index;i.field(n,t)}),o?i.load():n._changedHandler()})},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=a(e.currentTarget).data("field"),o=h(!0,{},i(t._dataSource,n)),r=a(e.target).hasClass("dx-header-filter"),l=t._dataSource,u=o.groupName?"tree":"list",c=l.paginate()&&"list"===u;r?t._headerFilterView.showHeaderFilterMenu(a(e.currentTarget),h(o,{type:u,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!c,load:function(e){var n=e.userData;if(n.store)return n.store.load(e);var i=new w;return l.getFieldValues(o.index,t.option("headerFilter.showRelevantValues"),c?e:void 0).done(function(t){c?i.resolve(t):(n.store=new s(t),n.store.load(e).done(i.resolve).fail(i.reject))}).fail(i.reject),i},postProcess:function(e){return function(e,t){var n=[],i=!!t.groupName,o="exclude"===t.filterType;t.filterValues&&C(t.filterValues,function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())}),x.foreachTree(e,function(e){var t,a=e[0],r=x.createPath(e),s=i?p.map(e,function(e){return e.text}).reverse().join("/"):a.text;a.value=i?r.slice(0):a.key||a.value,t=i?r.join("/"):a.value&&a.value.valueOf(),a.children&&(a.items=a.children,a.children=null),m.updateHeaderFilterItemSelectionState(a,a.key&&d(s,n)>-1||d(t,n)>-1,o)})}(e,o),e}},apply:function(){t._applyChanges([o],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};return e?void r.on(e,l.name,".dx-area-field.dx-area-box",n):void r.on(t.$element(),l.name,".dx-area-field.dx-area-box",n)},_initTemplates:u,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});g("dxPivotGridFieldChooserBase",I),e.exports=I},function(e,t,n){var i=n(2),o=n(12),a=n(37),r=n(1),s=n(10).getPublicElement,l="tr",u={VERTICAL:"vertical",HORIZONTAL:"horizontal",insertAllDayRow:function(e,t,n){if(e[n]){var a=e[n].find(l);a.length||(a=i(o.createElement(l))).append(e[n].get(0)),t.appendChild(a.get?a.get(0):a)}},makeTable:function(e){var t,n=o.createElement("tbody"),u=[],c=e.groupCount?e.rowCount/e.groupCount:e.rowCount,d=0,h=e.allDayElements,p=e.groupIndex,f=e.rowCount;i(e.container).append(n),h&&(this.insertAllDayRow(h,n,0),d++);for(var g=0;g")}h&&_&&(this.insertAllDayRow(h,n,d),d++)}return u},makeGroupedTable:function(e,t,n,i,o,a,r){return e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o,r)},makeGroupedTableFromJSON:function(e,t,n){function i(e){return e[d]?e[d].length:0}function a(e,t,n,i){var a={element:o.createElement(c),childCount:t};g&&(a.element.className=g);var r=o.createTextNode(e);return"function"==typeof _?_(a.element,r,n,i):a.element.appendChild(r),a}var r,s=[],u=0,c=(n=n||{}).cellTag||"td",d=n.childrenField||"children",h=n.titleField||"title",p=n.groupTableClass,f=n.groupRowClass,g=n.groupCellClass,_=n.groupCellCustomContent;return r=o.createElement("table"),p&&(r.className=p),function e(t){for(var n=0;n=0;i--){var a=e[i+1],s=e[i].childCount;a&&a.childCount&&(s*=a.childCount),n.push(s)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)}),r.appendChild(t)}),r},_makeVerticalGroupedRows:function(e,t,n,o){var a,r=[],s=1,l=[],u=function(e){e.template&&r.push(e.template)};for(a=0;a0&&(s=e[a-1].items.length*s);var c=this._makeGroupedRowCells(e[a],s,t,n);c.forEach(u),l.push(c)}var d=[],h=l.length,p=l[h-1].length;for(a=0;a").addClass(t.groupHeaderRowClass));for(a=h-1;a>=0;a--)for(var f=l[a].length,g=p/f,_=0;_0&&(r=e[h-1].items.length*r);var p=this._makeGroupedRowCells(e[h],r,t,o,c);l.push(i("
    ").addClass(t.groupRowClass).append(p.map(d)))}for(var f=l[s-1].find("th").length,g=0;g1&&1===c||a&&s>1)&&_.attr("colSpan",m)}return{elements:l,cellTemplates:u}},_makeGroupedRowCells:function(e,t,n,o,a){t*=a=a||1;for(var l=[],u=e.items,c=u.length,d=0;d"),g={};if(o&&o.render){var _={model:u[h],container:s(f),index:d*c+h};e.data&&(_.model.data=e.data[h]),g.template=o.render.bind(o,_)}else f.text(u[h].text),f=i("
    ").append(f);f.addClass(n.groupHeaderContentClass),p=r.isFunction(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,g.element=i("
    ").addClass(p).append(f),l.push(g)}return l}};e.exports=u},function(e,t,n){var i=n(2),o=n(4).noop,a=n(0).extend,r=n(8),s=n(201),l=n(22),u=n(254),c=n(701),d=l.dateToMilliseconds,h=s.inherit({_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=i("").addClass("dx-scheduler-group-table")},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",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){return Math.floor(t/this._getCellCountInDay())*this._getHiddenInterval()},_getMillisecondsOffset:function(e,t){return t=this._calculateCellIndex(e,t),this._getInterval()*t+this._calculateHiddenInterval(e,t)},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?this._$dateTable.get(0).getBoundingClientRect().height:this.$element().get(0).getBoundingClientRect().height},_dateTableScrollableConfig:function(){var e,t=this.callBase(),n={direction:"horizontal",onStart:function(){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0))}.bind(this),onScroll:function(e){this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._headerScrollable&&this._headerScrollable.option("onScroll",e)}.bind(this)};return this.option("crossScrollingEnabled")?t:a(t,n)},_headerScrollableConfig:function(){var e=this.callBase();return a(e,{scrollByContent:!0})},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderDateHeader:function(){var e=this.callBase();if(this._needRenderWeekHeader()){for(var t=new Date(this._firstViewDate),n=[],o=this._getCellCountInDay(),a=this.option("dateCellTemplate"),r=0;r"),l=this._formatWeekdayAndDay(t);if(a){var u={model:{text:l,date:new Date(t)},container:s,index:r};a.render(u)}else s.text(l);s.addClass("dx-scheduler-header-panel-cell").addClass("dx-scheduler-header-panel-week-cell").attr("colSpan",o),n.push(s),this._incrementDate(t)}var c=i("").addClass("dx-scheduler-header-row").append(n);e.before(c)}},_needRenderWeekHeader:function(){return!1},_incrementDate:function(e){e.setDate(e.getDate()+1)},_getWeekDuration:function(){return 1},_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new c,this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},_setHorizontalGroupHeaderCellsHeight:o,getIndicationWidth:function(){var e=this._getToday(),t=this.getCellWidth(),n=this._getIndicationFirstViewDate(),i=this._getHiddenInterval(),o=e.getTime()-n.getTime();return(o-(Math.ceil(o/d("day"))-1)*i)/this.getCellDuration()*t},_renderIndicator:function(e,t,n,i){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))(o=this._createIndicator(n)).height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a:a);else for(var r=0;r=n&&e.getHours()=n&&e.getHours()>=i?f=p-(_-i*d("hour")):h||(m=c),m+=f),m},_getWeekendsCount:function(){return 0},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(e){var t=this.callBase(e),n=this.getCellWidth()*e;return this.option("rtlEnabled")&&(n*=-1),{top:0,left:n+=t.left,cellPosition:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=(e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft())/i,a=n.width()/i,r=e?o-a:o+a,s=this._getDateByIndex(o),u=this._getDateByIndex(r);return e&&(s=this._getDateByIndex(r),u=this._getDateByIndex(o)),t.left={hours:s.getHours(),minutes:s.getMinutes()>=30?30:0,date:l.trimTime(s)},t.right={hours:u.getHours(),minutes:u.getMinutes()>=30?30:0,date:l.trimTime(u)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(en.right.hours)&&(o=!0),e===n.left.hours&&tn.right.minutes&&(o=!0),o},getIntervalDuration:function(e){return this.getCellDuration()},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(ne.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth:function(){return 0},getWorkSpaceLeftOffset:function(){return 0},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?this.getScrollableContainer().get(0).getBoundingClientRect().width:0;o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}});r("dxSchedulerTimeline",h),e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(381)),a=i(n(711)),r=n(4),s=i(n(14)),l=n(0),u=i(n(18)),c=i(n(22)),d=n(1),h=i(d),p=i(n(30)),f=c.default.dateToMilliseconds,g=s.default.abstract,_=s.default.inherit({ctor:function(e){this.instance=e,this._initPositioningStrategy()},_initPositioningStrategy:function(){this._positioningStrategy=this.instance.fire("isAdaptive")?new a.default(this):new o.default(this)},getPositioningStrategy:function(){return this._positioningStrategy},getAppointmentMinSize:function(){return 2},keepAppointmentSettings:function(){return!1},getDeltaTime:g,getAppointmentGeometry:function(e){return e},needCorrectAppointmentDates:function(){return!0},getDirection:function(){return"horizontal"},createTaskPositionMap:function(e){delete this._maxAppointmentCountPerCell;var t=e&&e.length;if(t){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;ithis.getDefaultCellWidth()/2},isAllDay:function(){return!1},cropAppointmentWidth:function(e,t){return this.instance.fire("isGroupedByDate")&&(e=t),e},_getSortedPositions:function(e){for(var t=[],n=0,i=0,o=e.length;in.__tmpIndex)return 1}return e},_sortCondition:g,_rowCondition:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return i||(o||e.isStart-t.isStart)},_columnCondition:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return o||(i||e.isStart-t.isStart)},_isSomeEdge:function(e,t){return e.i===t.i&&e.j===t.j},_normalizeCondition:function(e,t,n){var i=e-t;return n||Math.abs(i)>1?i:0},_getResultPositions:function(e){for(var t,n=[],i=[],o=[],a=[],r=0,s=0,l=0;lthis._getMaxAppointmentCountPerCell()-1},_findIndexByKey:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;rn-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;oi||!i)&&(i=o),isNaN(i.getTime()))throw u.default.Error("E1032",a);return i},endDate:function(e,t,n){var i=this.instance._getEndDate(e),o=this.startDate(e,!0),a=this.startDate(e,!1,t);if(a.getTime()>i.getTime()||n){var r=t?t.initialStartDate||t.startDate:o,s=t?t.startDate:o,l=i.getTime()-o.getTime();if(l=this._adjustDurationByDaylightDiff(l,o,i),i=new Date(a.getTime()>=r.getTime()?r.getTime():a.getTime()),n&&(i=new Date(i.getTime()+l)),!c.default.sameDate(o,i)&&s.getTime()d&&(i=d)}return i},_adjustDurationByDaylightDiff:function(e,t,n){var i=this.instance.fire("getDaylightOffset",t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e},_needAdjustDuration:function(e){return 0!==e},_calculateDurationByDaylightDiff:function(e,t){return e+t*f("minute")},_getAppointmentDurationInMs:function(e,t,n){var i;return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n,callback:function(e){i=e}}),i},_getMaxNeighborAppointmentCount:function(){if(this.instance.fire("getMaxAppointmentsPerCell"))return 0;var e=this.getCompactAppointmentDefaultWidth()+this.getCompactAppointmentLeftOffset();return Math.floor(this.getDropDownAppointmentWidth()/e)},_markAppointmentAsVirtual:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(t);e.count-n>this._getMaxNeighborAppointmentCount()&&(e.virtual={top:e.top,left:e.left,index:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex,isAllDay:t})},_getMaxAppointmentCountPerCellByType:function(e){var t=this._getMaxAppointmentCountPerCell();return h.default.isObject(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t},getDropDownAppointmentWidth:function(e,t){return this.getPositioningStrategy().getDropDownAppointmentWidth(e,t)},getDropDownAppointmentHeight:function(){return this.getPositioningStrategy().getDropDownAppointmentHeight()},getDropDownButtonAdaptiveSize:function(){return 28},getDefaultCellWidth:function(){return this._defaultWidth},getDefaultCellHeight:function(){return this._defaultHeight},getDefaultAllDayCellHeight:function(){return this._allDayHeight},getCompactAppointmentDefaultWidth:function(){return 15},getCompactAppointmentTopOffset:function(e){return this.getPositioningStrategy().getCompactAppointmentTopOffset(e)},getCompactAppointmentLeftOffset:function(){return this.getPositioningStrategy().getCompactAppointmentLeftOffset()},getAppointmentDataCalculator:r.noop,_customizeCoordinates:function(e,t,n,i,o){var a,r,s=e.index,l=t/n,u=e.top+s*l+i,c=e.width,d=e.left,h=this.getCompactAppointmentTopOffset(o);return e.isCompact&&(a=this.getCompactAppointmentDefaultWidth(),r=this.getCompactAppointmentLeftOffset(),u=e.top+h,d=e.left+(s-n)*(a+r)+r,this.instance.fire("isAdaptive")&&(e.top=u,e.left=e.left+r),l=a,c=a,this._markAppointmentAsVirtual(e,o)),{height:l,width:c,top:u,left:d,empty:this._isAppointmentEmpty(t,c)}},_isAppointmentEmpty:function(e,t){return eo.oppositeStart||o.oppositeStart<=i.oppositeStart&&o.oppositeEnd>i.oppositeStart;return i.end>o.start&&a}}function s(e){var t,n,i;for(t=0;tr.start-(r.end-t.end)){a.toChain(o),e[n]=o=null;break}o&&o.setRollingStockInCanvas(t)}}function u(e,t){return e&&e.getBoundingRect().end>t.end}function c(e,t,n){var i=e.getBoundingRect(),o=i.x,a=i.y,r=i.x+i.width,s=i.y+i.height;return this.labels=[e],this.shiftFunction=n,this._bBox={start:t?o:a,width:t?i.width:i.height,end:t?r:s,oppositeStart:t?a:o,oppositeEnd:t?s:r},this._initialPosition=t?i.x:i.y,this}function d(e,t){return(e.x<=t.x&&t.x<=e.x+e.width||e.x>=t.x&&e.x<=t.x+t.width)&&(e.y<=t.y&&t.y<=e.y+e.height||e.y>=t.y&&e.y<=t.y+t.height)}var h=n(4),p=h.noop,f=n(5),g=n(1),_=n(3),m=n(0).extend,v=n(13).inArray,y=n(9),x=n(98),b=n(20),w=n(203),C=n(263),k=n(265),S=n(394),I=n(395),T=n(770),D="_reinit",E="_forceRender",A="_resize",O=[D,"_updateDataSource","_dataInit",E,A],B=n(11),P=B.map,M=_.each,R=_.reverseEach,F=m,V=Array.isArray,L=g.isDefined,H=B.setCanvasValues,z="font";c.prototype={toChain:function(e){var t=e.getBoundingRect();e.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(e.labels)},getBoundingRect:function(){return this._bBox},shift:function(e){var t=this.shiftFunction;M(this.labels,function(n,i){var o=i.getBoundingRect(),a=t(o,e);i.hideInsideLabel(a)||i.shift(a.x,a.y)}),this._bBox.end-=e,this._bBox.start-=e},setRollingStockInCanvas:function(e){this._bBox.end>e.end&&this.shift(this._bBox.end-e.end)},getLabels:function(){return this.labels},value:function(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var N={resolveLabelOverlappingInOneDirection:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return 0},u=[],d={start:n?t.left:t.top,end:n?t.width-t.right:t.height-t.bottom},h=!1;if(e.forEach(function(e){e&&(h=h||e.series.isStackedSeries()||e.series.isFullStackedSeries(),e.getLabels().forEach(function(e){e.isVisible()&&u.push(new c(e,n,o))}))}),h)!n&&u.reverse();else{var p=u.slice();u.sort(function(e,t){return r(e,t)||e.getInitialPosition()-t.getInitialPosition()||p.indexOf(e)-p.indexOf(t)})}return!!a(u)&&(i(u,d),s(u),u.reverse(),l(u,d),!0)}},$=x.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+z,"legend.title."+z,"legend.title.subtitle."+z,"commonSeriesSettings.label."+z],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.options=this.option(),e},_createThemeManager:function(){var e=this.option(),t=new S.ThemeManager(this._getThemeManagerOptions());return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new I.LayoutManager,e._createScrollBar(),f.on(e._$element,"contextmenu",function(e){(y.isTouchEvent(e)||y.isPointerEvent(e))&&e.preventDefault()}),f.on(e._$element,"MSHoldVisual",function(e){e.preventDefault()})},_getLayoutItems:p,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;H(e._canvas),e._reinitAxes(),e._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:p,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root,i=function(){return t.g().attr({class:"dxc-constant-lines-group"}).linkOn(n,"constant-lines")};e._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},e._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(n),e._panesBackgroundGroup=t.g().attr({class:"dxc-background"}).append(n),e._stripsGroup=t.g().attr({class:"dxc-strips-group"}).linkOn(n,"strips"),e._gridGroup=t.g().attr({class:"dxc-grids-group"}).linkOn(n,"grids"),e._panesBorderGroup=t.g().attr({class:"dxc-border"}).linkOn(n,"border"),e._axesGroup=t.g().attr({class:"dxc-axes-group"}).linkOn(n,"axes"),e._labelAxesGroup=t.g().attr({class:"dxc-strips-labels-group"}).linkOn(n,"strips-labels"),e._constantLinesGroup.under=i(),e._seriesGroup=t.g().attr({class:"dxc-series-group"}).linkOn(n,"series"),e._constantLinesGroup.above=i(),e._scaleBreaksGroup=t.g().attr({class:"dxc-scale-breaks"}).linkOn(n,"scale-breaks"),e._labelsGroup=t.g().attr({class:"dxc-labels-group"}).linkOn(n,"labels"),e._crosshairCursorGroup=t.g().attr({class:"dxc-crosshair-cursor"}).linkOn(n,"crosshair"),e._legendGroup=t.g().attr({class:"dxc-legend","clip-path":e._getCanvasClipRectID()}).linkOn(n,"legend").linkAppend(n).enableLinks(),e._scrollBarGroup=t.g().attr({class:"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_disposeObjectsInArray:function(e,t){M(this[e]||[],function(e,n){t&&n?M(t,function(e,t){n[t]&&n[t].dispose()}):n&&n.dispose()}),this[e]=null},_disposeCore:function(){var e=this,t=function(t){e[t]&&(e[t].dispose(),e[t]=null)},n=function(t){e[t].linkOff()},i=this._disposeObjectsInArray;e._renderer.stopAllAnimations(),i.call(e,"series"),t("_tracker"),t("_crosshair"),e.layoutManager=e._userOptions=e._canvas=e._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_labelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(e){return this._themeManager.getOptions(e)},_applySize:function(e){this._rect=e.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(A)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new T[e._trackerType]({seriesGroup:e._seriesGroup,renderer:e._renderer,tooltip:e._tooltip,legend:e._legend,eventTrigger:e._eventTrigger})},_getTrackerSettings:function(){return this._getSelectionModes()},_getSelectionModes:function(){var e=this._themeManager;return{seriesSelectionMode:e.getOptions("seriesSelectionMode"),pointSelectionMode:e.getOptions("pointSelectionMode")}},_updateTracker:function(e){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},e)},_createCanvasFromRect:function(e){var t=this._canvas;return H({left:e[0],top:e[1],right:t.width-e[2],bottom:t.height-e[3],width:t.width,height:t.height})},_doRender:function(e){var t,n,i=this;if(0!==i._canvas.width||0!==i._canvas.height){i._resetIsReady(),n=(t=i._prepareDrawOptions(e)).recreateCanvas,i.__originalCanvas=i._canvas,i._canvas=m({},i._canvas),n?i.__currentCanvas=i._canvas:i._canvas=i.__currentCanvas,n&&i._updateCanvasClipRect(i._canvas),this._canvas=this._createCanvasFromRect(this._rect),i._renderer.stopAllAnimations(!0),i._cleanGroups();var o=new Date;i._renderElements(t),i._lastRenderingTime=new Date-o}},_layoutAxes:p,_renderElements:function(e){var t,n,i,o=this,a=o._prepareToRender(e),r=o._isRotated(),s=o._isLegendInside(),l=[];m({},o._canvas),o._renderer.lock(),e.drawLegend&&o._legend&&o._legendGroup.linkAppend(),o.layoutManager.setOptions(o._layoutManagerOptions());var u=o._getLayoutTargets();this._layoutAxes(function(t){var n=t?m({},e,{animate:!1}):e,i=o._renderAxes(n,a);o._shrinkAxes(t,i)}),o._applyClipRects(a),o._appendSeriesGroups(),o._createCrosshairCursor(),u.forEach(function(e){var t=e.canvas;l.push({left:t.left,right:t.width-t.right,top:t.top,bottom:t.height-t.bottom})}),o._scrollBar&&("discrete"===(t=o._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&t.categories&&t.categories.length<=1||"discrete"!==t.axisType&&t.min===t.max?n=i=void 0:(n=t.minVisible,i=t.maxVisible),o._scrollBar.init(t,!o._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(n,i)),o._updateTracker(l),o._updateLegendPosition(e,s),o._applyPointMarkersAutoHiding(),o._renderSeries(e,r,s),o._renderer.unlock()},_createCrosshairCursor:p,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(e,t,n){this._calculateSeriesLayout(e,t),this._renderSeriesElements(e,t,n)},_calculateSeriesLayout:function(e,t){e.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(e)},_renderSeriesElements:function(e,t,n){var i,o,a=this,r=a.series,s=r.length,l=a._themeManager.getOptions("resolveLabelOverlapping");for(i=0;i=0&&n.3)&&(i=.3),t.textOpacity=.3),t.states={hover:n.hover,selection:n.selection,normal:F({},n.normal,{opacity:i})},t})},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],id:e.index,visible:!0},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(e){var t=this;t.series&&(L(e)?(t.series[e].dispose(),t.series.splice(e,1)):(M(t.series,function(e,t){return t.dispose()}),t.series.length=0)),t.series&&t.series.length||(t.series=[])},_disposeSeriesFamilies:function(){var e=this;M(e.seriesFamilies||[],function(e,t){t.dispose()}),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_simulateOptionChange:function(e,t,n){var i=this;b.compileSetter(e)(i._options,t,{functionsAsIs:!0,merge:!i._getOptionsByReference()[e]}),i._notifyOptionChanged(e,t,n),i._changes.reset()},_optionChanged:function(e){this._themeManager.resetOptions(e.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var e=this;e._themeManager.update(e._options),e.callBase.apply(e,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",useAggregation:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","CHART_TOOLTIP","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(E)},_change_FORCE_RENDER:function(){this._processRefreshData(E)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(E)},_change_CHART_TOOLTIP:function(){this._organizeStackPoints()},_change_REINIT:function(){this._processRefreshData(D)},_refreshSeries:function(e){this.needToPopulateSeries=!0,this._requestChange([e])},_change_CORRECT_AXIS:function(){this._correctAxes()},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t,n;t=Math.max(e.width-e.left-e.right,0),n=Math.max(e.height-e.top-e.bottom,0),this._canvasClipRect.attr({x:e.left,y:e.top,width:t,height:n}),this._backgroundRect.attr({x:e.left,y:e.top,width:t,height:n})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(e){e.createPoints(!1)},_handleSeriesDataUpdated:function(){var e=this;this._getVisibleSeries().some(function(e){return e.useAggregation()})&&this._populateMarginOptions(),this.series.forEach(function(t){return e._processSingleSeries(t)},this)},_dataSpecificInit:function(e){var t=this;t.series&&!t.needToPopulateSeries||(t.series=t._populateSeries()),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._tracker.updateSeries(t.series,this._changes.has("INIT")),t._updateLegend(),e&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e,t=this,n=t._themeManager,i=t._dataSourceItems(),o=n.getOptions("dataPrepareSettings");n.getOptions("seriesTemplate")&&t._populateSeries(i),t._groupSeries(),e=C.validateData(i,t._groupsData,t._incidentOccurred,o),n.resetPalette(),t.series.forEach(function(t){t.updateData(e[t.getArgumentField()])}),t._handleSeriesDataUpdated(),t._organizeStackPoints()},_organizeStackPoints:function(){var e=this,t=e._themeManager.getOptions("tooltip").shared,n={};M(e.series||[],function(i,o){e._resetStackPoints(o),t&&e._prepareStackPoints(o,n)})},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&(M(e.series,function(e,n){t=t&&n.canRenderCompleteHandle()}),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_dataIsReady:function(){return L(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions:function(e){for(var t=this,n=t._themeManager,i=n.getOptions("seriesTemplate"),o=i?B.processSeriesTemplate(i,e||[]):t.option("series"),a=V(o)?o:o?[o]:[],r=t._getExtraOptions(),s=void 0,l=void 0,u=[],c=function(e){t._specialProcessSeries(),t._populateBusinessRange(e&&e.getValueAxis()),t._renderer.stopAllAnimations(!0),t._updateLegend(),t._requestChange(["FULL_RENDER"])},d=0;d0&&t._disposeSeriesFamilies(),t._themeManager.resetPalette();var s=function(e){t.series.forEach(function(t){t.notify(e)})};return M(n,function(e,n){var o=n.options,r={commonSeriesModes:t._getSelectionModes(),argumentAxis:t.getArgumentAxis(),valueAxis:t._getValueAxis(o.pane,o.axis)};n.series?(a=n.series).updateOptions(o,r):a=new k.Series(F({renderer:t._renderer,seriesGroup:t._seriesGroup,labelsGroup:t._labelsGroup,eventTrigger:t._eventTrigger,eventPipe:s,incidentOccurred:i},r),o),a.isUpdated?(a.index=t.series.length,t.series.push(a)):i("E2101",[o.type])}),t.series},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(e){var t=null;return M(this.series,function(n,i){if(i.name===e)return t=i,!1}),t},getSeriesByPos:function(e){return(this.series||[])[e]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover:function(){this._tracker.clearHover()},render:function(e){var t=this;return t.__renderOptions=e,t.__forceRender=e&&e.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize:function(){var e=this._layoutManagerOptions();return[e.width,e.height]},_change_REFRESH:function(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER:function(){this._forceRender()},_change_INIT:function(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach(function(e){$.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"}),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","zoomingMode","scrollingMode","stickyHovering"].forEach(function(e){$.prototype._optionChangesMap[e]="FORCE_RENDER"}),["equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach(function(e){$.prototype._optionChangesMap[e]="REFRESH_SERIES_FAMILIES"}),t.overlapping=N,t.BaseChart=$,$.addPlugin(n(97).plugin),$.addPlugin(n(106).plugin),$.addPlugin(n(108).plugin),$.addPlugin(n(121).plugin),$.addPlugin(n(145).plugin);var W=$.prototype._change_TITLE;$.prototype._change_TITLE=function(){W.apply(this,arguments),this._change(["FORCE_RENDER"])};var G=$.prototype._change_TOOLTIP;$.prototype._change_TOOLTIP=function(){G.apply(this,arguments),this._change(["CHART_TOOLTIP"])}},function(e,t,n){function i(e,t){var n=e;return t&&_(t.split("."),function(e,t){return n=n[t]}),n}var o=n(14),a=n(0).extend,r=n(1),s=n(3).each,l=n(167),u=r.isString,c=n(11).parseScalar,d=n(50),h=d.getTheme,p=d.addCacheItem,f=d.removeCacheItem,g=a,_=s;n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),t.BaseThemeManager=o.inherit({ctor:function(e){this._themeSection=e.themeSection,this._fontFields=e.fontFields||[],p(this)},dispose:function(){var e=this;return f(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=h(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=g({},n.font,t.font),e._themeSection&&_(e._themeSection.split("."),function(e,t){n=g(!0,{},n[t])}),e._theme=g(!0,{},n,u(t)?{}:t),e._initializeTheme(),c(e._rtl,e._theme.rtlEnabled)&&g(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return i(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return l.createPalette(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return l.getDiscretePalette(e,t,this._defaultPalette)},createGradientPalette:function(e){return l.getGradientPalette(e,this._defaultPalette)},getAccentColor:function(e){return l.getAccentColor(e,this._defaultPalette)},_initializeTheme:function(){var e=this;_(e._fontFields||[],function(t,n){e._initializeFont(i(e._theme,n))})},_initializeFont:function(e){g(e,this._font,g({},e))}})},function(e,t,n){function i(e){this._options=e}function o(e,t){this._renderElement=e,this._cacheBBox=t}var a=n(4).noop,r=Math.round,s=n(48),l={horizontal:0,vertical:0},u={center:.5,right:1,bottom:1,left:0,top:0};i.prototype={constructor:i,position:function(e){var t=e.of.getLayoutOptions(),n=this.getLayoutOptions(),i=e.at,o=e.my,a=e.offset||l,s=-u[o.horizontal]*n.width+t.x+u[i.horizontal]*t.width+parseInt(a.horizontal),c=-u[o.vertical]*n.height+t.y+u[i.vertical]*t.height+parseInt(a.vertical);this.shift(r(s),r(c))},getLayoutOptions:a};var c=o.prototype=s.clone(i.prototype);c.constructor=o,c.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},c.shift=function(e,t){var n=this.getLayoutOptions();this._renderElement.move(r(e-n.x),r(t-n.y))},t.LayoutElement=i,t.WrapperLayoutElement=o},function(e,t,n){function i(e,t,n){var i=t?function(e,t){return e-t}:function(e,t){return t-e};return e.sort(function(e,t){var o=n(e),a=n(t),r=O(o)?1:0,s=O(a)?1:0;return r&&s?i(o,a):i(r,s)}),e}function o(e,t){var n=[];return e.forEach(function(e){var i=t(e);void 0!==i&&n.push(i)}),n}function a(e,t){var n=e.argumentOptions&&e.argumentOptions.categories;e.groups.forEach(function(e,n){var i=e.valueOptions&&e.valueOptions.categories;i&&(e.valueOptions.categories=o(i,t[n+1]))}),n&&(e.argumentOptions.categories=o(n,t[0]))}function r(e,t,n){return e<=0&&null!==e&&(n("E2004",[t]),e=null),e}function s(e){return e}function l(e,t){var n=t;return t===y||M(e)?n=y:t===b||R(e)?n=b:F(e)&&(n=x),n}function u(e,t,n,i){return e!==y||t!==k&&t!==S&&t!==C||i("E2002"),t===S?S:n||t===w||e===y?w:t===C?C:k}function c(e,t,n,i){var o=e?A(e):s,a=t===S?r:s,l=t!==w?function(e){return isFinite(e)||void 0===e?e:null}:s,u=n?function(e){return null===e?void 0:e}:s;return function(e,t){var n=u(function(e){return a(e,t,i)}(l(o(e))));return void 0===n&&function(e,t,n){e&&n(F(e)||R(e)||M(e)?"E2004":"E2003",[t])}(e,t,i),n}}function d(e,t){var n,i,o,a=t.length,r=D({},e);for(n=0;n=0&&e.slice(i).forEach(function(e){O(e[n])&&(t[n]+=e[n],e[n]=void 0)})}(a=i(e.slice(),!1,function(e){return e[n]}),s,n,"smallValueThreshold"===r?function(e,t,n){var i,o,a=e.length;for(i=0;io));++i);return i}(a,n,o.threshold):o.topCount),s[n]&&e.push(s))}function p(e,t){var n=e-t;return isNaN(n)?O(e)?O(t)?0:-1:1:n}function f(e,t){return e.slice().sort(function(e,n){return p(e[t],n[t])})}function g(e){var t={};return e.forEach(function(e,n){t[e]=n}),function(e,n){return i(e.slice(),!0,function(e){return t[e[n]]})}}function _(e,t,n,i){var o,a={},r=t.argumentAxisType===w,s=r&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e},u=n.sortingMethod;return!s&&B(u)&&(e=function(e,t){return e.slice().sort(t)}(e,u)),r&&(t.categories=function(e,t,n){var i=n?n.slice():[];return t.forEach(function(t){e.forEach(function(e){var n=e[t];O(n)&&function(e,t){return-1===e.map(function(e){return e.valueOf()}).indexOf(t.valueOf())}(i,n)&&i.push(n)})}),i}(e,i,s)),s||!B(u)&&t.argumentType===y&&!n._skipArgumentSorting?l=g(t.categories):!0===u&&t.argumentType!==y&&(l=f,o=r),i.forEach(function(t){a[t]=l(e,t)}),o&&(t.categories=t.categories.sort(p)),a}function m(e,t,n){var i,o=[],a=[],r=t.argumentOptions&&E(t.argumentOptions.argumentType);t.groups.forEach(function(e){if(e.series.length){var n=e.valueOptions&&E(e.valueOptions.valueType);e.valueType=n,t.argumentType=r,!n&&o.push(e),!r&&a.push(e)}}),(o.length||a.length)&&(i=o.map(function(e,t){return t}),e.some(function(e){var r;if(o.forEach(function(t,n){(function(e,t){return e.series.forEach(function(n){n.getValueFields().forEach(function(n){e.valueType=l(t[n],e.valueType)})}),e.valueType})(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)}),r||a.forEach(function(n){r=function(e,t,n){return e.forEach(function(e){n.argumentType=l(t[e.getArgumentField()],n.argumentType)}),n.argumentType}(n.series,e,t)}),!n&&r&&0===i.length)return!0}))}var v=n(1),y="string",x="numeric",b="datetime",w="discrete",C="semidiscrete",k="continuous",S="logarithmic",I="valueType",T="argumentType",D=n(0).extend,E=n(11).enumParser([y,x,b]),A=n(264).getParser,O=v.isDefined,B=v.isFunction,P=Array.isArray,M=v.isString,R=v.isDate,F=v.isNumeric,V=v.isObject;t.validateData=function(e,t,n,i){return e=function(e,t){var n,i,o,a,r=[],s=O(e),l=s&&!P(e);if(s&&!l)for(n=0,i=e.length,o=0;n1&&!!e)},_createPoints:function(){var e,t=this,n=t.pointsByArgument||{},i=t._getData();t.pointsByArgument={},t._calculateErrorBars(i);var o={};for(var a in e=i.reduce(function(e,i){if(t._checkData(i,o)){var a=e.length,r=t._getOldPoint(i,n,a),s=t._createPoint(i,a,r);e.push(s)}return e},[]),o)o[a]===i.length&&t._incidentOccurred("W2002",[t.name,a]);Object.keys(n).forEach(function(e){return t._disposePoints(n[e])}),t._points=e},_removeOldSegments:function(){var e=this,t=e._segments.length;d(e._graphics.splice(t,e._graphics.length)||[],function(t,n){e._removeElement(n)}),e._trackers&&d(e._trackers.splice(t,e._trackers.length)||[],function(e,t){t.remove()})},_drawElements:function(e,t,n){var i,o=this,a=o._points||[],r=a[0]&&a[0].hasValue()&&o._options.closed,s={markers:o._markersGroup,errorBars:o._errorBarGroup};o._drawnPoints=[],o._graphics=o._graphics||[],o._segments=[],(i=a.reduce(function(i,a){var r=i[i.length-1];return a.translated&&!n||(a.translate(),!n&&a.setDefaultCoords()),a.hasValue()&&a.hasCoords()?(n&&o._drawPoint({point:a,groups:s,hasAnimation:e,firstDrawing:t}),r.push(a)):a.hasValue()?a.setInvisibility():r.length&&i.push([]),i},[[]])).forEach(function(t,n){t.length&&o._drawSegment(t,e,n,r&&n===this.length-1)},i),o._firstDrawing=!a.length,o._removeOldSegments(),e&&o._animate(t)},draw:function(e,t,n){var i=this,o=i._firstDrawing;return i._legendCallback=n||i._legendCallback,i._visible?(i._appendInGroup(),i._applyVisibleArea(),i._setGroupsSettings(e,o),!o&&i._drawElements(!1,o,!1),i._drawElements(e,o,!0),t&&i.hideLabels(),void(i.isSelected()?i._changeStyle(i.lastSelectionMode,void 0,!0):i.isHovered()&&i._changeStyle(i.lastHoverMode,void 0,!0))):(e=!1,void i._group.remove())},_setLabelGroupSettings:function(e){var t={class:"dxc-labels"};this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!l.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(e,t){var n;if(e)for(n in l.mixins[t][e])delete this[n]},_setType:function(e,t){var n,i=l.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.setView(e)})},_resetPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.resetView(e)})},_resetNearestPoint:function(){var e=this;e._nearestPoint&&null!==e._nearestPoint.series&&e._nearestPoint.resetView(B),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=_(e||t._options.selectionMode),t.fullState=t.fullState|A,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==L&&t.isHovered()&&o(t.lastHoverMode)&&t._resetPointsView(B)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~A,e._changeStyle(e.lastSelectionMode,M),e.lastSelectionMode!==L&&e.isHovered()&&o(e.lastHoverMode)&&e._setPointsView(B)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&_(this._options.hoverMode)!==L},_changeStyle:function(e,t,n){var i=this,a=i.fullState,r=[P,B,M,M];"none"===i.lastHoverMode&&(a&=~O),"none"===i.lastSelectionMode&&(a&=~A),o(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(r[a])),i._legendCallback([V,F,R,R][a]),i._applyStyle(i._styles[r[a]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,o=n.isHovered()&&"nearestpoint"===n.lastHoverMode&&n.getNeighborPoint(e,t);o===i||n.isSelected()&&n.lastSelectionMode!==L||(n._resetNearestPoint(),o&&(o.setView(B),n._nearestPoint=o))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!p(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(e,t){var n,i,o,a,r,s,l=this,u=l._options,d=u.customizePoint,h=u.customizeLabel;h&&h.call&&((n=c({seriesName:l.name},t)).series=l,o=(r=(o=h.call(n,n))&&!g(o))?c(!0,{},u.label,o):null),d&&d.call&&((n=n||c({seriesName:l.name},t)).series=l,s=(a=d.call(n,n))&&!g(a)),(r||s)&&((i=l._parsePointOptions(l._preparePointOptions(a),o||u.label,t,e)).styles.useLabelCustomOptions=r,i.styles.usePointCustomOptions=s,e.updateOptions(i))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged(t)},_updatePointsVisibility:m,hideLabels:function(){d(this._points,function(e,t){t._label.draw(!1)})},_parsePointOptions:function(e,t,n,i){var o=this,a=o._options,r=o._createPointStyles(e,n,i),s=c({},e,{type:a.type,rotated:a.rotated,styles:r,widgetType:a.widgetType,visibilityChanged:a.visibilityChanged});return s.label=function(e,t){var n=e||{},i=c({},n.font)||{},o=n.border||{},a=n.connector||{},r={fill:n.backgroundColor||t,"stroke-width":o.visible&&o.width||0,stroke:o.visible&&o.width?o.color:"none",dashStyle:o.dashStyle},s={stroke:a.visible&&a.width?a.color||t:"none","stroke-width":a.visible&&a.width||0};return i.color="none"===n.backgroundColor&&"#ffffff"===_(i.color)&&"inside"!==n.position?t:i.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,customizeText:u.isFunction(n.customizeText)?n.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:r,position:n.position,connector:s,rotationAngle:n.rotationAngle,wordWrap:n.wordWrap,textOverflow:n.textOverflow}}(t,r.normal.fill),o.areErrorBarsVisible()&&(s.errorBars=a.valueErrorBar),s},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?function(e,t){var n=a(e,t);return n.image=c(!0,{},e.image,t.image),n.selectionStyle=a(e.selectionStyle,t.selectionStyle),n.hoverStyle=a(e.hoverStyle,t.hoverStyle),n}(t,e):t},_getMarkerGroupOptions:function(){return c(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e){var t,n=this.getOptions().aggregation,i=_(n.method),o="custom"===i&&n.calculate;return t=e?function(e){return e.data[0]}:this._aggregators[i]||this._aggregators[this._defaultAggregator],o||t},_resample:function(e,t){var n=e.interval,i=e.ticks,o=this,a=o.argumentAxisType===E||o.valueAxisType===E,r=0,l=this._getPointDataSelector(),u=o.getOptions(),c=function(e,t,n){if(t){var i=function(t){var i=t&&l(t,u);i&&o._checkData(i)&&(i.aggregationInfo=n,e.push(i))};t.length?t.forEach(i):i(t)}},d=this._getAggregationMethod(a);if(a)return t.reduce(function(e,t,i,a){if(e[1].push(t),i===a.length-1||(i+1)%n==0){var r=e[1],l={aggregationInterval:n,data:r.map(s)};c(e[0],d(l,o)),e[1]=[]}return e},[[],[]])[0];for(var h=[],p=1;p=g&&_.push(t[r]),r++;var m={intervalStart:g,intervalEnd:f,aggregationInterval:n,data:_.map(s)};c(h,d(m,o),m)}return o._endUpdateData(),h},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(e){return this._createAllAggregatedPoints(),(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(function(e,t){e.fullState|=A,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:Y,target:e}),this._eventTrigger(N,{target:e}))},deselectPoint:function(e){e.isSelected()&&(function(e,t){e.fullState&=~A,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:X,target:e}),this._eventTrigger(N,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=_(e||t._options.hoverMode),t.fullState=t.fullState|O,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==L),n($,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~O,e._changeStyle(e.lastHoverMode,B,e.isSelected()&&e.lastSelectionMode!==L),t($,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),function(e,t){e.fullState|=O,e.applyView(t)}(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:q,target:e}),t._eventTrigger(W,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some(function(t){return!!t.isHovered()&&(function(e,t){e.fullState&=~O,e.applyView(t),e.releaseHoverState()}(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:K,target:t}),e._eventTrigger(W,{target:t}),!0)})},showPointTooltip:function(e){i(this._extGroups.seriesGroup,"showpointtooltip",e)},hidePointTooltip:function(e){i(this._extGroups.seriesGroup,"hidepointtooltip",e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:U,target:e}),e._group.toForeground(),e._eventTrigger(z,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(z,{target:e}))},getPointsByArg:function(e,t){var n=this,i=e.valueOf(),o=n.pointsByArgument[i];return o||t||!n._createAllAggregatedPoints()||(o=n.pointsByArgument[i]),o||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,o=e.target,a=o.getOptions(),r=_(a.hoverMode),s=_(a.selectionMode);n===q?t._hoverPointHandler(o,r,e.notifyLegend):n===K?t._clearPointHoverHandler(o,r,e.notifyLegend):n===U?o!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===Y?("single"===i.pointSelectionMode&&t.getPoints().some(function(e){return!(e===o||!e.isSelected()||(t.deselectPoint(e),0))}),t._selectPointHandler(o,s)):n===X&&t._deselectPointHandler(o,s)},_selectPointHandler:function(e,t){var n=this;t===G?e.series===n&&n._setPointsView(M,e):t===j&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.setView(M)})},_deselectPointHandler:function(e,t){t===G?e.series===this&&this._resetPointsView(M,e):t===j&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.resetView(M)})},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===j?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.setView(B)}),n&&i._legendCallback(e)):t===G&&e.series===i&&i._setPointsView(B,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===j?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.resetView(B)}),n&&i._legendCallback(e)):t===G&&e.series===i&&i._resetPointsView(B,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;d(e._trackers||[],function(e,t){t.remove()}),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:m,drawTrackers:m,getNeighborPoint:m,areErrorBarsVisible:m,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup:function(){return this._markersGroup},getRenderer:function(){return this._renderer}}},function(e,t,n){function i(e,t){var n,i=1/0;return(0,h.each)(t,function(t,o){var a=e[0]-o[0],r=e[1]-o[1],s=a*a+r*r;s0&&e.stroke&&"none"!==e.stroke)}function l(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function u(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy,this._rowCount=1}var c=n(63),d=n(11),h=n(3),p=n(0),f=Math,g=f.round,_=f.floor,m=f.abs,v={isLabelInside:function(e,t){var n=e.x+e.width/2,i=e.y+e.height/2;return t.x<=n&&n<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(e,t,n,i,a){var r=t.x,s=r+t.width/2,l=r+t.width-1,u=t.y,c=u+t.height/2,d=u+t.height-1,h=m(i)%90==0;return a[0]>r&&a[0]u&&a[1]t.x+t.width||e.x+e.widtht.x+t.r||e.x+e.width=u&&u>=s||o<=u&&u<=s)&&e.push([(u-o)*(a-i)/(s-o)+i,u]):(i>=r&&r>=a||i<=r&&r<=a)&&e.push([r,(r-i)*(s-o)/(a-i)+o]),e},[])},isHorizontal:function(e,t){return e.x>t.x||t.x>e.x+e.width},getFigureCenter:y.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],o=g(e.x+(e.y-t[1])/Math.tan((0,d.degreesToRadians)(e.angle))),a=[e.x,e.y,o,t[1]];return e.x<=o&&o<=i||i<=o&&o<=e.x||(m(e.x-i)<12?a=[e.x,e.y]:e.x<=i?a[2]=e.x+12:a[2]=e.x-12),a},adjustPoints:function(e){return e}};u.prototype={constructor:u,setColor:function(e){this._color=e},setOptions:function(e){this._options=e},setData:function(e){this._data=e},setDataField:function(e,t){this._data=this._data||{},this._data[e]=t},getData:function(){return this._data},setFigureToDrawConnector:function(e){this._figure=e},dispose:function(){var e=this;r(e,"_group"),e._data=e._options=e._textContent=e._visible=e._insideGroup=e._text=e._background=e._connector=e._figure=null},_setVisibility:function(e,t){this._group&&this._group.attr({visibility:e}),this._visible=t},isVisible:function(){return this._visible},hide:function(e){this._holdVisibility=!!e,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(e){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!e,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var e=this,t=e._renderer,n=e._container,i=e._options||{},o=e._textContent=function(e,t){var n=t.format;return e.valueText=(0,c.format)(e.value,n),e.argumentText=(0,c.format)(e.argument,t.argumentFormat),void 0!==e.percent&&(e.percentText=(0,c.format)(e.percent,{type:"percent",precision:n&&n.percentPrecision})),void 0!==e.total&&(e.totalText=(0,c.format)(e.total,n)),void 0!==e.openValue&&(e.openValueText=(0,c.format)(e.openValue,n)),void 0!==e.closeValue&&(e.closeValueText=(0,c.format)(e.closeValue,n)),void 0!==e.lowValue&&(e.lowValueText=(0,c.format)(e.lowValue,n)),void 0!==e.highValue&&(e.highValueText=(0,c.format)(e.highValue,n)),void 0!==e.reductionValue&&(e.reductionValueText=(0,c.format)(e.reductionValue,n)),t.customizeText?t.customizeText.call(e,e):e.valueText}(e._data,e._options)||null;o?(e._group||(e._group=t.g().append(n),e._insideGroup=t.g().append(e._group),e._text=t.text("",0,0).append(e._insideGroup)),e._text.css(i.attributes?(0,d.patchFontOptions)(i.attributes.font):{}),s(i.background)?(e._background=e._background||t.rect().append(e._insideGroup).toBackground(),e._background.attr(i.background),e._color&&e._background.attr({fill:e._color})):r(e,"_background"),l(i.connector)?(e._connector=e._connector||t.path([],"line").sharp().append(e._group).toBackground(),e._connector.attr(i.connector),e._color&&e._connector.attr({stroke:e._color})):r(e,"_connector"),e._text.attr({text:o,align:i.textAlignment}),e._updateBackground(e._text.getBBox()),e._setVisibility("visible",!0),e._drawn=!0):e._hide()},_getLabelVisibility:function(e){return this._holdVisibility?this.isVisible():e},draw:function(e){return this._getLabelVisibility(e)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(e){var t=this;t._background&&(e.x-=8,e.y-=4,e.width+=16,e.height+=8,t._background.attr(e)),t._bBoxWithoutRotation=(0,p.extend)({},e);var n=t._options.rotationAngle||0;t._insideGroup.rotate(n,e.x+e.width/2,e.y+e.height/2),e=(0,d.rotateBBox)(e,[e.x+e.width/2,e.y+e.height/2],-n),t._bBox=e},getFigureCenter:function(){var e=this._figure;return(this._strategy||a(e)).getFigureCenter(e)},_getConnectorPoints:function(){var e,t,n=this,o=n._figure,r=n._options,s=n._strategy||a(o),l=n._shiftBBox(n._bBoxWithoutRotation),u=n.getBoundingRect(),c=[];if(!s.isLabelInside(l,o,"inside"!==r.position)){t=s.isHorizontal(l,o);var d=n.getFigureCenter();e=i(d,c=s.prepareLabelPoints(l,u,t,-r.rotationAngle||0,d)),c=(c=s.findFigurePoint(o,e,t)).concat(e)}return s.adjustPoints(c)},fit:function(e){var t=this._background?16:0,n=!1;if(this._text){var i=this._text.setMaxSize(e-t,void 0,this._options),o=i.rowCount,a=i.textIsEmpty;0===o&&(o=1),o!==this._rowCount&&(n=!0,this._rowCount=o),a&&r(this,"_background")}return this._updateBackground(this._text.getBBox()),n},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(e){this._text.data({"chart-data-point":e}),this._background&&this._background.data({"chart-data-point":e})},hideInsideLabel:function(e){return this._point.hideInsideLabel(this,e)},getPoint:function(){return this._point},shift:function(e,t){var n=this;return n._textContent&&(n._insideGroup.attr({translateX:n._x=g(e-n._bBox.x),translateY:n._y=g(t-n._bBox.y)}),n._connector&&n._connector.attr({points:n._getConnectorPoints()})),n},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(e){return this._textContent?{x:e.x+this._x,y:e.y+this._y,width:e.width,height:e.height}:{}},getLayoutOptions:function(){var e=this._options;return{alignment:e.alignment,background:s(e.background),horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,position:e.position,connectorOffset:(l(e.connector)?12:0)+(s(e.background)?8:0)}}},t.Label=u},function(e,t,n){function i(e,t,n){e.min=e.minn?e.max:n}function o(e,t){return e===g?function(e,t,n){t!==n&&e.categories.push(n),e.categories.push(t)}:t?function(e,n){var o=t.calculateInterval(n,e.prevValue),a=e.interval;e.interval=(a=0||e.type.toLowerCase().indexOf("area")>=0}function u(t){var n,i=o(t.valueAxisType),a=t.getArgumentAxis(),r=a&&t.getArgumentAxis().visualRange()||{},u=l(t)?s:f;if(a&&a.getMarginOptions().checkInterval){var c=t.getArgumentAxis().getTranslator().getBusinessRange(),d=h(c,!1),g=c.interval;isFinite(g)&&p(r.startValue)&&p(r.endValue)&&(r.startValue=d(r.startValue,g,-1),r.endValue=d(r.endValue,g))}return n=e.exports.getViewPortFilter(r),function(e,t,o,a){var s=t.argument;return t.hasValue()?(n(s)?(e.startCalc||(e.startCalc=!0,u(i,e,t,a[o-1],r.startValue)),i(e,t.getMinValue(),t.getMaxValue())):!r.categories&&p(r.startValue)&&s>r.startValue&&(e.startCalc||u(i,e,t,a[o-1],r.startValue),e.endCalc=!0,u(i,e,t,a[o-1],r.endValue)),e):e}}var c=n(11),d=c.unique,h=c.getAddFunction,p=n(1).isDefined,f=n(4).noop,g="discrete";e.exports={getViewPortFilter:function(e){if(e.categories){var t=e.categories.reduce(function(e,t){return e[t.valueOf()]=!0,e},{});return function(e){return t[e.valueOf()]}}return p(e.startValue)||p(e.endValue)?p(e.endValue)?p(e.startValue)?function(t){return t>=e.startValue&&t<=e.endValue}:function(t){return t<=e.endValue}:function(t){return t>=e.startValue}:function(){return!0}},getArgumentRange:function(e){var t=e._data||[],n={};if(t.length)if(e.argumentAxisType===g)n={categories:t.map(function(e){return e.argument})};else{var i=void 0;if(t.length>1){var o=e.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),a=e.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=Math.min(o,a)}n={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return n},getRangeData:function(e){var t=e.getPoints(),n=e.useAggregation(),i=o(e.argumentAxisType,t.length>1&&e.getArgumentAxis()),s=o(e.valueAxisType),l=u(e),c=t.reduce(function(e,t,n,o){var a=t.argument;return i(e.arg,a,a),t.hasValue()&&(s(e.val,t.getMinValue(),t.getMaxValue()),l(e.viewport,t,n,o)),e},{arg:a(e.argumentAxisType,e.argumentType,t.length?t[0].argument:void 0),val:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),viewport:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0)});if(n){var d=this.getArgumentRange(e);if(e.argumentAxisType===g)c.arg=d;else{var h=e.getArgumentAxis().getViewport();(p(h.startValue)||p(h.length))&&i(c.arg,d.min,d.min),(p(h.endValue)||p(h.length)&&p(h.startValue))&&i(c.arg,d.max,d.max)}}return r(c.arg),r(c.val),c},getViewport:function(e){var t,n,i=e.getPoints();return t=u(e),n=a(e.valueAxisType,e.valueType,i.length?e.getValueRangeInitialValue():void 0),i.some(function(e,o){return t(n,e,o,i),n.endCalc}),n},getPointsInViewPort:function(e){var t=this.getViewPortFilter(e.getArgumentAxis().visualRange()||{}),n=e.getValueAxis().visualRange()||{},i=this.getViewPortFilter(n),o=e.getPoints(),a=function(e,t,o){var a=t.getMinValue(),r=t.getMaxValue(),s=i(a),l=i(r);s&&e.push(a),r!==a&&l&&e.push(r),!o||s||l||(e.length?e.push(n.endValue):e.push(n.startValue))},r=l(e)?function(e,n,i){var o=n[i],r=n[i-1],s=n[i+1];s&&t(s.argument)&&a(e[1],o,!0),r&&t(r.argument)&&a(e[1],o,!0)}:f;return o.reduce(function(e,n,i){return t(n.argument)?a(e[0],n):r(e,o,i),e},[[],[]])}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,i,o){return A.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:o(e.axisDivisionFactor||ae),minorAxisDivisionFactor:o(e.minorAxisDivisionFactor||re),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:e.workWeek&&e.workWeek[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function r(e,t,n){var i=e.getOptions();return(0,P.tick)(e,t,i.tick,i.grid,n,!1)}function s(e,t){var n=e.getOptions();return(0,P.tick)(e,t,n.minorTick,n.minorGrid)}function l(e,t,n){var i=e.getOptions();return(0,P.tick)(e,t,(0,I.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function u(e,t,n,i){(e||[]).forEach(function(e){return e[t](n,i)})}function c(e){u(e,"initCoords")}function d(e,t){u(e,"drawMark",t)}function h(e,t){u(e,"drawGrid",t)}function p(e,t,n){u(e,"updateTickPosition",t,n)}function f(e,t){u(e,"updateGridPosition",t)}function g(e){e.forEach(function(e){e.labelBBox=e.label?e.label.getBBox():{x:0,y:0,width:0,height:0}})}function _(e){for(var t=e.length-1;t>=0&&m(e,t);t--);for(t=0;t1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},getAxisSharpDirection:function(){var e=this._options.position;return e===X||e===Q?1:-1},getSharpDirectionByCoords:function(e){var t=this._getCanvasStartEnd(),n=Math.max(t.start,t.end);return this.getRadius?0:n!==e[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return i.points?e._createPathElement(i.points,n,e.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(e){var t=this,n=this._isHorizontal,i=n?"x":"y",o=this._orthogonalPositions,a=o.start,r=o.end,s=t.borderOptions,l=n?Q:X,u=n?J:Z,c=t.getCanvas(),d={left:c.left,right:c.width-c.right,top:c.top,bottom:c.height-c.bottom},h=4+(s.visible&&s[l]?d[l]:void 0),p=(s.visible&&s[u]?d[u]:void 0)-4;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]p?{points:null}:{points:n?null!==e[i]?[e[i],a,e[i],r]:null:null!==e[i]?[a,e[i],r,e[i]]:null}},_getConstantLinePos:function(e,t,n){var i=this._getTranslatedCoord(e);if(!(!(0,k.isDefined)(i)||iq(t,n)))return i},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t,function(e,t){return Math.max(t.start,t.end)!==e?1:-1}(e,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(e,t,n,i,o){var a=this._options.label;return this._renderer.text(e,t,n).css($((0,I.extend)({},a.font,i.font))).attr({align:"center"}).append(o)},_drawConstantLineLabels:function(e,t,n,i){var o,a=this,r=t.text,s=a._options.label;return a._checkAlignmentConstantLineLabels(t),r=(0,k.isDefined)(r)?r:a.formatLabel(e,s),o=a._getConstantLineLabelsCoords(n,t),a._drawConstantLineLabelText(r,o.x,o.y,t,i)},_getStripPos:function(e,t,n,i,o){var a,r,s,l,u,c=!(!o.minVisible&&!o.maxVisible),d=(o.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]),h=o.minVisible;if(!c&&(0,k.isDefined)(e)&&(0,k.isDefined)(t)){if(l=(0,T.inArray)(e.valueOf(),d),u=(0,T.inArray)(t.valueOf(),d),-1===l||-1===u)return{from:0,to:0};l>u&&(s=t,t=e,e=s)}return(0,k.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1),!(0,k.isDefined)(a)&&c&&(a=eh?i:n)):r=i,aa.startValue));var c=l?r.startValue:s.minVisible,d=u?r.endValue:s.maxVisible;i?(o=C.default.getCategoriesInfo(o,a.startValue,a.endValue).categories,s.categories=o):(s.min=(0,k.isDefined)(a.startValue)?a.startValue:s.min,s.max=(0,k.isDefined)(a.endValue)?a.endValue:s.max);var h=C.default.adjustVisualRange({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:l?r.startValue:void 0,endValue:u?r.endValue:void 0,length:r.length},{categories:o,min:a.startValue,max:a.endValue},{categories:o,min:c,max:d});return s.minVisible=h.startValue,s.maxVisible=h.endValue,!(0,k.isDefined)(s.min)&&(s.min=s.minVisible),!(0,k.isDefined)(s.max)&&(s.max=s.maxVisible),s.addRange({}),s},adjustRange:function(e){e=e||{};var t=this._options.type===S.default.discrete;if(this._options.type===S.default.logarithmic&&(e.startValue=e.startValue<=0?null:e.startValue,e.endValue=e.endValue<=0?null:e.endValue),!t&&(0,k.isDefined)(e.startValue)&&(0,k.isDefined)(e.endValue)&&e.startValue>e.endValue){var n=e.endValue;e.endValue=e.startValue,e.startValue=n}return e},_getVisualRangeUpdateMode:function(e,t,n){var i=this._options.visualRangeUpdateMode,o=this._translator,a=o.getBusinessRange();if(this.isArgumentAxis){if(-1===[ne,te,ie].indexOf(i))if(a.axisType===S.default.discrete){var r=a.categories,s=t.categories,l=this.visualRange();i=r&&s&&r.length&&-1!==s.map(function(e){return e.valueOf()}).join(",").indexOf(r.map(function(e){return e.valueOf()}).join(","))&&(l.startValue.valueOf()!==r[0].valueOf()||l.endValue.valueOf()!==r[r.length-1].valueOf())?te:ie}else{var u=o.translate(a.min),c=o.translate(e.startValue),d=o.translate(a.max),h=o.translate(e.endValue);i=u===c&&d===h?ie:u!==c&&d===h?ne:te}}else-1===[te,ie].indexOf(i)&&(i=n===te?te:ie);return i},_handleBusinessRangeChanged:function(e,t){var n=this,i=this.visualRange();if(!t&&!n._translator.getBusinessRange().isEmpty()){var o=n._lastVisualRangeUpdateMode=n._getVisualRangeUpdateMode(i,n._seriesData,e);if(!n.isArgumentAxis){var a=n.getViewport();(0,k.isDefined)(a.startValue)||(0,k.isDefined)(a.endValue)||(0,k.isDefined)(a.length)||(o=ie)}n._prevDataWasEmpty&&(o=te),o===te&&n._setVisualRange([i.startValue,i.endValue]),o===ie&&n._setVisualRange([null,null]),o===ne&&n._setVisualRange({length:n.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t=e||this._translator.getBusinessRange(),n=this._options,i=n.type,o=n.logarithmBase,a=void 0;if(i===S.default.logarithmic)a=(0,M.adjust)(C.default.getLog(t.maxVisible/t.minVisible,o));else if(i===S.default.discrete){a=C.default.getCategoriesInfo(t.categories,t.minVisible,t.maxVisible).categories.length}else a=t.maxVisible-t.minVisible;return a},getVisualRangeCenter:function(e){var t=this._translator.getBusinessRange(),n=e||t,i=this._options,o=i.type,a=i.logarithmBase,r=void 0;if((0,k.isDefined)(n.minVisible)&&(0,k.isDefined)(n.maxVisible)){if(o===S.default.logarithmic)r=C.default.raiseTo((0,M.adjust)(C.default.getLog(n.maxVisible*n.minVisible,a))/2,a);else if(o===S.default.discrete){var s=C.default.getCategoriesInfo(n.categories,n.minVisible,n.maxVisible),l=Math.ceil(s.categories.length/2)-1;r=t.categories.indexOf(s.categories[l])}else r=(n.maxVisible.valueOf()+n.minVisible.valueOf())/2;return r}},setBusinessRange:function(e,t,n){var i=this,o=i._options,a=o.type===S.default.discrete;i._seriesData=new B.Range(e);var r=i._seriesData.isEmpty();if(i._handleBusinessRangeChanged(n,t),i._prevDataWasEmpty=r,i._seriesData.addRange({categories:o.categories,dataType:o.dataType,axisType:o.type,base:o.logarithmBase,invert:o.inverted}),!a){if(!(0,k.isDefined)(i._seriesData.min)&&!(0,k.isDefined)(i._seriesData.max)){var s=i.getViewport();s&&i._seriesData.addRange({min:s.startValue,max:s.endValue})}var l=o.synchronizedValue;(0,k.isDefined)(l)&&i._seriesData.addRange({min:l,max:l})}i._seriesData.minVisible=void 0===i._seriesData.minVisible?i._seriesData.min:i._seriesData.minVisible,i._seriesData.maxVisible=void 0===i._seriesData.maxVisible?i._seriesData.max:i._seriesData.maxVisible,!i.isArgumentAxis&&o.showZero&&i._seriesData.correctValueZeroLevel(),i._seriesData.sortCategories(i.getCategoriesSorter()),i._seriesData.breaks=i._breaks=i._getScaleBreaks(o,i._seriesData,i._series,i.isArgumentAxis),i._translator.updateBusinessRange(i.adjustViewport(i._seriesData))},_addConstantLinesToRange:function(e,t,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(function(i){if(i.options.extendAxis){var a,r=i.getParsedValue();e.addRange((o(a={},t,r),o(a,n,r),a))}})},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,o=e._axisPosition;return n===X||n===Q?o-i:o+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,k.isDefined)(e)?this.formatLabel(e,(0,I.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,o=n._options,a=o.customBoundTicks,r=t.minVisible,s=t.maxVisible,l=o.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},u=[];return o.type===S.default.discrete?n._tickOffset&&0!==e.length&&(u=[e[0],e[e.length-1]]):a?(l.min&&(0,k.isDefined)(a[0])&&u.push(a[0]),l.max&&(0,k.isDefined)(a[1])&&u.push(a[1])):(l.min&&(0===i||e[0]>r)&&u.push(r),l.max&&(0===i||e[i-1]a.max?a.max:y,n._getScaleBreaks(i,{minVisible:v,maxVisible:y},n._series,n.isArgumentAxis)).ticks}}return n._aggregationInterval=f,{interval:f,ticks:u}},createTicks:function(e){var t,n,i,o=this,a=o._renderer,u=o._options;if(e){o._isSynchronized=!1,o.updateCanvas(e),o._estimatedTickInterval=o._getTicks(o.adjustViewport(this._seriesData),F.noop,!0).tickInterval,i=o._getViewportRange();var c=this._calculateValueMargins();i.addRange({minVisible:c.minValue,maxVisible:c.maxValue,isSpacedMargin:c.isSpacedMargin,checkMinDataVisibility:!this.isArgumentAxis&&c.checkInterval&&!(0,k.isDefined)(u.min)&&c.minValue.valueOf()>0,checkMaxDataVisibility:!this.isArgumentAxis&&c.checkInterval&&!(0,k.isDefined)(u.max)&&c.maxValue.valueOf()<0}),t=o._createTicksAndLabelFormat(i),n=o._getBoundaryTicks(t.ticks,o._getViewportRange()),u.showCustomBoundaryTicks&&n.length?(o._boundaryTicks=[n[0]].map(l(o,a,!0)),n.length>1&&(o._boundaryTicks=o._boundaryTicks.concat([n[1]].map(l(o,a,!1))))):o._boundaryTicks=[];var d=(t.minorTicks||[]).filter(function(e){return!n.some(function(t){return y(t)===y(e)})});o._tickInterval=t.tickInterval,o._minorTickInterval=t.minorTickInterval;var h=o._majorTicks||[],p=h.reduce(function(e,t){return e[t.value.valueOf()]=t,e},{}),f=(0,k.type)(t.ticks[0])===(0,k.type)(h[0]&&h[0].value),g=o._getSkippedCategory(t.ticks),_=t.ticks.map(function(e){var t=p[e.valueOf()];return t&&f?(delete p[e.valueOf()],t.setSkippedCategory(g),t):r(o,a,g)(e)});o._majorTicks=_;var m=o._minorTicks||[];o._minorTicks=d.map(function(e,t){var n=m[t];return n?(n.updateValue(e),n):s(o,a)(e)}),o._ticksToRemove=Object.keys(p).map(function(e){return p[e]}).concat(m.slice(o._minorTicks.length,m.length)),o._correctedBreaks=t.breaks,o._reinitTranslator(o._getViewportRange())}},_reinitTranslator:function(e){var t=this,n=t._translator;t._correctedBreaks&&(e.breaks=t._correctedBreaks),t._isSynchronized||n.updateBusinessRange(t.adjustViewport(e))},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(e){this._marginOptions=e},getMarginOptions:function(){return(0,k.isDefined)(this._marginOptions)?this._marginOptions:{}},allowToExtendVisualRange:function(e){var t=this.adjustRange(W(this._options.wholeRange)),n=e?t.endValue:t.startValue;return!this.isArgumentAxis||!(0,k.isDefined)(n)&&this.isExtremePosition(e)},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,k.isDefined)(e)&&n.push(t?(0,R.dateToMilliseconds)(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,k.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(K.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*se,i=le-n;if(n!==e&&i=e?se:e-i*o}else i>=e&&e>se&&(e=se)}return e},_calculateValueMargins:function(e){function t(e){var t=h.ratioOfCanvasRange();return t/(t*u/(e+u))}function n(e,n){var i=j(I.start-e),o=j(I.end-n),a=t(i+o);g=i/a,_=o/a}this._resetMargins();var i=this,o=i.getMarginOptions(),a=(o.size||0)/2,r=i._options,s=this._getViewportRange(),l=this.getViewport(),u=i._getScreenDelta(),c=-1!==(r.type||"").indexOf(S.default.discrete),d=r.valueMarginsEnabled&&!c,h=i._translator,p=r.minValueMargin,f=r.maxValueMargin,g=0,_=0,m=0,v=void 0;if(s.stubData||!u)return{startPadding:0,endPadding:0};if(i.isArgumentAxis&&o.checkInterval)if(v=i._calculateRangeInterval(s.interval),isFinite(v)){var y=h.getInterval(v);m=Math.ceil(y/(2*t(y)))}else v=0;var x=void 0,b=void 0,w=.8*u/2;d&&((0,k.isDefined)(p)?x=isFinite(p)?p:0:(g=Math.max(a,m),g=Math.min(w,g)),(0,k.isDefined)(f)?b=isFinite(f)?f:0:(_=Math.max(a,m),_=Math.min(w,_)));var C=o.percentStick&&!this.isArgumentAxis;C&&1===j(s.max)&&(b=_=0),C&&1===j(s.min)&&(x=g=0);var I=i._getCanvasStartEnd(),T=(u-g-_)/(1+(x||0)+(b||0))||u;void 0===x&&void 0===b||(void 0!==x&&(g=T*x),void 0!==b&&(_=T*b));var D=void 0,E=void 0;if(r.type!==S.default.discrete&&e&&e.length>1&&!r.skipViewportExtending&&!l.action&&!1!==r.endOnTick){var A=e.length,O=h.translate(e[0].value),B=h.translate(e[A-1].value),P=O>B?-1:1,M=q(P*(I.start-O),0),R=q(P*(B-I.end),0);if(M>g||R>_){var F=t(R+M);M>=g&&(D=e[0].value),R>=_&&(E=e[A-1].value),g=q(M,g)/F,_=q(R,_)/F}}return x=void 0===x?g/T:x,b=void 0===b?_/T:b,c||(this._translator.isInverted()?(D=(0,k.isDefined)(D)?D:h.from(I.start+u*x,-1),E=(0,k.isDefined)(E)?E:h.from(I.end-u*b,1)):(D=(0,k.isDefined)(D)?D:h.from(I.start-u*x,-1),E=(0,k.isDefined)(E)?E:h.from(I.end+u*b,1))),i.isArgumentAxis||(D*s.min<=0&&D*s.minVisible<=0&&(n(h.translate(0),h.translate(E)),D=0),E*s.max<=0&&E*s.maxVisible<=0&&(n(h.translate(D),h.translate(0)),E=0)),{startPadding:this._translator.isInverted()?_:g,endPadding:this._translator.isInverted()?g:_,minValue:D,maxValue:E,interval:v,isSpacedMargin:g===_&&0!==g}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,I.extend)({},this._canvas,{startPadding:e.startPadding,endPadding:e.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(e.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:e.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){var e=this,t=(this._options.constantLines||[]).map(function(t){return(0,H.default)(e,t)});this._outsideConstantLines=t.filter(function(e){return"outside"===e.labelPosition}),this._insideConstantLines=t.filter(function(e){return"inside"===e.labelPosition})},draw:function(e,t){var n=this,i=this._options;n.borderOptions=t||{visible:!1},n._resetMargins(),n.createTicks(e),n.applyMargins(),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._axisGroup.append(n._axesContainerGroup),n._drawAxis(),n._drawTitle(),d(n._majorTicks,i.tick),d(n._minorTicks,i.minorTick),d(n._boundaryTicks,i.tick);var o=n._getGridLineDrawer();h(n._majorTicks,o),h(n._minorTicks,o),u(n._majorTicks,"drawLabel",n._getViewportRange()),n._majorTicks.forEach(function(e){e.labelRotationAngle=0,e.labelAlignment=void 0,e.labelOffset=0}),u(n._outsideConstantLines.concat(n._insideConstantLines),"draw"),u(n._strips,"draw"),n._dateMarkers=n._drawDateMarkers()||[],n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.above.inside.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside1.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside2.append(n._constantLinesGroup.above),n._axisConstantLineGroups.under.inside.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside1.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside2.append(n._constantLinesGroup.under)),n._measureTitle(),g(n._majorTicks);var a=void 0,r=void 0,s=void 0,l=n._tickInterval;(0,k.isDefined)(l)&&(s=n.getTranslator().getInterval("datetime"===i.dataType?(0,R.dateToMilliseconds)(l):l)),n._isHorizontal?(a=s,r=i.placeholderSize):(a=i.placeholderSize,r=s);var p=n._validateDisplayMode(i.label.displayMode),f=n._validateOverlappingMode(i.label.overlappingBehavior,p),_=i.label.wordWrap||"none",m=i.label.textOverflow||"none";if(("none"!==_||"none"!==m)&&p!==oe&&f!==oe&&"auto"!==f){var v=!1,y=!1;a&&n._majorTicks.some(function(e){return e.labelBBox.width>a})&&(v=!0),r&&n._majorTicks.some(function(e){return e.labelBBox.height>r})&&(y=!0),(v||y)&&(n._majorTicks.forEach(function(e){e.label&&e.label.setMaxSize(a,r,i.label)}),g(n._majorTicks))}g(n._outsideConstantLines),g(n._insideConstantLines),g(n._strips),g(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var x=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),x=n._adjustLabels(x)),x=n._adjustDateMarkers(x),n._adjustTitle(x)},_measureTitle:F.noop,animate:function(){u(this._majorTicks,"animateLabels")},updateSize:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(e),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var o=!i._firstDrawing&&t,a=this._options;c(i._majorTicks),c(i._minorTicks),c(i._boundaryTicks),_(i._majorTicks),_(i._minorTicks),_(i._boundaryTicks),i._updateAxisElementPosition(),p(i._majorTicks,a.tick,o),p(i._minorTicks,a.minorTick,o),p(i._boundaryTicks,a.tick),u(i._majorTicks,"updateLabelPosition",o),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach(function(e){return e.updatePosition(o)}),u(i._strips,"updatePosition",o),f(i._majorTicks,o),f(i._minorTicks,o),o&&u(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1)},prepareAnimation:function(){var e=this,t="saveCoords";u(e._majorTicks,t),u(e._minorTicks,t),u(e._insideConstantLines,t),u(e._outsideConstantLines,t),u(e._strips,t)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},_mergeViewportOptions:function(){var e,t=this._options,n=t._customVisualRange;e=!(0,k.isDefined)(t.max)&&!(0,k.isDefined)(t.min)||(0,k.isDefined)(n.startValue)||(0,k.isDefined)(n.endValue)||(0,k.isDefined)(n.length)?n:{startValue:t.min,endValue:t.max},this._setVisualRange(e)},_validateVisualRange:function(e){var t=W(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),function(e,t){return C.default.convertVisualRangeObject(e,!U(t))}(t,e)},_validateOptions:function(e){var t=this;void 0!==e.min&&(e.min=t.validateUnit(e.min,"E2106")),void 0!==e.max&&(e.max=t.validateUnit(e.max,"E2106")),e.wholeRange=t._validateVisualRange(e.wholeRange),e.visualRange=e._customVisualRange=t._validateVisualRange(e._customVisualRange),t._mergeViewportOptions()},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?E.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,e._validateOptions(t)},resetVisualRange:function(e){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!e,end:!!e})},_applyZooming:function(e){var t=this;t._resetVisualRangeOption(),t._setVisualRange(e);var n=t.getViewport();t._breaks=t._getScaleBreaks(t._options,{minVisible:n.startValue,maxVisible:n.endValue},t._series,t.isArgumentAxis),t._translator.updateBusinessRange(t._getViewportRange())},getZoomStartEventArg:function(e,t){return{axis:this,range:this.visualRange(),cancel:!1,event:e,actionType:t}},getZoomEndEventArg:function(e,t,n,i,o){var a=this.visualRange();return{axis:this,previousRange:e,range:a,cancel:!1,event:t,actionType:n,zoomFactor:i,shift:o,rangeStart:a.startValue,rangeEnd:a.endValue}},getZoomBounds:function(){var e=C.default.getVizRangeObject(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:x(this._initRange.startValue,t.min),endValue:x(this._initRange.endValue,t.max)};return{startValue:x(e.startValue,n.startValue),endValue:x(e.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption:function(){this._options._customVisualRange={}},setCustomVisualRange:function(e){this._options._customVisualRange=e},visualRange:function(){var e=this,t=arguments,n=void 0;if(0===t.length){var i=e._getAdjustedBusinessRange(),o=i.minVisible,a=i.maxVisible;return e._options.type===S.default.discrete?{startValue:o=(0,k.isDefined)(o)?o:i.categories[0],endValue:a=(0,k.isDefined)(a)?a:i.categories[i.categories.length-1],categories:C.default.getCategoriesInfo(i.categories,o,a).categories}:{startValue:o,endValue:a}}n=U(t[0])||(0,k.isPlainObject)(t[0])?t[0]:[t[0],t[1]];var r=e.handleZooming(n,t[1]);r.isPrevented||e._visualRange(e,r.range)},handleZooming:function(e,t,n,i){var o=this;t=t||{},(0,k.isDefined)(e)&&((e=o._validateVisualRange(e)).action=i);var a=o.getZoomStartEventArg(n,i),r=a.range;!t.start&&o._eventTrigger("zoomStart",a);var s={isPrevented:a.cancel,range:e||a.range};return a.cancel||((0,k.isDefined)(e)&&o._applyZooming(e),(0,k.isDefined)(o._storedZoomEndParams)||(o._storedZoomEndParams={startRange:r}),o._storedZoomEndParams.event=n,o._storedZoomEndParams.action=i,o._storedZoomEndParams.prevent=!!t.end),s},handleZoomEnd:function(){var e=this;if((0,k.isDefined)(e._storedZoomEndParams)&&!e._storedZoomEndParams.prevent){var t=e._storedZoomEndParams.startRange,n=e._storedZoomEndParams.event,i=e._storedZoomEndParams.action,o={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},a=(0,M.adjust)(e.getVisualRangeCenter()-e.getVisualRangeCenter(o)),r=+(Math.round(e.getVisualRangeLength(o)/e.getVisualRangeLength()+"e+2")+"e-2"),s=e.getZoomEndEventArg(t,n,i,r,a);s.cancel=e.isZoomingLowerLimitOvercome(1===r?"pan":"zoom",r),e._eventTrigger("zoomEnd",s),s.cancel&&e.restorePreviousVisualRange(t),e._storedZoomEndParams=null}},restorePreviousVisualRange:function(e){var t=this;t._storedZoomEndParams=null,t._applyZooming(e),t._visualRange(t,e)},isZoomingLowerLimitOvercome:function(e,t,n){var i=this,o=i._options,a=o.minVisualRangeLength,r="zoom"===e&&t>=1,s=i._translator.getBusinessRange(),l=void 0;(0,k.isDefined)(n)&&(l={minVisible:(l=i.adjustRange(C.default.getVizRangeObject(n))).startValue,maxVisible:l.endValue,categories:s.categories});var u=i.getVisualRangeLength(l);if("discrete"!==o.type)if((0,k.isDefined)(a))"datetime"!==o.dataType||(0,k.isNumeric)(a)||(a=(0,R.dateToMilliseconds)(a)),r&=a>=u;else{var c=i._translator.canvasLength,d={minVisible:s.min,maxVisible:s.max,categories:s.categories};r&=i.getVisualRangeLength(d)/c>=u}else!(0,k.isDefined)(a)&&(a=1),r&=(0,k.isDefined)(n)&&i.getVisualRangeLength()===a&&u<=a;return!!r},dataVisualRangeIsReduced:function(){var e=void 0,t=void 0,n=this.getTranslator();if("discrete"===this._options.type){var i=n.getBusinessRange().categories;e=i[0],t=i[i.length-1]}else{var o=this._seriesData;e=o.min,t=o.max}if(!(0,k.isDefined)(e)||!(0,k.isDefined)(t))return!1;var a=n.translate(e),r=n.translate(t),s=[Math.min(a,r),Math.max(a,r)],l=this.visualRange(),u=n.translate(l.startValue),c=n.translate(l.endValue);return u>s[0]&&us[0]&&c1&&e.some(function(e,t,n){return 0!==t&&S.default.areLabelsOverlap(e,n[t-1],a.minSpacing,a.alignment)})&&o._applyLabelMode(t,n,e,i),"hide"===t&&o._checkBoundedLabelsOverlapping(n,r,e)}},_applyLabelMode:function(e,t,n,i,o){var a,r,s=this,l=s._majorTicks,u=s._options.label,c=i.rotationAngle;switch(e){case oe:u.userAlignment||(r=c<0?J:Q,c%90==0&&(r=ee)),v(l,t=o?t:s._getStep(n,c),function(e){e.label.rotate(c),e.labelRotationAngle=c,r&&(e.labelAlignment=r)});break;case"stagger":a=s._getMaxLabelHeight(n,i.staggeringSpacing),v(l,t-1,function(e,n){n/(t-1)%2!=0&&(e.labelOffset=a)});break;case"auto":case"_auto":2===t?s._applyLabelMode("stagger",t,n,i):s._applyLabelMode(oe,t,n,{rotationAngle:function(e,t){return 180*G.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/G.PI<45?-45:-90}(n,u)});break;default:v(l,t)}},getMarkerTrackers:F.noop,_drawDateMarkers:F.noop,_adjustDateMarkers:F.noop,coordsIn:F.noop,areCoordsOutsideAxis:F.noop,_getSkippedCategory:F.noop,_initAxisPositions:F.noop,_drawTitle:F.noop,_updateTitleCoords:F.noop,_adjustConstantLineLabels:F.noop,_createTranslator:function(){return new O.default.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e=this._options;return{isHorizontal:this._isHorizontal,interval:e.semiDiscreteInterval,stick:this._getStick(),breaksSize:e.breakStyle?e.breakStyle.width:0}},getVisibleArea:function(){var e=this._getCanvasStartEnd();return[e.start,e.end].sort(function(e,t){return e-t})},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas||{},n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this._getCanvasStartEnd(),t=this._breaks,n=t?t.length:0;return j(e.start-e.end)-(n?t[n-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:F.noop,_checkTitleOverflow:F.noop,getSpiderTicks:F.noop,setSpiderTicks:F.noop,_checkBoundedLabelsOverlapping:F.noop,drawScaleBreaks:F.noop,_visualRange:F.noop,applyVisualRangeSetter:F.noop,getCategoriesSorter:function(){var e=this._options.categoriesSortingMethod;return(0,k.isDefined)(e)?e:this._options.categories},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(e,t,n){var i=n(11).map;e.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return i(e||[],function(e){return e.value})},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var o,a,r=e.x>t.x,s=e.y>t.y,l=e.x,u=t.x,c=e.width,d=t.width;return"left"===i?(l+=c/2,u+=d/2):"right"===i&&(l-=c/2,u-=d/2),o=r?u+d+n>l:l+c+n>u,a=s?t.y+t.height>e.y:e.y+e.height>t.y,o&&a}}},function(e,t,n){function i(e){return{isStartSide:e?function(e,t,n,i){return e<=t[t.length-1][i]}:function(e,t,n,i){return et[0][n]}:function(e,t,n,i){return e>=t[t.length-1][i]},isInBreak:e?function(e,t,n,i){return e>t[i]&&e<=t[n]}:function(e,t,n,i){return e>=t[n]&&e=t[o]&&e=n[o]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}var o,a=n(0).extend,r=n(3).each,s=n(109).Range,l=n(772),u=n(773),c=n(774),d=n(775),h=n(11),p=n(1),f=h.getLog,g=h.getPower,_=p.isDefined,m=n(29).adjust,v=Math.abs,y=["width","height","left","top","bottom","right"],x=n(22).addInterval,b={to:function(e){var t=this._canvasOptions.startPoint+(this._options.conversionValue?e:Math.round(e));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from:function(e){return e-this._canvasOptions.startPoint}},w=function(e){return r(y,function(t,n){e[n]=parseInt(e[n])||0}),e};t.Translator2D=o=function(e,t,n){this.update(e,t,n)},o.prototype={constructor:o,reinit:function(){var e=this,t=e._options,n=e._businessRange,o=n.categories||[],r={},s=e._prepareCanvasOptions(),p=h.getCategoriesInfo(o,n.minVisible,n.maxVisible).categories,f=p.length;if(n.isEmpty())r=b;else switch(n.axisType){case"logarithmic":r=d;break;case"semidiscrete":r=u,s.ratioOfCanvasRange=s.canvasLength/(x(s.rangeMaxVisible,t.interval)-s.rangeMinVisible);break;case"discrete":r=l,e._categories=o,s.interval=e._getDiscreteInterval(t.addSpiderCategory?f+1:f,s),e._categoriesToPoints=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t}(o,s.invert),f&&(s.startPointIndex=e._categoriesToPoints[p[0].valueOf()],e.visibleCategories=p);break;default:"datetime"===n.dataType&&(r=c)}(e._oldMethods||[]).forEach(function(t){delete e[t]}),e._oldMethods=Object.keys(r),a(e,r),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[i(!1),i(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,o=this._breaks,a=this._options.breaksSize;if(void 0!==o)for(e=0,i=o.length;e0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e=this,t=e._businessRange,n=e._canvasOptions=function(e){var t=e.min,n=e.max,i=e.minVisible,o=e.maxVisible;return"logarithmic"===e.axisType&&(o=f(o,e.base),i=f(i,e.base),t=f(t,e.base),n=f(n,e.base)),{base:e.base,rangeMin:t,rangeMax:n,rangeMinVisible:i,rangeMaxVisible:o}}(t),i=e._canvas,o=e._breaks,a=void 0;return n.startPadding=i.startPadding||0,n.endPadding=i.endPadding||0,e._options.isHorizontal?(n.startPoint=i.left+n.startPadding,a=i.width,n.endPoint=i.width-i.right-n.endPadding,n.invert=t.invert):(n.startPoint=i.top+n.startPadding,a=i.height,n.endPoint=i.height-i.bottom-n.endPadding,n.invert=!t.invert),e.canvasLength=n.canvasLength=n.endPoint-n.startPoint,n.rangeDoubleError=Math.pow(10,g(n.rangeMax-n.rangeMin)-g(a)-2),n.ratioOfCanvasRange=n.canvasLength/(n.rangeMaxVisible-n.rangeMinVisible),void 0!==o&&(n.ratioOfCanvasRange=(n.canvasLength-o[o.length-1].cumulativeWidth)/(n.rangeMaxVisible-n.rangeMinVisible-o[o.length-1].length)),n},updateCanvas:function(e){this._canvas=w(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._businessRange=function(e){function t(t,n){!_(e[t])&&_(e[n])&&(e[t]=e[n])}return e instanceof s||(e=new s(e)),t("minVisible","min"),t("maxVisible","max"),e}(e),t._breaks=n.length?function(e,t){var n,i,o,a,r="logarithmic"===t.axisType?function(e){return f(e,t.base)}:function(e){return e},s=[],l=e.length,u=0;for(a=0;a0&&a!==r&&(l=e.translate(0,1)),!_(l)){var u=o.invert^(a<0&&r<=0);l=e._options.isHorizontal?u?i:n:u?n:i}e.sc={canvas_position_default:l,canvas_position_left:n,canvas_position_top:n,canvas_position_center:s,canvas_position_middle:s,canvas_position_right:i,canvas_position_bottom:i,canvas_position_start:t.invert?i:n,canvas_position_end:t.invert?n:i}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e);return v(this.from(t.min)-(_(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){return v(e)=0?t:-t:e},translate:function(e,t){var n=this.translateSpecialCase(e);return _(n)?Math.round(n):isNaN(e)?null:this.to(e,t)},getInterval:function(e){var t=this._canvasOptions;return(e=_(e)?e:this._businessRange.interval)?Math.round(t.ratioOfCanvasRange*e):Math.round(t.endPoint-t.startPoint)},zoom:function(e,t,n){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==e)return this.zoomZeroLengthRange(e,t);var o=i.startPoint,a=i.endPoint,r=this.isInverted(),s=(o+e)/t,l=(a+e)/t;n=n||{};var u=this.to(r?n.endValue:n.startValue),c=this.to(r?n.startValue:n.endValue),d=void 0,h=void 0;return u>s&&(l-=s-u,s=u,d=r?n.endValue:n.startValue),c(h=_(h)?h:m(this.from(l,-1)))?(d=d>n.endValue?n.endValue:d,h=hn.endValue?n.endValue:h),{min:d,max:h,translate:m(e),scale:m(t)}},zoomZeroLengthRange:function(e,t){var n=this._canvasOptions,i=n.rangeMin,o=n.rangeMax,a=(o.valueOf()!==i.valueOf()?o.valueOf()-i.valueOf():v(n.rangeMinVisible.valueOf()-i.valueOf()))/n.canvasLength,r=p.isDate(o)||p.isDate(i),s="logarithmic"===this._businessRange.axisType,l=n.rangeMinVisible.valueOf()-a,u=n.rangeMaxVisible.valueOf()+a;return{min:l=s?m(Math.pow(n.base,l)):r?new Date(l):l,max:u=s?m(Math.pow(n.base,u)):r?new Date(u):u,translate:e,scale:t}},getMinScale:function(e){return e?1.1:.9},getScale:function(e,t){var n=this._canvasOptions;return n.rangeMax===n.rangeMin?1:(e=_(e)?this._fromValue(e):n.rangeMin,t=_(t)?this._fromValue(t):n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t))},isValid:function(e){var t=this._canvasOptions;return null!==(e=this._fromValue(e))&&!isNaN(e)&&e.valueOf()+t.rangeDoubleError>=t.rangeMin&&e.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(e,t){var n,i=this,o=i._breaks;return e=i._fromValue(e),i._breaks&&!0===(n=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0])).inBreak?i._toValue(t>0?n.break.trTo:n.break.trFrom):i._toValue(e)},to:function(e,t){var n=this.getBusinessRange();if(_(n.maxVisible)&&_(n.minVisible)&&n.maxVisible.valueOf()===n.minVisible.valueOf())return _(e)&&n.maxVisible.valueOf()===e.valueOf()?this.translateSpecialCase(0===e?"canvas_position_default":"canvas_position_middle"):null;e=this._fromValue(e);var i=this,o=i._canvasOptions,a=i._breaks,r={length:0},s=0;return void 0!==a&&(r=i._checkValueAboutBreaks(a,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),s=_(r.breaksSize)?r.breaksSize:0),!0===r.inBreak?t>0?r.break.start:t<0?r.break.end:null:i._conversionValue(i._calculateProjection((e-o.rangeMinVisible-r.length)*o.ratioOfCanvasRange+s))},from:function(e,t){var n=this,i=n._breaks,o={length:0},a=n._canvasOptions,r=a.startPoint,s=0;return void 0!==i&&(o=n._checkValueAboutBreaks(i,e,"start","end",n._checkingMethodsAboutBreaks[1]),s=_(o.breaksSize)?o.breaksSize:0),!0===o.inBreak?t>0?n._toValue(o.break.trTo):t<0?n._toValue(o.break.trFrom):null:n._toValue(n._calculateUnProjection((e-r-s)/a.ratioOfCanvasRange+o.length))},isValueProlonged:!1,getRange:function(){return[this._toValue(this._canvasOptions.rangeMin),this._toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)},_add:function(e,t,n){return this._toValue(this._fromValue(e)+t*n)},_fromValue:function(e){return null!==e?Number(e):null},_toValue:function(e){return null!==e?Number(e):null},ratioOfCanvasRange:function(){return this._canvasOptions.ratioOfCanvasRange}}},function(e,t,n){var i=n(4).noop,o=n(3).each,a=isFinite,r=Number,s=Math.round,l=n(146),u=l.formatValue,c=l.getSampleText,d=n(11).patchFontOptions,h=n(0).extend,p=n(14).inherit({ctor:function(e){var t=this;o(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),o(e,function(t){e[t]=null}),e},getOffset:function(){return r(this._options.offset)||0}}),f=p.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?r(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:i,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&(h(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,o=this._rootElement,r=null;return void 0===e?i._currentValue:(null===e?(r="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&a(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),o.attr({visibility:r}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),g={};g["right-bottom"]=g.rb=[0,-1,-1,0,0,1,1,0],g["bottom-right"]=g.br=[-1,0,0,-1,1,0,0,1],g["left-bottom"]=g.lb=[0,-1,1,0,0,1,-1,0],g["bottom-left"]=g.bl=[1,0,0,-1,-1,0,0,1],g["left-top"]=g.lt=[0,1,1,0,0,-1,-1,0],g["top-left"]=g.tl=[1,0,0,1,-1,0,0,-1],g["right-top"]=g.rt=[0,1,-1,0,0,-1,1,0],g["top-right"]=g.tr=[-1,0,0,1,1,0,0,-1];var _=f.inherit({_move:function(){var e,t,n=this,i=n._getTextCloudOptions(),o=u(n._actualValue,n._options.text);n._text.attr({text:o}),e=n._text.getBBox(),t=function(e){var t,n,i=e.x,o=e.y,a=g[e.type],r=e.textWidth+2*e.horMargin,l=e.textHeight+2*e.verMargin,u=i,c=o;return t=n=e.tailLength,1&a[0]?n=Math.min(n,l/3):t=Math.min(t,r/3),{cx:s(u+a[0]*t+(a[0]+a[2])*r/2),cy:s(c+a[1]*n+(a[1]+a[3])*l/2),points:[s(i),s(o),s(i+=a[0]*(r+t)),s(o+=a[1]*(l+n)),s(i+=a[2]*r),s(o+=a[3]*l),s(i+=a[4]*r),s(o+=a[5]*l),s(i+=a[6]*(r-t)),s(o+=a[7]*(l-n))]}}({x:i.x,y:i.y,textWidth:e.width||o.length*n._textUnitWidth,textHeight:e.height||n._textHeight,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:i.type}),n._text.attr({x:t.cx,y:t.cy+n._textVerticalOffset}),n._cloud.attr({points:t.points}),n._trackerElement&&n._trackerElement.attr({points:t.points})},_measureText:function(){var e,t,n,i=this;i._textVerticalOffset||(e=i._createRoot().append(i._owner),n=c(i._translator,i._options.text),t=i._renderer.text(n,0,0).attr({align:"center"}).css(d(i._options.text.font)).append(e).getBBox(),e.remove(),i._textVerticalOffset=-t.y-t.height/2,i._textWidth=t.width,i._textHeight=t.height,i._textUnitWidth=i._textWidth/n.length,i._textFullWidth=i._textWidth+2*i._options.horizontalOffset,i._textFullHeight=i._textHeight+2*i._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css(d(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}}}),m=f.inherit({_measureText:function(){var e,t,n=this;n._hasText=n._isTextVisible(),n._hasText&&!n._textVerticalOffset&&(e=n._createRoot().append(n._owner),t=n._renderer.text(c(n._translator,n._options.text),0,0).attr({class:"dxg-text",align:"center"}).css(d(n._options.text.font)).append(e).getBBox(),e.remove(),n._textVerticalOffset=-t.y-t.height/2,n._textWidth=t.width,n._textHeight=t.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:u(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t,n=this,i=n._options,o=n._translator;n._setBarSides(),n._startPosition=o.translate(o.getDomainStart()),n._endPosition=o.translate(o.getDomainEnd()),n._basePosition=o.translate(i.baseValue),n._space=n._getSpace(),"none"!==(e=i.backgroundColor||"none")&&n._space>0?t=i.containerBackgroundColor||"none":(n._space=0,t="none"),n._backItem1.attr({fill:e}),n._backItem2.attr({fill:e}),n._spaceItem1.attr({fill:t}),n._spaceItem2.attr({fill:t})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({class:"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({class:"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=h({},t,{color:e.color})),d(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({class:"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({class:"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({class:"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({class:"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({class:"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseElement=p,t.BaseIndicator=f,t.BaseTextCloudMarker=_,t.BaseRangeBar=m},function(e,t,n){var i=n(11).patchFontOptions;t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:e["stroke-width"]?{stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"],filter:t}:{},css:i(e.font)}}},function(e,t,n){function i(e){this._initHandlers(e)}var o=n(9).eventData,a=n(12),r=n(19).name,s=n(24).down,l=n(24).move,u=n(5);i.prototype={constructor:i,_initHandlers:function(e){function t(t){!function(e,t){var n=t.getData(e);n>=0&&t.click({node:t.getNode(n),coords:t.getCoords(e),event:e})}(t,e)}function n(t){d?d=!1:(void 0!==e.getData(t)&&(d=!0),i(t))}function i(t){(function(e,t){var n=t.getData(e);n>=0?t.getNode(n).setHover():t.widget.clearHover()})(t,e),e.widget._getOption("tooltip").enabled&&function(e,t){var n,i=t.getData(e,!0);i>=0?(n=o(e),t.getNode(i).showTooltip([n.x,n.y])):t.widget.hideTooltip()}(t,e)}var c=a.getDocument();e.getCoords=function(t){var n=o(t),i=e.widget._renderer.getRootOffset();return[n.x-i.left,n.y-i.top]},e.root.on(r,t),e.root.on(s,n),u.on(c,s,n),u.on(c,l,i),this._disposeHandlers=function(){e.root.off(r,t),e.root.off(s,n),u.off(c,s,n),u.off(c,l,i)};var d=!1},dispose:function(){this._disposeHandlers()}},e.exports.Tracker=i},function(e,t,n){function i(e){return e.toString().split("").reverse().join("")}function o(e){return e?e.length-e.replace(/[#]/g,"").length:0}function a(e){return e?e.length-e.replace(/[0]/g,"").length:0}function r(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.lengtha.length){var u=-1===t(12345).indexOf("12345");do{e="1"+e}while(u&&l(e,n)<1e5)}return e}function c(e,t,n,i){var o=t(l(e,n,i)),a=e.split("."),r=t(l(a[0]+".3"+a[1].slice(1),n,i)).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),r>=0&&(o=o.slice(0,r)+"."+o.slice(r+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}var d=n(29).fitIntoRange,h={thousandsSeparator:",",decimalSeparator:"."},p="'",f=15;t.getFormatter=function(e,t){return t=t||h,function(n){if("number"!=typeof n||isNaN(n))return"";var l=n>0||1/n==1/0,u=function(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}(e)[l?0:1];(function(e){return-1!==e.indexOf("%")&&!e.match(/'[^']*%[^']*'/g)})(u)&&(n*=100),l||(n=-n);var c=function(e){for(var t=!1,n=0;n=0;t=u(t,e,n,!0);var i=c(t=u(t,e,n,!1),e,n,!1),o=c(t,e,n,!0);return o==="-"+i?i:i+";"+o}},function(e,t,n){var i=n(85).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){var i=n(7).getWindow();t.sessionStorage=function(){var e;try{e=i.sessionStorage}catch(e){}return e}},function(e,t,n){var i=n(2),o=n(14),a=n(0).extend,r=n(4),s=n(1),l=n(3),u=n(39),c=n(178),d=n(6),h=d.when,p=d.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a,r=this,s=[];return n=n||{},(a=this._prepareElementAnimationConfig(t,n,o))&&e.each(function(){var e=r._createAnimation(i(this),a,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=c.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(!(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t)).type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=u.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(r):this._addSelectedItem(a,r),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],r);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([r],[a]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e)},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o,a,r=!1,s=this.options.keyOf,u=t[this._focusedItemIndex],c=this.options.getItemData(u),d=s(c),h=u&&this.isItemDataSelected(c);if(l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex0&&i.push(t?"and":"or"),r=a.isString(n)?l(n,e):u(n,e),i.push(r)}),i&&1===i.length&&(i=i[0]),i},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),o=i;return t&&n&&(i?((o=[]).push(i),o.push(n)):o=n),o};var n,r=function(e){if(!n){n={};for(var t=0;t":"=",n]},u=function(e,n){for(var i=[],o=0,a=e.length;o0&&i.push(t?"or":"and"),i.push(u)}return i}}},function(e,t,n){var i=n(29),o=n(3),a=n(21),r=n(9),s=n(114),l=n(88),u="dx",c="zoom",d="pinch",h="start",p="",f="end",g=[],_=function(e,t){g.push({name:e,args:t})};_("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),_("translate",{translation:!0,deltaTranslation:!0}),_(c,{scale:!0,deltaScale:!0}),_(d,{scale:!0,deltaScale:!0}),_("rotate",{rotation:!0,deltaRotation:!0});var m=function(e){var t=e.pointers;return function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}}(t[0],t[1])},v=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},y=function(e,t){return v(e)/v(t)},x=function(e,t){var n=e.x*t.x+e.y*t.y,o=v(e)*v(t);return 0===o?0:i.sign(e.x*t.y-t.x*e.y)*Math.acos(i.fitIntoRange(n/o,-1,1))},b=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},w=s.inherit({configure:function(e,t){t.indexOf(c)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(c,d)+"' event instead"),this.callBase(e)},validatePointers:function(e){return r.hasTouches(e)>1},start:function(e){this._accept(e);var t=m(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(h,e)},move:function(e){var t=m(e),n=this._getEventArgs(t);this._fireEventAliases(p,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(f,e,t)},_getEventArgs:function(e){return{scale:y(e,this._startVector),deltaScale:y(e,this._prevVector),rotation:x(e,this._startVector),deltaRotation:x(e,this._prevVector),translation:b(e,this._startVector),deltaTranslation:b(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},o.each(g,function(i,a){var r={};o.each(a.args,function(e){e in n&&(r[e]=n[e])}),this._fireEvent(u+a.name+e,t,r)}.bind(this))}}),C=g.reduce(function(e,t){return[h,p,f].forEach(function(n){e.push(u+t.name+n)}),e},[]);l({emitter:w,events:C}),o.each(C,function(e,n){t[n.substring(u.length)]=n})},function(e,t,n){e.exports={_waitAsyncTemplates:function(e){if(this._options.templatesRenderAsynchronously){this._asyncTemplatesTimers=this._asyncTemplatesTimers||[];var t=setTimeout(function(){e.call(this),clearTimeout(t)}.bind(this));this._asyncTemplatesTimers.push(t)}else e.call(this)},_cleanAsyncTemplatesTimer:function(){for(var e=this._asyncTemplatesTimers||[],t=0;t0}},{key:"_authorizationString",get:function(){return"Bearer "+this._accessToken}}]),t}();e.exports=c},function(e,t,n){var i=n(2),o=n(30),a=n(4),r=n(1).isPlainObject,s=n(8),l=n(13).inArray,u=n(0).extend,c=n(3).each,d=n(487),h=n(83),p=n(65),f="dx-toolbar-before",g="dx-toolbar-after",_="dx-toolbar-label",m="dx-toolbar-compact",v="."+_,y=d.inherit({compactMode:!1,_initTemplates:function(){this.callBase();var e=new p(function(e,t,n){r(t)?(t.text&&e.text(t.text).wrapInner("
    "),t.html&&e.html(t.html),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||"text"),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||"default"))):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 u(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return o.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+f,".dx-toolbar-center","."+g].join(","))},_itemClass:function(){return"dx-toolbar-item"},_itemDataKey:function(){return"dxToolbarItemDataKey"},_buttonClass:function(){return"dx-toolbar-button"},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_render:function(){this.callBase(),this._renderItemsAsync(),o.isMaterial()&&this._checkWebFontForLabelsLoaded().then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass("dx-toolbar").toggleClass("dx-toolbar-bottom","bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=i("
    ").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;c(["before","center","after"],function(){var n="dx-toolbar-"+this,o=e.find("."+n);o.length||(t["_$"+this+"Section"]=o=i("
    ").addClass(n).appendTo(e))})},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(v),t=[];return e.each(function(e,n){var a=i(n).text(),r=i(n).css("fontWeight");t.push(o.waitWebFont(a,r))}),h.all(t)},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto",float:"none"});var t=this._$beforeSection.get(0).getBoundingClientRect(),n=this._$afterSection.get(0).getBoundingClientRect();this._alignCenterSection(t,n,e);var o=this._$toolbarItemsContainer.find(v).eq(0),a=o.parent();if(o.length){var r=t.width?t.width:o.position().left,s=a.hasClass(f)?0:r,l=a.hasClass(g)?0:n.width,u=0;a.children().not(v).each(function(){u+=i(this).outerWidth()});var c=e-u,d=Math.max(c-s-l,0);if(a.hasClass(f))this._alignSection(this._$beforeSection,d);else{var h=o.outerWidth()-o.width();o.css("maxWidth",d-h)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),o=i?t:e,a=i?e:t,r=this._$centerSection.get(0).getBoundingClientRect();(o.right>r.left||r.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,float:o.width>a.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(v).toArray();t-=this._getCurrentLabelsPaddings(n);var i=this._getCurrentLabelsWidth(n),o=Math.abs(i-t);te.width()&&e.addClass(m)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()}),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()-i(e).width()}),t},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this["_$"+o+"Section"],r=!(!t.text&&!t.html),s=this.callBase(e,t,a,i);return s.toggleClass(this._buttonClass(),!r).toggleClass(_,r).addClass(t.cssClass),s},_renderGroupedItems:function(){var e=this;c(this.option("items"),function(t,n){var o=n.items,a=i("
    ").addClass("dx-toolbar-group"),r=n.location||"center";o&&o.length&&(c(o,function(t,n){e._renderItem(t,n,a,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(a))})},_renderItems:function(e){this.option("grouped")&&e.length&&e[0].items?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:a.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return l(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){switch(e.name){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}}});s("dxToolbarBase",y),e.exports=y},function(e,t,n){var i=n(2),o=n(110),a=n(76),r=n(0).extend,s=n(1).isPlainObject,l=n(288),u=null;e.exports=function(e,t,n){var c=s(e)?e:{message:e},d=c.onHidden;r(c,{type:t,displayTime:n,onHidden:function(e){i(e.element).remove(),new o(d,{context:e.model}).execute(arguments)}}),u=i("
    ").appendTo(a.value()),new l(u,c).show()}},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(12),r=n(5),s=n(47).add,l=n(4),u=n(1),c=n(0).extend,d=n(13).inArray,h=n(24),p=n(8),f=n(58),g=n(30),_="dx-toast",m=_+"-",v=["info","warning","error","success"],y=[],x=null,b={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};s(function(){r.subscribeGlobal(a.getDocument(),h.down,function(e){for(var t=y.length-1;t>=0;t--)if(!y[t]._proxiedDocumentDownHandler(e))return})});var w=f.inherit({_getDefaultOptions:function(){return c(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",closeOnBackButton:!1,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{position:"top center",width:function(){return i(o).width()}}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{position:"bottom right",width:"auto"}},{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:o}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:o}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform,i="win"===e.platform&&e.version&&10===e.version[0];return t&&(n||i)},options:{width:function(){return i(o).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(){return g.isMaterial()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("
    ").addClass("dx-toast-message").text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),d(this.option("type").toLowerCase(),v)>-1&&this.$content().prepend(i("
    ").addClass("dx-toast-icon")),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(_),this._wrapper().addClass("dx-toast-wrapper"),this._$content.addClass(m+String(this.option("type")).toLowerCase()),this.$content().addClass("dx-toast-content"),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();r.off(this._$content,t),this.option("closeOn"+e)&&r.on(this._$content,t,this.hide.bind(this))},_posStringToObject:function(){if(u.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",c({},b[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return x&&x!==this&&(clearTimeout(x._hideTimeout),x.hide()),x=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return x=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return y},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),x=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this._$content.removeClass(m+e.previousValue),this._$content.addClass(m+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});p("dxToast",w),e.exports=w},function(e,t,n){var i=n(8),o=n(491);i("dxTextEditor",o),e.exports=o},function(e,t,n){var i=n(2),o=n(1).isDefined,a=n(31),r=n(12),s=a.msie||a.safari,l=function(e){return!e.setSelectionRange},u=function(e){var t=r.getSelection().createRange(),n=t.duplicate();return t.move("character",-e.value.length),t.setEndPoint("EndToStart",n),{start:t.text.length,end:t.text.length+n.text.length}},c=function(e,t){if(r.getBody().contains(e)){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t.start),n.moveEnd("character",t.end-t.start),n.select()}};e.exports=function(e,t){return e=i(e).get(0),o(t)?void(s&&r.getActiveElement()!==e||function(e,t){l(e)?c(e,t):r.getBody().contains(e)&&(e.selectionStart=t.start,e.selectionEnd=t.end)}(e,t)):function(e){return l(e)?u(e):{start:e.selectionStart,end:e.selectionEnd}}(e)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(9),r=n(0),s=i(n(498)),l=n(15),u=i(n(499)),c=i(n(240)),d=c.default.inherit({_supportedKeys:function(){var e=this,t=this.callBase();return(0,r.extend)({},t,{del:function(t){e.option("allowItemDeleting")&&(t.preventDefault(),e.deleteItem(e.option("focusedElement")))},upArrow:function(n){var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement"));if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var o=e._editStrategy.getItemElement(i-1);e.reorderItem(e.option("focusedElement"),o),e.scrollToItem(e.option("focusedElement"))}else{if(0===i&&this._editProvider.handleKeyboardEvents(i,!1))return;this._editProvider.handleKeyboardEvents(i,!0),t.upArrow(n)}},downArrow:function(n){var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement")),o=i===this._getLastItemIndex();if(!o||!this._isDataSourceLoading())if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var a=e._editStrategy.getItemElement(i+1);e.reorderItem(e.option("focusedElement"),a),e.scrollToItem(e.option("focusedElement"))}else{if(o&&this._editProvider.handleKeyboardEvents(i,!1))return;this._editProvider.handleKeyboardEvents(i,!0),t.downArrow(n)}},enter:function(e){this._editProvider.handleEnterPressing()||t.enter.apply(this,arguments)},space:function(e){this._editProvider.handleEnterPressing()||t.space.apply(this,arguments)}})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:(0,l.format)("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",allowItemReordering:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"ios"===e.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}},{device:{platform:"win"},options:{itemDeleteMode:"context"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new u.default(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new s.default(this):this.callBase()},_initMarkup:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return"dx-list-item-selected"},_itemResponseWaitClass:function(){return"dx-list-item-response-wait"},_itemClickHandler:function(e){var t=(0,o.default)(e.currentTarget);t.is(".dx-state-disabled, .dx-state-disabled *")||(this._editProvider.handleClick(t,e)||this.callBase.apply(this,arguments))},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(e){var t=(0,o.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *"))return(0,a.isTouchEvent)(e)&&this._editProvider.handleContextMenu(t,e)?void(e.handledByEditProvider=!0):void this.callBase.apply(this,arguments)},_itemContextMenuHandler:function(e){var t=(0,o.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *"))return!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e)?void e.preventDefault():void this.callBase.apply(this,arguments)},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(e)},_clean:function(){this._disposeEditProvider(),this.callBase()},focusListItem:function(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"allowItemReordering":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(e){return this._itemElements().index(e)},getItemElementByFlatIndex:function(e){var t=this._itemElements();return e<0||e>=t.length?(0,o.default)():t.eq(e)},getItemByIndex:function(e){return this._editStrategy.getItemDataByIndex(e)}});e.exports=d},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(139),s=r.abstract,l=n(9),u=n(24),c=n(128),d="dxListEditDecorator",h=l.addNamespace(u.down,d),p=l.addNamespace(c.active,d),f="dx-list-switchable-delete-ready",g="dx-list-switchable-menu-item-shield-positioning",_=r.inherit({_init:function(){this._$topShield=i("
    ").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=i("
    ").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=i("
    ").addClass("dx-list-switchable-delete-item-content-shield"),o.on(this._$topShield,h,this._cancelDeleteReadyItem.bind(this)),o.on(this._$bottomShield,h,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(f)},_toggleShields:function(e,t){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",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-n,a=i-e.outerHeight()-o;this._$topShield.height(Math.max(o,0)),this._$bottomShield.height(Math.max(a,0))},_toggleContentShield:function(e,t){t?e.find(".dx-list-item-content").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(g),o.on(e,p,a),o.one(e,u.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(g),o.off(e,p)},_prepareDeleteReady:function(e){e.addClass(f)},_forgetDeleteReady:function(e){e.removeClass(f)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_getDeleteButtonContainer:function(e){return(e=e||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_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=_},function(e,t,n){e.exports={_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"]})}}},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(47).add,s=n(26),l=n(17),u=n(9),c=n(4),d=n(1).isPlainObject,h=n(0).extend,p=n(24),f="dxScrollbar",g="dx-scrollable-scrollbar",_=g+"-active",m="horizontal",v="onScroll",y="onHover",x="always",b="never",w=l.inherit({_getDefaultOptions:function(){return h(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:v,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=i("
    ").addClass("dx-scrollable-scroll"),i("
    ").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(g).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===y||e===x)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===m?"width":"height",this._prop=e===m?"left":"top"},_attachPointerDownHandler:function(){a.on(this._$thumb,u.addNamespace(p.down,f),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(_),C=this},feedbackOff:function(){this.$element().removeClass(_),C=null},cursorEnter:function(){this._isHovered=!0,this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===v&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this.containerToContentRatio()&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case v:break;case y:e=e||!!this._isHovered;break;case b:e=!1;break;case x:e=!0}return e},moveTo:function(e){if(!this._isHidden()){d(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),s.move(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize"));this._containerToContentRatio=t?e/t:e;var n=Math.round(Math.max(Math.round(e*this._containerToContentRatio),15));this._thumbRatio=(e-n)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,n/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===b},_needScrollbar:function(){return!this._isHidden()&&this._containerToContentRatio<1},containerToContentRatio:function(){return this._containerToContentRatio},_normalizeSize:function(e){return d(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===C&&(C=null),a.off(this._$thumb,"."+f)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:c.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),C=null;r(function(){a.subscribeGlobal(o.getDocument(),u.addNamespace(p.up,f),function(){C&&C.feedbackOff()})}),e.exports=w},function(e,t,n){var i,o,a=n(2),r=n(12),s=n(5),l=Math,u=n(32).titleize,c=n(0).extend,d=n(7),h=n(3),p=n(1).isDefined,f=n(26),g=n(14),_=n(296),m=n(16),v=n(9),y=n(4),x=n(294),b=n(6),w=b.when,C=b.Deferred,k=m.real,S="win"===k.platform||"android"===k.platform,I="dxSimulatedScrollable",T=I+"Cursor",D=I+"Keyboard",E="dx-scrollable-simulated",A="vertical",O="horizontal",B=S?.95:.92,P=l.round(1e3/60),M=(S?300:400)/P,R=(1-l.pow(B,M))/(1-B),F="pageUp",V="pageDown",L="end",H="home",z="leftArrow",N="upArrow",$="rightArrow",W="downArrow",G=_.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:1,_isFinished:function(){return l.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?B:.5},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),j=G.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return B},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),q=function(e){return"dxmousewheel"===e.type},K=g.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===O?"x":"y",this._prop=e.direction===O?"left":"top",this._dimension=e.direction===O?"width":"height",this._scrollProp=e.direction===O?"scrollLeft":"scrollTop",h.each(e,function(e,t){this["_"+e]=t}.bind(this))},_initAnimators:function(){this._inertiaAnimator=new G(this),this._bounceAnimator=new j(this)},_initScrollbar:function(){this._scrollbar=new x(a("
    ").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return!0===e?"onScroll":!1===e?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||s.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,l.max(l.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if(d.hasWindow()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),n=this._getBaseDimension(e,this._dimension);this._scaleRatio=t/n}return this._scaleRatio||1},_getRealDimension:function(e,t){return l.round(e.getBoundingClientRect()[t])},_getBaseDimension:function(e,t){return e["offset"+u(t)]},_moveContentByTranslator:function(e){var t,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};return i[this._prop]=t,this._translateOffset=t,0===t?void f.resetPosition(this._$content):void f.move(this._$content,i)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=(this._bounceLocation=this._boundLocation())-this._location;this._velocity=e/R},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=new C,this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:y.deferRenderer(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!q(e.originalEvent)){var t=a(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+t/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=.5),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new C,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var e=this;return e._stopScrolling(),y.deferUpdate(function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),y.deferRender(function(){e._moveScrollbar(),e._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(f.locate(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=l.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:y.deferUpdater(function(){var e=this,t=e._containerSize(),n=e._contentSize();y.deferRender(function(){e._scrollbar.option({containerSize:t,contentSize:n,scaleRatio:e._getScaleRatio()})})}),_moveToBounds:y.deferRenderer(y.deferUpdater(y.deferRenderer(function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()}))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var n=this._$content[0]["scroll"+u(this._dimension)]*this._getScaleRatio();t=l.max(n,t)}return t},_validateEvent:function(e){var t=a(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:y.noop}),U=g.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$wrapper=e._$wrapper,this._$content=e._$content,this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._$element.addClass(E),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(O)&&this._createScroller(O),this._isDirection(A)&&this._createScroller(A),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar")),this._$element.toggleClass("dx-scrollable-scrollbars-hidden",!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new K(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var n=this._getPropByDirection(t);if(p(e[n])){var i=this._scrollers[t];e[n]*=i._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done(function(e,n){t=e||n}),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e).done(this._stopAction)},_suppressDirections:function(e){return q(e.originalEvent)?void this._prepareDirections(!0):(this._prepareDirections(),void this._eachScroller(function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i}))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[O]=e,this._validDirections[A]=e},_eachScroller:function(e){e=e.bind(this),h.each(this._scrollers,function(t,n){e(n,t)})},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){o=this},_resetActive:function(){o===this&&(o=null)},handleMove:function(e){return this._isLocked()?(e.cancel=!0,void this._resetActive()):(this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e){e.x*=this._validDirections[O],e.y*=this._validDirections[A]},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._scrollAction()},_attachKeyboardHandler:function(){s.off(this._$element,"."+D),!this.option("disabled")&&this.option("useKeyboard")&&s.on(this._$element,v.addNamespace("keydown",D),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(this._$container.is(r.getActiveElement())){var t=!0;switch(v.normalizeKeyName(e)){case W:this._scrollByLine({y:1});break;case N:this._scrollByLine({y:-1});break;case $:this._scrollByLine({x:1});break;case z:this._scrollByLine({x:-1});break;case V:this._scrollByPage(1);break;case F:this._scrollByPage(-1);break;case H:this._scrollToHome();break;case L:this._scrollToEnd();break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){this.scrollBy({top:-20*(e.y||0),left:-20*(e.x||0)})},_scrollByPage:function(e){var t=this._wheelProp(),n=this._dimensionByProp(t),i={};i[t]=e*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===O?"left":"top"},_scrollToHome:function(){var e={};e[this._wheelProp()]=0,this._component.scrollTo(e)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),n={};n[e]=this._$content[t]()-this._$container[t](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=this,n=t._createActionByOption(e);return function(){n(c(t._createActionArgs(),arguments))}},_createActionArgs:function(){var e=this._scrollers[O],t=this._scrollers[A],n=this.location();return this._scrollOffset={top:t&&-n.top,left:e&&-n.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),n=h.map(this._scrollers,function(n){return n["_"+e+"Handler"].apply(n,t)});return w.apply(a,n).promise()},location:function(){var e=f.locate(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){s.off(this._$element,"."+T),!this.option("disabled")&&this._isHoverMode()&&(s.on(this._$element,v.addNamespace("mouseenter",T),this._cursorEnterHandler.bind(this)),s.on(this._$element,v.addNamespace("mouseleave",T),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){(e=e||{}).originalEvent=e.originalEvent||{},o||e.originalEvent._hoverHandled||(i&&i._cursorLeaveHandler(),i=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){i===this&&o!==i&&(this._eventHandler("cursorLeave"),i=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!o){var t=a(e).closest("."+E+":not(.dx-state-disabled)"),n=t.length&&t.data("dxScrollableStrategy");i&&i!==n&&i._cursorLeaveHandler(),n&&n._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return w(t,y.deferUpdate(function(){var t=e._allowedDirections();return y.deferRender(function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)}),w().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[A],n=this._scrollers[O];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[O]&&this._scrollers[O]._updateBounds()},scrollBy:function(e){var t=this._scrollers[A],n=this._scrollers[O];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction()},validate:function(e){return!this.option("disabled")&&(!!this.option("bounceEnabled")||(q(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this,n=this._scrollers[this._wheelDirection(e)],i=n._reachedMin(),o=n._reachedMax(),a=!i||!o,r=!i&&!o,s=i&&e.delta>0,l=o&&e.delta<0,u=a&&(r||s||l);return(u=u||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(function(){t._validateWheelTimer=void 0},500)),u},_validateMove:function(e){return!(!this.option("scrollByContent")&&!a(e.target).closest(".dx-scrollable-scrollbar").length)&&this._allowedDirection()},getDirection:function(e){return q(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===O?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case O:return O;case A:return A;default:return e&&e.shiftKey?O:A}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),i===this&&(i=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(E),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer)},_detachEventHandlers:function(){s.off(this._$element,"."+T),s.off(this._$container,"."+D)}});t.SimulatedStrategy=U,t.Scroller=K},function(e,t,n){var i=n(4).noop,o=n(14),a=o.abstract,r=n(112),s=o.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,r.cancelAnimationFrame(this._stepAnimationFrame)},_stepCore:function(){return this._isStopped()?void this._stop():this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=r.requestAnimationFrame(this._proxiedStepCore)))},_step:a,_isFinished:i,_stop:i,_complete:i,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});e.exports=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findChanges=void 0;var i=n(1),o=function(e,t){var n=t(e);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(e){return n}return n},a=function(e,t,n,i){return t[n[o(e,i)]]};t.findChanges=function(e,t,n,i){var r={},s={},l=0,u=0,c=[];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 d=Math.max(e.length,t.length),h=0;h").addClass("dx-buttongroup-wrapper").appendTo(this.$element()),n=this.option("selectedItems"),i={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),itemTemplate:this._getTemplateByOption("itemTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:function(t){var n=e.option("width");(0,c.isDefined)(n)&&(0,o.default)(t.itemElement).addClass(f)},onSelectionChanged:function(t){e._syncSelectionOptions(),e._fireSelectionChangeEvent(t.addedItems,t.removedItems)},onItemClick:function(t){e._itemClickAction(t)}};(0,c.isDefined)(n)&&n.length&&(i.selectedItems=n),this._buttonsCollection=this._createComponent(t,g,i)},_syncSelectionOptions:function(){this._setOptionSilent("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionSilent("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged:function(e){switch(e.name){case"stylingMode":case"selectionMode":case"keyExpr":case"itemTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(e.name,e.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(e),this.$element().find("."+p).toggleClass(f,!!e.value);break;default:this.callBase(e)}}});(0,l.default)("dxButtonGroup",_),e.exports=_},function(e,t,n){e.exports=n(520)},function(e,t,n){var i=n(2),o=n(5),a=n(26),r=n(0).extend,s=n(90),l=n(15),u=n(16),c=n(8),d=n(49),h=n(116),p=n(92),f=n(301),g=n(19),_="dx-colorview-container-row",m="dx-colorview-palette-gradient",v="dx-colorview-palette-gradient-white",y="dx-colorview-palette-gradient-black",x="dx-colorview-color-preview",b="dx-colorview-color-preview-color-current",w="dx-colorview-color-preview-color-new",C=d.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e){var n=100/t._paletteWidth;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},i=function(e){var n=t._currentColor.hsv.s+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.s=n,l()},o=function(e){var n=100/t._paletteHeight;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},s=function(e){var n=t._currentColor.hsv.v+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.v=n,l()},l=function(){t._placePaletteHandle(),t._updateColorFromHsv(t._currentColor.hsv.h,t._currentColor.hsv.s,t._currentColor.hsv.v)},u=function(e){var n=360/(t._hueScaleWrapperHeight-t._hueScaleHandleHeight);return e.shiftKey&&(n*=t.option("keyStep")),n>1?n:1},c=function(e){t._currentColor.hsv.h+=e,t._placeHueScaleHandle();var n=a.locate(t._$hueScaleHandle);t._updateColorHue(n.top+t._hueScaleHandleHeight/2)},d=function(n){var i=1/t._alphaChannelScaleWorkWidth;return n.shiftKey&&(i*=t.option("keyStep")),i=i>.01?i:.01,e?-i:i},h=function(e){t._currentColor.a+=e,t._placeAlphaChannelHandle();var n=a.locate(t._$alphaChannelHandle);t._calculateColorTransparencyByScaleWidth(n.left+t._alphaChannelHandleWidth/2)};return r(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&c(u(e)):this._currentColor.hsv.v<100&&s(o(e))},downArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),c(-u(e))):this._currentColor.hsv.v>0&&s(-o(e))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&h(-d(t)):this._currentColor.hsv.s<100&&i(n(t))},leftArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&h(d(t)):this._currentColor.hsv.s>0&&i(-n(t))},enter:function(e){this._fireEnterKeyPressed(e)}})},_getDefaultOptions:function(){return r(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(e){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:e})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(e){var t=new s(e=e||"#000000");t.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(t)||(this._currentColor=t,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,t))},_setBaseColor:function(e){var t=new s(e||"#000000");t.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(t))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,t)},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(e,t){t instanceof s||(t=new s(t)),e.css("backgroundColor",this._makeRgba(t))},_makeRgba:function(e){return e instanceof s||(e=new s(e)),"rgba("+[e.r,e.g,e.b,e.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var e=this.$element();this._$colorPickerContainer=i("
    ").addClass("dx-colorview-container").appendTo(e),this._renderHtmlRows()},_renderHtmlRows:function(e){var t=this._$colorPickerContainer.find("."+_),n=t.length,o=n-(this.option("editAlphaChannel")?2:1);if(o>0&&t.eq(-1).remove(),o<0){o=Math.abs(o);var a,r=[];for(a=0;a").addClass(_));if(n)for(a=0;a").addClass("dx-colorview-container-cell").addClass(n).appendTo(t.find("."+_).eq(e))},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),t=i("
    ").addClass([m,v].join(" ")),n=i("
    ").addClass([m,y].join(" "));this._$palette=i("
    ").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(e),this._paletteHeight=this._$palette.height(),this._paletteWidth=this._$palette.width(),this._renderPaletteHandle(),this._$palette.append([t,n])},_renderPaletteHandle:function(){this._$paletteHandle=i("
    ").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,f,{area:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDrag:function(){var e=a.locate(this._$paletteHandle);this._updateByDrag=!0,this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(e),this._calculateColorValue(e))}.bind(this)}),this._paletteHandleWidth=this._$paletteHandle.width(),this._paletteHandleHeight=this._$paletteHandle.height(),this._placePaletteHandle()},_placePaletteHandle:function(){a.move(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(e){var t=Math.floor(e.top+this._paletteHandleHeight/2);return 100-Math.round(100*t/this._paletteHeight)},_calculateColorSaturation:function(e){var t=Math.floor(e.left+this._paletteHandleWidth/2);return Math.round(100*t/this._paletteWidth)},_updateColorFromHsv:function(e,t,n){var i=this._currentColor.a;this._currentColor=new s("hsv("+[e,t,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=i("
    ").addClass("dx-colorview-hue-scale-wrapper").appendTo(e),this._$hueScale=i("
    ").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=i("
    ").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,f,{area:this._$hueScaleWrapper,allowMoveByClick:!0,direction:"vertical",onDrag:function(){this._updateByDrag=!0,this._updateColorHue(a.locate(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}.bind(this)}),this._hueScaleHandleHeight=this._$hueScaleHandle.height(),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var e=this._hueScaleWrapperHeight,t=this._hueScaleHandleHeight,n=(e-t)*(360-this._currentColor.hsv.h)/360;e=360&&(this._isTopColorHue=!0,t=0),this._updateColorFromHsv(t,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=i("
    ").addClass("dx-colorview-controls-container").appendTo(e)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=i("
    ").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),t=i("
    ").addClass("dx-colorview-color-preview-container-inner").appendTo(e);this._$currentColor=i("
    ").addClass([x,w].join(" ")),this._$baseColor=i("
    ").addClass([x,b].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),t.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+_).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:h,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:l.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:l.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:l.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(e){var t=i("
    "),n=i("