/*! * DevExtreme (dx.all.js) * Version: 16.1.5 * Build date: Mon Jul 25 2016 * * Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict";!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(586)},function(e,t){e.exports=jQuery},function(e,t,n){var i;i=function(e,t,i){var o,a=n(1),r=n(34),s=function(e){return null!==e&&void 0!==e},l=function(e){return"string"===a.type(e)},c=function(e){return"number"==typeof e&&isFinite(e)||a.isNumeric(e)},d=function(e){return"object"===a.type(e)},u=function(e){return"array"===a.type(e)},h=function(e){return"date"===a.type(e)},p=function(e){return"boolean"===a.type(e)},f=function(e){return"function"===a.type(e)},_=function(e){return-1===a.inArray(a.type(e),["object","array","function"])},g=function(e){return c(e)&&-1!==e.toString().indexOf("e")},m=function(e,t){return s(e)?e:t},v=function(e){var t=e||r().rtlEnabled;return t?"right":"left"},x=function(e,t){var n,i=a.Deferred(),o=t||this,r={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(o)}},s=function(){var t=e.call(o);t&&t.done&&a.isFunction(t.done)?t.done(function(){i.resolveWith(o)}):i.resolveWith(o)};return n=(arguments[2]||setTimeout)(s,"number"==typeof t?t:0),r},w=[],y=[],b=[],C=function(e,t,n){if(o&&o!==e)return w.push(t),y.push(e),n=n||a.Deferred(),b.push(n),n;var i=o,r=b.length;o=e;var s=t();return s||(b.length>r?s=a.when.apply(a,b.slice(r)):n&&n.resolve()),o=i,n&&s&&s.done&&s.done(n.resolve).fail(n.reject),!o&&w.length&&("render"===y.shift()?k:S)(w.shift(),b.shift()),s},k=function(e,t){return C("render",e,t)},S=function(e,t){return C("update",e,t)},T=function(e){return function(){var t=this;return C("render",function(){return e.call(t)})}},I=function(e){return function(){var t=this;return C("update",function(){return e.call(t)})}},D=function(e,t,n){var i=[],o=0;return a.each(t,function(t,r){var s=0,l=n?n(r):r;a.each(e,function(e,t){var n=l[e];if(void 0!==n)return E(n,t)?void s++:(s=-1,!1)}),o>s||(s>o&&(i.length=0,o=s),i.push(r))}),i},E=function(e,t){if(a.isArray(e)&&a.isArray(t)){var n=!1;return a.each(e,function(e,i){return i!==t[e]?(n=!0,!1):void 0}),!n}return e===t},A=function(e){switch(typeof 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}},B=function(e){switch(typeof 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}},M=function(e){var t=l(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9]/g);return n&&a.each(n,function(e,n){t=t.replace(n,"_"+n.charCodeAt()+"_")}),t};t.isDefined=s,t.isString=l,t.isNumber=c,t.isObject=d,t.isArray=u,t.isDate=h,t.isBoolean=p,t.isFunction=f,t.isPrimitive=_,t.isExponential=g,t.ensureDefined=m,t.executeAsync=x,t.deferRender=k,t.deferRenderer=T,t.deferUpdate=S,t.deferUpdater=I,t.splitPair=A,t.splitQuad=B,t.findBestMatches=D,t.getDefaultAlignment=v,t.normalizeKey=M}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(10),r=n(135),s=new r,l=function(e,t,n){n?t[e]=n:n=t,n.publicName(e),s.fire(e,n)};l.callbacks=s;var c=function(e,t){o.fn[e]=function(n){var i,r="string"==typeof n;if(r){var s=n,l=o.makeArray(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[s],r=o.apply(n,l);void 0===i&&(i=r)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};s.add(c),i.exports=l}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(10),r=o.event,s=r.fixHooks,l=function(){var e={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(t){var n="other";return o.each(e,function(e){return this.test(t.type)?(n=e,!1):void 0}),n}}(),c=function(e){return"dx"===l(e)},d=function(e){return"mouse"===l(e)},u=function(e){return"touch"===l(e)},h=function(e){return"pointer"===l(e)},p=function(e){return d(e)||(h(e)||c(e))&&"mouse"===e.pointerType},f=function(e){return u(e)||(h(e)||c(e))&&"touch"===e.pointerType},_=function(e){return"keyboard"===l(e)},g=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},m=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},v=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},x=function(e){return u(e)?(e.originalEvent.touches||[]).length:c(e)?(e.pointers||[]).length:0},w=function(e){var t=o(e.target),n=t.is("input, textarea, select");return t.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")?!0:"dxmousewheel"===e.type?t.is("input[type='number'], textarea, select")&&t.is(":focus"):p(e)?n||e.which>1:f(e)?n&&t.is(":focus"):void 0},y=function(e,t){for(var n=o.Event(e),i=s[e.type]||r.mouseHooks,a=i.props?r.props.concat(i.props):r.props,l=a.length;l--;){var c=a[l];n[c]=e[c]}return t&&o.extend(n,t),i.filter?i.filter(n,e):n},b=function(e){var t=y(e.originalEvent,e);return r.trigger(t,null,e.delegateTarget||t.target),t},C=function(e,t){if(!t)throw a.Error("E0017");return"string"==typeof e?-1===e.indexOf(" ")?e+"."+t:C(e.split(/\s+/g),t):(o.each(e,function(n,i){e[n]=i+"."+t}),e.join(" "))};i.exports={eventSource:l,isPointerEvent:h,isMouseEvent:p,isTouchEvent:f,isKeyboardEvent:_,isFakeClickEvent:g,hasTouches:x,eventData:m,eventDelta:v,needSkipEvent:w,createEvent:y,fireEvent:b,addNamespace:C}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(10),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,o=this;if(!e)return o;for(n in e)i=e[n],t="function"==typeof o.prototype[n]&&"function"==typeof i,o.prototype[n]=t?a(o.parent.prototype,n,i):i;return o},l=function(){var e,t,n,i=this;for(n=0;n1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},_=a.inherit({ctor:function(e){this._window=e&&e.window||window,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=o.Callbacks(),this._recalculateOrientation(),s.add(o.proxy(this._recalculateOrientation,this))},current:function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,this.changed.fire(),void("win"===this._currentDevice.platform&&8===this._currentDevice.version[0]&&r.log("W0010","the 'win8' theme","16.1","Use the 'win10' theme instead."));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 o.extend({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(e){var t=[],n=this._realDevice;return e=e||this.current(),e.deviceType&&(t.push("dx-device-"+e.deviceType),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-"+n.platform),n.version&&n.version.length&&t.push("dx-device-"+n.platform+"-"+n.version[0]),g.isSimulator()&&t.push("dx-simulator"),u().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),o(e).addClass(this._deviceClasses)},detachCssClasses:function(e){o(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||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}),o.isPlainObject(e))return this._fromConfig(e);var t;if(e){if(t=h[e],!t)throw r.Error("E0005")}else t=navigator.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return(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=c();if(e){var t=e.getItem("dx-force-device");try{return o.parseJSON(t)}catch(e){return t}}},_fromConfig:function(e){var t=o.extend({},p,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 o.extend(t,n)},_fromUA:function(e){var t;if(o.each(f,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=p;return i.mac=n,i},_changeOrientation:function(){var e=o(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=o(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(l),g=new _;d.changeCallback.add(function(e,t){g.detachCssClasses(t),g.attachCssClasses(e)}),g.isForced()||"win"!==g.current().platform||g.current({version:[10]}),i.exports=g}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){for(var n,i=0,o=e.length,a=[];o>i;)n=t(e[i],i),null!==n&&a.push(n),i++;return a}function a(e,t){return o(t,function(t){return e[t]?e[t]:null})}function r(e,t,n,i){var o=i;return g(t,function(t,i){e[i]&&(e[i]-=n,o-=n)}),o}function s(e){return String(e).toLowerCase()}function l(e){e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right)}function c(e){return e>-b&&+b>e?e:0}function d(e){var t=c(E(e.x)),n=c(E(e.y)),i=c(A(e.width+e.x)),o=c(A(e.height+e.y)),a={x:t,y:n,width:i-t,height:o-n};return a.isEmpty=!(a.x||a.y||a.width||a.height),a}function u(e,t,n){var i=O(S(n*C).toFixed(3)),o=O(T(n*C).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,c=I(a*i)+I(r*o),u=I(a*o)+I(r*i),h=t[0]+(s-t[0])*i+(l-t[1])*o,p=t[1]-(s-t[0])*o+(l-t[1])*i;return d({x:h-c,y:p-u,width:2*c,height:2*u})}var h=n(1),p=n(2),f=p.isDefined,_=h.inArray,g=h.each,m=Math,v=m.round,x=Math.sqrt,w=h.extend,y=Math.PI,b=1e10,C=y/180,k=Math.LN10,S=Math.cos,T=Math.sin,I=Math.abs,D=Math.log,E=Math.floor,A=Math.ceil,B=Math.max,M=window.isNaN,O=window.Number,P=window.NaN,R=p.isNumber,V=p.isExponential,F=function(e){var t,n,i,o=e.toString(),a=o.indexOf(".");return V(e)?(i=j(e),0>i?Math.abs(i):0):-1!==a?(n=a+1,t=o.substring(n,n+20),t.length):0},L=function(e,t){return e?Math.log(e)/Math.log(t):P},H=function(e,t){return Math.pow(t,e)},z=function(e){return(e%360+360)%360},N=function(e){return 90-e},W=function(e){return y*e/180},G=function(e){var t=W(e);return{cos:S(t),sin:T(t)}},$=1e-14,q=function(e,t,n,i){var o=n-e,a=i-t;return Math.sqrt(a*a+o*o)},j=function(e){var t,n=I(e);return M(n)?P:n>0?(n=D(n)/k,t=A(n),$>t-n?t:E(n)):0},U=function(e,t,n){var i,o=B(j(e),j(t)),a=-j(I(t-e)/n);return M(o)||M(a)?null:(I(o)<=4?(i="fixedPoint",0>a&&(a=0),a>4&&(a=4)):(i="exponential",a+=o-1,a>3&&(a=3)),{type:i,precision:a})},K=function(e){var t,n;return R(e)&&(t=e.toString(),n=t.indexOf("."),n>=0)?V(e)?t.substr(n+1,t.indexOf("e")-n-1):(t=e.toFixed(20),t.substr(n+1,t.length-n+1)):""},Y=function(e){var t,n=K(e);if(n)for(t=0;t20&&(t=20),R(e)?O(V(e)?e.toExponential(t):e.toFixed(t)):void 0},Z=function(e,t,n){var i=F(e),o=F(t);return Q(n,o>i?o:i)},J=function(e){return e.toExponential().split("e")[1]};h.extend(t,{decreaseGaps:function(e,t,n){var i;do i=a(e,t),i.push(m.ceil(n/i.length)),n=r(e,t,m.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:s,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;n>t;++t)i[s(e[t])]=1;return function(e,t){var n=s(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return g(e||{},function(e,n){/^(cursor|opacity)$/i.test(e)||(e="color"===e?"fill":"font-"+e),t[e]=n}),t},convertPolarToXY:function(e,t,n,i){var o,a=90;return n=f(n)?n+t-a:0,o=G(n),{x:v(e.x+i*o.cos),y:v(e.y+i*o.sin)}},convertXYToPolar:function(e,t,n){var i=q(e.x,e.y,t,n),o=m.atan2(n-e.y,t-e.x);return{phi:v(z(180*o/m.PI)),r:v(i)}},processSeriesTemplate:function(e,t){var n,i,a,r=p.isFunction(e.customizeSeries)?e.customizeSeries:h.noop,s=e.nameField||"series",l={},c=[],d=0;for(i=t.length;i>d;d++)a=t[d],s in a&&(n=l[a[s]],n||(n=l[a[s]]={name:a[s],data:[]},c.push(n.name)),n.data.push(a));return o(c,function(e){var t=l[e];return h.extend(t,r.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(!(e&&e.length>0))return{};t=f(t)?t:e[0],n=f(n)?n:e[e.length-1];var i,a,r,s,l=o(e,function(e){return f(e)?e.valueOf():null}),c=f(t)?_(t.valueOf(),l):0,d=f(n)?_(n.valueOf(),l):e.length-1,u=!1;return 0>c&&(c=0),0>d&&(d=e.length-1),c>d&&(a=d,d=c,c=a,u=!0),i=e.slice(c,d+1),s=i.length,r=s>0,{categories:r?i:null,start:r?i[u?s-1:0]:null,end:r?i[u?0:s-1]:null,inverted:u}},setCanvasValues:l,updatePanesCanvases:function(e,t,n){var i=0;g(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var o=0,a=e.padding||10,r=n?t.width-t.left-t.right:t.height-t.top-t.bottom,s=(r-a*(e.length-1))/i,c=n?"left":"top",d=n?"right":"bottom";g(e,function(e,n){var i=v(n.weight*s);n.canvas=n.canvas||{},w(n.canvas,{deltaLeft:0,deltaRight:0,deltaTop:0,deltaBottom:0},t),n.canvas[c]=t[c]+o,n.canvas[d]=t[d]+(r-i-o),o=o+i+a,l(n.canvas)})},unique:function(e){var t={};return o(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:o,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=n.x,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=v(x(o*o+a*a-r*r)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-e.width),y:e.y+t}}}),t.getPrecision=F,t.getLog=L,t.raiseTo=H,t.normalizeAngle=z,t.convertAngleToRendererSpace=N,t.degreesToRadians=W,t.getCosAndSin=G,t.getDecimalOrder=j,t.getAppropriateFormat=U,t.getDistance=q,t.getFraction=K,t.adjustValue=X,t.roundValue=Q,t.applyPrecisionByMinDelta=Z,t.getSignificantDigitPosition=Y,t.getPower=J,t.rotateBBox=u,t.normalizeBBox=d}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(75),r=n(26).format,s=n(29).humanize;n(210);var l=o.extend(!0,{},n(296),n(297),n(298),n(299)),c={},d=a({_dictionary:l,locale:function(){var e="en";return function(t){return t?void(e=t):e}}(),load:function(e){o.extend(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,function(e,n,o,a){var r,l=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(c[a]=s(a)),n+(r||l)})},_messageLoaded:function(e,t){return void 0!==this._dictionary[t||this.locale()][e]},localizeNode:function(e){var t=this;o(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):o(n).is("iframe")||(o.each(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),o(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?c:o.extend({},c,this.getMessagesByLocales()[this.locale()])},getFormatter:function(e,t){var n=this._dictionary[t||this.locale()],i=n&&n[e];return i?function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(i),r.apply(this,e)}:void 0},format:function(e){var t=this.getFormatter(e);return t&&t()||""}});i.exports=d}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(6),r=n(11),s=n(74),l=n(4),c=n(13),d=n(77),u=n(60),h="dxclick",p=10,f=Math.abs,_=function(e){return o(e).is("input, textarea, select, button ,:focus, :focus *")},g={requestAnimationFrame:s.requestAnimationFrame},m=d.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(o(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=l.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||r.resetActiveElement(),this._accept(e),void g.requestAnimationFrame(o.proxy(function(){this._fireClickEvent(e)},this)))},_eventOutOfElement:function(e,t){var n=e.target,i=!o.contains(t,n)&&t!==n,a=l.eventDelta(l.eventData(e),this._startEventData),r=f(a.x)>p||f(a.y)>p;return i||r},_fireClickEvent:function(e){this._fireEvent(h,e,{target:r.closestCommonParent(this._startTarget,e.target)})}});!function(){function e(e){return n||o(e.target).closest("."+t).length}var t="dx-native-click",n=a.real().generic,i=null;m=m.inherit({configurate:function(e){this.callBase(e),e.useNative&&this.getElement().addClass(t)},start:function(t){i=null,e(t)||this.callBase(t)},end:function(t){e(t)||this.callBase(t)},cancel:function(){i=!0}});var r=function(t){t.which&&1!==t.which||i||!e(t)||l.fireEvent({type:h,originalEvent:t})};o(document).on(l.addNamespace("click","NATIVE_DXCLICK_STRATEGY"),r)}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,i=function(e){t=e.target,n=e.isDefaultPrevented()},s=function(e){var i=o(e.target);n||!t||i.is(t)||o(t).is("label")||!_(i)||r.resetActiveElement(),t=null,n=!1},d="NATIVE_CLICK_FIXER";o(document).on(l.addNamespace(c.down,d),i).on(l.addNamespace("click",d),s)}}(),u({emitter:m,bubble:!0,events:[h]}),t.name=h}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(88);i.exports=o({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The onCustomItemCreating action should return an item or Promise of jQuery Deferred object resolved when an item is created",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined"})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(10),r=n(2),s=function(){var e=document.activeElement;e&&e!==document.body&&e.blur&&e.blur()},l=function(){return window.getSelection?window.getSelection():document.selection?document.selection:null},c=function(){var e=l();e&&"Caret"!==e.type&&(e.empty?e.empty():e.removeAllRanges&&e.removeAllRanges())},d=function(e,t){for(var n=o(e).parents().addBack(),i=o(t).parents().addBack(),a=Math.min(n.length,i.length)-1,r=a;r>=0;r--)if(n.eq(r).is(i.eq(r)))return n.get(r)},u=function(e){var t=".dx-visibility-change-handler";return function(n){var i=o(n||"body"),a=i.find(t).add(i.filter(t));a.each(function(){o(this).triggerHandler(e)})}},h=function(){var e=0;return function(t){return(t||"")+e++}}(),p="data-options",f=function(e){var t,n=o(e).attr(p);"{"!==o.trim(n).charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw a.Error("E3018",e,n)}return t},_=function(e,t){var n=[],i="["+p+"]";return e.find(i).addBack(i).each(function(e,i){var a=o(i),r=f(i);for(var s in r)(!t||o.inArray(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},g=function(e){if(!window.WinJS)return o(e);var t=o("
");return window.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},m=function(e){var t=r.isDefined(e)&&(e.nodeType||e.jquery)?o(e):o("
").html(e).contents();return 1===t.length&&t.is("script")&&(t=m(t.html())),t},v=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},x=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||window.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))};t.resetActiveElement=s,t.createMarkupFromString=g,t.triggerShownEvent=u("dxshown"),t.triggerHidingEvent=u("dxhiding"),t.triggerResizeEvent=u("dxresize"),t.getElementOptions=f,t.createComponents=_,t.normalizeTemplateElement=m,t.clearSelection=c,t.getSelection=l,t.uniqueId=h,t.closestCommonParent=d,t.clipboardText=x,t.toggleAttr=v}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){return b[y(e)]||""}function a(e,t,n){var i=new Date(e.getTime()),o=d(t)?H(t.toLowerCase()):t;return o.years&&i.setFullYear(i.getFullYear()+o.years*n),o.quarters&&i.setMonth(i.getMonth()+3*o.quarters*n),o.months&&i.setMonth(i.getMonth()+o.months*n),o.weeks&&i.setDate(i.getDate()+7*o.weeks*n),o.days&&i.setDate(i.getDate()+o.days*n),o.hours&&i.setHours(i.getHours()+o.hours*n),o.minutes&&i.setMinutes(i.getMinutes()+o.minutes*n),o.seconds&&i.setSeconds(i.getSeconds()+o.seconds*n),o.milliseconds&&i.setMilliseconds(e.getMilliseconds()+o.milliseconds*n),i}var r=n(1),s=n(2),l=n(29),c=s.isObject,d=s.isString,u=s.isDate,h=s.isDefined,p=l.camelize,f=["millisecond","second","minute","hour","day","week","month","quarter","year"],_=function(e){switch(e){case"millisecond":return 1;case"second":return 1e3*_("millisecond");case"minute":return 60*_("second");case"hour":return 60*_("minute");case"day":return 24*_("hour");case"week":return 7*_("day");case"month":return 30*_("day");case"quarter":return 3*_("month");case"year":return 365*_("day");default:return 0}},g=function(e,t,n){var i=t.getTime()-e.getTime(),o=_(n)||1;return Math.floor(i/o)},m=function(e,t){var n=y(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},v=function(e){var t,n,i,o=["millisecond","second","minute","hour","day","month","year"],a={};for(t=o.length-1;t>=0;t--)i=o[t],n=Math.floor(e/_(i)),n>0&&(a[i+"s"]=n,e-=w(i,n));return a},x=function(e){var t=0;return c(e)&&r.each(e,function(e,n){t+=w(e.substr(0,e.length-1),n)}),d(e)&&(t=w(e,1)),t},w=function(e,t){return _(e)*t},y=function(e){var t,n=-1;return d(e)?e:c(e)?(r.each(e,function(e,i){for(t=0;tn&&(n=t)}),f[n]):""},b={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},C=function(e){return Math.floor(e/3)},k=function(e){return 3*C(e)},S=function(e,t,n){var i,o=new Date(e.getTime()),a=y(t);switch(a){case"second":e.setMilliseconds(0);break;case"minute":e.setSeconds(0,0);break;case"hour":e.setMinutes(0,0,0);break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e.setDate(e.getDate()-e.getDay()),e.setHours(0,0,0,0);break;case"quarter":i=k(e.getMonth()),e.getMonth()!==i&&e.setMonth(i),e.setDate(1),e.setHours(0,0,0,0)}n&&"hour"!==a&&"minute"!==a&&"second"!==a&&J(o,e)},T=function(e){return le.correctDateWithUnitBeginning(e,"day"),e},I=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()},r.each(n,function(e,t){t&&i++}),n.count=i,n},D=function(e,t,n){var i=n?-1:1;return u(e)?a(e,t,i):e+t*i},E=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),1):"year"===e?new Date(t.getFullYear(),0,t.getDate()):"decade"===e?new Date(q(t),t.getMonth(),t.getDate()):"century"===e?new Date($(t),t.getMonth(),t.getDate()):void 0},A=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),O(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(q(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date($(t)+90,t.getMonth(),t.getDate()):void 0},B=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(q(t)),"century"===e&&n.setFullYear($(t)),n))},M=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),O(t));return"month"===e?n:(n.setMonth(11),n.setDate(O(n)),"year"===e?n:("decade"===e&&n.setFullYear(q(t)+9),"century"===e&&n.setFullYear($(t)+99),n))},O=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},P=function(e,t,n){return le[p("same "+e)](t,n)},R=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},V=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},F=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},L=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},H=function(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.days=7;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t},z=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},N=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},W=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},G=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},$=function(e){return e&&e.getFullYear()-e.getFullYear()%100},q=function(e){return e&&e.getFullYear()-e.getFullYear()%10},j=function(){return"yyyy/M/d"},U=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},K=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},Y=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},X=function(e,t){var n=le.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},Q=function(e,t,n,i){return"date"===i&&(t=t&&new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=n&&new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=e&&new Date(e.getFullYear(),e.getMonth(),e.getDate())),Z(e,t,n)===e},Z=function(e,t,n){var i=e;return h(e)?(h(t)&&t>e&&(i=t),h(n)&&e>n&&(i=n),i):e},J=function(e,t){if(h(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()))}},ee=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},te=function(e){return new Date(e)},ne="number",ie="yyyy'/'MM'/'dd",oe="yyyy'/'MM'/'dd HH:mm:ss",ae=function(e){return s.isNumber(e)?ne:s.isString(e)?e.indexOf(":")>=0?oe:ie:void 0},re=function(e,t,n){var i;return t&&t!==ne&&t!==ie&&t!==oe?void 0!==e?n(e,t):void 0:(i=t===ne?e:!u(e)&&Date.parse(e),i?new Date(i):e)},se=function(e,t,n){return t===ne?e&&e.valueOf&&e.valueOf():t?n(e,t):e},le={dateUnitIntervals:f,convertMillisecondsToDateUnits:v,dateToMilliseconds:x,getNextDateUnit:m, convertDateUnitToMilliseconds:w,getDateUnitInterval:y,getDateFormatByTickInterval:o,getDatesDifferences:I,correctDateWithUnitBeginning:S,trimTime:T,addDateInterval:a,addInterval:D,getDateIntervalByString:H,sameMonthAndYear:z,sameMonth:z,sameYear:N,sameDecade:W,sameCentury:G,sameView:P,getDifferenceInMonth:F,getDifferenceInMonthForCells:L,getFirstYearInDecade:q,getFirstDecadeInCentury:$,getShortDateFormat:j,getViewFirstCellDate:E,getViewLastCellDate:A,getViewDown:V,getViewUp:R,getLastMonthDay:O,getLastMonthDate:K,getFirstMonthDate:U,getFirstWeekDate:Y,normalizeDateByWeek:X,getQuarter:C,getFirstQuarterMonth:k,dateInRange:Q,normalizeDate:Z,getViewMinBoundaryDate:B,getViewMaxBoundaryDate:M,fixTimezoneGap:J,getTimezonesDifference:ee,makeDate:te,deserializeDate:re,serializeDate:se,getDateSerializationFormat:ae,getDatesInterval:g};i.exports=le}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(17),r=n(6),s=n(42),l=n(201),c=n(275),d=n(199),u=n(274),h=function(){if(a.pointerEvents)return c;var e=r.real();return!a.touch||e.tablet||e.phone?a.touch?l:d:u}();o.each(h.map,function(e,t){s(e,new h(e,t))}),i.exports={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(37),r=n(75),s=n(10);n(210);var l={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"},c=function(e){var t=new Date,n=e.split(" "),i=n[0].split(":"),o=Number(i[0]),a=Number(i[1]),r=Number(i[2])||0;return/^pm$/i.test(n[1])&&(o+=12),new Date(t.getFullYear(),t.getMonth(),t.getDate(),o,a,r)},d=function(e){return new Date(e.valueOf()+60*e.getTimezoneOffset()*1e3)},u=["January","February","March","April","May","June","July","August","September","October","November","December"],h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=function(e){return e.getHours()>=12?"PM":"AM"},f=function(e){return e%12||12},_=function(e,t){return a.format(e,{type:"decimal",precision:t})},g={millisecond:function(e){return _(e.getMilliseconds(e),3)},second:function(e){return _(e.getSeconds(),2)},minute:function(e){return _(e.getMinutes(),2)},h:function(e){return _(f(e.getHours()),1)},hh:function(e){return _(f(e.getHours()),2)},hour:function(e){return _(e.getHours(),2)},day:function(e){return e.getDate()},dayofweek:function(e){return h[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return _(e.getMonth()+1,2)},month:function(e){return u[e.getMonth()]},year:function(e){return e.getFullYear()},shortyear:function(e){return String(e.getFullYear()).substr(2,2)},shorttime:function(e){return g.h(e)+":"+g.minute(e)+" "+p(e)},shortdate:function(e){return[g.M(e),g.day(e),g.year(e)].join("/")},shortdateshorttime:function(e){return[g.shortdate(e),g.shorttime(e)].join(", ")},mediumdatemediumtime:function(e){return[g.monthandday(e),g.shorttime(e)].join(", ")},monthandyear:function(e){return[g.month(e),g.year(e)].join(" ")},monthandday:function(e){return[g.month(e),g.day(e)].join(" ")},longdate:function(e){return g.dayofweek(e)+", "+g.month(e)+" "+g.day(e)+", "+g.year(e)},longtime:function(e){return[g.h(e),g.minute(e),g.second(e)].join(":")+" "+p(e)},longdatelongtime:function(e){return[g.longdate(e),g.longtime(e)].join(", ")},d:function(e){return _(g.day(e),1)},dd:function(e){return _(g.day(e),2)},"d MMMM":function(e){return g.day(e)+" "+g.month(e)},"yyyy/M/d":function(e){return[g.year(e),g.M(e),g.day(e)].join("/")},"yyyy/MM/dd":function(e){return[g.year(e),g.MM(e),g.dd(e)].join("/")},"dd.MM.yyyy":function(e){return[g.dd(e),g.MM(e),g.year(e)].join(".")},"HH:mm":function(e){return[g.hour(e),g.minute(e)].join(":")},"HH:mm:ss":function(e){return[g["HH:mm"](e),g.second(e)].join(":")},"h:mm:ss":function(e){return[g.h(e),g.minute(e),g.second(e)].join(":")},"h:mm:ss:SSS":function(e){return[g.h(e),g.minute(e),g.second(e),g.SSS(e)].join(":")},"yyyy/MM/dd HH:mm:ss":function(e){return[g["yyyy/MM/dd"](e),g["HH:mm:ss"](e)].join(" ")},"yyyy-MM-dd hh:mm:ss.SSS a":function(e){return[[g.year(e),g.MM(e),g.dd(e)].join("-"),[g.hh(e),g.minute(e),g.second(e)].join(":")+"."+g.SSS(e),p(e)].join(" ")},"yyyy-MM-dd":function(e){return[g.year(e),g.MM(e),g.dd(e)].join("-")},yyyyMMddTHHmmss:function(e){return[g.year(e),g.MM(e),g.dd(e),"T",g.hour(e),g.minute(e),g.second(e)].join("")},"datetime-local":function(e){return g["yyyy-MM-dd"](e)+"T"+g["HH:mm:ss"](e)},"yyyy-MM-ddTHH:mm:ssZ":function(e){return g["datetime-local"](e)+"Z"},"yyyy-MM-ddTHH:mmZ":function(e){return g["yyyy-MM-dd"](e)+"T"+g.hour(e)+":"+g.minute(e)+"Z"},"dd/MM/yyyy":function(e){return[g.dd(e),g.MM(e),g.year(e)].join("/")},"yyyy MMMM d":function(e){return[g.year(e),g.month(e),g.day(e)].join(" ")},"EEEE, d":function(e){return[g.dayofweek(e),g.d(e)].join(", ")},"EEEE MM yy":function(e){return[g.dayofweek(e),g.MM(e),g.shortyear(e)].join(" ")},"d MMMM yyyy":function(e){return[g.day(e),g.month(e),g.year(e)].join(" ")},"E d":function(e){return g.E(e)+" "+g.day(e)},E:function(e){return w([g.dayofweek(e)],"abbreviated")[0]},EEE:function(e){return g.E(e)},"EEE hh":function(e){return[g.EEE(e),g.hh(e)].join(" ")},"ss SSS":function(e){return[g.second(e),g.SSS(e)].join(" ")},quarter:function(e){var t=e.getMonth();return t>=0&&3>t?"Q1":t>2&&6>t?"Q2":t>5&&9>t?"Q3":"Q4"},quarterandyear:function(e){return g.quarter(e)+" "+g.year(e)}},m=function(e){return"Z"!==e.slice(-1)&&(e+="Z"),d(new Date(e))},v={day:function(e){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),Number(e))},hour:function(e){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),Number(e))},minute:function(e){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),Number(e))},month:function(e){return new Date((new Date).getFullYear(),o.inArray(e,u))},monthandday:function(e){var t=e.split(" "),n=v.month(t[0]);return n.setDate(Number(t[1])),n},monthandyear:function(e){var t=e.split(" "),n=v.month(t[0]);return n.setYear(Number(t[1])),n},year:function(e){var t=new Date(new Date(0));return t.setUTCFullYear(Number(e)),d(t)},shortyear:function(e){var t=36,n=Number(e);return n+=n>t?1900:2e3,v.year(n)},shortdate:function(e){var t=e.split("/");if(3===t.length)return new Date(Number(t[2]),Number(t[0])-1,Number(t[1]))},longtime:function(e){return c(e)},shorttime:function(e){return c(e)},millisecond:function(e){return new Date(Number(e))},"yyyy MMMM d":function(e){var t=e.split(" ");if(3===t.length)return new Date(Number(t[0]),o.inArray(t[1],u),Number(t[2]))},"HH:mm":function(e){var t=e.split(":");return new Date(0,0,0,Number(t[0]),Number(t[1]),0,0)},"yyyy-MM-ddTHH:mm:ssZ":m,"yyyy-MM-ddTHH:mmZ":m,"datetime-local":m,mediumdatemediumtime:function(e){var t=e.split(", "),n=t[0].split(" "),i=t[1].split(" "),o=2===i.length?i.pop():void 0,a=v.month(n[0]);a.setDate(Number(n[1])),i=i[0].split(":");var r=Number(i[0]);switch(String(o).toLowerCase()){case"am":r=12===r?0:r;break;case"pm":r=12===r?12:r+12}return a.setHours(r),a.setMinutes(Number(i[1])),a}};o.each(l,function(e,t){t=t.replace(/'/g,""),g[t]=g[e],v[t]=v[e]});var x=function(e,t){return e[t.toLowerCase()]||e[t.replace(/'/g,"")]},w=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return o.map(e,function(e){return e.substr(0,n[t])})},y=r({getPatternByFormat:function(e){return l[e.toLowerCase()]},getMonthNames:function(e){return w(u,e)},getDayNames:function(e){return w(h,e)},getTimeSeparator:function(){return":"},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t?n=t:t.formatter?n=t.formatter:(t=t.type||t,n=x(g,t)),n)return n(e)}},parse:function(e,t){var n,i;if(e){if(!t)return new Date(e);if(t.parser)return t.parser(e);if((t.type||t.formatter)&&(t=t.type),t&&"function"!=typeof t&&(i=x(v,t)),i?n=i(e):(s.log("W0012"),n=new Date(e)),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});i.exports=y}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(17),r="dxTranslator",s=/matrix(3d)?\((.+?)\)/,l=/translate(?:3d)?\((.+?)\)/,c=function(e){var t=a.transform?p(e):h(e);return{left:t.x,top:t.y}},d=function(e,t){if(!a.transform)return void e.css(t);var n,i=t.left,o=t.top;void 0===i?(n=p(e),n.y=o||0):void 0===o?(n=p(e),n.x=i||0):(n={x:i||0,y:o||0,z:0},f(e,n)),e.css({transform:v(n)}),(u(i)||u(o))&&_(e)},u=function(e){return"string"===o.type(e)&&"%"===e[e.length-1]},h=function(e){var t;try{var n=e.css("top"),i=e.css("left"),o=e.position();e.css({transform:"none",top:0,left:0}),_(e);var a=e.position();t={x:o.left-a.left||parseInt(i)||0,y:o.top-a.top||parseInt(n)||0},e.css({top:n,left:i})}catch(e){t={x:0,y:0}}return t},p=function(e){var t=e.length?o.data(e.get(0),r):null;if(!t){var n=e.css("transform")||v({x:0,y:0}),i=n.match(s),a=i&&i[1];i?(i=i[2].split(","),"3d"===a?i=i.slice(12,15):(i.push(0),i=i.slice(4,7))):i=[0,0,0],t={x:parseFloat(i[0]),y:parseFloat(i[1]),z:parseFloat(i[2])},f(e,t)}return t},f=function(e,t){e.length&&o.data(e.get(0),r,t)},_=function(e){e.length&&o.removeData(e.get(0),r)},g=function(e){e.css({left:0,top:0,transform:"none"}),_(e)},m=function(e){var t=e.match(l);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},v=function(e){e.x=e.x||0,e.y=e.y||0;var t=u(e.x)?e.x:e.x+"px",n=u(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=d,t.locate=c,t.clearCache=_,t.parseTranslate=m,t.getTranslate=p,t.getTranslateCss=v,t.resetPosition=g}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(10),r=n(5),s=n(30),l=n(72),c=l.unwrap,d=l.isWrapped,u=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t){return"this"===t?e:e[t]},f=function(e,t,n,i){if("this"===t)throw new a.Error("E4016");var o=e[t];i.unwrapObservables&&d(o)?u(o,n):e[t]=n},_=function(e){return e=e||{},e.unwrapObservables=void 0!==e.unwrapObservables?e.unwrapObservables:!0,e},g=function(e,t){return t.unwrapObservables?c(e):e},m=function(e){if(arguments.length>1&&(e=o.makeArray(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=_(n);for(var i=n.functionsAsIs,a=g(e,n),r=0;rn;n++){var a=e[n];t[a]=m(a)}return function(e,n){var i;return o.each(t,function(t){var o,a,r,s,l=this(e,n);if(void 0!==l){for(o=i||(i={}),a=t.split("."),r=a.length-1,s=0;r>s;s++)o=o[a[s]]={};o[a[s]]=l}}),i}},x=function(e){e=e||"this",e=h(e);var t=e.lastIndexOf("."),n=m(e.substr(0,t)),i=e.substr(1+t);return function(e,t,a){a=_(a);var r=n(e,{functionsAsIs:a.functionsAsIs,unwrapObservables:a.unwrapObservables}),l=p(r,i);a.functionsAsIs||!o.isFunction(l)||d(l)?(l=g(l,a),!a.merge||!o.isPlainObject(t)||void 0!==l&&!o.isPlainObject(l)||t instanceof o.Event?f(r,i,t,a):(l||f(r,i,{},a),s.deepExtendArraySafe(g(p(r,i),a),t))):r[i](t)}},w=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof r&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=m,t.compileSetter=x,t.toComparable=w}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(29),r=n(6),s=a.camelize,l=["","Webkit","Moz","O","Ms"],c={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},d=document.createElement("dx").style,u={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},h=function(e,t){e=s(e,!0);for(var n,i=0,o=l.length;o>i;i++){var a=l[i],r=a+e,c=s(r);if(n=t(c,a),void 0===n&&(n=t(r,a)),void 0!==n)break}return n},p=function(e){return h(e,function(e){return e in d?e:void 0})},f=function(e){return h(e,function(e,t){return e in d?c[t]:void 0})},_=function(e){return!!p(e)},g=function(){var e=r.real(),t=e.platform,n=e.version,i=n&&n[0]<4&&"android"===t,a=!i&&o.inArray(t,["ios","android","win"])>-1||e.mac;return a},m=function(e){if("text"===e)return!0;var t=document.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},v="ontouchstart"in window&&!("callPhantom"in window),x=!!window.navigator.pointerEnabled||!!window.navigator.msPointerEnabled,w=!!window.navigator.maxTouchPoints||!!window.navigator.msMaxTouchPoints;t.touchEvents=v,t.pointerEvents=x,t.touch=v||x&&w,t.transform=_("transform"),t.transition=_("transition"),t.transitionEndEventName=u[p("transition")],t.animation=_("animation"),t.nativeScrolling=g(),t.winJS="WinJS"in window,t.styleProp=p,t.stylePropPrefix=f,t.supportProp=_,t.hasKo=!!window.ko,t.inputType=m}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(19),r=n(52),s=n(2),l=n(11),c=n(6),d=n(40),u=n(46),h=n(186),p=n(306),f=n(187),_=n(153),g=n(166),m=n(95),v=n(4),x=n(125),w=n(70),y=n(9),b="UIFeedback",C="dx-widget",k="dx-state-active",S="dx-state-disabled",T="dx-state-invisible",I="dx-state-hover",D="dx-state-focused",E=30,A=400,B="Focus",M="template",O=3,P="[data-options*='dxTemplate']",R="dx-template-wrapper",V=void 0!==document.onbeforeactivate,F=d.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return o.extend(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,watchMethod:o.noop,_keyboardProcessor:void 0,templateProvider:_,_templates:{}})},_feedbackShowTimeout:E,_feedbackHideTimeout:A,_init:function(){this.callBase(),this._tempTemplates=[],this._dynamicTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var e=this.option("_templates"),t=this.element().contents().filter(P),n={};t.each(function(e,t){var i=l.getElementOptions(t).dxTemplate;if(i){if(!i.name)throw a.Error("E0023");o(t).addClass(R).detach(),n[i.name]=n[i.name]||[],n[i.name].push(t)}}),o.each(n,o.proxy(function(t,n){var i=this._findTemplateByDevice(n);i&&(e[t]=this._createTemplate(i,this))},this))},_findTemplateByDevice:function(e){var t=s.findBestMatches(c.current(),e,function(e){return l.getElementOptions(e).dxTemplate})[0];return o.each(e,function(e,n){n!==t&&o(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("_templates"),t=this._getAnonymousTemplateName(),n=this.element().contents().detach(),i=n.filter(function(e,t){var n=t.nodeType===O,i=o.trim(o(t).text()).length<1;return!(n&&i)}),a=i.length<1;e[t]||a||(e[t]=this._createTemplate(n,this))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return M},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){if(o.isFunction(e)){var t=this;return new h(function(){var n=e.apply(t,arguments);return s.isDefined(n)?t._acquireTemplate(n,this,!0):new p},this)}return this._acquireTemplate(e,this)},_acquireTemplate:function(e,t,n){if(null==e)return this._createTemplate(l.normalizeTemplateElement(e),t);if(e instanceof u)return e;if(e.nodeType||e.jquery)return e=o(e),n&&!e.is("script")?new f(e,t):this._createTemplate(e,t);if("string"==typeof e){var i=this.option("_templates")[e];if(i)return i;var a=this._dynamicTemplates[e];if(a)return a;var r=this.option("templateProvider").getTemplates(this)[e];return r?r:this._createTemplate(l.normalizeTemplateElement(e),t)}return this._acquireTemplate(e.toString(),t)},_createTemplate:function(e,t){var n=this.option("templateProvider").createTemplate(e,t);return this._tempTemplates.push(n),n},_cleanTemplates:function(){var e=this;o.each(this.option("_templates"),function(t,n){e===n.owner()&&n.dispose()}),o.each(this._tempTemplates,function(e,t){t.dispose()})},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_render:function(){this.element().addClass(C),this.callBase(),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){l.toggleAttr(this.element(),"title",this.option("hint"))},_renderContent:function(){var e=this;s.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:o.noop,_fireContentReadyAction:function(){this._contentReadyAction()},_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_clean:function(){this._cleanFocusState(),this.callBase(),this.element().empty()},_toggleVisibility:function(e){this.element().toggleClass(T,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this.option("focusStateEnabled")&&!this.option("disabled")&&(this._renderFocusTarget(),this._attachFocusEvents(),this._attachKeyboardEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=v.addNamespace(y.name,b);e.off(t),this.option("accessKey")&&e.on(t,o.proxy(function(e){v.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())},this))},_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("."+S)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabindex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+B,n=v.addNamespace("focusin",t);n=n+" "+v.addNamespace("focusout",t),V&&(n=n+" "+v.addNamespace("beforeactivate",t)),e.off(n)},_attachFocusEvents:function(){var e=this.NAME+B,t=v.addNamespace("focusin",e),n=v.addNamespace("focusout",e);if(this._focusTarget().on(t,o.proxy(this._focusInHandler,this)).on(n,o.proxy(this._focusOutHandler,this)),V){var i=v.addNamespace("beforeactivate",e);this._focusTarget().on(i,function(e){o(e.target).is(m.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"]})({jQueryEvent:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({jQueryEvent:e})},_updateFocusState:function(e,t){var n=e.target;-1!==o.inArray(n,this._focusTarget())&&this._toggleFocusClass(t,o(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(D,e)},_hasFocusClass:function(e){var t=o(e||this._focusTarget());return t.hasClass(D)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor")||new g({element:this._keyboardEventBindingTarget(),focusTarget:this._focusTarget()});this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this)},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),a=i[n];if(void 0!==a){var r=o.proxy(a,this);return r(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabindex"),this._keyboardProcessor&&this._keyboardProcessor.dispose()},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=v.addNamespace(x.start,b),i=v.addNamespace(x.end,b);if(e._eventBindingTarget().off(n,t).off(i,t),e.option("hoverStateEnabled")){var a=new r(function(t){e._hoverStartHandler(t.event);var n=t.element;e._refreshHoveredElement(n)},{excludeValidators:["readOnly"]});e._eventBindingTarget().on(n,t,function(e){a.execute({element:o(e.target),event:e})}).on(i,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:o.noop,_hoverEndHandler:o.noop,_attachFeedbackEvents:function(){var e,t,n=this,i=n._activeStateUnit,a=v.addNamespace(w.active,b),s=v.addNamespace(w.inactive,b);if(n._eventBindingTarget().off(a,i).off(s,i),n.option("activeStateEnabled")){var l=function(e){var t=e.element,i=e.value,o=e.jQueryEvent;n._toggleActiveState(t,i,o)};n._eventBindingTarget().on(a,i,{timeout:n._feedbackShowTimeout},function(t){e=e||new r(l),e.execute({element:o(t.currentTarget),value:!0,jQueryEvent:t})}).on(s,i,{timeout:n._feedbackHideTimeout},function(e){t=t||new r(l,{excludeValidators:["disabled","readOnly"]}),t.execute({element:o(e.currentTarget),value:!1,jQueryEvent:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(k,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(I,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.element().toggleClass(S,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(o.isPlainObject(t[0]))return void o.each(t[0],o.proxy(function(t,n){this._setWidgetOption(e,[t,n])},this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var a=this[e+"OptionMap"];this[e].option(a?a(n):n,i)}},_createComponent:function(e,t,n){return n=n||{},this._extendConfig(n,{templateProvider:this.option("templateProvider"),_templates:this.option("_templates")}),this.callBase(e,t,n)},_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;case"_templates":case"templateProvider":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?void 0:n.toString(),l.toggleAttr(e.target,t,n)};if(o.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();o.each(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(){this._focusTarget().focus()},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return o.extend(n,i)}}});i.exports=F}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(88),a=n(10);i.exports=o(a.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' must be inheritor of DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' must be inheritor of DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' is not exists",E1007:"State storing can not be provided due to the restrictions of your browser",E1010:"A template should contain dxTextBox widget",E1011:"You have to implement 'remove' method in dataStore used by dxList to be able to delete items",E1012:"Editing type '{0}' with name '{1}' not supported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called when using a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"Type can not be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:"Markers option should be an array",E1023:"Routes option should be an array",E1024:"Google provider cannot be used in WinJS application",E1025:"This layout is too complex to render",E1026:"The 'custom' value is set to a summary item's summaryType option, but a function for calculating the custom summary is not assigned to the grid's calculateCustomSummary option",E1030:"Unknown dxScrollView refresh strategy: '{0}'",E1031:"Unknown subscription is detected in the dxScheduler widget: '{0}'",E1032:"Unknown start date is detected in an appointment of the dxScheduler widget: '{0}'",E1033:"Unknown step is specified for the scheduler's navigator: '{0}'",E1034:"The current browser does not implement an API required for saving files",E1035:"The editor could not be created because of the internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"Your browser does not support local storage for local web pages",E0139:"The cell position can not be calculated",W1001:"Key option can not be modified after initialization",W1002:"Item '{0}' you are trying to select does not exist",W1003:"Group with key '{0}' in which you are trying to select items does not exist",W1004:"Item '{0}' you are trying to select in 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."})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=n(16).toComparable,s=n(26),l=n(227),c=n(27),d=n(71),u={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()}},h=["year","month","day"];o.extend(t,l,function(){var e=function(){var e,t,n=arguments[1],i=this.calculateCellValue(n);return a.isDefined(i)?"date"===this.dataType?(t=arguments[0],u[t](i)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(i)/e)*e):void 0:null},n=function(e){return a.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:o.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},i=function(e,i,o){var a,r,s=this,l=p(s,o),c=n(e),d=t.getGroupInterval(s)[c.length-1];switch(d){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[l,"<",a];case"<=":return[l,"<",r];case">":return[l,">=",r];case">=":return[l,">=",a];case"<>":return[[l,"<",a],"or",[l,">=",r]];default:return[[l,">=",a],"and",[l,"<",r]]}},l=function(e,n,i){var o,r,s,l=this,c=p(l,i),d=(""+e).split("/"),u=Number(d[d.length-1]),h="exclude"===l.filterType,f=t.getGroupInterval(l);return"headerFilter"===i&&f&&a.isDefined(e)?(o=f[d.length-1],r=[c,h?"<":">=",u],s=[c,h?">=":"<",u+o],[r,h?"or":"and",s]):[c,n||"=",e]},p=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},f=function(e,t,n){var i=this,o=i.dataField;return a.isArray(e)&&a.isDefined(e[0])&&a.isDefined(e[1])?[[o,">=",e[0]],"and",[o,"<=",e[1]]]:void 0};return{formatValue:function(e,t){var n=d.format(e,t.format,t.precision)||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},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?e.lookup.calculateCellValue(t):t},getGroupRowSummaryText:function(e,n){var i,o,a="(";for(i=0;i0?", ":"")+t.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,precision:e.precision,getDisplayFormat:function(t){return n?s.format(n,t,e.columnCaption):t},customizeText:e.customizeText})},getKeyHash:function(e){if(a.isObject(e)||a.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},normalizeSortingInfo:function(e){e=e||[];var t,n;for(t=c.normalizeSortingInfo(e),n=0;n=0?(n=i.slice(0,t),n.push(r),n):n):a.isDefined(r)?a.isArray(r)?r:[r]:void 0},checkChanges:function(e,t){var n,i=0;for(n=0;n=0&&o.isFunction(n)&&n.columnIndex>=0?e.columnIndex===n.columnIndex:r(e)===r(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},combineFilters:function(e,t){var n,i=[];for(t=t||"and",n=0;n=a;a++)d>a&&(r=e.eq(a),s=r.offset(),c="rtl"===r.css("direction")),o={index:h,x:s?s.left+(!n&&c^a===d?r.outerWidth():0):0,y:s?s.top+(n&&a===d?r.outerHeight():0):0,columnIndex:h},!n&&a>0&&(l=e.eq(a-1).offset(),l.top=t.duration&&l.reject()}).off(p).on(p,function(){a.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+te._simulatedTransitionEndDelay),o.when(l,c).fail(o.proxy(function(){s.resolve()},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&&J(e,t.to)},_finishTransition:function(e,t){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():(o.isPlainObject(t.to)&&o.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e,t),this._cleanup(e,t)))}},w={initAnimation:function(e,t){J(e,t.from)},animate:function(e,t){var n=o.Deferred(),i=this;return t?(o.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[v]&&(t.from[v]=i._parseTransform(t.from[v]),t.to[v]=i._parseTransform(t.to[v])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:S(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),s.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=o.extend({},this.currentValue);n[v]&&(n[v]=o.map(n[v],function(e,t){return"translate"===t?r.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){e.off(p).on(p,function(){t.frameAnimation&&s.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return o.each(e.match(/(\w|\d)+\([^\)]*\)\s*/g),function(e,n){var i=r.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&&(s.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=s.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function(i,a){var r=o.isArray(a)?[]:{},s=function(n){var r=t/e.duration,s=t,l=1*i[n],c=a[n]-i[n],d=e.duration;return o.easing[e.easing](r,s,l,c,d)};return o.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1?!0:void(r[e]="object"==typeof t?n(i[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},y={initAnimation:function(e,t){},animate:function(e,t){return o.Deferred().resolve().promise()},stop:o.noop,isSynchronous:!0},b={transition:l.transition?x:w,frame:w,noAnimation:y},C=function(e){e=e||{};var t=e.strategy||"transition";return"css"!==e.type||l.transition||(t="noAnimation"),b[t]},k={linear:"cubic-bezier(0, 0, 1, 1)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},S=function(e){e=k[e]||e;var t=e.match(f);if(!t)return"linear";t=t.slice(1,5),o.each(t,function(e,n){t[e]=parseFloat(n)});var n="cubicbezier_"+t.join("_").replace(/\./g,"p");if(!o.isFunction(o.easing[n])){var i=function(e,t,n,i){var o=3*e,a=3*(n-e)-o,r=1-o-a,s=3*t,l=3*(i-t)-s,c=1-s-l,d=function(e){return e*(o+e*(a+e*r))},u=function(e){return e*(s+e*(l+e*c))},h=function(e){for(var t,n=e,i=0;14>i&&(t=d(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return o+e*(2*a+3*e*r)};return function(e){return u(h(e))}};o.easing[n]=function(e,n,o,a,r){return a*i(t[0],t[1],t[2],t[3])(n/r)+o}}return n},T=function(e,t,n,i){o.each(["from","to"],function(){if(!n(e[this]))throw a.Error("E0010",t,this,i)})},I=function(e,t){return T(e,t,function(e){return o.isPlainObject(e)},"a plain object")},D=function(e,t){return T(e,t,function(e){return"string"==typeof e},"a string")},E={setup:function(e,t){}},A={validateConfig:function(e){D(e,"css")},setup:function(e,t){}},B={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"}},M={validateConfig:function(e){I(e,"slide")},setup:function(e,t){var n=r.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=o.extend({of:window},B[t.direction]),Z(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),r.clearCache(e),l.transform||"static"!==e.css("position")||e.css("position","relative")},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0;var o={x:0,y:0};l.transform?o={x:n.left,y:n.top}:(t.left=n.left,t.top=n.top),t[v]=r.getTranslateCss(o)},_getRelativeValue:function(e){var t;return"string"==typeof e&&(t=_.exec(e))?parseInt(t[1]+"1")*t[2]:void 0}},O={setup:function(e,t){var n,i=t.from,a=o.isPlainObject(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:a},t.to={opacity:n}}},P={validateConfig:function(e){I(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,s="scale"in n?n.scale:0,l="scale"in i?i.scale:1;t.from={opacity:o};var c=r.getTranslate(e);t.from[v]=this._getCssTransform(c,s),t.to={opacity:a},t.to[v]=this._getCssTransform(c,l)},_getCssTransform:function(e,t){return r.getTranslateCss(e)+"scale("+t+")"}},R={custom:E,slide:M,slideIn:M,slideOut:M,fade:O,fadeIn:O,fadeOut:O,pop:P,css:A},V=function(e){var t=R[e.type];if(!t)throw a.Error("E0011",e.type);return t},F={type:"custom",from:{},to:{},duration:400,start:o.noop,complete:o.noop,easing:"ease",delay:0},L={duration:400,easing:"ease",delay:0},H=function(){var e=this,t=e.element,n=e.config;Z(t,n.from),Z(t,n.to),e.configurator.setup(t,n),t.data(g,e),te.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start&&n.start.apply(this,[t,n])},z=function(e){var t=e.element,n=e.config;t.removeData(g),n.complete&&n.complete.apply(this,[t,n]),e.deferred.resolveWith(this,[t,n])},N=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){z(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},W=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},G=function(e,t){var n="css"===t.type?L:F,i=o.extend(!0,{},n,t),a=V(i),r=C(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:H,start:N,stop:W,deferred:o.Deferred()};return o.isFunction(a.validateConfig)&&a.validateConfig(i),s},$=function(e,t){var n=o(e);if(!n.length)return o.Deferred().resolve().promise();var i=G(n,t);return q(n,i),i.deferred.promise()},q=function(e,t){var n=j(e);U(e,n),n.push(t),Y(e)||X(e,n)},j=function(e){return e.data(m)||[]},U=function(e,t){e.data(m,t)},K=function(e){e.removeData(m)},Y=function(e){return!!e.data(g)},X=function(e,t){if(t=j(e),t.length){var n=t.shift();0===t.length&&K(e),Q(n).done(function(){Y(e)||X(e)})}},Q=function(e){if(e.setup(),te.off||e.isSynchronous)e.start();else{e.startTimeout=setTimeout(function(){e.start()});var t=u.addNamespace(d,"dxFXStartAnimation");e.element.off(t).on(t,function(){clearTimeout(e.startTimeout)})}return e.deferred.promise()},Z=function(e,t){if(t&&t.position){var n=c.calculate(e,t.position),i=e.offset(),a=e.position();o.extend(t,{left:n.h.location-i.left+a.left,top:n.v.location-i.top+a.top}),delete t.position}},J=function(e,t){o.each(t,function(t,n){try{e.css(t,n)}catch(e){}})},ee=function(e,t){var n=o(e),i=j(n);o.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),Y(n)||X(n,i);var a=n.data(g);a&&a.stop(t),n.removeData(g),K(n)},te={off:!1,animationTypes:R,animate:$,createAnimation:G,isAnimating:Y,stop:ee,_simulatedTransitionEndDelay:100};i.exports=te}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(){var e,t=b("
",g).addClass("dx-theme-marker").appendTo(g.documentElement);try{return(e=t.css("font-family"))?(e=e.replace(/["']/g,""),e.substr(0,O.length)!==O?null:e.substr(O.length)):null}finally{t.remove()}}function a(e,t){function n(){w=null,t()}var i,o;w=e,r()?n():(o=b.now(),i=setInterval(function(){var e=r(),t=!e&&b.now()-o>15e3;t&&C.log("W0004",w),(e||t)&&(clearInterval(i),n())},10))}function r(){return!w||o()===w}function s(){var e=b(E,g);e.length&&(v={},m=b(k.createMarkupFromString(""),g),e.each(function(){var e=b(this,g),t=e.attr(A),n=e.attr("href"),i="true"===e.attr(B);v[t]={url:n,isActive:i}}),e.last().after(m),e.remove())}function l(e){var t=e.split("."),n=null;return v&&b.each(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?!1:void 0}),n}function c(e){try{e!==g&&(v=null)}catch(e){v=null}g=e}function d(e){e=e||{},c(e.context||document),s(),x=void 0,u(e)}function u(e){if(!arguments.length)return x=x||o();_(I(),x),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,i=e.loadCallback;if(x=e.theme||x,n&&!x&&(x=h(S.current())),x=l(x),x&&(t=v[x]),t)m.attr("href",v[x].url),i?a(x,i):w&&(w=x);else{if(!n)throw C.Error("E0021",x);i&&i()}f(T.originalViewPort(),x)}function h(e){var t=e.platform,n=e.version&&e.version[0];switch(t){case"ios":t+="7";break;case"android":t+="5";break;case"win":t+=n&&8===n?"8":"10"}return t}function p(e){e=e||u();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1])),t}function f(e,t){y=p(t).join(" "),b(e).addClass(y);var n=function(){var t=window.devicePixelRatio;if(t&&!(2>t)){var n=b("
");n.css("border",".5px solid transparent"),b("body").append(n),1===n.outerHeight()&&(b(e).addClass(M),y+=" "+M),n.remove()}};n()}function _(e,t){b(e).removeClass(y)}var g,m,v,x,w,y,b=n(1),C=n(19),k=n(11),S=n(6),T=n(51),I=T.value,D=T.changeCallback,E="link[rel=dx-theme]",A="data-theme",B="data-active",M="dx-hairlines",O="dx.";b.holdReady(!0),d({_autoInit:!0,loadCallback:function(){b.holdReady(!1)}}),b(function(){if(b(E,g).length)throw C.Error("E0022")}),D.add(function(e,t){_(t),f(e)}),S.changed.add(function(){d({_autoInit:!0})}),t.current=u,t.init=d,t.attachCssClasses=f,t.detachCssClasses=_,t.themeNameFromDevice=h,t.waitForThemeLoad=a,t.resetTheme=function(){m&&m.attr("href","about:blank"),x=null,w=null}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(88),a=n(10),r={},s=o(a.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 key type is detected: {0}",E4015:"Unknown entity name or alias is used: {0}",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}"}),l=null,c=function(e){r.errorHandler&&r.errorHandler(e)};r={errors:s,errorHandler:l,_errorHandler:c},i.exports=r}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(76),r=n(6),s=n(3),l=n(124),c=n(65),d=n(18),u=n(48),h=n(4),p=n(23),f=n(9),_="dx-button",g="dx-button-content",m="dx-button-has-text",v="dx-button-has-icon",x="dx-template-wrapper",w="content",y=100,b=d.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return o.extend(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase(),o.extend(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return o.extend(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",validationGroup:void 0,activeStateEnabled:!0,template:"content",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(p.current())},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return w},_feedbackHideTimeout:y,_render:function(){this.element().addClass(_),this._renderType(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase()},_renderInkRipple:function(){var e=!this.option("text")&&this.option("icon")||"back"===this.option("type"),t={};e&&o.extend(t,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=u.render(t)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,jQueryEvent:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderContentImpl:function(){var e=this.element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=o("
").addClass(g).appendTo(e),e.toggleClass(v,!!t.icon).toggleClass(m,!!t.text);var n=this._getTemplateByOption("template"),i=n.render(t,this._$content);i.hasClass(x)&&(this._$content.replaceWith(i),this._$content=i,this._$content.addClass(g))},_getContentData:function(){var e=this.option("icon"),t=this.option("text"),n="back"===this.option("type");return n&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=h.addNamespace(f.name,this.NAME);this._clickAction=this._createActionByOption("onClick"),this.element().off(t).on(t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({jQueryEvent:e,validationGroup:c.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;this.setAria("label",o.trim(n))},_renderType:function(){var e=this.option("type");e&&this.element().addClass("dx-button-"+e)},_refreshType:function(e){var t=this.option("type");e&&this.element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.element().hasClass(v)||"back"!==t||this._renderContentImpl()},_optionChanged:function(e){switch(e.name){case"onClick":this._renderClick();break;case"icon":case"text":this._renderContentImpl(),this._updateAriaLabel();break;case"type":this._refreshType(e.previousValue),this._renderContentImpl(),this._updateAriaLabel();break;case"template":this._renderContentImpl();break;case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$content}}).include(l);s("dxButton",b),i.exports=b}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=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],">")}}(),s=function(e){var t=a.splitPair(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),{h:n,v:i}},l=function(e){var t=a.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),r=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(o)||(o=n),isFinite(r)||(r=i),{top:i,right:o,bottom:r,left:n}},c=function(){var e,t,n,i=arguments[0],a=o.makeArray(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},d=function(){var e=function(e){return(e+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\><\|\=\!\:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),u=function(e){var t=/\s/g;return function(e){return!e||!e.replace(t,"")}}();t.encodeHtml=r,t.pairToObject=s,t.quadToObject=l,t.format=c,t.replaceAll=d,t.isEmpty=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){return/^(or|\|\||\|)$/i.test(e)}function a(e){return/^(and|\&\&|\&)$/i.test(e)}var r=n(1),s=n(16).toComparable,l=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2?!0:e[e.length-1]]},c=function(e){return r.isArray(e)||(e=[e]),r.map(e,function(e){return{selector:r.isFunction(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())}})},d=function(){var e={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},t=function(t){var n=e[t];return n?n:t};return function(e,n){return e.status<400?t(n):e.statusText}}(),u={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 e>t?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},h=function(){var e,t=0,n=function(){0===t&&(e=r.Deferred()),t++},i=function(){t--,1>t&&e.resolve()},o=function(){var n=0===t?r.Deferred().resolve():e;return n.promise()},a=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:a}}(),p=function(e,t,n){if(r.isArray(e)){for(var i,o=r.map(t,function(e,t){return t}),a=0;a>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|s>>6,isNaN(s)?64:63&s],t).join("")}return n},g=function(e){var t,n,i=[];for(n=0;nt?i.push(t):2048>t?i.push(192+(t>>6),128+(63&t)):65536>t?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):2097152>t&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},m={normalizeBinaryCriterion:l,normalizeSortingInfo:c,errorMessageFromXhr:d,aggregators:u,keysEqual:p,isDisjunctiveOperator:o,isConjunctiveOperator:a,processRequestResultLock:h,base64_encode:_};i.exports=m}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(303),r=n(19),s=n(41),l=n(2),c=n(155),d=n(38).DataSource,u="dxItemDeleting",h=a.inherit({_setOptionsByReference:function(){this.callBase(),o.extend(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return o.extend(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},_init:function(){this._initEditStrategy(),this.callBase(),this._selectedItemIndices=[],"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initEditStrategy:function(){var e=c;this._editStrategy=new e(this)},_forgetNextPageLoading:function(){this.callBase(),this._selectedItemIndices=this._editStrategy.selectedItemIndices()},_render:function(){this._syncSelectionOptions(),this._normalizeSelectedItems(),this._initSelectedItems(),this.callBase(),this._renderSelection(this._selectedItemIndices,[])},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),l.isDefined(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t)):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":n=this.option("selectedItems")||[],this._setOptionSilent("selectedItem",n[0]),this._setOptionSilent("selectedIndex",this._editStrategy.getIndexByItemData(n[0]));break;case"selectedItem":t=this.option("selectedItem"),l.isDefined(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",this._editStrategy.getIndexByItemData(t))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedIndex",-1))}},_chooseSelectOption:function(){var e="selectedIndex";return this.option("selectedItems").length?e="selectedItems":l.isDefined(this.option("selectedItem"))&&(e="selectedItem"),e},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this._editStrategy.selectedItemIndices(this.option("selectedItems"));if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=[e[0]||this._selectedItemIndices[0]||0];this._setOptionSilent("selectedItems",this._editStrategy.fetchSelectedItems(t)),this._syncSelectionOptions("selectedItems")}}},_initSelectedItems:function(){this._selectedItemIndices=this._editStrategy.selectedItemIndices(this.option("selectedItems"))},_renderSelection:o.noop,_itemClickHandler:function(e){this._createAction(o.proxy(function(e){this._itemSelectHandler(e.jQueryEvent)},this),{validatingTargetName:"itemElement"})({itemElement:o(e.currentTarget),jQueryEvent: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){var t=o(e.itemElement);this._isItemSelected(this._editStrategy.getNormalizedIndex(t))?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")},_updateSelectedItems:function(){var e=this,t=this._selectedItemIndices.slice(),n=this._editStrategy.selectedItemIndices(),i=s.removeDuplicates(n,t),a=s.removeDuplicates(t,n);if(o.each(a,function(t,n){e._removeSelection(n)}),o.each(i,function(t,n){e._addSelection(n)}),a.length||i.length){var r=this._selectionChangePromise;this._updateSelection(i,a),o.when(r).done(function(){e._fireSelectionChangeEvent(i,a)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})(this._editStrategy.fetchSelectionDifference(e,t))},_updateSelection:function(){this._renderSelection.apply(this,arguments)},_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e),n=o.inArray(e,this._selectedItemIndices);n>-1&&(t.removeClass(this._selectedItemClass()),this._setAriaSelected(t,"false"),this._selectedItemIndices.splice(n,1),t.triggerHandler("stateChanged"))},_showDeprecatedSelectionMode:function(){r.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);e>-1&&!this._isItemSelected(e)&&(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true"),this._selectedItemIndices.push(e),t.triggerHandler("stateChanged"))},_isItemSelected:function(e){return o.inArray(e,this._selectedItemIndices)>-1},_optionChanged:function(e){if(!this._cancelOptionChange)switch(e.name){case"selectionMode":"multi"===e.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"selectedIndex":case"selectedItem":case"selectedItems":this._syncSelectionOptions(e.name),this._normalizeSelectedItems(),this._updateSelectedItems();break;case"selectionRequired":this._normalizeSelectedItems(),this._updateSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._selectedItemIndices=[],this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_setOptionSilent:function(e,t){this._cancelOptionChange=!0,this.option(e,t),this._cancelOptionChange=!1},_waitDeletingPrepare:function(e){if(e.data(u))return o.Deferred().resolve().promise();e.data(u,!0);var t=o.Deferred(),n=this._itemEventHandler(e,"onItemDeleting",{},{excludeValidators:["disabled","readOnly"]});return o.when(n).always(o.proxy(function(i){var o=!n,a=!o&&"resolved"===n.state(),r=!!arguments.length,s=o||a&&!r||a&&i;e.data(u,!1),s?t.resolve():t.reject()},this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return o.Deferred().resolve().promise();var t=o.Deferred(),n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw r.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(o.proxy(function(){this.option("disabled",n)},this)),t},_tryRefreshLastPage:function(){var e=o.Deferred();return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=o.inArray(e,this._selectedItemIndices);t>-1&&this._selectedItemIndices.splice(t,1),this._editStrategy.updateSelectionAfterDelete(e),this.option("selectedItems",this._editStrategy.fetchSelectedItems())},_simulateOptionChange:function(e){var t=this.option(e);t instanceof d||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(-1!==t){var n=o.inArray(t,this._selectedItemIndices);if(-1===n)if("single"===this.option("selectionMode"))this.option("selectedItems",this._editStrategy.fetchSelectedItems([t]));else{var i=this._selectedItemIndices.slice();i.push(t),this.option("selectedItems",this._editStrategy.fetchSelectedItems(i))}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(-1!==t){var n=o.inArray(t,this._selectedItemIndices);if(-1!==n){var i=this._selectedItemIndices.slice();i.splice(n,1),this.option("selectionRequired")&&0===i.length||this.option("selectedItems",this._editStrategy.fetchSelectedItems(i))}}},deleteItem:function(e){var t=this,n=o.Deferred(),i=this._editStrategy.getItemElement(e),a=this._editStrategy.getNormalizedIndex(e),r=this._dataSource?"dataSource":"items",s=this._itemResponseWaitClass();return a>-1?this._waitDeletingPrepare(i).done(function(){i.addClass(s);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done(function(){t._editStrategy.deleteItemAtIndex(a),t._simulateOptionChange(r),t._updateSelectionAfterDelete(a),t._itemEventHandler(i,"onItemDeleted",e,{beforeExecute:function(){i.detach()},excludeValidators:["disabled","readOnly"]}),t._renderEmptyMessage(),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){i.removeClass(s),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=o.Deferred(),i=this,a=this._editStrategy,r=a.getItemElement(e),s=a.getItemElement(t),l=a.getNormalizedIndex(e),c=a.getNormalizedIndex(t),d=this._dataSource?"dataSource":"items",u=l>-1&&c>-1&&l!==c;return u?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){s[a.itemPlacementFunc(l,c)](r); var e=a.getSelectedItemsAfterReorderItem(l,c);a.moveItemAtIndexToIndex(l,c),i._selectedItemIndices=a.selectedItemIndices(e),i.option("selectedItems",a.fetchSelectedItems()),"items"===d&&i._simulateOptionChange(d),i._itemEventHandler(r,"onItemReordered",{fromIndex:a.getIndex(l),toIndex:a.getIndex(c)},{excludeValidators:["disabled","readOnly"]})})}});i.exports=h}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=function(e){return void 0===e||null===e?"":String(e)},r=function(e){return a(e).charAt(0).toUpperCase()+e.substr(1)},s=function(e){return a(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},l=function(e){return o.map(s(e),function(e){return e.toLowerCase()}).join("-")},c=function(e){return l(e).replace(/-/g,"_")},d=function(e,t){return o.map(s(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=r(e)),e}).join("")},u=function(e){return r(l(e).replace(/-/g," "))},h=function(e){return o.map(s(e),function(e){return r(e.toLowerCase())}).join(" ")},p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=l,t.camelize=d,t.humanize=u,t.titleize=h,t.underscore=c,t.captionize=p}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=function(){function e(){}return function(t){return e.prototype=t,new e}}(),s=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];i in e&&!n||(e[i]=o)}return e},l=function(e,t){var n,i,o=[];for(n in e)e.hasOwnProperty(n)&&o.push(n);for(o.sort(function(e,t){var n=a.isNumber(e),i=a.isNumber(t);return n&&i?e-t:n&&!i?-1:!n&&i?1:t>e?-1:e>t?1:0}),i=0;i",{"class":h}).html(t.message).appendTo(i),this._validationMessage=this._createComponent(this._$validationMessage,c,{target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:i,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0}),this._$validationMessage.toggleClass(p,"auto"===n).toggleClass(f,"always"===n),this._setValidationMessageMaxWidth())},_setValidationMessageMaxWidth:function(){if(this._validationMessage){var e=Math.max(g,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=a.getDefaultAlignment(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},r="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+r[0],at:n+r[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.element().toggleClass(d,this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.element()[0];o.data(e,_,null),this.callBase()},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();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;default:this.callBase(e)}},reset:function(){this.option("value",null)}}).include(l);i.exports=m}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1);i.exports={ctor:function(){this._events={}},hasEvent:function(e){var t=this._events[e];return t?t.has():!1},fireEvent:function(e,t){var n=this._events[e];return n&&n.fireWith(this,t),this},on:function(e,t){if(o.isPlainObject(e))o.each(e,o.proxy(function(e,t){this.on(e,t)},this));else{var n,i=this._events[e];i||(i=o.Callbacks(),this._events[e]=i),n=i.originalAdd||i.add,n.call(i,t)}return this},off:function(e,t){var n=this._events[e];return n&&(o.isFunction(t)?n.remove(t):n.empty()),this},_disposeEvents:function(){o.each(this._events,function(){this.empty()})}}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(5),a=o.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;32>t;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}});i.exports=a}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1};i.exports=function(){return arguments.length?void o.extend(a,arguments[0]):a}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(194),r=n(273),s={array:a,remote:r},l=function(){var e=o.isArray(arguments[0])?"array":"remote";return s[e].apply(this,arguments)};i.exports=l,i.exports.queryImpl=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=function(){function e(e){i&&o.isFunction(i.info)&&i.info(e)}function t(e){i&&o.isFunction(i.warn)&&i.warn(e)}function n(e){i&&o.isFunction(i.error)&&i.error(e)}var i=window.console;return{info:e,warn:t,error:n}}(),r=function(){function e(e,t){if(!e)throw new Error(t)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=a,t.debug=r}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(75),r=n(10),s=4,l=10,c=["currency","fixedpoint","exponential","percent","decimal"],d={1:"K",2:"M",3:"B",4:"T"},u={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},h=a({numericFormats:c,defaultLargeNumberFormatPostfixes:d,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.split(" "),o.each(t,function(e,t){o.inArray(t,c)>-1?n.formatType=t:t in u&&(n.power=u[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||i>a);)a++,o/=t;else if(o>0&&1>o)for(;1>o&&(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(;0>t;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,s)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",this._formatNumberCore(e,t.formatType,n)+i},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,l),o=this._getNumberByPower(e,i,l);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=l&&(i++,o/=l),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(o,"fixedpoint",t)+"E"+n},_addZeroes:function(e,t){var n=Math.pow(10,t);e=(e*n>>>0)/n;for(var i=e.toString();i.length1&&(e=d.makeArray(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},_createLoadQueue:function(){return w.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t._changeLoadingCount(1),e.always(function(){t._changeLoadingCount(-1)})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==S&&t.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t.fireEvent("changed")})},loadSingle:function(e,t){var n=this,i=d.Deferred(),o=this.key(),a=this._store,r=this._createStoreLoadOptions(),s=function(e){!k(e)||x.isEmpty(e)?i.reject(new v.Error("E4009")):i.resolve(n._applyMapFunction(d.makeArray(e))[0])};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,function(){return e===o||a instanceof g?a.byKey(t,r):(r.take=1,r.filter=r.filter?[r.filter,[e,t]]:[e,t],a.load(r))}().fail(i.reject).done(s),i.promise()},load:function(){function e(){return!n._disposed&&a(i)?n._loadFromStore(t,i):void 0}var t,n=this,i=d.Deferred();return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=h.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_createLoadOperation:function(e){var t=T.add(e),n=this._createStoreLoadOptions();return e.always(function(){T.remove(t)}),{operationId:t,storeLoadOptions:n}},reload:function(){return this._init(),this.load()},cancel:function(e){return T.cancel(e)},_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=d.extend({},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"),d.isArray(i)||(i=[i]),d.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,o){function r(){var a;n&&!d.isArray(n)&&n.data&&(o=n,n=n.data),a=d.extend({data:n,extra:o},e),i.fireEvent("customizeLoadResult",[a]),d.when(a.data).done(function(e){a.data=e,i._processStoreLoadResult(a,t)}).fail(t.reject)}i._disposed||a(t)&&r()}var i=this;return e.data?d.Deferred().resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return o._isLoaded=!0,o._totalCount=isFinite(r.totalCount)?r.totalCount:-1,t.resolve(a,r)}function i(){o.store().totalCount(s).done(function(e){r.totalCount=e,n()}).fail(t.reject)}var o=this,a=d.makeArray(e.data),r=e.extra,s=e.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),d.isPlainObject(r)||(r={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.length=0&&s.option(e.name,e.value)};i.on("optionChanged",d),s.on("disposing",function(){i.off("optionChanged",d)})}return s},_extendConfig:function(e,t){o.each(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return o.extend(this.callBase(),{context:this._modelByElement(this.element())})},_defaultActionArgs:function(){var e=this.element(),t=this._modelByElement(this.element());return o.extend(this.callBase(),{element:e,model:t})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"disabled":break;default:this.callBase(e)}},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._render():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},element:function(){return this._$element}});_.getInstance=function(e){return c.getInstanceByElement(e,this.publicName())},_.defaultOptions=function(e){this.prototype._customRules=this.prototype._customRules||[],this.prototype._customRules.push(e)},i.exports=_}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=n(30),s=function(e){return o.isArray(e)&&!e.length},l=function(e){return o.isArray(e)?e:[e]},c=function(e,t){if(!o.isArray(e)||0===e.length||!o.isArray(t)||0===t.length)return[];var n=[];return o.each(e,function(e,i){var a=o.inArray(i,t);-1!==a&&n.push(i)}),n},d=function(e,t){if(!o.isArray(e)||0===e.length)return[];if(!o.isArray(t)||0===t.length)return e.slice();var n=[];return o.each(e,function(e,i){var a=o.inArray(i,t);-1===a&&n.push(i)}),n},u=function(e,t,n,i){var s={},l=0;return o.each(e,function(e,i){e=i[t],a.isDefined(e)&&(s[e]=s[e]||[],i===n?s[e].unshift(i):s[e].push(i),delete i[t])}),r.orderEach(s,function(e,n){o.each(n,function(){e>=0&&(this[t]=l++)})}),o.each(e,function(){a.isDefined(this[t])||i&&!i(this)||(this[t]=l++)}),l};t.isEmpty=s,t.wrapToArray=l,t.intersection=c,t.removeDuplicates=d,t.normalizeIndexes=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(135),r=o.event,s=r.fixHooks,l=o.event.special,c={props:r.mouseHooks.props.concat(["pointerType","pointerId","pointers"])},d=new a,u=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),o.each(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=o.makeArray(arguments);return e.unshift(this),t[i].apply(t,e)})}),s[e]=c,d.fire(e,n)};u.callbacks=d;var h=function(e,t){l[e]=t};d.add(h),i.exports=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(88),a=n(10);i.exports=o(a.ERROR_MESSAGES,{E3001:"Routing rule is not found for the '{0}' URI.",E3002:"The passed object cannot be formatted into a URI string by the application's router. An appropriate route should be registered.",E3003:"Unable to navigate. Application is being initialized.",E3004:"Cannot execute the command: {0}.",E3005:"The '{0}' command {1} is not registered in the application's command mapping. Go to http://dxpr.es/1bTjfj1 for more details.",E3006:"Unknown navigation target: '{0}'. Use the 'current', 'back' or 'blank' values.",E3007:"Error while restoring the application state. The state has been cleared. Refresh the page.",E3008:"Unable to go back.",E3009:"Unable to go forward.",E3010:"The command's 'id' option should be specified.\r\nProcessed markup: {0}\n",E3011:"Layout controller cannot be resolved. There are no appropriate layout controllers for the current context. Check browser console for details.",E3012:"Layout controller cannot be resolved. Two or more layout controllers suit the current context. Check browser console for details.",E3013:"The '{0}' template with the '{1}' name is not found. Make sure the case is correct in the specified view name and the template fits the current context.",E3014:"All the children of the dxView element should be either of the dxCommand or dxContent type.\r\nProcessed markup: {0}",E3015:"The 'exec' method should be called before the 'finalize' method.",E3016:"Unknown transition type '{0}'.",E3018:"Unable to parse options.\nMessage: {0};\nOptions value: {1}.",E3019:"View templates should be updated according to the 13.1 changes. Go to http://dxpr.es/15ikrJA for more details.",E3020:"Concurrent templates are found:\r\n{0}Target device:\r\n{1}.",E3021:"Remote template cannot be loaded.\r\nUrl:{0}\r\nError:{1}.",E3022:"Cannot initialize the HtmlApplication component.",E3023:"Navigation item is not found",E3024:"Layout controller is not initialized",W3001:"A view with the '{0}' key doesn't exist.",W3002:"A view with the '{0}' key has already been released.",W3003:"Layout resolving context:\n{0}\nAvailable layout controller registrations:\n{1}\n",W3004:"Layout resolving context:\n{0}\nConcurent layout controller registrations for the context:\n{1}\n",W3005:'Direct hash-based navigation is detected in a mobile application. Use data-bind="dxAction: url" instead of href="#url" to avoid navigation issues.\nFound markup:\n{0}\n'})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(43),a=n(11),r=n(3),s=n(144).MarkupComponent;n(81);var l=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=a.uniqueId(),this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.element().addClass("dx-view"),this.element().attr("dx-data-template-id",this._id)},getId:function(){return this._id}}),c=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),d=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),u=function(e,t,n,i){"absolute"===i?e.addClass("dx-transition-absolute"):e.addClass("dx-transition-static"),e.addClass("dx-transition").addClass("dx-transition-"+n).addClass("dx-transition-"+t).attr("data-dx-transition-type",t).attr("data-dx-transition-name",n)},h=function(e){e.addClass("dx-transition-inner-wrapper")},p=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var e=this.element();u(e,this.option("type")||this.option("animation"),this.option("name"),"absolute"),e.wrapInner("
"),h(e.children()),this.option("type")&&o.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),f=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),e.attr("data-dx-content-placeholder-name",this.option("name")),u(e,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&o.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),_=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({targetPlaceholder:null})},_optionChanged:function(){this._refresh()},_clean:function(){this.callBase(),this.element().removeClass(this._currentClass)},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content"),this._currentClass="dx-content-"+this.option("targetPlaceholder"),e.attr("data-dx-target-placeholder-id",this.option("targetPlaceholder")),e.addClass(this._currentClass),h(e)}});r("dxView",l),r("dxLayout",c),r("dxViewPlaceholder",d),r("dxContentPlaceholder",f),r("dxTransition",p),r("dxContent",_),t.dxView=l,t.dxLayout=c,t.dxViewPlaceholder=d,t.dxContentPlaceholder=f,t.dxTransition=p,t.dxContent=_}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t){e.exports=window.Globalize},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(11).triggerShownEvent,r=n(5),s=r.abstract,l=o.Callbacks(),c=r.inherit({ctor:function(e,t){this._element=o(e),this._owner=t},owner:function(){return this._owner},render:function(e,t,n){e instanceof o&&(t=e,e=void 0),t&&(e=this._prepareDataForContainer(e,t));var i=this._renderCore(e,n,t);return this._ensureResultInContainer(i,t),l.fire(i,t),i},_ensureResultInContainer:function(e,t){if(t){var n=o.contains(t.get(0),e.get(0));if(t.append(e),!n){var i=o.contains(document.body,t.get(0));i&&a(e)}}},source:function(){return this._element.clone()},_prepareDataForContainer:function(e){return e},_renderCore:s,dispose:function(){this._owner=null}});i.exports=c,i.exports.renderedCallbacks=l}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=n(161),s="dx-datagrid-nodata",l="dx-indicator-alignment-",c="dx-column-indicators",d="dx-group-panel-item";t.renderNoDataText=function(e){var t=this;e=e||this.element();var n=e.find("."+s),i=this._dataController.isEmpty(),r=this._dataController.isLoading(),l=this.option("rtlEnabled");n.length||(n=o("").addClass(s).appendTo(e)),i&&!r?(n.removeClass("dx-hidden").text(t._getNoDataText()),a.deferUpdate(function(){var e=n.height(),t=n.width();a.deferRender(function(){n.css({marginTop:-Math.floor(e/2),marginRight:l?-Math.floor(t/2):0,marginLeft:l?0:-Math.floor(t/2)})})})):n.addClass("dx-hidden")},t.renderLoadPanel=function(e,t,n){var i,a=this;a._loadPanel&&a._loadPanel.element().remove(),i=a.option("loadPanel"),i&&("auto"===i.enabled?!n:i.enabled)?(i=o.extend({shading:!1,message:i.text,position:{of:e},container:e},i),a._loadPanel=a._createComponent(o("
").appendTo(t),r,i)):a._loadPanel=null; },t.columnStateMixin={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),i=t._getColumnAlignment(e.column.alignment,n),a=o.extend(!0,{columnAlignment:i},e),r=a.rootElement.hasClass(d),s=t._createIndicatorContainer(a,r),c=o("").addClass(t._getIndicatorClassName(e.name)),u=function(){return n?"left"===i?"right":"left":i};return a.container=s,a.indicator=c,t._renderIndicator(a),s[!r&&e.showColumnLines||"left"!==u()?"prependTo":"appendTo"](e.rootElement).addClass(l+i),c},_getIndicatorClassName:o.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),"center"!==e?e:a.getDefaultAlignment(t)},_createIndicatorContainer:function(e,t){var n=e.rootElement.find("."+c),i="left"===e.columnAlignment?"right":"left";return n.length||(n=o("
").addClass(c)),n.css("float",e.showColumnLines&&!t?i:null)},_getIndicatorContainer:function(e){return e&&e.find("."+c)},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i=this,o=i.getColumns(),a=i.getColumnElements();for(n=0;ni){if(a.isObject(e)&&a.isObject(n)){for(o in e)if(e.hasOwnProperty(o)&&!t.equalKeys(e[o],n[o],i+1))return!1;for(o in n)if(!(o in e))return!1;return!0}if(a.isArray(e)&&a.isArray(n)){if(e.length!==n.length)return!1;for(r=0;re.length-1&&(t=Math.max.apply(this,[this[a].colspan,t]))});for(var r=0;t>r;r++)i.push(this._cloneItem(e[e.length-2][a&&a-1||0]));t>0&&this._makeRowOffset(e)},_cloneItem:function(e){return o.extend({},e,this._getEmptyCell())},_prepareItems:function(e,t){var n,i,a,r,s=this,l=[];for(r=0;r").addClass(t).appendTo(n)),i},h=function(t,i){for(var o=u(t),a=o.children("."+n),r=a.length;i>r;r++){var s=e("
").appendTo(o).addClass(n);a.push(s[0])}return a},p=function(e,t){var n,i,o=t.element,a=o.outerWidth(),s=o.outerHeight(),l=parseInt(Math.sqrt(a*a+s*s)),c=Math.min(r,parseInt(l*e.waveSizeCoefficient));if(e.isCentered)n=(a-c)/2,i=(s-c)/2;else{var d=t.jQueryEvent,u=t.element.offset(),h=d.pageX-u.left,p=d.pageY-u.top;n=h-c/2,i=p-c/2}return{left:n,top:i,height:c,width:c}},f=function(t,n){var i=h(n.element,t.wavesNumber).eq(n.wave||c);t.hidingTimeout&&clearTimeout(t.hidingTimeout),m(i),i.css(p(t,n)),setTimeout(e.proxy(_,null,t,i),0)},_=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(i).css("transition-duration",n)},g=function(e){return{showingScale:e?l:s,hidingScale:s,hidingOpacity:s}},m=function(e){e.removeClass(o).css("transition-duration","")},v=function(t,n){var a=h(n.element,n.wavesNumber).eq(n.wave||c),r=t.durations,s=r.hidingScale+"ms, "+r.hidingOpacity+"ms";a.addClass(o).removeClass(i).css("transition-duration",s);var l=Math.max(r.hidingScale,r.hidingOpacity);t.hidingTimeout=setTimeout(e.proxy(m,null,a),l)};return{render:d}}.apply(t,i),!(void 0!==o&&(e.exports=o))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return r.extend({},e,{items:o(f(e.items),t.slice(1)).toArray()})})),e}function a(e,t){var n=[];return r.each(e,function(e,i){var o=r.grep(t,function(e){return i.selector===e.selector});o.length<1&&n.push(i)}),n.concat(t)}var r=n(1),s=n(5),l=s.abstract,c=n(32),d=n(24),u=n(27),h=u.normalizeSortingInfo,p=n(16).compileGetter,f=n(35),_={},g=s.inherit({ctor:function(e){var t=this;e=e||{},r.each(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","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=p(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw d.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n,i){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){var t=e.filter,n=e.sort,i=e.select,s=e.group,l=e.skip,c=e.take,d=this.createQuery(e);return t&&(d=d.filter(t)),s&&(s=h(s)),(n||s)&&(n=h(n||[]),s&&(n=a(s,n)),r.each(n,function(e){d=d[e?"thenBy":"sortBy"](this.selector,this.desc)})),i&&(d=d.select(i)),s&&(d=o(d,s)),(c||l)&&(d=d.slice(l||0,c)),d.enumerate()},_withLock:function(e){var t=r.Deferred();return e.done(function(){var e=this,n=arguments;u.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:l,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){e=e||{};var t=this.createQuery(),n=e.group,i=e.filter;return i&&(t=t.filter(i)),n&&(n=h(n),t=o(t,n)),t.count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:l,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:l,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:l,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:l,_addFailHandlers:function(e){return e.fail(this._errorHandler,d._errorHandler)}}).include(c);g.create=function(e,t){if(!(e in _))throw d.errors.Error("E4020",e);return new _[e](t)},g.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(_[n]=i),i}}(g.inherit),i.exports=g,i.exports.multiLevelGroup=o,i.exports.arrangeSortingInfo=a}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(22),r=n(15),s=n(53).compare,l=n(51),c=l.value,d=l.changeCallback,u=n(99).hideCallback,h=n(66),p=n(62).fitIntoRange,f=n(11),_=n(2),g=n(6),m=n(3),v=n(18),x=n(166),w=n(95),y=n(63),b=n(4),C=n(13),k=n(178),S="dx-overlay",T="dx-overlay-wrapper",I="dx-overlay-content",D="dx-overlay-shader",E="dx-overlay-modal",A="dx-state-invisible",B="content",M="dx-rtl",O=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],P=1500,R=[],V="dx-state-disabled",F=9,L=g.real(),H=L.version,z="ios"===L.platform,N=z&&s(H,[7,1])<0,W="android"===L.platform&&0===s(H,[4,0],2)&&-1===navigator.userAgent.indexOf("Chrome"),G=function(e){if(N&&e.width(),W){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backface-visibility","hidden"),t.css("backface-visibility"),t.css("backface-visibility","visible"))}},$=function(e){return e&&o(e instanceof o.Event?e.target:e)};o(document).on(C.down,function(e){for(var t=R.length-1;t>=0;t--)if(!R[t]._proxiedDocumentDownHandler(e))return});var q=v.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:p(e,-i.top,i.bottom),left:p(t,-i.left,i.right)};this._changePosition(o)}};return o.extend(this.callBase(),{escape:function(e){this.hide()},upArrow:o.proxy(t,this,-e,0),downArrow:o.proxy(t,this,e,0),leftArrow:o.proxy(t,this,0,-e),rightArrow:o.proxy(t,this,0,e)})},_getDefaultOptions:function(){return o.extend(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(window).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(window).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,onContentReady:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t=g.real(),n=t.platform,i=t.version;return"android"===n&&s(i,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}}])},_setOptionsByReference:function(){this.callBase(),o.extend(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return B},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("
").addClass(T),this._$content=o("
").addClass(I);var e=this.element();this._$wrapper.addClass(e.attr("class")),e.addClass(S),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._$wrapper.on("MSPointerDown",o.noop),this._$wrapper.on("focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initTarget:function(e){if(_.isDefined(e)){var t=this.option();o.each(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var a=i.split("."),r=t;r;){if(1===a.length){o.isPlainObject(r)&&(r[a.shift()]=e);break}r=r[a.shift()]}})}},_initContainer:function(e){e=void 0===e?c():e;var t=this.element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:o.proxy(this._defaultHideTopOverlayHandler,this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},o.each(O,o.proxy(function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||o.noop},this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){if(this._showAnimationProcessing)return void this._stopAnimation();var t=this.option("closeOnOutsideClick");if(o.isFunction(t)&&(t=t(e)),t){var n=this._$content,i=!n.is(e.target)&&!o.contains(n.get(0),e.target);i&&(this.option("shading")&&e.preventDefault(),this.hide())}return this.option("propagateOutsideClick")},_isTopOverlay:function(){var e=this._overlayStack();return e[e.length-1]===this},_overlayStack:function(){return R},_zIndexInitValue:function(){return P},_toggleViewPortSubscription:function(e){d.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=o.proxy(this._viewPortChangeHandler,this),d.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){this._position=this.option("position")},_getAnimationConfig:function(){var e=this.option("animation");return o.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=o.Deferred();if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return o.when().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),a=i&&i.start||o.noop,r=i&&i.complete||o.noop;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var s=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&e._focusTarget().focus(),r.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){a.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?this._asyncShowTimeout=setTimeout(s):s()}return t.promise()},_normalizeAnimation:function(e,t){return e&&e[t]&&(e=o.extend({type:"slide"},e),o.extend(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return o.when().promise();this._currentVisible=!1;var e=this,t=o.Deferred(),n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),a=i&&i.complete||o.noop,r={cancel:!1};return this._actions.onHiding(r),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._animate(i,function(){e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()})),t.promise()},_forceFocusLost:function(){document.activeElement&&this._$content.find(document.activeElement).length&&document.activeElement.blur()},_animate:function(e,t,n){if(e){n=n||e.start||o.noop;var i=this._$content;a.animate(this._$content,o.extend({},e,{start:function(){i.css("pointer-events","none"),n.apply(this,arguments)},complete:function(){i.css("pointer-events",""),t.apply(this,arguments)}}))}else t()},_stopAnimation:function(){a.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),clearTimeout(this._asyncShowTimeout),e||f.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(A,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),f.triggerShownEvent(this._$content),f.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=o.inArray(this,t);if(e){if(-1===n){var i=t.length;this._zIndex=(i?t[i-1]._zIndex:this._zIndexInitValue())+1,t.push(this)}this._$wrapper.css("z-index",this._zIndex),this._$content.css("z-index",this._zIndex)}else-1!==n&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass(E,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(D,e&&this.option("shading")),this._$wrapper.css("background-color",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=b.addNamespace("keydown",this.NAME);e?o(document).on(t,this._proxiedTabTerminatorHandler):o(document).off(t,this._proxiedTabTerminatorHandler)},_tabKeyHandler:function(e){if(e.keyCode===F&&this._isTopOverlay()){var t=this._$wrapper.find(w.tabbable),n=t.first(),i=t.last(),a=!e.shiftKey&&e.target===i.get(0),r=e.shiftKey&&e.target===n.get(0),s=0===t.length,l=-1===o.inArray(e.target,t);(a||r||s||l)&&(e.preventDefault(),(e.shiftKey?i:n).focusin().focus())}},_toggleSubscriptions:function(e){this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e)},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?u.add(this._hideTopOverlayHandler):u.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=$(t).parents(),a=b.addNamespace("scroll",this.NAME);"generic"===g.real().platform&&(i=i.add(window)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||o.proxy(function(e){this._targetParentsScrollHandler(e)},this),o().add(this._$prevTargetParents).off(a,this._proxiedTargetParentsScrollHandler),e&&n&&(i.on(a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");o.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this.callBase()))},_isParentHidden:function(){if(void 0!==this._parentHidden)return this._parentHidden;var e=this.element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=o(this);return"none"===e.css("display")?(t=!0,!1):void 0}),t||!o.contains(document,e.get(0))},_renderContentImpl:function(){var e=this.element();this._$content.appendTo(e);var t=this._getTemplate(this.option("contentTemplate"));t&&t.render(this.content()),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=b.addNamespace(y.start,this.NAME),n=b.addNamespace(y.move,this.NAME);e.off(t).off(n),this.option("dragEnabled")&&e.on(t,o.proxy(this._dragStartHandler,this)).on(n,o.proxy(this._dragUpdateHandler,this))}},_renderResize:function(){this._createComponent(this._$content,k,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:o.proxy(this._resizeEndHandler,this),onResize:o.proxy(this._actions.onResize,this),onResizeStart:o.proxy(this._actions.onResizeStart,this),minHeight:100,minWidth:100,area:this._$container})},_resizeEndHandler:function(){this._positionChangeHandled=!0,this._dimensionChangeHandled=!0,this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=b.addNamespace(y.move,this.NAME);e.off(t).on(t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:o.noop,_clearSelection:o.noop,isNative:!0},function(e){"mousemove"!==e.originalEvent.originalEvent.type&&e.preventDefault()})},_getDragTarget:function(){return this.content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_deltaSize:function(){var e=this._$content,t=this._$container,n=e.outerWidth(),i=e.outerHeight(),o=t.width(),a=t.height();return{width:o-n,height:a-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=r.locate(this._$content);r.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=r.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=this.option("boundaryOffset");return{top:n?e.top+i.v:0,bottom:n?-e.top+t.height-i.v:0,left:n?e.left+i.h:0,right:n?-e.left+t.width-i.h:0}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_moveFromContainer:function(){this._$content.appendTo(this.element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.element();this._$container&&this._$container[0]!==e.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(e)},_renderGeometry:function(){this.option("visible")&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._renderDimensions();var e=this._renderPosition();this._actions.onPositioned({position:e})},_renderShading:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)&&!z?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();h.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){if(this.option("shading")){var e=this._getContainer(),t=this._isWindow(e)?"100%":e.outerWidth(),n=this._isWindow(e)?"100%":e.outerHeight();this._$wrapper.css({width:t,height:n})}},_isWindow:function(e){return!!e&&o.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||window:null;return $(t||n)},_renderDimensions:function(){if(this._$content.css({minWidth:this.option("minWidth"),maxWidth:this.option("maxWidth"),minHeight:this.option("minHeight"),maxHeight:this.option("maxHeight")}),this._dimensionChangeHandled){var e=this._$content,t=this._$container;e.outerWidth(Math.min(e.outerWidth(),t.width())).outerHeight(Math.min(e.outerHeight(),t.height()))}else this._$content.outerWidth(this.option("width")).outerHeight(this.option("height"))},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),r.resetPosition(this._$content);var e=h.setup(this._$content,this._position);return G(this._$content),this._actions.onPositioning(),e}var t=this._allowedOffsets();this._changePosition({top:p(0,-t.top,t.bottom),left:p(0,-t.left,t.right)})},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new x({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=o(t.target);n.is(this._$content)&&this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.content().empty(),this._renderVisibility(!1),this._cleanFocusState()},_dispose:function(){a.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(V,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(M,e)},_optionChanged:function(e){var t=e.value;if(o.inArray(e.name,O)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"minWidth":case"maxWidth":case"height":case"minHeight":case"maxHeight":case"position":case"boundaryOffset":this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(o.proxy(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)},this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return o.Deferred().resolve().promise();var t=o.Deferred();return this._animateDeferred=t,this.option("visible",e),t.promise().done(o.proxy(function(){delete this._animateDeferred},this))},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return this._$content},repaint:function(){this._renderGeometry()}});q.baseZIndex=function(e){P=e},m("dxOverlay",q),i.exports=q}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=o.Callbacks(),r=o(),s=function(){var e;return function(t){if(!arguments.length)return e;var n=o(t);r=n;var i=!!n.length,l=s();e=i?n:o("body"),a.fire(i?s():o(),l)}}();o(function(){s(".dx-viewport")}),t.value=s,t.changeCallback=a,t.originalViewPort=function(){return r}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(34),r=n(5),s=r.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||window,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;ia;a++){var r=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(s>r)return-1;if(r>s)return 1}return 0};t.compare=i}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(15),r=n(29).camelize,s=n(2),l=n(8),c=n(6),d=n(3),u=n(25),h=n(23),p=n(50);n(249);var f="dx-popup",_="dx-popup-wrapper",g="dx-popup-fullscreen",m="dx-popup-fullscreen-width",v="dx-popup-normal",x="dx-popup-content",w="dx-popup-draggable",y="dx-popup-title",b="dx-closebutton",C="dx-popup-bottom",k="dx-template-wrapper",S=["cancel","clear","done"],T=function(e){var t=c.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}},I=p.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=(h.current()||"").split(".")[0];return"win8"===e},options:{width:function(){return o(window).width()}}},{device:function(e){var t=(h.current()||"").split(".")[0];return e.phone&&"win8"===t},options:{position:{my:"top center",at:"top center",offset:"0 0"}}},{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"generic"===c.real().platform&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(e){return"desktop"===c.real().deviceType&&!c.isSimulator()},options:{focusStateEnabled:!0}}])},_setDeprecatedOptions:function(){this.callBase(),o.extend(this._deprecatedOptions,{buttons:{since:"16.1",alias:"toolbarItems"}})},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){var e={show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}},t={show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}};return this.option("fullScreen")?e:t},_init:function(){this.callBase(),this.element().addClass(f),this._wrapper().addClass(_),this._$popupContent=this._$content.wrapInner(o("
").addClass(x)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._$content.toggleClass(g,e).toggleClass(v,!e),this.callBase()},_renderContentImpl:function(){this.callBase(),this._renderTitle(),this._renderBottom()},_renderTitle:function(){ var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:c.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var i=o("
").addClass(y).insertBefore(this.content());this._$title=this._renderTemplateByType("titleTemplate",e,i).addClass(y),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n){var i,o=this._getTemplateByOption(e),a=o.owner()===this.option("templateProvider");return a?(i=o.render(t,n),n.replaceWith(i),i):(i=o.render(n),i.hasClass(k)&&(n.replaceWith(i),n=i),n)},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:e})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return o.proxy(function(e,t,n){var i=o("
").addClass(b);this._createComponent(i,u,{icon:"close",onClick:this._createToolbarItemAction(void 0),_templates:{}}),n.append(i)},this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=c.current().platform,a=0;return o.each(t,o.proxy(function(t,r){var l=s.isDefined(r.shortcut),c=l?T(r.shortcut):r;if(l&&"ios"===i&&2>a&&(c.toolbar="top",a++),o.extend(c,s.isDefined(r.toolbar)?{toolbar:r.toolbar}:{}),c&&c.toolbar===e){l&&o.extend(c,{location:r.location},this._getToolbarItemByAlias(r));var d="win"===i||"generic"===i;"done"===r.shortcut&&d||"cancel"===r.shortcut&&!d?n.unshift(c):n.push(c)}},this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(o.inArray(n,S)<0)return!1;var i=o.extend({text:l.format(r(n,!0)),onClick:this._createToolbarItemAction(e.onClick),_templates:{}},e.options||{}),a=f+"-"+n;return this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=o("
").addClass(a).appendTo(r);t._createComponent(s,u,i)}}},_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=o("
").addClass(C).insertAfter(this.content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t).addClass(C),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=S;o.each(e,o.proxy(function(e,t){var n=f+"-"+t;o.inArray(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))},this))},_getDragTarget:function(){return this._$title},_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(w,this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._$content.dxResizable("option","onResize",o.proxy(function(){this._setContentHeight(),this._actions.onResize(arguments)},this))},_setContentHeight:function(){if(!this._disallowUpdateContentHeight()){var e=this._$content.outerHeight()-this._$content.height(),t=this._$content.get(0).getBoundingClientRect().height-e;this._$title&&this._$title.is(":visible")&&(t-=this._$title.get(0).getBoundingClientRect().height||0),this._$bottom&&this._$bottom.is(":visible")&&(t-=this._$bottom.get(0).getBoundingClientRect().height||0),this._$popupContent.css({height:t})}},_disallowUpdateContentHeight:function(){var e="auto"===this._$content.get(0).style.height,t="none"!==this._$content.css("maxHeight"),n=parseInt(this._$content.css("minHeight"))>0;return e&&!(t||n)},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass(m,this.overlayContent().outerWidth()===o(window).width())},_renderShadingDimensions:function(){this.option("fullScreen")?this._wrapper().css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments)},_renderPosition:function(){return this.option("fullScreen")?void a.move(this._$content,{top:0,left:0}):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":this._renderTitle(),this._renderBottom(),this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"fullScreen":this._$content.toggleClass(g,e.value),this._refresh();break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},content:function(){return this._$popupContent},overlayContent:function(){return this._$content}});d("dxPopup",I),i.exports=I}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){return e>0?Math.round(e):0}function a(e,t,n,i){var o,r,s,l,c=[],d=i.nodes,u=t.length,h=0;for(r=0;u>r;++r)s=t[r],o=new w,o._id=d.length,o.ctx=i.ctx,o.parent=e,o.level=n,o.index=c.length,o.data=s,i.buildNode(o),d.push(o),c.push(o),l=s[i.itemsField],l&&l.length&&a(o,l,n+1,i),s[i.valueField]>0&&(o.value=Number(s[i.valueField])),h+=o.value;e.nodes=c,e.value=h}function r(e,t,n){var i,o,a=t.nodes,s=a.length;for(o=0;s>o;++o)i=a[o],n(e,i),i.isNode()&&r(e,i,n)}function s(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||A[Number(t.isNode())](e,t),t.applyState()}function l(e,t){var n=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,n),n}function c(e,t){var n=e.renderer.simpleRect().append(e.group),i=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,i),{outer:n,inner:i}}function d(e,t){t.updateLabelStyle(),t.labelState.visible&&u(e,t,t.labelState,t.labelParams)}function u(e,t,n,i){var o=t.data[e.labelField];t.label=o?String(o):null,o=t.customLabel||t.label,o&&(t.text=e.renderer.text(o).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text),t.textWidth=i.unitWidth*o.length)}function h(e,t){var n,i=t.nodes,o=[],a=[],r=0,s=o.length=a.length=i.length;for(n=0;s>n;++n)r+=i[n].value,o[n]={value:i[n].value,i:n};for(r>0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;s>n;++n)a[n]=o[n].rect||B;t.rects=a}function p(e,t){var n,i=t.parent.rects[t.index],o=e.rectOffsets;t.isNode()?(g(t.tile.outer,_(i,t.parent.innerRect,o.headerEdge,o.headerInner)),i=f(i,e.groupPadding),n=Math.min(e.headerHeight,i[3]-i[1]),t.rect=[i[0],i[1],i[2],i[1]+n],g(t.tile.inner,f(t.rect,o.headerEdge)),i[1]+=n,t.innerRect=i,h(e,t)):(t.rect=i,g(t.tile,_(i,t.parent.innerRect,o.tileEdge,o.tileInner)))}function f(e,t){return[e[0]+t,e[1]+t,e[2]-t,e[3]-t]}function _(e,t,n,i){return[e[0]+(e[0]===t[0]?n:+i),e[1]+(e[1]===t[1]?n:+i),e[2]-(e[2]===t[2]?n:-i),e[3]-(e[3]===t[3]?n:-i)]}function g(e,t){e.attr({x:t[0],y:t[1],width:I(t[2]-t[0],0),height:I(t[3]-t[1],0)})}function m(e,t){t.text&&t.labelState.visible&&v(t,t.labelParams)}function v(e,t){var n=e.rect,i=t.hOffset;e.text.attr({x:t.rtlEnabled?n[2]-i:n[0]+i,y:n[1]+t.vOffset,visibility:e.textWidth+t.paddingLeftRight=0?o(t.headerHeight):d.labelParams.height+2*o(n.paddingTopBottom),e._headerHeight!==l&&(e._headerHeight=l,e._change(["TILING"])),e._groupPadding!==c&&(e._groupPadding=c,e._change(["TILING"])),i.headerEdge===r&&i.headerInner===s||(i.headerEdge=r,i.headerInner=s,e._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var i=this._getTextBBox(t.font),a=o(t.paddingLeftRight),r=o(t.paddingTopBottom);e.labelState=S(t,n),e.labelState.visible=!("visible"in t&&!t.visible),e.labelParams={unitWidth:i.width,height:i.height,hOffset:a,vOffset:-i.y+r,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:r,paddingLeftRight:a}},_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){r(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=b(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},s)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},d),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:y(e._getOption("layoutAlgorithm",!0)),directions:D[String(e._getOption("layoutDirection",!0)).toLowerCase()]||D.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,h(t,e._topNode),e._processNodes(t,p),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:x.empty,_performLabelsLayout:function(){this._processNodes(null,m)},_getTextBBox:function(e){var t,n=this._renderer,i=this._textForCalculations||n.text("0",0,0);return this._textForCalculations=i,i.css(C(e)).append(n.root),t=i.getBBox(),i.remove(),t}}),A=[l,c],B=[0,0,0,0],M=n(115).BaseThemeManager.inherit({_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font","loadingIndicator.font","title.font","title.subtitle.font","tooltip.font"]});n(3)("dxTreeMap",E),i.exports=E,E.addPlugin(n(167).plugin)}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=m[t]?"#"+m[t]:t,t=o(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=a(t[0]),this.g=a(t[1]),this.b=a(t[2]),this.a=a(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=d(this.r,this.g,this.b)}function o(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;i>n;++n)if(t=v[n].re.exec(e))return v[n].process(t);return null}function a(e,t,n){return t=t||0,n=n||255,0>e||isNaN(e)?t:e>n?n:e}function r(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r-s;if(a=r,o=0===r?0:1-s/r,r===s)i=0;else switch(r){case e:i=60*((t-n)/l),n>t&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function l(e,t,n){var i,o,a,r,s,l,c,d;switch(r=Math.floor(e%360/60),a=(100-t)*n/100,s=(n-a)*(e%60/60),o=a+s,i=n-s,r){case 0:l=n,c=o,d=a;break;case 1:l=i,c=n,d=a;break;case 2:l=a,c=n,d=o;break;case 3:l=a,c=i,d=n;break;case 4:l=o,c=a,d=n;break;case 5:l=n,c=a,d=i}return[Math.round(2.55*l),Math.round(2.55*c),Math.round(2.55*d)]}function c(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(n>t?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function d(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a+r,l=s/2;if(a===r)i=o=0;else{var d=a-r;o=l>.5?d/(2-s):d/s,i=c(e,t,n,d),i/=6}return{h:x(360*i),s:x(100*o),l:x(100*l)}}function u(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return 0>e&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),1/6>n?e+6*(t-e)*n:.5>n?t:2/3>n?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,o,a;if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)i=o=a=n;else{var r=.5>n?n*(1+t):n+t-n*t,s=2*n-r;i=p(s,r,u("r",e)),o=p(s,r,u("g",e)),a=p(s,r,u("b",e))}return[x(255*i),x(255*o),x(255*a)]}function _(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function g(e,t,n){return t=t||0,n=n||255,!(e%1!==0||t>e||e>n||"number"!=typeof e||isNaN(e))}var m={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=l(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=f(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],x=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=a(this.r+e),t.g=a(this.g+e),t.b=a(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=a(x(this.r*(1-t)+n.r*t)),o.g=a(x(this.g*(1-t)+n.g*t)),o.b=a(x(this.b*(1-t)+n.b*t)),o},toHex:function(){return r(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(g(e)&&g(t)&&g(n))},isValidAlpha:function(e){return!(isNaN(e)||0>e||e>1||"number"!=typeof e)},colorIsInvalid:!1},n.exports=i}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=function(){var e,t=o.Callbacks(),n=o(window),i=!1,a=t.add,r=t.remove,s=function(){return[n.width(),n.height()].join()},l=function(){var n=s();n!==e&&(e=n,setTimeout(t.fire))};return e=s(),t.add=function(){var e=a.apply(t,arguments);return!i&&t.has()&&(n.on("resize",l),i=!0),e},t.remove=function(){var e=r.apply(t,arguments);return!t.has()&&i&&(n.off("resize",l),i=!1),e},t}(),r=function(e){return 768>e?"xs":992>e?"sm":1200>e?"md":"lg"},s=function(e){var t=e||r;return t(o(window).width())};t.resizeCallbacks=a,t.defaultScreenFactorFunc=r,t.getCurrentScreenFactor=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(32),s=a.inherit({ctor:function(){this._cache={}},setView:function(e,t){this._cache[e]=t},getView:function(e){return this._cache[e]},removeView:function(e){var t=this._cache[e];return t&&(delete this._cache[e],this.fireEvent("viewRemoved",[{viewInfo:t}])),t},clear:function(){var e=this;o.each(this._cache,function(t){e.removeView(t)})},hasView:function(e){return e in this._cache}}).include(r),l=s.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),c=a.inherit({ctor:function(e){this._filter=e.filter,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,this._events=this._viewCache._events},setView:function(e,t){this._viewCache.setView(e,t),this._filter(e,t)||this._viewCache.removeView(e)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(r),d=5,u=a.inherit({ctor:function(e){this._keys=[],this._size=e.size||d,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,this._events=this._viewCache._events},setView:function(e,t){this.hasView(e)||(this._keys.length===this._size&&this.removeView(this._keys[0]),this._keys.push(e)),this._viewCache.setView(e,t)},getView:function(e){var t=o.inArray(e,this._keys);return 0>t?null:(this._keys.push(e),this._keys.splice(t,1),this._viewCache.getView(e))},removeView:function(e){var t=o.inArray(e,this._keys);return t>-1&&this._keys.splice(t,1),this._viewCache.removeView(e)},clear:function(){return this._keys=[],this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(r),h=a.inherit({ctor:function(e){this._viewCache=e.viewCache||new s,this._navigationManager=e.navigationManager,this._navigationManager.on("itemRemoved",o.proxy(this._onNavigationItemRemoved,this)),this.viewRemoved=this._viewCache.viewRemoved,this._events=this._viewCache._events},_onNavigationItemRemoved:function(e){this.removeView(e.key)},setView:function(e,t){this._viewCache.setView(e,t)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(r);i.exports=s,i.exports.NullViewCache=l,i.exports.ConditionalViewCacheDecorator=c,i.exports.CapacityViewCacheDecorator=u,i.exports.HistoryDependentViewCacheDecorator=h}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(33),r=n(30),s=n(27).keysEqual,l=n(35),c=n(24).errors,d=n(49),u=function(e,t){for(var n,i=o.makeArray(t);i.length;)if(n=i.shift(),n in e)return!0;return!1},h=function(){var e=o.Deferred();return e.resolve.apply(e,arguments).promise()},p=function(){var e=o.Deferred();return e.reject.apply(e,arguments).promise()},f=d.inherit({ctor:function(e){e=o.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!o.isArray(t))throw c.Error("E4006");this._array=t||[]},createQuery:function(){return l(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=this._indexByKey(e);return-1===t?p(c.Error("E4009")):h(this._array[t])},_insertImpl:function(e){var t,n,i=this.key();if(n=o.isPlainObject(e)?o.extend({},e):e,i){if(t=this.keyOf(n),void 0===t||"object"==typeof t&&o.isEmptyObject(t)){if(o.isArray(i))throw c.Error("E4007");t=n[i]=String(new a)}else if(void 0!==this._array[this._indexByKey(t)])return p(c.Error("E4008"))}else t=n;return this._array.push(n),h(e,t)},_updateImpl:function(e,t){var n,i,o=this.key();if(o){if(u(t,o)&&!s(o,e,this.keyOf(t)))return p(c.Error("E4017"));if(n=this._indexByKey(e),0>n)return p(c.Error("E4009"));i=this._array[n]}else i=e;return r.deepExtendArraySafe(i,t),h(e,t)},_removeImpl:function(e){var t=this._indexByKey(e);return t>-1&&this._array.splice(t,1),h(e)},_indexByKey:function(e){for(var t=0,n=this._array.length;n>t;t++)if(s(this.key(),this.keyOf(this._array[t]),e))return t;return-1},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");i.exports=f}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(42),s=n(4),l=n(13),c=n(86),d="dxEventManager",u="dxEmitter",h=a.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=o.proxy(this._cancelHandler,this),this._proxiedAcceptHandler=o.proxy(this._acceptHandler,this)},_attachHandlers:function(){o(document).on(s.addNamespace(l.down,d),o.proxy(this._pointerDownHandler,this)).on(s.addNamespace(l.move,d),o.proxy(this._pointerMoveHandler,this)).on(s.addNamespace([l.up,l.cancel].join(" "),d),o.proxy(this._pointerUpHandler,this)).on(s.addNamespace(c.name,d),o.proxy(this._mouseWheelHandler,this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){s.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 o.each(t,function(e,t){return i=i||n[e]!==t,!i}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,o){o&&o.validatePointers(e)&&o.validate(e)&&(o.addCancelCallback(n._proxiedCancelHandler),o.addAcceptCallback(n._proxiedAcceptHandler),i.push(o))}for(var n=this,i=[],a=o(e.target);a.length;){var r=o.data(a.get(0),u)||[];o.each(r,t),a=a.parent()}return i},_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=o.inArray(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMousewheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMousewheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMousewheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,o=i?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),p=new h,f="dxEmitterSubscription",_=function(e){var t=e.emitter,n=e.events[0],i=e.events;o.each(i,function(a,s){r(s,{noBubble:!e.bubble,setup:function(e,i){var a=o.data(e,f)||{},r=o.data(e,u)||{},l=r[n]||new t(e);a[s]=!0,r[n]=l,o.data(e,u,r),o.data(e,f,a)},add:function(e,t){var i=o.data(e,u),a=i[n];a.configurate(o.extend({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=o.data(e,f),a=o.data(e,u),r=a[n];delete t[s];var l=!0;o.each(i,function(e,n){return l=l&&!t[n]}),l&&(p.isActive(e)&&p.resetEmitter(r),r&&r.dispose(),delete a[n])}})})};i.exports=_}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(17),r=n(23),s=n(21),l=n(6),c=n(3),d=n(18),u="dx-loadindicator",h="dx-loadindicator-wrapper",p="dx-loadindicator-content",f="dx-loadindicator-icon",_="dx-loadindicator-segment",g="dx-loadindicator-segment-inner",m="dx-loadindicator-image",v=d.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=function(){var e=r.current();return e&&e.split(".")[0]};return this.callBase().concat([{device:function(){var e=l.real(),t="android"===e.platform&&!/chrome/i.test(navigator.userAgent);return s.msie&&s.version<10||t},options:{viaImage:!0}},{device:function(){return"win8"===e()||"win10"===e()},options:{_animatingSegmentCount:5}},{device:function(){return"ios7"===e()},options:{_animatingSegmentCount:11}},{device:function(){return"android5"===e()},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return"generic"===e()},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.element().addClass(u)},_render:function(){this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup(),this.callBase()},_renderWrapper:function(){this._$wrapper=o("
").addClass(h),this.element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=o("
").addClass(p),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=o("
").addClass(f),this._$content.append(this._$indicator); for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=o("
").addClass(_).addClass(_+t);e&&n.append(o("
").addClass(g)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(m),e&&this._$wrapper.css("background-image","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,"font-size":n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("background-image","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});c("dxLoadIndicator",v),i.exports=v}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){var i=function(e){return 0===e?0:e/Math.abs(e)},o=function(e,t,n){return Math.min(Math.max(e,t),n)};t.sign=i,t.fitIntoRange=o}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(41).wrapToArray,r=n(42),s=n(4),l=n(110),c=n(60),d="dxdragstart",u="dxdrag",h="dxdragend",p="dxdragenter",f="dxdragleave",_="dxdrop",g=[],m=[],v=[],x={setup:function(e,t){var n=-1!==o.inArray(e,g);n||(g.push(e),m.push([]),v.push(t||{}))},add:function(e,t){var n=o.inArray(e,g),i=t.selector;-1===o.inArray(i,m[n])&&m[n].push(i)},teardown:function(e,t){var n=o._data(e,"events"),i=0;if(o.each([p,f,_],function(e,t){var o=n[t];o&&(i+=o.length)}),!i){var a=o.inArray(e,g);g.splice(a,1),m.splice(a,1),v.splice(a,1)}}};r(p,x),r(f,x),r(_,x);var w=function(e){var t=o.inArray(e.get(0),g),n=m[t],i=e.find(n.join(", "));return-1!==o.inArray(void 0,n)&&(i=i.addBack()),i},y=function(e){var t=o.inArray(e.get(0),g);return v[t]},b=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},C=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.width(),height:t.height()}},k=l.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(d,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?[]:g));this._dropTargets=o.map(t,function(e){return o(e).get(0)})},_move:function(e){var t=s.eventData(e),n=this._calculateOffset(t);this._fireEvent(u,e,{offset:n}),this._processDropTargets(e,n),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,t){var n=this._findDropTarget(e),i=n===this._currentDropTarget;i||(this._fireDropTargetEvent(e,f),this._currentDropTarget=n,this._fireDropTargetEvent(e,p))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};s.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return o.each(g,function(i,a){if(n._checkDropTargetActive(a)){var r=o(a);o.each(w(r),function(i,a){var s=o(a);n._checkDropTarget(y(r),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return o.each(this._dropTargets,function(n,i){return t=t||i===e||o.contains(i,e),!t}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var o=b(e,t);if(n.pageXo.left+a.width?!1:n.pageY>o.top+a.height?!1:t},_end:function(e){var t=s.eventData(e);this._fireEvent(h,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,_),delete this._currentDropTarget}});c({emitter:k,events:[d,u,h]}),t.move=u,t.start=d,t.end=h,t.enter=p,t.leave=f,t.drop=_}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(4),r=n(77),s=n(60),l=Math.abs,c="dxhold",d=750,u=5,h=r.inherit({start:function(e){this._startEventData=a.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:d;this._holdTimer=setTimeout(o.proxy(function(){this._requestAccept(e),this._fireEvent(c,e,{target:e.target}),this._forgetAccept()},this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=a.eventDelta(this._startEventData,a.eventData(e));return l(t.x)>u||l(t.y)>u},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()}});s({emitter:h,bubble:!0,events:[c]}),i.exports={name:c}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(32),s=n(10),l=n(2),c=n(37),d=n(8),u={required:{validate:function(e,t){return l.isDefined(e)?e===!1?!1:(e=String(e),!t.trim&&l.isDefined(t.trim)||(e=o.trim(e)),""!==e):!1},defaultMessage:function(e){return d.getFormatter("validation-required")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-required-formatted")(e)}},numeric:{validate:function(e,t){return u.required.validate(e,{})?t.useCultureSettings&&l.isString(e)?!isNaN(c.parse(e)):o.isNumeric(e):!0},defaultMessage:function(e){return d.getFormatter("validation-numeric")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-numeric-formatted")(e)}},range:{validate:function(e,t){if(!u.required.validate(e,{}))return!0;var n=u.numeric.validate(e,t),i=l.isDefined(e),o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!l.isDate(e)&&!i)return!1;if(l.isDefined(a))return l.isDefined(r)?o>=a&&r>=o:o>=a;if(l.isDefined(r))return r>=o;throw s.Error("E0101")},defaultMessage:function(e){return d.getFormatter("validation-range")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-range-formatted")(e)}},stringLength:{validate:function(e,t){return e=l.isDefined(e)?String(e):"",!t.trim&&l.isDefined(t.trim)||(e=o.trim(e)),u.range.validate(e.length,o.extend({},t))},defaultMessage:function(e){return d.getFormatter("validation-stringLength")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-stringLength-formatted")(e)}},custom:{validate:function(e,t){return t.validationCallback({value:e,validator:t.validator,rule:t})},defaultMessage:function(e){return d.getFormatter("validation-custom")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-custom-formatted")(e)}},compare:{validate:function(e,t){if(!t.comparisonTarget)throw s.Error("E0102");o.extend(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return n>e;case"<=":return n>=e}},defaultMessage:function(e){return d.getFormatter("validation-compare")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-compare-formatted")(e)}},pattern:{validate:function(e,t){if(!u.required.validate(e,{}))return!0;var n=t.pattern;return l.isString(n)&&(n=new RegExp(n)),n.test(e)},defaultMessage:function(e){return d.getFormatter("validation-pattern")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-pattern-formatted")(e)}},email:{validate:function(e,t){return u.required.validate(e,{})?u.pattern.validate(e,o.extend({},t,{pattern:/^[\d\w\._\-]+@([\d\w\._\-]+\.)+[\w]+$/i})):!0},defaultMessage:function(e){return d.getFormatter("validation-email")(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-email-formatted")(e)}}},h=a.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return o.each(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){o.each(this.validators,function(e,t){t.reset()})}}).include(r),p={groups:[],getGroupConfig:function(e){var t=o.grep(this.groups,function(t){return t.group===e});return t.length?t[0]:void 0},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new h(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=o.inArray(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){l.isDefined(e.message)||(t.defaultFormattedMessage&&l.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},a=this;return o.each(t||[],function(t,o){var r,c=u[o.type];if(!c)throw s.Error("E0100");return l.isDefined(o.isValid)&&o.value===e&&!o.reevaluate?o.isValid?!0:(i.isValid=!1,i.brokenRule=o,!1):(o.value=e,r=c.validate(e,o),o.isValid=r,r||(i.isValid=!1,a._setDefaultMessage(o,c,n),i.brokenRule=o),o.isValid?void 0:!1)}),i},registerValidatorInGroup:function(e,t){var n=p.addGroup(e);o.inArray(t,n.validators)<0&&n.validators.push(t)},removeRegisteredValidator:function(e,t){var n=p.getGroupConfig(e),i=n&&n.validators,a=o.inArray(t,i);a>-1&&i.splice(a,1)},validateGroup:function(e){var t=p.getGroupConfig(e);if(!t)throw s.Error("E0110");return t.validate()},resetGroup:function(e){var t=p.getGroupConfig(e);if(!t)throw s.Error("E0110");return t.reset()}};p.initGroups(),i.exports=p}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o,a=n(1),r=n(2),s=n(26),l=n(15),c=n(17),d=/left|right/,u=/top|bottom/,h=/fit|flip|none/,p=function(e){var t={h:"center",v:"center"},n=r.splitPair(e);return n&&a.each(n,function(){var e=String(this).toLowerCase();d.test(e)?t.h=e:u.test(e)&&(t.v=e)}),t},f=function(e){return s.pairToObject(e)},_=function(e){var t=r.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return h.test(n)||(n="none"),h.test(i)||(i=n),{h:n,v:i}},g=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},m=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},v=function(e,t){var n=0;return e.myLocationt.max&&(n+=e.myLocation-t.max),n},x=function(e,t,n){return t.myLocationn.max?"h"===e?"right":"bottom":"none"},w=function(e){e.myLocation=e.atLocation+g(e.atAlign)*e.atSize-g(e.myAlign)*e.mySize+e.offset},y={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocationt.max)){var n=a.extend({},e,{myAlign:m(e.myAlign),atAlign:m(e.atAlign),offset:-e.offset});w(n),n.oversize=v(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,t){e.oversize=0}},b=function(){var e=a("
").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(a("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),o=t},C={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},k=function(e,t){var n=a(e),i=n.offset(),r=a.extend(!0,{},C,{h:{location:i.left},v:{location:i.top}});if(!t)return r;var s=p(t.my),l=p(t.at),d=t.of||window,u=f(t.offset),h=_(t.collision),g=t.boundary,m=f(t.boundaryOffset),k={mySize:n.outerWidth(),myAlign:s.h,atAlign:l.h,offset:u.h,collision:h.h,boundaryOffset:m.h},S={mySize:n.outerHeight(),myAlign:s.v,atAlign:l.v,offset:u.v,collision:h.v,boundaryOffset:m.v};if(d.preventDefault)k.atLocation=d.pageX,S.atLocation=d.pageY,k.atSize=0,S.atSize=0;else if(d=a(d),a.isWindow(d[0]))k.atLocation=d.scrollLeft(),S.atLocation=d.scrollTop(),k.atSize=d.width(),S.atSize=d.height();else if(9===d[0].nodeType)k.atLocation=0,S.atLocation=0,k.atSize=d.width(),S.atSize=d.height();else{var T=d.offset();k.atLocation=T.left,S.atLocation=T.top,k.atSize=d.outerWidth(),S.atSize=d.outerHeight()}w(k),w(S);var I=function(){var e=a(window),t=e.width(),n=e.height(),i=e.scrollLeft(),r=e.scrollTop(),s=document.width>document.documentElement.clientWidth,l=document.height>document.documentElement.clientHeight,d=c.touch?document.documentElement.clientWidth/(l?t-o:t):1,u=c.touch?document.documentElement.clientHeight/(s?n-o:n):1;void 0===o&&b();var h=t,p=n;if(g){var f=a(g),_=f.offset();i=_.left,r=_.top,h=f.width(),p=f.height()}return{h:{min:i+k.boundaryOffset,max:i+h/d-k.mySize-k.boundaryOffset},v:{min:r+S.boundaryOffset,max:r+p/u-S.mySize-S.boundaryOffset}}}();k.oversize=v(k,I.h),S.oversize=v(S,I.v),k.collisionSide=x("h",k,I.h),S.collisionSide=x("v",S,I.v),y[k.collision]&&y[k.collision](k,I.h),y[S.collision]&&y[S.collision](S,I.v);var D=function(e){return t.precise?e:Math.round(e)};return a.extend(!0,r,{h:{location:D(k.myLocation),oversize:D(k.oversize),fit:k.fit,flip:k.flip,collisionSide:k.collisionSide},v:{location:D(S.myLocation),oversize:D(S.oversize),fit:S.fit,flip:S.flip,collisionSide:S.collisionSide},precise:t.precise}),r},S=function(e,t){var n=a(e);if(!t)return n.offset();l.resetPosition(n);var i=n.offset(),o=t.h&&t.v?t:k(n,t),r=function(e){return t.precise?e:Math.round(e)};return l.move(n,{left:o.h.location-r(i.left),top:o.v.location-r(i.top)}),o};a.extend(S,{inverseAlign:m,normalizeAlign:p}),i.exports={calculateScrollbarWidth:b,calculate:k,setup:S}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1);t.registry={},t.register=function(e,n,i){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=i,a=o.extend(a,r)}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){var t=D(e);return C[t]||C[k[t]||E]}function a(e,t){return k[e+"."+t]||S[e+"."+t]||k[e]}function r(e,t,n){return a(e+t,n)||a(e,n)}function s(e,t){if(!arguments.length)return E;var n=D(t);return E=(e&&e.platform?r(D(e.platform),e.version,n):a(D(e),n))||E,this}function l(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}function c(e,t){var n=l(e,".")||l(e,"-")||{name:e},i=n.name,o=n.scheme;o?(k[i]=k[i]||t,k[i+"."+o]=k[i+"-"+o]=t):k[i]=t}function d(e,t){var n=D(e&&e.name);n&&(c(n,n),C[n]=T(!0,{},o(t),_(e)))}function u(e,t){c(D(e),D(t))}function h(e,t){S[e]=t}function p(e,t,n,i){var o=n?n[t]:i;void 0!==o&&void 0===e[t]&&(e[t]=o)}function f(e,t,n,i){var o=n?n[t]:i;void 0!==o&&(e[t]=T(!0,{},o,e[t]))}function _(e){return e=T(!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:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e),p(e.loadingIndicator,"backgroundColor",e),p(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),p(e.map.background,"color",null,e.backgroundColor),p(e.title.font,"color",null,e.primaryTitleColor),f(e.title,"subtitle",null,e.title),p(e.legend.font,"color",null,e.secondaryTitleColor),p(e.legend.border,"color",null,e.axisColor),g(e),I(["chart","pie","polar","gauge","barGauge","map","treeMap","rangeSelector","sparkline","bullet"],function(t,n){p(e[n],"redrawOnResize",e),p(e[n],"containerBackgroundColor",null,e.backgroundColor),f(e[n],"tooltip",e)}),I(["chart","pie","polar","gauge","barGauge","map","treeMap","rangeSelector"],function(t,n){f(e[n],"loadingIndicator",e),f(e[n],"export",e),f(e[n],"legend",e),f(e[n],"title",e)}),I(["chart","pie","polar"],function(t,n){f(e,n,null,e["chart:common"])}),I(["chart","polar"],function(t,n){e[n]=e[n]||{},f(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),f(e.rangeSelector.chart,"commonSeriesSettings",e.chart),f(e.rangeSelector.chart,"dataPrepareSettings",e.chart),p(e.treeMap.group.border,"color",null,e.axisColor),p(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),p(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),p(e.treeMap.group.label.font,"color",null,e.secondaryTitleColor),p(e.map.legend,"backgroundColor",e),m(e),e}function g(e){var t=e["chart:common:axis"],n="color";I([t,t.grid,t.minorGrid,t.tick,t.minorTick],function(t,i){p(i,n,null,e.axisColor)}),p(t.title.font,n,null,e.secondaryTitleColor),p(t.label.font,n,null,e.axisLabelColor),p(e.gauge.scale.label.font,n,null,e.axisLabelColor),p(e.gauge.scale.tick,n,null,e.backgroundColor),p(e.gauge.scale.minorTick,n,null,e.backgroundColor),p(e.rangeSelector.scale.tick,n,null,e.axisColor),p(e.rangeSelector.scale.minorTick,n,null,e.axisColor),p(e.rangeSelector.scale.label.font,n,null,e.axisLabelColor)}function m(e){var t=e.map;I(["area","line","marker"],function(e,n){f(t,"layer:"+n,null,t.layer)}),I(["dot","bubble","pie","image"],function(e,n){f(t,"layer:marker:"+n,null,t["layer:marker"])})}function v(e){var t=++A;e._cache=t,B[t]=e}function x(e){delete B[e._cache]}function w(){return I(B,function(){this.refresh()}),this}var y=n(1),b=n(7),C={},k={},S={},T=y.extend,I=y.each,D=b.normalizeEnum,E=null,A=0,B={};T(t,{currentTheme:s,registerTheme:d,findTheme:o,registerThemeAlias:u,registerThemeSchemeAlias:h,refreshAll:w,addCacheItem:v,removeCacheItem:x})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t,n){var i=[],o=function(e){return 10>e?"0".concat(e):String(e)},a=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&a()||(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(e.getMilliseconds())),n||i.push("Z")),i.join("")}function a(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]);return t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),l.isArray(o)&&o.length&&(t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3])),t.setMilliseconds(Number(String(o[4]).substr(0,3))||0)),t}function r(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function s(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,o=n(e).split("/"),a=t.split("/");for(o.pop();a.length;)i=a.shift(),".."===i?o.pop():o.push(i);return o.join("/")}var l=n(1),c=n(5),d=n(2),u=n(33),h=d.isDefined,p=n(24).errors,f=n(27),_=/^(\{{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})$/,g=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,m=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,v="application/json;odata=verbose",x=function(e,t,n){function i(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=o(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw p.Error("E4002")}})}t=l.extend({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var r=(t.method||"get").toLowerCase(),s="get"===r,c=s&&n.jsonp,d=l.extend({},t.params),u=s?d:i(t.payload),h=!s&&l.param(d),f=t.url,_=!s&&v;return h&&(f+=(f.indexOf("?")>-1?"&":"?")+h),c&&(u.$format="json"),{url:f,data:u,dataType:c?"jsonp":"json",jsonp:c&&"$callback",type:r,async:t.async,timeout:t.timeout,headers:t.headers,contentType:_,accepts:{json:[v,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},w=function(e,t,n,i){var o=l.Deferred(),a=x(e,t,n);return l.ajax(a).always(function(t,l){var c,d=C(t,l,i),u=d.error,h=d.data,f=d.nextUrl;u?o.reject(u):n.countOnly?isFinite(d.count)?o.resolve(d.count):o.reject(new p.Error("E4018")):f?(r(f)||(f=s(a.url,f)),w(e,{url:f},n,i).fail(o.reject).done(function(e){o.resolve(h.concat(e))})):(isFinite(d.count)&&(c={totalCount:d.count}),o.resolve(h,c))}),o.promise()},y=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},b=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",o=e;if("success"!==t){n=e.status,i=f.errorMessageFromXhr(e,t);try{o=l.parseJSON(e.responseText)}catch(e){}}var a=o&&(o.error||o["odata.error"]||o["@odata.error"]);return a?(i=y(a)||i,200===n&&(n=500),a.code&&(n=Number(a.code)),l.extend(Error(i),{httpStatus:n,errorDetails:a})):200!==n?l.extend(Error(i),{httpStatus:n}):void 0},C=function(e,t,n){var i,o=b(e,t);return o?{error:o}:l.isPlainObject(e)?(i="d"in e&&(d.isArray(e.d)||d.isObject(e.d))?k(e,t):S(e,t),I(i,n),i):{data:e}},k=function(e){var t=e.d;return h(t)?(t=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")}},S=function(e){var t=e;return h(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},T=c.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),I=function(e,t){l.each(e,function(n,i){if(null!==i&&"object"==typeof i)"results"in i&&(e[n]=i.results),I(e[n],t);else if("string"==typeof i&&(_.test(i)&&(e[n]=new u(i)),t!==!1))if(i.match(g)){var o=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);e[n]=new Date(o.valueOf()+60*o.getTimezoneOffset()*1e3)}else m.test(i)&&(e[n]=new Date(a(e[n]).valueOf()))})},D=function(e){return"datetime'"+o(e,!0,!0)+"'"},E=function(e){return"'"+e.replace(/'/g,"''")+"'"},A=function(e){return e instanceof T?e.valueOf():e.replace(/\./g,"/")},B=function(e){return e instanceof Date?o(e,!1,!1):e instanceof u?e.valueOf():M(e)},M=function(e){return e instanceof Date?D(e):e instanceof u?"guid'"+e+"'":e instanceof T?e.valueOf():"string"==typeof e?E(e):String(e)},O=function(e,t){switch(t){case 2:case 3:return M(e);case 4:return B(e);default:throw p.Error("E4002")}},P=function(e,t){if(l.isPlainObject(e)){var n=[];return l.each(e,function(e,i){n.push(A(e)+"="+O(i,t))}),n.join()}return O(e,t)},R={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof T?e:new T(e+"L")},Guid:function(e){return e instanceof u?e:new u(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof T?e:new T(e+"f")},Decimal:function(e){return e instanceof T?e:new T(e+"m")}};t.sendRequest=w,t.serializePropName=A,t.serializeValue=O,t.serializeKey=P,t.keyConverters=R,t.EdmLiteral=T}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o,a=n(1),r=n(5),s=n(2),l=n(6),c=n(4),d=n(13),u=n(77),h=n(60),p="dxactive",f="dxinactive",_=30,g=400,m=r.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this._timer=window.setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),v=u.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new m(0,a.noop),this._inactive=new m(0,a.noop)},configurate:function(e,t){switch(t){case p:e.activeTimeout=e.timeout;break;case f:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(o){var t=a.contains(this.getElement().get(0),o.getElement().get(0)),n=!o._active.fired();if(t&&n)return void this._cancel();o._inactive.force()}o=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),i=c.isMouseEvent(e),a=l.isSimulator(),r=a||!i,d=s.ensureDefined(this.activeTimeout,_),u=s.ensureDefined(this.inactiveTimeout,g);this._active=new m(r?d:0,function(){t._fireEvent(p,e,{target:n})}),this._inactive=new m(r?u:0,function(){t._fireEvent(f,e,{target:n}),o=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==d.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),o=null,this._cancel(),a.proxy(this._inactive.force,this._inactive)}});v.lock=function(e){var t=o?o.lockInactive():a.noop;a.when(e).always(t)},h({emitter:v,events:[p,f]}),t.lock=v.lock,t.active=p,t.inactive=f}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=n(12),s=n(37),l=n(14),c=n(75),d=n(36).logger;n(108),i.exports=c({_addFormatSeparator:function(e,t){var n=" ";return t?e+n+t:e},_getDateTimeFormatPattern:function(e){return l.getPatternByFormat(e)},format:function(e,t,n){var i=a.isString(t)&&""!==t||o.isPlainObject(t)||a.isFunction(t),r=a.isNumber(e)||a.isDate(e);return i&&r?a.isFunction(t)?t(e):(void 0!==n&&d.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),a.isString(t)&&(t={type:t,precision:n}),a.isNumber(e)?s.format(e,t):a.isDate(e)?l.format(e,t):void 0):a.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?this._getDateTimeFormatPattern("longtime"):this._getDateTimeFormatPattern("shorttime")},getDateFormatByDifferences:function(e){var t="";if(e.millisecond&&(t=l.getPatternByFormat("millisecond")),(e.hour||e.minute||e.second)&&(t=this._addFormatSeparator(this.getTimeFormat(e.second),t)),e.year&&e.month&&e.day)return this._addFormatSeparator(this._getDateTimeFormatPattern("shortdate"),t);if(e.year&&e.month)return l.getPatternByFormat("monthandyear");if(e.year&&e.quarter)return l.getPatternByFormat("quarterandyear");if(e.year)return l.getPatternByFormat("year");if(e.quarter)return l.getPatternByFormat("quarter");if(e.month&&e.day)return this._addFormatSeparator(this._getDateTimeFormatPattern("monthandday"),t);if(e.month)return l.getPatternByFormat("month");if(e.day){var n=l.getPatternByFormat("dayofweek")+", "+l.getPatternByFormat("day");return this._addFormatSeparator(n,t)}return t},getDateFormatByTicks:function(e){var t,n,i,o;if(e.length>1)for(n=r.getDatesDifferences(e[0],e[1]),o=1;o0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var i,o,s,l={week:"day"},c=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},d=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=a.isString(n)?n.toLowerCase():n,o=r.getDatesDifferences(e,t),e!==t&&d(o,e>t?t:e,e>t?e:t),s=r.getDateUnitInterval(o),c(o,s,!0),s=r.getDateUnitInterval(n||"second"),c(o,s,!1),o[l[s]||s]=!0,i=this.getDateFormatByDifferences(o)}})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(36).logger,a=n(75);i.exports=a({isWrapped:function(e){return!1},isWritableWrapped:function(e){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(e,t){o.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for enshuring.")}})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(17),r=n(21),s=n(2),l=n(6),c=n(3),d=n(40),u=n(95),h=n(4),p=n(399),f=n(241),_=n(152),g="dxScrollable",m="dxScrollableStrategy",v="dx-scrollable",x="dx-scrollable-disabled",w="dx-scrollable-container",y="dx-scrollable-content",b="vertical",C="horizontal",k="both",S=void 0!==document.onbeforeactivate,T=function(){return[{device:function(e){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!a.nativeScrolling&&!l.isSimulator()&&"generic"===l.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},I=d.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{disabled:!1,onScroll:null,direction:b,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(T(),[{device:function(e){return a.nativeScrolling&&"android"===l.real().platform},options:{useSimulatedScrollbar:!0}},{device:function(e){return"ios"===l.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._initMarkup(),this._attachNativeScrollbarsCustomizationCss(),this._locked=!1},_visibilityChanged:function(e){this.element().is(":hidden")||(e?(this.update(),this._toggleRTLDirection(this.option("rtlEnabled")),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset())},_initMarkup:function(){var e=this.element().addClass(v),t=this._$container=o("
").addClass(w),n=this._$content=o("
").addClass(y);S&&e.on(h.addNamespace("beforeactivate",g),function(e){o(e.target).is(u.focusable)||e.preventDefault()}),n.append(e.contents()).appendTo(t),t.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){navigator.platform.indexOf("Mac")>-1&&r.webkit||this.element().addClass("dx-scrollable-customizable-scrollbars")},_render:function(){this._renderPushBackOffset(),this._renderDirection(),this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase()},_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._lastPushBackValue=e); },_toggleRTLDirection:function(e){var t=this;this.callBase(e),e&&this.option("direction")!==b&&s.deferUpdate(function(){var e=t.scrollWidth()-t.clientWidth();s.deferRender(function(){t.scrollTo({left:e})})})},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:o.proxy(e.getDirection,e),validate:o.proxy(this._validate,this),isNative:this.option("useNative")};this._$container.off("."+g).on(h.addNamespace("scroll",g),o.proxy(e.handleScroll,e)).on(h.addNamespace(p.init,g),t,o.proxy(this._initHandler,this)).on(h.addNamespace(p.start,g),o.proxy(e.handleStart,e)).on(h.addNamespace(p.move,g),o.proxy(e.handleMove,e)).on(h.addNamespace(p.end,g),o.proxy(e.handleEnd,e)).on(h.addNamespace(p.cancel,g),o.proxy(e.handleCancel,e)).on(h.addNamespace(p.stop,g),o.proxy(e.handleStop,e))},_validate:function(e){return this._isLocked()?!1:(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.element().toggleClass(x,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.element().removeClass("dx-scrollable-"+C).removeClass("dx-scrollable-"+b).removeClass("dx-scrollable-"+k).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.element().data(m,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new _(this):new f.SimulatedStrategy(this)},_createActions:function(){this._strategy.createActions()},_clean:function(){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"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState();break;case"updateManually":break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===b?"left":e===C?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(o.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:s.isDefined(t)?-t:void 0,top:s.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==b?-e:void 0,top:i!==C?-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===b?t!==C:e===C?t!==b:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(k)&&e.vertical&&e.horizontal?this._allowedDirectionValue=k:this._isDirection(C)&&e.horizontal?this._allowedDirectionValue=C:this._isDirection(b)&&e.vertical?this._allowedDirectionValue=b:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},content:function(){return 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.option("pushBackValue")},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.content().outerWidth()},update:function(){var e=this;return o.when(e._strategy.update()).done(function(){e._updateAllowedDirection()})},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location(),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=o(e),i=this.content().find(e).length,a=n.parents("."+v).length-n.parents("."+y).length===0;if(i&&a){var r={top:0,left:0},s=this.option("direction");s!==b&&(r.left=this._scrollToElementPosition(n,C,t)),s!==C&&(r.top=this._scrollToElementPosition(n,b,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===b,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this.option("pushBackValue"):0,s=this._elementPositionRelativeToContent(e,i?"top":"left"),l=s-r,c=e[i?"outerHeight":"outerWidth"](),d=i?this.scrollTop():this.scrollLeft(),u=i?this.clientHeight():this.clientWidth(),h=d-l+o,p=d-l-c+u-a;return 0>=h&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});c(g,I),t.default=I,t.deviceDependentOptions=T}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=1e3/60,r=function(e){return this.setTimeout(e,a)},s=function(e){this.clearTimeout(e)},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,c=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;if(l&&c&&(r=l,s=c),l&&!c){var d={};r=function(e){var t=l.call(window,function(){try{if(t in d)return;e.apply(this,arguments)}finally{delete d[t]}});return t},s=function(e){d[e]=!0}}r=o.proxy(r,window),s=o.proxy(s,window),t.requestAnimationFrame=r,t.cancelAnimationFrame=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){i.exports=function(e){var t=n(1),i=n(5),o=i.inherit(e),a=o,r=new a(e),s={},l=function(n,i){t.each(n,function(n){t.isFunction(r[n])?!i&&e[n]||(e[n]=function(){return r[n].apply(e,arguments)}):(i&&(s[n]=e[n]),e[n]=r[n])})};return l(e,!0),e.inject=function(e){a=a.inherit(e),r=new a,l(e)},e.resetInjection=function(){t.extend(e,s),a=o,r=new o},e}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=function(e){return e&&"string"==typeof e?/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon":!1},r=function(e){var t=a(e),n="dx-icon";switch(t){case"image":return o("",{src:e}).addClass(n);case"fontIcon":return o("",{"class":n+" "+e});case"dxIcon":return o("",{"class":n+" "+n+"-"+e});default:return null}};t.getImageSourceType=a,t.getImageContainer=r}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(4),s=a.inherit({ctor:function(e){this._$element=o(e),this._cancelCallback=o.Callbacks(),this._acceptCallback=o.Callbacks()},getElement:function(){return this._$element},validate:function(e){return"dxmousewheel"!==e.type},validatePointers:function(e){return 1===r.hasTouches(e)},allowInterruptionByMousewheel:function(){return!0},configurate:function(e){o.extend(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o.noop,move:o.noop,end:o.noop,cancel:o.noop,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=o.extend({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=r.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?o(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o.noop});i.exports=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(89),r=n(40),s=n(4),l="dxSwipeable",c="dx-swipeable",d={onStart:a.start,onUpdated:a.swipe,onEnd:a.end,onCancel:"dxswipecancel"},u=r.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.element().addClass(c),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),o.each(d,o.proxy(function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),this.element().on(n,this._eventData,function(e){return i({jQueryEvent:e})})},this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){this.element().off("."+l)},_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.publicName(l),i.exports=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(2),s=n(106),l=n(32),c=n(43),d=n(212).processCallback,u=n(99),h={current:"current",blank:"blank",back:"back"},p="__history",f=a.inherit({ctor:function(e){e=e||{},this._currentItem=void 0,this._previousItem=void 0,this._createNavigationDevice(e)},_createNavigationDevice:function(e){this._navigationDevice=e.navigationDevice||new s.HistoryBasedNavigationDevice,this._navigationDevice.uriChanged.add(o.proxy(this._uriChangedHandler,this))},_uriChangedHandler:function(e){for(;u(););this.navigate(e)},_syncUriWithCurrentNavigationItem:function(){var e=this._currentItem&&this._currentItem.uri;this._navigationDevice.setUri(e,!0)},_cancelNavigation:function(e){this._syncUriWithCurrentNavigationItem(),this.fireEvent("navigationCanceled",[e])},_getDefaultOptions:function(){return{direction:"none",target:h.blank}},_updateHistory:function(e,t){this._previousItem=this._currentItem,this._currentItem={uri:e,key:e},this._navigationDevice.setUri(e,t.target===h.current)},_setCurrentItem:function(e){this._currentItem=e},navigate:function(e,t){t=t||{};var n,i=this,a=!i._currentItem,s=i._currentItem||{},l=t.item||{},c=s.uri,d=s.key,u=l.key;return void 0===e&&(e=i._navigationDevice.getUri()),/^_back$/.test(e)?void i.back():(t=o.extend(i._getDefaultOptions(),t||{}),a&&(t.target=h.current),n={currentUri:c,uri:e,cancel:!1,navigateWhen:[],options:t},i.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||c===e&&(void 0===u||u===d)&&!i._forceNavigate?i._cancelNavigation(n):(i._forceNavigate=!1,o.when.apply(o,n.navigateWhen).done(function(){r.executeAsync(function(){i._updateHistory(e,t),i.fireEvent("navigated",[{uri:e,previousUri:c,options:t,item:i._currentItem}])})}))))},back:function(){return this._navigationDevice.back()},previousItem:function(){return this._previousItem},currentItem:function(e){if(!(arguments.length>0))return this._currentItem;if(!e)throw c.Error("E3023");this._setCurrentItem(e)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:o.noop,restoreState:o.noop,removeState:o.noop}).include(l),_=f.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),d.add(o.proxy(this._deviceBackInitiated,this)),this._stateStorageKey=e.stateStorageKey||p},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new s.StackBasedNavigationDevice),this.callBase(e),this._navigationDevice.backInitiated.add(o.proxy(this._deviceBackInitiated,this))},_uriChangedHandler:function(e){this.navigate(e)},_createNavigationStacks:function(e){this.navigationStacks={},this._keepPositionInStack=e.keepPositionInStack,this.currentStack=new g},_deviceBackInitiated:function(){u()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:h.blank}},_createNavigationStack:function(){var e=new g;return e.itemsRemoved.add(o.proxy(this._removeItems,this)),e},_setCurrentItem:function(e){this._setCurrentStack(e.stack),this.currentStack.currentItem(e),this.callBase(e),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(e){var t,n;"string"==typeof e?(n=e,n in this.navigationStacks||(this.navigationStacks[n]=this._createNavigationStack()),t=this.navigationStacks[n]):(t=e,n=o.map(this.navigationStacks,function(t,n){return t===e?n:null})[0]),this.currentStack=t,this.currentStackKey=n},_getViewTargetStackKey:function(e,t){var n;if(t)if(void 0!==this.navigationStacks[e])n=e;else{for(var i in this.navigationStacks)if(this.navigationStacks[i].items[0].uri===e){n=i;break}n=n||e}else n=this.currentStackKey||e;return n},_updateHistory:function(e,t){var n=t.root,i=n,o=!1,a=this.currentStack,r=void 0!==t.keepPositionInStack?t.keepPositionInStack:this._keepPositionInStack;if(t.stack=t.stack||this._getViewTargetStackKey(e,n),this._setCurrentStack(t.stack),!n&&this.currentStack.items.length||(o=this.currentStack===a,i=!0),n&&this.currentStack.items.length)r&&!o||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var s=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case h.blank:this.currentStack.navigate(e);break;case h.current:this.currentStack.navigate(e,!0);break;case h.back:this.currentStack.currentIndex>0?this.currentStack.back(e):this.currentStack.navigate(e,!0);break;default:throw c.Error("E3006",t.target)}if(void 0===t.direction){var d=this.currentStack.currentIndex-s;0>d?t.direction=this.currentStack.currentItem().backDirection||"backward":d>0&&this.currentStack.currentIndex>0?t.direction="forward":t.direction="none"}l.backDirection="forward"===t.direction?"backward":"none"}t.root=i,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(e){var t=this;o.each(e,function(e,n){t.fireEvent("itemRemoved",[n])})},back:function(e){e=e||{};var t=o.extend({cancel:!1},e);if(this.fireEvent("navigatingBack",[t]),t.cancel)return void this._syncUriWithCurrentNavigationItem();var n=this.previousItem(t.stack);n?this.navigate(n.uri,{stack:t.stack,target:h.back,item:n}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(e){var t=e?this.navigationStacks[e]:this.currentStack;return t.canBack()},saveState:function(e){if(this.currentStack.items.length){var t={navigationStacks:{},currentStackKey:this.currentStackKey};o.each(this.navigationStacks,function(e,n){var i={};t.navigationStacks[e]=i,i.currentIndex=n.currentIndex,i.items=o.map(n.items,function(e){return{key:e.key,uri:e.uri}})});var n=JSON.stringify(t);e.setItem(this._stateStorageKey,n)}else this.removeState(e)},restoreState:function(e){if(!this.disableRestoreState){var t=e.getItem(this._stateStorageKey);if(t)try{var n=this,i=JSON.parse(t);o.each(i.navigationStacks,function(e,t){var i=n._createNavigationStack();n.navigationStacks[e]=i,i.currentIndex=t.currentIndex,i.items=o.map(t.items,function(e){return e.stack=i,e})}),this.currentStackKey=i.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(t){throw this.removeState(e),c.Error("E3007")}}},removeState:function(e){e.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(e){var t=this.navigationStacks[e]||this.currentStack;return t.previousItem()},getItemByIndex:function(e){return this.currentStack.items[e]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(e){var t;return o.each(this.navigationStacks,function(n,i){var o=i.itemByKey(e);return o?(t=o,!1):void 0}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):o.isPlainObject(e)&&(t=e),void this.callBase(t)):this.callBase()}}),g=a.inherit({ctor:function(e){e=e||{},this.itemsRemoved=o.Callbacks(),this.clear()},currentItem:function(e){if(!e)return this.items[this.currentIndex];for(var t=0;t1?this.items[this.currentIndex-1]:void 0},canBack:function(){return this.currentIndex>0},clear:function(){this._deleteItems(this.items),this.items=[],this.currentIndex=-1},back:function(e){if(this.currentIndex--,this.currentIndex<0)throw c.Error("E3008");var t=this.currentItem();t.uri!==e&&this._updateItem(this.currentIndex,e)},forward:function(){if(this.currentIndex++,this.currentIndex>=this.items.length)throw c.Error("E3009")},navigate:function(e,t){if(!(this.currentIndex-1&&this.items[this.currentIndex].uri===e)){if(t&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+1o;o++)n(e[o],t)||i.push(e[o]);return i.push.apply(i,t),i},s=function(e,t){var n=!1;return o.each(t,function(t,i){var o=e.option("id")===i.option("id")&&i.option("id"),a=e.option("behavior")===i.option("behavior")&&e.option("behavior");return n=o||a,a&&null===i.option("onExecute")&&i.option("onExecute",e.option("onExecute")),n?(e.element().remove(),!1):void 0}),n},l=function(e,t){return r(e,t,s)},c=function(e,t,n,i){var o=t?t[n]:void 0,a=void 0===o?i:o,r=e.option(n);return void 0===r||r===i?a:r},d=function(e,t){var n=c(e,t,"showText"),i=!!e.option("icon"),o=c(e,t,"title","");return n||!i?o:""},u=function(e,t){var n=c(e,t,"showIcon"),i=!!e.option("title"),o=c(e,t,"icon","");return n||!i?o:""};t.utils={mergeCommands:l,commandToContainer:{resolveIconValue:u,resolveTextValue:d,resolvePropertyValue:c}},t.templateProvider=a}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(39),a=n(10),r=n(53).compare;if(o){if(r(o.version,[2,3])<0)throw a.Error("E0013");n(289),n(292),n(290),n(294),n(295),n(287),n(288)}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(45);if(o&&o.load){var a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};o.load(a),o.locale("en")}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){var t=function(n,i,o,r,s,c){function d(e,s,l){a.when(t(n,i,o,r,s,l)).done(e.resolve)}r=r||[],n=n||[];var u,h,p,f;for(s=s||0,h=s;hs&&h%1e4===0&&new Date-l>=300)return l=new Date,p=a.Deferred(),setTimeout(d(p,h,!1),0),p;if(u=n[h],!c){if(r.unshift(u),o&&i(r,h)===!1)return;if(u.children&&(f=t(u.children,i,o,r),e&&f))return p=a.Deferred(),f.done(d(p,h,!0)),p}if(c=!1,!o&&i(r,h)===!1)return;r.shift(),n[h]!==u&&h--}};return t}var a=n(1),r=n(2),s=n(71);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 a.ajax(e)};var l=new Date;t.foreachTree=o(!1),t.foreachTreeAsync=o(!0),t.findField=function(e,t){var n,i;if(e&&r.isDefined(t))for(n=0;ne(n)?i=1:e(t)=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r0},a=0;a=t.time-this._tickData.time}},u={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=o.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=o.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},h={horizontal:d,vertical:u},p=a.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return h[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=o.eventData(e)},_start:function(e){this._savedEventData=o.eventData(e),e=this._fireEvent(s,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=o.eventData(e),i=t.calcOffsetRatio.call(this,e);i=this._fitOffset(i,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(l,e,{offset:i}),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(c,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),0>e&&(n=-n)):n=Math.round(e),n}});r({emitter:p,events:[s,l,c]}),t.swipe=l,t.start=s,t.end=c}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(382),a=n(3);a("dxList",o),i.exports=o}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(89),s=n(4),l="dxListEditDecorator",c=s.addNamespace(r.start,l),d=s.addNamespace(r.swipe,l),u=s.addNamespace(r.end,l),h=a.inherit({ctor:function(e){this._list=e,this._init()},_init:o.noop,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:o.proxy(function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.element().width(),this._clearSwipeCache=!1),this._itemWidthCache},this)};e.$itemElement.on(c,t,o.proxy(this._itemSwipeStartHandler,this)).on(d,o.proxy(this._itemSwipeUpdateHandler,this)).on(u,o.proxy(this._itemSwipeEndHandler,this))},_itemSwipeStartHandler:function(e){var t=o(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):void this._swipeStartHandler(t,e)},_itemSwipeUpdateHandler:function(e){var t=o(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=o(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:o.noop,afterBag:o.noop,_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:o.noop,handleClick:o.noop,handleContextMenu:o.noop,_swipeStartHandler:o.noop,_swipeUpdateHandler:o.noop,_swipeEndHandler:o.noop,visibilityChange:o.noop,dispose:o.noop});i.exports=h}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=window.DevExpress=window.DevExpress||{};o.clientExporter=n(154),o.VERSION=n(123),o.Class=n(5),o.DOMComponent=n(40),o.registerComponent=n(3),o.devices=n(6);var a=o.errors=n(10);o.Color=n(56);var r=n(1),s=n(53).compare;if(s(r.fn.jquery,[1,10])<0)throw a.Error("E0012");var l=n(74);o.requestAnimationFrame=function(){return a.log("W0000","DevExpress.requestAnimationFrame","15.2","Use the 'DevExpress.utils.requestAnimationFrame' method instead."),l.requestAnimationFrame.apply(l,arguments)},o.cancelAnimationFrame=function(){return a.log("W0000","DevExpress.cancelAnimationFrame","15.2","Use the 'DevExpress.utils.cancelAnimationFrame' method instead."),l.cancelAnimationFrame.apply(l,arguments)},o.EventsMixin=n(32),o.utils={},o.utils.requestAnimationFrame=l.requestAnimationFrame,o.utils.cancelAnimationFrame=l.cancelAnimationFrame,o.utils.initMobileViewport=n(211).initMobileViewport,o.utils.extendFromObject=n(30).extendFromObject,o.utils.createComponents=n(11).createComponents,o.utils.triggerShownEvent=n(11).triggerShownEvent,o.utils.triggerHidingEvent=n(11).triggerHidingEvent,o.utils.resetActiveElement=n(11).resetActiveElement,o.utils.findBestMatches=n(2).findBestMatches,o.createQueue=n(138).create,o.utils.dom=n(11),o.utils.common=n(2),o.utils.date=n(12),o.utils.browser=n(21),o.utils.inflector=n(29),o.utils.resizeCallbacks=n(57).resizeCallbacks,o.utils.console=n(36),o.utils.string=n(26),o.utils.support=n(17),o.processHardwareBackButton=n(212),o.viewPort=n(51).value,o.hideTopOverlay=n(99),o.formatHelper=n(71);var c=o.config=n(34);Object.defineProperty(o,"rtlEnabled",{get:function(){return a.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),c().rtlEnabled},set:function(e){a.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),c({rtlEnabled:e})}}),Object.defineProperty(o,"designMode",{get:function(){return c().designMode},set:function(e){c({designMode:e})}}),o.animationPresets=n(101).presets,o.fx=n(22),o.TransitionExecutor=n(84).TransitionExecutor,o.AnimationPresetCollection=n(101).PresetCollection,i.exports=o.events={},o.events.click=n(9),o.events.utils=n(4),o.events.GestureEmitter=n(110),o.localization={},o.localization.message=n(8),o.localization.number=n(37),o.localization.date=n(14),n(108),i.exports=o}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(3),r=n(26),s=n(15),l=n(66),c=n(2),d=n(62),u=n(54),h="dx-popover",p="dx-popover-wrapper",f="dx-popover-arrow",_="dx-popover-without-title",g={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},m={left:-1,top:-1,center:0,right:1,bottom:1},v={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"}},x=u.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{target:window,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"}}}]},_init:function(){this.callBase(),this._renderArrow(),this.element().addClass(h),this._wrapper().addClass(p)},_renderArrow:function(){this._$arrow=o("
").addClass(f).prependTo(this.overlayContent())},_documentDownHandler:function(e){return this._isOutsideClick(e)?this.callBase(e):void 0},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&o.extend(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(_,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:o.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=l.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),s.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=l.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=r.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isPopoverInside(),a=(i?-1:1)*m[this._positionSide],s=this._getContentBorderWidth(this._positionSide);return this._isVerticalSide()?n+=a*(this._$arrow.height()-s):this._isHorizontalSide()&&(t+=a*(this._$arrow.width()-s)),o.extend({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css("border-"+e+"-width");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()?g[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(g[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=a.offset()||{top:0,left:0},s=this._$content.offset(),l=this._$arrow[i](),c=s[n],u=this._$content[i](),h=r[n],p=a.get(0).preventDefault?0:a[i](),f=Math.max(c,h),_=Math.min(c+u,h+p);t="start"===this.option("arrowPosition")?f-c:"end"===this.option("arrowPosition")?_-c-l:(f+_)/2-c-l/2;var m=this._getContentBorderWidth(e),v=d.fitIntoRange(t-m+this.option("arrowOffset"),m,u-l-2*m);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._getPosition(),t=l.setup.normalizeAlign(e.my),n=l.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_getPosition:function(){var e=this.option("position");return c.isString(e)&&(e=o.extend({},v[e])),e},_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=o.extend({},this._getPosition());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=l.setup.normalizeAlign(e.my),n=l.setup.normalizeAlign(e.at),i=m[t.h]===m[n.h]&&m[t.v]===m[n.v]?-1:1,o=Math.abs(m[t.h]-i*m[n.h]),a=Math.abs(m[t.v]-i*m[n.v]);return o>a?n.h:n.v},_isVerticalSide:function(e){return e=e||this._positionSide,"top"===e||"bottom"===e},_isHorizontalSide:function(e){return e=e||this._positionSide,"left"===e||"right"===e},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this.callBase(e),this._renderGeometry();break;case"target":case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});a("dxPopover",x),i.exports=x}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){i.exports=n(408)}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i,o;i=[n(1)],o=function(e){var t=function(e,t){var i=e.nodeName.toLowerCase(),o=!isNaN(t),a=n(e),r=e.disabled,s=/^(input|select|textarea|button|object|iframe)$/.test(i),l="a"===i,c=!0;return c=s?!r:l?e.href||o:o,a?c:!1},n=function(t){var n=e(t);return n.is(":visible")&&"hidden"!==n.css("visibility")&&"hidden"!==n.parents().css("visibility")},i=function(t,n){var i=!1;return e.each(e(t).contents(),function(e,t){return 3===t.nodeType&&(t.textContent||t.nodeValue||"").toLowerCase().indexOf((n||"").toLowerCase())>-1?(i=!0,!1):void 0}),i};return e.extend(e.expr[":"],{"dx-focusable":function(n){return t(n,e.attr(n,"tabindex"))},"dx-tabbable":function(n){var i=e.attr(n,"tabindex");return(isNaN(i)||i>=0)&&t(n,i)},"dx-icontains":e.expr.createPseudo(function(e){return function(t){return i(t,e)}})}),{focusable:":dx-focusable",tabbable:":dx-tabbable",icontains:":dx-icontains"}}.apply(t,i),!(void 0!==o&&(e.exports=o))},function(e,t,n){var i;i=function(e,t,i){function o(e){var t=0;return c(e,function(e,n){t+=n}),t}function a(e){return-1!==s.inArray(e,[P,O,A,B,M])}function r(e,t){return o(g(e,function(e){return(e-t)*(e-t)}))/e.length}var s=n(1),l=n(174),c=s.each,d=s.extend,u=s.noop,h=n(2),p=h.isDefined,f=h.isString,_=n(7),g=_.map,m=_.normalizeEnum,v=Math,x=v.floor,w=v.abs,y=v.sqrt,b=v.min,C=v.max,k=2,S=12,T=400,I="highError",D="lowError",E="original",A="variance",B="stddeviation",M="stderror",O="percent",P="fixed",R="undefined",V="discrete",F="logarithmic",L="datetime";t.chart={},t.polar={};var H={_defaultDuration:T,_defaultTrackerWidth:S,_applyStyle:u,_updateOptions:u,_parseStyle:u,_prepareSegment:u,_drawSegment:u,_generateDefaultSegments:u,_prepareSeriesToDrawing:function(){var e=this;e._deleteOldAnimationMethods(),e._disposePoints(e._oldPoints),e._oldPoints=null},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},updateTemplateFieldNames:function(){var e=this,t=e._options;t.valueField=e.getValueFields()[0]+e.name,t.tagField=e.getTagField()+e.name},_applyElementsClipRect:function(e){e.clipId=this._paneClipRectID},_applyMarkerClipRect:function(e){e.clipId=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var o=t[e]=t[e]||this._renderer.g();n&&o.append(n),i&&o.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},_applyVisibleArea:function(){var e=this,t=e.translators.x.getCanvasVisibleArea(),n=e.translators.y.getCanvasVisibleArea();e._visibleArea={minX:t.min,maxX:t.max,minY:n.min,maxY:n.max}},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(a(m(e.type))||p(e.lowValueField)||p(e.highValueField))},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={"class":"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,clipId:n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=d(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getSpecialColor:function(e){return e},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n){var i=e.border||{};return{fill:e.color||t,stroke:i.color||n,"stroke-width":i.visible?i.width:0,r:e.size/2+(i.visible&&0!==e.size?~~(i.width/2)||0:0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,o=t._parsePointStyle(e,n,n);return o.visibility=e.visible?"visible":"hidden",{normal:o,hover:t._parsePointStyle(e.hoverStyle,i,n),selection:t._parsePointStyle(e.selectionStyle,i,n)}},_checkData:function(e){return p(e.argument)&&void 0!==e.value},getErrorBarRangeCorrector:function(){var e,t;return this.areErrorBarsVisible()&&(e=m(this._options.valueErrorBar.displayMode),t=function(t){var n=t.lowError,i=t.highError;switch(e){case"low":return[n];case"high":return[i];case"none":return[];default:return[n,i]}}),t},_processRange:function(e,t,n){l.processRange(this,e,t,n)},_getRangeData:function(e,t){return l.calculateRangeData(this,e,t),l.addLabelPaddings(this),this._rangeData},_getPointData:function(e,t){var n={value:e[t.valueField||"val"],argument:e[t.argumentField||"arg"],tag:e[t.tagField||"tag"]};return this._fillErrorBars(e,n,t),n},_errorBarsEnabled:function(){return this.valueAxisType!==V&&this.valueAxisType!==F&&this.valueType!==L},_fillErrorBars:function(e,t,n){var i=n.valueErrorBar;this.areErrorBarsVisible()&&(t.lowError=e[i.lowValueField||D],t.highError=e[i.highValueField||I])},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_clearingAnimation:function(e,t){var n=this,i={opacity:.001},o={duration:n._defaultDuration,partitionDuration:.5};n._labelsGroup&&n._labelsGroup.animate(i,o,function(){n._markersGroup&&n._markersGroup.animate(i,o,t)})},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;c(e._drawnPoints||[],function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_getPointSize:function(){return this._options.point.visible?this._options.point.size:k},_calcMedianValue:function(e,t){var n,i=g(e,function(e){return p(e[t])?e[t]:null});return i.sort(function(e,t){return e-t}),n=i[x(i.length/2)],p(n)?n:null},_calcErrorBarValues:function(e){if(!e.length)return{};var t,n,i=e[0].lowError,o=e[0].highError,a=1,r=e.length;for(a;r>a;a++)t=e[a].lowError,n=e[a].highError,p(t)&&p(n)&&(i=b(t,i),o=C(n,o));return{low:i,high:o}},_fusionPoints:function(e,t,n){var i=this._calcErrorBarValues(e);return{value:this._calcMedianValue(e,"value"),argument:t,tag:null,index:n,seriesName:this.name,lowError:i.low,highError:i.high}},_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,f(e)&&o.push(e),f(t)&&o.push(t)),o},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,a,s,l=this,d=l._options,u=d.valueErrorBar,h=m(u.type),f=parseFloat(u.value),_=l.getValueFields()[0],v=u.lowValueField||D,x=u.highValueField||I,w=function(e,n){t=n[_],n[v]=t-f,n[x]=t+f};switch(h){case P:s=w;break;case O:s=function(e,n){t=n[_];var i=t*f/100;n[v]=t-i,n[x]=t+i};break;case R:s=function(e,t){t[v]=t[E+v],t[x]=t[E+x]};break;default:switch(n=g(e,function(e){return p(e[_])?e[_]:null}),i=n.length,f=f||1,h){case A:f=r(n,o(n)/i)*f,s=w;break;case B:a=o(n)/i,f=y(r(n,a))*f,s=function(e,t){t[v]=a-f,t[x]=a+f};break;case M:f=y(r(n,o(n)/i)/i)*f,s=w}}s&&c(e,s)}},_beginUpdateData:function(e){this._calculateErrorBars(e)}};t.chart=d({},H,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],o=n._options.rotated,a=[];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({clipId:this._paneClipRectID||null}).append(n._group),c(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=a,c(n.getVisiblePoints(),function(e,t){var n=parseInt(o?t.vy:t.vx);a[n]?s.isArray(a[n])?a[n].push(t):a[n]=[a[n],t]:a[n]=t}))},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,o=i,a=this._trackersTranslator,r=null,l=this._options.rotated?e:t,d=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}}),t.polar=d({},H,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(c(n,function(t,n){return n?(e=t,!1):void 0}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=this.translators.untranslate(e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this,t=e.translators.canvas;e._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}}})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){return e>t}function a(e,t){return t>e}function r(e,t,n,i){var o=d(t);d(e)?o&&i(e,t)&&n(t):o&&n(t)}var s,l=n(1),c=n(2),d=c.isDefined,u=c.isDate,h=n(7).unique,p="min",f="max",_="minVisible",g="maxVisible",m="base",v="axisType";s=t.Range=function(e){e&&l.extend(this,e)},s.prototype={constructor:s,addRange:function(e){var t=this,n=t.categories,i=e.categories,s=function(n,i){r(t[n],e[n],function(e){t[n]=e},i)},l=function(e,n,i){r(t[e],t[n],function(n){d(t[e])&&(t[e]=n)},i)},u=function(n){t[n]=t[n]||e[n]};return c.isDefined(e.stick)&&(t.stick=e.stick),u("addSpiderCategory"),u("percentStick"),u("minSpaceCorrection"),u("maxSpaceCorrection"),u("invert"),u(v),u("dataType"),"logarithmic"===t[v]?u(m):t[m]=void 0,s(p,o),s(f,a),"discrete"===t[v]?(u(_),u(g)):(s(_,o),s(g,a)),s("interval",o),l(p,_,o),l(p,g,o),l(f,g,a),l(f,_,a),void 0===n?t.categories=i:t.categories=i?h(n.concat(i)):n,t},isDefined:function(){return d(this[p])&&d(this[f])||this.categories&&this.categories.length},setStubData:function(e){var t=this,n=(new Date).getYear()-1,i="datetime"===e,o="discrete"===t[v];return o?t.categories=["0","1","2"]:(t[p]=i?new Date(n,0,1):0,t[f]=i?new Date(n,11,31):10),t.stubData=!0,t},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]||u(t[f])||u(t[p])?t:(e(p,f),e(_,g),t)},checkZeroStick:function(){var e=this;return e.min>=0&&e.max>=0?e.minStickValue=0:e.min<=0&&e.max<=0&&(e.maxStickValue=0),e}}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(){}function a(){function e(){var e,n=t.length;for(e=0;n>e;++e)t[e].apply(this,arguments)}var t=[];return e.add=function(e){t.push(e)},e}var r=n(7).patchFontOptions;t.empty=o,t.expand=function(e,t,n){var i=e[t];i.add?i.add(n):i===o?i=n:(i=a(),i.add(e[t]),i.add(n)),e[t]=i},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:r(e.font)}}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=function(){var e=[];return{add:function(t){var n=o.inArray(t,e);-1===n&&e.push(t)},remove:function(t){var n=o.inArray(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}}}();i.exports=function(){return a.fire()},i.exports.hideCallback=a}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(46),r=n(11),s=a.inherit({ctor:function(e,t){this.callBase(o(),t),this._render=e},_renderCore:function(e,t,n){return r.normalizeTemplateElement(this._render(e,t,n))}});i.exports=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(85),r=n(6),s=n(22),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=a.inherit({ctor:function(){this.callBase.apply(this,arguments),this._customRules=[],this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return o.extend(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 c+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===r?l.from={left:a,opacity:e}:"backward"===r?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===r?l.to={left:-a,opacity:e}:"backward"===r?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o.each(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;this._customRules.length=0,o.each(this._registeredPresets,function(t,n){var i={device:n.config.device,options:{}};i.options[e._getPresetOptionName(n.name)]=n.config.animation,e._customRules.push(i)}),this._setOptionsByDevice()},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay") }}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=d;var u=new d;t.presets=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(2),s=n(26),l=n(308),c=n(37),d=n(190),u='',h='',p="",f='',_="http://schemas.openxmlformats.org",g="rels",m="xl",v="workbook.xml",x="[Content_Types].xml",w="sharedStrings.xml",y="styles.xml",b="worksheets",C="sheet1.xml",k={longDate:"d MMMM yyyy",longTime:"H:mm:ss",monthAndDay:"MMMM dd",monthAndYear:"MMMM yyyy",quarterAndYear:"dd.MM.yyyy",shortDate:"dd.MM.yyyy",shortTime:"H:mm",millisecond:"H:mm:ss",day:"dd",month:"MMMM",quarter:"dd.MM.yyyy",year:"yyyy"},S="shortTime",T={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedPoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},I={"boolean":"b",date:"d",number:"n",string:"s"},D=Date.UTC(1899,11,30),E=60,A=4,B=7,M=165;n(108),t.excelFormatConverter={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;t>i;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return c.getOpenXmlCurrencyFormat(e)},_convertDateFormat:function(e){return k[e]||k[S]},_convertNumberFormat:function(e,t){var n,i="currency"===e?this._getCurrencyFormat():T[e];return i&&(n=s.format(i,this._applyPrecision(e,t))),n},convertFormat:function(e,n,i){if(r.isDefined(e)){if("date"===i)return t.excelFormatConverter._convertDateFormat(e);if(T[e])return t.excelFormatConverter._convertNumberFormat(e,n)}}},t.ExcelCreator=a.inherit({_getXMLTag:function(e,t,n){var i,o,a="<"+e,s=t.length;for(i=0;s>i;i++)o=t[i],a=a+" "+o.name+'="'+o.value+'"';return r.isDefined(n)?a+">"+n+"":a+" />"},_getDataProviderRowIndex:function(e){var t=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():0;return e-t},_getExcelRowIndex:function(e){var t=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():0;return e+t},_getCellIndex:function(e,t){var n,i="",o=26;for(this._maxIndex[0]=o?t%o:Math.ceil(t)),i=String.fromCharCode(n)+i,!(t>=o))break;t=Math.floor(t/o)-1}return i+e},_getDataType:function(e){return I[e]||"s"},_appendFormat:function(e,n,i){return e=t.excelFormatConverter.convertFormat(e,n,i),e?(-1===o.inArray(e,this._styleFormat)&&this._styleFormat.push(e),o.inArray(e,this._styleFormat)+1):void 0},_appendString:function(e){return r.isDefined(e)&&(e=String(e),e.length)?(e=s.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]):void 0},_getExcelDateValue:function(e){var t,n;return r.isDate(e)?(t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-D)/864e5),E>t&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n):void 0},_prepareValue:function(e,t){var n=this._dataProvider,i=n.getCellValue(e,t),o=this._getDataType(n.getCellType(e,t)),a=this._styleArray[t+A].formatID,s=r.isNumber(a)?this._styleFormat[a-1]:null;switch("d"!==o||r.isDate(i)||(o="s"),o){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,s),o="n"}return{value:i,type:o}},_getHeadersArray:function(){var e,t,n,i=this._dataProvider.getColumns(!0),o=[];for(e=0;ee;e++){for(n=[],o=d.length,t=0;t!==o;t++)i=this._prepareValue(e,t),a=i.type,!this._dataProvider.isGroupRow(e)&&r.isDefined(this._styleArray[t+A].formatID)&&"s"!==i.type&&(a="n"),s=t+A,this._dataProvider.isGroupRow(e)&&(s=A-1),this._dataProvider.isTotalCell(e,t)&&(s=this._getBoldStyleID(d[t].alignment)),n.push({style:s,value:i.value,type:a});e&&!this._needSheetPr&&this._dataProvider.getGroupLevel(this._getDataProviderRowIndex(e))>0&&(this._needSheetPr=!0),l.push(n)}return l},_getBoldStyleID:function(e){for(var t=0;A-1>t;t++)if(this._styleArray[t].alignment===e)return t},_calculateWidth:function(e){return e=parseInt(e,10),(!e||5>e)&&(e=100),Math.min(255,Math.floor((e-5)/B*100+.5)/100)},_prepareStyleData:function(){var e,t,n=Number(!!this._options.wrapTextEnabled),i=["center","left","right"],o=this._dataProvider.getColumns();for(e=0;e'},_generateStylesXML:function(){var e,t,n,i=this._zip.folder(m),o=this._styleArray.length,a=[],s="";for(n=0;ne;e++)t=this._styleArray[e],a.push(this._getXMLTag("xf",[{name:"xfId",value:0},{name:"applyAlignment",value:1},{name:"fontId",value:Number(!!t.bold)},{name:"applyNumberFormat",value:r.isDefined(t.formatID)?1:0},{name:"numFmtId",value:r.isDefined(t.formatID)?Number(t.formatID)+M-1:0}],this._getXMLTag("alignment",[{name:"horizontal",value:t.alignment},{name:"vertical",value:"top"},{name:"wrapText",value:t.wrapText}])));s+=this._getXMLTag("cellXfs",[{name:"count",value:a.length}],a.join("")),s+=this._getXMLTag("cellStyles",[{name:"count",value:1}],this._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),s=u+this._getXMLTag("styleSheet",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],s),i.file(y,s),this._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(m),n=this._stringArray.length,i=u;for(e=0;n>e;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(w,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._getCellIndex(t.y+1,t.x)}),this._getXMLTag("pane",e)):""},_generateWorksheetXML:function(){var e,t,n,i,o,a,s=0,l=[],c=this._cellsArray.length,d=this._colsArray.length,u="1:"+d,f=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,_=[['',this._needSheetPr?h:p,''+this._getPaneXML()+''].join("")];for(e=0;d>e;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(_.push(this._getXMLTag("cols",[],this._colsArray.join(""))+""),t=0;c>t;t++){for(i=[],a=this._cellsArray[t].length,e=0;a>e;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._getCellIndex(t+1,e)},{name:"s",value:n.style},{name:"t",value:n.type}],r.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));l.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:u},{name:"outlineLevel",value:t>=f?this._dataProvider.getGroupLevel(this._getDataProviderRowIndex(t)):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s++>1e4&&(_.push(l.join("")),l=[],s=0)}_.push(l.join("")),l=[],o=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),_.push(""+this._generateMergingXML()+(this._options.autoFilterEnabled?'':"")+''),this._zip.folder(m).folder(b).file(C,_.join("")),this._colsArray=[],this._cellsArray=[],_=[]},_generateMergingXML:function(){var e,t,n,i,o,a,s=r.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],d=[],u="";for(i=0;s>i;i++)for(n=0;n!==l;n++)if(!r.isDefined(c[i])||!r.isDefined(c[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(d.push({start:this._getCellIndex(i+1,n),end:this._getCellIndex(i+1+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)r.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(o=d.length,a=0;o>a;a++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:d[a].start+":"+d[a].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:o}],u):""},_generateCommonXML:function(){var e,t=u+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+v)),n=this._zip.folder(m),i=u;this._zip.folder("_"+g).file("."+g,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+C)+this._createXMLRelationship(2,"styles",y)+this._createXMLRelationship(3,"sharedStrings",w),i+=this._createXMLRelationships(e),n.folder("_"+g).file(v+".rels",i),n.file(v,this._getWorkbookContent()),this._zip.file(x,this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxIndex=[1,2],this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._styleFormat=[],this._needSheetPr=!1,this._dataProvider=e,this._zip=new l},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}}),t.getBlob=function(e,n,i){var o=new t.ExcelCreator(e,n);o.ready().done(function(){o._zip.generateAsync?o.getData(r.isFunction(window.Blob)).then(i):i(o.getData(r.isFunction(window.Blob)))})}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(139),r=n(69),s=r.serializePropName,l=n(24).errors,c=n(27),d=2,u=function(){var e=function(e){return function(t,n){return t+" "+e+" "+n}},t=function(e,t){return function(n,i){var o=[e,"("];return t?o.push(i,",",n):o.push(n,",",i),o.push(")"),o.join("")}},n={"=":e("eq"),"<>":e("ne"),">":e("gt"),">=":e("ge"),"<":e("lt"),"<=":e("le"),startswith:t("startswith"),endswith:t("endswith")},i=o.extend({},n,{contains:t("substringof",!0),notcontains:t("not substringof",!0)}),a=o.extend({},n,{contains:t("contains"),notcontains:t("not contains")}),d=function(e,t){e=c.normalizeBinaryCriterion(e);var n=e[1],o=4===t?a:i,d=o[n.toLowerCase()];if(!d)throw l.Error("E4003",n);return d(s(e[0]),r.serializeValue(e[2],t))},u=function(e,t){var n,i,a=[];return o.each(e,function(e,r){if(o.isArray(r)){if(a.length>1&&n!==i)throw new l.Error("E4019");a.push("("+h(r,t)+")"),n=i,i="and"}else i=c.isConjunctiveOperator(this)?"and":"or"}),a.join(" "+n+" ")},h=function(e,t){return o.isArray(e[0])?u(e,t):d(e,t)};return function(e,t){return h(e,t)}}(),h=function(e){var t,n,i,a,l=[],c=[],h=e.expand,p=e.version||d,f=function(){return n||void 0!==i},_=function(e){for(var t=0;tp?s(t.join()):o.grep(t,e,!0).join():void 0},i=function(){var n=function(){var e={};return h&&o.each(o.makeArray(h),function(){e[s(this)]=1}),t&&o.each(o.makeArray(t),function(){var t=this.split(".");t.length<2||(t.pop(),e[s(t.join("."))]=1)}),o.map(e,function(e,t){return t}).join()},i=function(){var n=function(e){var t=function(e){var n="",i=[],a=[];return o.each(e,function(e,n){o.isArray(n)&&[].push.apply(i,n),o.isPlainObject(n)&&a.push(e+t(n))}),(i.length||a.length)&&(n+="(",i.length&&(n+="$select="+o.map(i,s).join()),a.length&&(i.length&&(n+=";"),n+="$expand="+o.map(a,s).join()),n+=")"),n},n=[];return o.each(e,function(e,i){n.push(e+t(i))}),n.join()},i=function(e,t,n){var i=function(e,t,n){var o=n(t,e.shift(),e);o!==!1&&i(e,o,n)};o.each(e,function(e,o){i(o.split("."),t,n)})},a={};return h||t?(h&&i(o.makeArray(h),a,function(e,t,n){return e[t]=e[t]||{},n.length?e[t]:!1}),t&&i(o.grep(o.makeArray(t),e),a,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),n(a)):void 0};return 4>p?n():i()},a={$select:n()||void 0,$expand:i()||void 0};return a},m=function(){var t={};if(!a){l.length&&(t.$orderby=l.join(",")),n&&(t.$skip=n),void 0!==i&&(t.$top=i);var o=g();t.$select=o.$select,t.$expand=o.$expand}return c.length&&(t.$filter=u(c.length<2?c[0]:c,p)),a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==p?t.$inlinecount="allpages":t.$count="true"),t};return{exec:function(t){return r.sendRequest(p,{url:t,params:o.extend(m(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a},e.deserializeDates)},multiSort:function(e){var t;if(f())return!1;for(var n=0;n1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=l.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=l.real();return"win"===e.platform&&e.phone},_createBrowserAdapter:function(e){var t,n=e.window||window,i=n.history.replaceState&&n.history.pushState;return t=this._isWindowsPhone8()?new r.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new r.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new r.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new r.OldBrowserAdapter(e):new r.DefaultBrowserAdapter(e)}}),u=d.inherit({ctor:function(e){this.callBase(e),this.backInitiated=o.Callbacks(),this._rootStateHandler=null,o(window).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):o.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=s();e&&e.setItem(c,!0)},_initRootPage:function(){var e=this.getUri(),t=s();return!t||t.getItem(c)?o.Deferred().resolve().promise():(t.removeItem(c),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(e))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var e=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(e),this._rootStateHandler=null}}});t.HistoryBasedNavigationDevice=d,t.StackBasedNavigationDevice=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=encodeURIComponent("json:"),s=a.inherit({_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(e){return e.replace(/\W/g,"\\$1")},_checkConstraint:function(e,t){e=String(e),"string"==typeof t&&(t=new RegExp(t));var n=t.exec(e);return!(!n||n[0]!==e)},_ensureReady:function(){var e=this;return this._patternRe?!1:(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(t,n){e._segments.push(t),n&&e._separators.push(e._pattern.substr(n-1,1))}),o.each(this._segments,function(t){var n=!0,i=this,o=t?e._separators[t-1]:"";":"===i.charAt(0)?(n=!1,i=i.substr(1),e._params.push(i),e._patternRe+="(?:"+o+"([^/]*))",i in e._defaults&&(e._patternRe+="?")):e._patternRe+=o+e._escapeRe(i)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(e,t,n){this._pattern=e||"",this._defaults=t||{},this._constraints=n||{}},parse:function(e){var t=this;this._ensureReady();var n=this._patternRe.exec(e);if(!n)return!1;var i=o.extend({},this._defaults);return o.each(this._params,function(e){var o=e+1;n.length>=o&&n[o]&&(i[this]=t.parseSegment(n[o]))}),o.each(this._constraints,function(e){return t._checkConstraint(i[e],t._constraints[e])?void 0:(i=!1,!1)}),i},format:function(e){var t=this,n="";this._ensureReady();var i=o.extend({},this._defaults),a=0,r=[],s=[],l={};o.each(e,function(n,o){e[n]=t.formatSegment(o),n in i||(l[n]=!0)}),o.each(this._segments,function(n,o){if(r[n]=n?t._separators[n-1]:"",":"===o.charAt(0)){var c=o.substr(1);if(!(c in e||c in t._defaults))return r=null,!1;if(c in t._constraints&&!t._checkConstraint(e[c],t._constraints[c]))return r=null,!1;c in e?(void 0!==e[c]&&(i[c]=e[c],r[n]+=e[c],a=n),delete l[c]):c in i&&(r[n]+=i[c],s.push(n))}else r[n]+=o,a=n}),o.each(i,function(n,i){return i&&-1===o.inArray(":"+n,t._segments)&&e[n]!==i?(r=null,!1):void 0});var c=0;if(o.isEmptyObject(l)||(n="?",o.each(l,function(t){n+=t+"="+e[t]+"&",c++}),n=n.substr(0,n.length-1)),null===r)return!1;s.length&&o.map(s,function(e){e>=a&&(r[e]="")});var d=r.join("");return d=d.replace(/\/+$/,""),{uri:d+n,unusedCount:c}},formatSegment:function(e){return o.isArray(e)||o.isPlainObject(e)?r+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,r.length)===r)try{return o.parseJSON(decodeURIComponent(e.substr(r.length)))}catch(e){}return decodeURIComponent(e)}}),l=a.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new s(e,t,n)},register:function(e,t,n){this._registry.push(this._createRoute(e,t,n))},_parseQuery:function(e){var t={},n=e.split("&");return o.each(n,function(e,n){var i=n.split("=");t[i[0]]=decodeURIComponent(i[1])}),t},parse:function(e){var t,n=this;e=this._trimSeparators(e);var i=e.split("?",2),a=i[0],r=i[1];return o.each(this._registry,function(){var e=this.parse(a);return e!==!1?(t=e,r&&(t=o.extend(t,n._parseQuery(r))),!1):void 0}),t?t:!1},format:function(e){var t=!1,n=99999;return e=e||{},o.each(this._registry,function(){var i=o.extend(!0,{},e),a=this.format(i);a!==!1&&n>a.unusedCount&&(n=a.unusedCount,t=a.uri)}),t}});i.exports=l,i.exports.Route=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(37);a.inject({_formatNumberCore:function(e,t,n){return"currency"===t?(n.precision=n.precision||0,this.getCurrencySymbol().symbol+this.format(e,o.extend({},n,{type:"fixedpoint"}))):this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(e){return"$#,##0{0}_);\\($#,##0{0}\\)"}})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(6),r=n(48),s=n(31),l=n(3),c=n(4),d=n(23),u=n(9),h="dx-checkbox",p="dx-checkbox-icon",f="dx-checkbox-checked",_="dx-checkbox-container",g="dx-checkbox-text",m="dx-checkbox-has-text",v="dx-checkbox-indeterminate",x=100,w=s.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({jQueryEvent:e})};return o.extend(this.callBase(),{space:e})},_getDefaultOptions:function(){return o.extend(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"===a.real().deviceType&&!a.isSimulator(); },options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(d.current())},options:{useInkRipple:!0}}])},_feedbackHideTimeout:x,_render:function(){this.callBase(),this._$container=o("
").addClass(_),this.setAria("role","checkbox"),this._renderClick(),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.element().addClass(h).append(this._$container)},_renderInkRipple:function(){this._inkRipple=r.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,jQueryEvent: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=o("").addClass(p).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=o("").addClass(g)),this._$text.text(e),this._$container.append(this._$text),void this.element().addClass(m)):void(this._$text&&(this._$text.remove(),this.element().removeClass(m)))},_renderClick:function(){var e=this,t=c.addNamespace(u.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),e.element().off(t).on(t,function(t){e._clickAction({jQueryEvent:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.jQueryEvent),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.element(),t=this.option("value"),n=void 0===t;e.toggleClass(f,Boolean(t)),e.toggleClass(v,n),this.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)}}});l("dxCheckBox",w),i.exports=w}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(6),r=n(17),s=n(21),l=n(11),c=n(62),d=n(2),u=n(4),h=n(77),p=c.sign,f=Math.abs,_=0,g=1,m=2,v=10,x=0,w=180,y=function(e){return e&&"dxmousewheel"===e.type},b=function(){var e=r.styleProp("pointer-events"),t=s.msie&&parseInt(s.version,10)<11;return e&&!t},C=function(){var e="dx-gesture-cover",t="generic"===a.real().platform;if(!b()||!t)return o.noop;var n=o("
").addClass(e).css("pointerEvents","none");return n.on("dxmousewheel",function(e){e.preventDefault()}),o(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}(),k=h.inherit({gesture:!0,configurate:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMousewheel:function(){return this._stage!==m},getDirection:function(){return this.direction},_cancel:function(e){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=_},start:function(e){return u.needSkipEvent(e)?void this._cancel(e):(this._startEvent=u.createEvent(e),this._startEventData=u.eventData(e),this._prevEventData=this._startEventData,this._stage=g,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(o.proxy(function(){this._immediateAccepted=!0},this),w))},move:function(e){if(this._stage===g&&this._directionConfirmed(e)){if(this._stage=m,this._resetActiveElement(),this._toggleGestureCover(!0,e),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._prevEventData=u.eventData(this._startEvent),this._stage===_)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===m&&(this._clearSelection(e),this._move(e));this._prevEventData=u.eventData(e)},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=u.eventDelta(this._startEventData,u.eventData(e)),i=f(n.x),o=f(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),c="horizontal"===s&&a,d="vertical"===s&&r;return l||c||d||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(this.immediate?t>=n:!0)},_getTouchBoundary:function(e){return this.immediate||y(e)?x:v},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=u.eventDelta(this._startEventData,u.eventData(e));this._startEvent.pageX+=p(n.x)*t,this._startEvent.pageY+=p(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&o(":focus",this.getElement()).length&&l.resetActiveElement()},_toggleGestureCover:function(e,t){var n=this._stage===m;n&&C(e,this.getElement().css("cursor"))},_clearSelection:function(e){y(e)||u.isTouchEvent(e)||l.clearSelection()},end:function(e){this._toggleGestureCover(!1,e),this._stage===m?this._end(e):this._stage===g&&this._stop(e),this._stage=_},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:o.noop,_start:o.noop,_move:o.noop,_stop:o.noop,_end:o.noop});k.initialTouchBoundary=v,k.touchBoundary=function(e){return d.isDefined(e)?void(v=e):v},i.exports=k}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(38).DataSource,r=n(38).normalizeDataSourceOptions,s="_dataSourceOptions",l="_dataSourceChangedHandler",c="_dataSourceLoadErrorHandler",d="_dataSourceLoadingChangedHandler",u={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()})},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=this.option("dataSource");this._disposeDataSource(),n&&(n instanceof a?(this._isSharedDataSource=!0,this._dataSource=n):(e=s in this?this[s]():{},t=this._dataSourceType?this._dataSourceType():a,this._dataSource=new t(o.extend(!0,{},e,r(n)))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){l in this&&this._addDataSourceChangeHandler(),c in this&&this._addDataSourceLoadErrorHandler(),d in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",o.proxy(function(e){this._ready&&this._ready(!e)},this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=o.proxy(function(){this[l](e.items())},this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=o.proxy(this[c],this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=o.proxy(this[d],this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)}};i.exports=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(14),r=function(){return["year","day","month","day"]},s=6e4,l=60*s*24,c=365*l,d=function(e){var t=typeof e;return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},u={SUPPORTED_FORMATS:["date","time","datetime"],DEFAULT_FORMATTER:function(e){return e},DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("
").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:s,ONE_DAY:l,ONE_YEAR:c,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:r()},time:{getStandardPattern:function(){return"HH':'mm"},components:["hours","minutes"]},datetime:{getStandardPattern:function(){var e;return function(){var t="yyyy-MM-ddTHH':'mm'Z'",n=o("").attr("type","datetime");n.val(u.toStandardDateFormat(new Date,"datetime",t)),n.val()&&(e=t)}(),e||(e="yyyy-MM-ddTHH':'mm':'ss'Z'"),u.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:r().concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH':'mm':'ss"},components:r().concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime","datetime-local":"datetime-local"},toStandardDateFormat:function(e,t,n){return n=n||u.FORMATS_INFO[t].getStandardPattern(),a.format(e,n)},fromStandardDateFormat:function(e){return a.parse(e,u.FORMATS_INFO.datetime.getStandardPattern())||a.parse(e,u.FORMATS_INFO["datetime-local"].getStandardPattern())||a.parse(e,u.FORMATS_INFO.time.getStandardPattern())||a.parse(e,u.FORMATS_INFO.date.getStandardPattern())||Date.parse&&Date.parse(e)&&new Date(Date.parse(e))},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(t){isNaN(e.getTime())&&(e=new Date(0,0,0,0,0,0));var i=u.FORMATS_INFO[n];return o.each(i.components,function(){var n=u.DATE_COMPONENTS_INFO[this];e[n.setter](t[n.getter]())}),e}},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;ti&&(n=t,i=e[t].length);return n},expandPattern:function(e){return a.getPatternByFormat(e)||e},formatUsesMonthName:function(e){return-1!==u.expandPattern(e).indexOf("MMMM")},formatUsesDayName:function(e){return-1!==u.expandPattern(e).indexOf("EEEE")},getLongestDate:function(e,t,n){var i=d(e),o=9;i&&!u.formatUsesMonthName(i)||(o=u.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||u.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+u.getLongestCaptionIndex(n);a.setDate(r)}return a}};u.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",possibleFormats:["y","yy","yyyy"],formatter:u.DEFAULT_FORMATTER,startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",possibleFormats:["d","dd"],formatter:function(e,t,n){if(!t)return e;var i=new Date(n.getTime());return i.setDate(e),u.DATE_COMPONENT_TEXT_FORMATTER(e,a.getDayNames()[i.getDay()])},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",possibleFormats:["M","MM","MMM","MMMM"],formatter:function(e,t){var n=a.getMonthNames()[e];return t?u.DATE_COMPONENT_TEXT_FORMATTER(e+1,n):n},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",possibleFormats:["H","HH","h","hh"],formatter:function(e){return a.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",possibleFormats:["m","mm"],formatter:function(e){return a.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",possibleFormats:["s","ss"],formatter:function(e){return a.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",possibleFormats:["S","SS","SSS"],formatter:function(e){return a.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},i.exports=u}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){var i={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");return e?e.fire.apply(e,arguments):void 0}};n.exports=i}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=n(10),s=n(48),l=n(8),c=n(3),d=n(4),u=n(181),h=n(23),p=n(9),f="dx-selectbox",_="dx-selectbox-popup",g="dx-selectbox-container",m="dx-selectbox-popup-wrapper",v=u.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return o.extend({},t,{tab:function(e){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),t.tab.apply(this,arguments)},upArrow:function(e){return t.upArrow.apply(this,arguments)?(this.option("opened")||this._setNextValue(-1),!0):void 0},downArrow:function(e){return t.downArrow.apply(this,arguments)?(this.option("opened")||this._setNextValue(1),!0):void 0},leftArrow:function(){i(),t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow.apply(this,arguments)},home:function(){i(),t.home.apply(this,arguments)},end:function(){i(),t.end.apply(this,arguments)},enter:function(e){if(this._list&&null===this._list.option("focusedElement")&&""===this._input().val())this.option({selectedItem:null,value:null}),this.close();else if(this.option("acceptCustomValue")&&e.preventDefault(),t.enter.apply(this,arguments))return this.option("opened")},backspace:n,del:n})},_getDefaultOptions:function(){return o.extend(this.callBase(),{placeholder:l.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){return e.text},showSelectionControls:!1,autocompletionEnabled:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return/win8/.test(h.current())},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return/android5/.test(h.current())},options:{_isAdaptablePopupPosition:!0,popupPosition:{offset:{h:-16,v:-8}}}},{device:function(){return/android5/.test(h.current())},options:{useInkRipple:!0}}])},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_render:function(){this.callBase(),this.element().addClass(f),this.option("useInkRipple")&&this._renderInkRipple(),this._renderTooltip(),this._$container.addClass(g)},_renderInkRipple:function(){this._inkRipple=s.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),jQueryEvent:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.element().addClass(_)},_popupWrapperClass:function(){return this.callBase()+" "+m},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._updatePopupHeight(),this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=this.option("selectedItem"),i=o.inArray(n,this.option("items")),a=n&&e===this._displayGetter(n).toString(),r=i>=0&&a?t.eq(i):null;this._focusListElement(r)},_renderFocusedElement:function(){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.eq(0);this._focusListElement(n)},_focusListElement:function(e){this._list&&(this._preventInputValueRender=!0,this._list.option("focusedElement",e),delete this._preventInputValueRender)},_scrollToSelectedItem:function(){this._dataSource.paginate()&&this._isEditable()?this._list.scrollTo(0):this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataSource.paginate()&&this._isEditable()||this._list.scrollToItem(this._list.option("selectedItem"))},_renderValue:function(){this._renderInputValue()},_renderInputValue:function(){return this.callBase().always(o.proxy(function(){this._renderTooltip(),this._renderInputValueImpl(),this._refreshSelected()},this))},_renderInputValueImpl:function(){this._renderInputAddons()},_fitIntoRange:function(e,t,n){return e>n?t:t>e?n:e},_setNextValue:function(e){var t=this._dataSource.isLoaded()?o.Deferred().resolve():this._dataSource.load();t.done(o.proxy(function(){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)},this))},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_items:function(){return this._list?this.option("items"):this._dataSource.items()},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return o.each(e,o.proxy(function(e,i){return this._isValueEquals(i,t)?(n=e,!1):void 0},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=!a.isDefined(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=o.extend(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),onFocusedItemChanged:o.proxy(function(e){if(!this._preventInputValueRender){var t=e.component,n=t.option("focusedElement"),i=t._getItemData(n);this._updateField(i)}},this)});return this.option("showSelectionControls")&&o.extend(e,{showSelectionControls:!0}),e},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderTemplatedField(t,e):void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?o.proxy(this._selectionChangeHandler,this):o.noop},_selectionChangeHandler:function(e){o.each(e.addedItems||[],o.proxy(function(e,t){this._setValue(this._valueGetter(t))},this))},_toggleOpenState:function(e){this.option("disabled")||(e=arguments.length?e:!this.option("opened"),this._wasSearch()&&e&&(this._wasSearch(!1),this.option("showDataBeforeSearch")||0===this.option("minSearchLength")?this._filterDataSource(null):(this._setListOption("items",[]),this._list&&this._setListOption("noDataText",this._list.initialOption("noDataText")))),this.callBase(e))},_renderTooltip:function(){this.option("tooltipEnabled")&&this.element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_focusOutHandler:function(e){if(this.callBase(e),this.option("searchEnabled")&&!this.option("acceptCustomValue")){if(!this._searchValue())return void this._clearTextValue();var t=this.option("selectedItem");this._renderInputValue().always(o.proxy(function(e){this._setSelectedItem(t),this._renderDisplayText(this._displayGetter(this.option("selectedItem")))},this))}},_clearTextValue:function(){this.reset()},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){return this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._completeSelection(this._valueGetter(e.itemData)),this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._renderDisplayText(this._displayGetter(e.itemData))},_completeSelection:function(e){this._wasSearch()&&this._clearFilter(),this._setValue(e)},_clearValueHandler:function(){this.reset()},_loadItem:function(e){var t=this,n=o.Deferred();return this.callBase(e).done(function(e){n.resolve(e)}).fail(function(){t.option("acceptCustomValue")?n.resolve(t.option("selectedItem")):n.reject()}),n.promise()},_valueChangeEventHandler:function(e){this.option("acceptCustomValue")&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._customItemCreatingAction({text:e}),n=t&&t.promise&&t.done&&t.fail;if(void 0===t)throw this._renderValue(),r.Error("E0121");n?t.always(o.proxy(this._setCustomItem,this)):this._setCustomItem(t)},_setCustomItem:function(e){e=e||null,this.option("selectedItem",e),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e))},_createClearButton:function(){var e=d.addNamespace(p.name,this.NAME);return this.callBase().on(e,function(){return!1})},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return e&&this._isControlKey(e.which||e.keyCode)||this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_filterDataSource:function(e){this.callBase(e),this._setCollectionWidgetOption("noDataText",e?"":this._list&&this._list.initialOption("noDataText"))},_dataSourceFiltered:function(e){this.callBase(),this._renderInputSubstitution(),null!==e&&this._renderFocusedElement()},_valueSubstituted:function(){var e=this._input().get(0),t=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;var e=this._list&&this._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);i.value=o,i.selectionStart=n,i.selectionEnd=o.length}}},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_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;default:this.callBase(e)}}});c("dxSelectBox",v),i.exports=v}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){var n=e;return t&&g(t.split("."),function(e,t){return n=n[t]}),n}var a=n(1),r=n(5),s=n(2),l=n(117),c=s.isString,d=n(7).parseScalar,u=n(68),h=u.findTheme,p=u.addCacheItem,f=u.removeCacheItem,_=a.extend,g=a.each;n(515),n(518),n(514),n(522),t.BaseThemeManager=r.inherit({ctor:function(){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=_({},n.font,t.font),e._themeSection&&g(e._themeSection.split("."),function(t,i){n=_(!0,{},n[i],e._IE8?n[i+"IE8"]:{})}),e._theme=_(!0,{},n,c(t)?{}:t),e._initializeTheme(),d(e._rtl,e._theme.rtlEnabled)&&_(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return o(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return new l.Palette(e||this._defaultPalette,t)},createDiscretePalette:function(e,t){return new l.DiscretePalette(e||this._defaultPalette,t)},createGradientPalette:function(e){return new l.GradientPalette(e||this._defaultPalette)},_initializeTheme:function(){var e=this;g(e._fontFields||[],function(t,n){e._initializeFont(o(e._theme,n))})},_initializeFont:function(e){_(e,this._font,_({},e))}})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(){return!0}function a(){return!1}function r(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}function s(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function l(e){y.apply(null,[e.target.id].concat(e.target.args||[]))}function c(e,t){return g(e>0?e:t||0)}function d(e,t){function n(n){var i=e[n];o[i.name]=t(n,i.config)}function i(e,t,n){o[e](t),n&&n()}var o={};u.each(e,function(e,t){t.name&&n(e)});var a;return i.change=function(t){var n=e[t];return n&&((a=a||{})[t]=n),!!n},i.applyChanges=function(){a&&(u.each(a,function(e,t){n(t.newName||e)}),a=null)},i.dispose=function(){e=t=o=null},i}var u=n(1),h=n(123),p=n(57).resizeCallbacks,f=n(26).format,_=n(2).isObject,g=Number,m=n(40),v=n(517),x=n(7).parseScalar,w=n(516),y=w.log,b=n(170),C=n(519),k="rtlEnabled",S=m.prototype.option,T=function(e,t){function n(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:f.apply(null,[w.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:h}})}return n};i.exports=m.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn",config:{category:"rendering"}}},_getDefaultOptions:function(){return u.extend(this.callBase(),{onIncidentOccurred:l})},_useLinks:!0,_init:function(){var e,t=this;t.callBase.apply(t,arguments),t._changesLocker=0,t._changes=v.changes(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback(function(){t._requestChange(t._themeDependentChanges)}),t._initRenderer(),e=t._useLinks&&t._renderer.root,e&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._initEventTrigger(),t._incidentOccurred=T(t.NAME,t._eventTrigger),t._layout=new C,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges),t._resumeChanges()},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME"],_initPlugins:function(){var e=this;u.each(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;u.each(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._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions())},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),u.each(t,function(t,n){S.apply(e,n)}),e.endUpdate()},_requestChange:function(e){var t=this._applyingChanges;t||this._suspendChanges(),this._change(e),t||this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,o=i.length;for(e=0;o>e;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["CONTAINER_SIZE","LAYOUT"],_customChangesOrder:[],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new b.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:u.noop,render:function(){this._requestChange(["CONTAINER_SIZE"]),this._onRender()},_onRender:u.noop,_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._removeResizeHandler(),e._layout.dispose(),e._eventTrigger.dispose(),e._disposeCore(),e._disposePlugins(),e._disposeRenderer(),e._themeManager.dispose(),e._themeManager=e._renderer=e._eventTrigger=null},_initEventTrigger:function(){var e=this;e._eventTrigger=d(e._eventsMap,function(t,n){return e._createActionByOption(t,n)})},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},o={width:t.width<=0?0:c(t.width,e._$element.width()||i.width),height:t.height<=0?0:c(t.height,e._$element.height()||i.height),left:c(n.left,i.left||0),top:c(n.top,i.top||0),right:c(n.right,i.right||0),bottom:c(n.bottom,i.bottom||0)};return(o.width-o.left-o.right<=0||o.height-o.top-o.bottom<=0)&&(o={width:0,height:0}),o},_updateSize:function(){var e=this,t=e._calculateCanvas();(r(e._canvas,t)||e.__forceRender)&&(e._canvas=t,e._renderer.resize(t.width,t.height),e._change(["LAYOUT"]))},_setContentSize:function(){var e,t=this._canvas,n=this._layout,i=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=n.forward(i),e=this._applySize(i)||i,n.backward(e)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:u.extend(!0,{},n,i)},_setupResizeHandler:function(){x(this._getOption("redrawOnResize",!0),!0)?this._addResizeHandler():this._removeResizeHandler()},_addResizeHandler:function(){var e=this;e._resizeHandler||(e._resizeHandler=s(function(){e._requestChange(["CONTAINER_SIZE"])}),p.add(e._resizeHandler))},_removeResizeHandler:function(){this._resizeHandler&&(p.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:u.noop,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,t=e._initialized;return e.callBase.apply(e,arguments),t&&0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||_(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(arguments)):S.apply(t,arguments)},_clean:u.noop,_render:u.noop,_optionChanged:function(e){var t=this;t._eventTrigger.change(e.name)?t._change(["EVENTS"]):t._optionChangesMap[e.name]?t._change([t._optionChangesMap[e.name]]):t.callBase.apply(t,arguments)},_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME"},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(k))},_getRendererOptions:function(){return{rtl:this.option(k),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},_normalizeHtml:function(e){var t=/xmlns="[\s\S]*?"/gi,n=!0;return e=e.replace(t,function(e){return n?(n=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"'); },svg:function(){return this._normalizeHtml(this._renderer.svg())},isReady:a,_dataIsReady:o,_resetIsReady:function(){this.isReady=a},_drawn:function(){var e=this;e.isReady=a,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=o}),e._eventTrigger("drawn",{})}}),v.replaceInherit(i.exports)}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){return void 0===e?I:(e=k(e),void(I=e in D?e:T))}function a(e,t){var n,i=t&&t.type;return y(e)?e.slice(0):(b(e)&&(n=D[k(e)]),n||(n=D[I]),n=n||null,i&&n?n[i].slice(0):n)}function r(e,t){var n,i={};y(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=y(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=y(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=y(t.gradientSet)?t.gradientSet.slice(0):void 0),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=k(e),C(D[n]=D[n]||{},i))}function s(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function l(e,t){t=t||{};var n=t.useHighlight?S:0;this._originalPalette=a(e,{type:t.type||"simpleSet"}),this._paletteSteps=new s([0,n,-n]),this._resetPalette()}function c(e,t){var n,i=[],o=e.length;for(n=0;o>n;++n)i.push(d(e[n],t));return i}function d(e,t){var n=new x(e).alter(t),i=u(n);return(i>200||55>i)&&(n=new x(e).alter(-t/2)),n.toHex()}function u(e){return.3*e.r+.59*e.g+.11*e.b}function h(e,t){var n=t>0?p(a(e,{type:"gradientSet"}),t):[];this.getColor=function(e){return n[e]||null}}function p(e,t){function n(e){var t=a*e,n=m(t),i=v(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;a>=i;++i)r.push(new x(e[i]));if(o>0)for(i=0;o>=i;++i)n(i/o);else n(.5);return s}function f(e){var t=a(e,{type:"gradientSet"}),n=new x(t[0]),i=new x(t[1]);this.getColor=function(e){return e>=0&&1>=e?n.blend(i,e).toHex():null}}var _=n(1),g=n(7),m=Math.floor,v=Math.ceil,x=n(56),w=n(2),y=w.isArray,b=w.isString,C=_.extend,k=g.normalizeEnum,S=50,T="default",I=T,D={"default":{simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"]},"harmony light":{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"]},"soft pastel":{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"]},pastel:{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"]},bright:{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"]},soft:{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"]},ocean:{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"]},vintage:{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"]},violet:{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"]}};l.prototype={constructor:l,dispose:function(){this._originalPalette=this._palette=this._paletteSteps=null},getNextColor:function(){var e=this;return e._currentColor>=e._palette.length&&e._resetPalette(),e._palette[e._currentColor++]},_resetPalette:function(){var e=this,t=e._paletteSteps.next();e._palette=t?c(e._originalPalette,t):e._originalPalette.slice(0),e._currentColor=0},reset:function(){return this._paletteSteps.reset(),this._resetPalette(),this}},C(t,{Palette:l,DiscretePalette:h,GradientPalette:f,registerPalette:r,getPalette:a,currentPalette:o})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}function a(e){var t=v(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function r(e){var t=v(e),n=m(t/2),i=v(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]}function s(e){return[-e,-e,e,-e,0,e,-e,-e]}function l(e){return[-e,e,e,e,0,-e,-e,e]}var c=n(1),d=n(2),u=n(338),h=c.extend,p=d.isDefined,f=n(7).normalizeEnum,_=Math,g=_.round,m=_.floor,v=_.ceil,x=20,w=20,y=10,b="canvas_position_default";i.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this,t=e.graphic;t&&t.attr("visibility")&&t.attr({visibility:null}),e._label.clearVisibility()},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.hide()},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new u.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 p(e)&&("string"==typeof e||p(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 o(t);case"polygon":return a(t);case"triangle":case"triangleDown":return s(t);case"triangleUp":return l(t);case"cross":return r(t)}},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.initialValue+e,t.minValue=e,t.translate())},resetCorrection:function(){this.value=this.initialValue,this.minValue=b},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.initialValue=0,e.minValue=0,e.translate(),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||x,o=n.height||w;return e.image(-g(.5*i),-g(.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,o){var a=this,r=a._checkImage(n)?a._createImageMarker(e,i,n):a._createSymbolMarker(e,i);return r&&r.data({"chart-data-point":a}).append(t),r},_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||x,o=n.height||w;return{x:e-g(i/2),y:t-g(o/2),width:i,height:o}},_getGraphicBbox:function(){var e,t=this,n=t._options,i=t.x,o=t.y;return e=n.visible?t._checkImage(n.image)?t._getImageBbox(i,o):t._getSymbolBbox(i,o,n.styles.normal.r):{x:i,y:o,width:0,height:0}},_isLabelInsidePoint:c.noop,_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;(e.series.getLabelVisibility()||t)&&e._showForZeroValues()&&e.hasValue()?n.show():n.hide()},correctLabelPosition:function(e){var t,n=this;n._isLabelInsidePoint(e)||(t=n._getShiftLabelCoords(e),e.setFigureToDrawConnector(n._getLabelConnector(e.pointPosition)),e.shift(g(t.x),g(t.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),r=y;return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=a.x+a.width+r),i.maxXt.y&&(t.y=i.minY),i.maxYt.x&&(t.x=i.minX),i.maxXt.y&&(t.y=a.y+a.height+r),i.maxYi?e:i,t._options.trackerR},_translateErrorBars:function(e){var t=this,n=t._options,i=n.rotated,o=n.errorBars;o&&(p(t.lowError)&&(t._lowErrorCoord=e.translate(t.lowError)),p(t.highError)&&(t._highErrorCoord=e.translate(t.highError)),t._errorBarPos=m(i?t.vy:t.vx),t._baseErrorBarPos="stdDeviation"===o.type?t._lowErrorCoord+(t._highErrorCoord-t._lowErrorCoord)/2:i?t.vx:t.vy)},_translate:function(e){var t,n=this;n._options.rotated?(t=e.x,n.vx=n.x=t.translate(n.value),n.vy=n.y=e.y.translate(n.argument),n.minX=t.translate(n.minValue),n.defaultX=t.translate(b),n._translateErrorBars(t)):(t=e.y,n.vy=n.y=t.translate(n.value),n.vx=n.x=e.x.translate(n.argument),n.minY=t.translate(n.minValue),n.defaultY=t.translate(b),n._translateErrorBars(t)),n._calculateVisibility(n.x,n.y)},_updateData:function(e){var t=this;t.value=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=p(e.minValue)?e.minValue:b},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||x,height:e.height||w}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.value,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e,t=this._getStyle(),n=this._options,i=t.r,o=n.symbol,a="square"===o,r="triangle"===o||"triangleDown"===o||"triangleUp"===o;return n.visible&&!n.image&&i?(e=t["stroke-width"]/2,(a||r?1.4*i:i)+e):0},_updateMarker:function(e,t){var n,i=this,o=i._options,a=o.image,r=i.isVisible()?{}:{visibility:"hidden"};t=t||i._getStyle(),n=i._checkImage(a)?h({},{visibility:t.visibility},r,i._getImageSettings(a)):h({},t,r,{points:i._populatePointShape(o.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return h({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},p(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},p(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}}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){return m(e)&&m(t)&&e.valueOf()===t.valueOf()}function a(e){var t,n,i=e.min,a=e.max,r=e.minVisible,s=e.maxVisible,l=e.base,c=f.isDate(a)||f.isDate(i),d=c?y:w,u="logarithmic"===e.axisType;return u&&(s=_(s,l),r=_(r,l),i=_(i,l),a=_(a,l)),o(i,a)&&(t=i.valueOf()-d,n=a.valueOf()+d,c?(i=new Date(t),a=new Date(n)):(i=0!==i||u?t:0,a=n)),o(r,s)&&(t=r.valueOf()-d,n=s.valueOf()+d,c?(r=ta.valueOf()?a:new Date(n)):((0!==r||u)&&(r=i>t?i:t),s=n>a?a:n)),{base:l,rangeMin:i,rangeMax:a,rangeMinVisible:r,rangeMaxVisible:s}}var r,s=n(1),l=n(261),c=n(556),d=n(558),u=n(557),h=n(559),p=n(7),f=n(2),_=p.getLog,g=p.getPower,m=f.isDefined,v=Math.abs,x=["width","height","left","top","bottom","right"],w=1,y=6e4,b=s.noop,C=n(12).addInterval,k=function(e){return s.each(x,function(t,n){e[n]=parseInt(e[n])||0}),e},S=function(e){for(var t={},n=e.length,i=0;n>i;i++)t[e[i]]=i;return t},T=function(e){function t(t,n){!m(e[t])&&m(e[n])&&(e[t]=e[n])}return t("minVisible","min"),t("maxVisible","max"),e};t.Translator2D=r=function(e,t,n){this.update(e,t,n)},r.prototype={constructor:r,reinit:function(){var e=this,t=e._businessRange,n=t.categories||[],i={},o=e._prepareCanvasOptions(),a=p.getCategoriesInfo(n,t.minVisible,t.maxVisible).categories,r=(a||n).length;switch(t.axisType){case"logarithmic":i=h;break;case"semidiscrete":i=d,o.ratioOfCanvasRange=o.canvasLength/(C(o.rangeMaxVisible,e._options.interval)-o.rangeMinVisible);break;case"discrete":i=c,e._categories=n,o.interval=e._getDiscreteInterval(t.addSpiderCategory?r+1:r,o),e._categoriesToPoints=S(n,o.invert),a&&r&&(o.startPointIndex=e._categoriesToPoints[a[0]],e.visibleCategories=a);break;default:i="datetime"===t.dataType?u:l}s.extend(e,i),e._conversionValue=e._options.conversionValue?function(e){return e}:function(e){return Math.round(e)},e._calculateSpecialValues()},_getDiscreteInterval:function(e,t){var n=e-(this._businessRange.stick?1:0);return n>0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t=this,n=t._businessRange,i=t._canvasOptions=a(n),o=t._canvas;return t._options.isHorizontal?(i.startPoint=o.left,e=o.width,i.endPoint=o.width-o.right,i.invert=n.invert):(i.startPoint=o.top,e=o.height,i.endPoint=o.height-o.bottom,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,g(i.rangeMax-i.rangeMin)-g(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),i},updateCanvas:function(e){this._canvas=k(e),this.reinit()},updateBusinessRange:function(e){this._businessRange=T(e),this.reinit()},update:function(e,t,n){var i=this;i._options=s.extend(i._options||{},n),i._canvas=k(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t,n,i=this,o=i._canvasOptions,a=o.startPoint,r=o.endPoint,s=i._businessRange,l=s.minVisible,c=s.maxVisible;0>=l&&c>=0?(i.sc={},t=i.translate(0)):(e=s.invert^(0>=l&&0>=c),t=i._options.isHorizontal?e?r:a:e?a:r),n=a+o.canvasLength/2,i.sc={canvas_position_default:t,canvas_position_left:a,canvas_position_top:a,canvas_position_center:n,canvas_position_middle:n,canvas_position_right:r,canvas_position_bottom:r,canvas_position_start:o.invert?r:a,canvas_position_end:o.invert?a:r}},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},getVisibleCategories:function(){return this.visibleCategories},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.untranslate(t.min+e);return v(this.untranslate(t.min)-(m(n)?n:this.untranslate(t.max)))},translate:b,untranslate:b,getInterval:b,zoom:b,getMinScale:b,getRange:function(){return[this.untranslate(this._canvasOptions.startPoint,-1),this.untranslate(this._canvasOptions.endPoint,1)]},isEmptyValueRange:function(){return this._businessRange.stubData},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)}}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){return function(t){return t.isNode()?void 0:e(t)}}function a(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function r(e){return e.value}function s(e){return function(t){return Number(t.data[e])}}var l,c=n(7).normalizeEnum,d=n(1).noop,u={};t.getColorizer=function(e,t,n){var i=c(e.type||l),r=u[i]&&u[i](e,t,n);return r?(e.colorizeGroups?a:o)(r):d},t.addColorizer=function(e,t){u[e]=t},t.setDefaultColorizer=function(e){l=e},t.createColorCodeGetter=function(e){return e.colorCodeField?s(e.colorCodeField):r}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o,a=n(2).isFunction,r=n(7).normalizeEnum,s=Math.round,l={};t.getAlgorithm=function(e){return l[r(e)]||a(e)&&e||o},t.addAlgorithm=function(e,t){l[e]=t},t.setDefaultAlgorithm=function(e){o=l[e]};var c={};c[-1]=[2,0],c[1]=[0,2],t.buildSidesData=function(e,t,n){var i=[e[2]-e[0],e[3]-e[1]],o=void 0!==n?n:i[0]a;++a)l=d.slice(),l[u]=p,c=s(_*e[a].value/g)||0,g-=e[a].value,_-=c,p+=f*c,l[h]=p,e[a].rect=l;n[i.varied1]=d[i.varied2]}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){var i=function(){var e;try{e=window.sessionStorage}catch(e){}return e};t.sessionStorage=i}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){n.exports="16.1.5"}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.element().parents(".dx-validationgroup:first"),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.element())),t}};n.exports=i}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(6),s=n(42),l=n(4),c=n(13),d="dxHoverStart",u="dxhoverstart",h=l.addNamespace(c.enter,d),p="dxHoverEnd",f="dxhoverend",_=l.addNamespace(c.leave,p),g=a.inherit({noBubble:!0,add:function(e,t){var n=this,i=o(e);i.off(this._originalEventName).on(this._originalEventName,t.selector,function(e){n._handler(e)})},_handler:function(e){l.isTouchEvent(e)||r.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},teardown:function(e){o(e).off(this._originalEventName)}}),m=g.inherit({ctor:function(){this._eventName=u,this._originalEventName=h,this._isMouseDown=!1},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=g.inherit({ctor:function(){this._eventName=f,this._originalEventName=_}});s(u,new m),s(f,new v),t.start=u,t.end=f}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){i.exports=n(423)}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(6),r=n(3),s=n(18),l=n(25),c=n(93),d=n(111),u=n(90),h="dx-dropdownmenu",p="dx-dropdownmenu-popup",f="dx-dropdownmenu-popup-wrapper",_="dx-dropdownmenu-list",g="dx-dropdownmenu-button",m={popupWidth:"width",popupHeight:"height"},v={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},x=s.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),o.extend(this.callBase(),e,{tab:function(e){this._popup.hide()}})},_setDeprecatedOptions:function(){this.callBase(),o.extend(this._deprecatedOptions,{buttonIconSrc:{since:"15.1",alias:"buttonIcon"}})},_getDefaultOptions:function(){return o.extend(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:u})},_defaultOptionsRules:function(){return this.callBase().concat([{device:[{platform:"ios"}],options:{usePopover:!0}},{device:[{platform:"generic"}],options:{popupPosition:{offset:{v:4}}}},{device:function(e){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}}])},_initOptions:function(e){"android"===a.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.element().addClass(h),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_render:function(){this._renderButton(),this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.element().remove(),delete this._$popup)},_renderButton:function(){var e=this.element().addClass(g),t=this._buttonOptions();this._button=this._createComponent(e,l,t)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:o.proxy(function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)},this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=o("
").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(f).toggleClass(p,e)},visible:this.option("opened"),onContentReady:o.proxy(this._popupContentReadyHandler,this),deferRendering:!1,position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:o.proxy(function(e){"visible"===e.name&&this.option("opened",e.value)},this),target:this.element(),height:this.option("popupHeight"),width:this.option("popupWidth")}},_popupContentReadyHandler:function(){var e=c.getInstance(this._$popup);this._renderList(e)},_renderList:function(e){var t=e.content(),n=this._listOptions();t.addClass(_),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=o.proxy(function(){return this.element()},this),this._setListDataSource();var i=.5*o(window).height();t.height()>i&&t.height(i)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this._getTemplateByOption("itemTemplate"),onItemClick:o.proxy(function(e){this.option("opened",!1),this._itemClickAction(e)},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.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(v[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":this._popup.option(m[t],n);break;case"usePopover":case"menuWidget":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":break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(d);r("dxDropDownMenu",x),i.exports=x}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(10),r=n(12),s={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},l={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){e.setDate(t)},byday:function(e,t){e.setDate(e.getDate()-e.getDay()+t)}},c={bysecond:"getSeconds",byminute:"getMinutes",byhour:"getHours",bymonth:"getMonth",bymonthday:"getDate",byday:"getDay"},d=["freq","interval","byday","bymonth","bymonthday","count","until","byhour","byminute","bysecond"],u=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],h={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},p=function(e,t,n,i,o){var a=[];return e&&(a=m(e,t,n,i,o)),!!a.length},f=function(e,t){var n={},i=s[e.toLowerCase()];return n[i]=t,n},_=function(e){var t=[];if(!e)return t;for(var n=e.split(","),i=0,o=n.length;o>i;i++)t[i]=B(n[i]);return t},g=function(e,t){for(var n=!1,i=0,o=t.length;o>i;i++)e.getTime()===t[i].getTime()&&(n=!0);return n},m=function(e,t,n,i,o){var a=[],s=x(e);if(!s.isValid)return[];var l=s.rule;if(!l.freq)return a;l.interval=f(l.freq,l.interval),i=r.normalizeDate(i,n,l.until);var c=0,d=0,u=R(l),h=H(u,t),p=h[0],m=new Date(t),w=_(o);r.correctDateWithUnitBeginning(m,l.interval);for(var y=v(t,m);i>=p&&l.count!==c;)z(p,u)&&(p>=n&&!g(p,w)&&(n=new Date(p),n.setMilliseconds(n.getMilliseconds()+1),a.push(new Date(p))),c++),d++,p=h[d%h.length],d/h.length>=1&&(d=0,m=r.addInterval(m,l.interval),h=H(u,r.addInterval(m,y)),p=h[0]);return a},v=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()}},x=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=A(e),t.isValid=y(t.rule,e)),t},w=[],y=function(e,t){return D(e)||-1===o.inArray(e.freq,u)||C(e)||T(e)||I(e)||k(e)||S(e)||b(e)?(E(t),!1):!0},b=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},C=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},k=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},S=function(e){var t=!1,n=e.bymonth;return n&&isNaN(parseInt(n))&&(t=!0),t},T=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},I=function(e){var t=O(e),n=!1;return o.each(t,function(e,t){return h.hasOwnProperty(t)?void 0:(n=!0,!1)}),n},D=function(e){var t=!1;return o.each(e,function(e,n){return-1===o.inArray(e,d)?(t=!0,!1):void 0}),t},E=function(e){-1===o.inArray(e,w)&&(a.log("W0006",e),w.push(e))},A=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;o>i;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var c=parseInt(t.interval);isNaN(c)||(t.interval=c)}else t.interval=1;return t.freq&&t.until&&(t.until=B(t.until)),t},B=function(e){if("string"!=typeof e)return e;var t=e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?/);if(!t)return null;var n=new(Function.prototype.bind.apply(Date,M(t)));return n},M=function(e){return e.shift(),void 0===e[3]?e.splice(3):e.splice(3,1),e[1]--,e.unshift(null),e},O=function(e){var t=[];return e.byday&&(t=e.byday.split(",")),t},P=function(e){return e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},R=function(e){var t=[];for(var n in l)if(e[n]){var i=e[n].split(","),o=V(n,i);t=t.length?L(o,t):o}return t},V=function(e,t){for(var n=[],i=0,o=t.length;o>i;i++){var a={};a[e]=F(e,t[i]),n.push(a)}return n},F=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=h[t]), n},L=function(e,t){for(var n=[],i=0,a=e.length;a>i;i++)for(var r=0,s=t.length;s>r;r++)n.push(o.extend({},e[i],t[r]));return n},H=function(e,t){for(var n=new Date(t),i=[],o=0,a=e.length;a>o;o++){var r=e[o];for(var s in r)l[s](n,r[s]);i.push(new Date(n))}return i.length||i.push(n),i},z=function(e,t){for(var n=!1,i=0;ii||("until"===n&&(i=P(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}};i.exports={getRecurrenceString:N,getRecurrenceRule:x,getAsciiStringByDate:P,getDatesByRecurrence:m,dateInRecurrenceRange:p,getDateByAsciiString:B,daysFromByDayRule:O}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){n.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"},pieLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e){var t=String(e).toUpperCase();return-1!==l.inArray(t,B)?t:void 0}function a(e){return"SVG"===e?_.getBlob:"PDF"===e?g.getBlob:f.getBlob}function r(e){var t=window.open();t&&(t.document.open(),t.document.write(e),t.document.close(),t.print(),t.close())}function s(e,t,n,i){var o=String(n).toUpperCase();return-1===l.inArray(o,["PNG","PDF","JPEG","SVG","GIF"])&&(o="PNG"),{format:o,fileName:t||"file",proxyUrl:e.option("export.proxyUrl"),width:e._canvas.width,height:e._canvas.height,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}var l=n(1),c=l.extend,d=l.each,u=n(154),h=n(8),p=n(34),f=u.image,_=u.svg,g=u.pdf,m=n(125),v=n(13),x=[v.down,v.move].join(" "),w=35,y=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],b=4,C=120,k=8,S=15,T=30,I=1,D=10,E=2,A=3,B=["PNG","PDF","JPEG","SVG","GIF"],M="dx-export-menu",O="export-element-type",P="export-element-format";t.exportFromMarkup=function(e,t){t.format=o(t.format)||"PNG",t.fileName=t.fileName||"file",u.export(e,t,a(t.format))},t.ExportMenu=function(e,t){var n=this;n._renderer=e,n._svgMethod=t,n._shadow=e.shadowFilter("-50%","-50%","200%","200%",E,6,A),n._shadow.attr({opacity:.8}),n._group=e.g().attr({"class":M}).linkOn(e.root,{name:"export-menu",after:"peripheral"}),n._buttonGroup=e.g().attr({"class":M+"-button"}).append(n._group),n._listGroup=e.g().attr({"class":M+"-list"}).append(n._group),n._subscribeEvents()},c(t.ExportMenu.prototype,{getLayoutOptions:function(){var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=2*D,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:l.noop,shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){this._options.exportOptions.width=n.width,this._options.exportOptions.height=n.height,this._group.move(n.width-w-E-A,t-w-D)},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){this._options=e,e.formats=e.formats||B,e.printingEnabled=void 0===e.printingEnabled?!0:e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){var e=this;e._unsubscribeEvents(),e._group.linkRemove().linkOff(),e._group.dispose(),e._shadow.dispose(),e._shadow=e._group=e._listGroup=e._buttonGroup=e._button=null,e._options=null},layoutOptions:function(){var e=this._options;return e.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){return[w+E,w]},move:function(e){this._group.attr({translateX:Math.round(e[0]),translateY:Math.round(e[1])})},_hideList:function(){this._listGroup.attr({visibility:"hidden"}),this._listShown=!1,this._setButtonState("default")},_showList:function(){this._listGroup.attr({visibility:"visible"}),this._listShown=!0},_setButtonState:function(e){var t=this,n=t._options.button[e];this._button.attr({stroke:n.borderColor,fill:n.backgroundColor}),this._icon.attr({fill:n.color})},_subscribeEvents:function(){var e=this;e._renderer.root.on(v.up+".export",function(t){var n,i=t.target[O],o=e._options;return i?void("button"===i?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===i?(e.hide(),r(e._svgMethod()),e.show(),e._hideList()):"exporting"===i&&(e.hide(),n=c({},o.exportOptions,{format:t.target[P],backgroundColor:o.backgroundColor}),u.export(e._svgMethod(),n,a(n.format)),e.show(),e._hideList())):void(e._button&&e._hideList())}),e._listGroup.on(x,function(e){e.stopPropagation()}),e._buttonGroup.on(v.enter,function(){e._setButtonState("hover")}),e._buttonGroup.on(v.leave,function(){e._setButtonState(e._listShown?"focus":"default")}),e._buttonGroup.on(v.down+".export",function(t){e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this,t=e._renderer,n=e._options,i={fill:n.button.default.color,cursor:"pointer"},o={"export-element-type":"button"};e._button||(e._button=t.rect(0,0,w,w).append(e._buttonGroup),e._button.attr({rx:4,ry:4,fill:n.button.default.backgroundColor,stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),e._button.data(o),e._icon=t.path(y).append(e._buttonGroup),e._icon.attr(i),e._icon.data(o),e._buttonGroup.setTitle(h.format("vizExport-titleMenuText")))},_getItemStyle:function(e){var t=e.font,n={rect:{cursor:"pointer","pointer-events":"all"},text:{"pointer-events":"none"}};return n.text["font-size"]=t.size,n.text["font-family"]=t.family,n.text.fill=t.color,n.text["font-weight"]=t.weight,n},_getItemAttributes:function(e,t){var n,i={},o=w-C,a=w+b+(t.length+1)*T;return i.rect={width:C-2*I,height:T,x:o+I,y:a-T},i.text=p().rtlEnabled?{x:o+C-2*I-S}:{x:o+S},i.text.y=a-k,"printing"===e.type&&(n="M "+o+" "+(a-I)+" L "+(o+C)+" "+(a-I),i.separator={stroke:e.stroke,"stroke-width":I,cursor:"pointer",sharp:"v",d:n}),i},_addMenuItem:function(e,t,n){var i,o=this,a={},r=t.hoverFill,s=t.fill,l=t.type,c=t.format,d=o._getItemStyle(t),u=o._getItemAttributes(t,n);i=e.g().attr({"class":M+"-list-item"}),a[O]=l,c&&(a[P]=c);var h=e.rect(),p=e.text(t.text);h.attr(u.rect).css(d.rect).data(a),h.on(m.start+".export",function(e){h.attr({fill:r})}).on(m.end+".export",function(e){h.attr({fill:s})}),h.append(i),p.css(d.text).attr(u.text).append(i),"printing"===l&&e.path(null,"line").attr(u.separator).append(i),n.push({g:i,rect:h})},_getMenuItems:function(e){var t=this,n=e.button.default,i=e.button.hover,a=e.formats,r=t._renderer,s=[];return e.printingEnabled&&t._addMenuItem(r,{font:e.font,type:"printing",fill:n.backgroundColor,stroke:n.borderColor,hoverFill:i.backgroundColor,text:h.format("vizExport-printingButtonText")},s),d(a,function(a,l){l=o(l),l&&t._addMenuItem(r,{font:e.font,fill:n.backgroundColor,stroke:n.borderColor,hoverFill:i.backgroundColor,type:"exporting",text:h.getFormatter("vizExport-exportButtonText")(l),format:l},s)}),s&&t._setConnerRadius(s),s},_getMenuOverlay:function(e,t){var n,i,o=this,a=w+b,r=o._renderer,s=-C+w;return i=t.length*T,n=r.rect(s,a,C,i),o._shadow.attr({color:e.shadowColor}),n.attr({fill:e.button.default.backgroundColor,stroke:e.button.default.borderColor,"stroke-width":I,cursor:"pointer",rx:4,ry:4,filter:o._shadow.ref}),n.data({"export-element-type":"list"}),n},_setConnerRadius:function(e){var t=e[0].rect,n=e[e.length-1].rect;t.attr({y:parseInt(t.attr("y"))+2*I,height:parseInt(t.attr("height"))-2*I}),n.attr({height:parseInt(n.attr("height"))-2*I})},_updateList:function(){var e=this,t=e._options,n=e._listGroup,i=e._getMenuItems(t),o=e._getMenuOverlay(t,i);n.clear(),o.append(n),d(i,function(e,t){t.g.append(n)})}}),t.plugin={name:"export",init:function(){var e=this;e._exportMenu=new t.ExportMenu(e._renderer,function(){return e.svg()}),e._layout.add(e._exportMenu)},dispose:function(){this._exportMenu.dispose(),this._exportMenu=null},members:{_getExportMenuOptions:function(){var e=this,t=e._getOption("export")||{},n=s(e,t.fileName,t.format,t.color);return l.extend({},t,{exportOptions:n})},exportTo:function(e,t){var n,i=s(this,e,t),o=this._exportMenu;n="SVG"===i.format?u.svg.getBlob:"PDF"===i.format?u.pdf.getBlob:u.image.getBlob,o&&o.hide(),u.export(this.svg(),i,n),o&&o.show()},print:function(){var e=window.open();e&&(e.document.open(),e.document.write(this.svg()),e.document.close(),e.print(),e.close())}},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"}}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){var n,i=e.length;for(n=0;i>n;++n)if(e[n]!==t[n])return!1;return!0}function a(e){return _(e)?{text:e}:e||{}}var r=n(1),s=Number,l=n(7).getAppropriateFormat,c=n(343),d=r.extend,u=n(116),h=n(7).normalizeEnum,p=n(2),f=n(530),_=p.isString,g=u.inherit({_rootClassPrefix:"dxg",_createThemeManager:function(){return new this._factory.ThemeManager},_setDeprecatedOptions:function(){this.callBase(),d(this._deprecatedOptions,{subtitle:{since:"15.2",message:"Use the 'title.subtitle' option instead"},"title.position":{since:"15.2",message:"Use the 'verticalAlignment' and 'horizontalAlignment' options instead"},"scale.hideFirstTick":{since:"15.2",message:"The functionality is not more available"},"scale.hideLastTick":{since:"15.2",message:"The functionality is not more available"},"scale.hideFirstLabel":{since:"15.2",message:"The functionality is not more available"},"scale.hideLastLabel":{since:"15.2",message:"The functionality is not more available"},"scale.majorTick":{since:"15.2",message:"Use the 'tick' option instead"},"scale.minorTick.showCalculatedTicks":{since:"15.2",message:"The functionality is not more available"},"scale.minorTick.customTickValues":{since:"15.2",message:"Use the 'customMinorTicks' option instead"},"scale.minorTick.tickInterval":{since:"15.2",message:"Use the 'minorTickInterval' option instead"}})},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._initDeltaIndicator(),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()},_initDeltaIndicator:function(){var e=this,t=e._DeltaIndicator;t&&(e._deltaIndicator=new t({renderer:e._renderer,container:e._renderer.root}),e._deltaIndicator.layoutOptions=function(){this.clean(),this.draw(e._getOption("indicator"));var t=this.getLayoutOptions();return this._size=t?[t.width,t.height]:null,t&&{horizontalAlignment:t.horizontalAlignment||"center",verticalAlignment:t.verticalAlignment||"bottom"}},e._deltaIndicator.measure=function(){return this._size},e._deltaIndicator.move=function(e){return this.shift(Math.round(e[0]),Math.round(e[1]))},e._layout.add(e._deltaIndicator))},_disposeDeltaIndicator:function(){this._deltaIndicator&&(this._deltaIndicator.clean(),this._deltaIndicator.dispose())},_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=d({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()}}),e._resetTrackerCallbacks=function(){e._resetTrackerCallbacks=e=t=n=null}},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._disposeDeltaIndicator(),e._translator=e._tracker=null},_cleanCore:function(){var e=this;e._tracker.deactivate(),e._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=d({enabled:!0,duration:1e3,easing:"easeOutCubic"},t),t.enabled&&t.duration>0&&(e._animationSettings={duration:s(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=l(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new c.Translator1D},createTracker:function(e){return new f(e)}}});t.dxBaseGauge=g;var m=n(168),v=function(e,t,n){t=t||{};var i,o=m(e,t);return"function"==typeof t.customizeText?(i=d({value:e,valueText:o},n),String(t.customizeText.call(i,i))):o},x=function(e,t){var n=v(e.getDomainStart(),t),i=v(e.getDomainEnd(),t);return n.length>=i.length?n:i};t.formatValue=v,t.getSampleText=x,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&o(e,t)},g.addPlugin(n(130).plugin),g.addPlugin(n(171).plugin),g.addPlugin(n(172).plugin),g.addPlugin(n(169).plugin);var w=g.prototype._setTooltipOptions;g.prototype._setTooltipOptions=function(){w.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())},g.prototype._getTitleOptions=function(){var e,t,n=this,i=a(n.option("title"));return n._suppressDeprecatedWarnings(),i.subtitle=r.extend(a(i.subtitle),a(n.option("subtitle"))),n._resumeDeprecatedWarnings(),e=d(!0,{},n._themeManager.theme("title"),i),e.position&&(t=h(e.position).split("-"),e.verticalAlignment=t[0],e.horizontalAlignment=t[1]),e}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(96),r=n(173).chart.area,s=a.chart,l=a.polar,c=o.extend,d=o.each,u=3;t.chart={},t.polar={};var h={_getSpecialColor:r._getSpecialColor,_createPattern:r._createPattern,_updateOptions:function(e){this._stackName="axis_"+(e.axis||"default")+"_stack_"+(e.stack||"default")},_parsePointStyle:function(e,t,n){var i=this._createPattern(e.color||t,e.hatching),o=s._parsePointStyle.call(this,e,i,n);return o.fill=i,o.dashStyle=e.border&&e.border.dashStyle||"solid",delete o.r,o},_applyMarkerClipRect:function(e){e.clipId=null},_clearingAnimation:function(e,t){var n=this,i=n._oldgetAffineCoordOptions(e)||n._getAffineCoordOptions(e);n._labelsGroup&&n._labelsGroup.animate({opacity:.001},{duration:n._defaultDuration,partitionDuration:.5},function(){n._markersGroup.animate(i,{partitionDuration:.5},function(){n._markersGroup.attr({scaleX:null,scaleY:null,translateX:0,translateY:0}),t()})})},_setGroupsSettings:function(e,t){var n=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions(n.translators,!0):e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_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(),i=t._getSpecialColor(n);return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},i,n),selection:t._parsePointStyle(e.selectionStyle||{},i,n)}},_updatePointsVisibility:function(){var e=this._options.visible;o.each(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;d(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},_getPointSize:function(){return u},_beginUpdateData:function(e){s._beginUpdateData.call(this,e),this._deletePatterns()}};t.chart.bar=c({},s,h,{_getAffineCoordOptions:function(e){var t=this._options.rotated,n=t?"x":"y",i={scaleX:t?.001:1,scaleY:t?1:.001};return i["translate"+n.toUpperCase()]=e[n].translate("canvas_position_default"),i},_getRangeData:function(){var e=r._getRangeData.apply(this,arguments);return e.arg.stick=!1,e},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)}}),t.polar.bar=c({},l,h,{_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=h._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),e=c({},n),delete e.opacity,t._markersGroup.attr(e)},_createLegendState:r._createLegendState,_getRangeData:r._getRangeData})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}function a(e,t){var n,i=e.nodes,o=i&&i.length;for(n=0;o>n;++n)t.push(i[n].proxy),a(i[n],t)}function r(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}function s(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}var l=n(55).prototype,c=n(175).prototype,d=n(1).extend;l._eventsMap.onNodesInitialized={name:"nodesInitialized"},l._eventsMap.onNodesRendering={name:"nodesRendering"},l._createProxyType=function(){function e(e){var t=this;e.proxy=t,t._id=e._id,t.level=e.level,t.index=e.index,t.data=e.data}var t,n=this;e.prototype={constructor:e,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(e){var n=t[this._id].nodes;return n?n[e].proxy:null},getChildrenCount:function(){var e=t[this._id].nodes;return e?e.length:0},getAllChildren:function(){var e,n=t[this._id].nodes,i=n&&n.length,o=[];for(e=0;i>e;++e)o.push(n[e].proxy);return o},getAllNodes:function(){var e=[];return a(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,i=t[this._id];return void 0!==e?(r(i,e>0?Number(e):0),o(i,["TILING"]),n=this):n=i.value,n},label:function(e){var n,i=t[this._id];return void 0!==e?(i.customLabel=e?String(e):null,o(i,["LABELS"]),n=this):n=i.customLabel||i.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},d(!0,n._custom,e),n._partialState=n._partialLabelState=null),o(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,o(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})}},l._extendProxyType=n(98).empty;var u=l._resetNodes;l._resetNodes=function(){u.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var h=c.updateStyles;c.updateStyles=function(){var e=this;h.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),d(!0,e.state,e._partialState))};var p=c.updateLabelStyle;c.updateLabelStyle=function(){var e=this,t=e._custom;p.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||s(e,t.label),e.labelState=d(!0,{},e.labelState,e._partialLabelState))},l.getRootNode=function(){return this._root.proxy},l.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){function o(e,t){var n=N("")[0];return n.width=e+2*ie.x,n.height=t+2*ie.y,n}function a(e,t){var n=e.toDataURL(t,te),i=atob(n.substring(("data:"+t+";base64,").length));return i}function r(e,t,n,i,o,a,r,s){var l,c,d,u,h,p,f=(e+n)/2,_=(t+i)/2,g=Y(t-i,e-n),m=a?1:-1;g+=90*($/180)*(r?1:-1),l=U(K(n-e,2)+K(i-t,2))/2,c=U(j(K(o,2)-K(l,2))),d=f+m*(c*X(g)),u=_+m*(c*Q(g)),h=Y(t-u,e-d),p=Y(i-u,n-d),s.arc(d,u,o,h,p,!r)}function s(e,t){var n,i=B(e.attributes),o=e.style||{},a=J({},i,{text:e.textContent,textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),r=i.transform;return r&&(n=r.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),a.translateX=ee(n[0]),a.translateY=n[1]?ee(n[1]):0),n=r.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),a.rotationAngle=ee(n[0]),a.rotationX=n[1]&&ee(n[1]),a.rotationY=n[2]&&ee(n[2]))),u(o,a,t),t&&x(a),a}function l(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=q(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)}function c(e,t){var n=N.Deferred(),i=new Image;i.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,b(e,t),C(e,t),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore(),n.resolve()},i.onerror=function(e){n.resolve()},L.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function d(e,t){var n,i,o=t.split(" "),a=0;do switch(n=ee(o[a+1]),i=ee(o[a+2]),o[a]){case"M":e.moveTo(n,i),a+=3;break;case"L":e.lineTo(n,i),a+=3;break;case"C":e.bezierCurveTo(n,i,ee(o[a+3]),ee(o[a+4]),ee(o[a+5]),ee(o[a+6])),a+=7;break;case"A":r(ee(o[a-2]),ee(o[a-1]),ee(o[a+6]),ee(o[a+7]),n,ee(o[a+4]),ee(o[a+5]),e),a+=8;break;case"Z":e.closePath(),a+=1}while(aa*ne?1:a*ne,s=t.y;switch("center"===i?n-=o/2:"end"===i&&(n-=o),t.textDecoration){case"line-through":s-=a/3+r/2;break;case"overline":s-=a-r;break;case"underline":s+=r}e.rect(n,s,o,r),A(e,t),D(e,t)}}function g(e){V[e.attributes.id.textContent]=e.childNodes[0]}function m(e){H[e.attributes.id.textContent]=e}function v(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function x(e){e.dy&&(e.y=R+ee(e.dy)),F&&void 0===e.x&&(e.x=F),void 0!==e.y?R=e.y:e.y=R}function w(e,t,n){var i=e.tagName,o="text"===i||"tspan"===i||void 0===i,a="image"===i,r=J({},n,s(e,o));if("hidden"!==r.visibility){switch(t.save(),!a&&b(t,r),C(t,r),v(r),t.beginPath(),e.tagName){case void 0:f(t,r);break;case"text":case"tspan":F=0,T(e.childNodes,t,r);break;case"title":return;case"image":c(t,r);break;case"path":d(t,r.d);break;case"rect":l(t,r),t.closePath();break;case"circle":t.arc(r.cx,r.cy,r.r,0,2*$,1)}y(t,r),o||(A(t,r),D(t,r)),t.restore()}}function y(e,t){var n,i=t.filter&&t.filter.match(/url\(\#(.*)\)/);i&&i[1]&&(n=z&&z[i[1]],n||(n={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=n.offsetX,e.shadowOffsetY=n.offsetY,e.shadowColor=n.color,e.shadowBlur=n.blur)}function b(e,t){e.translate(t.translateX||0,t.translateY||0),delete t.translateX,delete t.translateY,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*$/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),delete t.rotationAngle,delete t.rotationX,delete t.rotationY)}function C(e,t){t["clip-path"]&&(w(V[h(t["clip-path"])],e,{}),e.clip(),delete t["clip-path"])}function k(e,t){var n=new W(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function S(e){var t,n,i={};Z(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":i.blur=ee(a.stdDeviation.value);break;case"offsetResult":i.offsetX=ee(a.dx.value),i.offsetY=ee(a.dy.value);break;case"floodResult":t=a["flood-color"]?a["flood-color"].value:"#000",n=a["flood-opacity"]?a["flood-opacity"].value:1,i.color=k(t,n)}}),z[e.id]=i}function T(e,t,n){var i;Z(e,function(e,o){switch(o.tagName&&o.tagName.toLowerCase()){case"g":i=J({},n,s(o)),t.save(),b(t,i),C(t,i),T(o.childNodes,t,i),t.restore();break;case"defs":V={},H={},z={},T(o.childNodes,t);break;case"clippath":g(o);break;case"pattern":m(o);break;case"filter":S(o);break;default:w(o,t,n)}})}function I(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=N.map(n,function(e){return ee(e)}),e.setLineDash(n))}function D(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(I(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())}function E(e,t){var n=H[h(t)],i=s(n),a=o(i.width,i.height),r=a.getContext("2d");return T(n.childNodes,r,i),e.createPattern(a,"repeat")}function A(e,t){var n=t.fill;n&&"none"!==n&&(e.fillStyle=-1===n.search(/url/)?n:E(e,n),e.globalAlpha=t.fillOpacity,e.fill())}function B(e){var t,n={};return N.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=ee(t)),n[i.name.toLowerCase()]=t}),n}function M(e,t,n,i){e.fillStyle=i||"#ffffff",e.fillRect(-ie.x,-ie.y,t+2*ie.x,n+2*ie.y)}function O(e,t,n,i){var a=o(t,n),r=a.getContext("2d"),s=new DOMParser,l=s.parseFromString(e,"image/svg+xml"),c=l.childNodes[0];return r.translate(ie.x,ie.y),L=[],document.body.appendChild(a),c.attributes.direction&&(a.dir=c.attributes.direction.textContent),M(r,t,n,i),T(c.childNodes,r,{}),document.body.removeChild(a),a}function P(e,t,n){N.when.apply(N,L).done(function(){var i=a(t,n);e.resolve(i)})}var R,V,F,L,H,z,N=n(1),W=n(56),G=Math,$=G.PI,q=G.min,j=G.abs,U=G.sqrt,K=G.pow,Y=G.atan2,X=G.cos,Q=G.sin,Z=N.each,J=N.extend,ee=Number,te=1,ne=.05,ie={x:30,y:20},oe="10px",ae="sans-serif",re="#000";t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=N.Deferred(),o=t.width,a=t.height,r=t.backgroundColor;return P(i,O(e,o,a,r),n),i},getBlob:function(e,n){var i,o,a=t.imageCreator.getImageData(e,n),r="image/"+n.format,s=N.Deferred();return N.when(a).done(function(e){for(i=new Uint8Array(e.length),o=0;o")),this.callBase(e,t)},_setDeprecatedOptions:function(){this.callBase(),o.extend(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return o.extend(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var e=this._options.disabled;if(o.isFunction(e)&&(e=!!e.apply(this,arguments)),e)throw a.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.element().addClass("dx-command")},_renderDisabledState:o.noop,_dispose:function(){this.callBase(),this.element().removeData(this.NAME)}});r("dxCommand",l),i.exports=l}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(43),s=a.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(e,t){return this._containerDefaults[e]=t,this},mapCommands:function(e,t){var n=this;return o.each(t,function(t,i){"string"==typeof i&&(i={id:i});var a=i.id,r=n._commandMappings[e]||{}; r[a]=o.extend({showIcon:!0,showText:!0},n._containerDefaults[e]||{},i),n._commandMappings[e]=r}),this._initExistingCommands(),this},unmapCommands:function(e,t){var n=this;o.each(t,function(t,i){var o=n._commandMappings[e]||{};o&&delete o[i]}),this._initExistingCommands()},getCommandMappingForContainer:function(e,t){return(this._commandMappings[t]||{})[e]},checkCommandsExist:function(e){var t=this,n=o.grep(e,function(n,i){return o.inArray(n,t._existingCommands)<0&&o.inArray(n,e)===i});if(0!==n.length)throw r.Error("E3005",n.join("', '"),1===n.length?" is":"s are")},load:function(e){if(e){var t=this;return o.each(e,function(e,n){t.setDefaults(e,n.defaults),t.mapCommands(e,n.commands)}),this}},_initExistingCommands:function(){var e=this;this._existingCommands=[],o.each(e._commandMappings,function(t,n){o.each(n,function(t,n){o.inArray(n.id,e._existingCommands)<0&&e._existingCommands.push(n.id)})})}});s.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},i.exports=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(144).MarkupComponent,r=n(3);n(81);var s=a.inherit({ctor:function(e,t){o.isPlainObject(e)&&(t=e,e=o("
")),this.callBase(e,t)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});r("dxCommandContainer",s),i.exports=s}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(2),s=n(80),l=n(105).layoutSets,c=n(32),d=n(43),u=n(11),h="__hidden-bag",p=".dx-transition:not(.dx-transition .dx-transition)",f=".dx-content",_="onViewShown",g="dxcontentrendered.layoutController",m=".dx-pending-rendering",v=".dx-pending-rendering-manual",x=n(84);n(142),n(44);var w=function(e){return".dx-transition-"+e},y=a.inherit({ctor:function(e){e=e||{},this.name=e.name||"",this._layoutModel=e.layoutModel||{},this._defaultPaneName=e.defaultPaneName||"content",this._transitionDuration=void 0===e.transitionDuration?400:e.transitionDuration,this._showViewFired=!1},init:function(e){e=e||{},this._visibleViews={},this._$viewPort=e.$viewPort||o("body"),this._commandManager=e.commandManager,this._viewEngine=e.viewEngine,this.transitionExecutor=new x.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),e.templateContext&&(this._templateContext=e.templateContext,this._proxiedTemplateContextChangedHandler=o.proxy(this._templateContextChangedHandler,this))},ensureActive:function(e){return this._disabledState?this.enable():this.activate(e)},activate:function(){this._showViewFired=!1;var e=this.element();return this._showElements(e),this._attachRefreshViewRequiredHandler(),o.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),o.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,o.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(e){var t=this;o.each(this._visibleViews,function(n,i){t.fireEvent(e,[i])})},_notifyShowing:function(){this._fireViewEvents("viewShowing")},_notifyShown:function(){this._fireViewEvents("viewShown")},_notifyHidden:function(){this._fireViewEvents("viewHidden")},_applyTemplate:function(e,t){e.each(function(e,n){s.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;o.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this;o.when.apply(o,o.map(e._visibleViews,function(t){return e.showView(t)})).then(function(){e._notifyShown()})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(e){return this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]},_prepareTemplates:function(){var e=this,t=e._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());e._$layoutTemplate=t,e._$mainLayout=e._createEmptyLayout(),e._showElements(e._$mainLayout),e._applyTemplate(e._$mainLayout,e._layoutModel),e._$navigationWidget=e._createNavigationWidget()},renderNavigation:function(e){this._clearNavigationWidget(),this._renderNavigationImpl(e)},_renderNavigationImpl:function(e){this._renderCommands(this._$mainLayout,e)},_createNavigationWidget:function(){var e,t=this._findCommandContainers(this._$mainLayout);return o.each(t,function(t,n){return"global-navigation"===n.option("id")?(e=n.element(),!1):void 0}),e},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(e){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(e,t){var n=this;this._getTransitionElements(e).each(function(e,i){n._applyTemplate(o(i).children(),t)})},_createViewLayoutTemplate:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),t},_createEmptyLayout:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),this._getTransitionElements(t).empty(),t.children(f).remove(),t},_getTransitionElements:function(e){return e.find(p).addBack(p)},showView:function(e,t){t=t||"forward";var n,i=this,a=i._getPreviousViewInfo(e),r=a===e?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._defineCurrentViewTemplateId(e),r&&r===e.currentViewTemplateId&&e===a?(i.fireEvent("viewShowing",[e,t]),n=o.Deferred().resolve().promise()):(i._ensureViewRendered(e),i.fireEvent("viewShowing",[e,t]),n=this._showViewImpl(e,t,r).done(function(){i._onViewShown(e)})),n},disposeView:function(e){this._clearRenderResult(e)},_clearRenderResult:function(e){e.renderResult&&(e.renderResult.$markup.remove(),e.renderResult.$viewItems.remove(),delete e.renderResult)},_renderViewImpl:function(e,t){var n,i=this,a=".dx-command,.dx-content,script",r=this._createViewLayoutTemplate(),s=!0,l=o();if(0===e.children(a).length&&this._viewEngine._wrapViewDefaultContent(e),n=e.children(),this._applyModelToTransitionElements(r,t.model),this._viewEngine.applyLayout(e,r),n.each(function(e,n){var r=o(n);i._applyTemplate(r,t.model),r.is(a)?s=!1:l=l.add(r)}),l.length&&!s)throw d.Error("E3014",l[0].outerHTML);t.renderResult=t.renderResult||{},t.renderResult.$viewItems=n,t.renderResult.$markup=r},_renderCommands:function(e,t){var n=this._findCommandContainers(e);return this._commandManager.renderCommandsToContainers(t,n)},_prepareViewCommands:function(e){var t=e.renderResult.$viewItems,n=this._commandManager.findCommands(t),i={};e.commands=s.utils.mergeCommands(e.commands||[],n),e.commandsToRenderMap=i,o.each(e.commands,function(e,t){var n=t.option("renderStage")||_,o=i[n]=i[n]||[];o.push(t)})},_applyViewCommands:function(e,t){t=t||_;var n,i=e.commandsToRenderMap[t],a=e.renderResult.$markup;return i?(n=this._renderCommands(a,i),delete e.commandsToRenderMap[t]):n=o.Deferred().resolve().promise(),n},_findCommandContainers:function(e){return u.createComponents(e,["dxCommandContainer"])},_defineCurrentViewTemplateId:function(e){var t=e.$viewTemplate?e.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(e.viewName),n=t.getId();e.currentViewTemplateId=n},_ensureViewRendered:function(e){var t=e.renderResult&&e.renderResult.markupCache[e.currentViewTemplateId];t?e.renderResult.$markup=t:(this._renderView(e),e.renderResult.markupCache=e.renderResult.markupCache||{},e.renderResult.markupCache[e.currentViewTemplateId]=e.renderResult.$markup)},_renderView:function(e){var t=e.$viewTemplate||this._viewEngine.getViewTemplate(e.viewName);this._renderViewImpl(t,e),this._prepareViewCommands(e),this._applyViewCommands(e,"onViewRendering"),this._appendViewToLayout(e),t.remove(),this._onRenderComplete(e),this.fireEvent("viewRendered",[e])},_prepareTransition:function(e,t){0===e.children(".dx-content").length&&(e.wrapInner("
"),e.children().dxContent({targetPlaceholder:t}))},_appendViewToLayout:function(e){var t=this,n=t._getViewFrame(e),i=e.renderResult.$markup,a=o(),r=[];o.each(i.find(".dx-content-placeholder"),function(e,n){t._prepareTransition(o(n),o(n).attr("data-dx-content-placeholder-name"))}),o.each(t._getTransitionElements(n),function(e,n){var s=o(n),l=i.find(w(s.attr("data-dx-transition-name"))).children(),c={$element:l,animation:s.attr("data-dx-transition-type")};r.push(c),s.append(l),t._showViewElements(l),u.triggerShownEvent(l),a=a.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),i.remove(),e.renderResult.$markup=a,e.renderResult.animationItems=r},_onRenderComplete:function(e){},_onViewShown:function(e){o(document).trigger("dx.viewchanged")},_enter:function(e,t){var n=this.transitionExecutor;o.each(e,function(e,i){n.enter(i.$element,i.animation,t)})},_leave:function(e,t){var n=this.transitionExecutor;o.each(e,function(e,i){n.leave(i.$element,i.animation,t)})},_doTransition:function(e,t,n){return e&&this._leave(e.renderResult.animationItems,n),this._enter(t.renderResult.animationItems,n),this._showView(t),this.transitionExecutor.start()},_showViewImpl:function(e,t,n){var i,o=this,a=this._getPreviousViewInfo(e),r={direction:t};return a===e&&(a=void 0),a||(r.duration=0,r.delay=0),i=o._doTransition(a,e,r).then(function(){return o._changeView(e,n)})},_releaseView:function(e){this.fireEvent("viewReleased",[e])},_getReadyForRenderDeferredItems:function(e){return o.Deferred().resolve().promise()},_changeView:function(e,t){var n=this;if(t)n._hideView(e,t);else{var i=n._getPreviousViewInfo(e);i&&i!==e&&(n._hideView(i),n._releaseView(i)),this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]=e}return this._subscribeToDeferredItems(e),this._getReadyForRenderDeferredItems(e).then(function(){return n._applyViewCommands(e)}).then(function(){return n._renderDeferredItems(e.renderResult.$markup)})},_subscribeToDeferredItems:function(e){var t=this,n=e.renderResult.$markup;n.find(m).add(n.filter(m)).each(function(){var n={viewInfo:e,context:t};o(this).on(g,n,t._onDeferredContentRendered)})},_onDeferredContentRendered:function(e){var t=o(e.target),n=e.data.viewInfo,i=e.data.context;t.off(g,i._onDeferredContentRendered),i._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=o.Deferred(),i=e.find(v).add(e.filter(v)).first();if(i.length){var a=i.data("dx-render-delegate");r.executeAsync(function(){a().then(function(){return t._renderDeferredItems(e)}).then(function(){n.resolve()})})}else n.resolve();return n.promise()},_getViewPaneName:function(e){return this._defaultPaneName},_hideElements:function(e){e.addClass("dx-fast-hidden")},_showElements:function(e){e.removeClass("dx-fast-hidden")},_hideViewElements:function(e){this._patchIDs(e),this._disableInputs(e),e.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(e,t){if(e.renderResult){var n=void 0===t?e.renderResult.$markup:e.renderResult.markupCache[t];this._hideViewElements(n),this.fireEvent("viewHidden",[e])}},_showViewElements:function(e){this._unpatchIDs(e),this._enableInputs(e),e.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(e)},_showView:function(e){e.renderResult&&this._showViewElements(e.renderResult.$markup)},_skipAnimation:function(e){e.addClass("dx-skip-animation");for(var t=0;t-1&&(this.stateSources.splice(t,1),e.removeState(this.storage))},saveState:function(){var e=this;a.each(this.stateSources,function(t,n){n.saveState(e.storage)})},restoreState:function(){var e=this;a.each(this.stateSources,function(t,n){n.restoreState(e.storage)})},clearState:function(){var e=this;a.each(this.stateSources,function(t,n){n.removeState(e.storage)})}});i.exports=s,i.exports.MemoryKeyValueStorage=r}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,n){n.exports=window.angular.module("dx",["ngSanitize"])}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){n(82);var o=n(45),a=n(37),r=n(10);if(n(45),o&&o.formatNumber){var s={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.load(s),o.locale("en");var l={},c=function(e){var t,n;return n="object"==typeof e?o.locale().locale+":"+JSON.stringify(e):o.locale().locale+":"+e,t=l[n],t||(t=l[n]=o.numberFormatter(e)),t},d={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):c(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,maximumFractionDigits:0,round:0>n?"ceil":"floor"}:{minimumFractionDigits:t.precision,maximumFractionDigits:t.precision},"percent"===e&&(i.style="percent"),i},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):c(t)(e))},parse:function(e,t){return e?t&&t.parser?t.parser(e):(t&&r.log("W0011"),o.parseNumber(e)):void 0}};a.inject(d)}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(3),s=n(2),l=n(17),c=n(21),d=n(6),u=n(28),h="dx-box",p=".dx-box",f="dx-box-item",_="dxBoxItemData",g=l.styleProp("flexGrow"),m=l.styleProp("flexShrink"),v=l.stylePropPrefix("flexDirection"),x={row:"minWidth",col:"minHeight"},w={row:"maxWidth",col:"maxHeight"},y=1,b={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},C={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},k={row:"row",col:"column"},S=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({display:l.stylePropPrefix("flexDirection")+"flex",flexDirection:k[this._option("direction")]})},renderAlign:function(){this._$element.css({justifyContent:this._normalizedAlign()})},_normalizedAlign:function(){var e=this._option("align");return e in b?b[e]:e},renderCrossAlign:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})},_normalizedCrossAlign:function(){var e=this._option("crossAlign");return e in C?C[e]:e},renderItems:function(e){var t=this._option("direction");o.each(e,function(){var e=o(this),n=e.data(_);e.css({display:v+"flex",flexBasis:n.baseSize||0}).css(w[t],n.maxSize||"none").css(x[t],n.minSize||"0");var i=e.get(0).style;i[g]=n.ratio,i[m]=s.isDefined(n.shrink)?n.shrink:y,e.children().each(function(t,n){o(n).css({width:"auto",height:"auto",display:l.stylePropPrefix("flexDirection")+"flex",flexDirection:e.children().css("flexDirection")||"column"}),n.style[g]=1})})},initSize:o.noop,update:o.noop}),T="dxBox",I="dxupdate."+T,D="dx-box-fallback-item",E={row:"nowrap",col:"normal"},A={row:"width",col:"height"},B={row:"height",col:"width"},M={row:"marginLeft",col:"marginTop"},O={row:"marginRight",col:"marginBottom"},P={row:"marginTop",col:"marginLeft"},R={row:"marginBottom",col:"marginRight"},V={marginLeft:"marginRight",marginRight:"marginLeft"},F=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({fontSize:0,whiteSpace:E[this._option("direction")],verticalAlign:"top"}),this._$element.off(I).on(I,o.proxy(this.update,this))},renderAlign:function(){var e=this._$items;if(e){var t=this._option("align"),n=0,i=this.totalItemSize,o=this._option("direction"),a=this._$element[A[o]](),r=a-i;switch(this._setItemsMargins(e,o,0),t){case"start":break;case"end":n=r,e.first().css(this._chooseMarginSide(M[o]),n);break;case"center":n=.5*r,e.first().css(this._chooseMarginSide(M[o]),n),e.last().css(this._chooseMarginSide(O[o]),n);break;case"space-between":n=.5*r/(e.length-1),this._setItemsMargins(e,o,n),e.first().css(this._chooseMarginSide(M[o]),0),e.last().css(this._chooseMarginSide(O[o]),0);break;case"space-around":n=.5*r/e.length,this._setItemsMargins(e,o,n)}}},_setItemsMargins:function(e,t,n){e.css(this._chooseMarginSide(M[t]),n).css(this._chooseMarginSide(O[t]),n)},renderCrossAlign:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),i=this._$element[B[n]](),a=this;switch(t){case"start":break;case"end":o.each(e,function(){var e=o(this),t=e[B[n]](),r=i-t;e.css(a._chooseMarginSide(P[n]),r)});break;case"center":o.each(e,function(){var e=o(this),t=e[B[n]](),r=.5*(i-t);e.css(a._chooseMarginSide(P[n]),r).css(a._chooseMarginSide(R[n]),r)});break;case"stretch":e.css(a._chooseMarginSide(P[n]),0).css(a._chooseMarginSide(R[n]),0).css(B[n],"100%")}}},_chooseMarginSide:function(e){return this._option("rtlEnabled")?V[e]||e:e},renderItems:function(e){this._$items=e;var t=this._option("direction"),n=0,i=0,a=0;o.each(e,o.proxy(function(e,r){var l=o(r);l.css({display:"inline-block",verticalAlign:"top"}),l[A[t]]("auto"),l.removeClass(D);var c=l.data(_),d=c.ratio||0,u=this._baseSize(l),h=s.isDefined(c.shrink)?c.shrink:y;n+=d,i+=h*u,a+=u},this));var r=this._boxSize()-a,l=o.proxy(function(e){var t=e.data(_),o=this._baseSize(e),a=r>=0?t.ratio||0:(s.isDefined(t.shrink)?t.shrink:y)*o,l=r>=0?n:i,c=l?Math.round(r*a/l):0;return o+c},this),c=0;o.each(e,function(e,n){var i=o(n),a=o(n).data(_),r=l(i);c+=r,i.css(w[t],a.maxSize||"none").css(x[t],a.minSize||"0").css(A[t],r),i.addClass(D)}),this.totalItemSize=c},_baseSize:function(e){var t=o(e).data(_);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)},_contentSize:function(e){return o(e)[A[this._option("direction")]]()},_parseSize:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e},_boxSize:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)},_totalBaseSize:function(){var e=0;return o.each(this._$items,o.proxy(function(t,n){e+=this._baseSize(n)},this)),e},initSize:function(){this._boxSize(this._$element[A[this._option("direction")]]())},update:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(p).each(function(){e===o(this).parent().closest(p).get(0)&&o(this).triggerHandler(I)})}}}),L=u.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,_layoutStrategy:"flex",_queue:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=d.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||c.msie||t||n},options:{_layoutStrategy:"fallback"}}])},_itemClass:function(){return f},_itemDataKey:function(){return _},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.element().addClass(h+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()},_initLayout:function(){this._layout="fallback"===this.option("_layoutStrategy")?new F(this.element(),o.proxy(this.option,this)):new S(this.element(),o.proxy(this.option,this))},_initBoxQueue:function(){this._queue=this.option("_queue")||[]},_queueIsNotEmpty:function(){return this.option("_queue")?!1:!!this._queue.length},_pushItemToQueue:function(e,t){this._queue.push({$item:e,config:t})},_shiftItemFromQueue:function(){return this._queue.shift()},_render:function(){this.callBase(),this.element().addClass(h),this._renderBox()},_renderBox:function(){this._layout.renderBox(),this._layout.renderAlign(),this._layout.renderCrossAlign()},_renderItems:function(e){for(this._layout.initSize(),this.callBase(e);this._queueIsNotEmpty();){var t=this._shiftItemFromQueue();this._createComponent(t.$item,L,o.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},t.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(o.proxy(function(){this._isUpdated||this._layout.update(),this._isUpdated=!1,this._updateTimer=null},this))},_renderItemContent:function(e){var t=e.itemData&&e.itemData.node;return t?this._renderItemContentByNode(e,t):this.callBase(e)},_postprocessRenderItem:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)},_createItemByTemplate:function(e,t){return t.itemData.box?e.source():this.callBase(e,t)},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())},_dispose:function(){clearTimeout(this._updateTimer),this.callBase.apply(this,arguments)},_optionChanged: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:this.callBase(e)}},repaint:function(){this._dimensionChanged()}});r("dxBox",L),i.exports=L}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(5),r=n(14),s=a.abstract,l=a.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||o("
"),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:s,_getWidgetName:s,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:s,supportedKeys:o.noop,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){return r.parse(e,t)},renderInputMinMax:o.noop,renderOpenedState:function(){this.dateBox.option("opened")&&this._updateValue()},popupConfig:s,renderPopupContent:function(){var e=this._getPopup();this._renderWidget(),e.content().parent().off("mousedown").on("mousedown",o.proxy(this._preventFocusOnPopup,this))},getFirstPopupElement:o.noop,getLastPopupElement:o.noop,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:o.noop,popupHiddenHandler:o.noop,_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)},textChangedHandler:o.noop,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(){var e=["value"];return arguments.length&&e.push(arguments[0]),this.dateBox.dateOption.apply(this.dateBox,e)}});i.exports=l}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(33),r=n(3),s=n(2),l=n(19),c=n(66),d=n(8),u=n(6),h=n(25),p=n(4),f=n(94),_=n(9),g=n(54),m="dx-dropdowneditor",v="dx-dropdowneditor-input-wrapper",x="dx-dropdowneditor-button",w="dx-dropdowneditor-icon",y="dx-dropdowneditor-overlay",b="dx-dropdowneditor-overlay-flipped",C="dx-dropdowneditor-active",k="dx-dropdowneditor-button-visible",S="dx-dropdowneditor-field-clickable",T=f.inherit({_supportedKeys:function(){return o.extend({},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&&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):!0},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),e.altKey?(this._validatedOpening(),!1):!0},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_setDeprecatedOptions:function(){this.callBase(),o.extend(this._deprecatedOptions,{fieldEditEnabled:{since:"16.1",alias:"acceptCustomValue"}})},_getDefaultOptions:function(){return o.extend(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropButton:!0,popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:d.format("OK"),cancelButtonText:d.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=s.getDefaultAlignment(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){var t="generic"===e.platform,n="win"===e.platform&&e.version&&10===e.version[0];return t||n},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.element().find("."+v)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction()},_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","designMode"]})},_render:function(){this.callBase(),this._renderOpenHandler(),this.element().addClass(m),this._renderOpenedState(),this.setAria("role","combobox")},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.element().wrapInner(o("
").addClass(v)),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")&&this._input().off("focusin focusout beforeactivate")},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");e&&this.option("fieldTemplate")&&this._renderTemplatedField(e,this._fieldRenderData())},_renderTemplatedField:function(e,t){var n=this._input().is(":focus");this._resetFocus(n);var i=this._$container;if(i.empty(),this._$dropButton=null,this._$clearButton=null,e.render(t,i),!this._input().length)throw l.Error("E1010");this._refreshEvents(),this._refreshValueChangeEvent(),n&&this._input().focus(),this._renderFocusState()},_resetFocus:function(e){this._cleanFocusState(),e&&this._input().focusout()},_fieldRenderData:function(){return this.option("value")},_renderInputAddons:function(){this._renderField(),this.callBase(),this._renderDropButton()},_renderDropButton:function(){var e=this.option("showDropButton");return this.element().toggleClass(k,e),e?(this._$dropButton||(this._$dropButton=this._createDropButton().addClass(x)),void this._$dropButton.prependTo(this._buttonsContainer())):(this._$dropButton&&this._$dropButton.remove(),void(this._$dropButton=null))},_createDropButton:function(){var e=o("
");this._createComponent(e,h,{focusStateEnabled:!1,disabled:this.option("readOnly"),_templates:{},useInkRipple:!1});var t=o("
").addClass(w);return e.append(t).removeClass("dx-button").on("mousedown",function(e){e.preventDefault()}),e.find(".dx-button-content").remove(),e},_renderOpenHandler:function(){var e=this.element().find("."+v),t=p.addNamespace(_.name,this.NAME);e.off(t);var n=this.option("openOnFieldClick");return this.element().toggleClass(S,n),n?void e.on(t,o.proxy(this._openHandler,this)):void(this.option("showDropButton")&&this._$dropButton.dxButton("option","onClick",o.proxy(this._openHandler,this)))},_openHandler:function(){this._toggleOpenState()},_keyboardEventBindingTarget:function(){return this._input()},_toggleOpenState:function(e){this.option("disabled")||(this._needFocusOnButtonClick()&&this._input().focus(),this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_needFocusOnButtonClick:function(){return"desktop"===u.real().deviceType},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.element().toggleClass(C,e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:(e||void 0)&&this._popupContentId})},_createPopup:function(){this._$popup||(this._$popup=o("
").addClass(y).addClass(this.option("customOverlayCssClass")).appendTo(this.element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,g,this._popupConfig()),this._popup.on({showing:o.proxy(this._popupShowingHandler,this),shown:o.proxy(this._popupShownHandler,this),hiding:o.proxy(this._popupHidingHandler,this),hidden:o.proxy(this._popupHiddenHandler,this)}),this._popup.option("onContentReady",o.proxy(this._contentReadyHandler,this)),this._contentReadyHandler(),this._popupContentId=new a,this.setAria("id",this._popupContentId,this._popup.content())},_contentReadyHandler:o.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:o.extend(this.option("popupPosition"),{of:this.element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:o.proxy(this._closeOutsideDropDownHandler,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:o.proxy(this._popupPositionedHandler,this),fullScreen:!1}},_popupInitializedHandler:function(){return this.option("onPopupInitialized")?o.proxy(function(e){this._popupInitializedAction({popup:e.component})},this):void 0},_popupPositionedHandler:function(e){this._popup.overlayContent().toggleClass(b,e.position.v.flip)},_popupShowingHandler:o.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=c.setup(this.element()).top,n=c.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();t.empty(),e.render(t)}},_closeOutsideDropDownHandler:function(e){var t=o(e.target),n=!!t.closest(this.element()).length,i=!!t.closest(this._$dropButton).length,a=!n&&!i;return a},_clean:function(){delete this._$dropButton,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=o(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(this._input().focus(),e.preventDefault())},_popupElementEscHandler:function(e){this._input().focus(),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",o.proxy(this._popupElementTabHandler,this)),e.component.registerKeyHandler("escape",o.proxy(this._popupElementEscHandler,this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:o.proxy(this._applyButtonHandler,this),text:this.option("applyButtonText"),onInitialized:o.proxy(this._popupButtonInitializedHandler,this)}},{shortcut:"cancel",options:{onClick:o.proxy(this._cancelButtonHandler,this),text:this.option("cancelButtonText"),onInitialized:o.proxy(this._popupButtonInitializedHandler,this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=s.splitPair(t);o.each(n,function(e,t){o.extend(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()},_toggleReadOnlyState:function(){this.callBase(),this._$dropButton&&this._$dropButton.dxButton("option","disabled",this.option("readOnly"))},_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":this._renderInputAddons();break;case"showDropButton":case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();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)},reset:function(){this.option("value",null)},field:function(){return this._input()},content:function(){return this._popup?this._popup.content():null}});r("dxDropDownEditor",T),i.exports=T}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(2),r=n(16).compileGetter,s=n(9),l=n(89),c=n(17),d=n(8),u=n(48),h=n(6),p=n(25),f=n(4),_=n(23),g=n(182),m=n(73).deviceDependentOptions,v=n(28),x="dx-list",w="dx-list-item",y="."+w,b="dx-list-group",C="dx-list-group-header",k="dx-list-group-body",S="dx-list-collapsible-groups",T="dx-list-group-collapsed",I="dx-has-next",D="dx-list-next-button",E="dxListItemData",A=70,B=r("items"),M=v.inherit({_activeStateUnit:y,_supportedKeys:function(){var e=this,t=function(t){var o=n(t),a=o.is(e.option("focusedElement"));a&&(i(o,t),o=n(t)),e.option("focusedElement",o),e.scrollToItem(o)},n=function(t){var n=e.scrollTop(),i=e.element().height(),a=e.option("focusedElement"),r=!0;if(!a)return o();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;r=i+n>l&&l>n,r&&(a=s)}return a},i=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.element().height()+t.outerHeight()),e.scrollTo(i)};return o.extend(this.callBase(),{leftArrow:o.noop,rightArrow:o.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_setDeprecatedOptions:function(){this.callBase(),o.extend(this._deprecatedOptions,{autoPagingEnabled:{since:"15.1",message:"Use the 'pageLoadMode' option instead"},showNextButton:{since:"15.1",message:"Use the 'pageLoadMode' option instead"}})},_getDefaultOptions:function(){return o.extend(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:d.format("dxList-pullingDownText"),pulledDownText:d.format("dxList-pulledDownText"),refreshingText:d.format("dxList-refreshingText"),pageLoadingText:d.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:d.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat(m(),[{device:function(e){return!c.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!c.nativeScrolling&&!h.isSimulator()&&"generic"===h.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(e){return"desktop"===h.real().deviceType&&!h.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(_.current())},options:{useInkRipple:!0}},{device:function(e){return"win"===h.current().platform&&h.isSimulator()},options:{bounceEnabled:!1}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return w},_itemDataKey:function(){return E},_itemContainer:function(){return this._$container},_itemElements:function(){return this.option("grouped")?this._itemContainer().children("."+b).children("."+k).children(this._itemSelector()):this._itemContainer().children(this._itemSelector())},_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=A,this._createGroupRenderAction(),this.setAria("role","listbox")},_dataSourceOptions:function(){this._suppressDeprecatedWarnings();var e=this.option("autoPagingEnabled");return e=a.isDefined(this.option("showNextButton"))?e||this.option("showNextButton"):e,this._resumeDeprecatedWarnings(),o.extend(this.callBase(),{paginate:a.isDefined(e)?e:!0})},_initScrollView:function(){this._suppressDeprecatedWarnings();var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&a.ensureDefined(this.option("autoPagingEnabled"),"scrollBottom"===this.option("pageLoadMode"))&&!!this._dataSource;this._resumeDeprecatedWarnings(),this._scrollView=this._createComponent(this.element(),g.ScrollView,{disabled:this.option("disabled")||!e,onScroll:o.proxy(this._scrollHandler,this),onPullDown:t?o.proxy(this._pullDownHandler,this):null,onReachBottom:n?o.proxy(this._scrollBottomHandler,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=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(e)},_updateLoadingState:function(e){this._suppressDeprecatedWarnings();var t=!e||this._isLastPage(),n=a.ensureDefined(this.option("autoPagingEnabled"),"scrollBottom"===this.option("pageLoadMode")),i=t||!n,o=i&&!this._isDataSourceLoading();this._resumeDeprecatedWarnings(),i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!t),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){this._suppressDeprecatedWarnings();var e=a.ensureDefined(this.option("showNextButton"),"nextButton"===this.option("pageLoadMode"))&&this._dataSource&&this._dataSource.isLoaded();return this._resumeDeprecatedWarnings(),e},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(o.proxy(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()},this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){this._shouldAppendItems()||this._scrollView&&this._scrollView.scrollTo(0),this.callBase(e)},_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.load()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this.element().is(":visible");!e||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(o.proxy(this._loadNextPage,this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(o.each(e,o.proxy(this._renderGroup,this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage()):this.callBase.apply(this,arguments),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=f.addNamespace(s.name,this.NAME),t="."+C,n=this.element(),i=this.option("collapsibleGroups");n.toggleClass(S,i),n.off(e,t),i&&n.on(e,t,o.proxy(function(e){this._createAction(o.proxy(function(e){var t=o(e.jQueryEvent.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",t.find("."+w).eq(0))},this),{validatingTargetName:"element"})({jQueryEvent:e})},this))},_collapseGroupHandler:function(e,t){var n=o.Deferred(),i=e.children("."+k);e.toggleClass(T,t);var a="slideToggle";return t===!0&&(a="slideUp"),t===!1&&(a="slideDown"),i[a]({duration:200,complete:o.proxy(function(){this.updateDimensions(),this._updateLoadingState(!0),n.resolve()},this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_render:function(){this.element().addClass(x),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=u.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,jQueryEvent:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(o(e.itemElement))},_attachSwipeEvent:function(e){var t=f.addNamespace(l.end,this.NAME);e.on(t,o.proxy(this._itemSwipeEndHandler,this))},_itemSwipeEndHandler:function(e){this._itemJQueryEventHandler(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=o("
").addClass(b).appendTo(this._itemContainer()),i=o("
").addClass(C).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,i),s={index:e,itemData:t,container:i};this._createItemByTemplate(r,s),this._renderingGroupIndex=e;var l=o("
").addClass(k).appendTo(n);o.each(B(t)||[],o.proxy(function(e,t){this._renderItem(e,t,l)},this)),this._groupRenderAction({groupElement:n,groupIndex:e,groupData:t})},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){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(I,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=o("
").addClass(D),t=o("
").appendTo(e);return this._createComponent(t,p,{text:this.option("nextButtonText"),onClick:o.proxy(this._nextButtonHandler,this),_templates:{}}),e},_moveFocus:function(e){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"showNextButton":this._toggleNextButton(e.value);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":case"autoPagingEnabled":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;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+b),n=t.find("."+w);return o.extend(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=o.Deferred(),n=this._itemContainer().find("."+b).eq(e);return this._collapseGroupHandler(n,!1).done(o.proxy(function(){t.resolveWith(this)},this)),t.promise()},collapseGroup:function(e){var t=o.Deferred(),n=this._itemContainer().find("."+b).eq(e);return this._collapseGroupHandler(n,!0).done(o.proxy(function(){t.resolveWith(this)},this)),t},updateDimensions:function(){var e=this,t=o.Deferred();return e._scrollView?e._scrollView.update().done(function(){t.resolveWith(e)}):t.resolveWith(e),t.promise()},reload:function(){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)}});i.exports=M}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(6),r=n(5),s=n(242),l="dxNativeScrollable",c="dx-scrollable-native",d="dx-scrollable-scrollbar-simulated",u="dx-scrollable-scrollbars-hidden",h="vertical",p="horizontal",f=500,_=r.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=o.proxy(e.option,e),this._createActionByOption=o.proxy(e._createActionByOption,e),this._isLocked=o.proxy(e._isLocked,e),this._isDirection=o.proxy(e._isDirection,e),this._allowedDirection=o.proxy(e._allowedDirection,e)},render:function(){var e=a.real(),t=e.platform;this._$element.addClass(c).addClass(c+"-"+t).toggleClass(u,!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(d),this._renderScrollbar(h),this._renderScrollbar(p)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new s(o("
").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:o.noop,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleStop:o.noop,_eachScrollbar:function(e){e=o.proxy(e,this),o.each(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location();return{jQueryEvent: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(),i=t+n-2*e;n?i||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(o.proxy(function(){this._eachScrollbar(function(e){e.option("visible",!1)})},this),f)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:o.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.content().height(),width:this._component.content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===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(){this._$element.removeClass(function(e,t){var n=new RegExp(c+"\\S*","g");return n.test(t)?t.match(n).join(" "):void 0}),this._$element.off("."+l),this._$container.off("."+l),this._removeScrollbars(),clearTimeout(this._gestureEndTimer),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()}});i.exports=_}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(307),r=n(223),s=n(100),l=n(305),c=a.inherit({createTemplate:function(e,t){return new r(e,t)},_templatesForWidget:function(e){var t=l[e]||{},n={};return o.each(t,function(e,t){n[e]=new s(function(){var n=t.apply(this,arguments);return"itemFrame"!==e&&(n=n.contents()),n},d)}),n}}),d=new c;i.exports=d}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(190).fileSaver,a=n(2).isFunction;t.export=function(e,t,n){if(e){var i=t.exportingAction,r=t.exportedAction,s=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};a(i)&&i(l),l.cancel||n(e,t,function(e){a(r)&&r(),a(s)&&(l.data=e,s(l)),l.cancel||o.saveAs(l.fileName,t.format,e,t.proxyUrl)})}},t.fileSaver=o,t.excel={creator:n(102).ExcelCreator,getBlob:n(102).getBlob,formatConverter:n(102).excelFormatConverter},t.image={creator:n(134).imageCreator,getBlob:n(134).getBlob},t.pdf={creator:n(191).pdfCreator,getBlob:n(191).getBlob},t.svg={creator:n(192).svgCreator,getBlob:n(192).getBlob}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(19),r=n(41),s=n(304),l=s.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){return o.inArray(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},updateSelectionAfterDelete:function(e){var t=this._collectionWidget._selectedItemIndices;o.each(t,function(n,i){i>e&&(t[n]-=1)})},fetchSelectedItems:function(e){e=e||this._collectionWidget._selectedItemIndices,e.sort(function(e,t){return e-t});var t=this._getPlainItems(),n=[];if(o.each(e,function(e,i){n.push(t[i])}),this._collectionWidget._dataSource&&"single"!==this._collectionWidget.option("selectionMode")){var i=this._collectionWidget.option("selectedItems"),a=o.grep(i,function(e){return-1===o.inArray(e,t)});n=n.concat(a)}return n},fetchSelectionDifference:function(e,t){var n=this.callBase(e,t);if(this._collectionWidget._dataSource){var i=n.addedItems,a=n.removedItems,s=r.intersection(i,a); o.each(s,function(e,t){var n=o.inArray(t,i),r=o.inArray(t,a);i.splice(n,1),a.splice(r,1)})}return n},selectedItemIndices:function(){var e=[],t=this._getPlainItems(),n=this._collectionWidget.option("selectedItems"),i=this._collectionWidget._dataSource;return o.each(n,function(n,r){var s=o.inArray(r,t);-1!==s?e.push(s):i||a.log("W1002",r)}),e},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});i.exports=l}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(6),r=n(3),s=n(25),l=n(48),c=n(4),d=n(11),u=n(13),h=n(23),p=n(64),f=n(73).default,_=n(28),g="dx-tabs",m="dx-tabs-wrapper",v="dx-tabs-expanded",x="dx-tabs-scrollable",w="dx-tabs-nav-buttons",y="dx-tab",b="dx-tab-selected",C="dx-tabs-nav-button",k="dx-tabs-nav-button-left",S="dx-tabs-nav-button-right",T="dxTabData",I=100,D=5,E=300,A=30,B=_.inherit({_activeStateUnit:"."+y,_getDefaultOptions:function(){return o.extend(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{showNavButtons:!0,scrollByContent:!1}},{device:function(e){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(h.current())},options:{useInkRipple:!0}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.element().addClass(g),this._renderMultiple(),this._feedbackHideTimeout=I},_itemClass:function(){return y},_selectedItemClass:function(){return b},_itemDataKey:function(){return T},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){d.triggerResizeEvent(e._$content)},0))},_render:function(){this.callBase(),this._renderWrapper(),this._renderScrolling(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple()},_renderScrolling:function(){this.element().removeClass(v),this._allowScrolling()&&!this._scrollable&&(this._renderScrollable(),this._renderNavButtons(),this._scrollToItem(this.option("selectedItem"))),this._allowScrolling()||(this._cleanScrolling(),this.element().removeClass(w).addClass(v))},_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._scrollable.content().children("."+m).appendTo(this._itemContainer()),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,jQueryEvent:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this.element().wrapInner(o("
").addClass(m))},_renderScrollable:function(){var e=this.element().wrapInner(o("
").addClass(x)).children();this._scrollable=this._createComponent(e,f,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:o.proxy(this._updateNavButtonsVisibility,this)}),this.element().append(this._scrollable.element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_allowScrolling:function(){if(!this.option("scrollingEnabled"))return!1;var e=0;return this.itemElements().each(function(t,n){e+=o(n).outerWidth(!0)}),e-1>this.element().width()},_renderNavButtons:function(){if(this.element().toggleClass(w,this.option("showNavButtons")),this.option("showNavButtons")){this._leftButton=this._createNavButton(-A,"chevronprev");var e=this._leftButton.element();e.addClass(k),this.element().prepend(e),this._rightButton=this._createNavButton(A,"chevronnext");var t=this._rightButton.element();t.addClass(S),this.element().append(t),this._updateNavButtonsVisibility(),this._scrollable.update(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()})}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=this._scrollable.scrollWidth()-this._scrollable.clientWidth())},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,i=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,D)},D)}),a=c.addNamespace(p.name,"dxNavButton"),r=c.addNamespace(u.up,"dxNavButton"),l=c.addNamespace(u.out,"dxNavButton"),d=this._createComponent(o("
").addClass(C),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},_templates:{}});return d.element().on(a,{timeout:E},o.proxy(function(e){i({jQueryEvent:e})},this)).on(r,function(){n._clearInterval()}).on(l,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.option("scrollingEnabled")&&this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._scrollable=null,clearTimeout(this._resizeEventTimer),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"selectionMode":this._renderMultiple(),this.callBase(e);break;default:this.callBase(e)}}});r("dxTabs",B),i.exports=B}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(19),r=n(40),s=n(124),l=n(65),c=n(418),d=n(3),u="dx-validator",h=r.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=o.Callbacks(),this._initAdapter()},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){l.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(l.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,l.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),o.extend(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.element()[0],n=o.data(t,"dx-validation-target"),i=e.option("adapter");if(!i){if(n)return i=new c(n,this),i.validationRequestsCallbacks.add(function(){e.validate()}),void this.option("adapter",i);throw a.Error("E0120")}i.validationRequestsCallbacks&&i.validationRequestsCallbacks.add(function(){e.validate()})},_render:function(){this.element().addClass(u),this.callBase()},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;default:this.callBase(e)}},validate:function(){var e,t=this,n=t.option("adapter"),i=t.option("name"),a=n.bypass&&n.bypass(),r=n.getValue(),s=n.getCurrentValidationError&&n.getCurrentValidationError(),c=o.map(t.option("validationRules"),function(e){return e.validator=t,e});return a?e={isValid:!0}:s&&s.editorSpecific?(s.validator=this,e={isValid:!1,brokenRule:s}):e=l.validate(r,c,i),this._applyValidationResult(e,n),e},reset:function(){var e=this,t=e.option("adapter"),n={isValid:!0,brokenRule:null};t.reset(),this._applyValidationResult(n,t)},_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.focus()}}).include(s);d("dxValidator",h),i.exports=h}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(17),r=n(6),s=n(5),l=n(42),c=n(4),d=n(64),u="dxContexMenu",h=c.addNamespace("contextmenu",u),p=c.addNamespace(d.name,u),f="dxcontextmenu",_=s.inherit({setup:function(e,t){var n=o(e);n.on(h,o.proxy(this._contextMenuHandler,this)),(a.touch||r.isSimulator())&&n.on(p,o.proxy(this._holdHandler,this))},_holdHandler:function(e){c.isMouseEvent(e)&&!r.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return c.fireEvent({type:f,originalEvent:e})},teardown:function(e){o(e).off("."+u)}});l(f,new _),t.name=f}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(9),r=n(21),s=n(2),l=n(6),c=n(20),d=n(47),u="dx-datagrid-scroll-container",h="dx-row",p="dx-datagrid-group-space",f="dx-group-row",_="dx-master-detail-row",g="dx-datagrid-content",m="dx-datagrid-table",v="dx-datagrid-table-fixed",x="dx-datagrid-content-fixed",w="0.0001px",y="dxCellHintVisible",b={render:function(e,t){t.append(e)}};t.ColumnsView=c.View.inherit(d.columnStateMixin).inherit({_createScrollableOptions:function(){var e=this,t=e.option("scrolling"),n=e.option("scrolling.useNative"),i=o.extend({},t,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===n&&(n=!0),"auto"===n?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!n,i.useSimulatedScrollbar=!n),i},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||s.getDefaultAlignment(this.option("rtlEnabled")),i=window.document.createElement("td");i.style.textAlign=n;var a=o(i);return this.setAria("role","gridcell",a),!s.isDefined(t.groupIndex)&&t.cssClass&&a.addClass(t.cssClass),"expand"===t.command&&a.addClass(p),t.colspan>1&&a.attr("colspan",t.colspan),a},_createRow:function(e){return o("").addClass(h).attr("role","row")},_createTable:function(e){var t=this,n=o("").addClass(m).addClass(v).attr("role","grid");e&&(n.append(t._createColGroup(e)),l.real().ios&&n.append("")),r.mozilla&&n.on("mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),t.option("cellHintEnabled")&&n.on("mousemove",".dx-row > td",this.createAction(function(e){var n=e.jQueryEvent,i=o(n.target),a=o(n.currentTarget),r=a.parent(),l=r.hasClass("dx-data-row"),c=r.hasClass("dx-header-row"),d=r.hasClass("dx-group-row"),u=t._columnsController.getVisibleColumns(),h=r.data("options"),p=a.index(),f=h&&h.cells&&h.cells[p],_=f?f.column:u[p];l&&(!l||!_||_.cellTemplate)||c&&(!c||!_||_.headerCellTemplate)||d&&(!d||!_||void 0!==_.groupIndex&&_.groupCellTemplate)||(i.data(y)&&(i.removeAttr("title"),i.data(y,!1)),i[0].scrollWidth>i[0].clientWidth&&!s.isDefined(i.attr("title"))&&(i.attr("title",i.text()),i.data(y,!0)))}));var i=function(e){var t=o(e.currentTarget),n=t.parent().data("options"),i=n&&n.cells&&n.cells[t.index()];return o.extend({},i,{cellElement:t,jQueryEvent:e,eventType:e.type})};return t.option("onCellHoverChanged")&&(n.on("mouseover",".dx-row > td",function(e){t.executeAction("onCellHoverChanged",i(e))}),n.on("mouseout",".dx-row > td",function(e){t.executeAction("onCellHoverChanged",i(e))})),t.option("onCellClick")&&n.on(a.name,".dx-row > td",function(e){t.executeAction("onCellClick",i(e))}),n.on(a.name,".dx-row",{useNative:t._isNativeClick()},t.createAction(function(e){var n=e.jQueryEvent;o(n.target).closest("a").length||(e.rowIndex=t.getRowIndex(n.currentTarget),e.rowIndex>=0&&(e.rowElement=o(n.currentTarget),e.columns=t.getColumns(),t._rowClick(e)))})),n},_isNativeClick:o.noop,_rowClick:o.noop,_createColGroup:function(e){var t,n,i,a=o("");for(t=0;tn;n++)a.append(this._createCol(e[t]));return a},_createCol:function(e){var t=e.visibleWidth||e.width;return"adaptiveHidden"===t&&(t=w),o("").width(t)},renderDelayedTemplates:function(){for(var e,t=this._delayedTemplates;t.length;)e=t.shift(),e.template.render(e.options,e.container),e.options.column&&this._updateCell(e.container,e.options)},_processTemplate:function(e){var t,n,i=this;return e&&e.render?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t,n){e.render(n,t)}}:o.isFunction(e)?n={render:function(t,n){e(n,t)}}:(t=s.isString(e)?e:o(e).attr("id"),t?(i._templatesCache[t]||(i._templatesCache[t]=i.getTemplate(e)),n=i._templatesCache[t]):n=i.getTemplate(e)),n},renderTemplate:function(e,t,n){var i=this,o=i._processTemplate(t,n);if(o){if(o.allowRenderToDetachedContainer)return o.render(n,e),!0;i._delayedTemplates.push({template:o,container:e,options:n})}return!1},_appendRow:function(e,t,n){var i=this;i.option("rowTemplate")&&i._delayedTemplates.length&&t?i._delayedTemplates.push({container:e,template:n||b,options:t}):e.append(t)},_resizeCore:function(){var e=this,t=e._scrollLeft;e._scrollLeft=0,e.scrollTo({left:t})},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates()},_renderTable:function(e){e=e||{};var t,n=this;return e.columns=n._columnsController.getVisibleColumns(),t=n._createTable(e.columns),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this,a=i._getRows(t.change);for(n=0;n").on("scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}).addClass(g).addClass(u).append(e).appendTo(n.element())},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:o.noop,_getWidths:function(e){var t,n,i=[];return e&&o.each(e,function(e,o){t=o.offsetWidth,o.getBoundingClientRect&&(n=o.getBoundingClientRect(),n.width>t&&(t=Math.ceil(n.width))),i.push(t)}),i},getColumnWidths:function(e){var t,n=this,i=[];return e=e||n._getTableElement(),e&&(t=e.children("tbody").children(":not(."+f+", ."+_+")").first().children("td"),i=n._getWidths(t)),i},setColumnWidths:function(e){var t,n,i,a,r,s,l=this.getTableElements(!0);if(l.length&&e)for(n=0;n=0&&(n=a.eq(l)),n&&n.length?n:void 0},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();return i.length>0&&e.rowIndex>=0&&(e.rowIndex=e.rowIndex0)?n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1):void 0},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElements:function(e){return e=e||this._getTableElement(),e&&e.children("tbody").children("."+h)||o()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this,n=t.element(),i=t.option("rtlEnabled");n&&n.css(i?{paddingLeft:e}:{paddingRight:e})}})}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){i.exports=n(362)}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(8),r=n(3),s=n(61),l=n(50),c="dx-loadpanel",d="dx-loadpanel-wrapper",u="dx-loadpanel-indicator",h="dx-loadpanel-message",p="dx-loadpanel-content",f="dx-loadpanel-content-wrapper",_="dx-loadpanel-pane-hidden",g=l.inherit({_getDefaultOptions:function(){return o.extend(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}}])},_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(c),this._wrapper().addClass(d)},_renderContentImpl:function(){this.callBase(),this.content().addClass(p),this._$contentWrapper=o("
").addClass(f),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=o.Deferred(),n=o.proxy(this.callBase,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=o("
").addClass(h).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=o("
").addClass(u).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,s,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.content().find("."+h).remove(),this.content().find("."+u).remove()},_togglePaneVisible:function(){this.content().toggleClass(_,!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,s,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",g),i.exports=g}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(12),r=n(8),s=n(14),l=a.dateToMilliseconds,c=n(18),d=c.abstract,u=n(2),h=n(3),p=n(113),f=n(4),_=n(13),g=n(19),m=n(9),v=n(63),x=n(73).default,w=n(238),y="dx-scheduler-work-space",b="dx-scheduler-work-space-grouped",C="dx-scheduler-work-space-both-scrollbar",k="dx-scheduler-time-panel",S="dx-scheduler-time-panel-cell",T="dx-scheduler-time-panel-row",I="dx-scheduler-all-day-panel",D="dx-scheduler-all-day-table",E="dx-scheduler-fixed-appointments",A="dx-scheduler-all-day-appointments",B="dx-scheduler-all-day-title",M="dx-scheduler-all-day-title-hidden",O="dx-scheduler-all-day-table-cell",P="dx-scheduler-all-day-table-row",R="dx-scheduler-work-space-all-day",V="dx-scheduler-work-space-all-day-collapsed",F="dx-scheduler-work-space-mouse-selection",L="dx-scheduler-header-panel",H="dx-scheduler-header-panel-cell",z="dx-scheduler-header-row",N="dx-scheduler-group-row",W="dx-scheduler-group-header",G="dx-scheduler-group-header-content",$="dx-scheduler-date-table",q="dx-scheduler-date-table-cell",j="dx-scheduler-date-table-row",U="dx-scheduler-focused-cell",K="dx-scheduler-date-table-droppable-cell",Y="dx-scheduler-header-scrollable",X="dx-scheduler-sidebar-scrollable",Q="dx-scheduler-date-table-scrollable",Z=f.addNamespace(_.down,"dxSchedulerWorkSpace"),J=f.addNamespace(v.enter,"dxSchedulerDateTable"),ee=f.addNamespace(v.drop,"dxSchedulerDateTable"),te=f.addNamespace(m.name,"dxSchedulerDateTable"),ne=f.addNamespace(_.down,"dxSchedulerDateTable"),ie=f.addNamespace(_.up,"dxSchedulerDateTable"),oe=f.addNamespace(_.move,"dxSchedulerDateTable"),ae="dxCellData",re=75,se=l("day"),le=l("hour"),ce=c.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),e.stopPropagation(),this._focusedCells&&this._focusedCells.length&&this._showAddAppointmentPopup(o(this._focusedCells))},t=function(e,t){e.preventDefault(),e.stopPropagation(),this._moveToCell(t,e.shiftKey)};return o.extend(this.callBase(),{enter:e,space:e,downArrow:function(e){var n=this._getCellFromNextRow("next",e.shiftKey);t.call(this,e,n)},upArrow:function(e){var n=this._getCellFromNextRow("prev",e.shiftKey);t.call(this,e,n)},rightArrow:function(e){var n=this._getRightCell(e.shiftKey);t.call(this,e,n)},leftArrow:function(e){var n=this._getLeftCell(e.shiftKey);t.call(this,e,n)}})},_isRTL:function(){return this.option("rtlEnabled")},_getFocusedCell:function(){return this._$focusedCell||this._$dateTable.find("."+this._getDateTableCellClass()).eq(0)},_getCellFromNextRow:function(e,t){var n=this._$focusedCell,i=n.index(),o=n.parent(),a=o[e]().children().eq(i);return a=this._checkForViewBounds(a)},_checkForViewBounds:function(e){return e.length||(e=this._$focusedCell),e},_getRightCell:function(e){var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=o-1,r=this._isRTL()?0:a,s=n.index(),l=this._isRTL()?"prev":"next";if(s===r||e&&this._isGroupEndCell(n)){var c=n.parent(),d=this._isRTL()?1:-1;t=c[l]().children().eq(s+d*a),t=this._checkForViewBounds(t)}else t=n[l]();return t},_isGroupEndCell:function(e){var t=this._getCellCount(),n=e.index(),i=n%t;return this._isRTL()?0===i:i===t-1},_getLeftCell:function(e){var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=o-1,r=this._isRTL()?a:0,s=n.index(),l=this._isRTL()?"next":"prev";if(s===r||e&&this._isGroupStartCell(n)){var c=n.parent(),d=this._isRTL()?-1:1;t=c[l]().children().eq(s+d*a),t=this._checkForViewBounds(t)}else t=n[l]();return t},_isGroupStartCell:function(e){var t=this._getCellCount(),n=e.index(),i=n%t;return this._isRTL()?i===t-1:0===i},_moveToCell:function(e,t){t=t&&this.option("allowMultipleCellSelection"),this._setFocusedCell(e,t),this._dateTableScrollable.scrollToElement(e)},_setFocusedCell:function(e,t){if(e.length){if(this._releaseFocusedCell(),this._focusedCells=[],t){e=this._correctCellForGroup(e);var n=this._getCellsBetween(e,this._$prevCell);this._focusedCells=n.toArray()}else this._focusedCells=[e.get(0)],this._$prevCell=e;var i=o(this._focusedCells);this._toggleFocusClass(!0,i),this.setAria("label","Add appointment",i),this._toggleFocusedCellClass(!0,e),this._$focusedCell=e}},_correctCellForGroup:function(e){var t=this._$focusedCell,n=this._getGroupIndexByCell(e),i=this._getGroupIndexByCell(t),o=this._hasAllDayClass(e)!==this._hasAllDayClass(t);return i!==n||o?t:e},_getCellsBetween:function(e,t){var n=this._hasAllDayClass(t),i=this._getCells(n),a=i.index(e),r=i.index(t);if(a>r){var s=a;a=r,r=s}if(i=i.slice(a,r+1),this._getGroupCount()>1){var l=[],c=this._getGroupIndexByCell(e);o.each(i,o.proxy(function(e,t){var n=this._getGroupIndexByCell(o(t));c===n&&l.push(t)},this)),i=o(l)}return i},_hasAllDayClass:function(e){return e.hasClass(O)},_getGroupIndexByCell:function(e){var t=this._getCellCount(),n=e.index()+1,i=Math.ceil(n/t);return i},_toggleFocusedCellClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(U,e)},_releaseFocusedCell:function(e){e=e||o(this._focusedCells),u.isDefined(e)&&(this._toggleFocusClass(!1,e),this._toggleFocusedCellClass(!1,e),this.setAria("label",void 0,e))},_focusInHandler:function(e){if(o(e.target).is(this._focusTarget())&&this._isCellClick!==!1){delete this._isCellClick,this.callBase.apply(this,arguments);var t=this._getFocusedCell();this._setFocusedCell(t)}},_focusOutHandler:function(e){this.callBase.apply(this,arguments),this._releaseFocusedCell()},_focusTarget:function(){return this.element()},_activeStateUnit:"."+q+", ."+O,_getDefaultOptions:function(){return o.extend(this.callBase(),{currentDate:new Date,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,allowMultipleCellSelection:!0})},_optionChanged:function(e){switch(e.name){case"startDayHour":case"endDayHour":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"groups":this._cleanView(),this._toggleGroupedClass(),this._renderView();break;case"showAllDayPanel":this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this.notifyObserver("allDayPanelToggled"),this._attachTablesEvents();break;case"onCellClick":this._createCellClickAction();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":this.callBase(e),this._dimensionChanged();break;case"allowMultipleCellSelection":break;default:this.callBase(e)}},_init:function(){this.callBase(),this._toggleHorizontalScrollClass(),this.element().addClass(y).addClass(this._getElementClass()),this._initWorkSpaceUnits(),this._initDateTableScrollable(),this._createWorkSpaceElements()},_toggleHorizontalScrollClass:function(){this.element().toggleClass(C,this.option("crossScrollingEnabled"))},_getTimePanelClass:function(){return k},_getDateTableClass:function(){return $},_getDateTableRowClass:function(){return j},_getDateTableCellClass:function(){return q},_getGroupRowClass:function(){return N},_getGroupHeaderClass:function(){return W},_getGroupHeaderContentClass:function(){return G},_initWorkSpaceUnits:function(){this._$headerPanel=o("
").addClass(L),this._$thead=o("").appendTo(this._$headerPanel),this._$fixedContainer=o("
").addClass(E),this._$allDayContainer=o("
").addClass(A),this._$allDayTitle=o("
").addClass(B).text(r.format("dxScheduler-allDay")).appendTo(this.element()),this._$allDayTable=o("
").addClass(D),this._$allDayPanel=o("
").addClass(I).append(this._$allDayTable),this._$timePanel=o("
").addClass(this._getTimePanelClass()),this._$dateTable=o("
").addClass(this._getDateTableClass())},_initDateTableScrollable:function(){var e=o("
").addClass(Q);this._dateTableScrollable=this._createComponent(e,x,this._dateTableScrollableConfig())},_dateTableScrollableConfig:function(){var e={useKeyboard:!1,useNative:!1,bounceEnabled:!1};return this.option("crossScrollingEnabled")&&(e=o.extend(e,this._createCrossScrollingConfig())),e},_createCrossScrollingConfig:function(){var e={};return e.direction="both",e.onScroll=o.proxy(function(e){this._sidebarScrollable.scrollTo({top:e.scrollOffset.top}),this._headerScrollable.scrollTo({left:e.scrollOffset.left})},this),e.onEnd=o.proxy(function(e){this.notifyObserver("updateResizableArea",{})},this),e},_createWorkSpaceElements:function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._dateTableScrollable.content().append(this._$timePanel,this._$dateTable),this.element().append(this._$fixedContainer,this._$headerPanel,this._$allDayContainer,this._$allDayPanel,this._dateTableScrollable.element())},_createWorkSpaceScrollableElements:function(){this.element().append(this._$fixedContainer),this._createHeaderScrollable(),this._createSidebarScrollable(),this.element().append(this._dateTableScrollable.element()),this._headerScrollable.content().append(this._$headerPanel,this._$allDayContainer,this._$allDayPanel),this._dateTableScrollable.content().append(this._$dateTable),this._sidebarScrollable.content().append(this._$timePanel)},_createHeaderScrollable:function(){var e=o("
").addClass(Y).appendTo(this.element());this._headerScrollable=this._createComponent(e,x,{useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,bounceEnabled:!1,onScroll:o.proxy(function(e){this._dateTableScrollable.scrollTo({left:e.scrollOffset.left})},this)})},_createSidebarScrollable:function(){var e=o("
").addClass(X).appendTo(this.element()); this._sidebarScrollable=this._createComponent(e,x,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,bounceEnabled:!1,onScroll:o.proxy(function(e){this._dateTableScrollable.scrollTo({top:e.scrollOffset.top})},this)})},_visibilityChanged:function(e){e&&this.option("crossScrollingEnabled")&&this._setTableSizes()},_setTableSizes:function(){var e=re,t=this._getWorkSpaceMinWidth(),n=this._$headerPanel.find("tr").last().find("th"),i=e*n.length;t>i&&(i=t),this._$headerPanel.width(i),this._$dateTable.width(i),this._$allDayTable.width(i)},_getWorkSpaceMinWidth:function(){var e=this._getWorkSpaceWidth(),t=this.element().outerWidth()-this.getTimePanelWidth();return t>e&&(e=t),e},_dimensionChanged:function(e){this.option("crossScrollingEnabled")&&this._setTableSizes()},_getElementClass:o.noop,_getRowCount:o.noop,_getCellCount:o.noop,_render:function(){this.callBase(),this._toggleGroupedClass(),this._renderView(),this._attachEvents()},_toggleGroupedClass:function(){this.element().toggleClass(b,this._getGroupCount()>0)},_renderView:function(){this._setFirstViewDate(),this._renderGroupHeader(),this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable()},_setFirstViewDate:function(){this._firstViewDate=a.getFirstWeekDate(this.option("currentDate"),this._firstDayOfWeek()||s.firstDayOfWeekIndex()),this._setStartDayHour(this._firstViewDate)},_setStartDayHour:function(e){u.isDefined(this.option("startDayHour"))&&e.setHours(this.option("startDayHour"))},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")},_attachEvents:function(){var e=this,t=this._createAction(function(t){e._pointerDownHandler(t.jQueryEvent)});this._createCellClickAction();var n="."+this._getDateTableCellClass()+",."+O;this.element().off(Z).off(te).on(Z,function(e){return f.isMouseEvent(e)&&e.which>1?void e.preventDefault():void t({jQueryEvent:e})}).on(te,n,function(t){var n=o(t.target);e._cellClickAction({jQueryEvent:t,cellElement:n,cellData:e.getCellData(n)})})},_createCellClickAction:function(){var e=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(t){e._clickHandler(t.args[0].jQueryEvent)}})},_clickHandler:function(e){var t=o(e.target);this._showPopup&&this._hasFocusClass(t)&&(delete this._showPopup,this._showAddAppointmentPopup(t))},_pointerDownHandler:function(e){var t=o(e.target);return t.hasClass(this._getDateTableCellClass())||t.hasClass(O)?(this._isCellClick=!0,void(t.hasClass(U)?this._showPopup=!0:this._setFocusedCell(t))):void(this._isCellClick=!1)},_showAddAppointmentPopup:function(e){var t=this.getCellData(e.first()),n=this.getCellData(e.last()),i={startDate:t.startDate,endDate:n.endDate};u.isDefined(n.allDay)&&(i.allDay=n.allDay),o.extend(i,n.groups),this.notifyObserver("showAddAppointmentPopup",i)},_getGroupHeaderContainer:function(){return this._$thead},_getDateHeaderContainer:function(){return this._$thead},_renderGroupHeader:function(){var e=this._getGroupHeaderContainer(),t=this._getGroupCount();if(t){var n=this._makeGroupRows(this.option("groups"));this._attachGroupCountAttr(n.length),e.append(n)}},_attachGroupCountAttr:function(e){this.element().attr("dx-group-row-count",e)},_makeGroupRows:function(e){return w.makeGroupedTable(w.HORIZONTAL,e,{groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass(),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1)},_renderDateHeader:function(){for(var e=this._getDateHeaderContainer(),t=o("
").addClass(z),n=this._getCellCount(),i=this._calculateHeaderCellRepeatCount(),a=0;i>a;a++)for(var r=0;n>r;r++){var s=this._getHeaderText(r),l=o("
").text(s).addClass(H).attr("title",s);t.append(l)}return e.append(t),t},_calculateHeaderCellRepeatCount:function(){return this._getGroupCount()||1},_renderAllDayPanel:function(){var e=this._getCellCount()*(this._getGroupCount()||1);this._renderTableBody({container:this._$allDayTable,rowCount:1,cellCount:e,cellClass:O,rowClass:P,dataGenerator:o.proxy(this._setAllDayCellData,this)}),this._toggleAllDayVisibility()},_setAllDayCellData:function(e,t,n){var i=this._getDateByCellIndexes(t,n);i=a.trimTime(i);var r={startDate:i,endDate:new Date(i.getTime()+se),allDay:!0},s=this._getCellGroups(this._getGroupIndex(t,n));s.length&&(r.groups={});for(var l=0;ln;n++)n?t*=e[n].items.length:t=e[n].items.length;return t},_getPathToLeaf:function(e){function t(e,n){for(var i=0;ie)return;for(var i=this._getPathToLeaf(e),o=0;oe&&(e=o),e>=a&&(e=a-1),i.setHours(e),i.setMinutes(t),this.getCoordinatesByDate(i)},supportAllDayRow:function(){return!0},getCellData:function(e){var t=e[0]?o.data(e[0],ae):void 0;return o.extend(!0,{},t)},getCoordinatesByDate:function(e,t,n){t=t||0;var i=this.getCellIndexByDate(e,n),o=this._getCellPositionByIndex(i,t),a=this.getPositionShift(n?0:this.getTimeShift(e));if(!o)throw g.Error("E0139");return{top:o.top+a.top,left:o.left+a.left,max:this.getMaxAllowedPosition()[t],groupIndex:t}},getCellIndexByDate:function(e,t){var n=t?864e5:this._getInterval(),i=this._getIntervalBetween(e,t),o=Math.floor(i/n);return t&&(o=this._updateIndex(o)),0>o&&(o=0),o},getPositionShift:function(e){return{top:e*this.getCellHeight(),left:0}},getTimeShift:function(e){var t=this.getCellDuration(),n=new Date(e);return n.setMinutes(0),n.setHours(this.option("startDayHour")),(e.getTime()-n.getTime())%t/t},getCoordinatesByDateInGroup:function(e,t,n){var i=this._getGroupIndexes(t),o=[];if(i.length)for(var a=0;an.bottom.hours)&&(i=!0),e===n.top.hours&&tn.top.minutes&&(i=!0),i},getGroupWidth:function(e){var t=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[e];return n.length&&i&&(t=this._isRTL()?i-n[e+1]:0===e?i:i-n[e-1]),t},restoreScrollTop:function(){this.element().scrollTop(0)},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable();o.scrollBy(i.top-o.scrollTop())},getDistanceBetweenCells:function(e,t){var n=0;return this.element().find("."+this._getDateTableRowClass()).first().find("."+this._getDateTableCellClass()).each(function(i){return e>i||i>t?!0:void(n+=o(this).outerWidth())}),n}}).include(p);h("dxSchedulerWorkSpace",ce),i.exports=ce}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){i.exports=n(251),i.exports.show=n(164).show,i.exports.hide=n(164).hide}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(251),r=n(51),s=null,l=null,c=function(e){e=o.extend({position:"top"},e);var t=e.content;delete e.content;var n=o("
").html(t).appendTo(r.value());l=function(){n.remove()},s=new a(n,e)},d=function(){s&&(l(),s=null)};t.show=function(e){return d(),c(e),s.show()},t.hide=function(){return s?s.hide().done(d).promise():o.when()}}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))},function(e,t,n){var i;i=function(e,t,i){var o=n(1),a=n(8),r=n(9),s=n(2),l=n(3),c=n(109),d=n(318),u=n(4),h=n(13),p=n(179),f=n(22),_=n(73).default,g=n(61),m="dx-treeview",v="dx-treeview-node-container",x="dx-treeview-node-container-opened",w="dx-treeview-node",y="dx-treeview-item",b="dx-treeview-item-with-checkbox",C="dx-treeview-item-data",k="dx-treeview-node-is-leaf",S="dx-treeview-toggle-item-visibility",T="dx-treeview-toggle-item-visibility-opened",I="dx-treeview-select-all-item",D="dx-state-disabled",E="dx-state-selected",A="data-item-id",B=d.inherit({_supportedKeys:function(e){var t=function(e){var t=this.option("focusedElement");t&&(e.target=t,e.currentTarget=t,this._itemClickHandler(e,t.find(">."+y)))},n=function(e){e.preventDefault(),this._changeCheckBoxState(this.option("focusedElement"))},i=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var n=this.option("focusedElement");if(n){var i=this._getItemData(n.find("."+y));this._toggleExpandedNestedItems([i],e)}}};return o.extend(this.callBase(),{enter:this._showCheckboxes()?n:t,space:this._showCheckboxes()?n:t,asterisk:o.proxy(i,this,!0),minus:o.proxy(i,this,!1)})},_changeCheckBoxState:function(e){var t=this._getCheckBoxInstance(e),n=t.option("value");t.option("disabled")||this._updateItemSelection(!n,e.find("."+y).get(0),!0,e)},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;i>n;n++){var o=e[n],a=this._dataAdapter.getNodeByItem(o);this._toggleExpandedState(a,t),this._toggleExpandedNestedItems(o.items,t)}},_getNodeElement:function(e){return this.element().find("["+A+"='"+s.normalizeKey(e.internalFields.key)+"']")},_activeStateUnit:"."+y,_widgetClass:function(){return m},_getDefaultOptions:function(){return o.extend(this.callBase(),{animationEnabled:!0,dataStructure:"tree",expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:a.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",virtualModeEnabled:!1,rootValue:0,searchValue:"",focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1})},_setDeprecatedOptions:function(){this.callBase(),o.extend(this._deprecatedOptions,{showCheckBoxes:{since:"15.2",message:"use 'showCheckBoxesMode' option instead"},selectAllEnabled:{since:"15.2",message:"use 'showCheckBoxesMode' option instead"},onItemSelected:{since:"16.1",alias:"onItemSelectionChanged"}})},_initSelectedItems:o.noop,_syncSelectionOptions:o.noop,_fireSelectionChanged:function(){var e=this._selectionChangePromise;o.when(e).done(o.proxy(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()},this))},_checkBoxModeChange:function(e,t){if("none"===t||"none"===e)return void this.repaint();var n=this._$selectAllItem&&this._$selectAllItem.length;switch(e){case"selectAll":!n&&this._renderSelectAllItem();break;case"normal":n&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}},_removeSelection:function(){var e=this;o.each(this._dataAdapter.getFullData(),function(t,n){e._hasChildren(n)&&e._dataAdapter.toggleSelection(n.internalFields.key,!1,!0)})},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"showCheckBoxes":this.option("showCheckBoxesMode",n?"normal":"none");break;case"selectAllEnabled":this.option("showCheckBoxesMode",n?"selectAll":"normal");break;case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",n);break;case"showCheckBoxesMode":this._checkBoxModeChange(n,i);break;case"scrollDirection":this._scrollableContainer.option("direction",n);break;case"items":delete this._$selectAllItem,this.callBase(e);break;case"dataSource":this.callBase(e),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._toggleExpandEvent(e.previousValue,e.value);break;case"dataStructure":case"rootValue":case"searchValue":(!n.length||i>n)&&"none"!==this.option("showCheckBoxesMode")&&this._removeSelection(),this._initDataAdapter(),this.repaint();break;case"selectNodesRecursive":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;default:this.callBase(e)}},_initDataSource:function(){var e=this,t=this._filter;if(this.callBase(),this._isVirtualMode()){t.custom||(t.custom=this._dataSource.filter()),t.internal||(t.internal=[this.option("parentIdExpr"),this.option("rootValue")]);var n=this._combineFilter();this._dataSource.filter(n),this._dataSource.on("loadingChanged",function(t){t&&!this.isLoaded()&&(e.option("items",[]),e._dataSource.filter()!==n&&e._dataSource.filter([]))})}},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers(),this._initCheckBoxesMode()},_dataSourceChangedHandler:function(e){var t=o.inArray(e[0],this.option("items"))+1;return this._initialized&&this._isVirtualMode()&&this.option("items").length?(t||(this.option().items=this.option("items").concat(e),this._initDataAdapter()),void(!this._contentAlreadyRendered&&this._renderContent())):void this.option("items",e)},_initStoreChangeHandlers:function(){if("plain"===this.option("dataStructure")){var e=this;this._dataSource&&this._dataSource.store().on("inserted",function(t){e.option().items=e.option("items").concat(t),e._dataAdapter.addItem(t),e._isFiltered(t)&&e._updateLevel(e._parentIdGetter(t))}).on("removed",function(t){var n=e._dataAdapter.getNodeByKey(t);e.option("items")[e._dataAdapter.getIndexByKey(n.internalFields.key)]=0,e._markChildrenItemsToRemove(n),e._removeItems(),e._dataAdapter.removeItem(t),e._updateLevel(e._parentIdGetter(n))})}},_markChildrenItemsToRemove:function(e){var t=this,n=e.internalFields.childrenKeys;o.each(n,function(e,n){t.option("items")[t._dataAdapter.getIndexByKey(n)]=0,t._markChildrenItemsToRemove(t._dataAdapter.getNodeByKey(n))})},_removeItems:function(){var e=this,t=0,n=o.extend(!0,[],this.option("items"));o.each(n,function(n,i){i||(e.option("items").splice(n-t,1),t++)})},_isFiltered:function(e){var t=this.option("searchValue"),n=new RegExp(t,"i");return n.test(this._displayGetter(e))},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){return e.length?e.find(" > ."+v):this._scrollableContainer?this._scrollableContainer.content().children():o()},_getContainerByParentKey:function(e){var t,n=this._dataAdapter.getNodeByKey(e),i=n?this._getNodeElement(n):[];return this._getOldContainer(i).remove(),t=this._renderNodeContainer(i),this._isRootLevel(e)&&(this._scrollableContainer||this._renderScrollableContainer(),this._scrollableContainer.content().append(t)),t},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){return["key","display","selected","expanded","items","parentId","disabled","hasItems"]},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this.option("selectNodesRecursive"),recursiveExpansion:this.option("expandNodesRecursive"),searchValue:this.option("searchValue"),dataType:this.option("dataStructure")}},_render:function(){this._attachPointerEventHandler(),this.callBase(),this.setAria("role","tree")},_attachPointerEventHandler:function(){var e=this,t=h.down;this.element().off(t).on(t,function(t){var n=o(t.target).closest(e._activeStateUnit);n.length||t.preventDefault()})},_renderContentImpl:function(){if(this.option("items").length){var e=this._renderNodeContainer();this._renderScrollableContainer(),this._scrollableContainer.content().append(e),this._renderItems(e,this._dataAdapter.getRootNodes()),this._toggleExpandEvent(null,this.option("expandEvent")),this._selectAllEnabled()&&this._renderSelectAllItem(e)}},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){this.callBase(),this._scrollableContainer&&this._scrollableContainer.content().height()>this.element().height()&&this._scrollableContainer.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent(o("
").appendTo(this.element()),_,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=o("