Difference between revisions of "Team:Utrecht/Template:Dxweb/Javascript"

(Created page with "/*! * DevExtreme (dx.web.js) * Version: 17.1.7 * Build date: Fri Sep 29 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme l...")
 
Line 8: Line 8:
 
*/
 
*/
 
"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(660)},,,,function(e,t,n){var i=n(5);n(186);var o=i.ui=n(198);o.themes=n(144),o.setTemplateEngine=n(199),o.dialog=n(200),o.notify=n(205),o.dxActionSheet=n(207),o.dxAutocomplete=n(209),o.dxBox=n(253),o.dxButton=n(202),o.dxCalendar=n(254),o.dxCheckBox=n(249),o.dxColorBox=n(261),o.dxDateBox=n(268),o.dxDeferRendering=n(280),o.dxDropDownBox=n(281),o.dxDropDownMenu=n(282),o.dxFileUploader=n(283),o.dxForm=n(286),o.dxGallery=n(298),o.dxList=n(219),o.dxLoadIndicator=n(239),o.dxLoadPanel=n(247),o.dxLookup=n(299),o.dxMap=n(300),o.dxMultiView=n(293),o.dxNavBar=n(307),o.dxNumberBox=n(264),o.dxOverlay=n(110),o.dxPopover=n(208),o.dxPopup=n(201),o.dxProgressBar=n(284),o.dxRadioGroup=n(309),o.dxRangeSlider=n(311),o.dxResizable=n(112),o.dxResponsiveBox=n(291),o.dxScrollView=n(234),o.dxSelectBox=n(318),o.dxSlider=n(312),o.dxSwitch=n(319),o.dxTabPanel=n(292),o.dxTabs=n(294),o.dxTagBox=n(320),o.dxTextArea=n(321),o.dxTextBox=n(212),o.dxTileView=n(322),o.dxToast=n(206),o.dxToolbar=n(323),o.dxTooltip=n(315),o.dxTrackBar=n(285),i.validationEngine=n(118),o.dxValidationSummary=n(296),o.dxValidationGroup=n(297),o.dxValidator=n(289),o.CollectionWidget=n(150),o.dxDropDownEditor=n(211),e.exports=o},function(e,t,n){var i=n(6);i.framework=n(92),n(145),n(93),n(177),n(179),n(180),n(181),n(182),n(76),n(166),n(183),n(111),n(165),n(104),n(77),n(184),n(185),e.exports=i},function(e,t,n){var i=window.DevExpress=window.DevExpress||{},o=i.errors=n(7);if(i._DEVEXTREME_BUNDLE_INITIALIZED)throw o.Error("E0024");i._DEVEXTREME_BUNDLE_INITIALIZED=!0,i.clientExporter=n(20),i.VERSION=n(19),i.Class=n(25),i.DOMComponent=n(43),i.registerComponent=n(57),i.devices=n(53),i.Color=n(38);var a=n(9),s=n(17).compare;if(s(a.fn.jquery,[1,10])<0)throw o.Error("E0012");var r=n(59);i.requestAnimationFrame=function(){return o.log("W0000","DevExpress.requestAnimationFrame","15.2","Use the 'DevExpress.utils.requestAnimationFrame' method instead."),r.requestAnimationFrame.apply(r,arguments)},i.cancelAnimationFrame=function(){return o.log("W0000","DevExpress.cancelAnimationFrame","15.2","Use the 'DevExpress.utils.cancelAnimationFrame' method instead."),r.cancelAnimationFrame.apply(r,arguments)},i.EventsMixin=n(51),i.utils={},i.utils.requestAnimationFrame=r.requestAnimationFrame,i.utils.cancelAnimationFrame=r.cancelAnimationFrame,i.utils.initMobileViewport=n(60).initMobileViewport,i.utils.extendFromObject=n(11).extendFromObject,i.utils.createComponents=n(62).createComponents,i.utils.triggerShownEvent=n(62).triggerShownEvent,i.utils.triggerHidingEvent=n(62).triggerHidingEvent,i.utils.resetActiveElement=n(62).resetActiveElement,i.utils.findBestMatches=n(14).findBestMatches,i.createQueue=n(63).create,i.utils.dom=n(62),i.utils.common=n(14),i.utils.date=n(64),i.utils.browser=n(23),i.utils.inflector=n(39),i.utils.resizeCallbacks=n(44).resizeCallbacks,i.utils.console=n(13),i.utils.string=n(18),i.utils.support=n(61),i.processHardwareBackButton=n(65),i.viewPort=n(55).value,i.hideTopOverlay=n(66),i.formatHelper=n(67);var l=i.config=n(15);Object.defineProperty(i,"rtlEnabled",{get:function(){return o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),l().rtlEnabled},set:function(e){o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),l({rtlEnabled:e})}}),Object.defineProperty(i,"designMode",{get:function(){return l().designMode},set:function(e){l({designMode:e})}}),i.animationPresets=n(68).presets,i.fx=n(69),i.TransitionExecutor=n(75).TransitionExecutor,i.AnimationPresetCollection=n(68).PresetCollection,e.exports=i.events={},i.events.click=n(76),i.events.utils=n(72),i.events.GestureEmitter=n(87),i.localization=n(89),e.exports=i},function(e,t,n){var i=n(8);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",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}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}"})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(13),s=n(18),r=n(19),l="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:o(t,e),Error:function(){return u(i.makeArray(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),a.logger[t]("log"===t?e:r(i.makeArray(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),d(t,c(t,e))},c=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),s.format.apply(this,t).replace(/\.*\s*?$/,"")},d=function(e,t){return s.format.apply(this,["{0} - {1}. See:\n{2}",e,t,l+e])},u=function(e){var t,n,i;return t=e[0],e=e.slice(1),n=c(t,e),i=d(t,n),o(new Error(i),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(10);e.exports=i},function(e,t){e.exports=jQuery},function(e,t,n){var i=n(12).isPlainObject,o=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},a=function(e){e=e||{};var t=1,n=!1;for("boolean"==typeof e&&(n=e,e=arguments[1]||{},t++);t<arguments.length;t++){var o=arguments[t];if(null!=o)for(var s in o){var r,l=e[s],c=o[s],d=!1;e!==c&&(n&&c&&(i(c)||(d=Array.isArray(c)))?(r=d?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},e[s]=a(n,r,c)):void 0!==c&&(e[s]=c))}}return e};t.extend=a,t.extendFromObject=o},function(e,t){var n=function(e){var t;for(t in e)return!1;return!0},i=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)};t.isEmptyObject=n,t.isPlainObject=i},function(e,t,n){var i=n(14).isFunction,o=function(){function e(e){o&&i(o.info)&&o.info(e)}function t(e){o&&i(o.warn)&&o.warn(e)}function n(e){o&&i(o.error)&&o.error(e)}var o=window.console;return{info:e,warn:t,error:n}}(),a=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=o,t.debug=a},function(e,t,n){var i,o=n(9),a=n(15),s=n(16),r=function(e){var t={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object Null]":"null"},n=Object.prototype.toString.call(e);return"object"==typeof e?t[n]||"object":typeof e},l=function(e){return null!==e&&void 0!==e},c=function(e){return"string"==typeof e},d=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},u=function(e){return"object"===r(e)},h=function(e){return"date"===r(e)},p=function(e){return"boolean"==typeof e},f=function(e){return"function"==typeof e},m=function(e){return["object","array","function"].indexOf(r(e))===-1},g=function(e){return d(e)&&e.toString().indexOf("e")!==-1},_=function(e){return null!=e&&e===e.window},v=function(e){return e instanceof Element},w=function(e,t){return l(e)?e:t},x=function(e,t){var n,i=o.Deferred(),a=t||this,s={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(a)}},r=function(){var t=e.call(a);t&&t.done&&f(t.done)?t.done(function(){i.resolveWith(a)}):i.resolveWith(a)};return n=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),s},y=[],b=[],C=[],k=function(e,t,n){if(i&&i!==e)return y.push(t),b.push(e),n=n||o.Deferred(),C.push(n),n;var a=i,r=C.length;i=e;var l=t();return l||(C.length>r?l=s.when.apply(o,C.slice(r)):n&&n.resolve()),i=a,n&&l&&l.done&&l.done(n.resolve).fail(n.reject),!i&&y.length&&("render"===b.shift()?I:S)(y.shift(),C.shift()),l},I=function(e,t){return k("render",e,t)},S=function(e,t){return k("update",e,t)},D=function(e){return function(){var t=this;return k("render",function(){return e.call(t)})}},T=function(e){return function(){var t=this;return k("update",function(){return e.call(t)})}},E=function(e,t,n){var i=[],a=0;return o.each(t,function(t,s){var r=0,l=n?n(s):s;o.each(e,function(e,t){var n=l[e];if(void 0!==n)return A(n,t)?void r++:(r=-1,!1)}),r<a||(r>a&&(i.length=0,a=r),i.push(s))}),i},A=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return o.each(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},B=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}},M=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}},R=function(e){var t=c(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&o.each(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},O=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},P=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!F(e[i],t[i],n+1))return!1;return!0},V=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!F(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},F=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(u(e)&&u(t)?V(e,t,n):Array.isArray(e)&&Array.isArray(t)?P(e,t,n):!(!h(e)||!h(t))&&e.getTime()===t.getTime())},H=function(e){if(u(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},L=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},z=function(e){var t=a().serverDecimalSeparator;return l(e)&&(e=e.toString().replace(".",t)),e},N=function(){},W=function(e,t,n){for(var i,o=[],a=!n,s=0;s<e.length;s++)i=!!t(e[s],s),i===a&&o.push(e[s]);return o};t.type=r,t.isDefined=l,t.isString=c,t.isNumeric=d,t.isObject=u,t.isDate=h,t.isBoolean=p,t.isFunction=f,t.isPrimitive=m,t.isExponential=g,t.isWindow=_,t.isDomNode=v,t.ensureDefined=w,t.executeAsync=x,t.deferRender=I,t.deferRenderer=D,t.deferUpdate=S,t.deferUpdater=T,t.splitPair=B,t.splitQuad=M,t.findBestMatches=E,t.normalizeKey=R,t.denormalizeKey=O,t.equalByValue=F,t.getKeyHash=H,t.escapeRegExp=L,t.applyServerDecimalSeparator=z,t.noop=N,t.grep=W},function(e,t,n){var i=n(11),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!1};e.exports=function(){return arguments.length?void i.extend(o,arguments[0]):o}},function(e,t,n){var i=n(9),o=n(14),a=n(17).compare;t.fromPromise=function(e,t){var n=e&&o.isFunction(e.done)&&o.isFunction(e.fail);if(n)return e;var a=i.Deferred();return e.then(function(){a.resolveWith.apply(a,[t].concat([i.makeArray(arguments)]))},function(){a.rejectWith.apply(a,[t].concat([i.makeArray(arguments)]))}),a},t.when=a(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?i.Deferred().resolve():1===arguments.length?e&&e.then?e:i.Deferred().resolve(e):i.when.apply(i,arguments)}},function(e,t){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var s=parseInt(e[a]||0,10),r=parseInt(t[a]||0,10);if(s<r)return-1;if(s>r)return 1}return 0}},function(e,t,n){var i=n(9),o=n(14),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),s=function(e){var t=o.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}},r=function(e){var t=o.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),s=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(s)||(s=i),{top:i,right:a,bottom:s,left:n}},l=function(){var e,t,n,a=arguments[0],s=i.makeArray(arguments).slice(1);if(o.isFunction(a))return a.apply(this,s);for(var r=0;r<s.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=s[r],"string"===o.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),a=a.replace(t,n);return a},c=function(){var e=function(e){return(e+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\><\|\=\!\:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=s,t.quadToObject=r,t.format=l,t.replaceAll=c,t.isEmpty=d},function(e,t){e.exports="17.1.7"},function(e,t,n){var i=n(21).fileSaver,o=n(14).isFunction;t.export=function(e,t,n){if(e){var a=t.exportingAction,s=t.exportedAction,r=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};o(a)&&a(l),l.cancel||n(e,t,function(e){o(s)&&s(),o(r)&&(l.data=e,r(l)),l.cancel||i.saveAs(l.fileName,t.format,e,t.proxyUrl)})}},t.fileSaver=i,t.excel={creator:n(24).ExcelCreator,getData:n(24).getData,formatConverter:n(31)},t.image={creator:n(37).imageCreator,getData:n(37).getData},t.pdf={getData:n(40).getData},t.svg={creator:n(41).svgCreator,getData:n(41).getData}},function(e,t,n){var i=n(9),o=n(22),a=n(23),s=n(14),r={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},l=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_getDataUri:function(e,t){return"data:"+l[e]+";base64,"+t},_linkDownloader:function(e,t,n){var o=document.createElement("a"),a={download:e,href:t};return document.body.appendChild(o),i(o).css({display:"none"}).text("load").attr(a)[0].click(),o},_formDownloader:function(e,t,n,o,a){var s={method:"post",action:e,enctype:"multipart/form-data"},r=i("<form>").css({display:"none"}).attr(s);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+o+'" />'),r.appendTo("body"),r.submit(),r.submit()&&r.remove()},_saveByProxy:function(e,t,n,i,o){return this._formDownloader(e,t,l[n],i,o)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(l[n],["."+r[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,o){if(this._blobSaved=!1,s.isDefined(navigator.msSaveOrOpenBlob))navigator.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(s.isDefined(window.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var a=window.URL||window.webkitURL||window.mozURL||window.msURL||window.oURL;if(o=s.isDefined(o)?o:function(){var e=i("#dxExportLink");a.revokeObjectURL(e.attr("href")),e.remove()},s.isDefined(a))return this._linkDownloader(e,a.createObjectURL(n),o)}},saveAs:function(e,t,n,i,l){if(e+="."+r[t],s.isFunction(window.Blob))this._saveBlobAs(e,t,n);else if(s.isDefined(i)&&!s.isDefined(navigator.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(s.isDefined(navigator.userAgent.match(/iPad/i))||o.log("E1034"),a.msie&&parseInt(a.version)<10)return;this._linkDownloader(e,this._getDataUri(t,n),l)}}}},function(e,t,n){var i=n(8),o=n(7);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The JSZip script is referenced after DevExtreme scripts",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the '{0}' error",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view"})},function(e,t,n){var i=n(11).extend,o=/(webkit)[ \/]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,r=/(edge)\/((\d+)?[\w\.]+)/,l=/(safari)/i,c=/(mozilla)(?:.*? rv:([\w.]+))/,d=function(e){e=e.toLowerCase();var t={},n=a.exec(e)||s.exec(e)||r.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||o.exec(e)||[],i=n[1],d=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&l.exec(e)&&(i="safari",t.webkit=!0,d=/Version\/([0-9.]+)/i.exec(e),d=d&&d[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=d),t};e.exports=i({_fromUA:d},d(navigator.userAgent))},function(e,t,n){var i=n(25),o=n(14),a=n(11).extend,s=n(26).inArray,r=n(22),l=n(18),c=n(30),d=n(21),u=n(31),h='<?xml version="1.0" encoding="utf-8"?>',p='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',f="<sheetPr/>",m='<fonts count="2"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font><font><b/><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',g="http://schemas.openxmlformats.org",_="rels",v="xl",w="workbook.xml",x="[Content_Types].xml",y="sharedStrings.xml",b="styles.xml",C="worksheets",k="sheet1.xml",I={"boolean":"b",date:"d",number:"n",string:"s"},S=Date.UTC(1899,11,30),D=60,T=4,E=7,A=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,a,s="<"+e,r=t.length;for(i=0;i<r;i++)a=t[i],s=s+" "+a.name+'="'+a.value+'"';return o.isDefined(n)?s+">"+n+"</"+e+">":s+" />"},_getCellIndex:function(e,t){var n,i="",o=26;for(this._maxIndex[0]<Number(e)&&(this._maxIndex[0]=Number(e)),this._maxIndex[1]<Number(t)&&(this._maxIndex[1]=Number(t));;){if(n=65+(t>=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"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return o.isObject(e)?a(i,e,{format:e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,o=this._formatObjectConverter(e,t,n);if(e=o.format,t=o.precision,i=o.currency,n=o.dataType,e=u.convertFormat(e,t,n,i))return s(e,this._styleFormat)===-1&&this._styleFormat.push(e),s(e,this._styleFormat)+1},_appendString:function(e){if(o.isDefined(e)&&(e=String(e),e.length))return e=l.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_getExcelDateValue:function(e){var t,n;if(o.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-S)/864e5),t<D&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n=this._dataProvider,i=n.getCellValue(e,t),a=this._getDataType(n.getCellType(e,t)),s=this._styleArray[this._dataProvider.getStyleId(e,t)].formatID,r=o.isNumeric(s)?this._styleFormat[s-1]:null;switch("d"!==a||o.isDate(i)||(a="s"),a){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,r),a="n"}return{value:i,type:a}},_getDataArray:function(){var e,t,n,i,o,a=this,s=[],r=a._dataProvider,l=r.getRowsCount(),c=r.getColumns();for(e=0;e<l;e++){for(n=[],o=c.length,t=0;t!==o;t++)i=a._prepareValue(e,t),n.push({style:r.getStyleId(e,t),value:i.value,type:i.type});!a._needSheetPr&&r.getGroupLevel(e)>0&&(a._needSheetPr=!0),s.push(n)}return s},_getBoldStyleID:function(e){for(var t=0;t<T-1;t++)if(this._styleArray[t].alignment===e)return t},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/E*100+.5)/100)},_prepareStyleData:function(){var e=this,t=e._dataProvider.getStyles();e._dataProvider.getColumns().forEach(function(t){e._colsArray.push(e._calculateWidth(t.width))}),t.forEach(function(t){e._styleArray.push({bold:!!t.bold,alignment:t.alignment||"left",formatID:e._appendFormat(t.format,t.precision,t.dataType),wrapText:t.wrapText})})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:g+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:g+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return h+this._getXMLTag("workbook",[{name:"xmlns:r",value:g+"/officeDocument/2006/relationships"},{name:"xmlns",value:g+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return h+'<Types xmlns="'+g+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e,t=this,n=t._zip.folder(v),i=[],a="";for(e=0;e<t._styleFormat.length;e++)t._styleFormat[e]=t._getXMLTag("numFmt",[{name:"numFmtId",value:Number(e)+A},{name:"formatCode",value:t._styleFormat[e]}]);a=a+t._getXMLTag("numFmts",[{name:"count",value:t._styleFormat.length}],t._styleFormat.join(""))+m,this._styleArray.forEach(function(e){i.push(t._getXMLTag("xf",[{name:"xfId",value:0},{name:"applyAlignment",value:1},{name:"fontId",value:Number(!!e.bold)},{name:"applyNumberFormat",value:o.isDefined(e.formatID)?1:0},{name:"numFmtId",value:o.isDefined(e.formatID)?Number(e.formatID)+A-1:0}],t._getXMLTag("alignment",[{name:"vertical",value:"top"},{name:"wrapText",value:Number(!!e.wrapText)},{name:"horizontal",value:e.alignment}])))}),a+=t._getXMLTag("cellXfs",[{name:"count",value:i.length}],i.join("")),a+=t._getXMLTag("cellStyles",[{name:"count",value:1}],t._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),a=h+t._getXMLTag("styleSheet",[{name:"xmlns",value:g+"/spreadsheetml/2006/main"}],a),n.file(b,a),t._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(v),n=this._stringArray.length,i=h;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:g+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(y,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,a,s,r=0,l=[],c=this._cellsArray.length,d=this._colsArray.length,u="1:"+d,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,m=[['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',this._needSheetPr?p:f,'<dimension ref="A1:',this._getCellIndex(this._maxIndex[0],this._maxIndex[1])+'"/><sheetViews><sheetView '+(this._rtlEnabled?'rightToLeft="1" ':"")+'tabSelected="1" workbookViewId="0">'+this._getPaneXML()+'</sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" outlineLevelRow="',this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0,'" x14ac:dyDescent="0.25"/>'].join("")];for(e=0;e<d;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(m.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<c;t++){for(i=[],s=this._cellsArray[t].length,e=0;e<s;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}],o.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>=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,r++>1e4&&(m.push(l.join("")),l=[],r=0)}m.push(l.join("")),l=[],a=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),m.push("</sheetData>"+(this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+a+'" />':"")+this._generateMergingXML()+'<ignoredErrors><ignoredError sqref="A1:'+a+'" numberStoredAsText="1" /></ignoredErrors></worksheet>'),this._zip.folder(v).folder(C).file(k,m.join("")),this._colsArray=[],this._cellsArray=[],m=[]},_generateMergingXML:function(){var e,t,n,i,a,s,r=o.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],d=[],u="";for(i=0;i<r;i++)for(n=0;n!==l;n++)if(!o.isDefined(c[i])||!o.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++)o.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(a=d.length,s=0;s<a;s++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:d[s].start+":"+d[s].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:a}],u):""},_generateCommonXML:function(){var e,t=h+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+w)),n=this._zip.folder(v),i=h;this._zip.folder("_"+_).file("."+_,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+k)+this._createXMLRelationship(2,"styles",b)+this._createXMLRelationship(3,"sharedStrings",y),
 
"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(660)},,,,function(e,t,n){var i=n(5);n(186);var o=i.ui=n(198);o.themes=n(144),o.setTemplateEngine=n(199),o.dialog=n(200),o.notify=n(205),o.dxActionSheet=n(207),o.dxAutocomplete=n(209),o.dxBox=n(253),o.dxButton=n(202),o.dxCalendar=n(254),o.dxCheckBox=n(249),o.dxColorBox=n(261),o.dxDateBox=n(268),o.dxDeferRendering=n(280),o.dxDropDownBox=n(281),o.dxDropDownMenu=n(282),o.dxFileUploader=n(283),o.dxForm=n(286),o.dxGallery=n(298),o.dxList=n(219),o.dxLoadIndicator=n(239),o.dxLoadPanel=n(247),o.dxLookup=n(299),o.dxMap=n(300),o.dxMultiView=n(293),o.dxNavBar=n(307),o.dxNumberBox=n(264),o.dxOverlay=n(110),o.dxPopover=n(208),o.dxPopup=n(201),o.dxProgressBar=n(284),o.dxRadioGroup=n(309),o.dxRangeSlider=n(311),o.dxResizable=n(112),o.dxResponsiveBox=n(291),o.dxScrollView=n(234),o.dxSelectBox=n(318),o.dxSlider=n(312),o.dxSwitch=n(319),o.dxTabPanel=n(292),o.dxTabs=n(294),o.dxTagBox=n(320),o.dxTextArea=n(321),o.dxTextBox=n(212),o.dxTileView=n(322),o.dxToast=n(206),o.dxToolbar=n(323),o.dxTooltip=n(315),o.dxTrackBar=n(285),i.validationEngine=n(118),o.dxValidationSummary=n(296),o.dxValidationGroup=n(297),o.dxValidator=n(289),o.CollectionWidget=n(150),o.dxDropDownEditor=n(211),e.exports=o},function(e,t,n){var i=n(6);i.framework=n(92),n(145),n(93),n(177),n(179),n(180),n(181),n(182),n(76),n(166),n(183),n(111),n(165),n(104),n(77),n(184),n(185),e.exports=i},function(e,t,n){var i=window.DevExpress=window.DevExpress||{},o=i.errors=n(7);if(i._DEVEXTREME_BUNDLE_INITIALIZED)throw o.Error("E0024");i._DEVEXTREME_BUNDLE_INITIALIZED=!0,i.clientExporter=n(20),i.VERSION=n(19),i.Class=n(25),i.DOMComponent=n(43),i.registerComponent=n(57),i.devices=n(53),i.Color=n(38);var a=n(9),s=n(17).compare;if(s(a.fn.jquery,[1,10])<0)throw o.Error("E0012");var r=n(59);i.requestAnimationFrame=function(){return o.log("W0000","DevExpress.requestAnimationFrame","15.2","Use the 'DevExpress.utils.requestAnimationFrame' method instead."),r.requestAnimationFrame.apply(r,arguments)},i.cancelAnimationFrame=function(){return o.log("W0000","DevExpress.cancelAnimationFrame","15.2","Use the 'DevExpress.utils.cancelAnimationFrame' method instead."),r.cancelAnimationFrame.apply(r,arguments)},i.EventsMixin=n(51),i.utils={},i.utils.requestAnimationFrame=r.requestAnimationFrame,i.utils.cancelAnimationFrame=r.cancelAnimationFrame,i.utils.initMobileViewport=n(60).initMobileViewport,i.utils.extendFromObject=n(11).extendFromObject,i.utils.createComponents=n(62).createComponents,i.utils.triggerShownEvent=n(62).triggerShownEvent,i.utils.triggerHidingEvent=n(62).triggerHidingEvent,i.utils.resetActiveElement=n(62).resetActiveElement,i.utils.findBestMatches=n(14).findBestMatches,i.createQueue=n(63).create,i.utils.dom=n(62),i.utils.common=n(14),i.utils.date=n(64),i.utils.browser=n(23),i.utils.inflector=n(39),i.utils.resizeCallbacks=n(44).resizeCallbacks,i.utils.console=n(13),i.utils.string=n(18),i.utils.support=n(61),i.processHardwareBackButton=n(65),i.viewPort=n(55).value,i.hideTopOverlay=n(66),i.formatHelper=n(67);var l=i.config=n(15);Object.defineProperty(i,"rtlEnabled",{get:function(){return o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),l().rtlEnabled},set:function(e){o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),l({rtlEnabled:e})}}),Object.defineProperty(i,"designMode",{get:function(){return l().designMode},set:function(e){l({designMode:e})}}),i.animationPresets=n(68).presets,i.fx=n(69),i.TransitionExecutor=n(75).TransitionExecutor,i.AnimationPresetCollection=n(68).PresetCollection,e.exports=i.events={},i.events.click=n(76),i.events.utils=n(72),i.events.GestureEmitter=n(87),i.localization=n(89),e.exports=i},function(e,t,n){var i=n(8);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",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}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}"})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(13),s=n(18),r=n(19),l="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:o(t,e),Error:function(){return u(i.makeArray(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),a.logger[t]("log"===t?e:r(i.makeArray(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),d(t,c(t,e))},c=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),s.format.apply(this,t).replace(/\.*\s*?$/,"")},d=function(e,t){return s.format.apply(this,["{0} - {1}. See:\n{2}",e,t,l+e])},u=function(e){var t,n,i;return t=e[0],e=e.slice(1),n=c(t,e),i=d(t,n),o(new Error(i),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(10);e.exports=i},function(e,t){e.exports=jQuery},function(e,t,n){var i=n(12).isPlainObject,o=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},a=function(e){e=e||{};var t=1,n=!1;for("boolean"==typeof e&&(n=e,e=arguments[1]||{},t++);t<arguments.length;t++){var o=arguments[t];if(null!=o)for(var s in o){var r,l=e[s],c=o[s],d=!1;e!==c&&(n&&c&&(i(c)||(d=Array.isArray(c)))?(r=d?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},e[s]=a(n,r,c)):void 0!==c&&(e[s]=c))}}return e};t.extend=a,t.extendFromObject=o},function(e,t){var n=function(e){var t;for(t in e)return!1;return!0},i=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)};t.isEmptyObject=n,t.isPlainObject=i},function(e,t,n){var i=n(14).isFunction,o=function(){function e(e){o&&i(o.info)&&o.info(e)}function t(e){o&&i(o.warn)&&o.warn(e)}function n(e){o&&i(o.error)&&o.error(e)}var o=window.console;return{info:e,warn:t,error:n}}(),a=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=o,t.debug=a},function(e,t,n){var i,o=n(9),a=n(15),s=n(16),r=function(e){var t={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object Null]":"null"},n=Object.prototype.toString.call(e);return"object"==typeof e?t[n]||"object":typeof e},l=function(e){return null!==e&&void 0!==e},c=function(e){return"string"==typeof e},d=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},u=function(e){return"object"===r(e)},h=function(e){return"date"===r(e)},p=function(e){return"boolean"==typeof e},f=function(e){return"function"==typeof e},m=function(e){return["object","array","function"].indexOf(r(e))===-1},g=function(e){return d(e)&&e.toString().indexOf("e")!==-1},_=function(e){return null!=e&&e===e.window},v=function(e){return e instanceof Element},w=function(e,t){return l(e)?e:t},x=function(e,t){var n,i=o.Deferred(),a=t||this,s={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(a)}},r=function(){var t=e.call(a);t&&t.done&&f(t.done)?t.done(function(){i.resolveWith(a)}):i.resolveWith(a)};return n=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),s},y=[],b=[],C=[],k=function(e,t,n){if(i&&i!==e)return y.push(t),b.push(e),n=n||o.Deferred(),C.push(n),n;var a=i,r=C.length;i=e;var l=t();return l||(C.length>r?l=s.when.apply(o,C.slice(r)):n&&n.resolve()),i=a,n&&l&&l.done&&l.done(n.resolve).fail(n.reject),!i&&y.length&&("render"===b.shift()?I:S)(y.shift(),C.shift()),l},I=function(e,t){return k("render",e,t)},S=function(e,t){return k("update",e,t)},D=function(e){return function(){var t=this;return k("render",function(){return e.call(t)})}},T=function(e){return function(){var t=this;return k("update",function(){return e.call(t)})}},E=function(e,t,n){var i=[],a=0;return o.each(t,function(t,s){var r=0,l=n?n(s):s;o.each(e,function(e,t){var n=l[e];if(void 0!==n)return A(n,t)?void r++:(r=-1,!1)}),r<a||(r>a&&(i.length=0,a=r),i.push(s))}),i},A=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return o.each(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},B=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}},M=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}},R=function(e){var t=c(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&o.each(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},O=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},P=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!F(e[i],t[i],n+1))return!1;return!0},V=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!F(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},F=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(u(e)&&u(t)?V(e,t,n):Array.isArray(e)&&Array.isArray(t)?P(e,t,n):!(!h(e)||!h(t))&&e.getTime()===t.getTime())},H=function(e){if(u(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},L=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},z=function(e){var t=a().serverDecimalSeparator;return l(e)&&(e=e.toString().replace(".",t)),e},N=function(){},W=function(e,t,n){for(var i,o=[],a=!n,s=0;s<e.length;s++)i=!!t(e[s],s),i===a&&o.push(e[s]);return o};t.type=r,t.isDefined=l,t.isString=c,t.isNumeric=d,t.isObject=u,t.isDate=h,t.isBoolean=p,t.isFunction=f,t.isPrimitive=m,t.isExponential=g,t.isWindow=_,t.isDomNode=v,t.ensureDefined=w,t.executeAsync=x,t.deferRender=I,t.deferRenderer=D,t.deferUpdate=S,t.deferUpdater=T,t.splitPair=B,t.splitQuad=M,t.findBestMatches=E,t.normalizeKey=R,t.denormalizeKey=O,t.equalByValue=F,t.getKeyHash=H,t.escapeRegExp=L,t.applyServerDecimalSeparator=z,t.noop=N,t.grep=W},function(e,t,n){var i=n(11),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!1};e.exports=function(){return arguments.length?void i.extend(o,arguments[0]):o}},function(e,t,n){var i=n(9),o=n(14),a=n(17).compare;t.fromPromise=function(e,t){var n=e&&o.isFunction(e.done)&&o.isFunction(e.fail);if(n)return e;var a=i.Deferred();return e.then(function(){a.resolveWith.apply(a,[t].concat([i.makeArray(arguments)]))},function(){a.rejectWith.apply(a,[t].concat([i.makeArray(arguments)]))}),a},t.when=a(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?i.Deferred().resolve():1===arguments.length?e&&e.then?e:i.Deferred().resolve(e):i.when.apply(i,arguments)}},function(e,t){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var s=parseInt(e[a]||0,10),r=parseInt(t[a]||0,10);if(s<r)return-1;if(s>r)return 1}return 0}},function(e,t,n){var i=n(9),o=n(14),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),s=function(e){var t=o.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}},r=function(e){var t=o.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),s=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(s)||(s=i),{top:i,right:a,bottom:s,left:n}},l=function(){var e,t,n,a=arguments[0],s=i.makeArray(arguments).slice(1);if(o.isFunction(a))return a.apply(this,s);for(var r=0;r<s.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=s[r],"string"===o.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),a=a.replace(t,n);return a},c=function(){var e=function(e){return(e+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\><\|\=\!\:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=s,t.quadToObject=r,t.format=l,t.replaceAll=c,t.isEmpty=d},function(e,t){e.exports="17.1.7"},function(e,t,n){var i=n(21).fileSaver,o=n(14).isFunction;t.export=function(e,t,n){if(e){var a=t.exportingAction,s=t.exportedAction,r=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};o(a)&&a(l),l.cancel||n(e,t,function(e){o(s)&&s(),o(r)&&(l.data=e,r(l)),l.cancel||i.saveAs(l.fileName,t.format,e,t.proxyUrl)})}},t.fileSaver=i,t.excel={creator:n(24).ExcelCreator,getData:n(24).getData,formatConverter:n(31)},t.image={creator:n(37).imageCreator,getData:n(37).getData},t.pdf={getData:n(40).getData},t.svg={creator:n(41).svgCreator,getData:n(41).getData}},function(e,t,n){var i=n(9),o=n(22),a=n(23),s=n(14),r={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},l=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_getDataUri:function(e,t){return"data:"+l[e]+";base64,"+t},_linkDownloader:function(e,t,n){var o=document.createElement("a"),a={download:e,href:t};return document.body.appendChild(o),i(o).css({display:"none"}).text("load").attr(a)[0].click(),o},_formDownloader:function(e,t,n,o,a){var s={method:"post",action:e,enctype:"multipart/form-data"},r=i("<form>").css({display:"none"}).attr(s);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+o+'" />'),r.appendTo("body"),r.submit(),r.submit()&&r.remove()},_saveByProxy:function(e,t,n,i,o){return this._formDownloader(e,t,l[n],i,o)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(l[n],["."+r[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,o){if(this._blobSaved=!1,s.isDefined(navigator.msSaveOrOpenBlob))navigator.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(s.isDefined(window.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var a=window.URL||window.webkitURL||window.mozURL||window.msURL||window.oURL;if(o=s.isDefined(o)?o:function(){var e=i("#dxExportLink");a.revokeObjectURL(e.attr("href")),e.remove()},s.isDefined(a))return this._linkDownloader(e,a.createObjectURL(n),o)}},saveAs:function(e,t,n,i,l){if(e+="."+r[t],s.isFunction(window.Blob))this._saveBlobAs(e,t,n);else if(s.isDefined(i)&&!s.isDefined(navigator.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(s.isDefined(navigator.userAgent.match(/iPad/i))||o.log("E1034"),a.msie&&parseInt(a.version)<10)return;this._linkDownloader(e,this._getDataUri(t,n),l)}}}},function(e,t,n){var i=n(8),o=n(7);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The JSZip script is referenced after DevExtreme scripts",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the '{0}' error",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view"})},function(e,t,n){var i=n(11).extend,o=/(webkit)[ \/]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,r=/(edge)\/((\d+)?[\w\.]+)/,l=/(safari)/i,c=/(mozilla)(?:.*? rv:([\w.]+))/,d=function(e){e=e.toLowerCase();var t={},n=a.exec(e)||s.exec(e)||r.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||o.exec(e)||[],i=n[1],d=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&l.exec(e)&&(i="safari",t.webkit=!0,d=/Version\/([0-9.]+)/i.exec(e),d=d&&d[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=d),t};e.exports=i({_fromUA:d},d(navigator.userAgent))},function(e,t,n){var i=n(25),o=n(14),a=n(11).extend,s=n(26).inArray,r=n(22),l=n(18),c=n(30),d=n(21),u=n(31),h='<?xml version="1.0" encoding="utf-8"?>',p='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',f="<sheetPr/>",m='<fonts count="2"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font><font><b/><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',g="http://schemas.openxmlformats.org",_="rels",v="xl",w="workbook.xml",x="[Content_Types].xml",y="sharedStrings.xml",b="styles.xml",C="worksheets",k="sheet1.xml",I={"boolean":"b",date:"d",number:"n",string:"s"},S=Date.UTC(1899,11,30),D=60,T=4,E=7,A=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,a,s="<"+e,r=t.length;for(i=0;i<r;i++)a=t[i],s=s+" "+a.name+'="'+a.value+'"';return o.isDefined(n)?s+">"+n+"</"+e+">":s+" />"},_getCellIndex:function(e,t){var n,i="",o=26;for(this._maxIndex[0]<Number(e)&&(this._maxIndex[0]=Number(e)),this._maxIndex[1]<Number(t)&&(this._maxIndex[1]=Number(t));;){if(n=65+(t>=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"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return o.isObject(e)?a(i,e,{format:e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,o=this._formatObjectConverter(e,t,n);if(e=o.format,t=o.precision,i=o.currency,n=o.dataType,e=u.convertFormat(e,t,n,i))return s(e,this._styleFormat)===-1&&this._styleFormat.push(e),s(e,this._styleFormat)+1},_appendString:function(e){if(o.isDefined(e)&&(e=String(e),e.length))return e=l.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_getExcelDateValue:function(e){var t,n;if(o.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-S)/864e5),t<D&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n=this._dataProvider,i=n.getCellValue(e,t),a=this._getDataType(n.getCellType(e,t)),s=this._styleArray[this._dataProvider.getStyleId(e,t)].formatID,r=o.isNumeric(s)?this._styleFormat[s-1]:null;switch("d"!==a||o.isDate(i)||(a="s"),a){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,r),a="n"}return{value:i,type:a}},_getDataArray:function(){var e,t,n,i,o,a=this,s=[],r=a._dataProvider,l=r.getRowsCount(),c=r.getColumns();for(e=0;e<l;e++){for(n=[],o=c.length,t=0;t!==o;t++)i=a._prepareValue(e,t),n.push({style:r.getStyleId(e,t),value:i.value,type:i.type});!a._needSheetPr&&r.getGroupLevel(e)>0&&(a._needSheetPr=!0),s.push(n)}return s},_getBoldStyleID:function(e){for(var t=0;t<T-1;t++)if(this._styleArray[t].alignment===e)return t},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/E*100+.5)/100)},_prepareStyleData:function(){var e=this,t=e._dataProvider.getStyles();e._dataProvider.getColumns().forEach(function(t){e._colsArray.push(e._calculateWidth(t.width))}),t.forEach(function(t){e._styleArray.push({bold:!!t.bold,alignment:t.alignment||"left",formatID:e._appendFormat(t.format,t.precision,t.dataType),wrapText:t.wrapText})})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:g+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:g+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return h+this._getXMLTag("workbook",[{name:"xmlns:r",value:g+"/officeDocument/2006/relationships"},{name:"xmlns",value:g+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return h+'<Types xmlns="'+g+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e,t=this,n=t._zip.folder(v),i=[],a="";for(e=0;e<t._styleFormat.length;e++)t._styleFormat[e]=t._getXMLTag("numFmt",[{name:"numFmtId",value:Number(e)+A},{name:"formatCode",value:t._styleFormat[e]}]);a=a+t._getXMLTag("numFmts",[{name:"count",value:t._styleFormat.length}],t._styleFormat.join(""))+m,this._styleArray.forEach(function(e){i.push(t._getXMLTag("xf",[{name:"xfId",value:0},{name:"applyAlignment",value:1},{name:"fontId",value:Number(!!e.bold)},{name:"applyNumberFormat",value:o.isDefined(e.formatID)?1:0},{name:"numFmtId",value:o.isDefined(e.formatID)?Number(e.formatID)+A-1:0}],t._getXMLTag("alignment",[{name:"vertical",value:"top"},{name:"wrapText",value:Number(!!e.wrapText)},{name:"horizontal",value:e.alignment}])))}),a+=t._getXMLTag("cellXfs",[{name:"count",value:i.length}],i.join("")),a+=t._getXMLTag("cellStyles",[{name:"count",value:1}],t._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),a=h+t._getXMLTag("styleSheet",[{name:"xmlns",value:g+"/spreadsheetml/2006/main"}],a),n.file(b,a),t._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(v),n=this._stringArray.length,i=h;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:g+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(y,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,a,s,r=0,l=[],c=this._cellsArray.length,d=this._colsArray.length,u="1:"+d,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,m=[['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',this._needSheetPr?p:f,'<dimension ref="A1:',this._getCellIndex(this._maxIndex[0],this._maxIndex[1])+'"/><sheetViews><sheetView '+(this._rtlEnabled?'rightToLeft="1" ':"")+'tabSelected="1" workbookViewId="0">'+this._getPaneXML()+'</sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" outlineLevelRow="',this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0,'" x14ac:dyDescent="0.25"/>'].join("")];for(e=0;e<d;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(m.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<c;t++){for(i=[],s=this._cellsArray[t].length,e=0;e<s;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}],o.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>=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,r++>1e4&&(m.push(l.join("")),l=[],r=0)}m.push(l.join("")),l=[],a=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),m.push("</sheetData>"+(this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+a+'" />':"")+this._generateMergingXML()+'<ignoredErrors><ignoredError sqref="A1:'+a+'" numberStoredAsText="1" /></ignoredErrors></worksheet>'),this._zip.folder(v).folder(C).file(k,m.join("")),this._colsArray=[],this._cellsArray=[],m=[]},_generateMergingXML:function(){var e,t,n,i,a,s,r=o.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],d=[],u="";for(i=0;i<r;i++)for(n=0;n!==l;n++)if(!o.isDefined(c[i])||!o.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++)o.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(a=d.length,s=0;s<a;s++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:d[s].start+":"+d[s].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:a}],u):""},_generateCommonXML:function(){var e,t=h+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+w)),n=this._zip.folder(v),i=h;this._zip.folder("_"+_).file("."+_,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+k)+this._createXMLRelationship(2,"styles",b)+this._createXMLRelationship(3,"sharedStrings",y),
i+=this._createXMLRelationships(e),n.folder("_"+_).file(w+".rels",i),n.file(w,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,o.isDefined(c)?this._zip=new c:this._zip=null},_checkZipState:function(){if(!this._zip)throw r.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}}),t.getData=function(e,n,i){var a=new t.ExcelCreator(e,n);a._checkZipState(),a.ready().done(function(){a._zip.generateAsync?a.getData(o.isFunction(window.Blob)).then(i):i(a.getData(o.isFunction(window.Blob)))})}},function(e,t,n){var i=n(7),o=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},a=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,a=this;if(!e)return a;for(n in e)i=e[n],t="function"==typeof a.prototype[n]&&"function"==typeof i,a.prototype[n]=t?o(a.parent.prototype,n,i):i;return a},r=function(){var e,t,n,i=this;for(n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},l=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw i.Error("E0001")},d=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),u=function(){};u.inherit=function(e){var t=function(){if(!this||this===window||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,o=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<o.length;e++)o[e].call(t);for(n&&n.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=a(this),d(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=s,t.include=r,t.subclassOf=l,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},u.abstract=c,e.exports=u},function(e,t,n){var i=n(9),o=n(14),a=n(27),s=function(e){return Array.isArray(e)&&!e.length},r=function(e){return Array.isArray(e)?e:[e]},l=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return i.each(e,function(e,i){var o=u(i,t);o!==-1&&n.push(i)}),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return i.each(e,function(e,i){var o=u(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,s){var r={},l=0;return i.each(e,function(e,i){e=i[t],o.isDefined(e)&&(r[e]=r[e]||[],i===n?r[e].unshift(i):r[e].push(i),delete i[t])}),a.orderEach(r,function(e,n){i.each(n,function(){e>=0&&(this[t]=l++)})}),i.each(e,function(){o.isDefined(this[t])||s&&!s(this)||(this[t]=l++)}),l},u=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)};t.isEmpty=s,t.wrapToArray=r,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=u},function(e,t,n){var i=n(9),o=n(14),a=n(12),s=n(28),r=function(){function e(){}return function(t){return e.prototype=t,new e}}(),l=function(e,t){var n,i,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(a.sort(function(e,t){var n=o.isNumeric(e),i=o.isNumeric(t);return n&&i?e-t:n&&!i?-1:!n&&i?1:e<t?-1:e>t?1:0}),i=0;i<a.length;i++)n=a[i],t(n,e[n])},c=function(e,t,n,i){!i&&s.isWrapped(e[t])?s.assign(e[t],n):e[t]=n},d=function(e,t,n,s){var r,l;for(var u in t)if(r=e[u],l=t[u],e!==l){if(a.isPlainObject(l)&&!(l instanceof i.Event)){var h=n?o.isObject(r):a.isPlainObject(r);l=d(h?r:{},l,n,s)}void 0!==l&&c(e,u,l,s)}return e};t.clone=r,t.orderEach=l,t.deepExtendArraySafe=d},function(e,t,n){var i=n(13).logger,o=n(29);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){e.exports=function(e){var t=n(9),i=n(11).extend,o=n(14).isFunction,a=n(25),s=a.inherit(e),r=s,l=new r(e),c={},d=function(n,i){t.each(n,function(t){o(l[t])?!i&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(i&&(c[t]=e[t]),e[t]=l[t])})};return d(e,!0),e.inject=function(e){r=r.inherit(e),l=new r,d(e)},e.resetInjection=function(){i(e,c),r=s,l=new s},e}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(14),o=n(18),a=n(32),s=n(33),r=n(35).getLanguageId,l={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},c=" .,:;/\\<>()-",d=1632,u={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "};n(36);var h=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_isDigit:function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=d&&t<d+10},_getDifference:function(e,t,n){var i,o=0,a=this,s=[],r=function(t){return e[o]!==t[o]};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(r).length){do{if(i=a._isDigit(e[o]),!s.length&&!i&&a._isDigit(t[0][o]))break;s.push(o),n.unshift(o),o++}while(e[o]&&c.indexOf(e[o])<0&&i===a._isDigit(e[o]));break}return 1!==s.length||"0"!==e[n[0]-1]&&"٠"!==e[n[0]-1]||n.unshift(n[0]-1),s},_replaceCharsCore:function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("٠"+n,n+n)),e},_replaceChars:function(e,t,n,i){var o,a,s;if(!this._isDigit(e[t[0]]||"0")){for(var r=Math.max(t.length<=3?3:4,n.length);t.length>r;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(a=t[t.length-1]+1,s=a<i.length?i[a]:a;t.length<r;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=this._replaceCharsCore(e,t,n,i)},_format:function(e,t){return Array.isArray(e)?e.map(function(e){return(s.format(e,t)||"").toString()}):(s.format(e,t)||"").toString()},_escapeChars:function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(c.indexOf(e)<0||"/"===e)?i[t]:-1});return e=e.split("").map(function(e,t){return o.indexOf(t)>=0?"\\"+e:e}).join(""),e=e.replace("AM\\/PM","AM/PM")},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=d&&t<d+10)return!0;return!1},_convertDateFormat:function(e){e=l[e&&e.type||e]||e;var t=this,n=[],i=t._format(new Date(2009,8,8,6,5,4),e),o=i.split("").map(function(e,t){return t}),a=i,s=[{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,2,5,4),pattern:"H"},{date:new Date(2009,8,8,18,5,4),pattern:"AM/PM"},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"d"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(a)return s.forEach(function(s){var r=t._getDifference(i,t._format(s.date,e),n);a=t._replaceChars(a,r,s.pattern,o)}),a=t._escapeChars(a,i,n,o),a=t._getLanguageInfo(i)+a},_getLanguageInfo:function(e){var t=r(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):u[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return h._convertDateFormat(e);if(i.isString(e)&&u[e.toLowerCase()])return h._convertNumberFormat(e,t,o)}}}},function(e,t,n){var i=n(9),o=n(29),a=n(26).inArray,s=n(12).isPlainObject,r=n(7),l=4,c=10,d=["currency","fixedpoint","exponential","percent","decimal"],u={1:"K",2:"M",3:"B",4:"T"},h={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},p=o({numericFormats:d,defaultLargeNumberFormatPostfixes:u,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.split(" "),i.each(t,function(e,t){a(t,d)>-1?n.formatType=t:t in h&&(n.power=h[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i,o;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,l)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,c),o=this._getNumberByPower(e,i,c);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=c&&(i++,o/=c),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.length<t;)i="0"+i;return i},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")+(t[1]?"."+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*e),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():e.toFixed(n.precision)),"decimal"!==t&&(e=this._addGroupSeparators(e)),"percent"===t&&(e+="%"),e.toString())},_normalizeFormat:function(e){return e?"function"==typeof e?e:(s(e)||(e={type:e}),e.type&&(e.type=e.type.toLowerCase()),e):{}},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if(t=t&&t.formatter||t,"function"==typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):void 0},parse:function(e,t){if(e)return t&&t.parser?t.parser(e):(t&&r.log("W0011"),parseFloat(e.replace(/^\D+|,+/g,"")))}});e.exports=p},function(e,t,n){var i=n(9),o=n(32),a=n(29),s=n(14).isString,r=n(26).inArray,l=n(7);n(34);var c={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},d=function(e){var t=new Date,n=e.split(" "),i=n[0].split(":"),o=Number(i[0]),a=Number(i[1]),s=Number(i[2])||0,r=/^pm$/i.test(n[1]),l=s<60&&a<60&&o>0&&o<13;return l?(r||12!==o||(o=0),r&&12!==o&&(o+=12),new Date(t.getFullYear(),t.getMonth(),t.getDate(),o,a,s)):null},u=function(e){return new Date(e.valueOf()+60*e.getTimezoneOffset()*1e3)},h=["January","February","March","April","May","June","July","August","September","October","November","December"],p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=function(e){return e.getHours()>=12?"PM":"AM"},m=function(e){return e%12||12},g=function(e,t){return o.format(e,{type:"decimal",precision:t})},_={millisecond:function(e){return g(e.getMilliseconds(e),3)},second:function(e){return g(e.getSeconds(),2)},minute:function(e){return g(e.getMinutes(),2)},h:function(e){return g(m(e.getHours()),1)},hh:function(e){return g(m(e.getHours()),2)},hour:function(e){return g(e.getHours(),2)},day:function(e){return String(e.getDate())},dayofweek:function(e){return p[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return g(e.getMonth()+1,2)},month:function(e){return h[e.getMonth()]},year:function(e){return String(e.getFullYear())},shortyear:function(e){return String(e.getFullYear()).substr(2,2)},shorttime:function(e){return _.h(e)+":"+_.minute(e)+" "+f(e)},shortdate:function(e){return[_.M(e),_.day(e),_.year(e)].join("/")},shortdateshorttime:function(e){return[_.shortdate(e),_.shorttime(e)].join(", ")},mediumdatemediumtime:function(e){return[_.monthandday(e),_.shorttime(e)].join(", ")},monthandyear:function(e){return[_.month(e),_.year(e)].join(" ")},monthandday:function(e){return[_.month(e),_.day(e)].join(" ")},longdate:function(e){return _.dayofweek(e)+", "+_.month(e)+" "+_.day(e)+", "+_.year(e)},longtime:function(e){return[_.h(e),_.minute(e),_.second(e)].join(":")+" "+f(e)},longdatelongtime:function(e){return[_.longdate(e),_.longtime(e)].join(", ")},d:function(e){return g(e.getDate(),1)},dd:function(e){return g(e.getDate(),2)},"d MMMM":function(e){return _.day(e)+" "+_.month(e)},"yyyy/M/d":function(e){return[_.year(e),_.M(e),_.day(e)].join("/")},"yyyy/MM/dd":function(e){return[_.year(e),_.MM(e),_.dd(e)].join("/")},"dd.MM.yyyy":function(e){return[_.dd(e),_.MM(e),_.year(e)].join(".")},"HH:mm":function(e){return[_.hour(e),_.minute(e)].join(":")},"HH:mm:ss":function(e){return[_["HH:mm"](e),_.second(e)].join(":")},"h:mm:ss":function(e){return[_.h(e),_.minute(e),_.second(e)].join(":")},"h:mm:ss:SSS":function(e){return[_.h(e),_.minute(e),_.second(e),_.SSS(e)].join(":")},"yyyy/MM/dd HH:mm:ss":function(e){return[_["yyyy/MM/dd"](e),_["HH:mm:ss"](e)].join(" ")},"yyyy-MM-dd hh:mm:ss.SSS a":function(e){return[[_.year(e),_.MM(e),_.dd(e)].join("-"),[_.hh(e),_.minute(e),_.second(e)].join(":")+"."+_.SSS(e),f(e)].join(" ")},"yyyy-MM-dd":function(e){return[_.year(e),_.MM(e),_.dd(e)].join("-")},yyyyMMddTHHmmss:function(e){return[_.year(e),_.MM(e),_.dd(e),"T",_.hour(e),_.minute(e),_.second(e)].join("")},"datetime-local":function(e){return _["yyyy-MM-dd"](e)+"T"+_["HH:mm:ss"](e)},"yyyy-MM-ddTHH:mm:ssZ":function(e){return _["datetime-local"](e)+"Z"},"yyyy-MM-ddTHH:mmZ":function(e){return _["yyyy-MM-dd"](e)+"T"+_.hour(e)+":"+_.minute(e)+"Z"},"dd/MM/yyyy":function(e){return[_.dd(e),_.MM(e),_.year(e)].join("/")},"yyyy MMMM d":function(e){return[_.year(e),_.month(e),_.day(e)].join(" ")},"EEEE, d":function(e){return[_.dayofweek(e),_.d(e)].join(", ")},"EEEE MM yy":function(e){return[_.dayofweek(e),_.MM(e),_.shortyear(e)].join(" ")},"d MMMM yyyy":function(e){return[_.day(e),_.month(e),_.year(e)].join(" ")},E:function(e){return y([_.dayofweek(e)],"abbreviated")[0]},EEE:function(e){return _.E(e)},"EEE hh":function(e){return[_.EEE(e),_.hh(e)].join(" ")},"ss SSS":function(e){return[_.second(e),_.SSS(e)].join(" ")},quarter:function(e){var t=e.getMonth();return t>=0&&t<3?"Q1":t>2&&t<6?"Q2":t>5&&t<9?"Q3":"Q4"},quarterandyear:function(e){return _.quarter(e)+" "+_.year(e)}},v=function(e){return"Z"!==e.slice(-1)&&(e+="Z"),u(new Date(e))},w={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(),r(e,h))},monthandday:function(e){var t=e.split(" "),n=w.month(t[0]);return n.setDate(Number(t[1])),n},monthandyear:function(e){var t=e.split(" "),n=w.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)),u(t)},second:function(e){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),Number(e))},shortyear:function(e){var t=36,n=Number(e);return n+=n>t?1900:2e3,w.year(n)},shortdate:function(e){if(/^(0?[1-9]|1[012])\/(0?[1-9]|[12][0-9]|3[01])\/\d{1,4}/.test(e)){var t=e.split("/"),n=new Date(Number(t[2]),Number(t[0])-1,Number(t[1]));return t[2].length<3&&n.setFullYear(Number(t[2]),Number(t[0])-1,Number(t[1])),n}},longtime:function(e){return d(e)},shorttime:function(e){return d(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]),r(t[1],h),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":v,"yyyy-MM-ddTHH:mmZ":v,"datetime-local":v,mediumdatemediumtime:function(e){var t=e.split(", "),n=t[0].split(" "),i=t[1].split(" "),o=2===i.length?i.pop():void 0,a=w.month(n[0]);a.setDate(Number(n[1])),i=i[0].split(":");var s=Number(i[0]);switch(String(o).toLowerCase()){case"am":s=12===s?0:s;break;case"pm":s=12===s?12:s+12}return a.setHours(s),a.setMinutes(Number(i[1])),a}};i.each(c,function(e,t){t=t.replace(/'/g,""),_[t]=_[e],w[t]=w[e]});var x=function(e,t){return s(t)&&(e[t.toLowerCase()]||e[t.replace(/'/g,"")])},y=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})},b={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},C=a({_getPatternByFormat:function(e){return c[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return i.each(t.split(/\W+/),function(e,t){i.each(b,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return y(h,e)},getDayNames:function(e){return y(p,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(_,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(w,t)),i?n=i(e):(l.log("W0012"),n=new Date(e)),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=C},function(e,t,n){var i=n(29);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){var i=n(34).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){var i=n(11).extend,o=n(32);o.inject({_formatNumberCore:function(e,t,n){return"currency"===t?(n.precision=n.precision||0,this.getCurrencySymbol().symbol+this.format(e,i({},n,{type:"fixedpoint"}))):this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){function i(e,t,n){var i=H("<canvas>")[0];return i.width=e+(n?0:2*oe.x),i.height=t+(n?0:2*oe.y),i}function o(e,t){var n=e.toDataURL(t,ne),i=atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,o,a,s,r){var l,c,d,u,h,p,f=(e+n)/2,m=(t+i)/2,g=Y(t-i,e-n),_=a?1:-1;g+=90*(G/180)*(s?1:-1),l=U(Q(n-e,2)+Q(i-t,2))/2,c=U(K(Q(o,2)-Q(l,2))),d=f+_*(c*Z(g)),u=m+_*(c*X(g)),h=Y(t-u,e-d),p=Y(i-u,n-d),r.arc(d,u,o,h,p,!s)}function s(e){var t,n=le(e.attributes||{}),i=e.style||{},o=ee({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),a=n.transform;return a&&(t=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.translateX=te(t[0]),o.translateY=t[1]?te(t[1]):0),t=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=te(t[0]),o.rotationX=t[1]&&te(t[1]),o.rotationY=t[2]&&te(t[2]))),d(i,o),o}function r(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,s=t.rx;s?(s=j(s,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,s),e.arcTo(o,a,0,a,s),e.arcTo(0,a,0,0,s),e.arcTo(0,0,s,0,s),e.lineTo(o/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)}function l(e,t){var n=H.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(){n.resolve()},P.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function c(e,t){var n,i,o=t.split(" "),s=0;do switch(n=te(o[s+1]),i=te(o[s+2]),o[s]){case"M":e.moveTo(n,i),s+=3;break;case"L":e.lineTo(n,i),s+=3;break;case"C":e.bezierCurveTo(n,i,te(o[s+3]),te(o[s+4]),te(o[s+5]),te(o[s+6])),s+=7;break;case"A":a(te(o[s-2]),te(o[s-1]),te(o[s+6]),te(o[s+7]),n,te(o[s+4]),te(o[s+5]),e),s+=8;break;case"Z":e.closePath(),s+=1}while(s<o.length)}function d(e,t){J(e,function(n,i){""!==e[i]&&(t[W(i)]=e[i])}),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function u(e){var t=e&&e.match(/url\(.*\#(.*?)["']?\)/i);return t&&t[1]}function h(e,t){var n=[];t.fontSize=t.fontSize||ae,t.fontFamily||se,t.fill=t.fill||re,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function p(e,t){h(e,t),t.text&&e.fillText(t.text,t.x||0,t.y||0),T(e,t,!0),f(e,t)}function f(e,t){if(t.textDecoration&&"none"!==t.textDecoration){var n=t.x,i=e.measureText(t.text).width,o=parseInt(t.fontSize,10),a=o*ie<1?1:o*ie,s=t.y;switch(t.textDecoration){case"line-through":s-=o/3+a/2;break;case"overline":s-=o-a;break;case"underline":s+=a}e.rect(n,s,i,a),A(e,t),T(e,t)}}function m(e){O[e.attributes.id.textContent]=e.childNodes[0]}function g(e){V[e.attributes.id.textContent]=e}function _(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function v(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function w(e,t,n){for(var i,o=[],a=0,r=0;r<e.length;r++){var l=e[r];if(void 0===l.tagName)x(l,t,n);else if("tspan"===l.tagName||"text"===l.tagName){var c=s(l),d=ee({},n,c);if("tspan"===l.tagName&&v(l)){w(l.childNodes,t,d);continue}d.textAlign="start",i&&void 0===c.x||(i={elements:[],options:[],widths:[],offsets:[]},o.push(i)),void 0!==c.dy&&(a+=Number(c.dy)),i.elements.push(l),i.options.push(d),i.offsets.push(a),h(t,d),i.widths.push(t.measureText(d.text).width)}}o.forEach(function(e){var i=e.widths.reduce(function(e,t){return e+t},0),o=0,a=0;"center"===n.textAlign&&(o=i/2),"end"===n.textAlign&&(o=i),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-o+a,t.y+=e.offsets[n],a+=i}),e.elements.forEach(function(n,i){w(n.childNodes,t,e.options[i])})})}function x(e,t,n){var i=e.tagName,o="text"===i||"tspan"===i||void 0===i,a="image"===i,d=ee({},n,s(e));if("hidden"!==d.visibility){switch(t.save(),!a&&b(t,d),C(t,d),_(d),t.beginPath(),e.tagName){case void 0:p(t,d);break;case"text":case"tspan":w(e.childNodes,t,d);break;case"image":l(t,d);break;case"path":c(t,d.d);break;case"rect":r(t,d),t.closePath();break;case"circle":t.arc(d.cx,d.cy,d.r,0,2*G,1)}y(t,d),o||(A(t,d),T(t,d)),t.restore()}}function y(e,t){var n,i=u(t.filter);i&&(n=F&&F[i],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*G/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"]&&(x(O[u(t["clip-path"])],e,{}),e.clip(),delete t["clip-path"])}function k(e,t){var n=new L(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function I(e){var t,n,i={};J(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":a.stdDeviation&&(i.blur=te(a.stdDeviation.value));break;case"offsetResult":i.offsetX=te(a.dx.value),i.offsetY=te(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)}}),F[e.id]=i}function S(e,t,n){var i;J(e,function(e,o){switch(o.tagName&&o.tagName.toLowerCase()){case"g":i=ee({},n,s(o)),t.save(),b(t,i),C(t,i),S(o.childNodes,t,i),t.restore();break;case"defs":O={},V={},F={},S(o.childNodes,t);break;case"clippath":m(o);break;case"pattern":g(o);break;case"filter":I(o);break;default:x(o,t,n)}})}function D(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&e.setLineDash&&(n=H.map(n,function(e){return te(e)}),e.setLineDash(n))}function T(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(D(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=V[u(t)],o=s(n),a=i(o.width,o.height,!0),r=a.getContext("2d");return S(n.childNodes,r,o),e.createPattern(a,"repeat")}function A(e,t){var n=t.fill;n&&"none"!==n&&(e.fillStyle=n.search(/url/)===-1?n:E(e,n),e.globalAlpha=t.fillOpacity,e.fill())}function B(e,t,n,i){e.fillStyle=i||"#ffffff",e.fillRect(-oe.x,-oe.y,t+2*oe.x,n+2*oe.y)}function M(e,t,n,o){var a=i(t,n),s=a.getContext("2d"),r=new DOMParser,l=r.parseFromString(e,"image/svg+xml"),c=l.childNodes[0];return s.translate(oe.x,oe.y),P=[],document.body.appendChild(a),c.attributes.direction&&(a.dir=c.attributes.direction.textContent),B(s,t,n,o),S(c.childNodes,s,{}),document.body.removeChild(a),a}function R(e,t,n){$.apply(H,P).done(function(){var i=o(t,n);e.resolve(i)})}var O,P,V,F,H=n(9),L=n(38),z=n(14),N=n(11).extend,W=n(39).camelize,$=n(16).when,q=Math,G=q.PI,j=q.min,K=q.abs,U=q.sqrt,Q=q.pow,Y=q.atan2,Z=q.cos,X=q.sin,J=H.each,ee=N,te=Number,ne=1,ie=.05,oe={x:30,y:20},ae="10px",se="sans-serif",re="#000",le=function(e){var t,n={};return H.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=te(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=H.Deferred(),o=t.width,a=t.height,s=t.backgroundColor;return z.isFunction(t.__parseAttributesFn)&&(le=t.__parseAttributesFn),R(i,M(e,o,a,s),n),i},getData:function(e,n){var i=this,o=t.imageCreator.getImageData(e,n),a="image/"+n.format,s=H.Deferred();return $(o).done(function(e){o=z.isFunction(window.Blob)?i._getBlob(e,a):i._getBase64(e),s.resolve(o)}),s},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new Blob([i.buffer],{type:t})},_getBase64:function(e){return window.btoa(e)}},t.getData=function(e,n,i){t.imageCreator.getData(e,n).done(i)}},function(e,t){function n(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=g[t]?"#"+g[t]:t,t=i(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=o(t[0]),this.g=o(t[1]),this.b=o(t[2]),this.a=o(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=c(this.r,this.g,this.b);
+
i+=this._createXMLRelationships(e),n.folder("_"+_).file(w+".rels",i),n.file(w,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,o.isDefined(c)?this._zip=new c:this._zip=null},_checkZipState:function(){if(!this._zip)throw r.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}}),t.getData=function(e,n,i){var a=new t.ExcelCreator(e,n);a._checkZipState(),a.ready().done(function(){a._zip.generateAsync?a.getData(o.isFunction(window.Blob)).then(i):i(a.getData(o.isFunction(window.Blob)))})}},function(e,t,n){var i=n(7),o=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},a=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,a=this;if(!e)return a;for(n in e)i=e[n],t="function"==typeof a.prototype[n]&&"function"==typeof i,a.prototype[n]=t?o(a.parent.prototype,n,i):i;return a},r=function(){var e,t,n,i=this;for(n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},l=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw i.Error("E0001")},d=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),u=function(){};u.inherit=function(e){var t=function(){if(!this||this===window||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,o=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<o.length;e++)o[e].call(t);for(n&&n.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=a(this),d(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=s,t.include=r,t.subclassOf=l,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},u.abstract=c,e.exports=u},function(e,t,n){var i=n(9),o=n(14),a=n(27),s=function(e){return Array.isArray(e)&&!e.length},r=function(e){return Array.isArray(e)?e:[e]},l=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return i.each(e,function(e,i){var o=u(i,t);o!==-1&&n.push(i)}),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return i.each(e,function(e,i){var o=u(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,s){var r={},l=0;return i.each(e,function(e,i){e=i[t],o.isDefined(e)&&(r[e]=r[e]||[],i===n?r[e].unshift(i):r[e].push(i),delete i[t])}),a.orderEach(r,function(e,n){i.each(n,function(){e>=0&&(this[t]=l++)})}),i.each(e,function(){o.isDefined(this[t])||s&&!s(this)||(this[t]=l++)}),l},u=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)};t.isEmpty=s,t.wrapToArray=r,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=u},function(e,t,n){var i=n(9),o=n(14),a=n(12),s=n(28),r=function(){function e(){}return function(t){return e.prototype=t,new e}}(),l=function(e,t){var n,i,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(a.sort(function(e,t){var n=o.isNumeric(e),i=o.isNumeric(t);return n&&i?e-t:n&&!i?-1:!n&&i?1:e<t?-1:e>t?1:0}),i=0;i<a.length;i++)n=a[i],t(n,e[n])},c=function(e,t,n,i){!i&&s.isWrapped(e[t])?s.assign(e[t],n):e[t]=n},d=function(e,t,n,s){var r,l;for(var u in t)if(r=e[u],l=t[u],e!==l){if(a.isPlainObject(l)&&!(l instanceof i.Event)){var h=n?o.isObject(r):a.isPlainObject(r);l=d(h?r:{},l,n,s)}void 0!==l&&c(e,u,l,s)}return e};t.clone=r,t.orderEach=l,t.deepExtendArraySafe=d},function(e,t,n){var i=n(13).logger,o=n(29);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){e.exports=function(e){var t=n(9),i=n(11).extend,o=n(14).isFunction,a=n(25),s=a.inherit(e),r=s,l=new r(e),c={},d=function(n,i){t.each(n,function(t){o(l[t])?!i&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(i&&(c[t]=e[t]),e[t]=l[t])})};return d(e,!0),e.inject=function(e){r=r.inherit(e),l=new r,d(e)},e.resetInjection=function(){i(e,c),r=s,l=new s},e}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(14),o=n(18),a=n(32),s=n(33),r=n(35).getLanguageId,l={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},c=" .,:;/\\<>()-",d=1632,u={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "};n(36);var h=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_isDigit:function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=d&&t<d+10},_getDifference:function(e,t,n){var i,o=0,a=this,s=[],r=function(t){return e[o]!==t[o]};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(r).length){do{if(i=a._isDigit(e[o]),!s.length&&!i&&a._isDigit(t[0][o]))break;s.push(o),n.unshift(o),o++}while(e[o]&&c.indexOf(e[o])<0&&i===a._isDigit(e[o]));break}return 1!==s.length||"0"!==e[n[0]-1]&&"٠"!==e[n[0]-1]||n.unshift(n[0]-1),s},_replaceCharsCore:function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("٠"+n,n+n)),e},_replaceChars:function(e,t,n,i){var o,a,s;if(!this._isDigit(e[t[0]]||"0")){for(var r=Math.max(t.length<=3?3:4,n.length);t.length>r;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(a=t[t.length-1]+1,s=a<i.length?i[a]:a;t.length<r;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=this._replaceCharsCore(e,t,n,i)},_format:function(e,t){return Array.isArray(e)?e.map(function(e){return(s.format(e,t)||"").toString()}):(s.format(e,t)||"").toString()},_escapeChars:function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(c.indexOf(e)<0||"/"===e)?i[t]:-1});return e=e.split("").map(function(e,t){return o.indexOf(t)>=0?"\\"+e:e}).join(""),e=e.replace("AM\\/PM","AM/PM")},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=d&&t<d+10)return!0;return!1},_convertDateFormat:function(e){e=l[e&&e.type||e]||e;var t=this,n=[],i=t._format(new Date(2009,8,8,6,5,4),e),o=i.split("").map(function(e,t){return t}),a=i,s=[{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,2,5,4),pattern:"H"},{date:new Date(2009,8,8,18,5,4),pattern:"AM/PM"},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"d"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(a)return s.forEach(function(s){var r=t._getDifference(i,t._format(s.date,e),n);a=t._replaceChars(a,r,s.pattern,o)}),a=t._escapeChars(a,i,n,o),a=t._getLanguageInfo(i)+a},_getLanguageInfo:function(e){var t=r(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):u[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return h._convertDateFormat(e);if(i.isString(e)&&u[e.toLowerCase()])return h._convertNumberFormat(e,t,o)}}}},function(e,t,n){var i=n(9),o=n(29),a=n(26).inArray,s=n(12).isPlainObject,r=n(7),l=4,c=10,d=["currency","fixedpoint","exponential","percent","decimal"],u={1:"K",2:"M",3:"B",4:"T"},h={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},p=o({numericFormats:d,defaultLargeNumberFormatPostfixes:u,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.split(" "),i.each(t,function(e,t){a(t,d)>-1?n.formatType=t:t in h&&(n.power=h[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i,o;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,l)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,c),o=this._getNumberByPower(e,i,c);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=c&&(i++,o/=c),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.length<t;)i="0"+i;return i},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")+(t[1]?"."+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*e),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():e.toFixed(n.precision)),"decimal"!==t&&(e=this._addGroupSeparators(e)),"percent"===t&&(e+="%"),e.toString())},_normalizeFormat:function(e){return e?"function"==typeof e?e:(s(e)||(e={type:e}),e.type&&(e.type=e.type.toLowerCase()),e):{}},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if(t=t&&t.formatter||t,"function"==typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):void 0},parse:function(e,t){if(e)return t&&t.parser?t.parser(e):(t&&r.log("W0011"),parseFloat(e.replace(/^\D+|,+/g,"")))}});e.exports=p},function(e,t,n){var i=n(9),o=n(32),a=n(29),s=n(14).isString,r=n(26).inArray,l=n(7);n(34);var c={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},d=function(e){var t=new Date,n=e.split(" "),i=n[0].split(":"),o=Number(i[0]),a=Number(i[1]),s=Number(i[2])||0,r=/^pm$/i.test(n[1]),l=s<60&&a<60&&o>0&&o<13;return l?(r||12!==o||(o=0),r&&12!==o&&(o+=12),new Date(t.getFullYear(),t.getMonth(),t.getDate(),o,a,s)):null},u=function(e){return new Date(e.valueOf()+60*e.getTimezoneOffset()*1e3)},h=["January","February","March","April","May","June","July","August","September","October","November","December"],p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=function(e){return e.getHours()>=12?"PM":"AM"},m=function(e){return e%12||12},g=function(e,t){return o.format(e,{type:"decimal",precision:t})},_={millisecond:function(e){return g(e.getMilliseconds(e),3)},second:function(e){return g(e.getSeconds(),2)},minute:function(e){return g(e.getMinutes(),2)},h:function(e){return g(m(e.getHours()),1)},hh:function(e){return g(m(e.getHours()),2)},hour:function(e){return g(e.getHours(),2)},day:function(e){return String(e.getDate())},dayofweek:function(e){return p[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return g(e.getMonth()+1,2)},month:function(e){return h[e.getMonth()]},year:function(e){return String(e.getFullYear())},shortyear:function(e){return String(e.getFullYear()).substr(2,2)},shorttime:function(e){return _.h(e)+":"+_.minute(e)+" "+f(e)},shortdate:function(e){return[_.M(e),_.day(e),_.year(e)].join("/")},shortdateshorttime:function(e){return[_.shortdate(e),_.shorttime(e)].join(", ")},mediumdatemediumtime:function(e){return[_.monthandday(e),_.shorttime(e)].join(", ")},monthandyear:function(e){return[_.month(e),_.year(e)].join(" ")},monthandday:function(e){return[_.month(e),_.day(e)].join(" ")},longdate:function(e){return _.dayofweek(e)+", "+_.month(e)+" "+_.day(e)+", "+_.year(e)},longtime:function(e){return[_.h(e),_.minute(e),_.second(e)].join(":")+" "+f(e)},longdatelongtime:function(e){return[_.longdate(e),_.longtime(e)].join(", ")},d:function(e){return g(e.getDate(),1)},dd:function(e){return g(e.getDate(),2)},"d MMMM":function(e){return _.day(e)+" "+_.month(e)},"yyyy/M/d":function(e){return[_.year(e),_.M(e),_.day(e)].join("/")},"yyyy/MM/dd":function(e){return[_.year(e),_.MM(e),_.dd(e)].join("/")},"dd.MM.yyyy":function(e){return[_.dd(e),_.MM(e),_.year(e)].join(".")},"HH:mm":function(e){return[_.hour(e),_.minute(e)].join(":")},"HH:mm:ss":function(e){return[_["HH:mm"](e),_.second(e)].join(":")},"h:mm:ss":function(e){return[_.h(e),_.minute(e),_.second(e)].join(":")},"h:mm:ss:SSS":function(e){return[_.h(e),_.minute(e),_.second(e),_.SSS(e)].join(":")},"yyyy/MM/dd HH:mm:ss":function(e){return[_["yyyy/MM/dd"](e),_["HH:mm:ss"](e)].join(" ")},"yyyy-MM-dd hh:mm:ss.SSS a":function(e){return[[_.year(e),_.MM(e),_.dd(e)].join("-"),[_.hh(e),_.minute(e),_.second(e)].join(":")+"."+_.SSS(e),f(e)].join(" ")},"yyyy-MM-dd":function(e){return[_.year(e),_.MM(e),_.dd(e)].join("-")},yyyyMMddTHHmmss:function(e){return[_.year(e),_.MM(e),_.dd(e),"T",_.hour(e),_.minute(e),_.second(e)].join("")},"datetime-local":function(e){return _["yyyy-MM-dd"](e)+"T"+_["HH:mm:ss"](e)},"yyyy-MM-ddTHH:mm:ssZ":function(e){return _["datetime-local"](e)+"Z"},"yyyy-MM-ddTHH:mmZ":function(e){return _["yyyy-MM-dd"](e)+"T"+_.hour(e)+":"+_.minute(e)+"Z"},"dd/MM/yyyy":function(e){return[_.dd(e),_.MM(e),_.year(e)].join("/")},"yyyy MMMM d":function(e){return[_.year(e),_.month(e),_.day(e)].join(" ")},"EEEE, d":function(e){return[_.dayofweek(e),_.d(e)].join(", ")},"EEEE MM yy":function(e){return[_.dayofweek(e),_.MM(e),_.shortyear(e)].join(" ")},"d MMMM yyyy":function(e){return[_.day(e),_.month(e),_.year(e)].join(" ")},E:function(e){return y([_.dayofweek(e)],"abbreviated")[0]},EEE:function(e){return _.E(e)},"EEE hh":function(e){return[_.EEE(e),_.hh(e)].join(" ")},"ss SSS":function(e){return[_.second(e),_.SSS(e)].join(" ")},quarter:function(e){var t=e.getMonth();return t>=0&&t<3?"Q1":t>2&&t<6?"Q2":t>5&&t<9?"Q3":"Q4"},quarterandyear:function(e){return _.quarter(e)+" "+_.year(e)}},v=function(e){return"Z"!==e.slice(-1)&&(e+="Z"),u(new Date(e))},w={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(),r(e,h))},monthandday:function(e){var t=e.split(" "),n=w.month(t[0]);return n.setDate(Number(t[1])),n},monthandyear:function(e){var t=e.split(" "),n=w.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)),u(t)},second:function(e){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),Number(e))},shortyear:function(e){var t=36,n=Number(e);return n+=n>t?1900:2e3,w.year(n)},shortdate:function(e){if(/^(0?[1-9]|1[012])\/(0?[1-9]|[12][0-9]|3[01])\/\d{1,4}/.test(e)){var t=e.split("/"),n=new Date(Number(t[2]),Number(t[0])-1,Number(t[1]));return t[2].length<3&&n.setFullYear(Number(t[2]),Number(t[0])-1,Number(t[1])),n}},longtime:function(e){return d(e)},shorttime:function(e){return d(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]),r(t[1],h),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":v,"yyyy-MM-ddTHH:mmZ":v,"datetime-local":v,mediumdatemediumtime:function(e){var t=e.split(", "),n=t[0].split(" "),i=t[1].split(" "),o=2===i.length?i.pop():void 0,a=w.month(n[0]);a.setDate(Number(n[1])),i=i[0].split(":");var s=Number(i[0]);switch(String(o).toLowerCase()){case"am":s=12===s?0:s;break;case"pm":s=12===s?12:s+12}return a.setHours(s),a.setMinutes(Number(i[1])),a}};i.each(c,function(e,t){t=t.replace(/'/g,""),_[t]=_[e],w[t]=w[e]});var x=function(e,t){return s(t)&&(e[t.toLowerCase()]||e[t.replace(/'/g,"")])},y=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})},b={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},C=a({_getPatternByFormat:function(e){return c[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return i.each(t.split(/\W+/),function(e,t){i.each(b,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return y(h,e)},getDayNames:function(e){return y(p,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(_,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(w,t)),i?n=i(e):(l.log("W0012"),n=new Date(e)),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=C},function(e,t,n){var i=n(29);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){var i=n(34).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){var i=n(11).extend,o=n(32);o.inject({_formatNumberCore:function(e,t,n){return"currency"===t?(n.precision=n.precision||0,this.getCurrencySymbol().symbol+this.format(e,i({},n,{type:"fixedpoint"}))):this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){function i(e,t,n){var i=H("<canvas>")[0];return i.width=e+(n?0:2*oe.x),i.height=t+(n?0:2*oe.y),i}function o(e,t){var n=e.toDataURL(t,ne),i=atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,o,a,s,r){var l,c,d,u,h,p,f=(e+n)/2,m=(t+i)/2,g=Y(t-i,e-n),_=a?1:-1;g+=90*(G/180)*(s?1:-1),l=U(Q(n-e,2)+Q(i-t,2))/2,c=U(K(Q(o,2)-Q(l,2))),d=f+_*(c*Z(g)),u=m+_*(c*X(g)),h=Y(t-u,e-d),p=Y(i-u,n-d),r.arc(d,u,o,h,p,!s)}function s(e){var t,n=le(e.attributes||{}),i=e.style||{},o=ee({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),a=n.transform;return a&&(t=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.translateX=te(t[0]),o.translateY=t[1]?te(t[1]):0),t=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=te(t[0]),o.rotationX=t[1]&&te(t[1]),o.rotationY=t[2]&&te(t[2]))),d(i,o),o}function r(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,s=t.rx;s?(s=j(s,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,s),e.arcTo(o,a,0,a,s),e.arcTo(0,a,0,0,s),e.arcTo(0,0,s,0,s),e.lineTo(o/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)}function l(e,t){var n=H.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(){n.resolve()},P.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function c(e,t){var n,i,o=t.split(" "),s=0;do switch(n=te(o[s+1]),i=te(o[s+2]),o[s]){case"M":e.moveTo(n,i),s+=3;break;case"L":e.lineTo(n,i),s+=3;break;case"C":e.bezierCurveTo(n,i,te(o[s+3]),te(o[s+4]),te(o[s+5]),te(o[s+6])),s+=7;break;case"A":a(te(o[s-2]),te(o[s-1]),te(o[s+6]),te(o[s+7]),n,te(o[s+4]),te(o[s+5]),e),s+=8;break;case"Z":e.closePath(),s+=1}while(s<o.length)}function d(e,t){J(e,function(n,i){""!==e[i]&&(t[W(i)]=e[i])}),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function u(e){var t=e&&e.match(/url\(.*\#(.*?)["']?\)/i);return t&&t[1]}function h(e,t){var n=[];t.fontSize=t.fontSize||ae,t.fontFamily||se,t.fill=t.fill||re,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function p(e,t){h(e,t),t.text&&e.fillText(t.text,t.x||0,t.y||0),T(e,t,!0),f(e,t)}function f(e,t){if(t.textDecoration&&"none"!==t.textDecoration){var n=t.x,i=e.measureText(t.text).width,o=parseInt(t.fontSize,10),a=o*ie<1?1:o*ie,s=t.y;switch(t.textDecoration){case"line-through":s-=o/3+a/2;break;case"overline":s-=o-a;break;case"underline":s+=a}e.rect(n,s,i,a),A(e,t),T(e,t)}}function m(e){O[e.attributes.id.textContent]=e.childNodes[0]}function g(e){V[e.attributes.id.textContent]=e}function _(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function v(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function w(e,t,n){for(var i,o=[],a=0,r=0;r<e.length;r++){var l=e[r];if(void 0===l.tagName)x(l,t,n);else if("tspan"===l.tagName||"text"===l.tagName){var c=s(l),d=ee({},n,c);if("tspan"===l.tagName&&v(l)){w(l.childNodes,t,d);continue}d.textAlign="start",i&&void 0===c.x||(i={elements:[],options:[],widths:[],offsets:[]},o.push(i)),void 0!==c.dy&&(a+=Number(c.dy)),i.elements.push(l),i.options.push(d),i.offsets.push(a),h(t,d),i.widths.push(t.measureText(d.text).width)}}o.forEach(function(e){var i=e.widths.reduce(function(e,t){return e+t},0),o=0,a=0;"center"===n.textAlign&&(o=i/2),"end"===n.textAlign&&(o=i),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-o+a,t.y+=e.offsets[n],a+=i}),e.elements.forEach(function(n,i){w(n.childNodes,t,e.options[i])})})}function x(e,t,n){var i=e.tagName,o="text"===i||"tspan"===i||void 0===i,a="image"===i,d=ee({},n,s(e));if("hidden"!==d.visibility){switch(t.save(),!a&&b(t,d),C(t,d),_(d),t.beginPath(),e.tagName){case void 0:p(t,d);break;case"text":case"tspan":w(e.childNodes,t,d);break;case"image":l(t,d);break;case"path":c(t,d.d);break;case"rect":r(t,d),t.closePath();break;case"circle":t.arc(d.cx,d.cy,d.r,0,2*G,1)}y(t,d),o||(A(t,d),T(t,d)),t.restore()}}function y(e,t){var n,i=u(t.filter);i&&(n=F&&F[i],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*G/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"]&&(x(O[u(t["clip-path"])],e,{}),e.clip(),delete t["clip-path"])}function k(e,t){var n=new L(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function I(e){var t,n,i={};J(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":a.stdDeviation&&(i.blur=te(a.stdDeviation.value));break;case"offsetResult":i.offsetX=te(a.dx.value),i.offsetY=te(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)}}),F[e.id]=i}function S(e,t,n){var i;J(e,function(e,o){switch(o.tagName&&o.tagName.toLowerCase()){case"g":i=ee({},n,s(o)),t.save(),b(t,i),C(t,i),S(o.childNodes,t,i),t.restore();break;case"defs":O={},V={},F={},S(o.childNodes,t);break;case"clippath":m(o);break;case"pattern":g(o);break;case"filter":I(o);break;default:x(o,t,n)}})}function D(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&e.setLineDash&&(n=H.map(n,function(e){return te(e)}),e.setLineDash(n))}function T(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(D(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=V[u(t)],o=s(n),a=i(o.width,o.height,!0),r=a.getContext("2d");return S(n.childNodes,r,o),e.createPattern(a,"repeat")}function A(e,t){var n=t.fill;n&&"none"!==n&&(e.fillStyle=n.search(/url/)===-1?n:E(e,n),e.globalAlpha=t.fillOpacity,e.fill())}function B(e,t,n,i){e.fillStyle=i||"#ffffff",e.fillRect(-oe.x,-oe.y,t+2*oe.x,n+2*oe.y)}function M(e,t,n,o){var a=i(t,n),s=a.getContext("2d"),r=new DOMParser,l=r.parseFromString(e,"image/svg+xml"),c=l.childNodes[0];return s.translate(oe.x,oe.y),P=[],document.getElementById('mw-content-text').appendChild(a),c.attributes.direction&&(a.dir=c.attributes.direction.textContent),B(s,t,n,o),S(c.childNodes,s,{}),document.body.removeChild(a),a}function R(e,t,n){$.apply(H,P).done(function(){var i=o(t,n);e.resolve(i)})}var O,P,V,F,H=n(9),L=n(38),z=n(14),N=n(11).extend,W=n(39).camelize,$=n(16).when,q=Math,G=q.PI,j=q.min,K=q.abs,U=q.sqrt,Q=q.pow,Y=q.atan2,Z=q.cos,X=q.sin,J=H.each,ee=N,te=Number,ne=1,ie=.05,oe={x:30,y:20},ae="10px",se="sans-serif",re="#000",le=function(e){var t,n={};return H.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=te(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=H.Deferred(),o=t.width,a=t.height,s=t.backgroundColor;return z.isFunction(t.__parseAttributesFn)&&(le=t.__parseAttributesFn),R(i,M(e,o,a,s),n),i},getData:function(e,n){var i=this,o=t.imageCreator.getImageData(e,n),a="image/"+n.format,s=H.Deferred();return $(o).done(function(e){o=z.isFunction(window.Blob)?i._getBlob(e,a):i._getBase64(e),s.resolve(o)}),s},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new Blob([i.buffer],{type:t})},_getBase64:function(e){return window.btoa(e)}},t.getData=function(e,n,i){t.imageCreator.getData(e,n).done(i)}},function(e,t){function n(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=g[t]?"#"+g[t]:t,t=i(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=o(t[0]),this.g=o(t[1]),this.b=o(t[2]),this.a=o(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=c(this.r,this.g,this.b);
 
}function i(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=_.length;n<i;++n)if(t=_[n].re.exec(e))return _[n].process(t);return null}function o(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function a(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,s=Math.max(e,t,n),r=Math.min(e,t,n),l=s-r;if(a=s,o=0===s?0:1-r/s,s===r)i=0;else switch(s){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function r(e,t,n){var i,o,a,s,r,l,c,d;switch(s=Math.floor(e%360/60),a=(100-t)*n/100,r=(n-a)*(e%60/60),o=a+r,i=n-r,s){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 l(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function c(e,t,n){e=f(e,255),t=f(t,255),n=f(n,255);var i,o,a=Math.max(e,t,n),s=Math.min(e,t,n),r=a+s,c=r/2;if(a===s)i=o=0;else{var d=a-s;o=c>.5?d/(2-r):d/r,i=l(e,t,n,d),i/=6}return{h:v(360*i),s:v(100*o),l:v(100*c)}}function d(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function u(e){return e<0&&(e+=1),e>1&&(e-=1),e}function h(e,t,n){return n=u(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p(e,t,n){var i,o,a;if(e=f(e,360),t=f(t,100),n=f(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,r=2*n-s;i=h(r,s,d("r",e)),o=h(r,s,d("g",e)),a=h(r,s,d("b",e))}return[v(255*i),v(255*o),v(255*a)]}function f(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var g={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"},_=[{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=r(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=p(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],v=Math.round;n.prototype={constructor:n,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 n;return t.r=o(this.r+e),t.g=o(this.g+e),t.b=o(this.b+e),t},blend:function(e,t){var i=e instanceof n?e:new n(e),a=new n;return a.r=o(v(this.r*(1-t)+i.r*t)),a.g=o(v(this.g*(1-t)+i.g*t)),a.b=o(v(this.b*(1-t)+i.b*t)),a},toHex:function(){return a(this.r,this.g,this.b)},getPureColor:function(){var e=r(this.hsv.h,100,100);return new n("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(m(e)&&m(t)&&m(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1},e.exports=n},function(e,t,n){var i=n(9),o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},s=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},r=function(e){return i.map(s(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return r(e).replace(/-/g,"_")},c=function(e,t){return i.map(s(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(r(e).replace(/-/g," "))},u=function(e){return i.map(s(e),function(e){return a(e.toLowerCase())}).join(" ")},h=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()||n in["0","1","2","3","4","5","6","7","8","9"],"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=r,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=h},function(e,t,n){var i=n(9),o=n(19),a=n(37).imageCreator,s=n(14).isFunction,r=n(11).extend,l=n(16).when,c="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",d="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",u="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",h="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",p="\r\nendstream\r\nendobj\r\n",f="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",g=60,_=40,v=function(e,t){return e.length<t?v("0"+e,t):e},w=function(e,t,n){var i=t.width+g,a=t.height+_,s=(.75*i).toFixed(2),r=(.75*a).toFixed(2),l=c.replace("_width_",s).replace("_height_",r),m=d.replace("_width_",s).replace("_height_",r),v=u.replace("_date_",n).replace("_version_",o),w=h.replace("_width_",i).replace("_height_",a).replace("_length_",e.length)+e+p,y=x(l.length,m.length,v.length),b=l+m+v+w,C=f.replace("_length_",b.length);return b+y+C},x=function(e,t,n){return m.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},y=function(){return new Date},b=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([n.buffer],{type:"application/pdf"})},C=function(e){return window.btoa(e)};t.getData=function(e,t,n){var o=a.getImageData(e,r({},t,{format:"jpeg"})),c=i.Deferred();c.done(n),l(o).done(function(e){var n=w(e,t,y()),i=s(window.Blob)?b(n):C(n);c.resolve(i)})}},function(e,t,n){var i=n(9),o=n(14),a=n(42).getSvgMarkup,s=n(16).when;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===n.DONE&&t(200===n.status&&n.response?n.response:!1)},n.open("GET",e,!0),n.responseType="arraybuffer",n.send()},_loadImages:function(){var e=this;i.each(e._imageArray,function(t){var n=new i.Deferred;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,a="",s=new Uint8Array(i),r=s.byteLength;for(o=0;o<r;o++)a+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+btoa(a),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),i.each(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),s.apply(i,this._imageDeferreds)},getData:function(e,t){var n,s=this,r='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',l=i.Deferred(),c=new DOMParser,d=c.parseFromString(e,"image/svg+xml"),u=d.childNodes[0],h=i(u);return h.css("background-color",t.backgroundColor),n=r+a(h.get(0)),s._prepareImages(u).done(function(){i.each(s._imageArray,function(e,t){n=n.split(e).join(t)}),l.resolve(o.isFunction(window.Blob)?s._getBlob(n):s._getBase64(n))}),l},_getBlob:function(e){return new Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return window.btoa(e)}},t.getData=function(e,n,i){t.svgCreator.getData(e,n).done(i)}},function(e,t){function n(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function i(e){var t=!0;return e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function o(e){return e.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}t.getSvgMarkup=function(e){return i(o(n(e)))}},function(e,t,n){var i=n(9),o=n(11).extend,a=n(15),s=n(7),r=n(44).resizeCallbacks,l=n(14),c=n(26).inArray,d=n(45),u=n(48),h=u.abstract,p="dx-rtl",f="dx-visibility-change-handler",m="VisibilityChange",g=u.inherit({_getDefaultOptions:function(){return o(this.callBase(),{width:void 0,height:void 0,rtlEnabled:a().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),d.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:h,_dimensionChanged:h,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);r.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==h},_render:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_renderElementAttributes:function(){var e=o({},this.option("elementAttr")),t=e.class;delete e.class,this.element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&(this.element().addClass(f),this._attachVisibilityChangeHandlers())},_renderDimensions:function(){var e=this.option("width"),t=this.option("height"),n=this.element();n.outerWidth(e),n.outerHeight(t)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+m;e.element().off(t).on(t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){var e=this,t="dxhiding."+this.NAME+m,n="dxshown."+this.NAME+m;e._isHidden=!e._isVisible(),e.element().off(t).on(t,function(){e._checkVisibilityChanged("hiding")}).off(n).on(n,function(){e._checkVisibilityChanged("shown")})},_isVisible:function(){return this.element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==h},_clean:l.noop,_modelByElement:function(){var e=this.option("modelByElement")||l.noop;return e(this.element())},_invalidate:function(){if(!this._updateLockCount)throw s.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._render()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&r.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.element().toggleClass(p,e)},_createComponent:function(e,t,n){var a=this;n=n||{};var s=l.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),r=a.option("nestedComponentOptions")||l.noop;a._extendConfig(n,o({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},r(this)));var d;if(l.isString(t)){var u=i(e)[t](n);d=u[t]("instance")}else e&&(d=t.getInstance(e),d?d.option(n):d=new t(e,n));if(d){var h=function(e){c(e.name,s)>=0&&d.option(e.name,e.value)};a.on("optionChanged",h),d.on("disposing",function(){a.off("optionChanged",h)})}return d},_extendConfig:function(e,t){i.each(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return o(this.callBase(),{context:this._modelByElement(this.element())})},_defaultActionArgs:function(){var e=this.element(),t=this._modelByElement(this.element());return o(this.callBase(),{element:e,model:t})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":case"elementAttr":this._invalidate();break;case"disabled":case"integrationOptions":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}});g.getInstance=function(e){return d.getInstanceByElement(i(e),this)},g.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=g},function(e,t,n){var i=n(9),o=function(){var e,t=i.Callbacks(),n=i(window),o=!1,a=t.add,s=t.remove,r=function(){return{width:n.width(),height:n.height()}},l=function(){var n=r();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,setTimeout(function(){t.fire(i)})}};return e=r(),t.add=function(){var e=a.apply(t,arguments);return!o&&t.has()&&(n.on("resize",l),o=!0),e},t.remove=function(){var e=s.apply(t,arguments);return!t.has()&&o&&(n.off("resize",l),o=!1),e},t}(),a=function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},s=function(e){var t=e||a;return t(i(window).width())};t.resizeCallbacks=o,t.defaultScreenFactorFunc=a,t.getCurrentScreenFactor=s},function(e,t,n){var i=n(9),o=n(46),a=n(14),s=n(47),r="dxComponents",l="dxPrivateComponent",c=new o,d=0,u=t.name=function(e,t){if(a.isDefined(t))return void c.set(e,t);if(!c.has(e)){var n=l+d++;return c.set(e,n),n}return c.get(e)};t.attachInstanceToElement=function(e,t,n){var o=i.data(e.get(0)),a=u(t.constructor);o[a]=t,n&&e.one(s,function(){n.call(t)}),o[r]||(o[r]=[]),o[r].push(a)},t.getInstanceByElement=function(e,t){var n=u(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(26).inArray,o=window.WeakMap;o||(o=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1}}),e.exports=o},function(e,t,n){var i=n(9),o=n(10),a=o.cleanData,s=i.event.special,r="dxremove",l="dxRemoveEvent";o.cleanData=function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n.removeProp(l),n.triggerHandler(r))}return a(e)},s[r]={noBubble:!0,setup:function(){i(this).prop(l,!0)}},e.exports=r},function(e,t,n){var i=n(9),o=n(15),a=n(11).extend,s=n(25),r=n(49),l=n(7),c=n(50),d=n(14),u=n(12),h=n(51),p=n(45),f=n(53),m=d.isFunction,g=d.noop,_={},v={},w=s.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){return i.map(this._deprecatedOptions,function(t,n){return e===t.alias?n:void 0})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);a(!0,this._options,n);for(var i in this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=f.current(),o=function(e,t){return t=i.makeArray(t),1===t.length&&u.isEmptyObject(t[0])||d.findBestMatches(e,t).length>0},s=0;s<e.length;s++){var r,l=e[s],c=l.device||{};r=m(c)?c(n):o(n,c),r&&a(t,l.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=m(t)&&m(n)?t.toString()===n.toString():d.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=p.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||i.Callbacks(),this._disposingCallbacks=e._disposingCallbacks||i.Callbacks(),this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=c.toComparable(t,!0),n=c.toComparable(n,!0),t&&n&&t.jquery&&n.jquery)return n.is(t);var i=t!==t,o=n!==n;return!(!i||!o)||(null===t||"object"!=typeof t)&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&!this._initializing&&!this._initialized){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";l.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:g,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),s=0;s<o.length;s++){var r=o[s],l={name:r.split(/[.\[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[a(i._defaultActionArgs(),l)]),i._optionChangedAction(a({},l)),i._disposed||i._optionChanged(l)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),u.isPlainObject(o)||(o={actionValue:o}),n=n||new r(e,a(t,i._defaultActionConfig())),n.execute.call(n,a(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,a,s=this,r=function(){if(!i){if(t=t||{},"string"!=typeof e)throw l.Error("E0008");0===e.indexOf("on")&&(i=s._getEventName(e)),a=s.option(e)}if(n||a||t.beforeExecute||t.afterExecute||s.hasEvent(i)){if(!n){var r=t.beforeExecute;t.beforeExecute=function(e){s.fireEvent(i,e.args),r&&r.apply(s,arguments)},s._suppressDeprecatedWarnings(),n=s._createAction(a,t),s._resumeDeprecatedWarnings()}if(o().wrapActionsBeforeExecute){var c=s.option("beforeActionExecute")||g;n=c(s,n,t)||n}return n.apply(s,arguments)}};if(!o().wrapActionsBeforeExecute){var c=s.option("onActionCreated")||g;r=c(s,r,t)||r}return r},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return t.hasOwnProperty(e)},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=_[t];return i||(i=_[t]=c.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),s=n(o),r=a?i(e,a,!1):e;r&&delete r[s]},a=function(e,o,a){var s,r="";do r&&(r="."+r),r=n(o)+r,o=t(o),s=o?i(e,o,!1):e;while(!s);s[r]=a},s=function(t,n,i,s){if(i){var r=e(t,i);r&&r!==i&&(a(n,r,s),o(n,i))}},r=function(e,t,n,i){if(u.isPlainObject(i))for(var o in i)r(e,t,n+"."+o,i[o]);s(e,t,n,i)},l=function(e,t,n){v[t]||(v[t]=c.compileSetter(t));var i=t.split(/[.\[]/);v[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},h=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==d.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var s;for(s in t)r(o,t,s,t[s]);for(s in t)h(o,s,t[s])}finally{o.endUpdate()}}}()}).include(h);e.exports=w},function(e,t,n){var i=n(9),o=n(15),a=n(14),s=n(12),r=n(25),l=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;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute;if(this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var i=this._executeAction(e),o=e.args[0];if(!o||!o.cancel)return n&&n.call(this._context,e),i}},_validateAction:function(e){var t=this._excludeValidators,n=l.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=l.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});l.executors={},l.registerExecutor=function(e,t){return s.isPlainObject(e)?void i.each(e,l.registerExecutor):void(l.executors[e]=t)},l.unregisterExecutor=function(){var e=i.makeArray(arguments);i.each(e,function(){delete l.executors[this]})},l.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){a.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var c=function(e){return function(t){if(t.args.length){var n=t.args[0],i=n[t.validatingTargetName]||n.element;i&&e(i)&&(t.cancel=!0)}}};l.registerExecutor({designMode:{validate:function(e){o().designMode&&(e.cancel=!0)}},disabled:{validate:c(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:c(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=l},function(e,t,n){var i=n(9),o=n(7),a=n(25),s=n(27),r=n(14),l=n(12),c=n(28),d=c.unwrap,u=c.isWrapped,h=c.assign,p=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},f=function(e,t){return"this"===t?e:e[t]},m=function(e,t,n,i){if("this"===t)throw new o.Error("E4016");var a=e[t];i.unwrapObservables&&u(a)?h(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?d(e):e},v=function(e){if(arguments.length>1&&(e=i.makeArray(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=p(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=_(e,n),a=0;a<t.length&&o;a++){var s=_(o[t[a]],n);!i&&r.isFunction(s)&&(s=s.call(o)),o=s}return o}}return Array.isArray(e)?w(e):r.isFunction(e)?e:void 0},w=function(e){for(var t={},n=0,o=e.length;n<o;n++){var a=e[n];t[a]=v(a)}return function(e,n){var o;return i.each(t,function(t){var i,a,s,r,l=this(e,n);if(void 0!==l){for(i=o||(o={}),a=t.split("."),s=a.length-1,r=0;r<s;r++)i=i[a[r]]={};i[a[r]]=l}}),o}},x=function(e){e=e||"this",e=p(e);var t=e.lastIndexOf("."),n=v(e.substr(0,t)),o=e.substr(1+t);return function(e,t,a){a=g(a);var c=n(e,{functionsAsIs:a.functionsAsIs,unwrapObservables:a.unwrapObservables}),d=f(c,o);a.functionsAsIs||!r.isFunction(d)||u(d)?(d=_(d,a),!a.merge||!l.isPlainObject(t)||void 0!==d&&!l.isPlainObject(d)||t instanceof i.Event?m(c,o,t,a):(d||m(c,o,{},a),c=_(f(c,o),a),s.deepExtendArraySafe(c,t,!1,!0))):c[o](t)}},y=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof a&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=v,t.compileSetter=x,t.toComparable=y},function(e,t,n){var i=n(9),o=n(52),a=n(12).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new o(this))},setEventsStrategy:function(e){this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?i.each(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){var i=n(9),o=n(14).isFunction,a=n(25);e.exports=a.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i.Callbacks(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){i.each(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(12).isPlainObject,s=n(25),r=n(7),l=n(44).resizeCallbacks,c=n(51),d=n(54).sessionStorage,u=n(55),h=n(15),p={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},f={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},m={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=480===window.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:a}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.(\d+)\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},g=s.inherit({
 
}function i(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=_.length;n<i;++n)if(t=_[n].re.exec(e))return _[n].process(t);return null}function o(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function a(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,s=Math.max(e,t,n),r=Math.min(e,t,n),l=s-r;if(a=s,o=0===s?0:1-r/s,s===r)i=0;else switch(s){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function r(e,t,n){var i,o,a,s,r,l,c,d;switch(s=Math.floor(e%360/60),a=(100-t)*n/100,r=(n-a)*(e%60/60),o=a+r,i=n-r,s){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 l(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function c(e,t,n){e=f(e,255),t=f(t,255),n=f(n,255);var i,o,a=Math.max(e,t,n),s=Math.min(e,t,n),r=a+s,c=r/2;if(a===s)i=o=0;else{var d=a-s;o=c>.5?d/(2-r):d/r,i=l(e,t,n,d),i/=6}return{h:v(360*i),s:v(100*o),l:v(100*c)}}function d(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function u(e){return e<0&&(e+=1),e>1&&(e-=1),e}function h(e,t,n){return n=u(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p(e,t,n){var i,o,a;if(e=f(e,360),t=f(t,100),n=f(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,r=2*n-s;i=h(r,s,d("r",e)),o=h(r,s,d("g",e)),a=h(r,s,d("b",e))}return[v(255*i),v(255*o),v(255*a)]}function f(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var g={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"},_=[{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=r(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=p(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],v=Math.round;n.prototype={constructor:n,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 n;return t.r=o(this.r+e),t.g=o(this.g+e),t.b=o(this.b+e),t},blend:function(e,t){var i=e instanceof n?e:new n(e),a=new n;return a.r=o(v(this.r*(1-t)+i.r*t)),a.g=o(v(this.g*(1-t)+i.g*t)),a.b=o(v(this.b*(1-t)+i.b*t)),a},toHex:function(){return a(this.r,this.g,this.b)},getPureColor:function(){var e=r(this.hsv.h,100,100);return new n("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(m(e)&&m(t)&&m(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1},e.exports=n},function(e,t,n){var i=n(9),o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},s=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},r=function(e){return i.map(s(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return r(e).replace(/-/g,"_")},c=function(e,t){return i.map(s(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(r(e).replace(/-/g," "))},u=function(e){return i.map(s(e),function(e){return a(e.toLowerCase())}).join(" ")},h=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()||n in["0","1","2","3","4","5","6","7","8","9"],"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=r,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=h},function(e,t,n){var i=n(9),o=n(19),a=n(37).imageCreator,s=n(14).isFunction,r=n(11).extend,l=n(16).when,c="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",d="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",u="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",h="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",p="\r\nendstream\r\nendobj\r\n",f="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",g=60,_=40,v=function(e,t){return e.length<t?v("0"+e,t):e},w=function(e,t,n){var i=t.width+g,a=t.height+_,s=(.75*i).toFixed(2),r=(.75*a).toFixed(2),l=c.replace("_width_",s).replace("_height_",r),m=d.replace("_width_",s).replace("_height_",r),v=u.replace("_date_",n).replace("_version_",o),w=h.replace("_width_",i).replace("_height_",a).replace("_length_",e.length)+e+p,y=x(l.length,m.length,v.length),b=l+m+v+w,C=f.replace("_length_",b.length);return b+y+C},x=function(e,t,n){return m.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},y=function(){return new Date},b=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([n.buffer],{type:"application/pdf"})},C=function(e){return window.btoa(e)};t.getData=function(e,t,n){var o=a.getImageData(e,r({},t,{format:"jpeg"})),c=i.Deferred();c.done(n),l(o).done(function(e){var n=w(e,t,y()),i=s(window.Blob)?b(n):C(n);c.resolve(i)})}},function(e,t,n){var i=n(9),o=n(14),a=n(42).getSvgMarkup,s=n(16).when;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===n.DONE&&t(200===n.status&&n.response?n.response:!1)},n.open("GET",e,!0),n.responseType="arraybuffer",n.send()},_loadImages:function(){var e=this;i.each(e._imageArray,function(t){var n=new i.Deferred;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,a="",s=new Uint8Array(i),r=s.byteLength;for(o=0;o<r;o++)a+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+btoa(a),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),i.each(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),s.apply(i,this._imageDeferreds)},getData:function(e,t){var n,s=this,r='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',l=i.Deferred(),c=new DOMParser,d=c.parseFromString(e,"image/svg+xml"),u=d.childNodes[0],h=i(u);return h.css("background-color",t.backgroundColor),n=r+a(h.get(0)),s._prepareImages(u).done(function(){i.each(s._imageArray,function(e,t){n=n.split(e).join(t)}),l.resolve(o.isFunction(window.Blob)?s._getBlob(n):s._getBase64(n))}),l},_getBlob:function(e){return new Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return window.btoa(e)}},t.getData=function(e,n,i){t.svgCreator.getData(e,n).done(i)}},function(e,t){function n(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function i(e){var t=!0;return e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function o(e){return e.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}t.getSvgMarkup=function(e){return i(o(n(e)))}},function(e,t,n){var i=n(9),o=n(11).extend,a=n(15),s=n(7),r=n(44).resizeCallbacks,l=n(14),c=n(26).inArray,d=n(45),u=n(48),h=u.abstract,p="dx-rtl",f="dx-visibility-change-handler",m="VisibilityChange",g=u.inherit({_getDefaultOptions:function(){return o(this.callBase(),{width:void 0,height:void 0,rtlEnabled:a().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),d.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:h,_dimensionChanged:h,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);r.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==h},_render:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_renderElementAttributes:function(){var e=o({},this.option("elementAttr")),t=e.class;delete e.class,this.element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&(this.element().addClass(f),this._attachVisibilityChangeHandlers())},_renderDimensions:function(){var e=this.option("width"),t=this.option("height"),n=this.element();n.outerWidth(e),n.outerHeight(t)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+m;e.element().off(t).on(t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){var e=this,t="dxhiding."+this.NAME+m,n="dxshown."+this.NAME+m;e._isHidden=!e._isVisible(),e.element().off(t).on(t,function(){e._checkVisibilityChanged("hiding")}).off(n).on(n,function(){e._checkVisibilityChanged("shown")})},_isVisible:function(){return this.element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==h},_clean:l.noop,_modelByElement:function(){var e=this.option("modelByElement")||l.noop;return e(this.element())},_invalidate:function(){if(!this._updateLockCount)throw s.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._render()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&r.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.element().toggleClass(p,e)},_createComponent:function(e,t,n){var a=this;n=n||{};var s=l.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),r=a.option("nestedComponentOptions")||l.noop;a._extendConfig(n,o({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},r(this)));var d;if(l.isString(t)){var u=i(e)[t](n);d=u[t]("instance")}else e&&(d=t.getInstance(e),d?d.option(n):d=new t(e,n));if(d){var h=function(e){c(e.name,s)>=0&&d.option(e.name,e.value)};a.on("optionChanged",h),d.on("disposing",function(){a.off("optionChanged",h)})}return d},_extendConfig:function(e,t){i.each(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return o(this.callBase(),{context:this._modelByElement(this.element())})},_defaultActionArgs:function(){var e=this.element(),t=this._modelByElement(this.element());return o(this.callBase(),{element:e,model:t})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":case"elementAttr":this._invalidate();break;case"disabled":case"integrationOptions":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}});g.getInstance=function(e){return d.getInstanceByElement(i(e),this)},g.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=g},function(e,t,n){var i=n(9),o=function(){var e,t=i.Callbacks(),n=i(window),o=!1,a=t.add,s=t.remove,r=function(){return{width:n.width(),height:n.height()}},l=function(){var n=r();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,setTimeout(function(){t.fire(i)})}};return e=r(),t.add=function(){var e=a.apply(t,arguments);return!o&&t.has()&&(n.on("resize",l),o=!0),e},t.remove=function(){var e=s.apply(t,arguments);return!t.has()&&o&&(n.off("resize",l),o=!1),e},t}(),a=function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},s=function(e){var t=e||a;return t(i(window).width())};t.resizeCallbacks=o,t.defaultScreenFactorFunc=a,t.getCurrentScreenFactor=s},function(e,t,n){var i=n(9),o=n(46),a=n(14),s=n(47),r="dxComponents",l="dxPrivateComponent",c=new o,d=0,u=t.name=function(e,t){if(a.isDefined(t))return void c.set(e,t);if(!c.has(e)){var n=l+d++;return c.set(e,n),n}return c.get(e)};t.attachInstanceToElement=function(e,t,n){var o=i.data(e.get(0)),a=u(t.constructor);o[a]=t,n&&e.one(s,function(){n.call(t)}),o[r]||(o[r]=[]),o[r].push(a)},t.getInstanceByElement=function(e,t){var n=u(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(26).inArray,o=window.WeakMap;o||(o=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1}}),e.exports=o},function(e,t,n){var i=n(9),o=n(10),a=o.cleanData,s=i.event.special,r="dxremove",l="dxRemoveEvent";o.cleanData=function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n.removeProp(l),n.triggerHandler(r))}return a(e)},s[r]={noBubble:!0,setup:function(){i(this).prop(l,!0)}},e.exports=r},function(e,t,n){var i=n(9),o=n(15),a=n(11).extend,s=n(25),r=n(49),l=n(7),c=n(50),d=n(14),u=n(12),h=n(51),p=n(45),f=n(53),m=d.isFunction,g=d.noop,_={},v={},w=s.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){return i.map(this._deprecatedOptions,function(t,n){return e===t.alias?n:void 0})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);a(!0,this._options,n);for(var i in this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=f.current(),o=function(e,t){return t=i.makeArray(t),1===t.length&&u.isEmptyObject(t[0])||d.findBestMatches(e,t).length>0},s=0;s<e.length;s++){var r,l=e[s],c=l.device||{};r=m(c)?c(n):o(n,c),r&&a(t,l.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=m(t)&&m(n)?t.toString()===n.toString():d.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=p.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||i.Callbacks(),this._disposingCallbacks=e._disposingCallbacks||i.Callbacks(),this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=c.toComparable(t,!0),n=c.toComparable(n,!0),t&&n&&t.jquery&&n.jquery)return n.is(t);var i=t!==t,o=n!==n;return!(!i||!o)||(null===t||"object"!=typeof t)&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&!this._initializing&&!this._initialized){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";l.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:g,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),s=0;s<o.length;s++){var r=o[s],l={name:r.split(/[.\[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[a(i._defaultActionArgs(),l)]),i._optionChangedAction(a({},l)),i._disposed||i._optionChanged(l)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),u.isPlainObject(o)||(o={actionValue:o}),n=n||new r(e,a(t,i._defaultActionConfig())),n.execute.call(n,a(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,a,s=this,r=function(){if(!i){if(t=t||{},"string"!=typeof e)throw l.Error("E0008");0===e.indexOf("on")&&(i=s._getEventName(e)),a=s.option(e)}if(n||a||t.beforeExecute||t.afterExecute||s.hasEvent(i)){if(!n){var r=t.beforeExecute;t.beforeExecute=function(e){s.fireEvent(i,e.args),r&&r.apply(s,arguments)},s._suppressDeprecatedWarnings(),n=s._createAction(a,t),s._resumeDeprecatedWarnings()}if(o().wrapActionsBeforeExecute){var c=s.option("beforeActionExecute")||g;n=c(s,n,t)||n}return n.apply(s,arguments)}};if(!o().wrapActionsBeforeExecute){var c=s.option("onActionCreated")||g;r=c(s,r,t)||r}return r},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return t.hasOwnProperty(e)},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=_[t];return i||(i=_[t]=c.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),s=n(o),r=a?i(e,a,!1):e;r&&delete r[s]},a=function(e,o,a){var s,r="";do r&&(r="."+r),r=n(o)+r,o=t(o),s=o?i(e,o,!1):e;while(!s);s[r]=a},s=function(t,n,i,s){if(i){var r=e(t,i);r&&r!==i&&(a(n,r,s),o(n,i))}},r=function(e,t,n,i){if(u.isPlainObject(i))for(var o in i)r(e,t,n+"."+o,i[o]);s(e,t,n,i)},l=function(e,t,n){v[t]||(v[t]=c.compileSetter(t));var i=t.split(/[.\[]/);v[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},h=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==d.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var s;for(s in t)r(o,t,s,t[s]);for(s in t)h(o,s,t[s])}finally{o.endUpdate()}}}()}).include(h);e.exports=w},function(e,t,n){var i=n(9),o=n(15),a=n(14),s=n(12),r=n(25),l=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;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute;if(this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var i=this._executeAction(e),o=e.args[0];if(!o||!o.cancel)return n&&n.call(this._context,e),i}},_validateAction:function(e){var t=this._excludeValidators,n=l.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=l.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});l.executors={},l.registerExecutor=function(e,t){return s.isPlainObject(e)?void i.each(e,l.registerExecutor):void(l.executors[e]=t)},l.unregisterExecutor=function(){var e=i.makeArray(arguments);i.each(e,function(){delete l.executors[this]})},l.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){a.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var c=function(e){return function(t){if(t.args.length){var n=t.args[0],i=n[t.validatingTargetName]||n.element;i&&e(i)&&(t.cancel=!0)}}};l.registerExecutor({designMode:{validate:function(e){o().designMode&&(e.cancel=!0)}},disabled:{validate:c(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:c(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=l},function(e,t,n){var i=n(9),o=n(7),a=n(25),s=n(27),r=n(14),l=n(12),c=n(28),d=c.unwrap,u=c.isWrapped,h=c.assign,p=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},f=function(e,t){return"this"===t?e:e[t]},m=function(e,t,n,i){if("this"===t)throw new o.Error("E4016");var a=e[t];i.unwrapObservables&&u(a)?h(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?d(e):e},v=function(e){if(arguments.length>1&&(e=i.makeArray(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=p(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=_(e,n),a=0;a<t.length&&o;a++){var s=_(o[t[a]],n);!i&&r.isFunction(s)&&(s=s.call(o)),o=s}return o}}return Array.isArray(e)?w(e):r.isFunction(e)?e:void 0},w=function(e){for(var t={},n=0,o=e.length;n<o;n++){var a=e[n];t[a]=v(a)}return function(e,n){var o;return i.each(t,function(t){var i,a,s,r,l=this(e,n);if(void 0!==l){for(i=o||(o={}),a=t.split("."),s=a.length-1,r=0;r<s;r++)i=i[a[r]]={};i[a[r]]=l}}),o}},x=function(e){e=e||"this",e=p(e);var t=e.lastIndexOf("."),n=v(e.substr(0,t)),o=e.substr(1+t);return function(e,t,a){a=g(a);var c=n(e,{functionsAsIs:a.functionsAsIs,unwrapObservables:a.unwrapObservables}),d=f(c,o);a.functionsAsIs||!r.isFunction(d)||u(d)?(d=_(d,a),!a.merge||!l.isPlainObject(t)||void 0!==d&&!l.isPlainObject(d)||t instanceof i.Event?m(c,o,t,a):(d||m(c,o,{},a),c=_(f(c,o),a),s.deepExtendArraySafe(c,t,!1,!0))):c[o](t)}},y=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof a&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=v,t.compileSetter=x,t.toComparable=y},function(e,t,n){var i=n(9),o=n(52),a=n(12).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new o(this))},setEventsStrategy:function(e){this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?i.each(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){var i=n(9),o=n(14).isFunction,a=n(25);e.exports=a.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i.Callbacks(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){i.each(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(12).isPlainObject,s=n(25),r=n(7),l=n(44).resizeCallbacks,c=n(51),d=n(54).sessionStorage,u=n(55),h=n(15),p={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},f={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},m={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=480===window.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:a}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.(\d+)\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},g=s.inherit({
 
ctor:function(e){this._window=e&&e.window||window,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=i.Callbacks(),this._recalculateOrientation(),l.add(this._recalculateOrientation.bind(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({},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]),_.isSimulator()&&t.push("dx-simulator"),h().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||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}),a(e))return this._fromConfig(e);var t;if(e){if(t=p[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=d();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=o({},f,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(t,n)},_fromUA:function(e){var t;if(i.each(m,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),o=f;return o.mac=n,o},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(c),_=new g;u.changeCallback.add(function(e,t){_.detachCssClasses(t),_.attachCssClasses(e)}),_.isForced()||"win"!==_.current().platform||_.current({version:[10]}),e.exports=_},function(e,t){var n=function(){var e;try{e=window.sessionStorage}catch(e){}return e};t.sessionStorage=n},function(e,t,n){var i=n(9),o=n(56),a=i.Callbacks(),s=i(),r=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,l=r();e=o?n:i("body"),a.fire(o?r():i(),l)}}();o(function(){r(".dx-viewport")}),t.value=r,t.changeCallback=a,t.originalViewPort=function(){return s}},function(e,t){e.exports=function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return void e();var t=function(){e(),document.removeEventListener("DOMContentLoaded",t)};document.addEventListener("DOMContentLoaded",t)}},function(e,t,n){var i=n(9),o=n(10),a=n(7),s=n(58),r=n(45),l=new s,c=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),l.fire(e,n)};c.callbacks=l;var d=function(e,t){i.fn[e]=o.fn[e]=function(n){var o,s="string"==typeof n;if(s){var r=n,l=i.makeArray(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var i=n[r],s=i.apply(n,l);void 0===o&&(o=s)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),o=this;return o}};l.add(d),e.exports=c},function(e,t,n){var i=n(9),o=function(){var e=[],t=i.Callbacks();this.add=function(n){i.each(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=o},function(e,t){var n=1e3/60,i=function(e){return this.setTimeout(e,n)},o=function(e){this.clearTimeout(e)},a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,s=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;if(a&&s&&(i=a,o=s),a&&!s){var r={};i=function(e){var t=a.call(window,function(){try{if(t in r)return;e.apply(this,arguments)}finally{delete r[t]}});return t},o=function(e){r[e]=!0}}t.requestAnimationFrame=i.bind(window),t.cancelAnimationFrame=o.bind(window)},function(e,t,n){var i=n(9),o=n(11).extend,a=n(44).resizeCallbacks,s=n(61),r=n(53),l=function(e){e=o({},e);var t=r.real(),n=e.allowZoom,l=e.allowPan,c="allowSelection"in e?e.allowSelection:"generic"===t.platform,d="meta[name=viewport]";i(d).length||i("<meta />").attr("name","viewport").appendTo("head");var u=["width=device-width"],h=[];if(n?h.push("pinch-zoom"):u.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),l&&h.push("pan-x","pan-y"),l||n?i("html").css("-ms-overflow-style","-ms-autohiding-scrollbar"):i("html, body").css({"-ms-content-zooming":"none","-ms-user-select":"none",overflow:"hidden"}),!c&&s.supportProp("user-select")&&i(".dx-viewport").css(s.styleProp("user-select"),"none"),i(d).attr("content",u.join()),i("html").css("-ms-touch-action",h.join(" ")||"none"),t=r.real(),!s.touch||"win"===t.platform&&10===t.version[0]||i(document).off(".dxInitMobileViewport").on("dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,a=!l&&1===t&&!e.isScrollingEvent;i&&(o||a)&&e.preventDefault()}),t.ios){var p="file:"===document.location.protocol;p||a.add(function(){var e=i(window).width();i("body").width(e)})}t.android&&a.add(function(){setTimeout(function(){document.activeElement.scrollIntoViewIfNeeded()})})};t.initMobileViewport=l},function(e,t,n){var i=n(39),o=n(26).inArray,a=n(53),s=i.camelize,r=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=document.createElement("dx").style,d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(e,t){e=s(e,!0);for(var n,i=0,o=r.length;i<o;i++){var a=r[i],l=a+e,c=s(l);if(n=t(c,a),void 0===n&&(n=t(l,a)),void 0!==n)break}return n},h=function(e){return u(e,function(e){if(e in c)return e})},p=function(e){return u(e,function(e,t){if(e in c)return l[t]})},f=function(e){return!!h(e)},m=function(){var e=a.real(),t=e.platform,n=e.version,i=n&&n[0]<4&&"android"===t,s=!i&&o(t,["ios","android","win"])>-1||e.mac;return s},g=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}},_="ontouchstart"in window&&!("callPhantom"in window),v=!!window.navigator.pointerEnabled||!!window.navigator.msPointerEnabled,w=!!window.navigator.maxTouchPoints||!!window.navigator.msMaxTouchPoints;t.touchEvents=_,t.pointerEvents=v,t.touch=_||v&&w,t.transition=f("transition"),t.transitionEndEventName=d[h("transition")],t.animation=f("animation"),t.nativeScrolling=m(),t.styleProp=h,t.stylePropPrefix=p,t.supportProp=f,t.hasKo=!!window.ko,t.inputType=g},function(e,t,n){var i=n(9),o=n(7),a=n(26).inArray,s=n(14),r=function(){var e=document.activeElement;e&&e!==document.body&&e.blur&&e.blur()},l=function(){var e=window.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},c=function(e,t){var n=i(e),o=i(t);if(n[0]===o[0])return n[0];for(var a=n.parents(),s=o.parents(),r=Math.min(a.length,s.length),l=-r;l<0;l++)if(a.get(l)===s.get(l))return a.get(l)},d=function(e){var t=".dx-visibility-change-handler";return function(n){for(var o=i(n||"body"),a=o.filter(t).add(o.find(t)),s=0;s<a.length;s++)i(a[s]).triggerHandler(e)}},u=function(){var e=0;return function(t){return(t||"")+e++}}(),h="data-options",p=function(e){var t,n=i(e).attr(h);"{"!==i.trim(n).charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw o.Error("E3018",e,n)}return t},f=function(e,t){var n=[],o="["+h+"]",s=e.find(o).add(e.filter(o));return s.each(function(e,o){var s=i(o),r=p(o);for(var l in r)(!t||a(l,t)>-1)&&s[l]&&(s[l](r[l]),n.push(s[l]("instance")))}),n},m=function(e){if(!window.WinJS)return i(e);var t=i("<div />");return window.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},g=function(e){var t=s.isDefined(e)&&(e.nodeType||e.jquery)?i(e):i("<div>").html(e).contents();return 1===t.length&&(t.is("script")?t=g(t.html()):t.is("table")&&(t=t.children("tbody").contents())),t},_=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},v=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=r,t.createMarkupFromString=m,t.triggerShownEvent=d("dxshown"),t.triggerHidingEvent=d("dxhiding"),t.triggerResizeEvent=d("dxresize"),t.getElementOptions=p,t.createComponents=f,t.normalizeTemplateElement=g,t.clearSelection=l,t.uniqueId=u,t.closestCommonParent=c,t.clipboardText=v,t.toggleAttr=_},function(e,t,n){function i(e){function t(){for(;s.length;){r=!0;var e=s.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}r=!1}function n(n,i){e?(s[0]&&i&&i(s[0]),s=[n]):s.push(n),r||t()}function i(){return r}var s=[],r=!1;return{add:n,busy:i}}var o=n(7),a=n(16).when;t.create=i,t.enqueue=i().add},function(e,t,n){function i(e){return x[w(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=c(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 a=n(9),s=n(14),r=n(39).camelize,l=s.isObject,c=s.isString,d=s.isDate,u=s.isDefined,h=["millisecond","second","minute","hour","day","week","month","quarter","year"],p=function(e){switch(e){case"millisecond":return 1;case"second":return 1e3*p("millisecond");case"minute":return 60*p("second");case"hour":return 60*p("minute");case"day":return 24*p("hour");case"week":return 7*p("day");case"month":return 30*p("day");case"quarter":return 3*p("month");case"year":return 365*p("day");default:return 0}},f=function(e,t,n){var i=t.getTime()-e.getTime(),o=p(n)||1;return Math.floor(i/o)},m=function(e,t){var n=w(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},g=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/p(i)),n>0&&(a[i+"s"]=n,e-=v(i,n));return a},_=function(e){var t=0;return l(e)&&a.each(e,function(e,n){t+=v(e.substr(0,e.length-1),n)}),c(e)&&(t=v(e,1)),t},v=function(e,t){return p(e)*t},w=function(e){var t,n=-1;return c(e)?e:l(e)?(a.each(e,function(e,i){for(t=0;t<h.length;t++)i&&(e===h[t]+"s"||e===h[t])&&n<t&&(n=t)}),h[n]):""},x={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},y=function(e){return Math.floor(e/3)},b=function(e){return 3*y(e)},C=function(e,t,n){e=new Date(e.getTime());var i,o=new Date(e.getTime()),a=w(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=b(e.getMonth()),e.getMonth()!==i&&e.setMonth(i),e.setDate(1),e.setHours(0,0,0,0)}return n&&"hour"!==a&&"minute"!==a&&"second"!==a&&J(o,e),e},k=function(e){return ie.correctDateWithUnitBeginning(e,"day")},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(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},a.each(n,function(e,t){t&&i++}),n.count=i,n},S=function(e,t,n){var i=n?-1:1;return d(e)?o(e,t,i):e+t*i},D=function(e,t,n){var i,o=[];for(o.push(d(e)?new Date(e.getTime()):e),i=e;i<t;)i=S(i,n),o.push(i);return o},T=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(G(t),t.getMonth(),t.getDate()):"century"===e?new Date(q(t),t.getMonth(),t.getDate()):void 0},E=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),M(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(G(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(q(t)+90,t.getMonth(),t.getDate()):void 0},A=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(G(t)),"century"===e&&n.setFullYear(q(t)),n))},B=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),M(t));return"month"===e?n:(n.setMonth(11),n.setDate(M(n)),"year"===e?n:("decade"===e&&n.setFullYear(G(t)+9),"century"===e&&n.setFullYear(q(t)+99),n))},M=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},R=function(e,t,n){return ie[r("same "+e)](t,n)},O=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},P=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},V=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},F=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},L=function(e,t){return z(e,t)&&e.getDate()===t.getDate()},z=function(e,t){return N(e,t)&&e.getMonth()===t.getMonth()},N=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},W=function(e,t){if(u(e)&&u(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},$=function(e,t){if(u(e)&&u(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},q=function(e){return e&&e.getFullYear()-e.getFullYear()%100},G=function(e){return e&&e.getFullYear()-e.getFullYear()%10},j=function(){return"yyyy/MM/dd"},K=function(e){if(u(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},U=function(e){if(u(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},Q=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},Y=function(e,t){var n=ie.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},Z=function(e,t,n,i){return"date"===i&&(t=t&&ie.correctDateWithUnitBeginning(t,"day"),n=n&&ie.correctDateWithUnitBeginning(n,"day"),e=e&&ie.correctDateWithUnitBeginning(e,"day")),X(e,t,n)===e},X=function(e,t,n){var i=e;return u(e)?(u(t)&&e<t&&(i=t),u(n)&&e>n&&(i=n),i):e},J=function(e,t){if(u(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},ee=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},te=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},ne=function(e){return new Date(e)},ie={dateUnitIntervals:h,convertMillisecondsToDateUnits:g,dateToMilliseconds:_,getNextDateUnit:m,convertDateUnitToMilliseconds:v,getDateUnitInterval:w,getDateFormatByTickInterval:i,getDatesDifferences:I,correctDateWithUnitBeginning:C,trimTime:k,addDateInterval:o,addInterval:S,getSequenceByInterval:D,getDateIntervalByString:H,sameDate:L,sameMonthAndYear:z,sameMonth:z,sameYear:N,sameDecade:W,sameCentury:$,sameView:R,getDifferenceInMonth:V,getDifferenceInMonthForCells:F,getFirstYearInDecade:G,getFirstDecadeInCentury:q,getShortDateFormat:j,getViewFirstCellDate:T,getViewLastCellDate:E,getViewDown:P,getViewUp:O,getLastMonthDay:M,getLastMonthDate:U,getFirstMonthDate:K,getFirstWeekDate:Q,normalizeDateByWeek:Y,getQuarter:y,getFirstQuarterMonth:b,dateInRange:Z,roundToHour:ee,normalizeDate:X,getViewMinBoundaryDate:A,getViewMaxBoundaryDate:B,fixTimezoneGap:J,getTimezonesDifference:te,makeDate:ne,getDatesInterval:f};e.exports=ie},function(e,t,n){var i=n(9),o=i.Callbacks();e.exports=function(){o.fire()},e.exports.processCallback=o},function(e,t,n){var i=n(26).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(14),o=n(12),a=n(64),s=n(32),r=n(33),l=n(29),c=n(13).logger;n(36),e.exports=l({format:function(e,t,n){var a=i.isString(t)&&""!==t||o.isPlainObject(t)||i.isFunction(t),l=i.isNumeric(e)||i.isDate(e);return a&&l?i.isFunction(t)?t(e):(void 0!==n&&c.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),i.isNumeric(e)?s.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e){var t=[];if(e.millisecond&&t.push("millisecond"),(e.hour||e.minute||e.second)&&t.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t.unshift("shortdate"),this._normalizeFormat(t);if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day)return t.unshift("monthandday"),this._normalizeFormat(t);if(e.month)return"month";if(e.day){var n=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};return t.unshift(n),this._normalizeFormat(t)}return this._normalizeFormat(t)},getDateFormatByTicks:function(e){var t,n,i,o;if(e.length>1)for(n=a.getDatesDifferences(e[0],e[1]),o=1;o<e.length-1;o++)i=a.getDatesDifferences(e[o],e[o+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var o,s,r,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=i.isString(n)?n.toLowerCase():n,s=a.getDatesDifferences(e,t),e!==t&&d(s,e>t?t:e,e>t?e:t),r=a.getDateUnitInterval(s),c(s,r,!0),r=a.getDateUnitInterval(n||"second"),c(s,r,!1),s[l[r]||r]=!0,o=this.getDateFormatByDifferences(s)}})},function(e,t,n){var i=n(9),o=n(48),a=n(11).extend,s=n(53),r=n(69),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return s.current().android||s.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,s=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===s?l.from={left:a,opacity:e}:"backward"===s?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},r.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,s=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===s?l.to={left:-a,opacity:e}:"backward"===s?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},r.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",r.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",r.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",r.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",r.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];i.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,t=[];i.each(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return s.current().android||s.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!s.current().android&&!s.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!s.current().android&&!s.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return s.current().android||s.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},function(e,t,n){var i=n(9),o=n(7),a=n(11).extend,s=n(14),r=n(12),l=n(70),c=n(59),d=n(61),u=n(71),h=n(47),p=n(72),f=n(16).when,m=d.transitionEndEventName+".dxFX",g=p.addNamespace(h,"dxFX"),_=s.isFunction,v=r.isPlainObject,w=s.noop,x=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,y=/^([+-])=(.*)/i,b="dxAnimData",C="dxAnimQueue",k="transform",I={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):re(e,t.from);var n=this,o=i.Deferred(),a=t.cleanupWhen;t.transitionAnimation={deferred:o,finish:function(){n._finishTransition(e),a?f(o,a).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),o.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){o.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,o,a=this,s=i.now()+t.delay,r=i.Deferred(),l=i.Deferred(),c=i.Deferred();return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(o),e.off(m),e.off(g)},e.one(m,function(){i.now()-s>=t.duration&&l.reject()}).off(g).on(g,function(){a.stop(e,t),r.reject()}),o=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ce._simulatedTransitionEndDelay),f(l,c).fail(function(){r.resolve()}.bind(this))}),r.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&&re(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(v(t.to)&&i.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},S={initAnimation:function(e,t){re(e,t.from)},animate:function(e,t){var n=i.Deferred(),o=this;return t?(i.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=o._normalizeValue(e.css(n)))}),t.to[k]&&(t.from[k]=o._parseTransform(t.from[k]),t.to[k]=o._parseTransform(t.to[k])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:B(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),c.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=a({},this.currentValue);n[k]&&(n[k]=i.map(n[k],function(e,t){return"translate"===t?l.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(){o._startAnimation(e,t)},t.delay)):o._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){e.off(g).on(g,function(){t.frameAnimation&&c.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return i.each(e.match(/(\w|\d)+\([^\)]*\)\s*/g),function(e,n){var i=l.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&&(c.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),
 
ctor:function(e){this._window=e&&e.window||window,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=i.Callbacks(),this._recalculateOrientation(),l.add(this._recalculateOrientation.bind(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({},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]),_.isSimulator()&&t.push("dx-simulator"),h().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||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}),a(e))return this._fromConfig(e);var t;if(e){if(t=p[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=d();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=o({},f,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(t,n)},_fromUA:function(e){var t;if(i.each(m,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),o=f;return o.mac=n,o},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(c),_=new g;u.changeCallback.add(function(e,t){_.detachCssClasses(t),_.attachCssClasses(e)}),_.isForced()||"win"!==_.current().platform||_.current({version:[10]}),e.exports=_},function(e,t){var n=function(){var e;try{e=window.sessionStorage}catch(e){}return e};t.sessionStorage=n},function(e,t,n){var i=n(9),o=n(56),a=i.Callbacks(),s=i(),r=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,l=r();e=o?n:i("body"),a.fire(o?r():i(),l)}}();o(function(){r(".dx-viewport")}),t.value=r,t.changeCallback=a,t.originalViewPort=function(){return s}},function(e,t){e.exports=function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return void e();var t=function(){e(),document.removeEventListener("DOMContentLoaded",t)};document.addEventListener("DOMContentLoaded",t)}},function(e,t,n){var i=n(9),o=n(10),a=n(7),s=n(58),r=n(45),l=new s,c=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),l.fire(e,n)};c.callbacks=l;var d=function(e,t){i.fn[e]=o.fn[e]=function(n){var o,s="string"==typeof n;if(s){var r=n,l=i.makeArray(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var i=n[r],s=i.apply(n,l);void 0===o&&(o=s)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),o=this;return o}};l.add(d),e.exports=c},function(e,t,n){var i=n(9),o=function(){var e=[],t=i.Callbacks();this.add=function(n){i.each(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=o},function(e,t){var n=1e3/60,i=function(e){return this.setTimeout(e,n)},o=function(e){this.clearTimeout(e)},a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,s=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;if(a&&s&&(i=a,o=s),a&&!s){var r={};i=function(e){var t=a.call(window,function(){try{if(t in r)return;e.apply(this,arguments)}finally{delete r[t]}});return t},o=function(e){r[e]=!0}}t.requestAnimationFrame=i.bind(window),t.cancelAnimationFrame=o.bind(window)},function(e,t,n){var i=n(9),o=n(11).extend,a=n(44).resizeCallbacks,s=n(61),r=n(53),l=function(e){e=o({},e);var t=r.real(),n=e.allowZoom,l=e.allowPan,c="allowSelection"in e?e.allowSelection:"generic"===t.platform,d="meta[name=viewport]";i(d).length||i("<meta />").attr("name","viewport").appendTo("head");var u=["width=device-width"],h=[];if(n?h.push("pinch-zoom"):u.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),l&&h.push("pan-x","pan-y"),l||n?i("html").css("-ms-overflow-style","-ms-autohiding-scrollbar"):i("html, body").css({"-ms-content-zooming":"none","-ms-user-select":"none",overflow:"hidden"}),!c&&s.supportProp("user-select")&&i(".dx-viewport").css(s.styleProp("user-select"),"none"),i(d).attr("content",u.join()),i("html").css("-ms-touch-action",h.join(" ")||"none"),t=r.real(),!s.touch||"win"===t.platform&&10===t.version[0]||i(document).off(".dxInitMobileViewport").on("dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,a=!l&&1===t&&!e.isScrollingEvent;i&&(o||a)&&e.preventDefault()}),t.ios){var p="file:"===document.location.protocol;p||a.add(function(){var e=i(window).width();i("body").width(e)})}t.android&&a.add(function(){setTimeout(function(){document.activeElement.scrollIntoViewIfNeeded()})})};t.initMobileViewport=l},function(e,t,n){var i=n(39),o=n(26).inArray,a=n(53),s=i.camelize,r=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=document.createElement("dx").style,d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(e,t){e=s(e,!0);for(var n,i=0,o=r.length;i<o;i++){var a=r[i],l=a+e,c=s(l);if(n=t(c,a),void 0===n&&(n=t(l,a)),void 0!==n)break}return n},h=function(e){return u(e,function(e){if(e in c)return e})},p=function(e){return u(e,function(e,t){if(e in c)return l[t]})},f=function(e){return!!h(e)},m=function(){var e=a.real(),t=e.platform,n=e.version,i=n&&n[0]<4&&"android"===t,s=!i&&o(t,["ios","android","win"])>-1||e.mac;return s},g=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}},_="ontouchstart"in window&&!("callPhantom"in window),v=!!window.navigator.pointerEnabled||!!window.navigator.msPointerEnabled,w=!!window.navigator.maxTouchPoints||!!window.navigator.msMaxTouchPoints;t.touchEvents=_,t.pointerEvents=v,t.touch=_||v&&w,t.transition=f("transition"),t.transitionEndEventName=d[h("transition")],t.animation=f("animation"),t.nativeScrolling=m(),t.styleProp=h,t.stylePropPrefix=p,t.supportProp=f,t.hasKo=!!window.ko,t.inputType=g},function(e,t,n){var i=n(9),o=n(7),a=n(26).inArray,s=n(14),r=function(){var e=document.activeElement;e&&e!==document.body&&e.blur&&e.blur()},l=function(){var e=window.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},c=function(e,t){var n=i(e),o=i(t);if(n[0]===o[0])return n[0];for(var a=n.parents(),s=o.parents(),r=Math.min(a.length,s.length),l=-r;l<0;l++)if(a.get(l)===s.get(l))return a.get(l)},d=function(e){var t=".dx-visibility-change-handler";return function(n){for(var o=i(n||"body"),a=o.filter(t).add(o.find(t)),s=0;s<a.length;s++)i(a[s]).triggerHandler(e)}},u=function(){var e=0;return function(t){return(t||"")+e++}}(),h="data-options",p=function(e){var t,n=i(e).attr(h);"{"!==i.trim(n).charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw o.Error("E3018",e,n)}return t},f=function(e,t){var n=[],o="["+h+"]",s=e.find(o).add(e.filter(o));return s.each(function(e,o){var s=i(o),r=p(o);for(var l in r)(!t||a(l,t)>-1)&&s[l]&&(s[l](r[l]),n.push(s[l]("instance")))}),n},m=function(e){if(!window.WinJS)return i(e);var t=i("<div />");return window.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},g=function(e){var t=s.isDefined(e)&&(e.nodeType||e.jquery)?i(e):i("<div>").html(e).contents();return 1===t.length&&(t.is("script")?t=g(t.html()):t.is("table")&&(t=t.children("tbody").contents())),t},_=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},v=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=r,t.createMarkupFromString=m,t.triggerShownEvent=d("dxshown"),t.triggerHidingEvent=d("dxhiding"),t.triggerResizeEvent=d("dxresize"),t.getElementOptions=p,t.createComponents=f,t.normalizeTemplateElement=g,t.clearSelection=l,t.uniqueId=u,t.closestCommonParent=c,t.clipboardText=v,t.toggleAttr=_},function(e,t,n){function i(e){function t(){for(;s.length;){r=!0;var e=s.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}r=!1}function n(n,i){e?(s[0]&&i&&i(s[0]),s=[n]):s.push(n),r||t()}function i(){return r}var s=[],r=!1;return{add:n,busy:i}}var o=n(7),a=n(16).when;t.create=i,t.enqueue=i().add},function(e,t,n){function i(e){return x[w(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=c(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 a=n(9),s=n(14),r=n(39).camelize,l=s.isObject,c=s.isString,d=s.isDate,u=s.isDefined,h=["millisecond","second","minute","hour","day","week","month","quarter","year"],p=function(e){switch(e){case"millisecond":return 1;case"second":return 1e3*p("millisecond");case"minute":return 60*p("second");case"hour":return 60*p("minute");case"day":return 24*p("hour");case"week":return 7*p("day");case"month":return 30*p("day");case"quarter":return 3*p("month");case"year":return 365*p("day");default:return 0}},f=function(e,t,n){var i=t.getTime()-e.getTime(),o=p(n)||1;return Math.floor(i/o)},m=function(e,t){var n=w(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},g=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/p(i)),n>0&&(a[i+"s"]=n,e-=v(i,n));return a},_=function(e){var t=0;return l(e)&&a.each(e,function(e,n){t+=v(e.substr(0,e.length-1),n)}),c(e)&&(t=v(e,1)),t},v=function(e,t){return p(e)*t},w=function(e){var t,n=-1;return c(e)?e:l(e)?(a.each(e,function(e,i){for(t=0;t<h.length;t++)i&&(e===h[t]+"s"||e===h[t])&&n<t&&(n=t)}),h[n]):""},x={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},y=function(e){return Math.floor(e/3)},b=function(e){return 3*y(e)},C=function(e,t,n){e=new Date(e.getTime());var i,o=new Date(e.getTime()),a=w(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=b(e.getMonth()),e.getMonth()!==i&&e.setMonth(i),e.setDate(1),e.setHours(0,0,0,0)}return n&&"hour"!==a&&"minute"!==a&&"second"!==a&&J(o,e),e},k=function(e){return ie.correctDateWithUnitBeginning(e,"day")},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(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},a.each(n,function(e,t){t&&i++}),n.count=i,n},S=function(e,t,n){var i=n?-1:1;return d(e)?o(e,t,i):e+t*i},D=function(e,t,n){var i,o=[];for(o.push(d(e)?new Date(e.getTime()):e),i=e;i<t;)i=S(i,n),o.push(i);return o},T=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(G(t),t.getMonth(),t.getDate()):"century"===e?new Date(q(t),t.getMonth(),t.getDate()):void 0},E=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),M(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(G(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(q(t)+90,t.getMonth(),t.getDate()):void 0},A=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(G(t)),"century"===e&&n.setFullYear(q(t)),n))},B=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),M(t));return"month"===e?n:(n.setMonth(11),n.setDate(M(n)),"year"===e?n:("decade"===e&&n.setFullYear(G(t)+9),"century"===e&&n.setFullYear(q(t)+99),n))},M=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},R=function(e,t,n){return ie[r("same "+e)](t,n)},O=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},P=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},V=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},F=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},L=function(e,t){return z(e,t)&&e.getDate()===t.getDate()},z=function(e,t){return N(e,t)&&e.getMonth()===t.getMonth()},N=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},W=function(e,t){if(u(e)&&u(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},$=function(e,t){if(u(e)&&u(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},q=function(e){return e&&e.getFullYear()-e.getFullYear()%100},G=function(e){return e&&e.getFullYear()-e.getFullYear()%10},j=function(){return"yyyy/MM/dd"},K=function(e){if(u(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},U=function(e){if(u(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},Q=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},Y=function(e,t){var n=ie.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},Z=function(e,t,n,i){return"date"===i&&(t=t&&ie.correctDateWithUnitBeginning(t,"day"),n=n&&ie.correctDateWithUnitBeginning(n,"day"),e=e&&ie.correctDateWithUnitBeginning(e,"day")),X(e,t,n)===e},X=function(e,t,n){var i=e;return u(e)?(u(t)&&e<t&&(i=t),u(n)&&e>n&&(i=n),i):e},J=function(e,t){if(u(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},ee=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},te=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},ne=function(e){return new Date(e)},ie={dateUnitIntervals:h,convertMillisecondsToDateUnits:g,dateToMilliseconds:_,getNextDateUnit:m,convertDateUnitToMilliseconds:v,getDateUnitInterval:w,getDateFormatByTickInterval:i,getDatesDifferences:I,correctDateWithUnitBeginning:C,trimTime:k,addDateInterval:o,addInterval:S,getSequenceByInterval:D,getDateIntervalByString:H,sameDate:L,sameMonthAndYear:z,sameMonth:z,sameYear:N,sameDecade:W,sameCentury:$,sameView:R,getDifferenceInMonth:V,getDifferenceInMonthForCells:F,getFirstYearInDecade:G,getFirstDecadeInCentury:q,getShortDateFormat:j,getViewFirstCellDate:T,getViewLastCellDate:E,getViewDown:P,getViewUp:O,getLastMonthDay:M,getLastMonthDate:U,getFirstMonthDate:K,getFirstWeekDate:Q,normalizeDateByWeek:Y,getQuarter:y,getFirstQuarterMonth:b,dateInRange:Z,roundToHour:ee,normalizeDate:X,getViewMinBoundaryDate:A,getViewMaxBoundaryDate:B,fixTimezoneGap:J,getTimezonesDifference:te,makeDate:ne,getDatesInterval:f};e.exports=ie},function(e,t,n){var i=n(9),o=i.Callbacks();e.exports=function(){o.fire()},e.exports.processCallback=o},function(e,t,n){var i=n(26).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(14),o=n(12),a=n(64),s=n(32),r=n(33),l=n(29),c=n(13).logger;n(36),e.exports=l({format:function(e,t,n){var a=i.isString(t)&&""!==t||o.isPlainObject(t)||i.isFunction(t),l=i.isNumeric(e)||i.isDate(e);return a&&l?i.isFunction(t)?t(e):(void 0!==n&&c.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),i.isNumeric(e)?s.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e){var t=[];if(e.millisecond&&t.push("millisecond"),(e.hour||e.minute||e.second)&&t.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t.unshift("shortdate"),this._normalizeFormat(t);if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day)return t.unshift("monthandday"),this._normalizeFormat(t);if(e.month)return"month";if(e.day){var n=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};return t.unshift(n),this._normalizeFormat(t)}return this._normalizeFormat(t)},getDateFormatByTicks:function(e){var t,n,i,o;if(e.length>1)for(n=a.getDatesDifferences(e[0],e[1]),o=1;o<e.length-1;o++)i=a.getDatesDifferences(e[o],e[o+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var o,s,r,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=i.isString(n)?n.toLowerCase():n,s=a.getDatesDifferences(e,t),e!==t&&d(s,e>t?t:e,e>t?e:t),r=a.getDateUnitInterval(s),c(s,r,!0),r=a.getDateUnitInterval(n||"second"),c(s,r,!1),s[l[r]||r]=!0,o=this.getDateFormatByDifferences(s)}})},function(e,t,n){var i=n(9),o=n(48),a=n(11).extend,s=n(53),r=n(69),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return s.current().android||s.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,s=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===s?l.from={left:a,opacity:e}:"backward"===s?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},r.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,s=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===s?l.to={left:-a,opacity:e}:"backward"===s?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},r.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",r.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",r.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",r.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",r.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];i.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,t=[];i.each(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return s.current().android||s.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!s.current().android&&!s.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!s.current().android&&!s.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return s.current().android||s.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},function(e,t,n){var i=n(9),o=n(7),a=n(11).extend,s=n(14),r=n(12),l=n(70),c=n(59),d=n(61),u=n(71),h=n(47),p=n(72),f=n(16).when,m=d.transitionEndEventName+".dxFX",g=p.addNamespace(h,"dxFX"),_=s.isFunction,v=r.isPlainObject,w=s.noop,x=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,y=/^([+-])=(.*)/i,b="dxAnimData",C="dxAnimQueue",k="transform",I={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):re(e,t.from);var n=this,o=i.Deferred(),a=t.cleanupWhen;t.transitionAnimation={deferred:o,finish:function(){n._finishTransition(e),a?f(o,a).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),o.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){o.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,o,a=this,s=i.now()+t.delay,r=i.Deferred(),l=i.Deferred(),c=i.Deferred();return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(o),e.off(m),e.off(g)},e.one(m,function(){i.now()-s>=t.duration&&l.reject()}).off(g).on(g,function(){a.stop(e,t),r.reject()}),o=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ce._simulatedTransitionEndDelay),f(l,c).fail(function(){r.resolve()}.bind(this))}),r.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&&re(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(v(t.to)&&i.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},S={initAnimation:function(e,t){re(e,t.from)},animate:function(e,t){var n=i.Deferred(),o=this;return t?(i.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=o._normalizeValue(e.css(n)))}),t.to[k]&&(t.from[k]=o._parseTransform(t.from[k]),t.to[k]=o._parseTransform(t.to[k])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:B(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),c.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=a({},this.currentValue);n[k]&&(n[k]=i.map(n[k],function(e,t){return"translate"===t?l.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(){o._startAnimation(e,t)},t.delay)):o._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){e.off(g).on(g,function(){t.frameAnimation&&c.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return i.each(e.match(/(\w|\d)+\([^\)]*\)\s*/g),function(e,n){var i=l.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&&(c.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),

Revision as of 17:47, 31 October 2017

/*!

  • DevExtreme (dx.web.js)
  • Version: 17.1.7
  • Build date: Fri Sep 29 2017
  • Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
  • Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  • /

"use strict";!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={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(660)},,,,function(e,t,n){var i=n(5);n(186);var o=i.ui=n(198);o.themes=n(144),o.setTemplateEngine=n(199),o.dialog=n(200),o.notify=n(205),o.dxActionSheet=n(207),o.dxAutocomplete=n(209),o.dxBox=n(253),o.dxButton=n(202),o.dxCalendar=n(254),o.dxCheckBox=n(249),o.dxColorBox=n(261),o.dxDateBox=n(268),o.dxDeferRendering=n(280),o.dxDropDownBox=n(281),o.dxDropDownMenu=n(282),o.dxFileUploader=n(283),o.dxForm=n(286),o.dxGallery=n(298),o.dxList=n(219),o.dxLoadIndicator=n(239),o.dxLoadPanel=n(247),o.dxLookup=n(299),o.dxMap=n(300),o.dxMultiView=n(293),o.dxNavBar=n(307),o.dxNumberBox=n(264),o.dxOverlay=n(110),o.dxPopover=n(208),o.dxPopup=n(201),o.dxProgressBar=n(284),o.dxRadioGroup=n(309),o.dxRangeSlider=n(311),o.dxResizable=n(112),o.dxResponsiveBox=n(291),o.dxScrollView=n(234),o.dxSelectBox=n(318),o.dxSlider=n(312),o.dxSwitch=n(319),o.dxTabPanel=n(292),o.dxTabs=n(294),o.dxTagBox=n(320),o.dxTextArea=n(321),o.dxTextBox=n(212),o.dxTileView=n(322),o.dxToast=n(206),o.dxToolbar=n(323),o.dxTooltip=n(315),o.dxTrackBar=n(285),i.validationEngine=n(118),o.dxValidationSummary=n(296),o.dxValidationGroup=n(297),o.dxValidator=n(289),o.CollectionWidget=n(150),o.dxDropDownEditor=n(211),e.exports=o},function(e,t,n){var i=n(6);i.framework=n(92),n(145),n(93),n(177),n(179),n(180),n(181),n(182),n(76),n(166),n(183),n(111),n(165),n(104),n(77),n(184),n(185),e.exports=i},function(e,t,n){var i=window.DevExpress=window.DevExpress||{},o=i.errors=n(7);if(i._DEVEXTREME_BUNDLE_INITIALIZED)throw o.Error("E0024");i._DEVEXTREME_BUNDLE_INITIALIZED=!0,i.clientExporter=n(20),i.VERSION=n(19),i.Class=n(25),i.DOMComponent=n(43),i.registerComponent=n(57),i.devices=n(53),i.Color=n(38);var a=n(9),s=n(17).compare;if(s(a.fn.jquery,[1,10])<0)throw o.Error("E0012");var r=n(59);i.requestAnimationFrame=function(){return o.log("W0000","DevExpress.requestAnimationFrame","15.2","Use the 'DevExpress.utils.requestAnimationFrame' method instead."),r.requestAnimationFrame.apply(r,arguments)},i.cancelAnimationFrame=function(){return o.log("W0000","DevExpress.cancelAnimationFrame","15.2","Use the 'DevExpress.utils.cancelAnimationFrame' method instead."),r.cancelAnimationFrame.apply(r,arguments)},i.EventsMixin=n(51),i.utils={},i.utils.requestAnimationFrame=r.requestAnimationFrame,i.utils.cancelAnimationFrame=r.cancelAnimationFrame,i.utils.initMobileViewport=n(60).initMobileViewport,i.utils.extendFromObject=n(11).extendFromObject,i.utils.createComponents=n(62).createComponents,i.utils.triggerShownEvent=n(62).triggerShownEvent,i.utils.triggerHidingEvent=n(62).triggerHidingEvent,i.utils.resetActiveElement=n(62).resetActiveElement,i.utils.findBestMatches=n(14).findBestMatches,i.createQueue=n(63).create,i.utils.dom=n(62),i.utils.common=n(14),i.utils.date=n(64),i.utils.browser=n(23),i.utils.inflector=n(39),i.utils.resizeCallbacks=n(44).resizeCallbacks,i.utils.console=n(13),i.utils.string=n(18),i.utils.support=n(61),i.processHardwareBackButton=n(65),i.viewPort=n(55).value,i.hideTopOverlay=n(66),i.formatHelper=n(67);var l=i.config=n(15);Object.defineProperty(i,"rtlEnabled",{get:function(){return o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),l().rtlEnabled},set:function(e){o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),l({rtlEnabled:e})}}),Object.defineProperty(i,"designMode",{get:function(){return l().designMode},set:function(e){l({designMode:e})}}),i.animationPresets=n(68).presets,i.fx=n(69),i.TransitionExecutor=n(75).TransitionExecutor,i.AnimationPresetCollection=n(68).PresetCollection,e.exports=i.events={},i.events.click=n(76),i.events.utils=n(72),i.events.GestureEmitter=n(87),i.localization=n(89),e.exports=i},function(e,t,n){var i=n(8);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",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}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}"})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(13),s=n(18),r=n(19),l="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:o(t,e),Error:function(){return u(i.makeArray(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),a.logger[t]("log"===t?e:r(i.makeArray(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),d(t,c(t,e))},c=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),s.format.apply(this,t).replace(/\.*\s*?$/,"")},d=function(e,t){return s.format.apply(this,["{0} - {1}. See:\n{2}",e,t,l+e])},u=function(e){var t,n,i;return t=e[0],e=e.slice(1),n=c(t,e),i=d(t,n),o(new Error(i),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(10);e.exports=i},function(e,t){e.exports=jQuery},function(e,t,n){var i=n(12).isPlainObject,o=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},a=function(e){e=e||{};var t=1,n=!1;for("boolean"==typeof e&&(n=e,e=arguments[1]||{},t++);t<arguments.length;t++){var o=arguments[t];if(null!=o)for(var s in o){var r,l=e[s],c=o[s],d=!1;e!==c&&(n&&c&&(i(c)||(d=Array.isArray(c)))?(r=d?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},e[s]=a(n,r,c)):void 0!==c&&(e[s]=c))}}return e};t.extend=a,t.extendFromObject=o},function(e,t){var n=function(e){var t;for(t in e)return!1;return!0},i=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)};t.isEmptyObject=n,t.isPlainObject=i},function(e,t,n){var i=n(14).isFunction,o=function(){function e(e){o&&i(o.info)&&o.info(e)}function t(e){o&&i(o.warn)&&o.warn(e)}function n(e){o&&i(o.error)&&o.error(e)}var o=window.console;return{info:e,warn:t,error:n}}(),a=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=o,t.debug=a},function(e,t,n){var i,o=n(9),a=n(15),s=n(16),r=function(e){var t={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object Null]":"null"},n=Object.prototype.toString.call(e);return"object"==typeof e?t[n]||"object":typeof e},l=function(e){return null!==e&&void 0!==e},c=function(e){return"string"==typeof e},d=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},u=function(e){return"object"===r(e)},h=function(e){return"date"===r(e)},p=function(e){return"boolean"==typeof e},f=function(e){return"function"==typeof e},m=function(e){return["object","array","function"].indexOf(r(e))===-1},g=function(e){return d(e)&&e.toString().indexOf("e")!==-1},_=function(e){return null!=e&&e===e.window},v=function(e){return e instanceof Element},w=function(e,t){return l(e)?e:t},x=function(e,t){var n,i=o.Deferred(),a=t||this,s={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(a)}},r=function(){var t=e.call(a);t&&t.done&&f(t.done)?t.done(function(){i.resolveWith(a)}):i.resolveWith(a)};return n=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),s},y=[],b=[],C=[],k=function(e,t,n){if(i&&i!==e)return y.push(t),b.push(e),n=n||o.Deferred(),C.push(n),n;var a=i,r=C.length;i=e;var l=t();return l||(C.length>r?l=s.when.apply(o,C.slice(r)):n&&n.resolve()),i=a,n&&l&&l.done&&l.done(n.resolve).fail(n.reject),!i&&y.length&&("render"===b.shift()?I:S)(y.shift(),C.shift()),l},I=function(e,t){return k("render",e,t)},S=function(e,t){return k("update",e,t)},D=function(e){return function(){var t=this;return k("render",function(){return e.call(t)})}},T=function(e){return function(){var t=this;return k("update",function(){return e.call(t)})}},E=function(e,t,n){var i=[],a=0;return o.each(t,function(t,s){var r=0,l=n?n(s):s;o.each(e,function(e,t){var n=l[e];if(void 0!==n)return A(n,t)?void r++:(r=-1,!1)}),r<a||(r>a&&(i.length=0,a=r),i.push(s))}),i},A=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return o.each(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},B=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}},M=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}},R=function(e){var t=c(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&o.each(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},O=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},P=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!F(e[i],t[i],n+1))return!1;return!0},V=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!F(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},F=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(u(e)&&u(t)?V(e,t,n):Array.isArray(e)&&Array.isArray(t)?P(e,t,n):!(!h(e)||!h(t))&&e.getTime()===t.getTime())},H=function(e){if(u(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},L=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},z=function(e){var t=a().serverDecimalSeparator;return l(e)&&(e=e.toString().replace(".",t)),e},N=function(){},W=function(e,t,n){for(var i,o=[],a=!n,s=0;s<e.length;s++)i=!!t(e[s],s),i===a&&o.push(e[s]);return o};t.type=r,t.isDefined=l,t.isString=c,t.isNumeric=d,t.isObject=u,t.isDate=h,t.isBoolean=p,t.isFunction=f,t.isPrimitive=m,t.isExponential=g,t.isWindow=_,t.isDomNode=v,t.ensureDefined=w,t.executeAsync=x,t.deferRender=I,t.deferRenderer=D,t.deferUpdate=S,t.deferUpdater=T,t.splitPair=B,t.splitQuad=M,t.findBestMatches=E,t.normalizeKey=R,t.denormalizeKey=O,t.equalByValue=F,t.getKeyHash=H,t.escapeRegExp=L,t.applyServerDecimalSeparator=z,t.noop=N,t.grep=W},function(e,t,n){var i=n(11),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!1};e.exports=function(){return arguments.length?void i.extend(o,arguments[0]):o}},function(e,t,n){var i=n(9),o=n(14),a=n(17).compare;t.fromPromise=function(e,t){var n=e&&o.isFunction(e.done)&&o.isFunction(e.fail);if(n)return e;var a=i.Deferred();return e.then(function(){a.resolveWith.apply(a,[t].concat([i.makeArray(arguments)]))},function(){a.rejectWith.apply(a,[t].concat([i.makeArray(arguments)]))}),a},t.when=a(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?i.Deferred().resolve():1===arguments.length?e&&e.then?e:i.Deferred().resolve(e):i.when.apply(i,arguments)}},function(e,t){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var s=parseInt(e[a]||0,10),r=parseInt(t[a]||0,10);if(s<r)return-1;if(s>r)return 1}return 0}},function(e,t,n){var i=n(9),o=n(14),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),s=function(e){var t=o.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}},r=function(e){var t=o.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),s=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(s)||(s=i),{top:i,right:a,bottom:s,left:n}},l=function(){var e,t,n,a=arguments[0],s=i.makeArray(arguments).slice(1);if(o.isFunction(a))return a.apply(this,s);for(var r=0;r<s.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=s[r],"string"===o.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),a=a.replace(t,n);return a},c=function(){var e=function(e){return(e+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\><\|\=\!\:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=s,t.quadToObject=r,t.format=l,t.replaceAll=c,t.isEmpty=d},function(e,t){e.exports="17.1.7"},function(e,t,n){var i=n(21).fileSaver,o=n(14).isFunction;t.export=function(e,t,n){if(e){var a=t.exportingAction,s=t.exportedAction,r=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};o(a)&&a(l),l.cancel||n(e,t,function(e){o(s)&&s(),o(r)&&(l.data=e,r(l)),l.cancel||i.saveAs(l.fileName,t.format,e,t.proxyUrl)})}},t.fileSaver=i,t.excel={creator:n(24).ExcelCreator,getData:n(24).getData,formatConverter:n(31)},t.image={creator:n(37).imageCreator,getData:n(37).getData},t.pdf={getData:n(40).getData},t.svg={creator:n(41).svgCreator,getData:n(41).getData}},function(e,t,n){var i=n(9),o=n(22),a=n(23),s=n(14),r={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},l=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_getDataUri:function(e,t){return"data:"+l[e]+";base64,"+t},_linkDownloader:function(e,t,n){var o=document.createElement("a"),a={download:e,href:t};return document.body.appendChild(o),i(o).css({display:"none"}).text("load").attr(a)[0].click(),o},_formDownloader:function(e,t,n,o,a){var s={method:"post",action:e,enctype:"multipart/form-data"},r=i("<form>").css({display:"none"}).attr(s);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+o+'" />'),r.appendTo("body"),r.submit(),r.submit()&&r.remove()},_saveByProxy:function(e,t,n,i,o){return this._formDownloader(e,t,l[n],i,o)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(l[n],["."+r[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,o){if(this._blobSaved=!1,s.isDefined(navigator.msSaveOrOpenBlob))navigator.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(s.isDefined(window.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var a=window.URL||window.webkitURL||window.mozURL||window.msURL||window.oURL;if(o=s.isDefined(o)?o:function(){var e=i("#dxExportLink");a.revokeObjectURL(e.attr("href")),e.remove()},s.isDefined(a))return this._linkDownloader(e,a.createObjectURL(n),o)}},saveAs:function(e,t,n,i,l){if(e+="."+r[t],s.isFunction(window.Blob))this._saveBlobAs(e,t,n);else if(s.isDefined(i)&&!s.isDefined(navigator.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(s.isDefined(navigator.userAgent.match(/iPad/i))||o.log("E1034"),a.msie&&parseInt(a.version)<10)return;this._linkDownloader(e,this._getDataUri(t,n),l)}}}},function(e,t,n){var i=n(8),o=n(7);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The JSZip script is referenced after DevExtreme scripts",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the '{0}' error",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view"})},function(e,t,n){var i=n(11).extend,o=/(webkit)[ \/]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,r=/(edge)\/((\d+)?[\w\.]+)/,l=/(safari)/i,c=/(mozilla)(?:.*? rv:([\w.]+))/,d=function(e){e=e.toLowerCase();var t={},n=a.exec(e)||s.exec(e)||r.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||o.exec(e)||[],i=n[1],d=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&l.exec(e)&&(i="safari",t.webkit=!0,d=/Version\/([0-9.]+)/i.exec(e),d=d&&d[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=d),t};e.exports=i({_fromUA:d},d(navigator.userAgent))},function(e,t,n){var i=n(25),o=n(14),a=n(11).extend,s=n(26).inArray,r=n(22),l=n(18),c=n(30),d=n(21),u=n(31),h='<?xml version="1.0" encoding="utf-8"?>',p='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',f="<sheetPr/>",m='<fonts count="2"><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/><b/><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',g="http://schemas.openxmlformats.org",_="rels",v="xl",w="workbook.xml",x="[Content_Types].xml",y="sharedStrings.xml",b="styles.xml",C="worksheets",k="sheet1.xml",I={"boolean":"b",date:"d",number:"n",string:"s"},S=Date.UTC(1899,11,30),D=60,T=4,E=7,A=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,a,s="<"+e,r=t.length;for(i=0;i<r;i++)a=t[i],s=s+" "+a.name+'="'+a.value+'"';return o.isDefined(n)?s+">"+n+"</"+e+">":s+" />"},_getCellIndex:function(e,t){var n,i="",o=26;for(this._maxIndex[0]<Number(e)&&(this._maxIndex[0]=Number(e)),this._maxIndex[1]<Number(t)&&(this._maxIndex[1]=Number(t));;){if(n=65+(t>=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"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return o.isObject(e)?a(i,e,{format:e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,o=this._formatObjectConverter(e,t,n);if(e=o.format,t=o.precision,i=o.currency,n=o.dataType,e=u.convertFormat(e,t,n,i))return s(e,this._styleFormat)===-1&&this._styleFormat.push(e),s(e,this._styleFormat)+1},_appendString:function(e){if(o.isDefined(e)&&(e=String(e),e.length))return e=l.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_getExcelDateValue:function(e){var t,n;if(o.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-S)/864e5),t<D&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n=this._dataProvider,i=n.getCellValue(e,t),a=this._getDataType(n.getCellType(e,t)),s=this._styleArray[this._dataProvider.getStyleId(e,t)].formatID,r=o.isNumeric(s)?this._styleFormat[s-1]:null;switch("d"!==a||o.isDate(i)||(a="s"),a){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,r),a="n"}return{value:i,type:a}},_getDataArray:function(){var e,t,n,i,o,a=this,s=[],r=a._dataProvider,l=r.getRowsCount(),c=r.getColumns();for(e=0;e<l;e++){for(n=[],o=c.length,t=0;t!==o;t++)i=a._prepareValue(e,t),n.push({style:r.getStyleId(e,t),value:i.value,type:i.type});!a._needSheetPr&&r.getGroupLevel(e)>0&&(a._needSheetPr=!0),s.push(n)}return s},_getBoldStyleID:function(e){for(var t=0;t<T-1;t++)if(this._styleArray[t].alignment===e)return t},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/E*100+.5)/100)},_prepareStyleData:function(){var e=this,t=e._dataProvider.getStyles();e._dataProvider.getColumns().forEach(function(t){e._colsArray.push(e._calculateWidth(t.width))}),t.forEach(function(t){e._styleArray.push({bold:!!t.bold,alignment:t.alignment||"left",formatID:e._appendFormat(t.format,t.precision,t.dataType),wrapText:t.wrapText})})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:g+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:g+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return h+this._getXMLTag("workbook",[{name:"xmlns:r",value:g+"/officeDocument/2006/relationships"},{name:"xmlns",value:g+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return h+'<Types xmlns="'+g+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e,t=this,n=t._zip.folder(v),i=[],a="";for(e=0;e<t._styleFormat.length;e++)t._styleFormat[e]=t._getXMLTag("numFmt",[{name:"numFmtId",value:Number(e)+A},{name:"formatCode",value:t._styleFormat[e]}]);a=a+t._getXMLTag("numFmts",[{name:"count",value:t._styleFormat.length}],t._styleFormat.join(""))+m,this._styleArray.forEach(function(e){i.push(t._getXMLTag("xf",[{name:"xfId",value:0},{name:"applyAlignment",value:1},{name:"fontId",value:Number(!!e.bold)},{name:"applyNumberFormat",value:o.isDefined(e.formatID)?1:0},{name:"numFmtId",value:o.isDefined(e.formatID)?Number(e.formatID)+A-1:0}],t._getXMLTag("alignment",[{name:"vertical",value:"top"},{name:"wrapText",value:Number(!!e.wrapText)},{name:"horizontal",value:e.alignment}])))}),a+=t._getXMLTag("cellXfs",[{name:"count",value:i.length}],i.join("")),a+=t._getXMLTag("cellStyles",[{name:"count",value:1}],t._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),a=h+t._getXMLTag("styleSheet",[{name:"xmlns",value:g+"/spreadsheetml/2006/main"}],a),n.file(b,a),t._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(v),n=this._stringArray.length,i=h;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:g+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(y,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,a,s,r=0,l=[],c=this._cellsArray.length,d=this._colsArray.length,u="1:"+d,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,m=[['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',this._needSheetPr?p:f,'<dimension ref="A1:',this._getCellIndex(this._maxIndex[0],this._maxIndex[1])+'"/><sheetViews><sheetView '+(this._rtlEnabled?'rightToLeft="1" ':"")+'tabSelected="1" workbookViewId="0">'+this._getPaneXML()+'</sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" outlineLevelRow="',this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0,'" x14ac:dyDescent="0.25"/>'].join("")];for(e=0;e<d;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(m.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<c;t++){for(i=[],s=this._cellsArray[t].length,e=0;e<s;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}],o.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>=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,r++>1e4&&(m.push(l.join("")),l=[],r=0)}m.push(l.join("")),l=[],a=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),m.push("</sheetData>"+(this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+a+'" />':"")+this._generateMergingXML()+'<ignoredErrors><ignoredError sqref="A1:'+a+'" numberStoredAsText="1" /></ignoredErrors></worksheet>'),this._zip.folder(v).folder(C).file(k,m.join("")),this._colsArray=[],this._cellsArray=[],m=[]},_generateMergingXML:function(){var e,t,n,i,a,s,r=o.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],d=[],u="";for(i=0;i<r;i++)for(n=0;n!==l;n++)if(!o.isDefined(c[i])||!o.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++)o.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(a=d.length,s=0;s<a;s++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:d[s].start+":"+d[s].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:a}],u):""},_generateCommonXML:function(){var e,t=h+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+w)),n=this._zip.folder(v),i=h;this._zip.folder("_"+_).file("."+_,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+k)+this._createXMLRelationship(2,"styles",b)+this._createXMLRelationship(3,"sharedStrings",y), i+=this._createXMLRelationships(e),n.folder("_"+_).file(w+".rels",i),n.file(w,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,o.isDefined(c)?this._zip=new c:this._zip=null},_checkZipState:function(){if(!this._zip)throw r.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}}),t.getData=function(e,n,i){var a=new t.ExcelCreator(e,n);a._checkZipState(),a.ready().done(function(){a._zip.generateAsync?a.getData(o.isFunction(window.Blob)).then(i):i(a.getData(o.isFunction(window.Blob)))})}},function(e,t,n){var i=n(7),o=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},a=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,a=this;if(!e)return a;for(n in e)i=e[n],t="function"==typeof a.prototype[n]&&"function"==typeof i,a.prototype[n]=t?o(a.parent.prototype,n,i):i;return a},r=function(){var e,t,n,i=this;for(n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},l=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw i.Error("E0001")},d=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),u=function(){};u.inherit=function(e){var t=function(){if(!this||this===window||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,o=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<o.length;e++)o[e].call(t);for(n&&n.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=a(this),d(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=s,t.include=r,t.subclassOf=l,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},u.abstract=c,e.exports=u},function(e,t,n){var i=n(9),o=n(14),a=n(27),s=function(e){return Array.isArray(e)&&!e.length},r=function(e){return Array.isArray(e)?e:[e]},l=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return i.each(e,function(e,i){var o=u(i,t);o!==-1&&n.push(i)}),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return i.each(e,function(e,i){var o=u(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,s){var r={},l=0;return i.each(e,function(e,i){e=i[t],o.isDefined(e)&&(r[e]=r[e]||[],i===n?r[e].unshift(i):r[e].push(i),delete i[t])}),a.orderEach(r,function(e,n){i.each(n,function(){e>=0&&(this[t]=l++)})}),i.each(e,function(){o.isDefined(this[t])||s&&!s(this)||(this[t]=l++)}),l},u=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)};t.isEmpty=s,t.wrapToArray=r,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=u},function(e,t,n){var i=n(9),o=n(14),a=n(12),s=n(28),r=function(){function e(){}return function(t){return e.prototype=t,new e}}(),l=function(e,t){var n,i,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(a.sort(function(e,t){var n=o.isNumeric(e),i=o.isNumeric(t);return n&&i?e-t:n&&!i?-1:!n&&i?1:e<t?-1:e>t?1:0}),i=0;i<a.length;i++)n=a[i],t(n,e[n])},c=function(e,t,n,i){!i&&s.isWrapped(e[t])?s.assign(e[t],n):e[t]=n},d=function(e,t,n,s){var r,l;for(var u in t)if(r=e[u],l=t[u],e!==l){if(a.isPlainObject(l)&&!(l instanceof i.Event)){var h=n?o.isObject(r):a.isPlainObject(r);l=d(h?r:{},l,n,s)}void 0!==l&&c(e,u,l,s)}return e};t.clone=r,t.orderEach=l,t.deepExtendArraySafe=d},function(e,t,n){var i=n(13).logger,o=n(29);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){e.exports=function(e){var t=n(9),i=n(11).extend,o=n(14).isFunction,a=n(25),s=a.inherit(e),r=s,l=new r(e),c={},d=function(n,i){t.each(n,function(t){o(l[t])?!i&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(i&&(c[t]=e[t]),e[t]=l[t])})};return d(e,!0),e.inject=function(e){r=r.inherit(e),l=new r,d(e)},e.resetInjection=function(){i(e,c),r=s,l=new s},e}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(14),o=n(18),a=n(32),s=n(33),r=n(35).getLanguageId,l={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},c=" .,:;/\\<>()-",d=1632,u={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:" "};n(36);var h=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_isDigit:function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=d&&t<d+10},_getDifference:function(e,t,n){var i,o=0,a=this,s=[],r=function(t){return e[o]!==t[o]};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(r).length){do{if(i=a._isDigit(e[o]),!s.length&&!i&&a._isDigit(t[0][o]))break;s.push(o),n.unshift(o),o++}while(e[o]&&c.indexOf(e[o])<0&&i===a._isDigit(e[o]));break}return 1!==s.length||"0"!==e[n[0]-1]&&"٠"!==e[n[0]-1]||n.unshift(n[0]-1),s},_replaceCharsCore:function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("٠"+n,n+n)),e},_replaceChars:function(e,t,n,i){var o,a,s;if(!this._isDigit(e[t[0]]||"0")){for(var r=Math.max(t.length<=3?3:4,n.length);t.length>r;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(a=t[t.length-1]+1,s=a<i.length?i[a]:a;t.length<r;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=this._replaceCharsCore(e,t,n,i)},_format:function(e,t){return Array.isArray(e)?e.map(function(e){return(s.format(e,t)||"").toString()}):(s.format(e,t)||"").toString()},_escapeChars:function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(c.indexOf(e)<0||"/"===e)?i[t]:-1});return e=e.split("").map(function(e,t){return o.indexOf(t)>=0?"\\"+e:e}).join(""),e=e.replace("AM\\/PM","AM/PM")},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=d&&t<d+10)return!0;return!1},_convertDateFormat:function(e){e=l[e&&e.type||e]||e;var t=this,n=[],i=t._format(new Date(2009,8,8,6,5,4),e),o=i.split("").map(function(e,t){return t}),a=i,s=[{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,2,5,4),pattern:"H"},{date:new Date(2009,8,8,18,5,4),pattern:"AM/PM"},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"d"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(a)return s.forEach(function(s){var r=t._getDifference(i,t._format(s.date,e),n);a=t._replaceChars(a,r,s.pattern,o)}),a=t._escapeChars(a,i,n,o),a=t._getLanguageInfo(i)+a},_getLanguageInfo:function(e){var t=r(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):u[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return h._convertDateFormat(e);if(i.isString(e)&&u[e.toLowerCase()])return h._convertNumberFormat(e,t,o)}}}},function(e,t,n){var i=n(9),o=n(29),a=n(26).inArray,s=n(12).isPlainObject,r=n(7),l=4,c=10,d=["currency","fixedpoint","exponential","percent","decimal"],u={1:"K",2:"M",3:"B",4:"T"},h={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},p=o({numericFormats:d,defaultLargeNumberFormatPostfixes:u,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.split(" "),i.each(t,function(e,t){a(t,d)>-1?n.formatType=t:t in h&&(n.power=h[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i,o;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,l)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,c),o=this._getNumberByPower(e,i,c);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=c&&(i++,o/=c),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.length<t;)i="0"+i;return i},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")+(t[1]?"."+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*e),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():e.toFixed(n.precision)),"decimal"!==t&&(e=this._addGroupSeparators(e)),"percent"===t&&(e+="%"),e.toString())},_normalizeFormat:function(e){return e?"function"==typeof e?e:(s(e)||(e={type:e}),e.type&&(e.type=e.type.toLowerCase()),e):{}},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if(t=t&&t.formatter||t,"function"==typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):void 0},parse:function(e,t){if(e)return t&&t.parser?t.parser(e):(t&&r.log("W0011"),parseFloat(e.replace(/^\D+|,+/g,"")))}});e.exports=p},function(e,t,n){var i=n(9),o=n(32),a=n(29),s=n(14).isString,r=n(26).inArray,l=n(7);n(34);var c={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},d=function(e){var t=new Date,n=e.split(" "),i=n[0].split(":"),o=Number(i[0]),a=Number(i[1]),s=Number(i[2])||0,r=/^pm$/i.test(n[1]),l=s<60&&a<60&&o>0&&o<13;return l?(r||12!==o||(o=0),r&&12!==o&&(o+=12),new Date(t.getFullYear(),t.getMonth(),t.getDate(),o,a,s)):null},u=function(e){return new Date(e.valueOf()+60*e.getTimezoneOffset()*1e3)},h=["January","February","March","April","May","June","July","August","September","October","November","December"],p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=function(e){return e.getHours()>=12?"PM":"AM"},m=function(e){return e%12||12},g=function(e,t){return o.format(e,{type:"decimal",precision:t})},_={millisecond:function(e){return g(e.getMilliseconds(e),3)},second:function(e){return g(e.getSeconds(),2)},minute:function(e){return g(e.getMinutes(),2)},h:function(e){return g(m(e.getHours()),1)},hh:function(e){return g(m(e.getHours()),2)},hour:function(e){return g(e.getHours(),2)},day:function(e){return String(e.getDate())},dayofweek:function(e){return p[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return g(e.getMonth()+1,2)},month:function(e){return h[e.getMonth()]},year:function(e){return String(e.getFullYear())},shortyear:function(e){return String(e.getFullYear()).substr(2,2)},shorttime:function(e){return _.h(e)+":"+_.minute(e)+" "+f(e)},shortdate:function(e){return[_.M(e),_.day(e),_.year(e)].join("/")},shortdateshorttime:function(e){return[_.shortdate(e),_.shorttime(e)].join(", ")},mediumdatemediumtime:function(e){return[_.monthandday(e),_.shorttime(e)].join(", ")},monthandyear:function(e){return[_.month(e),_.year(e)].join(" ")},monthandday:function(e){return[_.month(e),_.day(e)].join(" ")},longdate:function(e){return _.dayofweek(e)+", "+_.month(e)+" "+_.day(e)+", "+_.year(e)},longtime:function(e){return[_.h(e),_.minute(e),_.second(e)].join(":")+" "+f(e)},longdatelongtime:function(e){return[_.longdate(e),_.longtime(e)].join(", ")},d:function(e){return g(e.getDate(),1)},dd:function(e){return g(e.getDate(),2)},"d MMMM":function(e){return _.day(e)+" "+_.month(e)},"yyyy/M/d":function(e){return[_.year(e),_.M(e),_.day(e)].join("/")},"yyyy/MM/dd":function(e){return[_.year(e),_.MM(e),_.dd(e)].join("/")},"dd.MM.yyyy":function(e){return[_.dd(e),_.MM(e),_.year(e)].join(".")},"HH:mm":function(e){return[_.hour(e),_.minute(e)].join(":")},"HH:mm:ss":function(e){return[_["HH:mm"](e),_.second(e)].join(":")},"h:mm:ss":function(e){return[_.h(e),_.minute(e),_.second(e)].join(":")},"h:mm:ss:SSS":function(e){return[_.h(e),_.minute(e),_.second(e),_.SSS(e)].join(":")},"yyyy/MM/dd HH:mm:ss":function(e){return[_["yyyy/MM/dd"](e),_["HH:mm:ss"](e)].join(" ")},"yyyy-MM-dd hh:mm:ss.SSS a":function(e){return[[_.year(e),_.MM(e),_.dd(e)].join("-"),[_.hh(e),_.minute(e),_.second(e)].join(":")+"."+_.SSS(e),f(e)].join(" ")},"yyyy-MM-dd":function(e){return[_.year(e),_.MM(e),_.dd(e)].join("-")},yyyyMMddTHHmmss:function(e){return[_.year(e),_.MM(e),_.dd(e),"T",_.hour(e),_.minute(e),_.second(e)].join("")},"datetime-local":function(e){return _["yyyy-MM-dd"](e)+"T"+_["HH:mm:ss"](e)},"yyyy-MM-ddTHH:mm:ssZ":function(e){return _["datetime-local"](e)+"Z"},"yyyy-MM-ddTHH:mmZ":function(e){return _["yyyy-MM-dd"](e)+"T"+_.hour(e)+":"+_.minute(e)+"Z"},"dd/MM/yyyy":function(e){return[_.dd(e),_.MM(e),_.year(e)].join("/")},"yyyy MMMM d":function(e){return[_.year(e),_.month(e),_.day(e)].join(" ")},"EEEE, d":function(e){return[_.dayofweek(e),_.d(e)].join(", ")},"EEEE MM yy":function(e){return[_.dayofweek(e),_.MM(e),_.shortyear(e)].join(" ")},"d MMMM yyyy":function(e){return[_.day(e),_.month(e),_.year(e)].join(" ")},E:function(e){return y([_.dayofweek(e)],"abbreviated")[0]},EEE:function(e){return _.E(e)},"EEE hh":function(e){return[_.EEE(e),_.hh(e)].join(" ")},"ss SSS":function(e){return[_.second(e),_.SSS(e)].join(" ")},quarter:function(e){var t=e.getMonth();return t>=0&&t<3?"Q1":t>2&&t<6?"Q2":t>5&&t<9?"Q3":"Q4"},quarterandyear:function(e){return _.quarter(e)+" "+_.year(e)}},v=function(e){return"Z"!==e.slice(-1)&&(e+="Z"),u(new Date(e))},w={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(),r(e,h))},monthandday:function(e){var t=e.split(" "),n=w.month(t[0]);return n.setDate(Number(t[1])),n},monthandyear:function(e){var t=e.split(" "),n=w.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)),u(t)},second:function(e){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),Number(e))},shortyear:function(e){var t=36,n=Number(e);return n+=n>t?1900:2e3,w.year(n)},shortdate:function(e){if(/^(0?[1-9]|1[012])\/(0?[1-9]|[12][0-9]|3[01])\/\d{1,4}/.test(e)){var t=e.split("/"),n=new Date(Number(t[2]),Number(t[0])-1,Number(t[1]));return t[2].length<3&&n.setFullYear(Number(t[2]),Number(t[0])-1,Number(t[1])),n}},longtime:function(e){return d(e)},shorttime:function(e){return d(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]),r(t[1],h),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":v,"yyyy-MM-ddTHH:mmZ":v,"datetime-local":v,mediumdatemediumtime:function(e){var t=e.split(", "),n=t[0].split(" "),i=t[1].split(" "),o=2===i.length?i.pop():void 0,a=w.month(n[0]);a.setDate(Number(n[1])),i=i[0].split(":");var s=Number(i[0]);switch(String(o).toLowerCase()){case"am":s=12===s?0:s;break;case"pm":s=12===s?12:s+12}return a.setHours(s),a.setMinutes(Number(i[1])),a}};i.each(c,function(e,t){t=t.replace(/'/g,""),_[t]=_[e],w[t]=w[e]});var x=function(e,t){return s(t)&&(e[t.toLowerCase()]||e[t.replace(/'/g,"")])},y=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})},b={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},C=a({_getPatternByFormat:function(e){return c[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return i.each(t.split(/\W+/),function(e,t){i.each(b,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return y(h,e)},getDayNames:function(e){return y(p,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(_,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(w,t)),i?n=i(e):(l.log("W0012"),n=new Date(e)),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=C},function(e,t,n){var i=n(29);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){var i=n(34).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){var i=n(11).extend,o=n(32);o.inject({_formatNumberCore:function(e,t,n){return"currency"===t?(n.precision=n.precision||0,this.getCurrencySymbol().symbol+this.format(e,i({},n,{type:"fixedpoint"}))):this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){function i(e,t,n){var i=H("<canvas>")[0];return i.width=e+(n?0:2*oe.x),i.height=t+(n?0:2*oe.y),i}function o(e,t){var n=e.toDataURL(t,ne),i=atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,o,a,s,r){var l,c,d,u,h,p,f=(e+n)/2,m=(t+i)/2,g=Y(t-i,e-n),_=a?1:-1;g+=90*(G/180)*(s?1:-1),l=U(Q(n-e,2)+Q(i-t,2))/2,c=U(K(Q(o,2)-Q(l,2))),d=f+_*(c*Z(g)),u=m+_*(c*X(g)),h=Y(t-u,e-d),p=Y(i-u,n-d),r.arc(d,u,o,h,p,!s)}function s(e){var t,n=le(e.attributes||{}),i=e.style||{},o=ee({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),a=n.transform;return a&&(t=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.translateX=te(t[0]),o.translateY=t[1]?te(t[1]):0),t=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=te(t[0]),o.rotationX=t[1]&&te(t[1]),o.rotationY=t[2]&&te(t[2]))),d(i,o),o}function r(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,s=t.rx;s?(s=j(s,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,s),e.arcTo(o,a,0,a,s),e.arcTo(0,a,0,0,s),e.arcTo(0,0,s,0,s),e.lineTo(o/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)}function l(e,t){var n=H.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(){n.resolve()},P.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function c(e,t){var n,i,o=t.split(" "),s=0;do switch(n=te(o[s+1]),i=te(o[s+2]),o[s]){case"M":e.moveTo(n,i),s+=3;break;case"L":e.lineTo(n,i),s+=3;break;case"C":e.bezierCurveTo(n,i,te(o[s+3]),te(o[s+4]),te(o[s+5]),te(o[s+6])),s+=7;break;case"A":a(te(o[s-2]),te(o[s-1]),te(o[s+6]),te(o[s+7]),n,te(o[s+4]),te(o[s+5]),e),s+=8;break;case"Z":e.closePath(),s+=1}while(s<o.length)}function d(e,t){J(e,function(n,i){""!==e[i]&&(t[W(i)]=e[i])}),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function u(e){var t=e&&e.match(/url\(.*\#(.*?)["']?\)/i);return t&&t[1]}function h(e,t){var n=[];t.fontSize=t.fontSize||ae,t.fontFamily||se,t.fill=t.fill||re,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function p(e,t){h(e,t),t.text&&e.fillText(t.text,t.x||0,t.y||0),T(e,t,!0),f(e,t)}function f(e,t){if(t.textDecoration&&"none"!==t.textDecoration){var n=t.x,i=e.measureText(t.text).width,o=parseInt(t.fontSize,10),a=o*ie<1?1:o*ie,s=t.y;switch(t.textDecoration){case"line-through":s-=o/3+a/2;break;case"overline":s-=o-a;break;case"underline":s+=a}e.rect(n,s,i,a),A(e,t),T(e,t)}}function m(e){O[e.attributes.id.textContent]=e.childNodes[0]}function g(e){V[e.attributes.id.textContent]=e}function _(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function v(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function w(e,t,n){for(var i,o=[],a=0,r=0;r<e.length;r++){var l=e[r];if(void 0===l.tagName)x(l,t,n);else if("tspan"===l.tagName||"text"===l.tagName){var c=s(l),d=ee({},n,c);if("tspan"===l.tagName&&v(l)){w(l.childNodes,t,d);continue}d.textAlign="start",i&&void 0===c.x||(i={elements:[],options:[],widths:[],offsets:[]},o.push(i)),void 0!==c.dy&&(a+=Number(c.dy)),i.elements.push(l),i.options.push(d),i.offsets.push(a),h(t,d),i.widths.push(t.measureText(d.text).width)}}o.forEach(function(e){var i=e.widths.reduce(function(e,t){return e+t},0),o=0,a=0;"center"===n.textAlign&&(o=i/2),"end"===n.textAlign&&(o=i),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-o+a,t.y+=e.offsets[n],a+=i}),e.elements.forEach(function(n,i){w(n.childNodes,t,e.options[i])})})}function x(e,t,n){var i=e.tagName,o="text"===i||"tspan"===i||void 0===i,a="image"===i,d=ee({},n,s(e));if("hidden"!==d.visibility){switch(t.save(),!a&&b(t,d),C(t,d),_(d),t.beginPath(),e.tagName){case void 0:p(t,d);break;case"text":case"tspan":w(e.childNodes,t,d);break;case"image":l(t,d);break;case"path":c(t,d.d);break;case"rect":r(t,d),t.closePath();break;case"circle":t.arc(d.cx,d.cy,d.r,0,2*G,1)}y(t,d),o||(A(t,d),T(t,d)),t.restore()}}function y(e,t){var n,i=u(t.filter);i&&(n=F&&F[i],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*G/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"]&&(x(O[u(t["clip-path"])],e,{}),e.clip(),delete t["clip-path"])}function k(e,t){var n=new L(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function I(e){var t,n,i={};J(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":a.stdDeviation&&(i.blur=te(a.stdDeviation.value));break;case"offsetResult":i.offsetX=te(a.dx.value),i.offsetY=te(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)}}),F[e.id]=i}function S(e,t,n){var i;J(e,function(e,o){switch(o.tagName&&o.tagName.toLowerCase()){case"g":i=ee({},n,s(o)),t.save(),b(t,i),C(t,i),S(o.childNodes,t,i),t.restore();break;case"defs":O={},V={},F={},S(o.childNodes,t);break;case"clippath":m(o);break;case"pattern":g(o);break;case"filter":I(o);break;default:x(o,t,n)}})}function D(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&e.setLineDash&&(n=H.map(n,function(e){return te(e)}),e.setLineDash(n))}function T(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(D(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=V[u(t)],o=s(n),a=i(o.width,o.height,!0),r=a.getContext("2d");return S(n.childNodes,r,o),e.createPattern(a,"repeat")}function A(e,t){var n=t.fill;n&&"none"!==n&&(e.fillStyle=n.search(/url/)===-1?n:E(e,n),e.globalAlpha=t.fillOpacity,e.fill())}function B(e,t,n,i){e.fillStyle=i||"#ffffff",e.fillRect(-oe.x,-oe.y,t+2*oe.x,n+2*oe.y)}function M(e,t,n,o){var a=i(t,n),s=a.getContext("2d"),r=new DOMParser,l=r.parseFromString(e,"image/svg+xml"),c=l.childNodes[0];return s.translate(oe.x,oe.y),P=[],document.getElementById('mw-content-text').appendChild(a),c.attributes.direction&&(a.dir=c.attributes.direction.textContent),B(s,t,n,o),S(c.childNodes,s,{}),document.body.removeChild(a),a}function R(e,t,n){$.apply(H,P).done(function(){var i=o(t,n);e.resolve(i)})}var O,P,V,F,H=n(9),L=n(38),z=n(14),N=n(11).extend,W=n(39).camelize,$=n(16).when,q=Math,G=q.PI,j=q.min,K=q.abs,U=q.sqrt,Q=q.pow,Y=q.atan2,Z=q.cos,X=q.sin,J=H.each,ee=N,te=Number,ne=1,ie=.05,oe={x:30,y:20},ae="10px",se="sans-serif",re="#000",le=function(e){var t,n={};return H.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=te(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=H.Deferred(),o=t.width,a=t.height,s=t.backgroundColor;return z.isFunction(t.__parseAttributesFn)&&(le=t.__parseAttributesFn),R(i,M(e,o,a,s),n),i},getData:function(e,n){var i=this,o=t.imageCreator.getImageData(e,n),a="image/"+n.format,s=H.Deferred();return $(o).done(function(e){o=z.isFunction(window.Blob)?i._getBlob(e,a):i._getBase64(e),s.resolve(o)}),s},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new Blob([i.buffer],{type:t})},_getBase64:function(e){return window.btoa(e)}},t.getData=function(e,n,i){t.imageCreator.getData(e,n).done(i)}},function(e,t){function n(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=g[t]?"#"+g[t]:t,t=i(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=o(t[0]),this.g=o(t[1]),this.b=o(t[2]),this.a=o(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=c(this.r,this.g,this.b); }function i(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=_.length;n<i;++n)if(t=_[n].re.exec(e))return _[n].process(t);return null}function o(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function a(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,s=Math.max(e,t,n),r=Math.min(e,t,n),l=s-r;if(a=s,o=0===s?0:1-r/s,s===r)i=0;else switch(s){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function r(e,t,n){var i,o,a,s,r,l,c,d;switch(s=Math.floor(e%360/60),a=(100-t)*n/100,r=(n-a)*(e%60/60),o=a+r,i=n-r,s){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 l(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function c(e,t,n){e=f(e,255),t=f(t,255),n=f(n,255);var i,o,a=Math.max(e,t,n),s=Math.min(e,t,n),r=a+s,c=r/2;if(a===s)i=o=0;else{var d=a-s;o=c>.5?d/(2-r):d/r,i=l(e,t,n,d),i/=6}return{h:v(360*i),s:v(100*o),l:v(100*c)}}function d(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function u(e){return e<0&&(e+=1),e>1&&(e-=1),e}function h(e,t,n){return n=u(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p(e,t,n){var i,o,a;if(e=f(e,360),t=f(t,100),n=f(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,r=2*n-s;i=h(r,s,d("r",e)),o=h(r,s,d("g",e)),a=h(r,s,d("b",e))}return[v(255*i),v(255*o),v(255*a)]}function f(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var g={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"},_=[{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=r(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=p(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],v=Math.round;n.prototype={constructor:n,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 n;return t.r=o(this.r+e),t.g=o(this.g+e),t.b=o(this.b+e),t},blend:function(e,t){var i=e instanceof n?e:new n(e),a=new n;return a.r=o(v(this.r*(1-t)+i.r*t)),a.g=o(v(this.g*(1-t)+i.g*t)),a.b=o(v(this.b*(1-t)+i.b*t)),a},toHex:function(){return a(this.r,this.g,this.b)},getPureColor:function(){var e=r(this.hsv.h,100,100);return new n("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(m(e)&&m(t)&&m(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1},e.exports=n},function(e,t,n){var i=n(9),o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},s=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},r=function(e){return i.map(s(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return r(e).replace(/-/g,"_")},c=function(e,t){return i.map(s(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(r(e).replace(/-/g," "))},u=function(e){return i.map(s(e),function(e){return a(e.toLowerCase())}).join(" ")},h=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()||n in["0","1","2","3","4","5","6","7","8","9"],"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=r,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=h},function(e,t,n){var i=n(9),o=n(19),a=n(37).imageCreator,s=n(14).isFunction,r=n(11).extend,l=n(16).when,c="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",d="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",u="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",h="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",p="\r\nendstream\r\nendobj\r\n",f="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",g=60,_=40,v=function(e,t){return e.length<t?v("0"+e,t):e},w=function(e,t,n){var i=t.width+g,a=t.height+_,s=(.75*i).toFixed(2),r=(.75*a).toFixed(2),l=c.replace("_width_",s).replace("_height_",r),m=d.replace("_width_",s).replace("_height_",r),v=u.replace("_date_",n).replace("_version_",o),w=h.replace("_width_",i).replace("_height_",a).replace("_length_",e.length)+e+p,y=x(l.length,m.length,v.length),b=l+m+v+w,C=f.replace("_length_",b.length);return b+y+C},x=function(e,t,n){return m.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},y=function(){return new Date},b=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([n.buffer],{type:"application/pdf"})},C=function(e){return window.btoa(e)};t.getData=function(e,t,n){var o=a.getImageData(e,r({},t,{format:"jpeg"})),c=i.Deferred();c.done(n),l(o).done(function(e){var n=w(e,t,y()),i=s(window.Blob)?b(n):C(n);c.resolve(i)})}},function(e,t,n){var i=n(9),o=n(14),a=n(42).getSvgMarkup,s=n(16).when;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===n.DONE&&t(200===n.status&&n.response?n.response:!1)},n.open("GET",e,!0),n.responseType="arraybuffer",n.send()},_loadImages:function(){var e=this;i.each(e._imageArray,function(t){var n=new i.Deferred;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,a="",s=new Uint8Array(i),r=s.byteLength;for(o=0;o<r;o++)a+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+btoa(a),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),i.each(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),s.apply(i,this._imageDeferreds)},getData:function(e,t){var n,s=this,r='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',l=i.Deferred(),c=new DOMParser,d=c.parseFromString(e,"image/svg+xml"),u=d.childNodes[0],h=i(u);return h.css("background-color",t.backgroundColor),n=r+a(h.get(0)),s._prepareImages(u).done(function(){i.each(s._imageArray,function(e,t){n=n.split(e).join(t)}),l.resolve(o.isFunction(window.Blob)?s._getBlob(n):s._getBase64(n))}),l},_getBlob:function(e){return new Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return window.btoa(e)}},t.getData=function(e,n,i){t.svgCreator.getData(e,n).done(i)}},function(e,t){function n(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function i(e){var t=!0;return e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function o(e){return e.replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­")}t.getSvgMarkup=function(e){return i(o(n(e)))}},function(e,t,n){var i=n(9),o=n(11).extend,a=n(15),s=n(7),r=n(44).resizeCallbacks,l=n(14),c=n(26).inArray,d=n(45),u=n(48),h=u.abstract,p="dx-rtl",f="dx-visibility-change-handler",m="VisibilityChange",g=u.inherit({_getDefaultOptions:function(){return o(this.callBase(),{width:void 0,height:void 0,rtlEnabled:a().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),d.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:h,_dimensionChanged:h,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);r.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==h},_render:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_renderElementAttributes:function(){var e=o({},this.option("elementAttr")),t=e.class;delete e.class,this.element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&(this.element().addClass(f),this._attachVisibilityChangeHandlers())},_renderDimensions:function(){var e=this.option("width"),t=this.option("height"),n=this.element();n.outerWidth(e),n.outerHeight(t)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+m;e.element().off(t).on(t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){var e=this,t="dxhiding."+this.NAME+m,n="dxshown."+this.NAME+m;e._isHidden=!e._isVisible(),e.element().off(t).on(t,function(){e._checkVisibilityChanged("hiding")}).off(n).on(n,function(){e._checkVisibilityChanged("shown")})},_isVisible:function(){return this.element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==h},_clean:l.noop,_modelByElement:function(){var e=this.option("modelByElement")||l.noop;return e(this.element())},_invalidate:function(){if(!this._updateLockCount)throw s.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._render()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&r.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.element().toggleClass(p,e)},_createComponent:function(e,t,n){var a=this;n=n||{};var s=l.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),r=a.option("nestedComponentOptions")||l.noop;a._extendConfig(n,o({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},r(this)));var d;if(l.isString(t)){var u=i(e)[t](n);d=u[t]("instance")}else e&&(d=t.getInstance(e),d?d.option(n):d=new t(e,n));if(d){var h=function(e){c(e.name,s)>=0&&d.option(e.name,e.value)};a.on("optionChanged",h),d.on("disposing",function(){a.off("optionChanged",h)})}return d},_extendConfig:function(e,t){i.each(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return o(this.callBase(),{context:this._modelByElement(this.element())})},_defaultActionArgs:function(){var e=this.element(),t=this._modelByElement(this.element());return o(this.callBase(),{element:e,model:t})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":case"elementAttr":this._invalidate();break;case"disabled":case"integrationOptions":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}});g.getInstance=function(e){return d.getInstanceByElement(i(e),this)},g.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=g},function(e,t,n){var i=n(9),o=function(){var e,t=i.Callbacks(),n=i(window),o=!1,a=t.add,s=t.remove,r=function(){return{width:n.width(),height:n.height()}},l=function(){var n=r();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,setTimeout(function(){t.fire(i)})}};return e=r(),t.add=function(){var e=a.apply(t,arguments);return!o&&t.has()&&(n.on("resize",l),o=!0),e},t.remove=function(){var e=s.apply(t,arguments);return!t.has()&&o&&(n.off("resize",l),o=!1),e},t}(),a=function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},s=function(e){var t=e||a;return t(i(window).width())};t.resizeCallbacks=o,t.defaultScreenFactorFunc=a,t.getCurrentScreenFactor=s},function(e,t,n){var i=n(9),o=n(46),a=n(14),s=n(47),r="dxComponents",l="dxPrivateComponent",c=new o,d=0,u=t.name=function(e,t){if(a.isDefined(t))return void c.set(e,t);if(!c.has(e)){var n=l+d++;return c.set(e,n),n}return c.get(e)};t.attachInstanceToElement=function(e,t,n){var o=i.data(e.get(0)),a=u(t.constructor);o[a]=t,n&&e.one(s,function(){n.call(t)}),o[r]||(o[r]=[]),o[r].push(a)},t.getInstanceByElement=function(e,t){var n=u(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(26).inArray,o=window.WeakMap;o||(o=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1}}),e.exports=o},function(e,t,n){var i=n(9),o=n(10),a=o.cleanData,s=i.event.special,r="dxremove",l="dxRemoveEvent";o.cleanData=function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n.removeProp(l),n.triggerHandler(r))}return a(e)},s[r]={noBubble:!0,setup:function(){i(this).prop(l,!0)}},e.exports=r},function(e,t,n){var i=n(9),o=n(15),a=n(11).extend,s=n(25),r=n(49),l=n(7),c=n(50),d=n(14),u=n(12),h=n(51),p=n(45),f=n(53),m=d.isFunction,g=d.noop,_={},v={},w=s.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){return i.map(this._deprecatedOptions,function(t,n){return e===t.alias?n:void 0})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);a(!0,this._options,n);for(var i in this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=f.current(),o=function(e,t){return t=i.makeArray(t),1===t.length&&u.isEmptyObject(t[0])||d.findBestMatches(e,t).length>0},s=0;s<e.length;s++){var r,l=e[s],c=l.device||{};r=m(c)?c(n):o(n,c),r&&a(t,l.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=m(t)&&m(n)?t.toString()===n.toString():d.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=p.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||i.Callbacks(),this._disposingCallbacks=e._disposingCallbacks||i.Callbacks(),this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=c.toComparable(t,!0),n=c.toComparable(n,!0),t&&n&&t.jquery&&n.jquery)return n.is(t);var i=t!==t,o=n!==n;return!(!i||!o)||(null===t||"object"!=typeof t)&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&!this._initializing&&!this._initialized){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";l.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:g,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),s=0;s<o.length;s++){var r=o[s],l={name:r.split(/[.\[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[a(i._defaultActionArgs(),l)]),i._optionChangedAction(a({},l)),i._disposed||i._optionChanged(l)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),u.isPlainObject(o)||(o={actionValue:o}),n=n||new r(e,a(t,i._defaultActionConfig())),n.execute.call(n,a(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,a,s=this,r=function(){if(!i){if(t=t||{},"string"!=typeof e)throw l.Error("E0008");0===e.indexOf("on")&&(i=s._getEventName(e)),a=s.option(e)}if(n||a||t.beforeExecute||t.afterExecute||s.hasEvent(i)){if(!n){var r=t.beforeExecute;t.beforeExecute=function(e){s.fireEvent(i,e.args),r&&r.apply(s,arguments)},s._suppressDeprecatedWarnings(),n=s._createAction(a,t),s._resumeDeprecatedWarnings()}if(o().wrapActionsBeforeExecute){var c=s.option("beforeActionExecute")||g;n=c(s,n,t)||n}return n.apply(s,arguments)}};if(!o().wrapActionsBeforeExecute){var c=s.option("onActionCreated")||g;r=c(s,r,t)||r}return r},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return t.hasOwnProperty(e)},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=_[t];return i||(i=_[t]=c.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),s=n(o),r=a?i(e,a,!1):e;r&&delete r[s]},a=function(e,o,a){var s,r="";do r&&(r="."+r),r=n(o)+r,o=t(o),s=o?i(e,o,!1):e;while(!s);s[r]=a},s=function(t,n,i,s){if(i){var r=e(t,i);r&&r!==i&&(a(n,r,s),o(n,i))}},r=function(e,t,n,i){if(u.isPlainObject(i))for(var o in i)r(e,t,n+"."+o,i[o]);s(e,t,n,i)},l=function(e,t,n){v[t]||(v[t]=c.compileSetter(t));var i=t.split(/[.\[]/);v[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},h=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==d.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var s;for(s in t)r(o,t,s,t[s]);for(s in t)h(o,s,t[s])}finally{o.endUpdate()}}}()}).include(h);e.exports=w},function(e,t,n){var i=n(9),o=n(15),a=n(14),s=n(12),r=n(25),l=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;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute;if(this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var i=this._executeAction(e),o=e.args[0];if(!o||!o.cancel)return n&&n.call(this._context,e),i}},_validateAction:function(e){var t=this._excludeValidators,n=l.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=l.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});l.executors={},l.registerExecutor=function(e,t){return s.isPlainObject(e)?void i.each(e,l.registerExecutor):void(l.executors[e]=t)},l.unregisterExecutor=function(){var e=i.makeArray(arguments);i.each(e,function(){delete l.executors[this]})},l.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){a.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var c=function(e){return function(t){if(t.args.length){var n=t.args[0],i=n[t.validatingTargetName]||n.element;i&&e(i)&&(t.cancel=!0)}}};l.registerExecutor({designMode:{validate:function(e){o().designMode&&(e.cancel=!0)}},disabled:{validate:c(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:c(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=l},function(e,t,n){var i=n(9),o=n(7),a=n(25),s=n(27),r=n(14),l=n(12),c=n(28),d=c.unwrap,u=c.isWrapped,h=c.assign,p=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},f=function(e,t){return"this"===t?e:e[t]},m=function(e,t,n,i){if("this"===t)throw new o.Error("E4016");var a=e[t];i.unwrapObservables&&u(a)?h(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?d(e):e},v=function(e){if(arguments.length>1&&(e=i.makeArray(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=p(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=_(e,n),a=0;a<t.length&&o;a++){var s=_(o[t[a]],n);!i&&r.isFunction(s)&&(s=s.call(o)),o=s}return o}}return Array.isArray(e)?w(e):r.isFunction(e)?e:void 0},w=function(e){for(var t={},n=0,o=e.length;n<o;n++){var a=e[n];t[a]=v(a)}return function(e,n){var o;return i.each(t,function(t){var i,a,s,r,l=this(e,n);if(void 0!==l){for(i=o||(o={}),a=t.split("."),s=a.length-1,r=0;r<s;r++)i=i[a[r]]={};i[a[r]]=l}}),o}},x=function(e){e=e||"this",e=p(e);var t=e.lastIndexOf("."),n=v(e.substr(0,t)),o=e.substr(1+t);return function(e,t,a){a=g(a);var c=n(e,{functionsAsIs:a.functionsAsIs,unwrapObservables:a.unwrapObservables}),d=f(c,o);a.functionsAsIs||!r.isFunction(d)||u(d)?(d=_(d,a),!a.merge||!l.isPlainObject(t)||void 0!==d&&!l.isPlainObject(d)||t instanceof i.Event?m(c,o,t,a):(d||m(c,o,{},a),c=_(f(c,o),a),s.deepExtendArraySafe(c,t,!1,!0))):c[o](t)}},y=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof a&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=v,t.compileSetter=x,t.toComparable=y},function(e,t,n){var i=n(9),o=n(52),a=n(12).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new o(this))},setEventsStrategy:function(e){this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?i.each(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){var i=n(9),o=n(14).isFunction,a=n(25);e.exports=a.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i.Callbacks(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){i.each(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(12).isPlainObject,s=n(25),r=n(7),l=n(44).resizeCallbacks,c=n(51),d=n(54).sessionStorage,u=n(55),h=n(15),p={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},f={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},m={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=480===window.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:a}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.(\d+)\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},g=s.inherit({

ctor:function(e){this._window=e&&e.window||window,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=i.Callbacks(),this._recalculateOrientation(),l.add(this._recalculateOrientation.bind(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({},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]),_.isSimulator()&&t.push("dx-simulator"),h().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||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}),a(e))return this._fromConfig(e);var t;if(e){if(t=p[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=d();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=o({},f,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(t,n)},_fromUA:function(e){var t;if(i.each(m,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),o=f;return o.mac=n,o},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(c),_=new g;u.changeCallback.add(function(e,t){_.detachCssClasses(t),_.attachCssClasses(e)}),_.isForced()||"win"!==_.current().platform||_.current({version:[10]}),e.exports=_},function(e,t){var n=function(){var e;try{e=window.sessionStorage}catch(e){}return e};t.sessionStorage=n},function(e,t,n){var i=n(9),o=n(56),a=i.Callbacks(),s=i(),r=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,l=r();e=o?n:i("body"),a.fire(o?r():i(),l)}}();o(function(){r(".dx-viewport")}),t.value=r,t.changeCallback=a,t.originalViewPort=function(){return s}},function(e,t){e.exports=function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return void e();var t=function(){e(),document.removeEventListener("DOMContentLoaded",t)};document.addEventListener("DOMContentLoaded",t)}},function(e,t,n){var i=n(9),o=n(10),a=n(7),s=n(58),r=n(45),l=new s,c=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),l.fire(e,n)};c.callbacks=l;var d=function(e,t){i.fn[e]=o.fn[e]=function(n){var o,s="string"==typeof n;if(s){var r=n,l=i.makeArray(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var i=n[r],s=i.apply(n,l);void 0===o&&(o=s)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),o=this;return o}};l.add(d),e.exports=c},function(e,t,n){var i=n(9),o=function(){var e=[],t=i.Callbacks();this.add=function(n){i.each(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=o},function(e,t){var n=1e3/60,i=function(e){return this.setTimeout(e,n)},o=function(e){this.clearTimeout(e)},a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,s=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;if(a&&s&&(i=a,o=s),a&&!s){var r={};i=function(e){var t=a.call(window,function(){try{if(t in r)return;e.apply(this,arguments)}finally{delete r[t]}});return t},o=function(e){r[e]=!0}}t.requestAnimationFrame=i.bind(window),t.cancelAnimationFrame=o.bind(window)},function(e,t,n){var i=n(9),o=n(11).extend,a=n(44).resizeCallbacks,s=n(61),r=n(53),l=function(e){e=o({},e);var t=r.real(),n=e.allowZoom,l=e.allowPan,c="allowSelection"in e?e.allowSelection:"generic"===t.platform,d="meta[name=viewport]";i(d).length||i("<meta />").attr("name","viewport").appendTo("head");var u=["width=device-width"],h=[];if(n?h.push("pinch-zoom"):u.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),l&&h.push("pan-x","pan-y"),l||n?i("html").css("-ms-overflow-style","-ms-autohiding-scrollbar"):i("html, body").css({"-ms-content-zooming":"none","-ms-user-select":"none",overflow:"hidden"}),!c&&s.supportProp("user-select")&&i(".dx-viewport").css(s.styleProp("user-select"),"none"),i(d).attr("content",u.join()),i("html").css("-ms-touch-action",h.join(" ")||"none"),t=r.real(),!s.touch||"win"===t.platform&&10===t.version[0]||i(document).off(".dxInitMobileViewport").on("dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,a=!l&&1===t&&!e.isScrollingEvent;i&&(o||a)&&e.preventDefault()}),t.ios){var p="file:"===document.location.protocol;p||a.add(function(){var e=i(window).width();i("body").width(e)})}t.android&&a.add(function(){setTimeout(function(){document.activeElement.scrollIntoViewIfNeeded()})})};t.initMobileViewport=l},function(e,t,n){var i=n(39),o=n(26).inArray,a=n(53),s=i.camelize,r=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=document.createElement("dx").style,d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(e,t){e=s(e,!0);for(var n,i=0,o=r.length;i<o;i++){var a=r[i],l=a+e,c=s(l);if(n=t(c,a),void 0===n&&(n=t(l,a)),void 0!==n)break}return n},h=function(e){return u(e,function(e){if(e in c)return e})},p=function(e){return u(e,function(e,t){if(e in c)return l[t]})},f=function(e){return!!h(e)},m=function(){var e=a.real(),t=e.platform,n=e.version,i=n&&n[0]<4&&"android"===t,s=!i&&o(t,["ios","android","win"])>-1||e.mac;return s},g=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}},_="ontouchstart"in window&&!("callPhantom"in window),v=!!window.navigator.pointerEnabled||!!window.navigator.msPointerEnabled,w=!!window.navigator.maxTouchPoints||!!window.navigator.msMaxTouchPoints;t.touchEvents=_,t.pointerEvents=v,t.touch=_||v&&w,t.transition=f("transition"),t.transitionEndEventName=d[h("transition")],t.animation=f("animation"),t.nativeScrolling=m(),t.styleProp=h,t.stylePropPrefix=p,t.supportProp=f,t.hasKo=!!window.ko,t.inputType=g},function(e,t,n){var i=n(9),o=n(7),a=n(26).inArray,s=n(14),r=function(){var e=document.activeElement;e&&e!==document.body&&e.blur&&e.blur()},l=function(){var e=window.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},c=function(e,t){var n=i(e),o=i(t);if(n[0]===o[0])return n[0];for(var a=n.parents(),s=o.parents(),r=Math.min(a.length,s.length),l=-r;l<0;l++)if(a.get(l)===s.get(l))return a.get(l)},d=function(e){var t=".dx-visibility-change-handler";return function(n){for(var o=i(n||"body"),a=o.filter(t).add(o.find(t)),s=0;s<a.length;s++)i(a[s]).triggerHandler(e)}},u=function(){var e=0;return function(t){return(t||"")+e++}}(),h="data-options",p=function(e){var t,n=i(e).attr(h);"{"!==i.trim(n).charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw o.Error("E3018",e,n)}return t},f=function(e,t){var n=[],o="["+h+"]",s=e.find(o).add(e.filter(o));return s.each(function(e,o){var s=i(o),r=p(o);for(var l in r)(!t||a(l,t)>-1)&&s[l]&&(s[l](r[l]),n.push(s[l]("instance")))}),n},m=function(e){if(!window.WinJS)return i(e);var t=i("<div />");return window.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},g=function(e){var t=s.isDefined(e)&&(e.nodeType||e.jquery)?i(e):i("
").html(e).contents();return 1===t.length&&(t.is("script")?t=g(t.html()):t.is("table")&&(t=t.children("tbody").contents())),t},_=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},v=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=r,t.createMarkupFromString=m,t.triggerShownEvent=d("dxshown"),t.triggerHidingEvent=d("dxhiding"),t.triggerResizeEvent=d("dxresize"),t.getElementOptions=p,t.createComponents=f,t.normalizeTemplateElement=g,t.clearSelection=l,t.uniqueId=u,t.closestCommonParent=c,t.clipboardText=v,t.toggleAttr=_},function(e,t,n){function i(e){function t(){for(;s.length;){r=!0;var e=s.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}r=!1}function n(n,i){e?(s[0]&&i&&i(s[0]),s=[n]):s.push(n),r||t()}function i(){return r}var s=[],r=!1;return{add:n,busy:i}}var o=n(7),a=n(16).when;t.create=i,t.enqueue=i().add},function(e,t,n){function i(e){return x[w(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=c(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 a=n(9),s=n(14),r=n(39).camelize,l=s.isObject,c=s.isString,d=s.isDate,u=s.isDefined,h=["millisecond","second","minute","hour","day","week","month","quarter","year"],p=function(e){switch(e){case"millisecond":return 1;case"second":return 1e3*p("millisecond");case"minute":return 60*p("second");case"hour":return 60*p("minute");case"day":return 24*p("hour");case"week":return 7*p("day");case"month":return 30*p("day");case"quarter":return 3*p("month");case"year":return 365*p("day");default:return 0}},f=function(e,t,n){var i=t.getTime()-e.getTime(),o=p(n)||1;return Math.floor(i/o)},m=function(e,t){var n=w(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},g=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/p(i)),n>0&&(a[i+"s"]=n,e-=v(i,n));return a},_=function(e){var t=0;return l(e)&&a.each(e,function(e,n){t+=v(e.substr(0,e.length-1),n)}),c(e)&&(t=v(e,1)),t},v=function(e,t){return p(e)*t},w=function(e){var t,n=-1;return c(e)?e:l(e)?(a.each(e,function(e,i){for(t=0;t<h.length;t++)i&&(e===h[t]+"s"||e===h[t])&&n<t&&(n=t)}),h[n]):""},x={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},y=function(e){return Math.floor(e/3)},b=function(e){return 3*y(e)},C=function(e,t,n){e=new Date(e.getTime());var i,o=new Date(e.getTime()),a=w(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=b(e.getMonth()),e.getMonth()!==i&&e.setMonth(i),e.setDate(1),e.setHours(0,0,0,0)}return n&&"hour"!==a&&"minute"!==a&&"second"!==a&&J(o,e),e},k=function(e){return ie.correctDateWithUnitBeginning(e,"day")},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(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},a.each(n,function(e,t){t&&i++}),n.count=i,n},S=function(e,t,n){var i=n?-1:1;return d(e)?o(e,t,i):e+t*i},D=function(e,t,n){var i,o=[];for(o.push(d(e)?new Date(e.getTime()):e),i=e;i<t;)i=S(i,n),o.push(i);return o},T=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(G(t),t.getMonth(),t.getDate()):"century"===e?new Date(q(t),t.getMonth(),t.getDate()):void 0},E=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),M(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(G(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(q(t)+90,t.getMonth(),t.getDate()):void 0},A=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(G(t)),"century"===e&&n.setFullYear(q(t)),n))},B=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),M(t));return"month"===e?n:(n.setMonth(11),n.setDate(M(n)),"year"===e?n:("decade"===e&&n.setFullYear(G(t)+9),"century"===e&&n.setFullYear(q(t)+99),n))},M=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},R=function(e,t,n){return ie[r("same "+e)](t,n)},O=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},P=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},V=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},F=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},L=function(e,t){return z(e,t)&&e.getDate()===t.getDate()},z=function(e,t){return N(e,t)&&e.getMonth()===t.getMonth()},N=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},W=function(e,t){if(u(e)&&u(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},$=function(e,t){if(u(e)&&u(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},q=function(e){return e&&e.getFullYear()-e.getFullYear()%100},G=function(e){return e&&e.getFullYear()-e.getFullYear()%10},j=function(){return"yyyy/MM/dd"},K=function(e){if(u(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},U=function(e){if(u(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},Q=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},Y=function(e,t){var n=ie.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},Z=function(e,t,n,i){return"date"===i&&(t=t&&ie.correctDateWithUnitBeginning(t,"day"),n=n&&ie.correctDateWithUnitBeginning(n,"day"),e=e&&ie.correctDateWithUnitBeginning(e,"day")),X(e,t,n)===e},X=function(e,t,n){var i=e;return u(e)?(u(t)&&e<t&&(i=t),u(n)&&e>n&&(i=n),i):e},J=function(e,t){if(u(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},ee=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},te=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},ne=function(e){return new Date(e)},ie={dateUnitIntervals:h,convertMillisecondsToDateUnits:g,dateToMilliseconds:_,getNextDateUnit:m,convertDateUnitToMilliseconds:v,getDateUnitInterval:w,getDateFormatByTickInterval:i,getDatesDifferences:I,correctDateWithUnitBeginning:C,trimTime:k,addDateInterval:o,addInterval:S,getSequenceByInterval:D,getDateIntervalByString:H,sameDate:L,sameMonthAndYear:z,sameMonth:z,sameYear:N,sameDecade:W,sameCentury:$,sameView:R,getDifferenceInMonth:V,getDifferenceInMonthForCells:F,getFirstYearInDecade:G,getFirstDecadeInCentury:q,getShortDateFormat:j,getViewFirstCellDate:T,getViewLastCellDate:E,getViewDown:P,getViewUp:O,getLastMonthDay:M,getLastMonthDate:U,getFirstMonthDate:K,getFirstWeekDate:Q,normalizeDateByWeek:Y,getQuarter:y,getFirstQuarterMonth:b,dateInRange:Z,roundToHour:ee,normalizeDate:X,getViewMinBoundaryDate:A,getViewMaxBoundaryDate:B,fixTimezoneGap:J,getTimezonesDifference:te,makeDate:ne,getDatesInterval:f};e.exports=ie},function(e,t,n){var i=n(9),o=i.Callbacks();e.exports=function(){o.fire()},e.exports.processCallback=o},function(e,t,n){var i=n(26).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(14),o=n(12),a=n(64),s=n(32),r=n(33),l=n(29),c=n(13).logger;n(36),e.exports=l({format:function(e,t,n){var a=i.isString(t)&&""!==t||o.isPlainObject(t)||i.isFunction(t),l=i.isNumeric(e)||i.isDate(e);return a&&l?i.isFunction(t)?t(e):(void 0!==n&&c.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),i.isNumeric(e)?s.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e){var t=[];if(e.millisecond&&t.push("millisecond"),(e.hour||e.minute||e.second)&&t.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t.unshift("shortdate"),this._normalizeFormat(t);if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day)return t.unshift("monthandday"),this._normalizeFormat(t);if(e.month)return"month";if(e.day){var n=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};return t.unshift(n),this._normalizeFormat(t)}return this._normalizeFormat(t)},getDateFormatByTicks:function(e){var t,n,i,o;if(e.length>1)for(n=a.getDatesDifferences(e[0],e[1]),o=1;o<e.length-1;o++)i=a.getDatesDifferences(e[o],e[o+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var o,s,r,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=i.isString(n)?n.toLowerCase():n,s=a.getDatesDifferences(e,t),e!==t&&d(s,e>t?t:e,e>t?e:t),r=a.getDateUnitInterval(s),c(s,r,!0),r=a.getDateUnitInterval(n||"second"),c(s,r,!1),s[l[r]||r]=!0,o=this.getDateFormatByDifferences(s)}})},function(e,t,n){var i=n(9),o=n(48),a=n(11).extend,s=n(53),r=n(69),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return s.current().android||s.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,s=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===s?l.from={left:a,opacity:e}:"backward"===s?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},r.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,s=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===s?l.to={left:-a,opacity:e}:"backward"===s?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},r.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",r.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",r.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",r.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",r.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];i.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,t=[];i.each(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return s.current().android||s.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!s.current().android&&!s.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!s.current().android&&!s.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return s.current().android||s.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},function(e,t,n){var i=n(9),o=n(7),a=n(11).extend,s=n(14),r=n(12),l=n(70),c=n(59),d=n(61),u=n(71),h=n(47),p=n(72),f=n(16).when,m=d.transitionEndEventName+".dxFX",g=p.addNamespace(h,"dxFX"),_=s.isFunction,v=r.isPlainObject,w=s.noop,x=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,y=/^([+-])=(.*)/i,b="dxAnimData",C="dxAnimQueue",k="transform",I={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):re(e,t.from);var n=this,o=i.Deferred(),a=t.cleanupWhen;t.transitionAnimation={deferred:o,finish:function(){n._finishTransition(e),a?f(o,a).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),o.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){o.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,o,a=this,s=i.now()+t.delay,r=i.Deferred(),l=i.Deferred(),c=i.Deferred();return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(o),e.off(m),e.off(g)},e.one(m,function(){i.now()-s>=t.duration&&l.reject()}).off(g).on(g,function(){a.stop(e,t),r.reject()}),o=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ce._simulatedTransitionEndDelay),f(l,c).fail(function(){r.resolve()}.bind(this))}),r.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&&re(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(v(t.to)&&i.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},S={initAnimation:function(e,t){re(e,t.from)},animate:function(e,t){var n=i.Deferred(),o=this;return t?(i.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=o._normalizeValue(e.css(n)))}),t.to[k]&&(t.from[k]=o._parseTransform(t.from[k]),t.to[k]=o._parseTransform(t.to[k])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:B(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),c.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=a({},this.currentValue);n[k]&&(n[k]=i.map(n[k],function(e,t){return"translate"===t?l.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(){o._startAnimation(e,t)},t.delay)):o._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){e.off(g).on(g,function(){t.frameAnimation&&c.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return i.each(e.match(/(\w|\d)+\([^\)]*\)\s*/g),function(e,n){var i=l.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&&(c.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=c.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function(o,a){var s=Array.isArray(a)?[]:{},r=function(n){var s=t/e.duration,r=t,l=1*o[n],c=a[n]-o[n],d=e.duration;return i.easing[e.easing](s,r,l,c,d)};return i.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(s[e]="object"==typeof t?n(o[e],t):r(e))}),s};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},D={initAnimation:function(){},animate:function(){return i.Deferred().resolve().promise()},stop:w,isSynchronous:!0},T={transition:d.transition?I:S,frame:S,noAnimation:D},E=function(e){e=e||{};var t=e.strategy||"transition";return"css"!==e.type||d.transition||(t="noAnimation"),T[t]},A={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)"},B=function(e){e=A[e]||e;var t=e.match(x);if(!t)return"linear";t=t.slice(1,5),i.each(t,function(e,n){t[e]=parseFloat(n)});var n="cubicbezier_"+t.join("_").replace(/\./g,"p");if(!_(i.easing[n])){var o=function(e,t,n,i){var o=3*e,a=3*(n-e)-o,s=1-o-a,r=3*t,l=3*(i-t)-r,c=1-r-l,d=function(e){return e*(o+e*(a+e*s))},u=function(e){return e*(r+e*(l+e*c))},h=function(e){for(var t,n=e,i=0;i<14&&(t=d(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return o+e*(2*a+3*e*s)};return function(e){return u(h(e))}};i.easing[n]=function(e,n,i,a,s){return a*o(t[0],t[1],t[2],t[3])(n/s)+i}}return n},M=function(e,t,n,a){i.each(["from","to"],function(){if(!n(e[this]))throw o.Error("E0010",t,this,a)})},R=function(e,t){return M(e,t,function(e){return v(e)},"a plain object")},O=function(e,t){return M(e,t,function(e){return"string"==typeof e},"a string")},P={setup:function(){}},V={validateConfig:function(e){O(e,"css")},setup:function(){}},F={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"}},H={validateConfig:function(e){R(e,"slide")},setup:function(e,t){var n=l.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=a({of:window},F[t.direction]),se(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),l.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[k]=l.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=y.exec(e)))return parseInt(t[1]+"1")*t[2]}},L={setup:function(e,t){var n,i=t.from,o=v(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},z={validateConfig:function(e){R(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,r="scale"in i?i.scale:1;t.from={opacity:o};var c=l.getTranslate(e);t.from[k]=this._getCssTransform(c,s),t.to={opacity:a},t.to[k]=this._getCssTransform(c,r)},_getCssTransform:function(e,t){return l.getTranslateCss(e)+"scale("+t+")"}},N={custom:P,slide:H,slideIn:H,slideOut:H,fade:L,fadeIn:L,fadeOut:L,pop:z,css:V},W=function(e){var t=N[e.type];if(!t)throw o.Error("E0011",e.type);return t},$={type:"custom",from:{},to:{},duration:400,start:w,complete:w,easing:"ease",delay:0},q={duration:400,easing:"ease",delay:0},G=function(){var e=this,t=e.element,n=e.config;se(t,n.from),se(t,n.to),e.configurator.setup(t,n),t.data(b,e),ce.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start&&n.start.apply(this,[t,n])},j=function(e){var t=e.element,n=e.config;t.removeData(b),n.complete&&n.complete.apply(this,[t,n]),e.deferred.resolveWith(this,[t,n])},K=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){j(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},U=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Q=p.addNamespace(h,"dxFXStartAnimation"),Y=function(e){e.element.off(Q).on(Q,function(){ce.stop(e.element)}),e.deferred.always(function(){e.element.off(Q)})},Z=function(e,t){var n="css"===t.type?q:$,o=a(!0,{},n,t),s=W(o),r=E(o),l={element:i(e),config:o,configurator:s,strategy:r,isSynchronous:r.isSynchronous,setup:G,start:K,stop:U,deferred:i.Deferred()};return _(s.validateConfig)&&s.validateConfig(o),Y(l),l},X=function(e,t){var n=i(e);if(!n.length)return i.Deferred().resolve().promise();var o=Z(n,t);return J(n,o),o.deferred.promise()},J=function(e,t){var n=ee(e);te(e,n),n.push(t),ie(e)||oe(e,n)},ee=function(e){return e.data(C)||[]},te=function(e,t){e.data(C,t)},ne=function(e){e.removeData(C)},ie=function(e){return!!e.data(b)},oe=function(e,t){if(t=ee(e),t.length){var n=t.shift();0===t.length&&ne(e),ae(n).done(function(){ie(e)||oe(e)})}},ae=function(e){return e.setup(),ce.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},se=function(e,t){if(t&&t.position){var n=u.calculate(e,t.position),i=e.offset(),o=e.position();a(t,{left:n.h.location-i.left+o.left,top:n.v.location-i.top+o.top}),delete t.position}},re=function(e,t){i.each(t,function(t,n){try{e.css(t,n)}catch(e){}})},le=function(e,t){var n=i(e),o=ee(n);i.each(o,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ie(n)||oe(n,o);var a=n.data(b);a&&a.stop(t),n.removeData(b),ne(n)},ce={off:!1,animationTypes:N,animate:X,createAnimation:Z,isAnimating:ie,stop:le,_simulatedTransitionEndDelay:100};e.exports=ce},function(e,t,n){var i=n(9),o=n(14).type,a="dxTranslator",s=/matrix(3d)?\((.+?)\)/,r=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=u(e);return{left:t.x,top:t.y}},c=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=u(e),n.y=o||0):void 0===o?(n=u(e),n.x=i||0):(n={x:i||0,y:o||0,z:0},h(e,n)),e.css({transform:g(n)}),(d(i)||d(o))&&p(e)},d=function(e){return"string"===o(e)&&"%"===e[e.length-1]},u=function(e){var t=e.length?i.data(e.get(0),a):null;if(!t){var n=e.css("transform")||g({x:0,y:0}),o=n.match(s),r=o&&o[1];o?(o=o[2].split(","),"3d"===r?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],t={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),a,t)},p=function(e){e.length&&i.removeData(e.get(0),a)},f=function(e){e.css({left:0,top:0,transform:"none"}),p(e)},m=function(e){var t=e.match(r);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},g=function(e){e.x=e.x||0,e.y=e.y||0;var t=d(e.x)?e.x:e.x+"px",n=d(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=c,t.locate=l,t.clearCache=p,t.parseTranslate=m,t.getTranslate=u,t.getTranslateCss=g,t.resetPosition=f},function(e,t,n){var i,o=n(9),a=n(14),s=n(18),r=n(11).extend,l=n(70),c=n(61),d=/left|right/,u=/top|bottom/,h=/fit|flip|none/,p=function(e){var t={h:"center",v:"center"},n=a.splitPair(e);return n&&o.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)},m=function(e){var t=a.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}},_=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.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},w=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},x=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.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var n=r({},e,{myAlign:_(e.myAlign),atAlign:_(e.atAlign),offset:-e.offset});x(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){e.oversize=0}},b=function(){var e=o("
").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},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=o(e),s=n.offset(),l=r(!0,{},C,{h:{location:s.left},v:{location:s.top}});if(!t)return l;var d=p(t.my),u=p(t.at),h=t.of||window,g=f(t.offset),_=m(t.collision),k=t.boundary,I=f(t.boundaryOffset),S={mySize:n.outerWidth(),myAlign:d.h,atAlign:u.h,offset:g.h,collision:_.h,boundaryOffset:I.h},D={mySize:n.outerHeight(),myAlign:d.v,atAlign:u.v,offset:g.v,collision:_.v,boundaryOffset:I.v};if(h.preventDefault)S.atLocation=h.pageX,D.atLocation=h.pageY,S.atSize=0,D.atSize=0;else if(h=o(h),a.isWindow(h[0]))S.atLocation=h.scrollLeft(),D.atLocation=h.scrollTop(),S.atSize=h[0].innerWidth>h[0].outerWidth?h[0].innerWidth:h.width(),D.atSize=h[0].innerHeight>h[0].outerHeight?h[0].innerHeight:h.height();else if(9===h[0].nodeType)S.atLocation=0,D.atLocation=0,S.atSize=h.width(),D.atSize=h.height();else{var T=h.offset();S.atLocation=T.left,D.atLocation=T.top,S.atSize=h.outerWidth(),D.atSize=h.outerHeight()}x(S),x(D);var E=function(){var e=o(window),t=e.width(),n=e.height(),a=e.scrollLeft(),s=e.scrollTop(),r=document.width>document.documentElement.clientWidth,l=document.height>document.documentElement.clientHeight,d=c.touch?document.documentElement.clientWidth/(l?t-i:t):1,u=c.touch?document.documentElement.clientHeight/(r?n-i:n):1;void 0===i&&b();var h=t,p=n;if(k){var f=o(k),m=f.offset();a=m.left,s=m.top,h=f.width(),p=f.height()}return{h:{min:a+S.boundaryOffset,max:a+h/d-S.mySize-S.boundaryOffset},v:{min:s+D.boundaryOffset,max:s+p/u-D.mySize-D.boundaryOffset}}}();S.oversize=v(S,E.h),D.oversize=v(D,E.v),S.collisionSide=w("h",S,E.h),D.collisionSide=w("v",D,E.v),y[S.collision]&&y[S.collision](S,E.h),y[D.collision]&&y[D.collision](D,E.v);var A=function(e){return t.precise?e:Math.round(e)};return r(!0,l,{h:{location:A(S.myLocation),oversize:A(S.oversize),fit:S.fit,flip:S.flip,collisionSide:S.collisionSide},v:{location:A(D.myLocation),oversize:A(D.oversize),fit:D.fit,flip:D.flip,collisionSide:D.collisionSide},precise:t.precise}),l},I=function(e,t){var n=o(e);if(!t)return n.offset();l.resetPosition(n);var i=n.offset(),a=t.h&&t.v?t:k(n,t),s=function(e){return t.precise?e:Math.round(e)};return l.move(n,{left:a.h.location-s(i.left),top:a.v.location-s(i.top)}),a},S=function(e){return e=o(e).get(0),a.isWindow(e)?null:e instanceof o.Event?{top:e.pageY,left:e.pageX}:o(e).offset()};I.inverseAlign||(I.inverseAlign=_),I.normalizeAlign||(I.normalizeAlign=p),e.exports={calculateScrollbarWidth:b,calculate:k,setup:I,offset:S}},function(e,t,n){var i=n(9),o=n(7),a=n(11).extend,s=n(73).copy,r=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 i.each(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),l=function(e){return"dx"===r(e)},c=function(e){return"mouse"===r(e)},d=function(e){return"touch"===r(e)},u=function(e){return"pointer"===r(e)},h=function(e){return c(e)||(u(e)||l(e))&&"mouse"===e.pointerType},p=function(e){return d(e)||(u(e)||l(e))&&"touch"===e.pointerType},f=function(e){return"keyboard"===r(e)},m=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},g=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},_=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},v=function(e){return d(e)?(e.originalEvent.touches||[]).length:l(e)?(e.pointers||[]).length:0},w=function(e){var t=i(e.target),n=t.is("input, textarea, select");return!!t.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||("dxmousewheel"===e.type?t.is("input[type='number'], textarea, select")&&t.is(":focus"):h(e)?n||e.which>1:p(e)?n&&t.is(":focus"):void 0)},x=function(e,t){var n=s(e);return t&&a(n,t),n},y=function(e){var t=x(e.originalEvent,e);return i.event.trigger(t,null,e.delegateTarget||t.target),t},b=function(e,t){if(!t)throw o.Error("E0017");return"string"==typeof e?e.indexOf(" ")===-1?e+"."+t:b(e.split(/\s+/g),t):(i.each(e,function(n,i){e[n]=i+"."+t}),e.join(" "))};e.exports={eventSource:r,isPointerEvent:u,isMouseEvent:h,isTouchEvent:p,isKeyboardEvent:f,isFakeClickEvent:m,hasTouches:v,eventData:g,eventDelta:_,needSkipEvent:w,createEvent:x,fireEvent:y,addNamespace:b}},function(e,t,n){var i=n(9),o=n(17).compare,a=n(14).isNumeric,s=n(74),r=["pageX","pageY","screenX","screenY","clientX","clientY"],l=function(e,t){if(t[e]||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;if(n.length)return n[0][e]};if(o(i.fn.jquery,[3])<0){var c={2:"touch",3:"pen",4:"mouse"};i.each(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return a(n)&&(e.pointerType=c[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),i.each(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return i.each(r,function(n,i){e[i]=l(i,t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var d={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};s.callbacks.add(function(e){i.event.fixHooks[e]=d});var u=function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,o=n.props?i.event.props.concat(n.props):i.event.props,a=o.length;a--;){var s=o[a];e[s]=t[s]}return n.filter?n.filter(e,t):e};t.copy=function(e){return u(i.Event(e.type,e),e)}}else i.each(r,function(e,t){i.event.addProp(t,function(e){return l(t,e)})}),t.copy=function(e){return i.Event(e,e)}},function(e,t,n){var i=n(9),o=n(58),a=new o,s=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i.each(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,o){t[o]&&(n[o]=function(){var e=i.makeArray(arguments);return e.unshift(this),t[o].apply(t,e)})}),a.fire(e,n)};s.callbacks=a;var r=function(e,t){i.event.special[e]=t};a.add(r),e.exports=s},function(e,t,n){var i=n(9),o=n(25),a=n(11).extend,s=n(14),r=n(12),l=n(69),c=n(68),d=n(16).when,u={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},h="dx-animating",p=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a,s=this,r=[];return n=n||{},a=this._prepareElementAnimationConfig(t,n,o),a&&e.each(function(){var e=s._createAnimation(i(this),a,n);e&&(e.element.addClass(h),e.setup(),r.push(e))}),r},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=c.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+u[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return r.isPlainObject(t)?i=l.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(h);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=i.Deferred(),this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=i.map(this._animations,function(e){var t=i.Deferred();return e.deferred.always(function(){t.resolve()}),t.promise()});e=d.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),s.executeAsync(function(){t._startAnimations()})}else t.reset(),e=i.Deferred().resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=p},function(e,t,n){var i=n(9),o=n(53),a=n(62),s=n(59),r=n(72),l=n(77),c=n(84),d=n(85),u=n(17).compare,h="dxclick",p=10,f=Math.abs,m=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},g={requestAnimationFrame:s.requestAnimationFrame,cancelAnimationFrame:s.cancelAnimationFrame},_=c.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=r.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===l.cancel?void this._cancel(e):(m(e.target)||this._blurPrevented||a.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=g.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,o=!i.contains(t,n)&&t!==n,a=r.eventDelta(r.eventData(e),this._startEventData),s=f(a.x)>p||f(a.y)>p;return o||s},_fireClickEvent:function(e){this._fireEvent(h,e,{target:a.closestCommonParent(this._startTarget,e.target)})},dispose:function(){g.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=o.real(),n=t.generic||t.ios&&u(t.version,[9,3])>=0||t.android&&u(t.version,[5])>=0,a=function(t){return n||i(t).closest("."+e).length},s=null,l=null,c=function(e){var t=e.originalEvent,n=l!==t,i=!e.which||1===e.which;i&&!s&&a(e.target)&&n&&(l=t,r.fireEvent({type:h,originalEvent:e}))};_=_.inherit({_makeElementClickable:function(e){a(e)||this.callBase(e),e.on("click",c)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,a(e.target)||this.callBase(e)},end:function(e){a(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),this.getElement().off("click",c)}})}(),function(){var e=o.real().generic;if(!e){var t=null,n=!1,s=function(e){t=e.target,n=e.isDefaultPrevented()},c=function(e){var o=i(e.target);n||!t||o.is(t)||i(t).is("label")||!m(o)||a.resetActiveElement(),t=null,n=!1},d="NATIVE_CLICK_FIXER";i(document).on(r.addNamespace(l.down,d),s).on(r.addNamespace("click",d),c)}}(),d({emitter:_,bubble:!0,events:[h]}),t.name=h},function(e,t,n){var i=n(9),o=n(61),a=n(53),s=n(74),r=n(78),l=n(80),c=n(82),d=n(83),u=function(){if(o.pointerEvents)return l;var e=a.real();return!o.touch||e.tablet||e.phone?o.touch?r:c:d}();i.each(u.map,function(e,t){s(e,new u(e,t))}),e.exports={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},function(e,t,n){var i=n(9),o=n(53),a=n(11).extend,s=n(79),r={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},l=function(e){var t=[];return i.each(e.touches,function(e,n){t.push(a({pointerId:n.identifier},n))}),{pointers:t,pointerId:e.changedTouches[0].identifier}},c=function(e){return"ios"===o.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},d=s.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(c(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase(a(l(e.originalEvent),e))}});d.map=r,d.normalize=l,e.exports=d},function(e,t,n){var i=n(9),o=n(23),a=n(25),s=n(72),r="dxPointerEvents",l=a.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,r),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){this._selector=t.selector,e=this.noBubble?e:document;var n=this;i(e).on(this._originalEvents,this._selector,function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(){this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:document,this._originalEvents!=="."+r&&i(e).off(this._originalEvents,this._selector))},dispose:function(e){e=this.noBubble?e:document,i(e).off(this._originalEvents)}});e.exports=l},function(e,t,n){var i,o=n(79),a=n(81),s=n(11).extend,r=!window.PointerEvent&&window.MSPointerEvent,l={dxpointerdown:r?"MSPointerDown":"pointerdown",dxpointermove:r?"MSPointerMove":"pointermove",dxpointerup:r?"MSPointerUp":"pointerup",dxpointercancel:r?"MSPointerCancel":"pointercancel",dxpointerover:r?"MSPointerOver":"pointerover",dxpointerout:r?"MSPointerOut":"pointerout",dxpointerenter:r?"mouseenter":"pointerenter",dxpointerleave:r?"mouseleave":"pointerleave"},c=!1,d=function(){c||(i=new a(l,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),c=!0)},u=o.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(s({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});u.map=l,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(9),o=function(e,t){e.split(" ").forEach(function(e){document.addEventListener(e,t,!0)})},a=function(e,t,n){n=n||function(){};var a=[],s=function(e){var n=-1;return i.each(a,function(i,o){return!t(e,o)||(n=i,!1)}),n},r=function(e){s(e)===-1&&(n(e),a.push(e))},l=function(e){var t=s(e);t>-1&&a.splice(t,1)},c=function(e){a[s(e)]=e};o(e.dxpointerdown,r),o(e.dxpointermove,c),o(e.dxpointerup,l),o(e.dxpointercancel,l),this.pointers=function(){return a},this.reset=function(){a=[]}};e.exports=a},function(e,t,n){var i,o=n(11).extend,a=n(79),s=n(81),r={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},c=!1,d=function(){c||(i=new s(r,function(){return!0}),c=!0)},u=a.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});u.map=r,u.normalize=l,u.activate=d,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(11).extend,o=n(79),a=n(82),s=n(78),r=n(72),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c=!1,d=function(){c||(a.activate(),c=!0)},u=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),d()},_handler:function(e){var t=r.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=r.isMouseEvent(e.originalEvent),n=t?a.normalize:s.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});u.map=l,u.resetObserver=a.resetObserver,e.exports=u},function(e,t,n){var i=n(9),o=n(14).noop,a=n(25),s=n(11).extend,r=n(72),l=a.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=i.Callbacks(),this._acceptCallback=i.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},configure:function(e){s(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=r.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});e.exports=l},function(e,t,n){var i=n(9),o=n(25),a=n(11).extend,s=n(26).inArray,r=n(74),l=n(72),c=n(77),d=n(86),u="dxEventManager",h="dxEmitter",p=o.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){i(document).on(l.addNamespace(c.down,u),this._pointerDownHandler.bind(this)).on(l.addNamespace(c.move,u),this._pointerMoveHandler.bind(this)).on(l.addNamespace([c.up,c.cancel].join(" "),u),this._pointerUpHandler.bind(this)).on(l.addNamespace(d.name,u),this._mouseWheelHandler.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){l.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||[],o=t.length!==n.length;return i.each(t,function(e,t){return o=o||n[e]!==t,!o}),this._emittersSet=t,o},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),o.push(i))}for(var n=this,o=[],a=i(e.target);a.length;){var s=i.data(a.get(0),h)||[];i.each(s,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=s(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}}),f=new p,m="dxEmitterSubscription",g=function(e){var t=e.emitter,n=e.events[0],o=e.events;i.each(o,function(s,l){r(l,{noBubble:!e.bubble,setup:function(e){var o=i.data(e,m)||{},a=i.data(e,h)||{},s=a[n]||new t(e);o[l]=!0,a[n]=s,i.data(e,h,a),i.data(e,m,o)},add:function(e,t){var o=i.data(e,h),s=o[n];s.configure(a({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=i.data(e,m),a=i.data(e,h),s=a[n];delete t[l];var r=!0;i.each(o,function(e,n){return r=r&&!t[n]}),r&&(f.isActive(e)&&f.resetEmitter(s),s&&s.dispose(),delete a[n])}})})};e.exports=g},function(e,t,n){var i=n(9),o=n(74),a=n(72),s="dxmousewheel",r="dxWheel",l=void 0!==document.onwheel?"wheel":"mousewheel",c={setup:function(e){var t=i(e);t.on(a.addNamespace(l,r),c._wheelHandler.bind(c))},teardown:function(e){var t=i(e);t.off("."+r)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);a.fireEvent({type:s,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};o(s,c),t.name=s},function(e,t,n){var i=n(9),o=n(53),a=n(61),s=n(23),r=n(62),l=n(56),c=n(88),d=n(14),u=n(72),h=n(84),p=c.sign,f=Math.abs,m=0,g=1,_=2,v=10,w=0,x=180,y=function(e){return e&&"dxmousewheel"===e.type},b=function(){var e=a.styleProp("pointer-events"),t=s.msie&&parseInt(s.version,10)<11;return e&&!t},C=function(){var e="dx-gesture-cover",t="generic"===o.real().platform;if(!b()||!t)return d.noop;var n=i("
").addClass(e).css("pointerEvents","none");return n.on("dxmousewheel",function(e){e.preventDefault()}),l(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}(),k=h.inherit({gesture:!0,configure:function(e){ this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==_},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=m},start:function(e){return u.needSkipEvent(e)?void this._cancel(e):(this._startEvent=u.createEvent(e),this._startEventData=u.eventData(e),this._stage=g,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),x))},move:function(e){if(this._stage===g&&this._directionConfirmed(e)){if(this._stage=_,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===m)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===_&&(this._clearSelection(e),this._move(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),s=this._validateMove(t,o,i),r=this.getDirection(e),l="both"===r&&(a||s),c="horizontal"===r&&a,d="vertical"===r&&s;return l||c||d||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||y(e)?w: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"===o.real().platform&&i(":focus",this.getElement()).length&&r.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===_;t&&C(e,this.getElement().css("cursor"))},_clearSelection:function(e){y(e)||u.isTouchEvent(e)||r.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===_?this._end(e):this._stage===g&&this._stop(e),this._stage=m},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:d.noop,_start:d.noop,_move:d.noop,_stop:d.noop,_end:d.noop});k.initialTouchBoundary=v,k.touchBoundary=function(e){return d.isDefined(e)?void(v=e):v},e.exports=k},function(e,t){var n=function(e){return 0===e?0:e/Math.abs(e)},i=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},o=function(e,t,n){return e>=t&&e<=n};t.sign=n,t.fitIntoRange=i,t.inRange=o},function(e,t,n){t.locale=n(34).locale,t.loadMessages=n(90).load,t.message=n(90),t.number=n(32),t.date=n(33),t.currency=n(36)},function(e,t,n){var i=n(9),o=n(29),a=n(11).extend,s=n(18).format,r=n(39).humanize,l=n(34);n(34);var c=a(!0,{},n(91)),d={},u=o({_dictionary:c,load:function(e){a(!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 s,l=t._localizablePrefix+a;return o!==i&&(s=t.format(a)),s||(d[a]=r(a)),n+(s||l)})},_messageLoaded:function(e,t){return void 0!==this._dictionary[t||l.locale()][e]},localizeNode:function(e){var t=this;i(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):i(n).is("iframe")||(i.each(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),i(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?d:a({},d,this.getMessagesByLocales()[l.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=this._dictionary[t||l.locale()],i=n&&n[e];if(i)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(i),s.apply(this,e)}},format:function(e){var t=this.getFormatter(e);return t&&t()||""}});e.exports=u},function(e,t){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-onText":"ON","dxSwitch-offText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceEvery":"Every","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file"}}},function(e,t,n){n(6),n(93),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(122),DevExpress.framework.Router=n(124),DevExpress.framework.StateManager=n(125),DevExpress.framework.ViewCache=n(126),DevExpress.framework.NullViewCache=n(126).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(126).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(126).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(126).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(127),DevExpress.framework.dxView=n(129).dxView,DevExpress.framework.dxLayout=n(129).dxLayout,DevExpress.framework.dxViewPlaceholder=n(129).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(129).dxContentPlaceholder,DevExpress.framework.dxTransition=n(129).dxTransition,DevExpress.framework.dxContent=n(129).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(130),DevExpress.framework.Route=n(124).Route,DevExpress.framework.MemoryKeyValueStorage=n(125).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(135),DevExpress.framework.NavigationManager=n(134),DevExpress.framework.createActionExecutors=n(133).createActionExecutors,DevExpress.framework.Application=n(131).Application;var i=n(136);DevExpress.framework.DefaultBrowserAdapter=i.DefaultBrowserAdapter,DevExpress.framework.OldBrowserAdapter=i.OldBrowserAdapter,DevExpress.framework.BuggyAndroidBrowserAdapter=i.BuggyAndroidBrowserAdapter,DevExpress.framework.HistorylessBrowserAdapter=i.HistorylessBrowserAdapter,DevExpress.framework.BuggyCordovaWP81BrowserAdapter=i.BuggyCordovaWP81BrowserAdapter,DevExpress.framework.CommandMapping=n(137),DevExpress.framework.HistoryBasedNavigationDevice=n(135).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(135).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(134).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(134).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(134).NavigationStack,DevExpress.framework.utils=n(132).utils,DevExpress.framework.templateProvider=n(132).templateProvider,DevExpress.framework.html.CommandManager=n(140),DevExpress.framework.html.HtmlApplication=n(130),DevExpress.framework.html.layoutSets=n(139).layoutSets,DevExpress.framework.html.animationSets=n(139).animationSets,DevExpress.framework.html.DefaultLayoutController=n(143).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(143).layoutSets,DevExpress.framework.html.MarkupComponent=n(128).MarkupComponent,DevExpress.framework.html.ViewEngine=n(142).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(129);var o=n(141);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:o.dxToolbar,dxList:o.dxList,dxNavBar:o.dxNavBar,dxPivot:o.dxPivot,dxSlideOut:o.dxSlideOut}},function(e,t,n){var i=n(94);if(i){var o=n(7),a=n(17).compare;if(a(i.version,[2,3])<0)throw o.Error("E0013");n(95),n(114),n(115),n(117),n(119),n(120),n(121)}},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(9),o=n(94),a=n(7),s=n(39),r=n(12).isPlainObject,l=n(57),c=n(96),d=n(106),u=n(107),h=n(113),p=n(15),f="dxKoLocks",m="dxKoCreation",g=[],_=function(e,t){t.subclassOf(u)&&g.push(e),o.bindingHandlers[e]={init:function(n,l){var u,g,_=i(n),v=i.Callbacks(),w={},x=p().knockout,y=x&&x.isBindingPropertyPredicateName,b={onInitializing:function(){w=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(l());u&&u.beginUpdate(),g=y&&e&&e[y],T(e),u&&u.endUpdate()},null,{disposeWhenNodeIsRemoved:n}),u=this},modelByElement:function(e){if(e.length)return o.dataFor(e.get(0))},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(e,t,n){n=n||{};var i=n.skipImmediate,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var r=i('
').get(0);e.container.append(r),o.applyBindings(e.model,r)}}}},createTemplate:function(e){return new d(e)}}},C={},k=function(e,t,n){var i=_.data(f),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(C[e]=t),u){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(u.option,u,[e,a]):u.option(e,a)}finally{i.release(e)}}else b[e]=a},I=function(e){var t=e.fullName,n=e.value;if(t in C){var i=this._$element,o=i.data(f);if(!o.locked(t)){o.obtain(t);try{C[t](n)}finally{o.release(t)}}}},S=function(){v.add(I),_.data(m,!0).data(f,new h)[e](b),b=null},D=function(e,t,i){if(i!==y)if(!g||g(i,t,e)){var a;o.computed(function(){var n=e[t];k(i,n,!0),a=o.unwrap(n)},null,{disposeWhenNodeIsRemoved:n}),r(a)&&(w[i]||T(a,i))}else k(i,e[t],!1)},T=function(e,t){for(var n in e)e.hasOwnProperty(n)&&D(e,n,t?[t,n].join("."):n)};return S(),{controlsDescendantBindings:t.subclassOf(c)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=g)};l.callbacks.add(function(e,t){_(e,t)})},function(e,t,n){var i=n(9),o=n(22),a=n(49),s=n(11).extend,r=n(26).inArray,l=n(14),c=n(12),d=n(62),u=n(53),h=n(43),p=n(97),f=n(99),m=n(100),g=n(101),_=n(102),v=n(103),w=n(72),x=n(104),y=n(105),b=n(76),C=n(39),k="UIFeedback",I="dx-widget",S="dx-state-active",D="dx-state-disabled",T="dx-state-invisible",E="dx-state-hover",A="dx-state-focused",B=30,M=400,R="Focus",O="template",P=3,V="[data-options*='dxTemplate']",F="dx-template-wrapper",H=new f(function(e){var t=e.model.widget;if(t){var n=i("
"),a=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var s=t;t=C.camelize("dx-"+t),o.log("W0001","dxToolbar - 'widget' item field",s,"16.1","Use: '"+t+"' instead")}return n[t](a),n}return i()}),L=void 0!==document.onbeforeactivate,z=h.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return s(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(e,t,n){return n=n||{},n.skipImmediate||t(e()),l.noop},templates:{"dx-polymorph-widget":H},createTemplate:function(e){return new p(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:B,_feedbackHideTimeout:M,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var e=this.option("integrationOptions.templates"),t=this.element().contents().filter(V),n={};t.each(function(e,t){var a=d.getElementOptions(t).dxTemplate;if(a){if(!a.name)throw o.Error("E0023");i(t).addClass(F).detach(),n[a.name]=n[a.name]||[],n[a.name].push(t)}}),i.each(n,function(t,n){var i=this._findTemplateByDevice(n);i&&(e[t]=this._createTemplate(i))}.bind(this))},_findTemplateByDevice:function(e){var t=l.findBestMatches(u.current(),e,function(e){return d.getElementOptions(e).dxTemplate})[0];return i.each(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.element().contents().detach(),o=n.filter(function(e,t){var n=t.nodeType===P,o=i.trim(i(t).text()).length<1;return!(n&&o)}),a=o.length<1;e[t]||a||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return O},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return l.isFunction(e)?new f(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!l.isDefined(n))return new m;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||e.jquery&&!i(e).is("script")?new f(function(){return e}):(o=!0,this._createTemplate(e))}.bind(this)),s=a.render(t);return o&&a.dispose&&a.dispose(),s}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){if(null==e)return new m;if(e instanceof g)return this._defaultTemplates[e.name];if(l.isFunction(e.render)&&!e.jquery)return e;if(e.nodeType||e.jquery)return e=i(e),t(e);if("string"==typeof e){var n=this.option("integrationOptions.templates")[e];if(n)return n;var o=this._defaultTemplates[e];return o?o:t(e)}return this._acquireTemplate(e.toString(),t)},_createTemplateIfNeeded:function(e){var t=function(e){return e.jquery&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?d.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_render:function(){this.element().addClass(I),this.callBase(),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){d.toggleAttr(this.element(),"title",this.option("hint"))},_renderContent:function(){var e=this;l.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:l.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._attachKeyboardEvents(),this.option("focusStateEnabled")&&!this.option("disabled")&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=w.addNamespace(b.name,k);e.off(t),this.option("accessKey")&&e.on(t,function(e){w.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(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("."+D)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabindex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+R,n=w.addNamespace("focusin",t);n=n+" "+w.addNamespace("focusout",t),L&&(n=n+" "+w.addNamespace("beforeactivate",t)),e.off(n)},_attachFocusEvents:function(){var e=this.NAME+R,t=w.addNamespace("focusin",e),n=w.addNamespace("focusout",e);if(this._focusTarget().on(t,this._focusInHandler.bind(this)).on(n,this._focusOutHandler.bind(this)),L){var o=w.addNamespace("beforeactivate",e);this._focusTarget().on(o,function(e){i(e.target).is(v.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;r(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(A,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(A)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new _({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),o=i[n];if(void 0!==o){var a=o.bind(this);return a(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(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=w.addNamespace(x.start,k),o=w.addNamespace(x.end,k);if(e._eventBindingTarget().off(n,t).off(o,t),e.option("hoverStateEnabled")){var s=new a(function(t){e._hoverStartHandler(t.event);var n=t.element;e._refreshHoveredElement(n)},{excludeValidators:["readOnly"]});e._eventBindingTarget().on(n,t,function(e){s.execute({element:i(e.target),event:e})}).on(o,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:l.noop,_hoverEndHandler:l.noop,_attachFeedbackEvents:function(){var e,t,n=this,o=n._activeStateUnit,s=w.addNamespace(y.active,k),r=w.addNamespace(y.inactive,k);if(n._eventBindingTarget().off(s,o).off(r,o),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(s,o,{timeout:n._feedbackShowTimeout},function(t){e=e||new a(l),e.execute({element:i(t.currentTarget),value:!0,jQueryEvent:t})}).on(r,o,{timeout:n._feedbackHideTimeout},function(e){t=t||new a(l,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,jQueryEvent:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(S,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(E,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.element().toggleClass(D,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(c.isPlainObject(t[0]))return void i.each(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],o=t[1];1===t.length&&(o=this.option(n));var a=this[e+"OptionMap"];this[e].option(a?a(n):n,o)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null===n||void 0===n?void 0:n.toString(),d.toggleAttr(e.target,t,n)};if(c.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();i.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 s(n,i)}}});e.exports=z},function(e,t,n){var i=n(9),o=n(7),a=n(14),s=n(98),r=n(62),l={},c=function(e,t){l[e]=t},d=function(e){e=i(e);var t=e.length&&e[0].nodeName.toLowerCase();return"script"===t?e.html():(e=i("
").append(e),e.html())};c("default",{compile:function(e){return r.normalizeTemplateElement(e)},render:function(e){return e.clone()}}),c("jquery-tmpl",{compile:function(e){return d(e)},render:function(e,t){return i.tmpl(e,t)}}),c("jsrender",{compile:function(e){return i.templates(d(e))},render:function(e,t){return e.render(t)}}),c("mustache",{compile:function(e){return d(e)},render:function(e,t){return Mustache.render(e,t)}}),c("hogan",{compile:function(e){return Hogan.compile(d(e))},render:function(e,t){return e.render(t)}}),c("underscore",{compile:function(e){return _.template(d(e))},render:function(e,t){return e(t)}}),c("handlebars",{compile:function(e){return Handlebars.compile(d(e))},render:function(e,t){return e(t)}}),c("doT",{compile:function(e){return doT.template(d(e))},render:function(e,t){return e(t)}});var u,h=function(e){if(a.isString(e)){if(u=l[e],!u)throw o.Error("E0020",e)}else u=e};h("default");var p=s.inherit({ctor:function(e){this._element=e,this._compiledTemplate=u.compile(e)},_renderCore:function(e){return i("
").append(u.render(this._compiledTemplate,e.model,e.index)).contents()},source:function(){return i(this._element).clone()}});e.exports=p,e.exports.setTemplateEngine=h},function(e,t,n){var i=n(9),o=n(62).triggerShownEvent,a=n(25),s=a.abstract,r=i.Callbacks(),l=a.inherit({ render:function(e){e=e||{};var t=this._renderCore(e);return this._ensureResultInContainer(t,e.container),r.fire(t,e.container),t},_ensureResultInContainer:function(e,t){if(t){var n=i.contains(t.get(0),e.get(0));if(t.append(e),!n){var a=i.contains(document.body,t.get(0));a&&o(e)}}},_renderCore:s});e.exports=l,e.exports.renderedCallbacks=r},function(e,t,n){var i=n(98),o=n(62),a=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return o.normalizeTemplateElement(this._render(e))}});e.exports=a},function(e,t,n){var i=n(9),o=n(98),a=o.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(98);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(9),o=n(25),a=n(26).inArray,s=n(72),r=o.inherit({_keydown:s.addNamespace("keydown","KeyboardProcessor"),codes:{8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus"},ctor:function(e){var t=this;e=e||{},e.element&&(this._element=i(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){t.process(e)},this._element.on(this._keydown,this._processFunction))},dispose:function(){this._element&&this._element.off(this._keydown,this._processFunction),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new r;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){if(this._focusTarget&&this._focusTarget!==e.target&&a(e.target,this._focusTarget)<0)return!1;var t={key:this.codes[e.which]||e.which,ctrl:e.ctrlKey,shift:e.shiftKey,alt:e.altKey,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&i.each(this._childProcessors,function(t,n){n.process(e)})}});e.exports=r},function(e,t,n){var i=n(9),o=function(e,t){if(!a(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,s=/^(input|select|textarea|button|object|iframe)$/.test(n),r="a"===n,l=!0;return l=s?!o:r?e.href||i:i},a=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return o(t,i(t).attr("tabindex"))},tabbable:function(e,t){var n=i(t).attr("tabindex");return(isNaN(n)||n>=0)&&o(t,n)}}},function(e,t,n){var i=n(9),o=n(25),a=n(53),s=n(74),r=n(72),l=n(77),c="dxHoverStart",d="dxhoverstart",u=r.addNamespace(l.enter,c),h="dxHoverEnd",p="dxhoverend",f=r.addNamespace(l.leave,h),m=o.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){i.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,o=i(e),a=function(e){n._handler(e)};o.on(this._originalEventName,t.selector,a),i.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){r.isTouchEvent(e)||a.isSimulator()||r.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=i.data(e,this._handlerArrayKeyPath)[t.guid];i(e).off(this._originalEventName,t.selector,n)},teardown:function(e){i.removeData(e,this._handlerArrayKeyPath)}}),g=m.inherit({ctor:function(){this._eventNamespace=c,this._eventName=d,this._originalEventName=u,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),_=m.inherit({ctor:function(){this._eventNamespace=h,this._eventName=p,this._originalEventName=f,this.callBase()}});s(d,new g),s(p,new _),t.start=d,t.end=p},function(e,t,n){var i,o=n(9),a=n(25),s=n(14),r=n(53),l=n(72),c=n(77),d=n(84),u=n(85),h="dxactive",p="dxinactive",f=30,m=400,g=a.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=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}}),_=d.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new g(0,s.noop),this._inactive=new g(0,s.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=o.contains(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),o=l.isMouseEvent(e),a=r.isSimulator(),c=a||!o,d=s.ensureDefined(this.activeTimeout,f),u=s.ensureDefined(this.inactiveTimeout,m);this._active=new g(c?d:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new g(c?u:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==c.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});_.lock=function(e){var t=i?i.lockInactive():s.noop;e.done(t)},u({emitter:_,events:[h,p]}),t.lock=_.lock,t.active=h,t.inactive=p},function(e,t,n){var i=n(9),o=n(94),a=n(14),s=n(98),r=n(62),l=function(){var e=i("
")[0];o.applyBindingsToNode(e);var t=o.contextFor(e);return l=function(){return t},t},c=s.inherit({ctor:function(e){this._element=e,this._template=i("
").append(r.normalizeTemplateElement(e)),this._registerKoTemplate()},_registerKoTemplate:function(){var e=this._template.get(0);new o.templateSources.anonymousTemplate(e).nodes(e)},_prepareDataForContainer:function(e,t){if(t&&t.length){var n=t.get(0),i=o.contextFor(n);if(e=void 0!==e?e:o.dataFor(n)||{},i)return e===i.$data?i:i.createChildContext(e)}return l().createChildContext(e)},_renderCore:function(e){var t=this._prepareDataForContainer(e.model,e.container);a.isDefined(e.index)&&(t.$index=e.index);var n,s=i("
").appendTo(e.container);return o.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=i(e)}},s.get(0),"replaceNode"),n},source:function(){return i(this._element).clone()},dispose:function(){this._template.remove()}});e.exports=c},function(e,t,n){var i=n(9),o=n(14),a=n(108).getDefaultAlignment,s=n(11).extend,r=n(96),l=n(109),c=n(110),d="dx-state-readonly",u="dx-invalid",h="dx-invalid-message",p="dx-invalid-message-auto",f="dx-invalid-message-always",m="dx-validation-target",g=100,_=r.inherit({_init:function(){this.callBase(),this.validationRequest=i.Callbacks();var e=this.element();e&&i.data(e[0],m,this)},_getDefaultOptions:function(){return s(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:o.noop,_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_render:function(){this.callBase(),this._renderValidationState(),this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name"))},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,jQueryEvent:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_renderValidationState:function(){var e=this.option("isValid"),t=this.option("validationError"),n=this.option("validationMessageMode"),o=this.element();o.toggleClass(u,!e),this.setAria("invalid",!e||void 0),this._$validationMessage&&(this._$validationMessage.remove(),this._$validationMessage=null),!e&&t&&t.message&&(this._$validationMessage=i("<div/>",{"class":h}).html(t.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,c,{integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1}),this._$validationMessage.toggleClass(p,"auto"===n).toggleClass(f,"always"===n),this._setValidationMessageMaxWidth())},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");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(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},s="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+s[0],at:n+s[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];i.data(e,m,null),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){this.option("value",null)}}).include(l);e.exports=_},function(e,t,n){var i=n(15),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t){var n={_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}};e.exports=n},function(e,t,n){var i=n(9),o=n(69),a=n(70),s=n(17).compare,r=n(55),l=n(11).extend,c=n(26).inArray,d=r.changeCallback,u=n(66).hideCallback,h=n(71),p=n(88).fitIntoRange,f=n(62),m=n(14),g=n(12),_=n(53),v=n(57),w=n(96),x=n(102),y=n(103),b=n(111),C=n(72),k=n(77),I=n(112),S=n(100),D="dx-overlay",T="dx-overlay-wrapper",E="dx-overlay-content",A="dx-overlay-shader",B="dx-overlay-modal",M="dx-state-invisible",R="content",O="dx-rtl",P=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],V=1500,F=[],H="dx-state-disabled",L=9,z=_.real(),N=z.version,W="ios"===z.platform,$=W&&s(N,[7,1])<0,q="android"===z.platform&&0===s(N,[4,0],2)&&navigator.userAgent.indexOf("Chrome")===-1,G=function(e){if($&&e.width(),q){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"))}},j=function(e){return e&&i(e instanceof i.Event?e.target:e)};i(document).on(k.down,function(e){for(var t=F.length-1;t>=0;t--)if(!F[t]._proxiedDocumentDownHandler(e))return});var K=w.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 l(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return l(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*i(window).width()},minWidth:null,maxWidth:null,height:function(){return.8*i(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,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=_.real(),t=e.platform,n=e.version;return"android"===t&&s(n,[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(),l(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return R},_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=i("
").addClass(T),this._$content=i("
").addClass(E);var e=this.element();this._$wrapper.addClass(e.attr("class")),e.addClass(D),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._$wrapper.on("MSPointerDown",m.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(m.isDefined(e)){var t=this.option();i.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 o=i.split("."),a=t;a;){if(1===o.length){g.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?r.value():e;var t=this.element(),n=t.closest(e);n.length||(n=i(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},i.each(P,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||m.noop}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");if(m.isFunction(t)&&(t=t(e)),t){var n=this._$content,o=!n.is(e.target)&&!i.contains(n.get(0),e.target)&&i(e.target).closest(document).length;o&&(this.option("shading")&&e.preventDefault(),this.hide())}return this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new S(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableElements();if(n.length)return e[t]===this}return!1},_overlayStack:function(){return F},_zIndexInitValue:function(){return V},_toggleViewPortSubscription:function(e){d.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(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 m.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=i.Deferred();if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return i.Deferred().resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},o=this._normalizeAnimation(n.show,"to"),a=o&&o.start||m.noop,s=o&&o.complete||m.noop;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(o,function(){e.option("focusStateEnabled")&&e._focusTarget().focus(),s.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(r):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=l({type:"slide"},e),e[t]&&"object"==typeof e[t]&&l(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return i.Deferred().resolve().promise();this._currentVisible=!1;var e=this,t=i.Deferred(),n=e._getAnimationConfig()||{},o=this._normalizeAnimation(n.hide,"from"),a=o&&o.start||m.noop,s=o&&o.complete||m.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(o,function(){e._$content.css("pointer-events",""),e._renderVisibility(!1),s.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointer-events","none"),a.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){document.activeElement&&this._$content.find(document.activeElement).length&&document.activeElement.blur()},_animate:function(e,t,n){e?(n=n||e.start||m.noop,o.animate(this._$content,l({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){o.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(M,!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=c(this,t);if(e){if(n===-1){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 n!==-1&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass(B,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(A,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=C.addNamespace("keydown",this.NAME);e?i(document).on(t,this._proxiedTabTerminatorHandler):i(document).off(t,this._proxiedTabTerminatorHandler)},_findTabbableElements:function(){return this._$wrapper.find("*").filter(y.tabbable)},_tabKeyHandler:function(e){if(e.keyCode===L&&this._isTopOverlay()){var t=this._findTabbableElements(),n=t.first(),i=t.last(),o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),s=0===t.length,r=c(e.target,t)===-1;(o||a||s||r)&&(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||i(),n=this.option("closeOnTargetScroll"),o=j(t).parents(),a=C.addNamespace("scroll",this.NAME);"generic"===_.real().platform&&(o=o.add(window)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),i().add(this._$prevTargetParents).off(a,this._proxiedTargetParentsScrollHandler),e&&n&&(o.on(a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=o)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");m.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(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=i(this);if("none"===e.css("display"))return t=!0,!1}),t||!i.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({container:this.content(),noModel:!0}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=C.addNamespace(b.start,this.NAME),n=C.addNamespace(b.move,this.NAME);e.off(t).off(n),this.option("dragEnabled")&&e.on(t,this._dragStartHandler.bind(this)).on(n,this._dragUpdateHandler.bind(this))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,I,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=C.addNamespace(b.move,this.NAME);e.off(t).on(t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:m.noop,_clearSelection:m.noop,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=r.originalViewPort().get(0)||this.option("container"),t=e?this._$container:i(window);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),o=e.outerHeight(),a=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var r=Math.max(i(document).outerHeight(),s),l=Math.max(i(document).outerWidth(),a);s=r,a=l}return{width:a-n,height:s-o}},_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=a.locate(this._$content);a.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=a.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:a.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?e.top+i.top+o.v:0,bottom:n?-e.top-i.top+t.height-o.v:0,left:n?e.left+i.left+o.h:0,right:n?-e.left-i.left+t.width-o.h:0}},_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)&&!W?"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(){var e,t;if(this.option("shading")){var n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight()}else e="",t="";this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&m.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||window:null;return j(t||n)},_renderDimensions:function(){this._$content.css({minWidth:this.option("minWidth"),maxWidth:this.option("maxWidth"),minHeight:this.option("minHeight"),maxHeight:this.option("maxHeight")}),this._$content.outerWidth(this.option("width")).outerHeight(this.option("height"))},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),a.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=i(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(){o.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(H,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(O,e)},_optionChanged:function(e){var t=e.value;if(c(e.name,P)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"position":case"boundaryOffset":this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"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;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return i.Deferred().resolve().promise();var t=i.Deferred();return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return this._$content},repaint:function(){this._renderGeometry()}});K.baseZIndex=function(e){V=e},v("dxOverlay",K),e.exports=K},function(e,t,n){var i=n(9),o=n(26).wrapToArray,a=n(26).inArray,s=n(74),r=n(72),l=n(87),c=n(85),d="dxdragstart",u="dxdrag",h="dxdragend",p="dxdragenter",f="dxdragleave",m="dxdrop",g=[],_=[],v=[],w={setup:function(e,t){var n=a(e,g)!==-1;n||(g.push(e),_.push([]),v.push(t||{}))},add:function(e,t){var n=a(e,g),i=t.selector;a(i,_[n])===-1&&_[n].push(i)},teardown:function(e){var t=i._data(e,"events"),n=0;if(i.each([p,f,m],function(e,i){var o=t[i];o&&(n+=o.length)}),!n){var o=a(e,g);g.splice(o,1),_.splice(o,1),v.splice(o,1)}}};s(p,w),s(f,w),s(m,w);var x=function(e){var t=a(e.get(0),g),n=_[t],i=e.find(n.join(", "));return a(void 0,n)!==-1&&(i=i.add(e)),i},y=function(e){var t=a(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=o(e.targetElements||(null===e.targetElements?[]:g));this._dropTargets=i.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=r.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(u,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),n=t===this._currentDropTarget;n||(this._fireDropTargetEvent(e,f),this._currentDropTarget=t,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};r.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return i.each(g,function(o,a){if(n._checkDropTargetActive(a)){var s=i(a);i.each(x(s),function(o,a){var r=i(a);n._checkDropTarget(y(s),r,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return i.each(this._dropTargets,function(n,o){return t=t||o===e||i.contains(o,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.pageX<o.left)return!1;if(n.pageY<o.top)return!1;var a=C(e,t);return!(n.pageX>o.left+a.width)&&(!(n.pageY>o.top+a.height)&&t)},_end:function(e){var t=r.eventData(e);this._fireEvent(h,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,m),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=m},function(e,t,n){var i=n(9),o=n(57),a=n(18),s=n(11).extend,r=n(26).inArray,l=n(14),c=n(12),d=n(70),u=n(88).fitIntoRange,h=n(43),p=n(72),f=n(111),m=c.isPlainObject,g=l.isFunction,_="dxResizable",v="dx-resizable",w="dx-resizable-resizing",x="dx-resizable-handle",y="dx-resizable-handle-top",b="dx-resizable-handle-bottom",C="dx-resizable-handle-left",k="dx-resizable-handle-right",I="dx-resizable-handle-corner",S=p.addNamespace(f.start,_),D=p.addNamespace(f.move,_),T=p.addNamespace(f.end,_),E=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null})},_init:function(){this.callBase(),this.element().addClass(v)},_render:function(){this.callBase(),this._renderActions(),this._renderHandles()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");i.each(t,function(e,t){this._renderHandle(t)}.bind(this)),r("bottom",t)+1&&r("right",t)+1&&this._renderHandle("corner-bottom-right"),r("bottom",t)+1&&r("left",t)+1&&this._renderHandle("corner-bottom-left"),r("top",t)+1&&r("right",t)+1&&this._renderHandle("corner-top-right"),r("top",t)+1&&r("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.element(),n=i("
");n.addClass(x).addClass(x+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[S]=this._dragStartHandler.bind(this),t[D]=this._dragHandler.bind(this),t[T]=this._dragEndHandler.bind(this),e.on(t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.element();return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=d.locate(t),this._elementSize={width:t.outerWidth(),height:t.outerHeight()},this._renderDragOffsets(e),this._resizeStartAction({jQueryEvent:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),void(e.targetElements=null))},_toggleResizingClass:function(e){this.element().toggleClass(w,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+x),o=n.outerWidth(),a=n.outerHeight(),s=n.offset(),r=t.offset;e.maxLeftOffset=s.left-r.left,e.maxRightOffset=r.left+t.width-s.left-o,e.maxTopOffset=s.top-r.top,e.maxBottomOffset=r.top+t.height-s.top-a}},_getBorderWidth:function(e,t){if(l.isWindow(e.get(0)))return 0;var n=e.css("border-"+t+"-width");return parseInt(n)||0},_dragHandler:function(e){var t=this.element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),s=o.width+a.x*(n.left?-1:1),r=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(s),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(r);var l=a.y-((this.element().outerHeight()||r)-r),c=a.x-((this.element().outerWidth()||s)-s);d.move(t,{top:i.top+(n.top?l:0),left:i.left+(n.left?c:0)}),this._resizeAction({jQueryEvent:e,width:this.option("width")||s,height:this.option("height")||r,handles:this._movingSides})},_getOffset:function(e){var t=e.offset,n=a.pairToObject(this.option("step")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,s=n.top?i.top:i.top+o.height,r=(a+e.x)%t.h,l=(s+e.y)%t.v,c=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},d=function(e,t){return(1+.2*c(t))%1*e},u=function(e,t){return Math.abs(e)<.2*t},h=e.x-r,p=e.y-l;return r>d(t.h,e.x)&&(h+=t.h),l>d(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||u(e.x,t.h)?0:h,y:!n.top&&!n.bottom||u(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(I+"-top-left"),o=t.hasClass(I+"-top-right"),a=t.hasClass(I+"-bottom-left"),s=t.hasClass(I+"-bottom-right");return{top:t.hasClass(y)||n||o,left:t.hasClass(C)||n||a,bottom:t.hasClass(b)||a||s,right:t.hasClass(k)||o||s}},_getArea:function(){var e=this.option("area");return g(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},l.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.element(),"left"),e.offset.top+=i+this._getBorderWidth(this.element(),"top"),e.width-=this.element().outerWidth()-this.element().innerWidth(),e.height-=this.element().outerHeight()-this.element().innerHeight()},_dragEndHandler:function(e){var t=this.element();this._resizeEndAction({jQueryEvent:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",u(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",u(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":this._renderWidth(this.element().outerWidth());break;case"minHeight":case"maxHeight":this._renderHeight(this.element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(e)}},_clean:function(){this.element().find("."+x).remove()}});o(_,E),e.exports=E},function(e,t,n){var i=n(7),o=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}};e.exports=o},function(e,t,n){var i=n(9),o=n(94),a=n(12).isPlainObject,s=n(74),r=n(72);s.callbacks.add(function(e){var t=r.addNamespace(e,e+"Binding");o.bindingHandlers[e]={update:function(e,n,s,r){var l=i(e),c=o.utils.unwrapObservable(n()),d=c.execute?c.execute:c;l.off(t).on(t,a(c)?c:{},function(e){d.call(r,r,e)})}}})},function(e,t,n){var i=n(9),o=n(49),a=n(50).compileGetter,s=n(11).extend,r=n(94),l=n(116),c=n(76);r.bindingHandlers.dxAction={update:function(e,t,n,l){var d=i(e),u=r.utils.unwrapObservable(t()),h=u,p={context:e};u.execute&&(h=u.execute,s(p,u));var f=new o(h,p);d.off(".dxActionBinding").on(c.name+".dxActionBinding",function(t){f.execute({element:d,model:l,evaluate:function(t){var n=l;t.length>0&&"$"===t[0]&&(n=r.contextFor(e));var i=a(t);return i(n)},jQueryEvent:t}),p.bubbling||t.stopPropagation()})}},r.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:r.unwrap(t())}}},r.bindingHandlers.dxIcon={init:function(e,t){var n=r.utils.unwrapObservable(t())||{},i=l.getImageContainer(n);r.virtualElements.emptyNode(e),i&&r.virtualElements.prepend(e,i.get(0))},update:function(e,t){var n=r.utils.unwrapObservable(t())||{},i=l.getImageContainer(n);r.virtualElements.emptyNode(e),i&&r.virtualElements.prepend(e,i.get(0))}},r.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(9),o=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")},a=function(e){var t=o(e),n="dx-icon";switch(t){case"image":return i("<img>",{src:e}).addClass(n);case"fontIcon":return i("",{"class":n+" "+e});case"dxIcon":return i("<i>",{"class":n+" "+n+"-"+e});default:return null}};t.getImageSourceType=o,t.getImageContainer=a},function(e,t,n){var i=n(9),o=n(25),a=n(51),s=n(118),r=n(94),l=o.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=r.observable(!0),n.validationError=r.observable(),i.each(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=s.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(a);r.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},s.registerModelForValidation=function(e){i.each(e,function(t,n){r.isObservable(n)&&n.dxValidator&&s.registerValidatorInGroup(e,n.dxValidator)})},s.unregisterModelForValidation=function(e){i.each(e,function(t,n){r.isObservable(n)&&n.dxValidator&&s.removeRegisteredValidator(e,n.dxValidator)})},s.validateModel=s.validateGroup},function(e,t,n){var i=n(9),o=n(25),a=n(11).extend,s=n(26).inArray,r=n(51),l=n(7),c=n(14),d=n(32),u=n(90),h=o.inherit({NAME:"base",defaultMessage:function(e){return u.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return u.getFormatter("validation-"+this.NAME+"-formatted")(e)},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),p=h.inherit({NAME:"required",_validate:function(e,t){return!!c.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&c.isDefined(t.trim)||(e=i.trim(e)),""!==e))}}),f=h.inherit({NAME:"numeric",_validate:function(e,t){return!y.required.validate(e,{})||(t.useCultureSettings&&c.isString(e)?!isNaN(d.parse(e)):c.isNumeric(e))}}),m=h.inherit({NAME:"range",_validate:function(e,t){if(!y.required.validate(e,{}))return!0;var n=y.numeric.validate(e,t),i=c.isDefined(e),o=n?parseFloat(e):i&&e.valueOf(),a=t.min,s=t.max;if(!n&&!c.isDate(e)&&!i)return!1;if(c.isDefined(a))return c.isDefined(s)?o>=a&&o<=s:o>=a;if(c.isDefined(s))return o<=s;throw l.Error("E0101")}}),g=h.inherit({NAME:"stringLength",_validate:function(e,t){return e=c.isDefined(e)?String(e):"",!t.trim&&c.isDefined(t.trim)||(e=i.trim(e)),y.range.validate(e.length,a({},t))}}),_=h.inherit({NAME:"custom",validate:function(e,t){return t.validationCallback({value:e,validator:t.validator,rule:t})}}),v=h.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");a(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),w=h.inherit({NAME:"pattern",_validate:function(e,t){if(!y.required.validate(e,{}))return!0;var n=t.pattern;return c.isString(n)&&(n=new RegExp(n)),n.test(e)}}),x=h.inherit({NAME:"email",_validate:function(e,t){return!y.required.validate(e,{})||y.pattern.validate(e,a({},t,{pattern:/^[\d\w\._\-]+@([\d\w\._\-]+\.)+[\w]+$/i}))}}),y={required:new p,numeric:new f,range:new m,stringLength:new g,custom:new _,compare:new v,pattern:new w,email:new x},b=o.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return i.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(){i.each(this.validators,function(e,t){t.reset()})}}).include(r),C={groups:[],getGroupConfig:function(e){var t=c.grep(this.groups,function(t){return t.group===e});if(t.length)return t[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new b(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=s(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){c.isDefined(e.message)||(t.defaultFormattedMessage&&c.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var o={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},a=this;return i.each(t||[],function(t,i){var s,r=y[i.type];if(!r)throw l.Error("E0100");return c.isDefined(i.isValid)&&i.value===e&&!i.reevaluate?!!i.isValid||(o.isValid=!1,o.brokenRule=i,!1):(i.value=e,s=r.validate(e,i),i.isValid=s,s||(o.isValid=!1,a._setDefaultMessage(i,r,n),o.brokenRule=i),!!i.isValid&&void 0)}),o},registerValidatorInGroup:function(e,t){var n=C.addGroup(e);s(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=C.getGroupConfig(e),i=n&&n.validators,o=s(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=C.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=C.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};C.initGroups(),e.exports=C},function(e,t,n){var i=n(94),o=n(28);o.inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(10),o=n(94),a=i.cleanData,s=n(17).compare;s(i.fn.jquery,[2,0])>=0&&(i.cleanData=function(e){for(var t=a(e),n=0;n<e.length;n++)e[n].cleanedByJquery=!0;for(n=0;n<e.length;n++)e[n].cleanedByKo||o.cleanNode(e[n]),delete e[n].cleanedByKo;for(n=0;n<e.length;n++)delete e[n].cleanedByJquery;return t},o.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])})},function(e,t,n){var i=n(9),o=n(94),a=n(17).compare;if(a(i.fn.jquery,[2,0])<0){var s=function(e,t){var n=function(){o.cleanNode(this)};t?e.each(n):e.find("*").each(n)},r=i.fn.empty;i.fn.empty=function(){return s(this,!1),r.apply(this,arguments)};var l=i.fn.remove;i.fn.remove=function(e,t){if(!t){var n=this;e&&(n=n.filter(e)),s(n,!0)}return l.call(this,e,t)};var c=i.fn.html;i.fn.html=function(e){return"string"==typeof e&&s(this,!1),c.apply(this,arguments)};var d=i.fn.replaceWith;i.fn.replaceWith=function(){var e=d.apply(this,arguments);return this.parent().length||s(this,!0),e}}},function(e,t,n){var i=n(9),o=n(123),a=n(11).extend,s=n(14),r=n(12),l=n(57),c=n(43),d=s.isFunction,u=r.isPlainObject,h=s.noop;n(93);var p=c.inherit({ctor:function(e,t){u(e)&&(t=e,e=i("<div />")),this.callBase(e,t)},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return a(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var e=this._options.disabled;if(d(e)&&(e=!!e.apply(this,arguments)),e)throw o.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:h,_dispose:function(){this.callBase(),this.element().removeData(this.NAME)}});l("dxCommand",p),e.exports=p},function(e,t,n){var i=n(8),o=n(7);e.exports=i(o.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'})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(12),s=n(26).inArray,r=n(25),l=encodeURIComponent("json:"),c=r.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&&(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))}),i.each(this._segments,function(t){var n=this,i=t?e._separators[t-1]:"";":"===n.charAt(0)?(n=n.substr(1),e._params.push(n),e._patternRe+="(?:"+i+"([^/]*))",n in e._defaults&&(e._patternRe+="?")):e._patternRe+=i+e._escapeRe(n)}),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 a=o({},this._defaults);return i.each(this._params,function(e){var i=e+1;n.length>=i&&n[i]&&(a[this]=t.parseSegment(n[i]))}),i.each(this._constraints,function(e){if(!t._checkConstraint(a[e],t._constraints[e]))return a=!1,!1}),a},format:function(e){var t=this,n="";this._ensureReady();var r=o({},this._defaults),l=0,c=[],d=[],u={};i.each(e,function(n,i){e[n]=t.formatSegment(i),n in r||(u[n]=!0)}),i.each(this._segments,function(n,i){if(c[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var o=i.substr(1);if(!(o in e||o in t._defaults))return c=null,!1;if(o in t._constraints&&!t._checkConstraint(e[o],t._constraints[o]))return c=null,!1;o in e?(void 0!==e[o]&&(r[o]=e[o],c[n]+=e[o],l=n),delete u[o]):o in r&&(c[n]+=r[o],d.push(n))}else c[n]+=i,l=n}),i.each(r,function(n,i){if(i&&s(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(a.isEmptyObject(u)||(n="?",i.each(u,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;d.length&&i.map(d,function(e){e>=l&&(c[e]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+n,unusedCount:h}},formatSegment:function(e){return Array.isArray(e)||a.isPlainObject(e)?l+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(e.substr(l.length)))}catch(e){}return decodeURIComponent(e)}}),d=r.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new c(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 i.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 a=e.split("?",2),s=a[0],r=a[1];return i.each(this._registry,function(){var e=this.parse(s);if(e!==!1)return t=e,r&&(t=o(t,n._parseQuery(r))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},i.each(this._registry,function(){var i=o(!0,{},e),a=this.format(i);a!==!1&&n>a.unusedCount&&(n=a.unusedCount,t=a.uri)}),t}});e.exports=d,e.exports.Route=c},function(e,t,n){var i=n(25),o=n(26).inArray,a=n(9),s=i.inherit({ctor:function(){this.storage={}},getItem:function(e){return this.storage[e]},setItem:function(e,t){this.storage[e]=t},removeItem:function(e){delete this.storage[e]}}),r=i.inherit({ctor:function(e){e=e||{},this.storage=e.storage||new s,this.stateSources=e.stateSources||[]},addStateSource:function(e){this.stateSources.push(e)},removeStateSource:function(e){var t=o(e,this.stateSources);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)})}});e.exports=r,e.exports.MemoryKeyValueStorage=s},function(e,t,n){function i(e,t,n){t.on(e,function(){n.fireEvent(e,arguments)})}var o=n(9),a=n(26).inArray,s=n(25),r=n(51),l=s.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),c=l.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),d=s.inherit({ctor:function(e){this._filter=e.filter,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},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),u=5,h=s.inherit({ctor:function(e){this._keys=[],this._size=e.size||u,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},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=a(e,this._keys);return t<0?null:(this._keys.push(e),this._keys.splice(t,1),this._viewCache.getView(e))},removeView:function(e){var t=a(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),p=s.inherit({ctor:function(e){this._viewCache=e.viewCache||new l,this._navigationManager=e.navigationManager,this._navigationManager.on("itemRemoved",this._onNavigationItemRemoved.bind(this)),this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},_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);e.exports=l,e.exports.NullViewCache=c,e.exports.ConditionalViewCacheDecorator=d,e.exports.CapacityViewCacheDecorator=h,e.exports.HistoryDependentViewCacheDecorator=p},function(e,t,n){var i=n(9),o=n(128).MarkupComponent,a=n(12).isPlainObject,s=n(57);n(93);var r=o.inherit({ctor:function(e,t){a(e)&&(t=e,e=i("<div />")),this.callBase(e,t)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});s("dxCommandContainer",r),e.exports=r},function(e,t,n){var i=n(9),o=n(25),a=n(11).extend,s=n(14).noop,r=n(45),l=o.inherit({ctor:function(e,t){this.NAME=r.name(this.constructor),t=t||{},this._$element=i(e),r.attachInstanceToElement(this._$element,this,this._dispose),t.fromCache?this._options=t:(this._options={},this._setDefaultOptions(),t&&this.option(t),this._render())},_setDefaultOptions:s,_render:s,_dispose:s,element:function(){return this._$element},option:function(e,t){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof e)return this._options[e];t=e,a(this._options,t)}else this._options[e]=t},instance:function(){return this}});l.getInstance=function(e){return r.getInstanceByElement(i(e),this)},t.MarkupComponent=l},function(e,t,n){var i=n(123),o=n(62),a=n(57),s=n(128).MarkupComponent;n(93);var r=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=o.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}}),l=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),d=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)},u=function(e){e.addClass("dx-transition-inner-wrapper")},h=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var e=this.element();d(e,this.option("type")||this.option("animation"),this.option("name"),"absolute"),e.wrapInner("<div/>"),u(e.children()),this.option("type")&&i.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),p=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")),d(e,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&i.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=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),u(e)}});a("dxView",r),a("dxLayout",l),a("dxViewPlaceholder",c),a("dxContentPlaceholder",p),a("dxTransition",h),a("dxContent",f),t.dxView=r,t.dxLayout=l,t.dxViewPlaceholder=c,t.dxContentPlaceholder=p,t.dxTransition=h,t.dxContent=f},function(e,t,n){var i=n(9),o=n(14),a=n(48),s=n(11),r=n(123),l=n(131).Application,c=n(126).ConditionalViewCacheDecorator,d=n(139),u=n(140),h=n(142).ViewEngine,p=n(90),f=n(55).value,m=n(60),g=n(53),_=n(105),v=n(75),w=n(68),x=n(16).when;n(143),n(144);var y="dx-viewport",b="layout-change",C=l.inherit({ctor:function(e){e=e||{},this.callBase(e),this._$root=i(e.rootNode||document.body),this._initViewport(e.viewPort),"mobileApp"===this._applicationMode&&m.initMobileViewport(e.viewPort),this.device=e.device||g.current(),this.commandManager=e.commandManager||new u({commandMapping:this.commandMapping}),this._initTemplateContext(),this.viewEngine=e.viewEngine||new h({$root:this._$root,device:this.device,templateCacheStorage:e.templateCacheStorage||window.localStorage,templatesVersion:e.templatesVersion,templateContext:this._templateContext}),this.components.push(this.viewEngine),this._initMarkupFilters(this.viewEngine),this._layoutSet=e.layoutSet||d.layoutSets.default, this._animationSet=e.animationSet||d.animationSets.default,this._availableLayoutControllers=[],this._activeLayoutControllersStack=[],this.transitionExecutor=new v.TransitionExecutor,this._initAnimations(this._animationSet)},_initAnimations:function(e){e&&(i.each(e,function(e,t){i.each(t,function(t,n){w.presets.registerPreset(e,n)})}),w.presets.applyChanges())},_localizeMarkup:function(e){p.localizeNode(e)},_notifyIfBadMarkup:function(e){e.each(function(){var e=i(this).html();/href="#/.test(e)&&r.log("W3005",e)})},_initMarkupFilters:function(e){var t=[];t.push(this._localizeMarkup),e.markupLoaded&&e.markupLoaded.add(function(e){i.each(t,function(t,n){n(e.markup)})})},_createViewCache:function(e){var t=this.callBase(e);return e.viewCache||(t=new c({filter:function(e,t){return!t.viewTemplateInfo.disableCache},viewCache:t})),t},_initViewport:function(){this._$viewPort=this._getViewPort(),f(this._$viewPort)},_getViewPort:function(){var e=i("."+y);return e.length||(e=i("
").addClass(y).appendTo(this._$root)),e},_initTemplateContext:function(){this._templateContext=new a({orientation:g.orientation()}),g.on("orientationChanged",function(e){this._templateContext.option("orientation",e.orientation)}.bind(this))},_showViewImpl:function(e,t){var n=this,o=i.Deferred(),a=o.promise(),s=e.layoutController;return n._obtainViewLink(e),s.showView(e,t).done(function(){n._activateLayoutController(s,n._getTargetNode(e),t).done(function(){o.resolve()})}),_.lock(a),a},_resolveLayoutController:function(e){var t={viewInfo:e,layoutController:null,availableLayoutControllers:this._availableLayoutControllers};return this._processEvent("resolveLayoutController",t,e.model),t.layoutController||this._resolveLayoutControllerImpl(e)},_checkLayoutControllerIsInitialized:function(e){if(e){var t=!1;if(i.each(this._layoutSet,function(n,i){if(i.controller===e)return t=!0,!1}),!t)throw r.Error("E3024")}},_ensureOneLayoutControllerFound:function(e,t){var n=function(e,t){return"controller"===e?"[controller]: { name:"+t.name+" }":t};if(!t.length)throw r.log("W3003",JSON.stringify(e,null,4),JSON.stringify(this._availableLayoutControllers,n,4)),r.Error("E3011");if(t.length>1)throw r.log("W3004",JSON.stringify(e,null,4),JSON.stringify(t,n,4)),r.Error("E3012")},_resolveLayoutControllerImpl:function(e){var t=e.viewTemplateInfo||{},n=e.navigateOptions||{},i=s.extend({root:!e.canBack,customResolveRequired:!1,pane:t.pane,modal:void 0!==n.modal?n.modal:t.modal||!1},g.current()),a=o.findBestMatches(i,this._availableLayoutControllers);return this._ensureOneLayoutControllerFound(i,a),a[0].controller},_onNavigatingBack:function(e){if(this.callBase.apply(this,arguments),!e.cancel&&!this.canBack()&&this._activeLayoutControllersStack.length>1){var t=this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-2],n=t.activeViewInfo();e.cancel=!0,this._activateLayoutController(t,void 0,"backward"),this.navigationManager.currentItem(n.key)}},_activeLayoutController:function(){return this._activeLayoutControllersStack.length?this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-1]:void 0},_getTargetNode:function(e){var t=(e.navigateOptions||{}).jQueryEvent;return t?i(t.target):void 0},_activateLayoutController:function(e,t,n){var o=this,a=o._activeLayoutController();if(a===e)return i.Deferred().resolve().promise();var s=i.Deferred();return e.ensureActive(t).done(function(t){o._deactivatePreviousLayoutControllers(e,n,t).done(function(){o._activeLayoutControllersStack.push(e),s.resolve()})}),s.promise()},_deactivatePreviousLayoutControllers:function(e,t){var n=this,o=[],a=n._activeLayoutControllersStack.pop();if(!a)return i.Deferred().resolve().promise();if(e.isOverlay)n._activeLayoutControllersStack.push(a),o.push(a.disable());else{for(var s=i.Deferred(),r=!1,l=function(e,t){return function(){e.deactivate().done(function(){t.resolve()})}};a&&a!==e;){var c=i.Deferred();a.isOverlay?r=!0:n.transitionExecutor.leave(a.element(),b,{direction:t}),s.promise().done(l(a,c)),o.push(c.promise()),a=n._activeLayoutControllersStack.pop()}r?s.resolve():(n.transitionExecutor.enter(e.element(),b,{direction:t}),n.transitionExecutor.start().done(function(){s.resolve()}))}return x.apply(i,o)},init:function(){var e=this,t=this.callBase();return t.done(function(){e._initLayoutControllers(),e.renderNavigation()}),t},_disposeView:function(e){e.layoutController.disposeView&&e.layoutController.disposeView(e),this.callBase(e)},viewPort:function(){return this._$viewPort},_createViewInfo:function(){var e=this.callBase.apply(this,arguments),t=this.getViewTemplateInfo(e.viewName);if(!t)throw r.Error("E3013","dxView",e.viewName);return e.viewTemplateInfo=t,e.layoutController=this._resolveLayoutController(e),e},_createViewModel:function(e){this.callBase(e),s.extendFromObject(e.model,e.viewTemplateInfo)},_initLayoutControllers:function(){var e=this;i.each(e._layoutSet,function(t,n){var i=n.controller,a=g.current();o.findBestMatches(a,[n]).length&&(e._availableLayoutControllers.push(n),i.init&&i.init({app:e,$viewPort:e._$viewPort,navigationManager:e.navigationManager,viewEngine:e.viewEngine,templateContext:e._templateContext,commandManager:e.commandManager}),i.on&&(i.on("viewReleased",function(t){e._onViewReleased(t)}),i.on("viewHidden",function(t){e._onViewHidden(t)}),i.on("viewRendered",function(t){e._processEvent("viewRendered",{viewInfo:t},t.model)}),i.on("viewShowing",function(t,n){e._processEvent("viewShowing",{viewInfo:t,direction:n,params:t.routeData},t.model)}),i.on("viewShown",function(t,n){e._processEvent("viewShown",{viewInfo:t,direction:n,params:t.routeData},t.model)})))})},_onViewReleased:function(e){this._releaseViewLink(e)},renderNavigation:function(){var e=this;i.each(e._availableLayoutControllers,function(t,n){var i=n.controller;i.renderNavigation&&i.renderNavigation(e.navigation)})},getViewTemplate:function(e){return this.viewEngine.getViewTemplate(e)},getViewTemplateInfo:function(e){var t=this.viewEngine.getViewTemplateInfo(e);return t&&t.option()},loadTemplates:function(e){return this.viewEngine.loadTemplates(e)},templateContext:function(){return this._templateContext}});e.exports=C},function(e,t,n){var i,o=n(9),a=n(25),s=a.abstract,r=n(49),l=n(14),c=n(12),d=n(11).extend,u=n(132).utils.mergeCommands,h=n(133).createActionExecutors,p=n(124),f=n(134),m=n(125),g=n(122),_=n(90),v=n(137),w=n(126),x=n(51),y=n(54).sessionStorage,b=n(138),C=n(123),k=n(16).when,I="InProgress",S="Inited",D=a.inherit({ctor:function(e){e=e||{},this._options=e,this.namespace=e.namespace||window,this._applicationMode=e.mode?e.mode:"mobileApp",this.components=[],i=_.localizeString("@Back"),this.router=e.router||new p;var t={mobileApp:f.StackBasedNavigationManager,webSite:f.HistoryBasedNavigationManager};this.navigationManager=e.navigationManager||new t[this._applicationMode]({keepPositionInStack:"keepHistory"===e.navigateToRootViewMode}),this.navigationManager.on("navigating",this._onNavigating.bind(this)),this.navigationManager.on("navigatingBack",this._onNavigatingBack.bind(this)),this.navigationManager.on("navigated",this._onNavigated.bind(this)),this.navigationManager.on("navigationCanceled",this._onNavigationCanceled.bind(this)),this.stateManager=e.stateManager||new m({storage:e.stateStorage||y()}),this.stateManager.addStateSource(this.navigationManager),this.viewCache=this._createViewCache(e),this.commandMapping=this._createCommandMapping(e.commandMapping),this.createNavigation(e.navigation),this._isNavigating=!1,this._viewLinksHash={},r.registerExecutor(h(this)),this.components.push(this.router),this.components.push(this.navigationManager)},_createViewCache:function(e){var t;return t=e.viewCache?e.viewCache:e.disableViewCache?new w.NullViewCache:new w.CapacityViewCacheDecorator({size:e.viewCacheSize,viewCache:new w}),t.on("viewRemoved",function(e){this._releaseViewLink(e.viewInfo)}.bind(this)),t},_createCommandMapping:function(e){var t=e;return e instanceof v||(t=new v,t.load(v.defaultMapping||{}).load(e||{})),t},createNavigation:function(e){this.navigation=this._createNavigationCommands(e),this._mapNavigationCommands(this.navigation,this.commandMapping)},_createNavigationCommands:function(e){if(!e)return[];var t=0;return o.map(e,function(e){var n;return n=e instanceof g?e:new g(d({root:!0},e)),n.option("id")||n.option("id","navigation_"+t++),n})},_mapNavigationCommands:function(e,t){var n=o.map(e,function(e){return e.option("id")});t.mapCommands("global-navigation",n)},_callComponentMethod:function(e,t){var n=[];return o.each(this.components,function(i,o){if(o[e]&&l.isFunction(o[e])){var a=o[e](t);a&&a.done&&n.push(a)}}),k.apply(o,n)},init:function(){var e=this;return e._initState=I,e._callComponentMethod("init").done(function(){e._initState=S,e._processEvent("initialized")}).fail(function(e){throw e||C.Error("E3022")})},_onNavigatingBack:function(e){this._processEvent("navigatingBack",e)},_onNavigating:function(e){var t=this;if(t._isNavigating)return t._pendingNavigationArgs=e,void(e.cancel=!0);t._isNavigating=!0,delete t._pendingNavigationArgs;var n=this.router.parse(e.uri);if(!n)throw C.Error("E3001",e.uri);var i=this.router.format(n);e.uri!==i&&i?(e.cancel=!0,e.cancelReason="redirect",l.executeAsync(function(){t.navigate(i,e.options)})):t._processEvent("navigating",e)},_onNavigated:function(e){var t,n=this,i=e.options.direction,o=n._acquireViewInfo(e.item,e.options);return o.model||(this._processEvent("beforeViewSetup",{viewInfo:o}),n._createViewModel(o),n._createViewCommands(o),this._processEvent("afterViewSetup",{viewInfo:o})),n._highlightCurrentNavigationCommand(o),t=n._showView(o,i).always(function(){n._isNavigating=!1;var e=n._pendingNavigationArgs;e&&l.executeAsync(function(){n.navigate(e.uri,e.options)})})},_isViewReadyToShow:function(e){return!!e.model},_onNavigationCanceled:function(e){var t=this;if(!t._pendingNavigationArgs||t._pendingNavigationArgs.uri!==e.uri){var n=t.navigationManager.currentItem();n&&l.executeAsync(function(){var i=t._acquireViewInfo(n,e.options);t._highlightCurrentNavigationCommand(i,!0)}),t._isNavigating=!1}},_disposeRemovedViews:function(){var e,t=this;o.each(t._viewLinksHash,function(n,i){i.linkCount||(e={viewInfo:i.viewInfo},t._processEvent("viewDisposing",e,e.viewInfo.model),t._disposeView(i.viewInfo),t._processEvent("viewDisposed",e,e.viewInfo.model),delete t._viewLinksHash[n])})},_onViewHidden:function(e){var t={viewInfo:e};this._processEvent("viewHidden",t,t.viewInfo.model)},_disposeView:function(e){var t=e.commands||[];o.each(t,function(e,t){t._dispose()})},_acquireViewInfo:function(e,t){var n=this.router.parse(e.uri),i=this._getViewInfoKey(e,n),o=this.viewCache.getView(i);return o?this._updateViewInfo(o,e,t):(o=this._createViewInfo(e,t),this._obtainViewLink(o),this.viewCache.setView(i,o)),o},_getViewInfoKey:function(e,t){var n={key:e.key,navigationItem:e,routeData:t};return this._processEvent("resolveViewCacheKey",n),n.key},_processEvent:function(e,t,n){this._callComponentMethod(e,t),this.fireEvent(e,t&&[t]);var i=(n||{})[e];i&&i.call(n,t)},_updateViewInfo:function(e,t,n){var i=t.uri,o=this.router.parse(i);e.viewName=o.view,e.routeData=o,e.uri=i,e.navigateOptions=n,e.canBack=this.canBack(n.stack),e.previousViewInfo=this._getPreviousViewInfo(n)},_createViewInfo:function(e,t){var n=e.uri,i=this.router.parse(n),o={key:this._getViewInfoKey(e,i)};return this._updateViewInfo(o,e,t),o},_createViewModel:function(e){e.model=e.model||this._callViewCodeBehind(e)},_createViewCommands:function(e){e.commands=e.model.commands||[],e.canBack&&"webSite"!==this._applicationMode&&this._appendBackCommand(e)},_callViewCodeBehind:function(e){var t=l.noop,n=e.routeData;return n.view in this.namespace&&(t=this.namespace[n.view]),t.call(this.namespace,n,e)||{}},_appendBackCommand:function(e){var t=e.commands,n=this,o=i;n._options.useViewTitleAsBackText&&(o=((e.previousViewInfo||{}).model||{}).title||o);var a=[new g({id:"back",title:o,behavior:"back",onExecute:function(){n.back({stack:e.navigateOptions.stack})},icon:"arrowleft",type:"back",renderStage:n._options.useViewTitleAsBackText?"onViewRendering":"onViewShown"})],s=u(a,t);t.length=0,t.push.apply(t,s)},_showView:function(e,t){var n=this,i={viewInfo:e,direction:t,params:e.routeData};return b.processRequestResultLock.obtain(),n._showViewImpl(i.viewInfo,i.direction).done(function(){l.executeAsync(function(){b.processRequestResultLock.release(),n._processEvent("viewShown",i,e.model),n._disposeRemovedViews()})})},_highlightCurrentNavigationCommand:function(e,t){var n,i=this,a=e.model&&e.model.currentNavigationItemId;void 0!==a&&o.each(this.navigation,function(e,t){if(t.option("id")===a)return n=t,!1}),n||o.each(this.navigation,function(e,t){var o=t.option("onExecute");if(l.isString(o)&&(o=o.replace(/^#+/,""),o===i.navigationManager.rootUri()))return n=t,!1}),o.each(this.navigation,function(e,i){t&&i===n&&i.option("highlighted")&&i.fireEvent("optionChanged",[{name:"highlighted",value:!0,previousValue:!0}]),i.option("highlighted",i===n)})},_showViewImpl:s,_obtainViewLink:function(e){var t=e.key;this._viewLinksHash[t]?this._viewLinksHash[t].linkCount++:this._viewLinksHash[t]={viewInfo:e,linkCount:1}},_releaseViewLink:function(e){void 0===this._viewLinksHash[e.key]&&C.log("W3001",e.key),0===this._viewLinksHash[e.key].linkCount&&C.log("W3002",e.key),this._viewLinksHash[e.key].linkCount--},navigate:function(e,t){var n=this;if(c.isPlainObject(e)&&(e=n.router.format(e),e===!1))throw C.Error("E3002");if(n._initState){if(n._initState!==S)throw C.Error("E3003");n._isNavigating&&!e||n.navigationManager.navigate(e,t)}else n.init().done(function(){n.restoreState(),n.navigate(e,t)})},canBack:function(e){return this.navigationManager.canBack(e)},_getPreviousViewInfo:function(e){var t,n=this.navigationManager.previousItem(e.stack);if(n){var i=this.router.parse(n.uri);t=this.viewCache.getView(this._getViewInfoKey(n,i))}return t},back:function(e){this.navigationManager.back(e)},saveState:function(){this.stateManager.saveState()},restoreState:function(){this.stateManager.restoreState()},clearState:function(){this.stateManager.clearState()}}).include(x);t.Application=D},function(e,t,n){var i=n(9),o=n(94),a=n(106),s=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++)n(e[o],t)||i.push(e[o]);return i.push.apply(i,t),i},r=function(e,t){var n=!1;return i.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");if(n=o||a,a&&null===i.option("onExecute")&&i.option("onExecute",e.option("onExecute")),n)return e.element().remove(),!1}),n},l=function(e,t){return s(e,t,r)},c=function(e,t,n,i){var o=t?t[n]:void 0,a=void 0===o?i:o,s=e.option(n);return void 0===s||s===i?a:s},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={createTemplate:function(e){return new a(e)},applyTemplate:function(e,t){o.applyBindings(t,e)}}},function(e,t,n){function i(e,t){if(t.args){var n=t.args[0];e.jQueryEvent=n.jQueryEvent}"dxCommand"===(t.component||{}).NAME&&r(e,t.component.option())}function o(e){if(e){var t=a(e.target);t.attr("href")&&e.preventDefault()}}var a=n(9),s=n(50),r=n(11).extend,l=n(12).isPlainObject,c=n(124).Route,d=function(e){return{routing:{execute:function(t){var n,a,s=t.action,r={};l(s)&&(n=s.routeValues,n&&l(n)?r=s.options:n=s,a=e.router.format(n),i(r,t),o(r.jQueryEvent),e.navigate(a,r),t.handled=!0)}},hash:{execute:function(t){if("string"==typeof t.action&&"#"===t.action.charAt(0)){var n=t.action.substr(1),r=t.args[0],l=n,d=function(e){var n=s.compileGetter(e),i=t.args[0].model;return n(i)},u=r.evaluate||d;l=n.replace(/\{([^}]+)\}/g,function(e,t){t=a.trim(t),t.indexOf(",")>-1&&(t=a.map(t.split(","),a.trim));var n=u(t);return void 0===n&&(n=""),n=c.prototype.formatSegment(n)});var h={};i(h,t),o(h.jQueryEvent),e.navigate(l,h),t.handled=!0}}},url:{execute:function(e){"string"==typeof e.action&&"#"!==e.action.charAt(0)&&(document.location=e.action)}}}};t.createActionExecutors=d},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=n(12).isPlainObject,r=n(11).extend,l=n(135),c=n(51),d=n(123),u=n(65).processCallback,h=n(66),p=n(16).when,f={current:"current",blank:"blank",back:"back"},m="__history",g=o.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 l.HistoryBasedNavigationDevice,this._navigationDevice.uriChanged.add(this._uriChangedHandler.bind(this))},_uriChangedHandler:function(e){for(;h(););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:f.blank}},_updateHistory:function(e,t){this._previousItem=this._currentItem,this._currentItem={uri:e,key:e},this._navigationDevice.setUri(e,t.target===f.current)},_setCurrentItem:function(e){this._currentItem=e},navigate:function(e,t){t=t||{};var n,o=this,s=!o._currentItem,l=o._currentItem||{},c=t.item||{},d=l.uri,u=l.key,h=c.key;return void 0===e&&(e=o._navigationDevice.getUri()),/^_back$/.test(e)?void o.back():(t=r(o._getDefaultOptions(),t||{}),s&&(t.target=f.current),n={currentUri:d,uri:e,cancel:!1,navigateWhen:[],options:t},o.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||d===e&&(void 0===h||h===u)&&!o._forceNavigate?o._cancelNavigation(n):(o._forceNavigate=!1,p.apply(i,n.navigateWhen).done(function(){a.executeAsync(function(){o._updateHistory(e,t),o.fireEvent("navigated",[{uri:e,previousUri:d,options:t,item:o._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 d.Error("E3023");this._setCurrentItem(e)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:a.noop,restoreState:a.noop,removeState:a.noop}).include(c),_=g.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),u.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||m},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new l.StackBasedNavigationDevice),this.callBase(e),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(e){this.navigate(e)},_createNavigationStacks:function(e){this.navigationStacks={},this._keepPositionInStack=e.keepPositionInStack,this.currentStack=new v},_deviceBackInitiated:function(){h()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:f.blank}},_createNavigationStack:function(){var e=new v;return e.itemsRemoved.add(this._removeItems.bind(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=i.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,s=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)s&&!o||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var r=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case f.blank:this.currentStack.navigate(e);break;case f.current:this.currentStack.navigate(e,!0);break;case f.back:this.currentStack.currentIndex>0?this.currentStack.back(e):this.currentStack.navigate(e,!0);break;default:throw d.Error("E3006",t.target)}if(void 0===t.direction){var c=this.currentStack.currentIndex-r;c<0?t.direction=this.currentStack.currentItem().backDirection||"backward":c>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;i.each(e,function(e,n){t.fireEvent("itemRemoved",[n])})},back:function(e){e=e||{};var t=r({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:f.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&&t.canBack()},saveState:function(e){if(this.currentStack.items.length){var t={navigationStacks:{},currentStackKey:this.currentStackKey};i.each(this.navigationStacks,function(e,n){var o={};t.navigationStacks[e]=o,o.currentIndex=n.currentIndex,o.items=i.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,o=JSON.parse(t);i.each(o.navigationStacks,function(e,t){var o=n._createNavigationStack();n.navigationStacks[e]=o,o.currentIndex=t.currentIndex,o.items=i.map(t.items,function(e){return e.stack=o,e})}),this.currentStackKey=o.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),d.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 i.each(this.navigationStacks,function(n,i){var o=i.itemByKey(e);if(o)return t=o,!1}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):s(e)&&(t=e),void this.callBase(t)):this.callBase()}}),v=o.inherit({ctor:function(e){e=e||{},this.itemsRemoved=i.Callbacks(),this.clear()},currentItem:function(e){if(!e)return this.items[this.currentIndex];for(var t=0;t<this.items.length;t++)if(e===this.items[t]){this.currentIndex=t;break}},previousItem:function(){return this.items.length>1?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 d.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 d.Error("E3009")},navigate:function(e,t){if(!(this.currentIndex<this.items.length&&this.currentIndex>-1&&this.items[this.currentIndex].uri===e)){if(t&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+1<this.items.length&&this.items[this.currentIndex+1].uri===e)this.currentIndex++;else{var n=this.items.splice(this.currentIndex+1,this.items.length-this.currentIndex-1);this.items.push({stack:this}),this.currentIndex++,this._updateItem(this.currentIndex,e),this._deleteItems(n)}return this.currentItem()}},itemByKey:function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.key===e)return n}},_updateItem:function(e,t){var n=this.items[e];n.uri=t,n.key=this.items[0].uri+"_"+e+"_"+t},_deleteItems:function(e){e&&this.itemsRemoved.fire(e)}});t.HistoryBasedNavigationManager=g,t.StackBasedNavigationManager=_,t.NavigationStack=v},function(e,t,n){var i=n(9),o=n(14).noop,a=n(25),s=n(136),r=n(54).sessionStorage,l=n(53),c="dxPhoneJSApplication",d=a.inherit({ctor:function(e){e=e||{},this._browserAdapter=e.browserAdapter||this._createBrowserAdapter(e),this.uriChanged=i.Callbacks(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:o,getUri:function(){return this._browserAdapter.getHash()},setUri:function(e,t){return t?this._browserAdapter.replaceState(e):e!==this.getUri()?this._browserAdapter.pushState(e):i.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var e=l.real(),t=e.version;return"android"===e.platform&&t.length>1&&(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 s.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new s.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new s.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new s.OldBrowserAdapter(e):new s.DefaultBrowserAdapter(e)}}),u=d.inherit({ctor:function(e){this.callBase(e),this.backInitiated=i.Callbacks(),this._rootStateHandler=null,i(window).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):i.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=r();e&&e.setItem(c,!0)},_initRootPage:function(){var e=this.getUri(),t=r();return!t||t.getItem(c)?i.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},function(e,t,n){var i=n(9),o=n(25),a=n(63),s="__root__",r="__buffer__",l=o.inherit({ctor:function(e){e=e||{},this._window=e.window||window,this.popState=i.Callbacks(),i(this._window).on("hashchange",this._onHashChange.bind(this)),this._tasks=a.create(),this.canWorkInPureBrowser=!0},replaceState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.replaceState(null,null,"#"+e),t._currentTask.resolve()})},pushState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.pushState(null,null,"#"+e),t._currentTask.resolve()})},createRootPage:function(){return this.replaceState(s)},_onHashChange:function(){this._currentTask&&this._currentTask.resolve(),this.popState.fire()},back:function(){var e=this;return this._addTask(function(){e._window.history.back()})},getHash:function(){return this._normalizeUri(this._window.location.hash)},isRootPage:function(){return this.getHash()===s},_normalizeUri:function(e){return(e||"").replace(/^#+/,"")},_addTask:function(e){var t=this,n=i.Deferred();return this._tasks.add(function(){return t._currentTask=n,e(),n}),n.promise()}}),c=l.inherit({ctor:function(){this._innerEventCount=0,this.callBase.apply(this,arguments),this._skipNextEvent=!1},replaceState:function(e){var t=this;return e=t._normalizeUri(e),t.getHash()!==e?(t._addTask(function(){t._skipNextEvent=!0,t._window.history.back()}),t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e})):i.Deferred().resolve().promise()},pushState:function(e){var t=this;return e=this._normalizeUri(e),this.getHash()!==e?t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e}):i.Deferred().resolve().promise()},createRootPage:function(){return this.pushState(s)},_onHashChange:function(){var e=this._currentTask;this._currentTask=null,this._skipNextEvent?this._skipNextEvent=!1:this.popState.fire(),e&&e.resolve()}}),d=c.inherit({createRootPage:function(){return this.pushState(r),this.callBase()}}),u=l.inherit({ctor:function(e){e=e||{},this._window=e.window||window,this.popState=i.Callbacks(),i(this._window).on("dxback",this._onHashChange.bind(this)),this._currentHash=this._window.location.hash},replaceState:function(e){return this._currentHash=this._normalizeUri(e),i.Deferred().resolve().promise()},pushState:function(e){return this.replaceState(e)},createRootPage:function(){return this.replaceState(s)},getHash:function(){return this._normalizeUri(this._currentHash)},back:function(){return this.replaceState(s)},_onHashChange:function(){var e=this.back();return this.popState.fire(),e}}),h=l.inherit({ctor:function(e){this.callBase(e),this.canWorkInPureBrowser=!1}});t.DefaultBrowserAdapter=l,t.OldBrowserAdapter=c,t.BuggyAndroidBrowserAdapter=d,t.HistorylessBrowserAdapter=u,t.BuggyCordovaWP81BrowserAdapter=h},function(e,t,n){var i=n(9),o=n(25),a=n(14).grep,s=n(11).extend,r=n(26).inArray,l=n(123),c=o.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 i.each(t,function(t,i){"string"==typeof i&&(i={id:i});var o=i.id,a=n._commandMappings[e]||{};a[o]=s({showIcon:!0,showText:!0},n._containerDefaults[e]||{},i),n._commandMappings[e]=a}),this._initExistingCommands(),this},unmapCommands:function(e,t){var n=this;i.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=a(e,function(n,i){return r(n,t._existingCommands)<0&&r(n,e)===i});if(0!==n.length)throw l.Error("E3005",n.join("', '"),1===n.length?" is":"s are")},load:function(e){if(e){var t=this;return i.each(e,function(e,n){t.setDefaults(e,n.defaults),t.mapCommands(e,n.commands)}),this}},_initExistingCommands:function(){var e=this;this._existingCommands=[],i.each(e._commandMappings,function(t,n){i.each(n,function(t,n){r(n.id,e._existingCommands)<0&&e._existingCommands.push(n.id)})})}});c.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"}]}},e.exports=c},function(e,t,n){function i(e){return/^(or|\|\||\|)$/i.test(e)}function o(e){return/^(and|\&\&|\&)$/i.test(e)}var a=n(9),s=n(14).isFunction,r=n(50).toComparable,l="DEVEXTREME_XHR_ERROR_UNLOAD",c=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},d=function(e){return Array.isArray(e)||(e=[e]),a.map(e,function(e){var t={selector:s(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},u=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n?n:e};return window.addEventListener("beforeunload",function(){e=!0}),function(t,i){return e?l:t.status<400?n(i):t.statusText}}(),h={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},p=function(){var e,t=0,n=function(){0===t&&(e=a.Deferred()),t++},i=function(){t--,t<1&&e.resolve()},o=function(){var n=0===t?a.Deferred().resolve():e;return n.promise()},s=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:s}}(),f=function(e,t,n){if(Array.isArray(e)){for(var i,o=a.map(t,function(e,t){return t}),s=0;s<o.length;s++)if(i=o[s],r(t[i],!0)!=r(n[i],!0))return!1;return!0}return r(t,!0)==r(n,!0)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=function(e){function t(e){return m.charAt(e)}Array.isArray(e)||(e=_(String(e)));for(var n="",i=0;i<e.length;i+=3){var o=e[i],s=e[i+1],r=e[i+2];n+=a.map([o>>2,(3&o)<<4|s>>4,isNaN(s)?64:(15&s)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n},_=function(e){var t,n,i=[];for(n=0;n<e.length;n++)t=e.charCodeAt(n),t<128?i.push(t):t<2048?i.push(192+(t>>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},v=function(e){return"!"===e[0]&&Array.isArray(e[1])},w={XHR_ERROR_UNLOAD:l,normalizeBinaryCriterion:c,normalizeSortingInfo:d,errorMessageFromXhr:u,aggregators:h,keysEqual:f,isDisjunctiveOperator:i,isConjunctiveOperator:o,processRequestResultLock:p,isUnaryOperation:v,base64_encode:g};e.exports=w},function(e,t){t.layoutSets={},t.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(9),o=n(25),a=n(14).noop,s=n(123),r=n(137),l=n(141),c=n(16).when;n(122),n(127);var d=o.inherit({ctor:function(e){e=e||{},this.defaultWidgetAdapter=e.defaultWidgetAdapter||this._getDefaultWidgetAdapter(),this.commandMapping=e.commandMapping||new r},_getDefaultWidgetAdapter:function(){return{addCommand:a,clearContainer:a}},_getContainerAdapter:function(e){var t=e.data("dxComponents"),n=l;if(t)for(var i in t){var o=t[i];if(o in n)return n[o]}return this.defaultWidgetAdapter},findCommands:function(e){var t=e.find(".dx-command").add(e.filter(".dx-command")),n=i.map(t,function(e){return i(e).dxCommand("instance")});return n},findCommandContainers:function(e){var t=i.map(e.find(".dx-command-container"),function(e){return i(e).dxCommandContainer("instance")});return t},_checkCommandId:function(e,t){if(null===e)throw s.Error("E3010",t.element().get(0).outerHTML)},renderCommandsToContainers:function(e,t){var n=this,o={},a=[],s=[];return i.each(e,function(e,t){var i=t.option("id");n._checkCommandId(i,t),a.push(i),o[i]=t}),n.commandMapping.checkCommandsExist(a),i.each(t,function(e,t){var a=[];if(i.each(o,function(e,i){var o=e,s=n.commandMapping.getCommandMappingForContainer(o,t.option("id"));s&&a.push({command:i,options:s})}),a.length){var r=n._attachCommandsToContainer(t.element(),a);r&&s.push(r)}}),c.apply(i,s)},clearContainer:function(e){var t=e.element(),n=this._getContainerAdapter(t);n.clearContainer(t)},_arrangeCommandsToContainers:function(e,t){s.log("W0002","CommandManager","_arrangeCommandsToContainers","14.1","Use the 'renderCommandsToContainers' method instead."),this.renderCommandsToContainers(e,t)},_attachCommandsToContainer:function(e,t){var n,o=this._getContainerAdapter(e);return o.beginUpdate&&o.beginUpdate(e),i.each(t,function(t,n){o.addCommand(e,n.command,n.options)}),o.endUpdate&&(n=o.endUpdate(e)),n}});e.exports=d},function(e,t,n){var i=n(9),o=n(25),a=n(11).extend,s=n(26).inArray,r=n(132).utils.commandToContainer,l=n(69),c=n(75),d="dxCommandToWidgetAdapter",u=o.inherit({ctor:function(e,t){this.command=e,this.widgetItem=this._createWidgetItem(e,t)},_createWidgetItem:function(e,t){var n,i=a({},t,e.option()),o=function(t){e.execute(t)};return i.text=r.resolveTextValue(e,t),i.icon=r.resolveIconValue(e,t),i.type=r.resolvePropertyValue(e,t,"type"),i.location=r.resolvePropertyValue(e,t,"location"),i.locateInMenu=r.resolvePropertyValue(e,t,"locateInMenu"),i.showText=r.resolvePropertyValue(e,t,"showText"),n=this._createWidgetItemCore(i,o),n.command=e,n},_createWidgetItemCore:function(e,t){return e},dispose:function(){delete this.command,delete this.widgetItem}}),h=o.inherit({ctor:function(e){this._commandToWidgetItemOptionNames={},this.$widgetElement=e,this.$widgetElement.data(d,this),this.widget=this._getWidgetByElement(e),this._widgetWidgetContentReadyHandler=this._onWidgetContentReady.bind(this),this._widgetWidgetItemRenderedHandler=this._onWidgetItemRendered.bind(this),this._widgetDisposingHandler=this._onWidgetDisposing.bind(this),this.widget.on("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.on("contentReady",this._widgetWidgetContentReadyHandler),this.widget.on("disposing",this._widgetDisposingHandler),this.itemWrappers=[],this._transitionExecutor=new c.TransitionExecutor},addCommand:function(e,t){var n=this._createItemWrapper(e,t);this.itemWrappers.push(n),this._addItemToWidget(n),this._commandChangedHandler=this._onCommandChanged.bind(this),n.command.on("optionChanged",this._commandChangedHandler)},beginUpdate:function(){this.widget.beginUpdate()},endUpdate:function(){return this.widget.endUpdate(),this.animationDeferred},_onWidgetItemRendered:function(e){e.itemData.isJustAdded&&e.itemData.command&&e.itemData.command.option("visible")&&this._commandRenderedAnimation&&(this._transitionExecutor.enter(e.itemElement,this._commandRenderedAnimation),delete e.itemData.isJustAdded)},_onWidgetContentReady:function(e){this.animationDeferred=this._transitionExecutor.start()},_onWidgetDisposing:function(){this.dispose(!0)},_setWidgetItemOption:function(e,t,n){var o=this.widget.option("items"),a=s(n,i.map(o,function(e){return e.command||{}}));if(a>-1){var r="items["+a+"].";!this._requireWidgetRefresh(e)&&this.widget.option("items["+a+"]").options&&(r+="options."),r+=this._commandToWidgetItemOptionNames[e]||e,this.widget.option(r,t)}},_requireWidgetRefresh:function(e){return"visible"===e||"locateInMenu"===e||"location"===e},_onCommandChanged:function(e){"highlighted"===e.name||e.component.isOptionDeprecated(e.name)||this._setWidgetItemOption(e.name,e.value,e.component)},_addItemToWidget:function(e){var t=this.widget.option("items");t.push(e.widgetItem),this.widget.element().is(":visible")&&(e.widgetItem.isJustAdded=!0),this.widget.option("items",t)},refresh:function(){var e=this.widget.option("items");this.widget.option("items",e)},clear:function(e){var t=this;i.each(t.itemWrappers,function(e,n){n.command.off("optionChanged",t._commandChangedHandler),n.dispose()}),this.itemWrappers.length=0,e||this._clearWidgetItems()},_clearWidgetItems:function(){this.widget.option("items",[])},dispose:function(e){this.clear(e),this.widget&&(this.widget.off("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.off("contentReady",this._widgetContentReadyHandler),this.widget.off("disposing",this._widgetDisposingHandler),this.$widgetElement.removeData(d),delete this.widget,delete this.$widgetElement)}}),p=o.inherit({ctor:function(e){this.createAdapter=e},_getWidgetAdapter:function(e){var t=e.data(d);return t||(t=this.createAdapter(e)),t},addCommand:function(e,t,n){var i=this._getWidgetAdapter(e);i.addCommand(t,n)},clearContainer:function(e){var t=this._getWidgetAdapter(e);t.clear()},beginUpdate:function(e){var t=this._getWidgetAdapter(e);t.beginUpdate()},endUpdate:function(e){var t=this._getWidgetAdapter(e);return t.endUpdate()}}),f=u.inherit({_createWidgetItemCore:function(e,t){var n;return e.onClick=t,"menu"===e.location||"always"===e.locateInMenu?(n=e,n.isAction=!0):(n={locateInMenu:e.locateInMenu,location:e.location,visible:e.visible,options:e,widget:"dxButton"},"inMenu"===e.showText&&(n.showText=e.showText),e.visible=!0,delete e.location),n}}),m=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},"topToolbar"===this.widget.option("renderAs")?this._commandRenderedAnimation="command-rendered-top":this._commandRenderedAnimation="command-rendered-bottom"},_getWidgetByElement:function(e){return e.dxToolbar("instance")},_createItemWrapper:function(e,t){return new f(e,t)},addCommand:function(e,t){this.widget.option("visible",!0),this.callBase(e,t)}}),g=u.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e.onClick=t,e}}),_=h.inherit({_createItemWrapper:function(e,t){return new g(e,t)},_getWidgetByElement:function(e){return e.dxList("instance")}}),v=u.inherit({}),w=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onNavBarItemClick.bind(this))},_onNavBarItemClick:function(e){for(var t=this.widget.option("items"),n=t.length;--n;)t[n].command.option("highlighted",!1);e.itemData.command.execute(e)},_getWidgetByElement:function(e){return e.dxNavBar("instance")},_createItemWrapper:function(e,t){return new v(e,t)},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)},_updateSelectedIndex:function(){for(var e=this.widget.option("items"),t=0,n=e.length;t<n;t++){var i=e[t].command;if(i&&i.option("highlighted")){this.widget.option("selectedIndex",t);break}}}}),x=u.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e}}),y=h.inherit({ctor:function(e){this.callBase(e),this.widget.option("onSelectionChanged",this._onPivotSelectionChange.bind(this))},_onPivotSelectionChange:function(e){e.addedItems.length&&e.removedItems.length&&e.addedItems[0]&&e.addedItems[0].command&&e.addedItems[0].command.execute(e)},_getWidgetByElement:function(e){return e.dxPivot("instance")},_createItemWrapper:function(e,t){return new x(e,t)},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"visible"===t?this._reRenderPivot():"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)},_addItemToWidget:function(e){e.command.option("visible")&&this.callBase(e)},_updateSelectedIndex:function(){var e=this.widget,t=e.option("items")||[];l.off=!0;for(var n=0,i=t.length;n<i;n++){var o=t[n].command;if(o&&o.option("highlighted")){e.option("selectedIndex",n);break}}l.off=!1},_reRenderPivot:function(){var e=this;e.widget.option("items",[]),i.each(e.itemWrappers,function(t,n){n.command.option("visible")&&e._addItemToWidget(n)}),e.refresh(),e._updateSelectedIndex()}}),b=u.inherit({}),C=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onSlideOutItemClick.bind(this))},_onSlideOutItemClick:function(e){e.itemData.command.execute(e)},_getWidgetByElement:function(e){return e.dxSlideOut("instance")},_createItemWrapper:function(e,t){return new b(e,t)},_updateSelectedIndex:function(){for(var e=this.widget.option("items")||[],t=0,n=e.length;t<n;t++){var i=e[t].command;if(i&&i.option("highlighted")){this.widget.option("selectedIndex",t);break}}},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)}});t.dxToolbar=new p(function(e){return new m(e)}),t.dxList=new p(function(e){return new _(e)}),t.dxNavBar=new p(function(e){return new w(e)}),t.dxPivot=new p(function(e){return new y(e)}),t.dxSlideOut=new p(function(e){return new C(e)})},function(e,t,n){var i=n(9),o=n(19),a=n(25),s=n(14),r=n(26).inArray,l=n(123),c=n(62),d=n(16).when,u="dxView",h="dxLayout",p="MarkupTemplate:";n(129);var f=a.inherit({ctor:function(e){e=e||{},this.$root=e.$root,this.device=e.device||{},this.dataOptionsAttributeName=e.dataOptionsAttributeName||"data-options",this._templateMap={},this._pendingViewContainer=null,this.markupLoaded=i.Callbacks(),this._templateContext=e.templateContext,this._$skippedMarkup=i(),void 0!==e.templatesVersion&&e.templateCacheStorage&&this._isReleaseVersion()&&(this._templateCacheEnabled=!0,this._templatesVersion="v_"+e.templatesVersion,this._templateCacheStorage=e.templateCacheStorage,this._templateCacheKey="dxTemplateCache_"+o+"_"+JSON.stringify(this.device))},_isReleaseVersion:function(){return!/http:\/\/localhost/.test(location.href)},_enumerateTemplates:function(e){var t=this;i.each(t._templateMap,function(t,n){i.each(n,function(t,n){i.each(n,function(t,n){e(n)})})})},_findComponent:function(e,t){var n=(this._templateMap[e]||{})[t]||[],i=this._templateContext&&this._templateContext.option()||{};return n=this._filterTemplates(i,n),this._checkMatchedTemplates(n),n[0]},_findTemplate:function(e,t){var n=this._findComponent(e,t);if(!n)throw this._clearCache(),l.Error("E3013",t,e);var i,o=n.element();return n._isStaticComponentsCreated||(c.createComponents(o,["dxContent","dxContentPlaceholder","dxTransition"]),n._isStaticComponentsCreated=!0),i=o.clone().removeClass("dx-hidden")},_clearCache:function(){this._templateCacheEnabled&&this._templateCacheStorage.removeItem(this._templateCacheKey)},_loadTemplatesFromMarkupCore:function(e){var t=this;if(e.find("[data-dx-role]").length)throw l.Error("E3019");t.markupLoaded.fire({markup:e});var n=c.createComponents(e,[u,h]);i.each(n,function(e,n){var i=n.element();i.addClass("dx-hidden"),t._registerTemplateComponent(n),n.element().detach()});var o=e.filter("script");o.appendTo(t.$root),t._$skippedMarkup=t._$skippedMarkup.add(o)},_registerTemplateComponent:function(e){var t=e.NAME,n=e.option(),i=n.name,o=this._templateMap[i]||{};o[t]=o[t]||[],o[t].push(e),this._templateMap[i]=o},_applyPartialViews:function(e){var t=this;c.createComponents(e,["dxViewPlaceholder"]),i.each(e.find(".dx-view-placeholder"),function(){var e=i(this);if(!e.children().length){var n=e.data("dxViewPlaceholder").option("viewName"),o=t._findTemplate(n,u);t._applyPartialViews(o),e.append(o),o.removeClass("dx-hidden")}})},_ajaxImpl:function(){return i.ajax.apply(i,arguments)},_loadTemplatesFromURL:function(e){var t=this,n=this._getLoadOptions(),o=i.Deferred();return e=n.winPhonePrefix+e,this._ajaxImpl({url:e,isLocal:n.isLocal,dataType:"html"}).done(function(e){t._loadTemplatesFromMarkupCore(c.createMarkupFromString(e)),o.resolve()}).fail(function(t,n,i){var a=l.Error("E3021",e,i);o.reject(a)}),o.promise()},_getLoadOptions:function(){return location.protocol.indexOf("wmapp")>=0?{winPhonePrefix:location.protocol+"www/",isLocal:!0}:{winPhonePrefix:"",isLocal:void 0}},_loadExternalTemplates:function(){var e=[],t=this;return i("head").find("link[rel='dx-template']").each(function(n,o){var a=t._loadTemplatesFromURL(i(o).attr("href"));e.push(a)}),d.apply(i,e)},_processTemplates:function(){var e=this;i.each(e._templateMap,function(t,n){i.each(n,function(t,n){e._filterTemplatesByDevice(n)})}),e._enumerateTemplates(function(t){e._applyPartialViews(t.element())})},_filterTemplatesByDevice:function(e){var t=this._filterTemplates(this.device,e);i.each(e,function(e,n){r(n,t)<0&&n.element().remove()}),e.length=0,e.push.apply(e,t)},_filterTemplates:function(e,t){return s.findBestMatches(e,t,function(e){return e.option()})},_checkMatchedTemplates:function(e){if(e.length>1){var t="";throw i.each(e,function(e,n){t+=n.element().attr("data-options")+"\r\n"}),l.Error("E3020",t,JSON.stringify(this.device))}},_wrapViewDefaultContent:function(e){e.wrapInner('
'),e.children().eq(0).dxContent({targetPlaceholder:"content"})},_initDefaultLayout:function(){this._$defaultLayoutTemplate=i('
\n
\n
'),c.createComponents(this._$defaultLayoutTemplate)},_getDefaultLayoutTemplate:function(){return this._$defaultLayoutTemplate.clone()},applyLayout:function(e,t){void 0!==t&&0!==t.length||(t=this._getDefaultLayoutTemplate()),0===e.children(".dx-content").length&&this._wrapViewDefaultContent(e);var n=i().add(t).add(e),o=n.find(".dx-content");i.each(o,function(){var e=i(this),t=e.attr("data-dx-target-placeholder-id"),o=n.find(".dx-content-placeholder-"+t);o.empty(),o.append(e)});for(var a=o.length;a>=0;a--){var s=o.eq(a);s.is(".dx-content-placeholder .dx-content")||s.remove()}return t},_loadTemplatesFromCache:function(){if(this._templateCacheEnabled){var e,t=function(e,t){if("string"==typeof t&&0===t.indexOf(p)){var n=JSON.parse(t.substr(p.length)),o=n.type,a=n.options,s=c.createMarkupFromString(n.markup);return a.fromCache=!0,s[o](a)[o]("instance")}return"skippedMarkup"===e?i("
").append(c.createMarkupFromString(t)).contents():t},n=this._templateCacheStorage.getItem(this._templateCacheKey);if(n)try{var o=JSON.parse(n,t);e=o[this._templatesVersion]}catch(e){this._clearCache()}if(e)return this._templateMap=e.templates,this.$root.append(e.skippedMarkup),!0}},_putTemplatesToCache:function(){if(this._templateCacheEnabled){var e=function(e,t){return t&&t.element?p+JSON.stringify({markup:t.element().prop("outerHTML"),options:t.option(),type:t.NAME}):"skippedMarkup"===e?i("
").append(t.clone()).html():t},t={};t[this._templatesVersion]={templates:this._templateMap,skippedMarkup:this._$skippedMarkup},this._templateCacheStorage.setItem(this._templateCacheKey,JSON.stringify(t,e,4))}},init:function(){var e=this;return this._initDefaultLayout(),this._loadTemplatesFromCache()?i.Deferred().resolve().promise():(e._loadTemplatesFromMarkupCore(e.$root.children()),this._loadExternalTemplates().done(function(){e._processTemplates(),e._putTemplatesToCache()}))},getViewTemplate:function(e){return this._findTemplate(e,u)},getViewTemplateInfo:function(e){return this._findComponent(e,u)},getLayoutTemplate:function(e){return e?this._findTemplate(e,h):this._getDefaultLayoutTemplate()},getLayoutTemplateInfo:function(e){return this._findComponent(e,h)},loadTemplates:function(e){var t;return"string"==typeof e?t=this._loadTemplatesFromURL(e):(this._loadTemplatesFromMarkupCore(e),t=i.Deferred().resolve().promise()),t.done(this._processTemplates.bind(this))}});t.ViewEngine=f},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=n(132),r=n(139).layoutSets,l=n(51),c=n(123),d=n(62),u=n(16).when,h="__hidden-bag",p=".dx-transition",f=".dx-content",m="onViewShown",g="dxcontentrendered.layoutController",_=".dx-pending-rendering",v=".dx-pending-rendering-manual",w=n(75);n(127),n(129);var x=function(e){return".dx-transition-"+e},y=o.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||i("body"),this._commandManager=e.commandManager,this._viewEngine=e.viewEngine,this.transitionExecutor=new w.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),e.templateContext&&(this._templateContext=e.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(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(),i.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,i.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(e,t){var n=this;t=t||this._visibleViews,i.each(t,function(t,i){n.fireEvent(e,[i])})},_notifyShowing:function(e){this._fireViewEvents("viewShowing",e)},_notifyShown:function(e){this._fireViewEvents("viewShown",e)},_notifyHidden:function(e){this._fireViewEvents("viewHidden",e)},_applyTemplate:function(e,t){e.each(function(e,n){s.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;i.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this,t=[];i.each(e._visibleViews,function(n,i){i.currentViewTemplateId!==e._getViewTemplateId(i)&&t.push(i)}),u.apply(i,i.map(t,function(t){return e.showView(t)})).done(function(){e._notifyShown(t)})},_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 i.each(t,function(t,n){if("global-navigation"===n.option("id"))return e=n.element(),!1}),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,o){n._applyTemplate(i(o).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){for(var t=e.find(p).add(e.filter(p)),n=[],o=0;o<t.length;o++){var a=t.eq(o);0===a.parents(p).length&&n.push(a.get(0))}return i(n)},showView:function(e,t){t=t||"forward";var n,o=this,a=o._getPreviousViewInfo(e),s=a===e?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(e),s&&s===e.currentViewTemplateId&&e===a?(o.fireEvent("viewShowing",[e,t]),n=i.Deferred().resolve().promise()):(o._ensureViewRendered(e),o.fireEvent("viewShowing",[e,t]),n=this._showViewImpl(e,t,s).done(function(){o._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,o=this,a=".dx-command,.dx-content,script",s=this._createViewLayoutTemplate(),r=!0,l=i();if(0===e.children(a).length&&this._viewEngine._wrapViewDefaultContent(e),n=e.children(),this._applyModelToTransitionElements(s,t.model),this._viewEngine.applyLayout(e,s),n.each(function(e,n){var s=i(n);o._applyTemplate(s,t.model),s.is(a)?r=!1:l=l.add(s)}),l.length&&!r)throw c.Error("E3014",l[0].outerHTML);t.renderResult=t.renderResult||{},t.renderResult.$viewItems=n,t.renderResult.$markup=s},_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),o={};e.commands=s.utils.mergeCommands(e.commands||[],n),e.commandsToRenderMap=o,i.each(e.commands,function(e,t){var n=t.option("renderStage")||m,i=o[n]=o[n]||[];i.push(t)})},_applyViewCommands:function(e,t){t=t||m;var n,o=e.commandsToRenderMap[t],a=e.renderResult.$markup;return o?(n=this._renderCommands(a,o), delete e.commandsToRenderMap[t]):n=i.Deferred().resolve().promise(),n},_findCommandContainers:function(e){return d.createComponents(e,["dxCommandContainer"])},_getViewTemplateId:function(e){var t=e.$viewTemplate?e.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(e.viewName);return t.getId()},_updateCurrentViewTemplateId:function(e){e.currentViewTemplateId=this._getViewTemplateId(e)},_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),o=e.renderResult.$markup,a=i(),s=[];i.each(o.find(".dx-content-placeholder"),function(e,n){t._prepareTransition(i(n),i(n).attr("data-dx-content-placeholder-name"))}),i.each(t._getTransitionElements(n),function(e,n){var r=i(n),l=o.find(x(r.attr("data-dx-transition-name"))).children(),c={$element:l,animation:r.attr("data-dx-transition-type")};s.push(c),r.append(l),t._showViewElements(l),d.triggerShownEvent(l),a=a.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),o.remove(),e.renderResult.$markup=a,e.renderResult.animationItems=s},_onRenderComplete:function(e){},_onViewShown:function(e){i(document).trigger("dx.viewchanged")},_enter:function(e,t){var n=this.transitionExecutor;i.each(e,function(e,i){n.enter(i.$element,i.animation,t)})},_leave:function(e,t){var n=this.transitionExecutor;i.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 o=this,a=this._getPreviousViewInfo(e),s={direction:t};a===e&&(a=void 0),a||(s.duration=0,s.delay=0);var r=i.Deferred();return o._doTransition(a,e,s).done(function(){o._changeView(e,n).done(function(e){r.resolve(e)})}),r.promise()},_releaseView:function(e){this.fireEvent("viewReleased",[e])},_getReadyForRenderDeferredItems:function(e){return i.Deferred().resolve().promise()},_changeView:function(e,t){var n=this;if(t)n._hideView(e,t);else{var o=n._getPreviousViewInfo(e);o&&o!==e&&(n._hideView(o),n._releaseView(o)),this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]=e}this._subscribeToDeferredItems(e);var a=i.Deferred();return this._getReadyForRenderDeferredItems(e).done(function(){n._applyViewCommands(e).done(function(){n._renderDeferredItems(e.renderResult.$markup).done(function(){a.resolve()})})}),a.promise()},_subscribeToDeferredItems:function(e){var t=this,n=e.renderResult.$markup;n.find(_).add(n.filter(_)).each(function(){var n={viewInfo:e,context:t};i(this).on(g,n,t._onDeferredContentRendered)})},_onDeferredContentRendered:function(e){var t=i(e.target),n=e.data.viewInfo,o=e.data.context;t.off(g,o._onDeferredContentRendered),o._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=i.Deferred(),o=e.find(v).add(e.filter(v)).first();if(o.length){var s=o.data("dx-render-delegate");a.executeAsync(function(){s().done(function(){t._renderDeferredItems(e).done(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<e.length;t++)e.eq(t).css("transform");e.removeClass("dx-skip-animation")},_patchIds:function(e){this._processIds(e,function(e){var t=e;return e.indexOf(h)===-1&&(t=h+"-"+e),t})},_unPatchIds:function(e){this._processIds(e,function(e){var t=e;return 0===e.indexOf(h)&&(t=e.substr(h.length+1)),t})},_processIds:function(e,t){var n=e.find("[id]");i.each(n,function(e,n){var o=i(n),a=o.attr("id");o.attr("id",t(a))})},_enableInputs:function(e){var t=this._getInputs(e).filter("[data-disabled='true']");i.each(t,function(e,t){i(t).removeAttr("disabled").removeAttr("data-disabled")})},_disableInputs:function(e){var t=this._getInputs(e);t=t.filter(":not([disabled])").add(t.filter("[disabled=true]")),i.each(t,function(e,t){i(t).attr({disabled:!0,"data-disabled":!0})})},_getInputs:function(e){return e.find("input, button, select, textarea")}}).include(l);r.default=r.default||[],r.default.push({controller:new y}),t.DefaultLayoutController=y,t.layoutSets=r},function(e,t,n){function i(){var e,t=y("
",m).addClass("dx-theme-marker").appendTo(m.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 o(e,t){function n(){w=null,t()}var i,o;w=e,a()?n():(o=y.now(),i=setInterval(function(){var e=a(),t=!e&&y.now()-o>15e3;t&&b.log("W0004",w),(e||t)&&(clearInterval(i),n())},10))}function a(){return!w||i()===w}function s(){var e=y(A,m);e.length&&(_={},g=y(C.createMarkupFromString("<link rel=stylesheet>"),m),e.each(function(){var e=y(this,m),t=e.attr(B),n=e.attr("href"),i="true"===e.attr(M);_[t]={url:n,isActive:i}}),e.last().after(g),e.remove())}function r(e){var t=e.split("."),n=null;if(_){if(e in _)return e;y.each(_,function(e,i){var o=e.split(".");if(o[0]===t[0]&&!(t[1]&&t[1]!==o[1]||t[2]&&t[2]!==o[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==m&&(_=null)}catch(e){_=null}m=e}function c(e){e=e||{},l(e.context||document),s(),v=void 0,d(e)}function d(e){if(!arguments.length)return v=v||i();f(D()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(v=e.theme||v,n&&!v&&(v=u(I.current())),v=r(v),v&&(t=_[v]),t)g.attr("href",_[v].url),a?o(v,a):w&&(w=v);else{if(!n)throw b.Error("E0021",v);a&&a()}p(S.originalViewPort(),v)}function u(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 h(e){e=e||d();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1])),t}function p(e,t){x=h(t).join(" "),y(e).addClass(x);var n=function(){var t=window.devicePixelRatio;if(t&&!(t<2)){var n=y("
");n.css("border",".5px solid transparent"),y("body").append(n),1===n.outerHeight()&&(y(e).addClass(R),x+=" "+R),n.remove()}};n()}function f(e){y(e).removeClass(x)}var m,g,_,v,w,x,y=n(9),b=n(22),C=n(62),k=n(56),I=n(53),S=n(55),D=S.value,T=S.changeCallback,E=y.holdReady||y.fn.holdReady,A="link[rel=dx-theme]",B="data-theme",M="data-active",R="dx-hairlines",O="dx.";E(!0),c({_autoInit:!0,loadCallback:function(){E(!1)}}),k(function(){if(y(A,m).length)throw b.Error("E0022")}),T.add(function(e,t){f(t),p(e)}),I.changed.add(function(){c({_autoInit:!0})}),t.current=d,t.init=c,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=u,t.waitForThemeLoad=o,t.resetTheme=function(){g&&g.attr("href","about:blank"),v=null,w=null}},function(e,t,n){var i=n(146);i&&(n(147),n(174),n(175),n(176))},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(9),o=n(15),a=n(57),s=n(25),r=n(14),l=n(26).inArray,c=n(113),d=n(96),u=n(107),h=n(148),p=n(149),f=n(150),m=n(50).compileSetter,g=n(50).compileGetter,_=n(11).extendFromObject,v=n(14).isNumeric,w=n(39),x=n(7),y="dxItemAlias",b=["rendering"],C=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},k=s.inherit({ctor:function(e){this._componentDisposing=i.Callbacks(),this._optionChangedCallbacks=i.Callbacks(),this._ngLocker=new c,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=t._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});t._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;t._ngOptions=_({},e),e&&(!e.hasOwnProperty("bindingOptions")&&e.bindingOptions&&(t._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&i.each(e.bindingOptions,function(e,n){"string"===r.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};e._digestCallbacks.begin.add(t),e._digestCallbacks.end.add(n),e._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};e._ngOptions.bindingOptions&&(i.each(e._ngOptions.bindingOptions,function(n,i){var o,a,s=n.search(/\[|\./),r=s>-1?n.substring(0,s):n,l=i.dataPath,c=!0,d=!1;void 0!==i.deep&&(d=c=!!i.deep),t[r]||(t[r]={}),t[r][n]=l;var u=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),e._component._optionValuesEqual(n,i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!d?"$watchCollection":"$watch";o!==t&&(a&&a(),a=e._scope[t](l,u,c),o=t)};h(),e._componentDisposing.add(a)}),e._optionChangedCallbacks.add(function(n){var o=n.name,a=n.fullName,s=n.component;if(e._ngLocker.locked(a))return void e._ngLocker.release(a);if(t&&t[o]){e._ngLocker.obtain(a),C(function(){i.each(t[o],function(t,i){if(e._optionsAreLinked(a,t)){var o=s.option(t);e._parse(i).assign(e._scope,o);var r=e._parse(i)(e._scope);r!==o&&n.component.option(t,r)}})},e._scope);var r=function(){e._ngLocker.locked(a)&&e._ngLocker.release(a),e._digestCallbacks.end.remove(r)};r(),e._digestCallbacks.end.add(r)}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(o){var a=i(e).clone(),s=o.model&&o.model.constructor===t._scope.$root.constructor,r=s?o.model:o.noModel?t._scope:t._createScopeWithData(o);return n&&t._synchronizeScopes(r,n,o.index),a.appendTo(o.container),o.noModel||a.on("$destroy",function(){var e=!r.$parent;e||r.$destroy()}),t._applyAsync(t._compile(a,t._transcludeFn),r),a}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(n._renderingTimer||(n._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),n._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(f)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),r.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!=typeof e[this._itemAlias]&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t,n=e.parentScope,i=e.childScope,o=e.fieldPath,a=e.parentPrefix,s=e.itemIndex,r=o===this._itemAlias?"":"."+o,l=void 0!==s,c=[a];if(l){if(!v(s))return;c.push("[",s,"]")}c.push(r),t=c.join("");var d=n.$watch(t,function(e,t){e!==t&&m(o)(i,e)}),u=i.$watch(o,function(e,i){if(e!==i){if(l&&!g(a)(n)[s])return void u();m(t)(n,e)}});this._componentDisposing.add([d,u])},_evalOptions:function(e){var t=_({},this._ngOptions);return delete t.bindingOptions,this._ngOptions.bindingOptions&&i.each(this._ngOptions.bindingOptions,function(n,i){t[n]=e.$eval(i.dataPath)}),t._optionChangedCallbacks=this._optionChangedCallbacks,t._disposingCallbacks=this._componentDisposing,t.onActionCreated=function(t,n,i){if(i&&l(i.category,b)>-1)return n;var o=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?C(function(){return n.apply(t,i)},e):n.apply(t,i)};return o},t.beforeActionExecute=t.onActionCreated,t.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},t.templatesRenderAsynchronously=!0,o().wrapActionsBeforeExecute&&(t.forceApplyBindings=function(){C(function(){},e)}),t.integrationOptions={createTemplate:function(e){return new h(e,this._compilerByTemplate.bind(this))}.bind(this),watchMethod:function(t,n,i){i=i||{};var a,s=i.skipImmediate,r=e.$watch(function(){var e=t();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!s&&(!t||t&&i.deep)&&n(e),s=!1},i.deep);return s||(a=t(),n(a)),o().wrapActionsBeforeExecute&&C(function(){},e),r},templates:{"dx-polymorph-widget":{render:function(e){var t=e.model.widget;if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=w.camelize("dx-"+t),x.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var o=i("
').get(0),a=this._scope.$new();a.options=e.model.options,e.container.append(o),this._compile(o)(a)}}.bind(this)}}},t.modelByElement=function(){return e},t}});k=k.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return this._componentClass.subclassOf(u)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){if(this._isNgModelRequired()){var e=this,t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked(e._ngModelOption())||t!==n&&e._component.option(e._ngModelOption(),t)});e._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(e._ngModelOption());try{if(t.name!==e._ngModelOption())return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(e._ngModelOption())&&e._ngLocker.release(e._ngModelOption())}}),this._componentDisposing.add(t)}},_ngModelOption:function(){return l(this._componentName,["dxFileUploader","dxTagBox"])>-1?"values":"value"},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[this._ngModelOption()]=this._parse(this._ngModel)(this._scope),e}});var I={},S=function(e){var t="dxValidator"!==e?1:10;p.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=I[e],s=a.subclassOf(d)?t.contents().detach():null;return function(t,r,l,c,d){r.append(s),C(function(){new k({componentClass:a,componentName:e,compile:n,parse:i,$element:r,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:c,transcludeFn:d,itemAlias:l[y],dxDigestCallbacks:o})},t)}}}}])};a.callbacks.add(function(e,t){I[e]||S(e),I[e]=t})},function(e,t,n){var i=n(9),o=n(98),a=n(14).isFunction,s=n(62),r=o.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(s.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate,n=a(t)?t(e):t;return n},source:function(){return i(this._element).clone()}});e.exports=r},function(e,t,n){var i=n(146);e.exports=i.module("dx",[])},function(e,t,n){var i=n(9),o=n(151),a=n(22),s=n(11).extend,r=n(14),l=n(168),c=n(50).compileGetter,d=n(154).DataSource,u=n(170),h=n(16).when,p="dxItemDeleting",f=-1,m=function(e){return e!==f},g=o.inherit({_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return s(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:f,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=c(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new u({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t.addedItems,t.removedItems))},filter:function(){return e._dataSource&&e._dataSource.filter()},totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:function(){return e.option("keyExpr")?e.option("keyExpr"):e._dataSource&&e._dataSource.key()},keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var o=e._dataSource&&e._dataSource.store();return o?o.load(t):i.Deferred().resolve([])},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=l;this._editStrategy=new e(this)},_forgetNextPageLoading:function(){this.callBase()},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),i.each(e,function(e,i){var o=t._getIndexByKey(i);m(o)&&n.push(o)}),n},_render:function(){this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||(this._syncSelectionOptions(),this._normalizeSelectedItems()),this.callBase();var e=this._getSelectedItemIndices();this._renderSelection(e,[]),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n,i;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),r.isDefined(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(n=this.option("selectedItems")||[],i=this._editStrategy.getIndexByItemData(n[0]),this.option("selectionRequired")&&!m(i))return void this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",n[0]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(n));break;case"selectedItem":if(t=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!m(i))return void this._syncSelectionOptions("selectedIndex");r.isDefined(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",f));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")&&!m(this._getIndexByKey(o[0])))return void this._syncSelectionOptions("selectedIndex");this._selection.setSelection(o)}},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e).length;return t||!t&&e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":r.isDefined(this.option("selectedItem"))?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionSilent("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}else this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}},_renderSelection:r.noop,_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.jQueryEvent)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:i(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){if("none"!==this.option("selectionMode")){var t=i(e.itemElement);this._isItemSelected(this._editStrategy.getNormalizedIndex(t))?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}},_updateSelectedItems:function(e,t){var n=this;if(n._rendered&&(e.length||t.length)){var i=n._selectionChangePromise;if(!n._rendering){var o,a,s=[],r=[];for(a=0;a<e.length;a++)o=n._getIndexByItemData(e[a]),s.push(o),n._addSelection(o);for(a=0;a<t.length;a++)o=n._getIndexByItemData(t[a]),r.push(o),n._removeSelection(o);n._updateSelection(s,r)}h(i).done(function(){n._fireSelectionChangeEvent(e,t)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems: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);m(e)&&(t.removeClass(this._selectedItemClass()),this._setAriaSelected(t,"false"),t.triggerHandler("stateChanged",!1))},_showDeprecatedSelectionMode:function(){a.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);m(e)&&(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true"),t.triggerHandler("stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t)},_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"selectionMode":"multi"===e.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name),this._normalizeSelectedItems();break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},_waitDeletingPrepare:function(e){if(e.data(p))return i.Deferred().resolve().promise();e.data(p,!0);var t=i.Deferred(),n={cancel:!1},o=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return h(o).always(function(i){var a=!o,s=!a&&"resolved"===o.state(),r=!!arguments.length,l=a||s&&!r||s&&i;h(n.cancel).always(function(){e.data(p,!1)}).done(function(e){l&&!e?t.resolve():t.reject()}).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return i.Deferred().resolve().promise();var t=i.Deferred(),n=this.option("disabled"),o=this._dataSource.store();if(this.option("disabled",!0),!o.remove)throw a.Error("E1011");return o.remove(o.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=i.Deferred();return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_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){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(m(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n))if("single"===this.option("selectionMode"))this._selection.setSelection([n]);else{var i=this.option("selectedItemKeys");i.push(n),this._selection.setSelection(i)}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(m(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.deselect([i])}}},deleteItem:function(e){var t=this,n=i.Deferred(),o=this._editStrategy.getItemElement(e),a=this._editStrategy.getNormalizedIndex(e),s=this._dataSource?"dataSource":"items",r=this._itemResponseWaitClass();return m(a)?this._waitDeletingPrepare(o).done(function(){o.addClass(r);var e=t._extendActionArgs(o);t._deleteItemFromDS(o).done(function(){t._updateSelectionAfterDelete(a),t._editStrategy.deleteItemAtIndex(a),t._simulateOptionChange(s),t._itemEventHandler(o,"onItemDeleted",e,{beforeExecute:function(){o.detach()},excludeValidators:["disabled","readOnly"]}),t._renderEmptyMessage(),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){o.removeClass(r),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=i.Deferred(),o=this,a=this._editStrategy,s=a.getItemElement(e),r=a.getItemElement(t),l=a.getNormalizedIndex(e),c=a.getNormalizedIndex(t),d=this._dataSource?"dataSource":"items",u=m(l)&&m(c)&&l!==c;return u?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){r[a.itemPlacementFunc(l,c)](s),a.moveItemAtIndexToIndex(l,c),o.option("selectedItems",o._getItemsByKeys(o._selection.getSelectedItemKeys(),o._selection.getSelectedItems())),"items"===d&&o._simulateOptionChange(d),o._itemEventHandler(s,"onItemReordered",{fromIndex:a.getIndex(l),toIndex:a.getIndex(c)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=g},function(e,t,n){var i=n(9),o=n(14),a=n(12).isPlainObject,s=n(16).when,r=n(11).extend,l=n(26).inArray,c=n(49),d=n(152),u=n(62),h=n(50),p=n(96),f=n(72),m=n(77),g=n(153),_=n(164),v=n(103),w=n(90),x=n(165),y=n(76),b=n(166),C=n(167),k="dx-collection",I="dx-item",S="-content",D="dx-item-content-placeholder",T="dxItemData",E="dxItemIndex",A="tmpl-",B="[data-options*='dxItem']",M="dx-item-selected",R="dx-item-response-wait",O="dx-empty-collection",P="dx-template-wrapper",V=/^([^.]+\[\d+\]\.)+([\w\.]+)$/,F="up",H="down",L="left",z="right",N="pageup",W="pagedown",$="last",q="first",G=p.inherit({_activeStateUnit:"."+I,_supportedKeys:function(){var e=function(e){var t=this.option("focusedElement");t&&(e.target=t,e.currentTarget=t,this._itemClickHandler(e))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return r(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,L),rightArrow:n.bind(this,z),upArrow:n.bind(this,F),downArrow:n.bind(this,H),pageUp:n.bind(this,F),pageDown:n.bind(this,H),home:n.bind(this,q),end:n.bind(this,$)})},_getDefaultOptions:function(){return r(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:w.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._defaultTemplates.item=new C(function(e,t){a(t)?(t.text&&e.text(t.text),t.html&&e.html(t.html)):e.text(String(t))},["text","html"],this.option("integrationOptions.watchMethod"))},_initItemsFromMarkup:function(){var e=this.element().contents().filter(B);if(e.length&&!this.option("items").length){var t=i.map(e,function(e){var t=i(e),n=u.getElementOptions(e).dxItem,o=i.trim(t.html())&&!n.template;return o?n.template=this._prepareItemTemplate(t):t.remove(),n}.bind(this));this.option("items",t)}},_prepareItemTemplate:function(e){var t=A+new d,n='dxTemplate: { name: "'+t+'" }'; return e.detach().clone().attr("data-options",n).data("options",n).appendTo(this.element()),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),l(e.target,this._focusTarget())!==-1){var t=this.option("focusedElement");if(t&&t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",n)}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=this.option("focusedElement");e&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=this.option("focusedElement");if(t&&t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement(),o=i.length-1;return n<0&&(n=e?o:0),i.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case N:case F:t=this._prevItem(n);break;case W:case H:t=this._nextItem(n);break;case z:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case L:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case q:t=n.first();break;case $:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",t)},_getAvailableItems:function(e){return e=e||this._itemElements(),e.filter(":visible").not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),o=e.last(),a=i(e[n-1]),s=this.option("loopItemFocus");return 0===a.length&&s&&(a=o),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),o=e.first(),a=i(e[n+1]),s=this.option("loopItemFocus");return 0===a.length&&s&&(a=o),a},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){e&&e.length&&(this._toggleFocusClass(!1,e),e.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=i(),n=this;return this.itemElements().each(function(){var o=i(this);if(o.data(n._itemDataKey())===e)return t=o,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);if(o.length&&!this.constructor.ItemClass.getInstance(o).setDataField(t,n)){var a=this._getItemData(o),s=o.data(this._itemIndexKey());this._renderItem(s,a,null,o)}},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(V);if(t&&t.length){var n=t[t.length-1],i=e.fullName.replace("."+n,""),o=this.option(i);return void this._itemOptionChanged(o,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this.option("items",[]),this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._removeFocusedItem(e.previousValue),this._setFocusedItem(e.value);break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._renderContent(),this._renderFocusTarget()):this.option("items",e)},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){this._itemContainer().empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.element()},_itemClass:function(){return I},_itemContentClass:function(){return this._itemClass()+S},_selectedItemClass:function(){return M},_itemResponseWaitClass:function(){return R},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return T},_itemIndexKey:function(){return E},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_render:function(){this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.callBase(),this.element().addClass(k),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=f.addNamespace(y.name,this.NAME),n=f.addNamespace(m.down,this.NAME),o=this,a=new c(function(e){var t=e.event;o._itemPointerDownHandler(t)});this._itemContainer().off(t,e).off(n,e).on(t,e,function(e){this._itemClickHandler(e)}.bind(this)).on(n,e,function(e){a.execute({element:i(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemJQueryEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=i(e.target),n=t.closest(this._itemElements()),o=this._closestFocusable(t);n.length&&l(o.get(0),this._focusTarget())!==-1&&this.option("focusedElement",n)}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(v.focusable))return e;for(e=e.parent();e.length;){if(e.is(v.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=f.addNamespace(x.name,this.NAME);e.off(n,t),e.on(n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemJQueryEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=f.addNamespace(b.name,this.NAME);e.off(n,t),e.on(n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemJQueryEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&i.each(e,this._renderItem.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(e,t,n,i);this._setElementData(o,t,e),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,o);var a=o.find("."+D);a.removeClass(D);var r=this._renderItemContent({index:e,itemData:t,container:a,contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return s(r).done(function(n){l._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,o)}),o},_attachItemClickEvent:function(e,t){e&&e.onClick&&t.on(y.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{jQueryEvent:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var i=this._createItemByTemplate(n,e);return i.hasClass(P)?this._renderItemContentByNode(e,i):e.container},_renderItemContentByNode:function(e,t){return e.container.replaceWith(t),e.container=t,this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[I+S,e.contentClass];e.container.addClass(t.join(" "))},_renderItemFrame:function(e,t,n,o){var a=i("
");return new this.constructor.ItemClass(a,this._itemOptions(),t||{}),o&&o.length?o.replaceWith(a):a.appendTo(n),a},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},fieldGetter:function(t){var n=e.option(t+"Expr"),i=h.compileGetter(n);return i}}},_postprocessRenderItem:o.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([I,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty"),i=t&&t[n];return i||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(){var e=this.option("noDataText"),t=this.option("items"),n=!e||t&&t.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||i("
").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(e),this.setAria("label",e)),this.element().toggleClass(O,!n)},_itemJQueryEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,r(n,{jQueryEvent:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,r({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,r({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var o=this._closestItemElement(i(e)),a=r({},n);return t(r(n,this._extendActionArgs(o),a))},_extendActionArgs:function(e){return{itemElement:e,itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return i(e).closest(this._itemSelector())},_getItemData:function(e){return i(e).data(this._itemDataKey())},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new d),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(g);G.ItemClass=_,e.exports=G},function(e,t,n){var i=n(25),o=i.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});e.exports=o},function(e,t,n){var i=n(154).DataSource,o=n(11).extend,a=n(154).normalizeDataSourceOptions,s="_dataSourceOptions",r="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",c="_dataSourceLoadingChangedHandler",d="_dataSourceFromUrlLoadMode",u="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=u in this?this[u]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=s in this?this[s]():{},t=this._dataSourceType?this._dataSourceType():i,n=a(n,{fromUrlLoadMode:d in this&&this[d]()}),this._dataSource=new t(o(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){r in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),c in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(){this[r](e.items())}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[c].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};e.exports=h},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){function n(){var t={};return c.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new _(t)}function i(e){var t=e.type;return delete e.type,m.create(t,e)}function o(e){return new _({load:function(){return c.getJSON(e)},loadMode:t&&t.fromUrlLoadMode})}var a;return"string"==typeof e&&(e={paginate:!1,store:o(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof m?{store:e}:u({},e),void 0===e.store&&(e.store=[]),a=e.store,"load"in e?a=n():Array.isArray(a)?a=new g(a):p.isPlainObject(a)&&(a=i(u({},a))),e.store=a,e}function s(e){switch(e.length){case 0:return;case 1:return e[0]}return c.makeArray(e)}function r(e){return function(){var t=s(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?o(e,n):c.map(e,t):e}function o(e,t){return c.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}return i(e,n?f.normalizeSortingInfo(n).length:0)}var c=n(9),d=n(25),u=n(11).extend,h=n(14),p=n(12),f=n(138),m=n(155),g=n(159),_=n(163),v=n(51),w=n(156).errors,x=n(26),y=n(63),b=n(16).when,C=h.isString,k=h.isNumeric,I=h.isBoolean,S=h.isDefined,D="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(D),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var T=d.inherit({ctor:function(e){var t=this;e=a(e),this._store=e.store,this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,c.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(n,i){i in e&&t.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,S(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._disposeEvents(),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),c.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return k(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return I(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return k(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:r("sort"),filter:function(){var e=s(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:r("group"),select:r("select"),requireTotalCount:function(e){return I(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return C(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=c.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},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return y.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==D&&t.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t.fireEvent("changed")})},loadSingle:function(e,t){function n(){return s instanceof _&&!s._byKeyViaLoad()}var i=this,o=c.Deferred(),a=this.key(),s=this._store,r=this._createStoreLoadOptions(),l=function(e){!S(e)||x.isEmpty(e)?o.reject(new w.Error("E4009")):o.resolve(i._applyMapFunction(c.makeArray(e))[0])};return this._scheduleFailCallbacks(o),arguments.length<2&&(t=e,e=a),delete r.skip,delete r.group,delete r.refresh,delete r.pageIndex,delete r.searchString,function(){return e===a||n()?s.byKey(t,r):(r.take=1,r.filter=r.filter?[r.filter,[e,t]]:[e,t],s.load(r))}().fail(o.reject).done(l),o.promise()},load:function(){function e(){if(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=c.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=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof _&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.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=u({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),c.each(i,function(e,i){o.length&&o.push("or"),o.push([i,n,t])}),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){function n(n,a){function s(){var o;n&&!Array.isArray(n)&&n.data&&(a=n,n=n.data),Array.isArray(n)||(n=c.makeArray(n)),o=u({data:n,extra:a},e),i.fireEvent("customizeLoadResult",[o]),b(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}i._disposed||o(t)&&s()}var i=this;return e.data?c.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(s.totalCount)?s.totalCount:-1,t.resolve(a,s)}function i(){o.store().totalCount(r).done(function(e){s.totalCount=e,n()}).fail(t.reject)}var o=this,a=e.data,s=e.extra,r=e.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),p.isPlainObject(s)||(s={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.length<o._pageSize)&&(o._isLastPage=!0),r.requireTotalCount&&!isFinite(s.totalCount)?i():n())},_applyMapFunction:function(e){return this._mapFunc?l(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e}}).include(v);t.DataSource=T,t.normalizeDataSourceOptions=a},function(e,t,n){var i=n(9),o=n(25),a=o.abstract,s=n(51),r=n(156),l=n(138),c=n(50).compileGetter,d=n(157),u=d.queryByOptions,h={},p=o.inherit({ctor:function(e){var t=this;e=e||{},i.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=c(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw r.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return u(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=i.Deferred();return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:a,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return u(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:a,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:a,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:a,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:a,_addFailHandlers:function(e){return e.fail(this._errorHandler,r._errorHandler)}}).include(s);p.create=function(e,t){if(!(e in h))throw r.errors.Error("E4020",e);return new h[e](t)},p.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(h[n]=i),i}}(p.inherit),e.exports=p},function(e,t,n){var i=n(8),o=n(7),a={},s=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),r=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:s,errorHandler:r,_errorHandler:l},e.exports=a},function(e,t,n){function i(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return l({},e,{items:i(c(e.items),t.slice(1)).toArray()})})),e}function o(e,t){var n=[];return s.each(e,function(e,i){var o=r(t,function(e){return i.selector===e.selector});o.length<1&&n.push(i)}),n.concat(t)}function a(e,t,n){t=t||{};var a=t.filter,r=t.sort,l=t.select,c=t.group,u=t.skip,h=t.take;return a&&(e=e.filter(a)),c&&(c=d(c)),n||((r||c)&&(r=d(r||[]),c&&(r=o(c,r)),s.each(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),l&&(e=e.select(l))),c&&(e=i(e,c)),n||(h||u)&&(e=e.slice(u||0,h)),e}var s=n(9),r=n(14).grep,l=n(11).extend,c=n(158),d=n(138).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=n(50).compileGetter,r=n(50).toComparable,l=n(156),c=n(138),d=o.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),u=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),h=d.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),p=h.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),f=function(e,t){return e=r(e),t=r(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?1:0},m=d.inherit({ctor:function(e,t,n,i){e instanceof p||(e=new p(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new m(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(i.each(e.rules,function(){this.getter=s(this.getter)}),e.sortedIter=new p(new u(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var o=0,a=this.rules.length;o<a;o++){var s=this.rules[o],r=s.getter(e),l=s.getter(t),c=s.compare||f,d=c(r,l);if(d)return s.desc?-d:d}return n-i}}),g=function(){function e(e,n,i){return function(o){o=r(e(o));var a=t(n)?o===n:o==n;return i&&(a=!a),a}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=g(e[1]);if("!"===t)return function(e){return!n(e)};throw l.errors.Error("E4003",t)}var o=function(e){var t,n,o=0,s=[],r=[];return i.each(e,function(){if(Array.isArray(this)||a.isFunction(this)){if(s.length>1&&t!==n)throw new l.errors.Error("E4019");r.push(g(this)),s.push("op["+o+"](d)"),o++,t=n,n="&&"}else n=c.isConjunctiveOperator(this)?"&&":"||"}),new Function("op","return function(d) { return "+s.join(" "+t+" ")+" }")(r)},d=function(e){return a.isDefined(e)?e.toString():""},u=function(t){t=c.normalizeBinaryCriterion(t);var n=s(t[0]),i=t[1],o=t[2];switch(o=r(o),i.toLowerCase()){case"=":return e(n,o);case"<>":return e(n,o,!0);case">":return function(e){return r(n(e))>o};case"<":return function(e){return r(n(e))<o};case">=":return function(e){return r(n(e))>=o};case"<=":return function(e){return r(n(e))<=o};case"startswith":return function(e){return 0===r(d(n(e))).indexOf(o)};case"endswith": return function(e){var t=r(d(n(e))),i=d(o);return!(t.length<i.length)&&t.lastIndexOf(o)===t.length-o.length};case"contains":return function(e){return r(d(n(e))).indexOf(o)>-1};case"notcontains":return function(e){return r(d(n(e))).indexOf(o)===-1}}throw l.errors.Error("E4003",i)};return function(e){return a.isFunction(e)?e:Array.isArray(e[0])?o(e):c.isUnaryOperation(e)?n(e):u(e)}}(),_=h.inherit({ctor:function(e,t){this.callBase(e),this.criteria=g(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),v=d.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,o=s(this.getter);for(n.reset();n.next();){var a=n.current(),r=o(a);r in e?e[r].push(a):(e[r]=[a],t.push(r))}this.groupedIter=new u(i.map(t,function(t){return{key:t,items:e[t]}}))}}}),w=h.inherit({ctor:function(e,t){this.callBase(e),this.getter=s(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),x=h.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),y=function(e,t){t=t||{},e instanceof d||(e=new u(e));var n=function(e){var n=t.errorHandler;n&&n(e),l._errorHandler(e)},o=function(t){var o,a=i.Deferred().fail(n),s=t.step,r=t.finalize;try{e.reset(),o="seed"in t?t.seed:e.next()?e.current():NaN;for(var l=o;e.next();)l=s(l,e.current());a.resolve(r?r(l):l)}catch(e){a.reject(e)}return a.promise()},r=function(e,t,n){return o(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},h=function(e){return o(c.aggregators[e])},p=function(t){return a.isFunction(t)||Array.isArray(t)||(t=i.makeArray(arguments)),g(new w(e,t))},f=function(e){return p(s(e))},g=function(e){return y(e,t)};return{toArray:function(){return e.toArray()},enumerate:function(){var t=i.Deferred().fail(n);try{t.resolve(e.toArray())}catch(e){t.reject(e)}return t.promise()},sortBy:function(t,n,i){return g(new m(e,t,n,i))},thenBy:function(t,n,i){if(e instanceof m)return g(e.thenBy(t,n,i));throw l.errors.Error("E4004")},filter:function(t){return Array.isArray(t)||(t=i.makeArray(arguments)),g(new _(e,t))},slice:function(t,n){return void 0===n&&(n=Number.MAX_VALUE),g(new x(e,t,n))},select:p,groupBy:function(t){return g(new v(e,t))},aggregate:r,count:function(){if(e.countable()){var t=i.Deferred().fail(n);try{t.resolve(e.count())}catch(e){t.reject(e)}return t.promise()}return h("count")},sum:function(e){return e?f(e).sum():h("sum")},min:function(e){return e?f(e).min():h("min")},max:function(e){return e?f(e).max():h("max")},avg:function(e){return e?f(e).avg():h("avg")}}};e.exports=y},function(e,t,n){var i=n(9),o=n(11).extend,a=n(12),s=n(152),r=n(27),l=n(138).keysEqual,c=n(160),d=n(156).errors,u=n(155),h=function(e,t){for(var n,o=i.makeArray(t);o.length;)if(n=o.shift(),n in e)return!0;return!1},p=function(){var e=i.Deferred();return e.resolve.apply(e,arguments).promise()},f=function(){var e=i.Deferred();return e.reject.apply(e,arguments).promise()},m=u.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw d.Error("E4006");this._array=t||[]},createQuery:function(){return c(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=this._indexByKey(e);return t===-1?f(d.Error("E4009")):p(this._array[t])},_insertImpl:function(e){var t,n,i=this.key();if(n=a.isPlainObject(e)?o({},e):e,i){if(t=this.keyOf(n),void 0===t||"object"==typeof t&&a.isEmptyObject(t)){if(Array.isArray(i))throw d.Error("E4007");t=n[i]=String(new s)}else if(void 0!==this._array[this._indexByKey(t)])return f(d.Error("E4008"))}else t=n;return this._array.push(n),p(e,t)},_updateImpl:function(e,t){var n,i,o=this.key(),a=!0;if(o){if(h(t,o)&&!l(o,e,this.keyOf(t)))return f(d.Error("E4017"));if(n=this._indexByKey(e),n<0)return f(d.Error("E4009"));i=this._array[n]}else i=e;return r.deepExtendArraySafe(i,t,a),p(e,t)},_removeImpl:function(e){var t=this._indexByKey(e);return t>-1&&this._array.splice(t,1),p(e)},_indexByKey:function(e){for(var t=0,n=this._array.length;t<n;t++)if(l(this.key(),this.keyOf(this._array[t]),e))return t;return-1},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=m},function(e,t,n){var i=n(158),o=n(161),a={array:i,remote:o},s=function(){var e=Array.isArray(arguments[0])?"array":"remote";return a[e].apply(this,arguments)};e.exports=s,e.exports.queryImpl=a},function(e,t,n){var i=n(9),o=n(162),a=n(156),s=n(14).isFunction,r=n(158),l=function(e,t,n){n=n||[],t=t||{};var c=function(e,t){return{name:e,args:t}},d=function(l){function d(e){switch(e.name){case"sortBy":return g=[e.args],!0;case"thenBy":if(!g)throw a.errors.Error("E4004");return g.push(e.args),!0}return!1}function u(){var e=f[0],t=[];e&&"multiSort"===e.name&&(f.shift(),i.each(e.args[0],function(){t.push(c(t.length?"thenBy":"sortBy",this))})),f=t.concat(f)}var h,p,f,m,g,_=i.Deferred(),v=function(e){var n=t.errorHandler;n&&n(e),a._errorHandler(e),_.reject(e)};try{for(h=t.adapter,s(h)||(h=o[h]),p=h(t),f=[].concat(n).concat(l);f.length;){if(m=f[0],!d(m)){if(g){f.unshift(c("multiSort",[g])),g=null;continue}if("enumerate"!==String(m.name)&&(!p[m.name]||p[m.name].apply(p,m.args)===!1))break}f.shift()}u(),p.exec(e).done(function(e,n){if(f.length){var o=r(e,{errorHandler:t.errorHandler});i.each(f,function(){o=o[this.name].apply(o,this.args)}),o.done(_.resolve).fail(_.reject)}else _.resolve(e,n)}).fail(v)}catch(e){v(e)}return _.promise()},u={};return i.each(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);u[i]=function(){return l(e,t,n.concat(c(i,arguments)))}}),i.each(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);u[e]=function(){return d.call(this,c(e,arguments))}}),u};e.exports=l},function(e,t){e.exports={}},function(e,t,n){function i(e){return e&&_(e.then)}function o(e){return f.Deferred().resolve(e).promise()}function a(e,t){if(!_(t))throw v.Error("E4011",e)}function s(e){throw v.Error("E4012",e)}function r(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?g.errorMessageFromXhr(t,n):null}return function(n){var i;i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error"),i.message!==g.XHR_ERROR_UNLOAD&&e.reject(i)}}function l(e,t){var n,r=e._loadFunc;return a(C,r),n=r.apply(e,[t]),Array.isArray(n)?n=o(n):null===n||void 0===n?n=o([]):i(n)||s(C),m.fromPromise(n)}function c(e,t){var n,a=e._totalCountFunc;if(!_(a))throw v.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||s(b),n=o(n)),m.fromPromise(n)}function d(e,t,n){var s,r=e._byKeyFunc;return a(k,r),s=r.apply(e,[t,n]),i(s)||(s=o(s)),m.fromPromise(s)}function u(e,t,n,i){t.__rawData?i(t.__rawData):l(t,n).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(r(e))}function h(e,t,n,i){n=n||{};var o={};"userData"in n&&(o.userData=n.userData),u(e,t,o,function(o){var a,s,r,l,c=x(o,{errorHandler:t._errorHandler}),d=[];i||(a=y(c,n),a===c?r=o.slice(0):d.push(a.enumerate().done(function(e){r=e}))),(n.requireTotalCount||i)&&(s=y(c,n,!0),s===c?l=o.length:d.push(s.count().done(function(e){l=e}))),f.when.apply(f,d).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(r,{totalCount:l}):e.resolve(r)}).fail(function(t){e.reject(t)})})}function p(e,t,n){u(e,t,{},function(i){for(var o,a=t.key(),s=0,r=i.length;s<r;s++)if(o=i[s],g.keysEqual(a,t.keyOf(i[s]),n))return void e.resolve(o);e.reject(v.Error("E4009"))})}var f=n(9),m=n(16),g=n(138),_=n(14).isFunction,v=n(156).errors,w=n(155),x=n(158),y=n(157).queryByOptions,b="totalCount",C="load",k="byKey",I="insert",S="update",D="remove",T=w.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[C],this._totalCountFunc=e[b],this._byKeyFunc=e[k],this._insertFunc=e[I],this._updateFunc=e[S],this._removeFunc=e[D]},createQuery:function(){throw v.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=f.Deferred();return"raw"!==this._loadMode||this._totalCountFunc?(c(this,e).done(function(e){t.resolve(Number(e))}).fail(r(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_loadImpl:function(e){var t=f.Deferred();return"raw"===this._loadMode?h(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(r(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=f.Deferred();return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):d(this,e,t).done(function(e){n.resolve(e)}).fail(r(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this._insertFunc,s=f.Deferred();return a(I,n),t=n.apply(this,[e]),i(t)||(t=o(t)),m.fromPromise(t).done(function(t){s.resolve(e,t)}).fail(r(s)),s.promise()},_updateImpl:function(e,t){var n,s=this._updateFunc,l=f.Deferred();return a(S,s),n=s.apply(this,[e,t]),i(n)||(n=o()),m.fromPromise(n).done(function(){l.resolve(e,t)}).fail(r(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,s=f.Deferred();return a(D,n),t=n.apply(this,[e]),i(t)||(t=o()),m.fromPromise(t).done(function(){s.resolve(e)}).fail(r(s)),s.promise()}});e.exports=T},function(e,t,n){var i=n(9),o=n(25),a=n(45),s="dx-state-invisible",r="dx-state-disabled",l="dx-item-content-placeholder",c=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},d=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,a.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("
").addClass(l);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),o=c(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,i.each(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(r,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){i.each(this._watchers,function(e,t){t.dispose()})}});d.getInstance=function(e){return a.getInstanceByElement(e,this)},e.exports=d},function(e,t,n){var i=n(72),o=n(84),a=n(85),s=Math.abs,r="dxhold",l=750,c=5,d=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(r,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return s(t.x)>c||s(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:d,bubble:!0,events:[r]}),e.exports={name:r}},function(e,t,n){var i=n(9),o=n(61),a=n(53),s=n(25),r=n(74),l=n(72),c=n(165),d="dxContexMenu",u=l.addNamespace("contextmenu",d),h=l.addNamespace(c.name,d),p="dxcontextmenu",f=s.inherit({setup:function(e){var t=i(e);t.on(u,this._contextMenuHandler.bind(this)),(o.touch||a.isSimulator())&&t.on(h,this._holdHandler.bind(this))},_holdHandler:function(e){l.isMouseEvent(e)&&!a.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return l.fireEvent({type:p,originalEvent:e})},teardown:function(e){i(e).off("."+d)}});r(p,new f),t.name=p},function(e,t,n){var i=n(9),o=n(98),a=n(47),s=n(14),r=function(){var e=function(e,i,o,a,r){var l,c;return l=t(e,i,function(e){return c&&c(),s.isPrimitive(e)?void r(e):void(c=n(e,i,o,a,function(e){r(e)}))}),function(){c&&c(),l&&l()}},t=function(e,t,n){return t(function(){return e},n)},n=function(e,t,n,o,a){var s={},r=n.slice(),l=i.map(n,function(n){var i=o[n];return t(i?function(){return i(e)}:function(){return e[n]},function(e){if(s[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||a(s)})});return function(){i.each(l,function(e,t){t()})}};return e}();e.exports=o.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=e.container,n=r(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return t.on(a,n),t.contents()}})},function(e,t,n){var i=n(26).inArray,o=n(169),a=o.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):i(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){for(var t=this.getKeysByItems(this._getPlainItems()),n=0,i=t.length;n<i;n++)if(this._equalKeys(e,t[n]))return n;return-1},getItemsByKeys:function(e,t){return t||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}});e.exports=a},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=o.abstract,r=o.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:s,getItemDataByIndex:s,getKeysByItems:s,getItemsByKeys:s,itemsGetter:s,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?a.equalByValue(e,t):e===t},getIndexByKey:s,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){return this._isNormalizedItemIndex(e)?this._getItemByNormalizedIndex(e):this._isItemIndex(e)?this._getItemByNormalizedIndex(this._normalizeItemIndex(e)):this._isDOMNode(e)?i(e):this._getItemByNormalizedIndex(this.getIndexByItemData(e))},deleteItemAtIndex:s,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:s,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:s,_getNormalizedItemIndex:s,_normalizeItemIndex:s,_denormalizeItemIndex:s,_getItemByNormalizedIndex:s,_itemsFromSameParent:s});e.exports=r},function(e,t,n){var i=n(9),o=n(25),a=n(171),s=n(173),r=n(11).extend,l=n(14);e.exports=o.inherit({ctor:function(e){this.options=r(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new a(this.options):new s(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:l.noop,key:l.noop,keyOf:function(e){return e},load:function(){return i.Deferred().resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:l.noop,filter:l.noop}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e){return this.selectedItemKeys(e)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i){var o=this;return e=e||[],e=Array.isArray(e)?e:[e],o.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t){var n,i=this.options.plainItems(),o=i[e];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),s=this.options.keyOf(a);if(t=t||{},t.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var r=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),r?this._removeSelectedItem(s):this._addSelectedItem(a,s),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],s);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([s],[a]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o=!1,a=this.options.keyOf,s=t[this._focusedItemIndex],r=this.options.getItemData(s),c=a(r),d=s&&this.isItemSelected(c);l.isDefined(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var u,h;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(h=a(this.options.getItemData(t[i])),this._removeSelectedItem(h),o=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(u=this.options.getItemData(t[i]),h=a(u),this._addSelectedItem(u,h),o=!0);return this.isDataItem(s)&&!d&&(this._addSelectedItem(r,c),o=!0),o},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this.options.plainItems(),n=0;n<t.length;n++){var o=t[n];if(this.isDataItem(o)){var a=this.options.getItemData(o),s=this.options.keyOf(a),r=this.isItemSelected(s);r||e||this._addSelectedItem(a,s),r&&e&&this._removeSelectedItem(s)}}return this.onSelectionChanged(),i.Deferred().resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}})},function(e,t,n){var i=n(9),o=n(14),a=n(172),s=n(22),r=n(160);e.exports=a.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=i.Deferred(),t=this,n=this.options.key(),a=o.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,a).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,o){if(o){var a=this.options.filter();a?this._addSelectionFilter(n,a,!1):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var s=0;s<e.length;s++)n?this.removeSelectedItem(e[s]):this.addSelectedItem(e[s])}return this.onSelectionChanged(),i.Deferred().resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!r([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t,!0)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t,!0)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw s.Error("E1042")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&o.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&o.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=!0,a=e?["!",t]:t,s=i.options.selectionFilter||[];s=i._denormalizeFilter(s),s&&s.length&&(i._removeSameFilter(s,t,e,!0),i._removeSameFilter(s,t,!e,!n)&&(o=s.length&&!n),o&&(s=i._addFilterOperator(s,e?"and":"or"))),o&&s.push(a),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeSameFilter:function(e,t,n,i){t=n?["!",t]:t;var o=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),!0;var a=o===e.length-1;return!!(o>=0&&(i||a))&&(o>0?e.splice(o-1,2):e.splice(o,2),!0)},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;if(!t)return!0;if(!t.length)return!1;if(e&&e.length)return t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0}})},function(e,t,n){var i=n(9),o=n(160),a=n(14),s=n(12),r=a.getKeyHash,l=n(25);e.exports=l.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:a.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,n=this.options.addedItems,i=this.options.removedItems,o=this.options.selectedItems,s=this.options.selectedItemKeys,r=this.options.onSelectionChanged||a.noop;this._clearItemKeys(),r({selectedItems:o,selectedItemKeys:s,addedItemKeys:e,removedItemKeys:t,addedItems:n,removedItems:i})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:a.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n){var a=encodeURI(JSON.stringify(e)).length,r=this.options.maxFilterLengthInRequest&&a>this.options.maxFilterLengthInRequest,l=i.Deferred(),c={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?l.resolve([]):this.options.load(c).done(function(n){var i=s.isPlainObject(n)?n.data:n;t?i=i.filter(t):r&&(i=o(i).filter(e).toArray()),l.resolve(i)}).fail(l.reject.bind(l)),l},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=r(e[t]);if(!a.isObject(n)){this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[];var i=this.options.keyHashIndices[n];i.push(t)}}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=o(n).filter(t).toArray());var i=n.length;return i?i>=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i<e.length;i++){var o=e[i],a=this.options.getItemData(o),s=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(s)?t=!0:n=!0)}return!!t&&(!n||void 0)}})},function(e,t,n){function i(e,t,n,i,o,r){this.getLocalFilter=function(){return d},this.getExpr=function(){if(e){for(var i,o=0,s=t.length;o<s;o++){i=i||[];var r,l=t[o];o>0&&i.push(n?"and":"or"),r=a.isString(e)?u(l):h(l),i.push(r)}return i&&1===i.length&&(i=i[0]),this._filter=i,i}},this.getCombinedFilter=function(e){var t=this.getExpr(),i=t;return n&&e&&(t?(i=[],i.push(t),i.push(e)):i=e),i};var l,c=function(e){if(!l){l={};for(var t=0;t<e.length;t++)l[s(e[t])]=!0}return l},d=function(e){var l,d,u=o(e);if(!r&&(l=s(u),!a.isObject(l))){var h=c(t);return h[l]?!n:!!n}for(d=0;d<t.length;d++)if(i(t[d],u))return!n;return!!n},u=function(t,i){return[i||e,n?"<>":"=",t]},h=function(t){for(var i=[],o=0,a=e.length;o<a;o++){o>0&&i.push(n?"or":"and");var s=e[o],r=t&&t[s],l=u(r,s);i.push(l)}return i}}var o=n(9),a=n(14),s=a.getKeyHash,r=n(160),l=n(16).when,c=n(22),d=n(172);e.exports=d.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,o,a=this.options.keyOf;if(a){var s=t&&e.length>1&&!this.options.equalByReference;for(s&&(n={}),o=0;o<e.length;o++){var r=e[o],l=a(r);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,r)}s&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var a=o.Deferred(),s=this.options.key;if(!e.length&&!n)return a.resolve([]),a;var l=this.options.filter();if(n&&t&&!l)return a.resolve(this.getSelectedItems()),a;var c=new i(s(),e,n,this.equalKeys.bind(this),this.options.keyOf,this.options.equalByReference),d=c.getCombinedFilter(l),u=[];t&&(u=d?r(this.options.selectedItems).filter(d).toArray():this.options.selectedItems.slice(0));var h=u.length?u:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=c.getLocalFilter();return h=h.filter(p),u.length||!n&&h.length===e.length?a.resolve(h):a=this._loadFilteredData(d,p),a},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var o=e[i],a=n(o);t.push(a)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=0;t<e.length;t++)this.isItemKeySelected(e[t])||c.log("W1002",e[t])},_loadSelectedItems:function(e,t,n){var i=this,a=o.Deferred();return l(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(a.resolve).fail(a.reject)}),i._lastLoadDeferred=a,a},selectedItemKeys:function(e,t,n,i){var o=this,a=o._loadSelectedItems(e,n,i);return a.done(function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()}),a},addSelectedItem:function(e,t){var n=this._getKeyHash(e);this._indexOfSelectedItemKey(n)===-1&&(!a.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):a.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=s(n),o=this.options.keyHashIndices[i];if(o)for(var a=0;a<o.length;a++)o[a]>e&&o[a]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,o=this._indexOfSelectedItemKey(n,t);if(o<0)return o;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[o]),i)return o;if(this.options.selectedItemKeys.splice(o,1),this.options.selectedItems.splice(o,1),a.isObject(n)||!this.options.keyHashIndices)return o;var s=this.options.keyHashIndices[n];return s?(s.shift(),s.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(o),o):o},_needRemoveItemKey:function(e,t){var n=this.options.keyHashIndices;if(!n)return e.indexOf(t)<0;for(var i=this._getKeyHash(t),o=0;o<e.length;o++){var a=this._getKeyHash(e[o]);if(this.equalKeys(i,a))return!1}return!0},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this._indexOfSelectedItemKey(e[n])<0&&(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e){for(var t=this.options.selectedItemKeys,n=this.options.selectedItems,i=0;i<t.length;i++)this._needRemoveItemKey(e,t[i])&&(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:s(e)},setSelectedItems:function(e,t){this._updateRemovedItemKeys(e,t),this._updateAddedItemKeys(e,t),this.options.equalByReference||(this._initSelectedItemKeyHash(),

this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e),n=this._indexOfSelectedItemKey(t);return n!==-1},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(9),o=n(74),a=n(149);o.callbacks.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.directive(t,["$parse",function(n){return function(o,a,s){var r,l=i.trim(s[t]),c={};"{"===l.charAt(0)?(c=o.$eval(l),r=n(c.execute)):r=n(s[t]),a.on(e,c,function(e){o.$apply(function(){r(o,{$event:e})})})}}])})},function(e,t,n){var i=n(9),o=n(149);o.service("dxDigestCallbacks",["$rootScope",function(e){var t=i.Callbacks(),n=i.Callbacks(),o=!1;return e.$watch(function(){o||(o=!0,t.fire(),e.$$postDigest(function(){o=!1,n.fire()}))}),{begin:{add:function(e){o&&e(),t.add(e)},remove:t.remove.bind(t)},end:n}}])},function(e,t,n){var i=n(49);i.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){var i=n(178),o=n(34);if(i&&i.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"}}};i.locale()||(i.load(a),i.locale("en")),o.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},function(e,t){e.exports=window.Globalize},function(e,t,n){n(177);var i=n(178),o=n(90),a=n(34);if(n(178),i&&i.formatMessage){var s="en",r=i.loadMessages;i.loadMessages=function(e){o.load(e)};var l={ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),r(e)},getMessagesByLocales:function(){return i.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||a.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||n===s||(i=this.getFormatter(e,s)),i},_formatterByGlobalize:function(e,t){var n,o=t&&t!==a.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=o.messageFormatter(e)),n},_messageLoaded:function(e,t){var n=t?new i(t).cldr:i.locale(),o=n.get(["globalize-messages/{bundle}",e]);return void 0!==o},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.inject(l)}},function(e,t,n){n(177);var i=n(178),o=n(32),a=n(7);if(n(178),i&&i.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}"}}}}};"en"===i.locale().locale&&(i.load(s),i.locale("en"));var r={},l=function(e){var t,n;return n="object"==typeof e?i.locale().locale+":"+JSON.stringify(e):i.locale().locale+":"+e,t=r[n],t||(t=r[n]=i.numberFormatter(e)),t},c={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):l(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,maximumFractionDigits:0,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):l(t)(e))},parse:function(e,t){if(e)return t&&t.parser?t.parser(e):(t&&a.log("W0011"),i.parseNumber(e))}};o.inject(c)}},function(e,t,n){n(177),n(180),n(178);var i={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y","long":"MMMM d, y",medium:"MMM d, y","short":"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz","long":"h:mm:ss a z",medium:"h:mm:ss a","short":"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}","long":"{1} 'at' {0}",medium:"{1}, {0}","short":"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} – {1}",d:{d:"d – d"},h:{a:"h a – h a",h:"h – h a"},H:{H:"HH – HH"},hm:{a:"h:mm a – h:mm a",h:"h:mm – h:mm a",m:"h:mm – h:mm a"},Hm:{H:"HH:mm – HH:mm",m:"HH:mm – HH:mm"},hmv:{a:"h:mm a – h:mm a v",h:"h:mm – h:mm a v",m:"h:mm – h:mm a v"},Hmv:{H:"HH:mm – HH:mm v",m:"HH:mm – HH:mm v"},hv:{a:"h a – h a v",h:"h – h a v"},Hv:{H:"HH – HH v"},M:{M:"M – M"},Md:{d:"M/d – M/d",M:"M/d – M/d"},MEd:{d:"E, M/d – E, M/d",M:"E, M/d – E, M/d"},MMM:{M:"MMM – MMM"},MMMd:{d:"MMM d – d",M:"MMM d – MMM d"},MMMEd:{d:"E, MMM d – E, MMM d",M:"E, MMM d – E, MMM d"},y:{y:"y – y"},yM:{M:"M/y – M/y",y:"M/y – M/y"},yMd:{d:"M/d/y – M/d/y",M:"M/d/y – M/d/y",y:"M/d/y – M/d/y"},yMEd:{d:"E, M/d/y – E, M/d/y",M:"E, M/d/y – E, M/d/y",y:"E, M/d/y – E, M/d/y"},yMMM:{M:"MMM – MMM y",y:"MMM y – MMM y"},yMMMd:{d:"MMM d – d, y",M:"MMM d – MMM d, y",y:"MMM d, y – MMM d, y"},yMMMEd:{d:"E, MMM d – E, MMM d, y",M:"E, MMM d – E, MMM d, y",y:"E, MMM d, y – E, MMM d, y"},yMMMM:{M:"MMMM – MMMM y",y:"MMMM y – MMMM y"}}}}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},s=["skeleton","date","time","datetime","raw"],r=n(9),l=n(178),c=n(33),d=n(14).isObject,u=n(26).inArray,h=n(7);if(l&&l.formatDate){"en"===l.locale().locale&&(l.load(a,i,o),l.locale("en"));var p={},f={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},m={_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=f[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&r.each(i.parts,function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))}),o}},_getFormatStringByPath:function(e){return l.locale().main("dates/calendars/gregorian/"+e)},getMonthNames:function(e){var t=l.locale().main("dates/calendars/gregorian/months/stand-alone/"+(e||"wide"));return r.map(t,function(e){return e})},getDayNames:function(e){var t=l.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return r.map(t,function(e){return e})},getTimeSeparator:function(){return l.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},format:function(e,t){if(e){if(!t)return e;var n,i;return"function"==typeof t?t(e):t.formatter?t.formatter(e):(t=t.type||t,"string"==typeof t?(i=l.locale().locale+":"+t,n=p[i],n||(t={raw:this._getPatternByFormat(t)||t},n=p[i]=l.dateFormatter(t))):n=l.dateFormatter(t),n(e))}},parse:function(e,t){if(e)return!t||"function"==typeof t||d(t)&&!this._isAcceptableFormat(t)?(t&&h.log("W0012"),l.parseDate(e)):t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),l.parseDate(e,t))},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<s.length;t++)if(e.hasOwnProperty(s[t]))return!0},firstDayOfWeekIndex:function(){var e=l.locale().supplemental.weekData.firstDay();return u(e,this._getDayKeys())},_getDayKeys:function(){var e=l.locale().main("dates/calendars/gregorian/days/format/short");return r.map(e,function(e,t){return t})}};c.inject(m)}},function(e,t,n){n(177),n(180),n(36),n(178);var i={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},o={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}},a=n(178),s=n(15),r=n(32);if(a&&a.formatCurrency){"en"===a.locale().locale&&(a.load(i,o),a.locale("en"));var l={},c=function(e,t){var n,i;return i="object"==typeof t?a.locale().locale+":"+e+":"+JSON.stringify(t):a.locale().locale+":"+e+":"+t,n=l[i],n||(n=l[i]=a.currencyFormatter(e,t)),n},d={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||s().defaultCurrency;return c(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=s().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return c(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=s().defaultCurrency),a.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,o,s=this.getCurrencySymbol(e).symbol,r=a.cldr.main("numbers/currencyFormats-numberSystem-latn");if(r.accounting){for(o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':""","\\¤":s},n=r.accounting.split(";"),t=0;t<n.length;t++)for(i in o)o.hasOwnProperty(i)&&(n[t]=n[t].replace(new RegExp(i,"g"),o[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};r.inject(d)}},function(e,t,n){var i=n(9),o=n(62),a=n(25),s=n(74),r=n(76),l=n(72),c="dxdblclick",d="dxDblClick",u=l.addNamespace(r.name,d),h=300,p=a.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-h},add:function(){this._handlerCount<=0&&i(document).on(u,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||i.now();t-this._lastClickTimeStamp<h?(l.fireEvent({type:c,target:o.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i(document).off(u))}});s(c,new p),t.name=c},function(e,t,n){var i=n(72),o=n(87),a=n(85),s="dxswipestart",r="dxswipe",l="dxswipeend",c={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},d={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},u={horizontal:c,vertical:d},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return u[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(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=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(r,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[s,r,l]}),t.swipe=r,t.start=s,t.end=l},function(e,t,n){var i=n(9),o=n(88),a=n(7),s=n(72),r=n(84),l=n(85),c="dx",d="transform",u="translate",h="zoom",p="pinch",f="rotate",m="start",g="",_="end",v=[],w=function(e,t){v.push({name:e,args:t})};w(d,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),w(u,{translation:!0,deltaTranslation:!0}),w(h,{scale:!0,deltaScale:!0}),w(p,{scale:!0,deltaScale:!0}),w(f,{rotation:!0,deltaRotation:!0});var x=function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}},y=function(e){var t=e.pointers;return x(t[0],t[1])},b=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},C=function(e,t){return b(e)/b(t)},k=function(e,t){var n=e.x*t.x+e.y*t.y,i=b(e)*b(t);if(0===i)return 0;var a=o.sign(e.x*t.y-t.x*e.y),s=Math.acos(o.fitIntoRange(n/i,-1,1));return a*s},I=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},S=r.inherit({configure:function(e,t){t.indexOf(h)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(h,p)+"' event instead"),this.callBase(e)},validatePointers:function(e){return s.hasTouches(e)>1},start:function(e){this._accept(e);var t=y(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(m,e)},move:function(e){var t=y(e),n=this._getEventArgs(t);this._fireEventAliases(g,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(_,e,t)},_getEventArgs:function(e){return{scale:C(e,this._startVector),deltaScale:C(e,this._prevVector),rotation:k(e,this._startVector),deltaRotation:k(e,this._prevVector),translation:I(e,this._startVector),deltaTranslation:I(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},i.each(v,function(o,a){var s={};i.each(a.args,function(e){e in n&&(s[e]=n[e])}),this._fireEvent(c+a.name+e,t,s)}.bind(this))}}),D=i.map(v,function(e){var t=[];return i.each([m,g,_],function(n,i){t.push(c+e.name+i)}),t});l({emitter:S,events:D}),i.each(D,function(e,n){t[n.substring(c.length)]=n})},function(e,t,n){var i=n(5),o=i.data=n(187);o.odata=n(192),e.exports=o},function(e,t,n){var i=n(6);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(156).errorHandler},set:function(e){n(156).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(156)._errorHandler},set:function(e){n(156)._errorHandler=e}}),i.data.DataSource=n(188),i.data.query=n(160),i.data.Store=n(155),i.data.ArrayStore=n(159),i.data.CustomStore=n(163),i.data.LocalStore=n(189),i.data.base64_encode=n(138).base64_encode,i.data.Guid=n(152),i.data.utils={},i.data.utils.compileGetter=n(50).compileGetter,i.data.utils.compileSetter=n(50).compileSetter,i.EndpointSelector=n(190),i.data.queryImpl=n(160).queryImpl,i.data.queryAdapters=n(162);var o=n(138);i.data.utils.normalizeBinaryCriterion=o.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=o.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=o.errorMessageFromXhr,i.data.utils.aggregators=o.aggregators,i.data.utils.keysEqual=o.keysEqual,i.data.utils.isDisjunctiveOperator=o.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=o.isConjunctiveOperator,i.data.utils.processRequestResultLock=o.processRequestResultLock,i.data.utils.toComparable=n(50).toComparable,i.data.utils.multiLevelGroup=n(157).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(157).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(154).normalizeDataSourceOptions},function(e,t,n){e.exports=n(154).DataSource},function(e,t,n){var i=n(9),o=n(25),a=o.abstract,s=n(156).errors,r=n(159),l=o.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,o=Math.max(100,t.flushInterval||1e4);if(!n){var a=this.save.bind(this);setInterval(a,o),i(window).on("beforeunload",a),window.cordova&&document.addEventListener("pause",a,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:a,_saveImpl:a}),c=l.inherit({ctor:function(e,t){var n=t.name;if(!n)throw s.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?localStorage.setItem(this._key,JSON.stringify(e)):localStorage.removeItem(this._key)}}),d={dom:c},u=r.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new d[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");e.exports=u},function(e,t,n){function i(e){return/^(localhost$|127\.)/i.test(e)}var o=n(7),a=n(191),s=window.location,r="ms-appx:"===s.protocol,l=i(s.hostname),c=function(e){this.config=e};c.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw o.Error("E0006");return a.isProxyUsed()?a.formatProxyUrl(t.local):t.production&&(r&&!Debug.debuggerEnabled||!r&&!l)?t.production:t.local}},e.exports=c},function(e,t,n){var i=n(9),o=window.location,a="dxproxy.devexpress.com:8000",s=o.host===a,r={},l=function(){var e=document.createElement("a"),t=["protocol","hostname","port","pathname","search","hash"],n=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e};return function(o){e.href=o;var a={};return i.each(t,function(){a[this]=e[this]}),a.pathname=n(a.pathname),a}}(),c=function(){return o.pathname.split("/")[1]};e.exports={parseUrl:l,isProxyUsed:function(){return s},formatProxyUrl:function(e){var t=l(e);if(!/^(localhost$|127\.)/i.test(t.hostname))return e;var n=a+"/"+c()+"_"+t.port;r[n]=t.hostname+":"+t.port;var i="http://"+n+t.pathname+t.search;return i},formatLocalUrl:function(e){if(e.indexOf(a)<0)return e;var t=e;for(var n in r)if(r.hasOwnProperty(n)&&e.indexOf(n)>=0){t=e.replace(n,r[n]);break}return t}}},function(e,t,n){n(187),DevExpress.data.ODataStore=n(193),DevExpress.data.ODataContext=n(197),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(194).keyConverters,DevExpress.data.EdmLiteral=n(194).EdmLiteral;var i=n(194);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(196).odata},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&c.log("W4001",o):n[o]=t[o];return n}var a=n(9),s=n(14),r=n(194),l=n(191),c=n(156).errors,d=n(160),u=n(155),h=n(195),p=n(16).when;n(196);var f="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=u.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var s="string"==typeof a;t||(t=s?f:Object.keys(a),this._legacyAnonymousKey=t),s&&(a=i(t,a)),n=o(n,a)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&t.expand&&(n.$expand=a.map(a.makeArray(t.expand),r.serializePropName).join()),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n;if(e=e||{},n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes},t=s.isDefined(e.urlOverride)?e.urlOverride:this._url,e.customQueryParams){var i=h.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=h.formatFunctionInvocationUrl(t,i):n.params=i}return d(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=a.Deferred();return p(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=a.Deferred();return p(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(){n.resolve(e,t)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=a.Deferred();return p(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o in i){var a=i[o];t[a]=r.convertPrimitiveValue(n[a],e[a])}}else n[i]&&(t=r.convertPrimitiveValue(n[i],e));return t},_byKeyUrl:function(e,t){var n=t?l.formatLocalUrl(this._url):this._url,i=this._convertKey(e);return n+"("+encodeURIComponent(r.serializeKey(i,this._version))+")"}},"odata").include(h.SharedMethods);e.exports=m},function(e,t,n){function i(e,t,n){var i=[],o=function(e){return e<10?"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 o(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);return t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length&&(t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3])),t.setMilliseconds(Number(String(o[4]).substr(0,3))||0)),t}function a(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 r=n(9),l=n(25),c=n(11).extend,d=n(14),u=n(12),h=n(152),p=d.isDefined,f=n(156).errors,m=n(138),g=/^(\{{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})$/,_=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,v=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,w="application/json;odata=verbose",x=function(e,t,n){function o(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw f.Error("E4002")}})}t=c({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var s=(t.method||"get").toLowerCase(),l="get"===s,d=l&&n.jsonp,u=c({},t.params),h=l?u:o(t.payload),p=!l&&r.param(u),m=t.url,g=!l&&w;

return p&&(m+=(m.indexOf("?")>-1?"&":"?")+p),d&&(h.$format="json"),{url:m,data:h,dataType:d?"jsonp":"json",jsonp:d&&"$callback",type:s,async:t.async,timeout:t.timeout,headers:t.headers,contentType:g,accepts:{json:[w,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},y=function(e,t,n){var i=r.Deferred(),o=x(e,t,n);return r.ajax(o).always(function(t,r){var l,c={deserializeDates:n.deserializeDates,fieldTypes:n.fieldTypes},d=k(t,r,c),u=d.error,h=d.data,p=d.nextUrl;u?u.message!==m.XHR_ERROR_UNLOAD&&i.reject(u):n.countOnly?isFinite(d.count)?i.resolve(d.count):i.reject(new f.Error("E4018")):p?(a(p)||(p=s(o.url,p)),y(e,{url:p},n).fail(i.reject).done(function(e){i.resolve(h.concat(e))})):(isFinite(d.count)&&(l={totalCount:d.count}),i.resolve(h,l))}),i.promise()},b=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||t.indexOf("inner exception")!==-1););return t},C=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",o=e;if("success"!==t){n=e.status,i=m.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var a=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);return a?(i=b(a)||i,200===n&&(n=500),a.code&&(n=Number(a.code)),c(Error(i),{httpStatus:n,errorDetails:a})):200!==n?c(Error(i),{httpStatus:n}):void 0},k=function(e,t,n){var i,o=C(e,t);return o?{error:o}:u.isPlainObject(e)?(i="d"in e&&(Array.isArray(e.d)||d.isObject(e.d))?I(e,t):S(e,t),T(i,n),i):{data:e}},I=function(e){var t=e.d;return p(t)?(t=t,p(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 p(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},D=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),T=function(e,t){t=t||{},r.each(e,function(n,i){if(null!==i&&"object"==typeof i)"results"in i&&(e[n]=i.results),T(e[n],t);else if("string"==typeof i){var a=t.fieldTypes,s=!a||"String"!==a[n];if(s&&g.test(i)&&(e[n]=new h(i)),t.deserializeDates!==!1)if(i.match(_)){var r=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);e[n]=new Date(r.valueOf()+60*r.getTimezoneOffset()*1e3)}else v.test(i)&&(e[n]=new Date(o(e[n]).valueOf()))}})},E=function(e){return"datetime'"+i(e,!0,!0)+"'"},A=function(e){return"'"+e.replace(/'/g,"")+"'"},B=function(e){return e instanceof D?e.valueOf():e.replace(/\./g,"/")},M=function(e){return e instanceof Date?i(e,!1,!1):e instanceof h?e.valueOf():Array.isArray(e)?"["+e.map(function(e){return M(e)}).join(",")+"]":R(e)},R=function(e){return e instanceof Date?E(e):e instanceof h?"guid'"+e+"'":e instanceof D?e.valueOf():"string"==typeof e?A(e):String(e)},O=function(e,t){switch(t){case 2:case 3:return R(e);case 4:return M(e);default:throw f.Error("E4002")}},P=function(e,t){if(u.isPlainObject(e)){var n=[];return r.each(e,function(e,i){n.push(B(e)+"="+O(i,t))}),n.join()}return O(e,t)},V={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof D?e:new D(e+"L")},Guid:function(e){return e instanceof h?e:new h(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof D?e:new D(e+"f")},Decimal:function(e){return e instanceof D?e:new D(e+"m")}},F=function(e,t){var n=V[e];if(!n)throw f.Error("E4014",e);return n(t)};t.sendRequest=y,t.serializePropName=B,t.serializeValue=O,t.serializeKey=P,t.keyConverters=V,t.convertPrimitiveValue=F,t.EdmLiteral=D},function(e,t,n){var i=n(9),o=n(18),a=n(194);n(196);var s=2,r=function(e,t){return o.format("{0}({1})",e,i.map(t||{},function(e,t){return o.format("{0}={1}",t,e)}).join(","))},l=function(e,t){if(!e)return e;var n={};return i.each(e,function(e,i){n[e]=a.serializeValue(i,t)}),n},c={_extractServiceOptions:function(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||s,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates},_sendRequest:function(e,t,n,i){return a.sendRequest(this.version(),{url:e,method:t,params:n||{},payload:i},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},version:function(){return this._version}};t.SharedMethods=c,t.escapeServiceOperationParams=l,t.formatFunctionInvocationUrl=r},function(e,t,n){var i=n(9),o=n(14),a=n(12),s=n(11).extend,r=n(162),l=n(194),c=l.serializePropName,d=n(156).errors,u=n(138),h=o.isFunction,p=a.isPlainObject,f=o.grep,m=2,g=function(){var e,t,n=function(e){return function(t,n){return t+" "+e+" "+n}},o=function(e,t){return function(n,i){var o=[e,"("];return t?o.push(i,",",n):o.push(n,",",i),o.push(")"),o.join("")}},a={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:o("startswith"),endswith:o("endswith")},r=s({},a,{contains:o("substringof",!0),notcontains:o("not substringof",!0)}),h=s({},a,{contains:o("contains"),notcontains:o("not contains")}),p=function(n){n=u.normalizeBinaryCriterion(n);var i=n[1],o=4===e?h:r,a=o[i.toLowerCase()];if(!a)throw d.Error("E4003",i);var s=n[0],p=n[2];return t&&t[s]&&(p=l.convertPrimitiveValue(t[s],p)),a(c(s),l.serializeValue(p,e))},f=function(e){var t=e[0],n=g(e[1]);if("!"===t)return"not ("+n+")";throw d.Error("E4003",t)},m=function(e){var t,n,o=[];return i.each(e,function(e,i){if(Array.isArray(i)){if(o.length>1&&t!==n)throw new d.Error("E4019");o.push("("+g(i)+")"),t=n,n="and"}else n=u.isConjunctiveOperator(this)?"and":"or"}),o.join(" "+t+" ")},g=function(e){return Array.isArray(e[0])?m(e):u.isUnaryOperation(e)?f(e):p(e)};return function(n,i,o){return t=o,e=i,g(n)}}(),_=function(e){var t,n,o,a,r=[],d=[],u=e.expand,_=e.version||m,v=function(){return n||void 0!==o},w=function(e){for(var t=0;t<e.length;t++){if(h(e[t]))return!0;if(Array.isArray(e[t])&&w(e[t]))return!0}return!1},x=function(){var e=function(e){return/\./.test(e)},n=function(){if(t)return _<4?c(t.join()):f(t,e,!0).join()},o=function(){var n=function(){var e={};return u&&i.each(i.makeArray(u),function(){e[c(this)]=1}),t&&i.each(i.makeArray(t),function(){var t=this.split(".");t.length<2||(t.pop(),e[c(t.join("."))]=1)}),i.map(e,function(e,t){return t}).join()},o=function(){var n=function(e){var t=function(e){var n="",o=[],a=[];return i.each(e,function(e,n){Array.isArray(n)&&[].push.apply(o,n),p(n)&&a.push(e+t(n))}),(o.length||a.length)&&(n+="(",o.length&&(n+="$select="+i.map(o,c).join()),a.length&&(o.length&&(n+=";"),n+="$expand="+i.map(a,c).join()),n+=")"),n},n=[];return i.each(e,function(e,i){n.push(e+t(i))}),n.join()},o=function(e,t,n){var o=function(e,t,n){var i=n(t,e.shift(),e);i!==!1&&o(e,i,n)};i.each(e,function(e,i){o(i.split("."),t,n)})},a={};if(u||t)return u&&o(i.makeArray(u),a,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),t&&o(f(i.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)};return _<4?n():o()},a={$select:n()||void 0,$expand:o()||void 0};return a},y=function(){var t={};if(!a){r.length&&(t.$orderby=r.join(",")),n&&(t.$skip=n),void 0!==o&&(t.$top=o);var i=x();t.$select=i.$select,t.$expand=i.$expand}if(d.length){var s=d.length<2?d[0]:d,l=e&&e.fieldTypes;t.$filter=g(s,_,l)}return a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==_?t.$inlinecount="allpages":t.$count="true"),t};return{exec:function(t){return l.sendRequest(_,{url:t,params:s(y(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes})},multiSort:function(e){var t;if(v())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],a=!!e[n][1];if("string"!=typeof o)return!1;i=c(o),a&&(i+=" desc"),t=t||[],t.push(i)}r=t},slice:function(e,t){return!v()&&(n=e,void(o=t))},filter:function(e){return!v()&&(Array.isArray(e)||(e=i.makeArray(arguments)),!w(e)&&(d.length&&d.push("and"),void d.push(e)))},select:function(e){return!t&&!h(e)&&(Array.isArray(e)||(e=i.makeArray(arguments)),void(t=e))},count:function(){a=!0}}};r.odata=_,t.odata=_},function(e,t,n){var i=n(9),o=n(25),a=n(11).extend,s=n(14),r=n(12),l=n(156),c=n(193),d=n(195),u=n(16).when;n(196);var h=o.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,i.each(e.entities||[],function(n,i){t[n]=new c(a({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var o,a=i.Deferred(),s=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(s=d.formatFunctionInvocationUrl(s,d.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(o=t,t=null)),u(this._sendRequest(s,n,d.escapeServiceOperationParams(t,this.version()),o)).done(function(t){r.isPlainObject(t)&&e in t&&(t=t[e]),a.resolve(t)}).fail([this._errorHandler,l._errorHandler,a.reject]),a.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw l.errors.Error("E4015",e);return s.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(d.SharedMethods);e.exports=h},function(e,t,n){n(6),e.exports=DevExpress.ui={},DevExpress.ui.templateRendered=n(98).renderedCallbacks},function(e,t,n){e.exports=n(97).setTemplateEngine},function(e,t,n){var i=n(9),o=n(48),a=n(14).isFunction,s=n(49),r=n(62),l=n(55),c=n(11).extend,d=n(12).isPlainObject,u=n(53),h=n(144),p=n(22),f=n(90),m=n(201),g=n(15),_={text:"OK",onClick:function(){return!0}},v="dx-dialog",w=v+"-wrapper",x=v+"-root",y=v+"-content",b=v+"-message",C=v+"-buttons",k=v+"-button",I=o.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}},{device:function(e){var t=(h.current()||"").split(".")[0];return!e.phone&&"win8"===t},options:{width:function(){return i(window).width()}}},{device:function(e){var t=(h.current()||"").split(".")[0];return e.phone&&"win8"===t},options:{position:{my:"top center",at:"top center",of:window,offset:"0 0"}}}])}});t.FakeDialogComponent=I,t.title="",t.custom=function(e){function n(){return E.show(),d.promise()}function o(e){d.resolve(e),E.hide().done(function(){E.element().remove()})}var d=i.Deferred(),h=(new I).option();e=c(h,e);var f=i("
").addClass(v).appendTo(l.value()),S=i("
").addClass(b).html(String(e.message)),D=[],T=e.toolbarItems;T?p.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):T=e.buttons,i.each(T||[_],function(){var e=new s(this.onClick,{context:E});D.push({toolbar:"bottom",location:u.current().android?"after":"center",widget:"dxButton",options:c({},this,{onClick:function(){var t=e.execute(arguments);o(t)}})})});var E=new m(f,{title:e.title||t.title,showTitle:function(){var t=void 0===e.showTitle||e.showTitle;return t}(),height:"auto",width:function(){var t=i(window).height()>i(window).width(),n=(t?"p":"l")+"Width",o=e.hasOwnProperty(n)?e[n]:e.width;return a(o)?o():o},showCloseButton:e.showCloseButton||!1,focusStateEnabled:!1,onContentReady:function(e){e.component.content().addClass(y).append(S)},onShowing:function(e){e.component.bottomToolbar().addClass(C).find(".dx-button").addClass(k),r.resetActiveElement()},onShown:function(e){e.component.bottomToolbar().find(".dx-button").first().focus()},onHiding:function(){d.reject()},toolbarItems:D,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:g().rtlEnabled,boundaryOffset:{h:10,v:0}});return E._wrapper().addClass(w),e.position&&E.option("position",e.position),E._wrapper().addClass(x),{show:n,hide:o}},t.alert=function(e,n,i){var o=d(e)?e:{title:n,message:e,showTitle:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=d(e)?e:{title:n,message:e,showTitle:i,buttons:[{text:f.format("Yes"),onClick:function(){return!0}},{text:f.format("No"),onClick:function(){return!1}}]};return t.custom(o).show()}},function(e,t,n){var i=n(9),o=n(70),a=n(39).camelize,s=n(14),r=n(26).inArray,l=n(11).extend,c=n(90),d=n(53),u=n(57),h=n(202),p=n(144),f=n(110),m=n(100),g=n(62);n(204);var _="dx-popup",v="dx-popup-wrapper",w="dx-popup-fullscreen",x="dx-popup-fullscreen-width",y="dx-popup-normal",b="dx-popup-content",C="dx-popup-draggable",k="dx-popup-title",I="dx-closebutton",S="dx-popup-bottom",D="dx-template-wrapper",T=["cancel","clear","done"],E=function(e){var t=d.current(),n=t.platform,i="bottom",o="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("win"===n)o="after";else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}},A=f.inherit({_getDefaultOptions:function(){return l(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=(p.current()||"").split(".")[0];return"win8"===e},options:{width:function(){return i(window).width()}}},{device:function(e){var t=(p.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"===d.real().platform&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===d.real().deviceType&&!d.isSimulator()},options:{focusStateEnabled:!0}}])},_setDeprecatedOptions:function(){this.callBase(),l(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(_),this._wrapper().addClass(v),this._$popupContent=this._$content.wrapInner(i("
").addClass(b)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass(w,e).toggleClass(y,!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new m(this),this._defaultTemplates.bottom=new m(this)},_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:d.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("
").addClass(k).insertBefore(this.content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(k),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n){var i=this._getTemplateByOption(e),o=i instanceof m;if(o){var a={items:t,rtlEnabled:this.option("rtlEnabled")};this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:a}});var s=n.children("div");return n.replaceWith(s),s}var r=i.render({container:n});return r.hasClass(D)&&(n.replaceWith(r),n=r),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 function(e,t,n){var o=i("
").addClass(I);this._createComponent(o,h,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),n.append(o)}.bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var o=d.current().platform,a=0;return i.each(t,function(t,i){var r=s.isDefined(i.shortcut),c=r?E(i.shortcut):i;if(r&&"ios"===o&&a<2&&(c.toolbar="top",a++),c.toolbar=i.toolbar||c.toolbar||"top",c&&c.toolbar===e){r&&l(c,{location:i.location},this._getToolbarItemByAlias(i));var d="win"===o||"generic"===o;"done"===i.shortcut&&d||"cancel"===i.shortcut&&!d?n.unshift(c):n.push(c)}}.bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(r(n,T)<0)return!1;var o=l({text:c.format(a(n,!0)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{}},e.options||{}),s=_+"-"+n;return this._toolbarItemClasses.push(s),{template:function(e,n,a){var r=i("
").addClass(s).appendTo(a);t._createComponent(r,h,o)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=i("
").addClass(S).insertAfter(this.content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t).addClass(S),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=T;i.each(e,function(e,t){var n=_+"-"+t;r(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getDragTarget:function(){return this._$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(C,this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._$content.dxResizable("option","onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){if((this.option("forceApplyBindings")||i.noop)(),!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(x,this.overlayContent().outerWidth()===i(window).width())},_renderShadingDimensions:function(){this.option("fullScreen")?this._wrapper().css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments)},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){return this.option("fullScreen")?void o.move(this._$content,{top:0,left:0}):((this.option("forceApplyBindings")||i.noop)(),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._toggleFullScreenClass(e.value),this._renderGeometry(),g.triggerResizeEvent(this._$content);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}});u("dxPopup",A),e.exports=A},function(e,t,n){var i=n(9),o=n(116),a=n(53),s=n(57),r=n(11).extend,l=n(109),c=n(118),d=n(96),u=n(203),h=n(72),p=n(144),f=n(76),m=n(99),g="dx-button",_="dx-button-content",v="dx-button-has-text",w="dx-button-has-icon",x="dx-template-wrapper",y="dx-button-text",b="content",C=100,k=d.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return r(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(p.current())},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return b},_feedbackHideTimeout:C,_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new m(function(e){var t=e.model,n=o.getImageContainer(t&&t.icon),a=t&&t.text?i("").text(t.text).addClass(y):void 0;e.container.append(n).append(a)},this)},_render:function(){this.element().addClass(g),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&&r(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=i("
").addClass(_).appendTo(e),e.toggleClass(w,!!t.icon).toggleClass(v,!!t.text);var n=this._getTemplateByOption("template"),o=n.render({model:t,container:this._$content});o.hasClass(x)&&(this._$content.replaceWith(o),this._$content=o,this._$content.addClass(_)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.jQueryEvent,n=c.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("<input>").attr("type","submit").addClass("dx-button-submit-input").appendTo(this._$content).on("click",function(t){e({jQueryEvent:t})})},_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),n={};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),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"===o.getImageSourceType(e)&&(e=e.indexOf("base64")===-1?e.replace(/.+\/([^\.]+)\..+$/,"$1"):"Base64");var n=t||e;this.setAria("label",i.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(w)||"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;case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$content,delete this._inkRipple}}).include(l);s("dxButton",k),e.exports=k},function(e,t,n){var i=n(9),o="dx-inkripple",a="dx-inkripple-wave",s="dx-inkripple-showing",r="dx-inkripple-hiding",l=2,c=4e3,d=300,u=1e3,h=0,p=function(e){e=e||{},void 0===e.useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||l,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:w(e.useHoldAnimation)};return{showWave:_.bind(this,t),hideWave:y.bind(this,t)}},f=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("
").addClass(o).appendTo(e)),t},m=function(e,t){for(var n=f(e),o=n.children("."+a).toArray(),s=o.length;s<t;s++){var r=i("
").appendTo(n).addClass(a);o.push(r[0])}return i(o)},g=function(e,t){var n,i,o=t.element,a=o.outerWidth(),s=o.outerHeight(),r=parseInt(Math.sqrt(a*a+s*s)),l=Math.min(c,parseInt(r*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(s-l)/2;else{var d=t.jQueryEvent,u=t.element.offset(),h=d.pageX-u.left,p=d.pageY-u.top;n=h-l/2,i=p-l/2}return{left:n,top:i,height:l,width:l}},_=function(e,t){var n=m(t.element,e.wavesNumber).eq(t.wave||h);e.hidingTimeout&&clearTimeout(e.hidingTimeout),x(n),n.css(g(e,t)),setTimeout(v.bind(this,e,n),0)},v=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(s).css("transition-duration",n)},w=function(e){return{showingScale:e?u:d,hidingScale:d,hidingOpacity:d}},x=function(e){e.removeClass(r).css("transition-duration","")},y=function(e,t){var n=m(t.element,t.wavesNumber).eq(t.wave||h),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(r).removeClass(s).css("transition-duration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(x.bind(this,n),a)};e.exports={render:p}},function(e,t,n){var i=n(9),o=n(14),a=n(12).isPlainObject,s=n(57),r=n(26).inArray,l=n(11).extend,c=n(150),d=n(167),u="dx-toolbar",h="dx-toolbar-before",p="dx-toolbar-center",f="dx-toolbar-after",m="dx-toolbar-bottom",g="dx-toolbar-mini",_="dx-toolbar-item",v="dx-toolbar-label",w="dx-toolbar-button",x="dx-toolbar-items-container",y="dx-toolbar-group",b="."+v,C="dxToolbarItemDataKey",k=c.inherit({_initTemplates:function(){this.callBase();var e=new d(function(e,t,n){a(t)?(t.text&&e.text(t.text).wrapInner("
"),t.html&&e.html(t.html)):e.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:e,model:n})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._defaultTemplates.item=e,this._defaultTemplates.menuItem=e},_getDefaultOptions:function(){return l(this.callBase(),{renderAs:"topToolbar"})},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+h,"."+p,"."+f].join(","))},_itemClass:function(){return _},_itemDataKey:function(){return C},_buttonClass:function(){return w},_dimensionChanged:function(){this._arrangeItems()},_render:function(){this._renderToolbar(),this._renderSections(),this.setAria("role","toolbar"),this.callBase(),this._arrangeItems()},_renderToolbar:function(){this.element().addClass(u).toggleClass(m,"bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=i("
").addClass(x).appendTo(this.element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;i.each(["before","center","after"],function(){var n="dx-toolbar-"+this,o=e.find("."+n);o.length||(t["_$"+this+"Section"]=o=i("
").addClass(n).appendTo(e))})},_arrangeItems:function(e){e=e||this.element().width(),this._$centerSection.css({margin:"0 auto","float":"none"});var t=this._$beforeSection.get(0).getBoundingClientRect(),n=this._$afterSection.get(0).getBoundingClientRect();this._alignCenterSection(t,n);var o=this._$toolbarItemsContainer.find(b).eq(0),a=o.parent();if(o.length){var s=t.width?t.width:o.position().left,r=a.hasClass(h)?0:s,l=a.hasClass(f)?0:n.width,c=0;a.children().not(b).each(function(){c+=i(this).outerWidth()});var d=e-c,u=o.outerWidth()-o.width(),p=Math.max(d-r-l-u,0);o.css("max-width",p)}},_alignCenterSection:function(e,t){var n=this.option("rtlEnabled"),i=n?t:e,o=n?e:t,a=this._$centerSection.get(0).getBoundingClientRect();(i.right>a.left||a.right>o.left)&&this._$centerSection.css({marginLeft:i.width,marginRight:o.width,"float":i.width>o.width?"none":"right"})},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this._$toolbarItemsContainer.find(".dx-toolbar-"+o),s=Boolean(t.text)||Boolean(t.html),r=this.callBase(e,t,a,i);return r.toggleClass(this._buttonClass(),!s).toggleClass(v,s),r},_renderGroupedItems:function(){var e=this;i.each(this.option("items"),function(t,n){var o=n.items,a=i("
",{"class":y}),s=n.location||"center";o.length&&(i.each(o,function(t,n){e._renderItem(t,n,a,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+s).append(a))})},_renderItems:function(e){var t=e.length&&e[0].items;t?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.element().toggleClass(g,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderEmptyMessage:o.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.element().width()>0&&this.element().height()>0},_getIndexByItem:function(e){return r(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":this._invalidate();break;default:this.callBase.apply(this,arguments)}}});s("dxToolbarBase",k),e.exports=k},function(e,t,n){var i=n(9),o=n(49),a=n(55),s=n(11).extend,r=n(12).isPlainObject,l=n(206),c=null,d=function(e,t,n){var d=r(e)?e:{message:e},u=d.onHidden;s(d,{type:t,displayTime:n,onHidden:function(e){e.element.remove(),new o(u,{context:e.model}).execute(arguments)}}),c=i("
").appendTo(a.value()),new l(c,d).show()};e.exports=d},function(e,t,n){var i=n(9),o=n(14),a=n(11).extend,s=n(26).inArray,r=n(77),l=n(57),c=n(110),d="dx-toast",u=d+"-",h=u+"wrapper",p=u+"content",f=u+"message",m=u+"icon",g="dxToast",_=["info","warning","error","success"],v=[],w=8e3,x=null,y={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left", of:null,offset:"0 0"}};i(document).on(r.down,function(e){for(var t=v.length-1;t>=0;t--)if(!v[t]._proxiedDocumentDownHandler(e))return});var b=c.inherit({_getDefaultOptions:function(){return a(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",closeOnBackButton:!1,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{position:"top center",width:function(){return i(window).width()}}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{position:"bottom right",width:"auto"}},{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{top:i(window).height()}},hide:{type:"slide",duration:200,to:{top:i(window).height()}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform,i="win"===e.platform&&e.version&&10===e.version[0];return t&&(n||i)},options:{width:function(){return i(window).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("
").addClass(f).text(this.option("message")).appendTo(this.content())),this.setAria("role","alert",this._message),s(this.option("type").toLowerCase(),_)>-1&&this.content().prepend(i("
").addClass(m)),this.callBase()},_render:function(){this.callBase(),this.element().addClass(d),this._wrapper().addClass(h),this._$content.addClass(u+String(this.option("type")).toLowerCase()),this.content().addClass(p),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:o.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();this._$content.off(t),this.option("closeOn"+e)&&this._$content.on(t,this.hide.bind(this))},_posStringToObject:function(){if(o.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",a({},y[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return x&&(clearTimeout(x._hideTimeout),x.hide()),x=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return x=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return v},_zIndexInitValue:function(){return this.callBase()+w},_dispose:function(){clearTimeout(this._hideTimeout),x=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this._$content.removeClass(u+e.previousValue),this._$content.addClass(u+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});l(g,b),e.exports=b},function(e,t,n){var i=n(9),o=n(14).noop,a=n(90),s=n(57),r=n(11).extend,l=n(202),c=n(150),d=n(201),u=n(208),h=n(167),p="dx-actionsheet",f="dx-actionsheet-container",m="dx-actionsheet-popup-wrapper",g="dx-actionsheet-popover-wrapper",_="dx-actionsheet-cancel",v="dx-actionsheet-item",w="dxActionSheetItemData",x="dx-actionsheet-without-title",y=c.inherit({_getDefaultOptions:function(){return r(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:a.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new h(function(e,t){var n=new l(i("
"),r({onClick:t&&t.click},t));e.append(n.element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return v},_itemDataKey:function(){return w},_toggleVisibility:o,_renderDimensions:o,_render:function(){this.element().addClass(p),this._createItemContainer(),this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("
").addClass(f),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("
").appendTo(this.element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup._wrapper().toggleClass(x,!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!window.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,u,r(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass(g)},_createPopup:function(){this._createComponent(this._$popup,d,r(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:window},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:window}},to:{position:{my:"bottom",at:"bottom",of:window}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:window}},to:{position:{my:"top",at:"bottom",of:window}}}}})),this._popup._wrapper().addClass(m)},_popupContentReadyAction:function(){this._popup.content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||o,t=this;this._$cancelButton=i("
").addClass(_).appendTo(this._popup.content()),this._createComponent(this._$cancelButton,l,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={jQueryEvent:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:o,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=i.Deferred();return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",y),e.exports=y},function(e,t,n){var i=n(9),o=n(57),a=n(18),s=n(11).extend,r=n(70),l=n(71),c=n(14),d=n(88),u=n(72),h=n(201),p="dx-popover",f="dx-popover-wrapper",m="dx-popover-arrow",g="dx-popover-without-title",_={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},v={left:-1,top:-1,center:0,right:1,bottom:1},w={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=function(e,t){var n=e.option(t);return c.isObject(n)?n.name:n},y=function(e,t){var n=e.option(t);return c.isObject(n)&&n.delay},b=function(e,t){var n,o,a,s,r=e.option("target"),l=x(e,t+"Event");l&&!e.option("disabled")&&(s=u.addNamespace(l,e.NAME),o=e._createAction(function(){n=y(e,t+"Event"),this._clearEventTimeout("hide"===t),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){o({jQueryEvent:e,target:i(e.currentTarget)})},r.jquery||r.nodeType||c.isWindow(r)?(e["_"+t+"EventHandler"]=void 0,i(r).on(s,a)):(e["_"+t+"EventHandler"]=a,i(document).on(s,r,a)))},C=function(e,t,n){var o,a=x(e,n+"Event");a&&(o=u.addNamespace(a,e.NAME),e["_"+n+"EventHandler"]?i(document).off(o,t,e["_"+n+"EventHandler"]):i(t).off(o))},k=h.inherit({_getDefaultOptions:function(){return s(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._timeouts={},this.element().addClass(p),this._wrapper().addClass(f)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){C(this,e,"show"),C(this,e,"hide")},_attachEvents:function(){b(this,"show"),b(this,"hide")},_renderArrow:function(){this._$arrow=i("
").addClass(m).prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!i(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"==typeof e.to&&s(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(g,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:c.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=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),r.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=a.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isPopoverInside(),o=(i?-1:1)*v[this._positionSide],r=this._getContentBorderWidth(this._positionSide);return this._isVerticalSide()?n+=o*(this._$arrow.height()-r):this._isHorizontalSide()&&(t+=o*(this._$arrow.width()-r)),s({},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()?_[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(_[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",o=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=i(this._position.of),s=l.offset(a)||{top:0,left:0},r=l.offset(this._$content),c=this._$arrow[o](),u=r[n],h=this._$content[o](),p=s[n],f=a.get(0).preventDefault?0:a[o](),m=Math.max(u,p),g=Math.min(u+h,p+f);t="start"===this.option("arrowPosition")?m-u:"end"===this.option("arrowPosition")?g-u-c:(m+g)/2-u-c/2;var v=this._getContentBorderWidth(e),w=d.fitIntoRange(t-v+this.option("arrowOffset"),v,h-c-2*v);this._$arrow.css(n,w)},_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=s({},w[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=s({},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=v[t.h]===v[n.h]&&v[t.v]===v[n.v]?-1:1,o=Math.abs(v[t.h]-i*v[n.h]),a=Math.abs(v[t.v]-i*v[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},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e?"show":"hide"])},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this.callBase(e),this._renderGeometry();break;case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":this._invalidate();break;case"visible":this._clearEventTimeout(e.value),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});o("dxPopover",k),e.exports=k},function(e,t,n){var i=n(9),o=n(14).noop,a=n(57),s=n(11).extend,r=n(210),l=n(144),c="dx-autocomplete",d="dx-autocomplete-popup-wrapper",u=r.inherit({_supportedKeys:function(){var e=this._list?this._list.option("focusedElement"):null,t=this.callBase();return s({},t,{upArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!e.prev().length)||(this._clearFocusedItem(),!1)},downArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!e.next().length)||(this._clearFocusedItem(),!1)},enter:function(){return e||this.close(),t.enter.apply(this,arguments),this.option("opened")}})},_setDeprecatedOptions:function(){this.callBase(),s(this._deprecatedOptions,{displayExpr:{since:"15.2",alias:"valueExpr"}})},_getDefaultOptions:function(){return s(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return/android5/.test(l.current())},options:{popupPosition:{offset:{h:-16,v:-8}}}}])},_render:function(){this.callBase(),this.element().addClass(c),this.setAria("autocomplete","inline")},_loadValue:function(){return i.Deferred().resolve(this.option("value"))},_displayGetterExpr:function(){return this.option("valueExpr")},_setSelectedItem:function(e){this.callBase(e),this.option("displayValue",this.option("value"))},_popupConfig:function(){return s(this.callBase(),{closeOnOutsideClick:function(e){return!i(e.target).closest(this.element()).length}.bind(this)})},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_popupWrapperClass:function(){return this.callBase()+" "+d},_listConfig:function(){return s(this.callBase(),{pageLoadMode:"none",indicateLoading:!1})},_listItemClickHandler:function(e){var t=this._displayGetter(e.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:o,_searchCanceled:function(){this.callBase(),this.close()},_dataSourceOptions:function(){return{paginate:!0}},_searchDataSource:function(){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_searchHandler:function(e){this._isControlKey(e.key)||this.callBase(e)},_optionChanged:function(e){"maxItemCount"===e.name?this._searchDataSource():this.callBase(e)},reset:function(){this.callBase(),this.close()}});a("dxAutocomplete",u),e.exports=u},function(e,t,n){var i=n(9),o=n(152),a=n(57),s=n(14),r=n(11).extend,l=n(26).inArray,c=n(211),d=n(219),u=n(22),h=n(72),p=n(53),f=n(252),m=n(90),g=n(144),_=n(101),v=".dx-list-item",w="dxListItemData",x="dx-dropdownlist-popup-wrapper",y="dx-skip-gesture-event",b=["startswith","contains","endwith","notcontains"],C=c.inherit({_supportedKeys:function(){var e=this.callBase();return r({},e,{tab:function(){if(this.option("opened")&&"instantly"===this.option("applyValueMode")){var t=this._list.option("focusedElement");t&&this._setSelectedElement(t)}else this._focusTarget().focusout();e.tab.apply(this,arguments)},space:s.noop,home:s.noop,end:s.noop})},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{pagingEnabled:{since:"15.1",message:"Use the 'dataSource.paginate' option instead"}})},_getDefaultOptions:function(){return r(this.callBase(),r(f._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,pagingEnabled:void 0,noDataText:m.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:s.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{popupPosition:{offset:{v:-6}}}},{device:function(){return/android5/.test(g.current())},options:{popupWidthExtension:32}},{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem()},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new _("item",this)},_renderField:function(){this.callBase(),this._input().on("input",this._setFocusPolicy.bind(this))},_preventFocusOnPopup:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&e.preventDefault()},_createPopup:function(){this.callBase(),this._popup._wrapper().addClass(this._popupWrapperClass()),this._popup.content().off("mousedown").on("mousedown",this._preventFocusOnPopup.bind(this))},_popupWrapperClass:function(){return x},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_loadItem:function(e){var t=this._getPlainItems(this.option("items")),n=s.grep(t,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0];return void 0!==n?i.Deferred().resolve(n).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",s.ensureDefined(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){this._listItemElements().each(function(e,t){var n=i(t),o=this._valueGetter(n.data(w)),a=this._isSelectedValue(o);a?this._list.selectItem(n):this._list.unselectItem(n)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(l(t,b)<0)throw u.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(v):i()},_popupConfig:function(){var e=this;return r(this.callBase(),{templatesRenderAsynchronously:!1,width:this.option("width"),onShowing:function(){e.element().addClass(y)},onHidden:function(){e.element().removeClass(y)},height:"auto",maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this._renderList()},_attachChildKeyboardEvents:function(){this._childKeyboardProcessor=this._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._childKeyboardProcessor)},_fireContentReadyAction:s.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this),this._list.setAria("role","combobox")},_renderList:function(){this._listId="dx-"+(new o)._value;var e=this._$list=i("
",{id:this._listId}).appendTo(this._popup.content());this._list=this._createComponent(e,d,this._listConfig()),this._refreshList(),this._setAriaTargetForList()},_renderOpenedState:function(){this.callBase();var e=this.option("opened")||void 0;this.setAria({activedescendant:e&&this._list.getFocusedItemId(),owns:e&&this._listId})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===p.real().deviceType},_getListKeyExpr:function(){var e=this.option("valueExpr"),t=s.isString(e)&&"this"!==e;return t?e:null},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this._getTemplateByOption("itemTemplate"),indicateLoading:!1,keyExpr:this._getListKeyExpr(),groupTemplate:this.option("groupTemplate"),tabIndex:-1,onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return e},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){this._suppressDeprecatedWarnings();var e=this.option("pagingEnabled");return this._resumeDeprecatedWarnings(),{paginate:s.ensureDefined(e,!1)}},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:s.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return h.addNamespace("keyup",this.NAME+"Search")},_renderEvents:function(){this.callBase(),this._shouldRenderSearchEvent()&&this._input().on(this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){this._input().off(this._getSearchEvent()),this.callBase()},_searchHandler:function(){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()},_searchCanceled:function(){this._clearSearchTimer(),this._needPassDataSourceToList()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;return t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._refreshList(),this._refreshPopupVisibility()},_refreshPopupVisibility:function(){this.option("readOnly")||(this.option("opened",this._hasItemsToShow()),this.option("opened")&&this._dimensionChanged())},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=this._dataSource&&this._dataSource.items()||[],t=e.length,n=this._needPassDataSourceToList();return n&&t&&this._hasFocusClass()},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this._popup&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this._setPopupOption("width",this.element().outerWidth()+this.option("popupWidthExtension"))},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=s.isDefined(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupHeight:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.element(),t=e.offset(),n=i(window).height(),o=Math.max(t.top,n-t.top-e.outerHeight());return Math.min(.5*n,o)},_clean:function(){this._list&&delete this._list,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getListKeyExpr());break;case"displayExpr":this._renderValue();break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":case"pagingEnabled":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(f);a("dxDropDownList",C),e.exports=C},function(e,t,n){var i=n(9),o=n(152),a=n(57),s=n(14),r=s.isDefined,l=n(11).extend,c=n(22),d=n(71),u=n(108).getDefaultAlignment,h=n(90),p=n(202),f=n(72),m=n(212),g=n(76),_=n(99),v=n(201),w="dx-dropdowneditor",x="dx-dropdowneditor-input-wrapper",y="dx-dropdowneditor-button",b="dx-dropdowneditor-icon",C="dx-dropdowneditor-overlay",k="dx-dropdowneditor-overlay-flipped",I="dx-dropdowneditor-active",S="dx-dropdowneditor-button-visible",D="dx-dropdowneditor-field-clickable",T=m.inherit({_supportedKeys:function(){return l({},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)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_setDeprecatedOptions:function(){this.callBase(),l(this._deprecatedOptions,{fieldEditEnabled:{since:"16.1",alias:"acceptCustomValue"},showDropButton:{since:"17.1",alias:"showDropDownButton"}})},_getDefaultOptions:function(){return l(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton", fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:h.format("OK"),cancelButtonText:h.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=u(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("."+x)},_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(w),this._renderOpenedState(),this.setAria("role","combobox")},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.element().wrapInner(i("
").addClass(x)),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._$dropDownButton=null,this._$clearButton=null,e.render({model:t,container:i}),!this._input().length)throw c.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._renderDropDownButton()},_renderDropDownButton:function(){this._$dropDownButton&&(this._$dropDownButton.remove(),this._$dropDownButton=null);var e=this.option("showDropDownButton");this.element().toggleClass(S,e),e&&(this._$dropDownButton=this._createDropDownButton(),this._attachDropDownButtonClickHandler())},_attachDropDownButtonClickHandler:function(){this.option("showDropDownButton")&&!this.option("openOnFieldClick")&&this._$dropDownButton.dxButton("option","onClick",this._openHandler.bind(this))},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new _(function(e){var t=i("
").addClass(b);e.container.append(t)},this)},_createDropDownButton:function(){var e=i("
").addClass(y).prependTo(this._buttonsContainer());return this._createComponent(e,p,{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,disabled:this.option("readOnly"),useInkRipple:!1,template:this._getTemplateByOption("dropDownButtonTemplate")}),e.removeClass("dx-button"),e.on("mousedown",function(e){e.preventDefault()}),e},_renderOpenHandler:function(){var e=this,t=e.element().find("."+x),n=f.addNamespace(g.name,e.NAME),i=e.option("openOnFieldClick");t.off(n).on(n,e._getInputClickHandler(i)),e.element().toggleClass(D,i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({jQueryEvent:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this._input().focus(),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.element().toggleClass(I,e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:(e||void 0)&&this._popupContentId})},_createPopup:function(){this._$popup||(this._$popup=i("
").addClass(C).addClass(this.option("customOverlayCssClass")).appendTo(this.element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,v,this._popupConfig()),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._popupContentId="dx-"+new o,this.setAria("id",this._popupContentId,this._popup.content())},_contentReadyHandler:s.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:l(this.option("popupPosition"),{of:this.element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){this._popup.overlayContent().toggleClass(k,e.position.v.flip)},_popupShowingHandler:s.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=d.setup(this.element()).top,n=d.setup(this._popup.content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:t,model:n})}},_closeOutsideDropDownHandler:function(e){var t=i(e.target),n=!!t.closest(this.element()).length,o=!!t.closest(this._$dropDownButton).length,a=!n&&!o;return a},_clean:function(){delete this._$dropDownButton,delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(this._input().focus(),e.preventDefault())},_popupElementEscHandler:function(){this._input().focus(),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var o=s.splitPair(t);i.each(n,function(e,t){l(t,{toolbar:o[0],location:o[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._$dropDownButton&&this._$dropDownButton.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":r(e.value)?this._renderInputAddons():this._invalidate();break;case"showDropDownButton":case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":this._renderDropDownButton();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),this._input().val("")},field:function(){return this._input()},content:function(){return this._popup?this._popup.content():null}});a("dxDropDownEditor",T),e.exports=T},function(e,t,n){e.exports=n(213)},function(e,t,n){var i=n(9),o=n(53),a=n(26).inArray,s=n(11).extend,r=n(57),l=n(214),c=n(72),d=window.navigator.userAgent,u=[8,9,13,33,34,35,36,37,38,39,40,46],h="dx-textbox",p="dx-searchbox",f="dx-icon",m="dx-icon-search",g=l.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return s(this.callBase(),{mode:"text",maxLength:null})},_render:function(){this.callBase(),this.element().addClass(h),this.setAria("role","textbox"),this._renderMaxLengthHandlers()},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_renderMaxLengthHandlers:function(){this._isAndroid()&&this._input().on(c.addNamespace("keydown",this.NAME),this._onKeyDownAndroidHandler.bind(this)).on(c.addNamespace("change",this.NAME),this._onChangeAndroidHandler.bind(this))},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){if(!this._isAndroid()){var e=this.option("maxLength");e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")}},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(p),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(p),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=i("
").addClass(f).addClass(m);e.prependTo(this._input().parent()),this._$searchIcon=e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp(),this._renderMaxLengthHandlers();break;default:this.callBase(e)}},_onKeyDownAndroidHandler:function(e){var t=this.option("maxLength");if(t){var n=i(e.target),o=e.keyCode;return this._cutOffExtraChar(n),n.val().length<t||a(o,u)!==-1||""!==window.getSelection().toString()}return!0},_onChangeAndroidHandler:function(e){var t=i(e.target);this.option("maxLength")&&this._cutOffExtraChar(t)},_cutOffExtraChar:function(e){var t=this.option("maxLength"),n=e.val();n.length>t&&e.val(n.substr(0,t))},_isAndroid:function(){var e=o.real(),t=e.version.join(".");return"android"===e.platform&&t&&/^(2\.|4\.1)/.test(t)&&!/chrome/i.test(d)}});r("dxTextBox",g),e.exports=g},function(e,t,n){var i=n(57),o=n(215);i("dxTextEditor",o),e.exports=o},function(e,t,n){var i=n(9),o=n(216),a=n(62),s=n(14),r=n(18),l=n(26).inArray,c=n(11).extend,d=n(90),u=n(217),h=n(218),p=n(72),f=function(){return{}},m=" ",g=32,_="\\",v="dx-texteditor-masked",w="dxMask",x="forward",y="backward",b="blur beforedeactivate",C={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return I(e)},l:function(e){return I(e)||S(e)},C:/\S/,c:/./,A:function(e){return I(e)||k(e)},a:function(e){return I(e)||k(e)||S(e)}},k=function(e){return/[0-9]/.test(e)},I=function(e){var t=e.charCodeAt();return 64<t&&t<91||96<t&&t<123||t>127},S=function(e){return" "===e},D=u.inherit({_getDefaultOptions:function(){return c(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:d.format("validation-mask"),useMaskedValue:!1})},_supportedKeys:function(){var e=this,t={backspace:e._maskBackspaceHandler,del:e._maskDelHandler,enter:e._changeHandler},n=e.callBase();return i.each(t,function(t,i){var o=n[t];n[t]=function(t){e.option("mask")&&i.call(e,t),o&&o(t)}}),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_render:function(){this._renderHiddenElement(),this.callBase(),this._renderMask()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=i("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.element().removeClass(v),this._maskRulesChain=null,this._detachMaskEventHandlers(),this.option("mask")&&(this.element().addClass(v),this._attachMaskEventHandlers(),this._parseMask(),this._renderMaskedValue(),this._changedValue=this._input().val())},_attachMaskEventHandlers:function(){this._input().on(p.addNamespace("focus",w),this._maskFocusHandler.bind(this)).on(p.addNamespace("keydown",w),this._maskKeyDownHandler.bind(this)).on(p.addNamespace("keypress",w),this._maskKeyPressHandler.bind(this)).on(p.addNamespace("input",w),this._maskInputHandler.bind(this)).on(p.addNamespace("paste",w),this._maskPasteHandler.bind(this)).on(p.addNamespace("cut",w),this._maskCutHandler.bind(this)).on(p.addNamespace("drop",w),this._maskDragHandler.bind(this)),this._attachChangeEventHandlers()},_detachMaskEventHandlers:function(){this._input().off("."+w)},_attachChangeEventHandlers:function(){l("change",this.option("valueChangeEvent").split(" "))!==-1&&this._input().on(p.addNamespace(b,w),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this))},_suppressCaretChanging:function(e,t){var n=o;o=f;try{e.apply(this,t)}finally{o=n}},_changeHandler:function(e){var t=this._input(),n=t.val();if(n!==this._changedValue){this._changedValue=n;var i=p.createEvent(e,{type:"change"});t.trigger(i)}},_parseMask:function(){this._maskRules=c({},C,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new h.EmptyMaskRule;var n=t[e],i=n===_,o=i?new h.StubMaskRule({maskChar:t[e+1]}):this._getMaskRule(n);return o.next(this._parseMaskRule(e+1+i)),o},_getMaskRule:function(e){var t;return i.each(this._maskRules,function(n,i){if(n===e)return t={pattern:n,allowedChars:i},!1}),s.isDefined(t)?new h.MaskRule(c({maskChar:this.option("maskChar")},t)):new h.StubMaskRule({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_renderValue:function(){if(this._maskRulesChain){var e=this._maskRulesChain.text();if(this.option("text",e),this._$hiddenElement){var t=this._maskRulesChain.value(),n=this._isMaskedValueMode()?e:t;this._$hiddenElement.val(r.isEmpty(t)?"":n)}}this.callBase()},_valueChangeEventHandler:function(e){if(!this._maskRulesChain)return void this.callBase.apply(this,arguments);this._saveValueChangeEvent(e);var t=this._isMaskedValueMode()?(this._textValue||"").replace(new RegExp("["+this.option("maskChar")+"]","g")," ").replace(/\s+$/,""):(this._value||"").replace(/\s+$/,"");this.option("value",t)},_maskFocusHandler:function(){this._direction(x),this._adjustCaret()},_maskKeyDownHandler:function(){this._keyPressHandled=!1},_maskKeyPressHandler:function(e){this._keyPressHandled||(this._keyPressHandled=!0,this._isControlKeyFired(e)||this._maskKeyHandler(e,function(){return this._handleKey(e.which),!0}))},_maskInputHandler:function(e){if(!this._keyPressHandled){this._keyPressHandled=!0;var t=this._input().val(),n=this._caret();if(n.end){n.start=n.end-1;var i=t.substring(0,n.start)+t.substring(n.end),o=t[n.start];this._input().val(i),this._inputHandlerTimer=setTimeout(function(){this._caret({start:n.start,end:n.start}),this._maskKeyHandler(e,function(){return this._handleKey(o.charCodeAt()),!0})}.bind(this))}}},_isControlKeyFired:function(e){return this._isControlKey(e.key)||e.ctrlKey||e.metaKey},_maskBackspaceHandler:function(e){var t=this;t._keyPressHandled=!0;var n=function(e,n){e&&(t._direction(x),t._adjustCaret());var i=t._caret();clearTimeout(t._backspaceHandlerTimeout),t._backspaceHandlerTimeout=setTimeout(function(){n(i)})};t._maskKeyHandler(e,function(){return t._hasSelection()?void n(!0,function(e){t._displayMask(e),t._maskRulesChain.reset()}):t._tryMoveCaretBackward()?void n(!1,function(e){t._caret(e)}):(t._handleKey(g,y),void n(!0,function(e){t._displayMask(e),t._maskRulesChain.reset()}))})},_maskDelHandler:function(e){this._keyPressHandled=!0,this._maskKeyHandler(e,function(){return!this._hasSelection()&&this._handleKey(g),!0})},_maskPasteHandler:function(e){this._keyPressHandled=!0;var t=this._caret();this._maskKeyHandler(e,function(){var n=a.clipboardText(e),i=this._maskRulesChain.text().substring(t.end),o=this._handleChain({text:n,start:t.start,length:n.length}),s=t.start+o;return this._handleChain({text:i,start:s,length:i.length}),this._caret({start:s,end:s}),!0})},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return e=e||{},e.index=0,e.fullText=this._maskRulesChain.text(),e},_maskCutHandler:function(e){var t=this._caret(),n=this._input().val().substring(t.start,t.end);this._maskKeyHandler(e,function(){return a.clipboardText(e,n),!0})},_maskDragHandler:function(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this))},_convertToValue:function(e){return e.replace(new RegExp(this.option("maskChar"),"g"),m)},_maskKeyHandler:function(e,t){this.option("readOnly")||(this._direction(x),e.preventDefault(),this._handleSelection(),t.call(this)&&(this._direction(x),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset()))},_handleKey:function(e,t){var n=String.fromCharCode(e);this._direction(t||x),this._adjustCaret(n),this._handleKeyChain(n),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(m);this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),n=this._isForwardDirection()?t.start:t.start-1,i=this._isForwardDirection()?t.end:t.end-1,o=n===i?1:i-n;this._handleChain({text:e,start:n,length:o})},_tryMoveCaretBackward:function(){this._direction(y);var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._maskRulesChain.adjustedCaret(this._caret().start,this._isForwardDirection(),e);this._caret({start:t,end:t})},_moveCaret:function(){var e=this._caret().start,t=e+(this._isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(t)?e+(this._isForwardDirection()?1:-1):e;this._caret({start:n,end:n})},_caret:function(e){return arguments.length?void o(this._input(),e):o(this._input())},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){return arguments.length?void(this._typingDirection=e):this._typingDirection},_isForwardDirection:function(){return this._direction()===x},_clearDragTimer:function(){clearTimeout(this._dragTimer)},_clean:function(){this._clearDragTimer(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_dispose:function(){clearTimeout(this._inputHandlerTimer),clearTimeout(this._backspaceHandlerTimeout),this.callBase()},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().attr("name",null),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e);break;case"maskInvalidMessage":break;default:this.callBase(e)}}});e.exports=D},function(e,t,n){var i=n(9),o=n(14),a=n(23),s=a.msie||a.safari,r=function(e){return c(e)?d(e):{start:e.selectionStart,end:e.selectionEnd}},l=function(e,t){return c(e)?void u(e,t):void(i.contains(document,e)&&(e.selectionStart=t.start,e.selectionEnd=t.end))},c=function(e){return!e.setSelectionRange},d=function(e){var t=document.selection.createRange(),n=t.duplicate();return t.move("character",-e.value.length),t.setEndPoint("EndToStart",n),{start:t.text.length,end:t.text.length+n.text.length}},u=function(e,t){if(i.contains(document,e)){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t.start),n.moveEnd("character",t.end-t.start),n.select()}},h=function(e,t){return e=i(e).get(0),o.isDefined(t)?void(s&&document.activeElement!==e||l(e,t)):r(e)};e.exports=h},function(e,t,n){var i=n(9),o=n(62),a=n(14),s=n(11).extend,r=n(26).inArray,l=n(144),c=n(107),d=n(72),u=n(77),h=n(76),p="dx-texteditor",f="dx-texteditor-input",m="."+f,g="dx-texteditor-container",_="dx-texteditor-buttons-container",v="dx-placeholder",w="dx-show-clear-button",x="dx-icon",y="dx-icon-clear",b="dx-clear-button-area",C="dx-texteditor-empty",k=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],I=["Tab","Enter","Shift","Control","Alt","Escape","PageUp","PageDown","End","Home","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Esc","Left","Up","Right","Down"],S=c.inherit({_supportedKeys:function(){var e=function(e){e.stopPropagation()};return{space:e,enter:e,leftArrow:e,rightArrow:e}},_setDeprecatedOptions:function(){this.callBase(),s(this._deprecatedOptions,{attr:{since:"16.2",alias:"inputAttr"}})},_getDefaultOptions:function(){return s(this.callBase(),{value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,valueFormat:function(e){return e}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=(l.current()||"").split(".")[0];return"android5"===e},options:{validationMessageOffset:{v:-8}}}])},_input:function(){return this.element().find(m).first()},_inputWrapper:function(){return this.element()},_buttonsContainer:function(){return this._inputWrapper().find("."+_)},_isControlKey:function(e){return I.indexOf(e)!==-1},_render:function(){this.element().addClass(p),this._renderInput(),this._renderInputType(),this._renderValue(),this._renderProps(),this._renderPlaceholder(),this.callBase(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){i("
").addClass(g).append(this._createInput()).append(i("
").addClass(_)).appendTo(this.element())},_createInput:function(){var e=i("<input>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_applyInputAttributes:function(e,t){e.attr("autocomplete","off").attr(t).addClass(f).css("min-height",this.option("height")?"0":"")},_renderValue:function(){this._renderInputValue(),this._renderInputAddons()},_renderInputValue:function(e){e=e||this.option("value");var t=this.option("text"),n=this.option("displayValue"),i=this.option("valueFormat");void 0!==n&&null!==e?t=i(n):a.isDefined(t)||(t=i(e)),this.option("text",t),this._input().val()!==(a.isDefined(t)?t:"")?this._renderDisplayText(t):this._toggleEmptinessEventHandler()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.element().toggleClass(C,e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this._$placeholder&&this._$placeholder.toggleClass("dx-state-invisible",!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();e?t.attr("disabled",!0):t.removeAttr("disabled")},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),n=this.option("focusStateEnabled");t||!n?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_renderPlaceholder:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this,t=e._input(),n=e.option("placeholder"),o=this._$placeholder=i("
").attr("data-dx_placeholder",n),a=d.addNamespace(u.up,this.NAME);o.on(a,function(){t.focus()}),o.insertAfter(t),o.addClass(v),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||i()},_renderInputAddons:function(){this._renderClearButton()},_renderClearButton:function(){var e=this._clearButtonVisibility();this.element().toggleClass(w,e),e&&((!this._$clearButton||this._$clearButton&&!this._$clearButton.closest(this.element()).length)&&(this._$clearButton=this._createClearButton()),this._$clearButton.prependTo(this._buttonsContainer())),this._$clearButton&&this._$clearButton.toggleClass("dx-state-invisible",!e)},_clearButtonVisibility:function(){return this.option("showClearButton")&&!this.option("readOnly")},_createClearButton:function(){return i("").addClass(b).append(i("").addClass(x).addClass(y)).on(d.addNamespace(u.down,this.NAME),function(e){"mouse"===e.pointerType&&e.preventDefault()}).on(d.addNamespace(h.name,this.NAME),this._clearValueHandler.bind(this))},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._valueChangeEventHandler(e),this.reset(),!t.is(":focus")&&t.focus(),t.trigger("input")},_renderEvents:function(){var e=this,t=e._input();i.each(k,function(n,i){if(e.hasActionSubscription("on"+i)){var o=e._createActionByOption("on"+i,{excludeValidators:["readOnly"]});t.on(d.addNamespace(i.toLowerCase(),e.NAME),function(t){e._disposed||o({jQueryEvent:t})})}})},_refreshEvents:function(){var e=this,t=this._input();i.each(k,function(n,i){t.off(d.addNamespace(i.toLowerCase(),e.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_renderValueChangeEvent:function(){var e=d.addNamespace(this._renderValueEventName(),this.NAME+"TextChange"),t=d.addNamespace(this.option("valueChangeEvent"),this.NAME+"ValueChange");this._input().on(e,this._keyPressHandler.bind(this)).on(t,this._valueChangeEventHandler.bind(this))},_cleanValueChangeEvent:function(){var e=this.NAME+"ValueChange",t=d.addNamespace(this._renderValueEventName(),this.NAME+"TextChange");this._input().off("."+e).off(t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusClassTarget:function(){return this.element()},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase(i(e||this.element()))},_renderEmptinessEvent:function(){var e=this._input();e.on("input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),t=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(t)},_valueChangeEventHandler:function(e,t){this._saveValueChangeEvent(e),this.option("value",arguments.length>1?t:this._input().val())},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),this._input().off("keyup.onEnterKey.dxTextEditor").on("keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||13===e.which&&this._enterKeyAction({jQueryEvent:e})},_updateValue:function(){this.option("text",void 0),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_optionChanged:function(e){var t=e.name;if(r(t.replace("on",""),k)>-1)return void this._refreshEvents();switch(t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this.callBase(e),this._renderInputAddons();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"showClearButton":this._renderInputAddons();break;case"text":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),e.value);break;case"valueFormat":this._invalidate();break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var t=this._input();"search"===e&&(e="text");try{t.prop("type",e)}catch(e){t.prop("type","text")}},focus:function(){this._input().focus()},blur:function(){this._input().is(document.activeElement)&&o.resetActiveElement()},reset:function(){this.option("value","")},on:function(e,t){var n=this.callBase(e,t),i=e.charAt(0).toUpperCase()+e.substr(1); return k.indexOf(i)>=0&&this._refreshEvents(),n}});e.exports=S},function(e,t,n){var i=n(25),o=n(11).extend,a=n(26).inArray,s=n(14),r=s.noop,l=s.isFunction,c=" ",d=i.inherit({ctor:function(e){this._value=c,o(this,e)},next:function(e){return arguments.length?void(this._next=e):this._next},text:r,value:r,rawValue:r,handle:r,_prepareHandlingArgs:function(e,t){t=t||{};var n=e.hasOwnProperty("value")?"value":"text";return e[n]=s.isDefined(t.str)?t.str:e[n],e.start=s.isDefined(t.start)?t.start:e.start,e.length=s.isDefined(t.length)?t.length:e.length,e.index=e.index+1,e},reset:r,clear:r,isAccepted:function(){return!1},adjustedCaret:function(e,t,n){return t?this._adjustedForward(e,0,n):this._adjustedBackward(e,0,n)},_adjustedForward:r,_adjustedBackward:r,isValid:r}),u=d.inherit({next:r,handle:function(){return 0},text:function(){return""},value:function(){return""},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),h=d.inherit({text:function(){return(this._value!==c?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var t=e.hasOwnProperty("value")?e.value:e.text;if(!t||!t.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var n=t[0],i=t.substring(1);return this._tryAcceptChar(n,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))},clear:function(e){this._tryAcceptChar(c,e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,t){if(this._accepted(!1),this._isAllowed(e,t)){var n=e===c?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+n+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){return arguments.length?void(this._isAccepted=!!e):!!this._isAccepted},_isAllowed:function(e,t){return e===c||this._isValid(e,t)},_isValid:function(e,t){var n=this.allowedChars;return n instanceof RegExp?n.test(e):l(n)?n(e,t.index,t.fullText):Array.isArray(n)?a(e,n)>-1:n===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,n){return t>=e?t:this.next()._adjustedForward(e,t+1,n)||t+1},_adjustedBackward:function(e,t){return t>=e-1?e:this.next()._adjustedBackward(e,t+1)||t+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}}),p=h.inherit({value:function(){return this.next().value()},handle:function(e){var t=e.hasOwnProperty("value"),n=t?e.value:e.text;if(!n.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var i=n[0],o=n.substring(1);this._tryAcceptChar(i);var a=this._isAllowed(i)?this._prepareHandlingArgs(e,{str:o,length:e.length-1}):e;return this.next().handle(a)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},_adjustedForward:function(e,t,n){return t>=e&&n===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,n)},_adjustedBackward:function(e,t){return t>=e-1?0:this.next()._adjustedBackward(e,t+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});e.exports.MaskRule=h,e.exports.StubMaskRule=p,e.exports.EmptyMaskRule=u},function(e,t,n){var i=n(220),o=n(57);o("dxList",i),e.exports=i},function(e,t,n){var i=n(9),o=n(72),a=n(11).extend,s=n(221),r=n(90),l=n(222),c=n(232),d="dx-list-item-selected",u="dx-list-item-response-wait",h=c.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(t){e.option("allowItemDeleting")&&(t.preventDefault(),e.deleteItem(e.option("focusedElement")))},i=function(n){if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement")),o=e._editStrategy.getItemElement(i-1);e.reorderItem(e.option("focusedElement"),o),e.scrollToItem(e.option("focusedElement"))}else t.upArrow(n)},o=function(n){if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement")),o=e._editStrategy.getItemElement(i+1);e.reorderItem(e.option("focusedElement"),o),e.scrollToItem(e.option("focusedElement"))}else t.downArrow(n)};return a({},t,{del:n,upArrow:i,downArrow:o})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getDefaultOptions:function(){return a(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:r.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"toggle",allowItemReordering:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"ios"===e.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}},{device:{platform:"win"},options:{itemDeleteMode:"context"}},{device:{platform:"generic"},options:{itemDeleteMode:"static"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new l(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new s(this):this.callBase()},_render:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return d},_itemResponseWaitClass:function(){return u},_itemClickHandler:function(e){var t=i(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=this._editProvider.handleClick(t,e);n||this.callBase.apply(this,arguments)}},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(e){var t=i(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=o.isTouchEvent(e),a=n&&this._editProvider.handleContextMenu(t,e);return a?void(e.handledByEditProvider=!0):void this.callBase.apply(this,arguments)}},_itemContextMenuHandler:function(e){var t=i(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e);return n?void e.preventDefault():void this.callBase.apply(this,arguments)}},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(e)},_clean:function(){this._disposeEditProvider(),this.callBase()},_optionChanged:function(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"allowItemReordering":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(e){return this._itemElements().index(e)},getItemElementByFlatIndex:function(e){var t=this._itemElements();return e<0||e>=t.length?i():t.eq(e)},getItemByIndex:function(e){return this._editStrategy.getItemDataByIndex(e)}});e.exports=h},function(e,t,n){var i=n(9),o=n(14).isNumeric,a=n(168),s="dx-list-item",r="dx-list-group",l=20,c=2303,d=function(e){return(e.group<<l)+e.item},u=function(e){return{group:e>>l,item:e&c}},h=a.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+r)},_groupItemElements:function(e){return e.find("."+s)},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),n=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),i.each(t,function(t,o){return!!o.items&&(i.each(o.items,function(i,o){return o!==e||(n={group:t,item:i},!1)}),!n&&void 0)}),n)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return o(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),n=0;n<t.length;n++)t[n]&&t[n].items?e=e.concat(t[n].items):e.push(t[n]);return e},deleteItemAtIndex:function(e){var t=u(e),n=this._collectionWidget.option("items")[t.group].items;n.splice(t.item,1)},getKeysByItems:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);var i=[];for(n=0;n<t.length;n++)i.push(this._collectionWidget.keyOf(t[n]));return i},getIndexByKey:function(e,t){var n=t||this._collectionWidget.option("items"),o=-1,a=this;return i.each(n,function(t,n){if(n.items){var s=a.getKeysByItems(n.items);return i.each(s,function(n,i){if(a._equalKeys(i,e))return o={group:t,item:n},!1}),o===-1&&void 0}}),o},getItemsByKeys:function(e){var t=[];return i.each(e,function(e,n){var o,a=function(e){var t=this.getIndexByKey(n,e),i=t&&e[t.group];if(i)return{groupKey:i.key,item:i.items[t.item]}}.bind(this),s=a(this._collectionWidget.option("items"))||a(this._collectionWidget.option("selectedItems")),r=s.groupKey,l=s.item;i.each(t,function(e,t){if(t.key===r)return o=t,!1}),o||(o={key:r,items:[]},t.push(o)),o.items.push(l)}.bind(this)),t},moveItemAtIndexToIndex:function(e,t){var n=this._collectionWidget.option("items"),i=u(e),o=u(t),a=n[i.group].items,s=n[o.group].items,r=a[i.item];a.splice(i.item,1),s.splice(o.item,0,r)},_isItemIndex:function(e){return e&&o(e.group)&&o(e.item)},_getNormalizedItemIndex:function(e){var t=i(e),n=t.closest("."+r);return n.length?d({group:this._groupElements().index(n),item:this._groupItemElements(n).index(t)}):-1},_normalizeItemIndex:function(e){return d(e)},_denormalizeItemIndex:function(e){return u(e)},_getItemByNormalizedIndex:function(e){var t=u(e),n=this._groupElements().eq(t.group);return this._groupItemElements(n).eq(t.item)},_itemsFromSameParent:function(e,t){return u(e).group===u(t).group}});e.exports=h},function(e,t,n){var i=n(9),o=n(14).noop,a=n(25),s=n(11).extend,r=n(22),l=n(223);n(224),n(226),n(228),n(230),n(231),n(248),n(251);var c=[],d=function(e,t,n){c.push({enabled:e,decoratorType:t,decoratorSubType:n})};d(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),d(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"},function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),"hold"===e&&(e="context"),e}),d(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),d(function(){return this.option("allowItemReordering")},function(){return"reorder"},function(){return"default"});var u="dx-list-item-before-bag",h="dx-list-item-after-bag",p="beforeBag",f="afterBag",m="modifyElement",g="afterRender",_=a.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&i.each(this._decorators,function(e,t){t.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],i.each(c,function(e,t){var n=t.enabled.call(this._list);if(n){var i=t.decoratorType.call(this._list),o=t.decoratorSubType.call(this._list),a=this._createDecorator(i,o);this._decorators.push(a)}}.bind(this))},_createDecorator:function(e,t){var n=this._findDecorator(e,t);return new n(this._list)},_findDecorator:function(e,t){var n=l.registry[e][t];if(!n)throw r.Error("E1012",e,t);return n},modifyItemElement:function(e){var t=i(e.itemElement),n={$itemElement:t};this._prependBeforeBags(t,n),this._appendAfterBags(t,n),this._applyDecorators(m,n)},afterItemsRendered:function(){this._applyDecorators(g)},_prependBeforeBags:function(e,t){var n=this._collectDecoratorsMarkup(p,t,u);e.prepend(n)},_appendAfterBags:function(e,t){var n=this._collectDecoratorsMarkup(f,t,h);e.append(n)},_collectDecoratorsMarkup:function(e,t,n){var o=i("<div />");return i.each(this._decorators,function(){var a=i("<div />").addClass(n);this[e](s({$container:a},t)),a.children().length&&o.append(a)}),o.children()},_applyDecorators:function(e,t){i.each(this._decorators,function(){this[e](t)})},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,n=t.length,i=0;i<n;i++)if(t[i][e]!==o)return!0;return!1},_eventHandler:function(e,t,n){if(!this._decorators)return!1;for(var i=!1,o=this._decorators,a=o.length,s=0;s<a&&!(i=o[s][e](t,n));s++);return i},handleClick:function(e,t){return this._eventHandler("handleClick",e,t)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(e,t){return this._eventHandler("handleContextMenu",e,t)}});e.exports=_},function(e,t,n){var i=n(11).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,s={};s[e]=a[e]?a[e]:{},s[e][n]=o,a=i(a,s)}},function(e,t,n){var i=n(9),o=n(202),a=n(223).register,s=n(225),r="dx-list-static-delete-button-container",l="dx-list-static-delete-button";a("delete","static",s.inherit({afterBag:function(e){var t=e.$itemElement,n=e.$container,a=i("
").addClass(l);this._list._createComponent(a,o,{icon:"remove",onClick:function(e){e.jQueryEvent.stopPropagation(),this._deleteItem(t)}.bind(this),integrationOptions:{}}),n.addClass(r).append(a)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}}))},function(e,t,n){var i=n(9),o=n(14).noop,a=n(25),s=n(184),r=n(72),l="dxListEditDecorator",c=r.addNamespace(s.start,l),d=r.addNamespace(s.swipe,l),u=r.addNamespace(s.end,l),h=a.inherit({ctor:function(e){this._list=e,this._init()},_init:o,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};e.$itemElement.on(c,t,this._itemSwipeStartHandler.bind(this)).on(d,this._itemSwipeUpdateHandler.bind(this)).on(u,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):void this._swipeStartHandler(t,e)},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:o,afterBag:o,_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,handleClick:o,handleContextMenu:o,_swipeStartHandler:o,_swipeUpdateHandler:o,_swipeEndHandler:o,visibilityChange:o,dispose:o});e.exports=h},function(e,t,n){var i=n(9),o=n(69),a=n(202),s=n(90),r=n(223).register,l=n(227),c="dx-list-switchable-delete-button-container",d="dx-list-switchable-delete-button-wrapper",u="dx-list-switchable-delete-button-inner-wrapper",h="dx-list-switchable-delete-button",p=200,f=l.inherit({_init:function(){this.callBase.apply(this,arguments);var e=i("
").addClass(c),t=i("<div />").addClass(d),n=i("<div />").addClass(u),o=i("<div />").addClass(h);this._list._createComponent(o,a,{text:s.format("dxListEditDecorator-delete"),type:"danger",onClick:function(e){this._deleteItem(),e.jQueryEvent.stopPropagation()}.bind(this),integrationOptions:{}}),e.append(t),t.append(n),n.append(o),this._$buttonContainer=e},_enablePositioning:function(e){this.callBase.apply(this,arguments),o.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.element().width(),n=this._buttonWidth(),i=e?t:-n,a=e?t-n:0;return o.animate(this._$buttonContainer,{type:"custom",duration:p,from:{right:i},to:{right:a}})},_animateForgetDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.element().width(),n=this._buttonWidth(),i=e?t-n:0,a=e?t:-n;return o.animate(this._$buttonContainer,{type:"custom",duration:p,from:{right:i},to:{right:a}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=this._$buttonContainer.outerWidth()),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}}),m="dx-list-toggle-delete-switch-container",g="dx-list-toggle-delete-switch";r("delete","toggle",f.inherit({beforeBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div />").addClass(g);this._list._createComponent(o,a,{icon:"toggle-delete",onClick:function(e){this._toggleDeleteReady(t),e.jQueryEvent.stopPropagation()}.bind(this),integrationOptions:{}}),n.addClass(m),n.append(o)}})),r("delete","slideButton",f.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(e,t){return 0!==t.targetOffset&&this._toggleDeleteReady(e),!0}})),e.exports=f},function(e,t,n){var i=n(9),o=n(14).noop,a=n(225),s=a.abstract,r=n(72),l=n(77),c=n(105),d="dxListEditDecorator",u=r.addNamespace(l.down,d),h=r.addNamespace(c.active,d),p="dx-list-item-content",f="dx-list-switchable-delete-ready",m="dx-list-switchable-menu-shield-positioning",g="dx-list-switchable-delete-top-shield",_="dx-list-switchable-delete-bottom-shield",v="dx-list-switchable-menu-item-shield-positioning",w="dx-list-switchable-delete-item-content-shield",x=a.inherit({_init:function(){this._$topShield=i("<div />").addClass(g),this._$bottomShield=i("<div />").addClass(_),this._$itemContentShield=i("<div />").addClass(w),this._$topShield.on(u,this._cancelDeleteReadyItem.bind(this)),this._$bottomShield.on(u,this._cancelDeleteReadyItem.bind(this)),this._list.element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(f)},_toggleShields:function(e,t){this._list.element().toggleClass(m,t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.element(),n=t.offset().top,i=t.outerHeight(),o=e.offset().top,a=e.outerHeight(),s=o-n,r=i-a-s;this._$topShield.height(Math.max(s,0)),this._$bottomShield.height(Math.max(r,0))},_toggleContentShield:function(e,t){t?e.find("."+p).first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.jQueryEvent.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(v),e.on(h,o)},_disablePositioning:function(e){e.removeClass(v),e.off(h)},_prepareDeleteReady:function(e){e.addClass(f)},_forgetDeleteReady:function(e){e.removeClass(f)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_deleteItem:function(e){e=e||this._$readyToDeleteItem,e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});e.exports=x},function(e,t,n){var i=n(9),o=n(14).noop,a=n(76),s=n(90),r=n(70),l=n(72),c=n(105),d=n(229),u=n(223).register,h=n(227),p=n(69),f=n(207),m="dxListEditDecorator",g=l.addNamespace(a.name,m),_=l.addNamespace(c.active,m),v="dx-list-slide-menu",w="dx-list-slide-menu-wrapper",x="dx-list-slide-menu-content",y="dx-list-slide-menu-buttons-container",b="dx-list-slide-menu-buttons",C="dx-list-slide-menu-button",k="dx-list-slide-menu-button-menu",I="dx-list-slide-menu-button-delete",S=400,D="cubic-bezier(0.075, 0.82, 0.165, 1)";u("menu","slide",h.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=i("<div/>").addClass(y).on(_,o),this._$buttons=i("<div/>").addClass(b).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,function(e){e.stopPropagation(),this._fireAction(t)}.bind(this))}else{var n=i("<div />").addClass(v);this._menu=this._list._createComponent(n,f,{showTitle:!1,items:e,onItemClick:function(e){this._fireAction(e.itemData)}.bind(this),integrationOptions:{}}),n.appendTo(this._list.element());var o=this._renderMenuButton(s.format("dxListEditDecorator-more"),function(e){e.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",o)}}},_renderMenuButton:function(e,t){var n=i("<div/>").addClass(C).addClass(k).text(e);return this._$buttons.append(n),n.on(g,t),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=i("<div/>").addClass(C).addClass(I).text(s.format("dxListEditDecorator-delete"));e.on(g,function(e){e.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction(i(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass(w);var n=i("<div/>").addClass(x);t.wrapInner(n)},handleClick:function(e,t){return!!i(t.target).closest("."+x).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var n=this._isRtlEnabled(),i=n?-1:1,o=this._isReadyToDelete(e),a=this._getCurrentPositions().content===this._getStartPositions().content;if(a&&!o&&t.offset*i>0)return void(t.cancel=!0);var s=this._cachedItemWidth*t.offset,r=o?-this._cachedButtonWidth*i:0,l=(s+r)*i,c=l<0?Math.abs((s+r)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(c)),!0},_getStartPositions:function(){var e=this._isRtlEnabled(),t=e?-1:1;return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*t}},_getPositions:function(e){var t=this._isRtlEnabled(),n=t?-1:1,i=this._getStartPositions();return{content:i.content-e*this._cachedButtonWidth*n,buttonsContainer:i.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*n,buttons:i.buttons+Math.min(e,1)*this._cachedButtonWidth*n}},_getCurrentPositions:function(){return{content:r.locate(this._$cachedContent).left,buttonsContainer:r.locate(this._$buttonsContainer).left,buttons:r.locate(this._$buttons).left}},_setPositions:function(e){r.move(this._$cachedContent,{left:e.content}),r.move(this._$buttonsContainer,{left:e.buttonsContainer}),r.move(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+x),this._cachedItemWidth=e.outerWidth(),this._cachedButtonWidth=this._cachedButtonWidth||this._$buttons.outerWidth(),this._$buttonsContainer.width(this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*t.offset,o=!this._isReadyToDelete(e)&&i*n>.2*this._cachedButtonWidth,a=t.targetOffset===n&&o;return this._toggleDeleteReady(e,a),!0},_enablePositioning:function(e){p.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-e.content)/this._cachedButtonWidth,1);return p.animate(this._$cachedContent,{from:n,to:e,easing:D,duration:S*i,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(d))},function(e,t){var n={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}};e.exports=n},function(e,t,n){var i=n(9),o=n(70),a=n(69),s=n(223).register,r=n(225);s("delete","swipe",r.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(e,t,n){var s=i.Deferred(),r=t*this._itemElementWidth;return n?a.animate(e,{to:{left:r},type:"slide",complete:function(){s.resolve(e,t)}}):(o.move(e,{left:r}),s.resolve()),s.promise()},_swipeStartHandler:function(e){return this._itemElementWidth=e.width(),!0},_swipeUpdateHandler:function(e,t){return this._renderItemPosition(e,t.offset),!0},_swipeEndHandler:function(e,t){var n=t.targetOffset;return this._renderItemPosition(e,n,!0).done(function(e,t){Math.abs(t)&&this._list.deleteItem(e).fail(function(){this._renderItemPosition(e,0,!0)}.bind(this))}.bind(this)),!0}}))},function(e,t,n){var i=n(9),o=n(229),a=n(90),s=n(223).register,r=n(225),l=n(110),c=n(232),d="dx-list-context-menu",u="dx-list-context-menucontent";s("menu","context",r.inherit({_init:function(){var e=i("<div/>").addClass(d);this._list.element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,l,{shading:!1,deferRendering:!0,closeOnTargetScroll:!0,closeOnOutsideClick:function(e){return!i(e.target).closest("."+d).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return this._$menuList.outerHeight()}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},height:function(){return this._$menuList?this._$menuList.outerHeight():0}.bind(this),width:function(){return this._list.element().outerWidth()}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:a.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=i("
"),this._list._createComponent(this._$menuList,c,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass(u),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.element().remove(),this.callBase.apply(this,arguments)}}).include(o))},function(e,t,n){var i=n(9),o=n(14),a=n(12),s=n(50).compileGetter,r=n(11).extend,l=n(76),c=n(184),d=n(61),u=n(90),h=n(203),p=n(53),f=n(233),m=n(202),g=n(72),_=n(144),v=n(234),w=n(245).deviceDependentOptions,x=n(150),y=n(167),b="dx-list",C="dx-list-item",k="."+C,I="dx-list-group",S="dx-list-group-header",D="dx-list-group-body",T="dx-list-collapsible-groups",E="dx-list-group-collapsed",A="dx-has-next",B="dx-list-next-button",M=".dx-list-select-all",R="dxListItemData",O=70,P=s("items"),V=x.inherit({_activeStateUnit:[k,M].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t),o=i.is(e.option("focusedElement"));o&&(a(i,t),i=n(t)),e.option("focusedElement",i),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.element().height(),a=e.option("focusedElement"),s=!0;if(!a)return i();for(;s;){var r=a[t]();if(!r.length)break;var l=r.position().top+r.outerHeight()/2;s=l<o+n&&l>n,s&&(a=r)}return a},a=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.element().height()+t.outerHeight()),e.scrollTo(i)};return r(this.callBase(),{leftArrow:o.noop,rightArrow:o.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_setDeprecatedOptions:function(){this.callBase(),r(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 r(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:u.format("dxList-pullingDownText"),pulledDownText:u.format("dxList-pulledDownText"),refreshingText:u.format("dxList-refreshingText"),pageLoadingText:u.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:u.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat(w(),[{device:function(){return!d.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!d.nativeScrolling&&!p.isSimulator()&&"generic"===p.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===p.real().deviceType&&!p.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(_.current())},options:{useInkRipple:!0}},{device:function(){return"win"===p.current().platform&&p.isSimulator()},options:{bounceEnabled:!1}}])},_visibilityChanged:function(e){ e&&this._updateLoadingState(!0)},_itemClass:function(){return C},_itemDataKey:function(){return R},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+I).children("."+D).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},reorderItem:function(e,t){this.callBase(e,t),this._refreshItemElements()},_deleteItem:function(e){this.callBase(e),this._refreshItemElements()},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.element(),this._initScrollView(),this._feedbackShowTimeout=O,this._createGroupRenderAction(),this.setAria("role","listbox")},_dataSourceOptions:function(){this._suppressDeprecatedWarnings();var e=this.option("autoPagingEnabled");return e=o.isDefined(this.option("showNextButton"))?e||this.option("showNextButton"):e,this._resumeDeprecatedWarnings(),r(this.callBase(),{paginate:!o.isDefined(e)||e})},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){this._suppressDeprecatedWarnings();var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&o.ensureDefined(this.option("autoPagingEnabled"),"scrollBottom"===this.option("pageLoadMode"))&&!!this._dataSource;this._resumeDeprecatedWarnings(),this._scrollView=this._createComponent(this.element(),v,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=this._scrollView.content(),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new y(function(e,t){a.isPlainObject(t)?t.key&&e.text(t.key):e.html(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_updateLoadingState:function(e){this._suppressDeprecatedWarnings();var t=!e||this._isLastPage(),n=o.ensureDefined(this.option("autoPagingEnabled"),"scrollBottom"===this.option("pageLoadMode")),i=t||!n,a=i&&!this._isDataSourceLoading();this._resumeDeprecatedWarnings(),i||this._scrollViewIsFull()?(this._scrollView.release(a),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){this._suppressDeprecatedWarnings();var e=o.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(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){this._shouldAppendItems()||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.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this.element().is(":visible");!e||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(i.each(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=g.addNamespace(l.name,this.NAME),t="."+S,n=this.element(),o=this.option("collapsibleGroups");n.toggleClass(T,o),n.off(e,t),o&&n.on(e,t,function(e){this._createAction(function(e){var t=i(e.jQueryEvent.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",t.find("."+C).eq(0))}.bind(this),{validatingTargetName:"element"})({jQueryEvent:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=i.Deferred(),o=e.children("."+D);e.toggleClass(E,t);var a="slideToggle";return t===!0&&(a="slideUp"),t===!1&&(a="slideDown"),o[a]({duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_render:function(){this._itemElementsCache=i(),this.element().addClass(b),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=h.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._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(e.itemElement))},_attachSwipeEvent:function(e){var t=g.addNamespace(c.end,this.NAME);e.on(t,this._itemSwipeEndHandler.bind(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=i("
").addClass(I).appendTo(this._itemContainer()),o=i("
").addClass(S).appendTo(n),a=this.option("groupTemplate"),s=this._getTemplate(t.template||a,t,e,o),r={index:e,itemData:t,container:o};this._createItemByTemplate(s,r),this._renderingGroupIndex=e;var l=i("
").addClass(D).appendTo(n);i.each(P(t)||[],function(e,t){this._renderItem(e,t,l)}.bind(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(A,e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=i("
").addClass(B),t=i("
").appendTo(e);return this._createComponent(t,m,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)},_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;case"showChevronExpr":case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+I),n=t.find("."+C);return r(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=i.Deferred(),n=this._itemContainer().find("."+I).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=i.Deferred(),n=this._itemContainer().find("."+I).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=i.Deferred();return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),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)}});V.ItemClass=f,e.exports=V},function(e,t,n){var i=n(9),o=n(164),a="dx-list-item-badge-container",s="dx-list-item-badge",r="dx-badge",l="dx-list-item-chevron-container",c="dx-list-item-chevron",d=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children("."+a).remove(),e){var t=i("
").addClass(a).append(i("
").addClass(s).addClass(r).text(e)),n=this._$element.children("."+l).first();n.length>0?t.insertBefore(n):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+l).remove(),e){var t=i("
").addClass(l),n=i("
").addClass(c);t.append(n).appendTo(this._$element)}}});e.exports=d},function(e,t,n){e.exports=n(235)},function(e,t,n){var i=n(9),o=n(53),a=n(90),s=n(57),r=n(11).extend,l=n(236),c=n(240),d=n(241),u=n(242),h=n(245),p=n(239),f=n(15),m=n(247),g="dx-scrollview",_=g+"-content",v=g+"-top-pocket",w=g+"-bottom-pocket",x=g+"-pull-down",y=g+"-scrollbottom",b=y+"-indicator",C=y+"-text",k=g+"-loadpanel",I={pullDown:l,swipeDown:c,slideDown:d,simulated:u},S=h.inherit({_getDefaultOptions:function(){return r(this.callBase(),{pullingDownText:a.format("dxScrollView-pullingDownText"),pulledDownText:a.format("dxScrollView-pulledDownText"),refreshingText:a.format("dxScrollView-refreshingText"),reachBottomText:a.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=o.real();return"android"===e.platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return"win"===o.real().platform},options:{refreshStrategy:"slideDown"}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initMarkup:function(){this.callBase(),this.element().addClass(g),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=i("
").addClass(_);this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=i("
").addClass(v),t=this._$pullDown=i("
").addClass(x);e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=i("
").addClass(w),t=this._$reachBottom=i("
").addClass(y),n=i("
").addClass(b),o=new p(i("
")).element(),a=this._$reachBottomText=i("
").addClass(C);this._updateReachBottomText(),t.append(n.append(o)).append(a),e.append(t),this._$content.append(e)},_initLoadPanel:function(){this._loadPanel=this._createComponent(i("
").addClass(k).appendTo(this.element()),m,{shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.element()}})},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=I[e];if(!t)throw Error("E1030",this.option("refreshStrategy"));this._strategy=new t(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._refreshPocketState()},_refreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")&&!f().designMode),this._reachBottomEnable(this.hasActionSubscription("onReachBottom")&&!f().designMode)},on:function(e){var t=this.callBase.apply(this,arguments);return"pullDown"!==e&&"reachBottom"!==e||this._refreshPocketState(),t},_pullDownEnable:function(e){return 0===arguments.length?this._pullDownEnabled:(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),void(this._pullDownEnabled=e))},_reachBottomEnable:function(e){return 0===arguments.length?this._reachBottomEnabled:(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),void(this._reachBottomEnabled=e))},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){return arguments.length<1?this._loadingIndicatorEnabled:void(this._loadingIndicatorEnabled=e)},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},isEmpty:function(){return!this.content().children().length},content:function(){return this._$content.children().eq(1)},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},isFull:function(){return this.content().height()>this._$container.height()},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.element().remove()}});s("dxScrollView",S),e.exports=S},function(e,t,n){var i=n(9),o=n(70),a=n(237),s=n(239),r="dx-scrollview-pull-down-loading",l="dx-scrollview-pull-down-ready",c="dx-scrollview-pull-down-image",d="dx-scrollview-pull-down-indicator",u="dx-scrollview-pull-down-text",h=0,p=1,f=2,m=3,g=400,_=a.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$bottomPocket=e._$bottomPocket,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=e.content(),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=i.Callbacks(),this.releaseCallbacks=i.Callbacks(),this.reachBottomCallbacks=i.Callbacks()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("
").addClass(c),t=i("
").addClass(d),n=new s(i("
")).element(),o=this._$pullDownText=i("
").addClass(u);this._$pullingDownText=i("
").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("
").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("
").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},_releaseState:function(){this._state=h,this._refreshPullDownText()},_pushBackFromBoundary:function(){this._isLocked()||this._component.isEmpty()||this.callBase()},_refreshPullDownText:function(){this._$pullingDownText.css("opacity",this._state===h?1:0),this._$pulledDownText.css("opacity",this._state===p?1:0),this._$refreshingText.css("opacity",this._state===f?1:0)},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){this._state===p&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){o.move(this._$topPocket,{top:e}),o.move(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),this._state!==f){var t=this.location().top,n=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this._state!==m&&(this._state=m,this.reachBottomCallbacks.fire())},_pullDownReady:function(){this._state!==p&&(this._state=p,this._$pullDown.addClass(l),this._refreshPullDownText())},_stateReleased:function(){this._state!==h&&(this._$pullDown.removeClass(r).removeClass(l),this._releaseState())},_pullDownRefreshing:function(){this._state!==f&&(this._state=f,this._$pullDown.addClass(r).removeClass(l),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=p},release:function(){var e=i.Deferred();return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._state===m&&(this._state=h),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),g),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=_},function(e,t,n){var i=n(9),o=n(14).noop,a=n(53),s=n(25),r=n(238),l="dxNativeScrollable",c="dx-scrollable-native",d="dx-scrollable-scrollbar-simulated",u="dx-scrollable-scrollbars-hidden",h="vertical",p="horizontal",f=500,m=s.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=a.real(),t=e.platform;this._$element.addClass(c).addClass(c+"-"+t).toggleClass(u,!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:o,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(d),this._renderScrollbar(h),this._renderScrollbar(p)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new r(i("
").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:o,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:o,handleStop:o,_eachScrollbar:function(e){e=e.bind(this),i.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(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),f)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:o,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.content().height(),width:this._component.content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===h?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(h)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(p)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(c+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),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()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=m},function(e,t,n){var i=n(9),o=n(70),a=n(96),s=n(72),r=n(14),l=n(12).isPlainObject,c=n(11).extend,d=n(77),u="dxScrollbar",h="dx-scrollable-scrollbar",p=h+"-active",f="dx-scrollable-scroll",m="dx-scrollable-scroll-content",g="dx-scrollbar-hoverable",_="horizontal",v=15,w={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},x=a.inherit({_getDefaultOptions:function(){return c(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:w.onScroll,containerSize:0,contentSize:0,expandable:!0})},_init:function(){this.callBase(),this._isHovered=!1},_render:function(){this._renderThumb(),this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.element().toggleClass(g,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=i("
").addClass(f),i("
").addClass(m).appendTo(this._$thumb),this.element().addClass(h).append(this._$thumb)},isThumb:function(e){return!!this.element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===w.onHover||e===w.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.element().addClass("dx-scrollbar-"+e),this._dimension=e===_?"width":"height",this._prop=e===_?"left":"top"},_attachPointerDownHandler:function(){this._$thumb.on(s.addNamespace(d.down,u),this.feedbackOn.bind(this))},feedbackOn:function(){this.element().addClass(p),y=this},feedbackOff:function(){this.element().removeClass(p),y=null},cursorEnter:function(){this._isHovered=!0,this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===w.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this.containerToContentRatio()&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case w.onScroll:break;case w.onHover:e=e||!!this._isHovered;break;case w.never:e=!1;break;case w.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){l(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),o.move(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize"));this._containerToContentRatio=t?e/t:e;var n=Math.round(Math.max(Math.round(e*this._containerToContentRatio),v));this._thumbRatio=(e-n)/(t-e),this.option(this._dimension,n),this.element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===w.never},_needScrollbar:function(){return!this._isHidden()&&this._containerToContentRatio<1},containerToContentRatio:function(){return this._containerToContentRatio},_normalizeSize:function(e){return l(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===y&&(y=null),this._$thumb.off("."+u)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"visibilityMode":case"direction":this._invalidate();break;default:this.callBase.apply(this,arguments)}},update:r.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),y=null;i(document).on(s.addNamespace(d.up,u),function(){y&&y.feedbackOff()}),e.exports=x},function(e,t,n){var i=n(9),o=n(61),a=n(144),s=n(23),r=n(11).extend,l=n(53),c=n(57),d=n(96),u="dx-loadindicator",h="dx-loadindicator-wrapper",p="dx-loadindicator-content",f="dx-loadindicator-icon",m="dx-loadindicator-segment",g="dx-loadindicator-segment-inner",_="dx-loadindicator-image",v=d.inherit({_getDefaultOptions:function(){return r(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=function(){var e=a.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=i("
").addClass(h),this.element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("
").addClass(p),this._$wrapper.append(this._$content)},_renderMarkup:function(){!o.animation||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("
").addClass(f),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("
").addClass(m).addClass(m+t); e&&n.append(i("
").addClass(g)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(_),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),e.exports=v},function(e,t,n){var i=n(9),o=n(70),a=n(72),s=n(237),r=n(239),l="dx-scrollview-pull-down-loading",c="dx-scrollview-pull-down-indicator",d="dx-scrollview-pull-down-refreshing",u="dx-icon-pulldown",h=0,p=1,f=2,m=4,g=5,_=s.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=e.content(),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=i.Callbacks(),this.releaseCallbacks=i.Callbacks(),this.reachBottomCallbacks=i.Callbacks()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("
").addClass(c),t=new r(i("
")).element();this._$icon=i("
").addClass(u),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=h,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),this._state===h&&0===this._location&&(this._startClientY=a.eventData(e.originalEvent).y,this._state=m)},handleMove:function(e){this.callBase(e),this._deltaY=a.eventData(e.originalEvent).y-this._startClientY,this._state===m&&(this._pullDownEnabled&&this._deltaY>0?this._state=g:this._complete()),this._state===g&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),n=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass(d,t<e),o.move(this._$pullDown,{top:t}),this._$icon.css({transform:"rotate("+n+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&this._state===g&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*this._$element.outerHeight())},_getPullDownStartPosition:function(){return-Math.round(1.5*this._$pullDown.outerHeight())},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){this._state!==m&&this._state!==g||this._releaseState()},handleScroll:function(e){if(this.callBase(e),this._state!==f){var t=this.location().top,n=this._location-t;this._location=t,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){this._state!==h&&(this._$pullDown.removeClass(l),this._releaseState())},_pullDownRefreshing:function(){this._state=f,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(l),o.move(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=p},release:function(){var e=i.Deferred();return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=_},function(e,t,n){var i=n(9),o=n(237),a=0,s=1,r=2,l=80,c=o.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=i.Callbacks(),this.releaseCallbacks=i.Callbacks(),this.reachBottomCallbacks=i.Callbacks()},render:function(){this.callBase(),this._renderPullDown(),this._renderBottom(),this._releaseState(),this._updateDimensions()},_renderPullDown:function(){this._$topPocket.empty()},_renderBottom:function(){this._$bottomPocket.empty().append("<progress>")},_releaseState:function(){this._state!==a&&(this._state=a)},_updateDimensions:function(){this._scrollOffset=this._$container.prop("scrollHeight")-this._$container.prop("clientHeight"),this._containerSize={height:this._$container.prop("clientHeight"),width:this._$container.prop("clientWidth")},this._contentSize=this._componentContentSize={height:this._$container.prop("scrollHeight"),width:this._$container.prop("scrollWidth")}},handleScroll:function(e){this.callBase(e),this._isReachBottom(this._lastLocation.top)&&this._reachBottom()},_isReachBottom:function(e){return this._scrollContent=this._$container.prop("scrollHeight")-this._$container.prop("clientHeight"),this._reachBottomEnabled&&e<-this._scrollContent+l},_reachBottom:function(){this._state!==r&&(this._state=r,this.reachBottomCallbacks.fire())},pullDownEnable:function(e){this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e,this._$bottomPocket.toggle(e)},pendingRelease:function(){this._state=s},release:function(){var e=i.Deferred();return this._state=a,this.releaseCallbacks.fire(),this.update(),e.resolve().promise()}});e.exports=c},function(e,t,n){var i=n(9),o=n(14),a=n(11).extend,s=Math,r=n(243),l=n(239),c="dx-scrollview-pull-down-loading",d="dx-scrollview-pull-down-ready",u="dx-scrollview-pull-down-image",h="dx-scrollview-pull-down-indicator",p="dx-scrollview-pull-down-text",f=0,m=1,g=2,_=3,v=r.Scroller.inherit({ctor:function(){this._topPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=f,this._refreshPullDownText()},_refreshPullDownText:function(){this._$pullingDownText.css("opacity",this._state===f?1:0),this._$pulledDownText.css("opacity",this._state===m?1:0),this._$refreshingText.css("opacity",this._state===g?1:0)},_initCallbacks:function(){this.pullDownCallbacks=i.Callbacks(),this.releaseCallbacks=i.Callbacks(),this.reachBottomCallbacks=i.Callbacks()},_updateBounds:function(){var e="horizontal"!==this._direction;this._topPocketSize=e?this._$topPocket[this._dimension]():0,this._bottomPocketSize=e?this._$bottomPocket[this._dimension]():0,this.callBase(),this._bottomBound=this._minOffset+this._bottomPocketSize},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():this._state!==f&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._bottomBound},_scrollComplete:function(){this._inBounds()&&this._state===m?this._pullDownRefreshing():this._inBounds()&&this._state===_?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){this._state!==_&&(this._state=_,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return s.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){this._state!==m&&(this._state=m,this._maxOffset=0,this._$pullDown.addClass(d),this._refreshPullDownText())},_stateReleased:function(){this._state!==f&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(c).removeClass(d),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){this._state!==g&&(this._state=g,this._$pullDown.addClass(c).removeClass(d),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return this._state===f&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=o.executeAsync(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=this._$topPocket.height()||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=m},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),w=r.SimulatedStrategy.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=i.Callbacks(),this.releaseCallbacks=i.Callbacks(),this.reachBottomCallbacks=i.Callbacks()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=i("
").addClass(u),t=i("
").addClass(h),n=new l(i("
")).element(),o=this._$pullDownText=i("
").addClass(p);this._$pullingDownText=i("
").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("
").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("
").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,n=t._scrollers[e]=new v(t._scrollerOptions(e));n.pullDownCallbacks.add(function(){t.pullDownCallbacks.fire()}),n.releaseCallbacks.add(function(){t.releaseCallbacks.fire()}),n.reachBottomCallbacks.add(function(){t.reachBottomCallbacks.fire()})},_scrollerOptions:function(e){return a(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var e=this.callBase();return e.top+=this._$topPocket.height(),e},dispose:function(){i.each(this._scrollers,function(){this.dispose()}),this.callBase()}});e.exports=w},function(e,t,n){var i,o,a=n(9),s=Math,r=n(39).titleize,l=n(11).extend,c=n(70),d=n(25),u=n(244),h=n(53),p=n(72),f=n(14),m=n(238),g=n(16).when,_=h.real,v="win"===_.platform||"android"===_.platform,w="dxSimulatedScrollable",x="dxScrollableStrategy",y=w+"Cursor",b=w+"Keyboard",C="dx-scrollable-simulated",k="dx-scrollable-scrollbars-hidden",I="dx-scrollable-scrollbars-alwaysvisible",S="dx-scrollable-scrollbar",D="vertical",T="horizontal",E=v?.95:.92,A=.5,B=1,M=s.round(1e3/60),R=20,O=B/5,P=v?300:400,V=P/M,F=(1-s.pow(E,V))/(1-E),H={PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},L=u.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:B,_isFinished:function(){return s.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?E:A},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),z=L.inherit({VELOCITY_LIMIT:O,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return E},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),N=function(e){return"dxmousewheel"===e.type},W=d.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===T?"x":"y",this._prop=e.direction===T?"left":"top",this._dimension=e.direction===T?"width":"height",this._scrollProp=e.direction===T?"scrollLeft":"scrollTop",a.each(e,function(e,t){this["_"+e]=t}.bind(this))},_initAnimators:function(){this._inertiaAnimator=new L(this),this._bounceAnimator=new z(this)},_initScrollbar:function(){this._scrollbar=new m(a("
").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.element()},_visibilityModeNormalize:function(e){return e===!0?"onScroll":e===!1?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||this._$container.triggerHandler({type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,s.max(s.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e:this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e),this._moveContentByTranslator(e)},_moveContentByTranslator:function(e){var t,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};return i[this._prop]=t,this._translateOffset=t,0===t?void c.resetPosition(this._$content):void c.move(this._$content,i)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=this._bounceLocation=this._boundLocation(),t=e-this._location;this._velocity=t/F},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e<this._minOffset&&t>=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=a.Deferred(),this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:f.deferRenderer(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!N(e.originalEvent)){var t=a(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+t/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=A),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=a.Deferred(),this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var e=this;return e._stopScrolling(),f.deferUpdate(function(){e._updateLocation(),e._updateBounds(),e._updateScrollbar(),f.deferRender(function(){e._moveScrollbar(),e._scrollbar.update()})})},_updateLocation:function(){this._location=c.locate(this._$content)[this._prop]-this._$container[this._scrollProp]()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=s.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:f.deferUpdater(function(){var e=this,t=e._containerSize(),n=e._contentSize();f.deferRender(function(){e._scrollbar.option({containerSize:t,contentSize:n})})}),_moveToBounds:f.deferRenderer(f.deferUpdater(f.deferRenderer(function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()}))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._$container[this._dimension]()},_contentSize:function(){var e="hidden"===this._$content.css("overflow-"+this._axis),t=this._$content[this._dimension]();if(!e){var n=this._$content[0]["scroll"+r(this._dimension)];t=s.max(n,t)}return t},_validateEvent:function(e){var t=a(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:f.noop}),$=d.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.element(),this._$container=e._$container,this._$wrapper=e._$wrapper,this._$content=e._$content,this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._$element.addClass(C),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabindex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(T)&&this._createScroller(T),this._isDirection(D)&&this._createScroller(D),this._$element.toggleClass(I,"always"===this.option("showScrollbar")),this._$element.toggleClass(k,!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new W(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done(function(e,n){t=e||n}),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e).done(this._stopAction)},_suppressDirections:function(e){return N(e.originalEvent)?void this._prepareDirections(!0):(this._prepareDirections(),void this._eachScroller(function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i}))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[T]=e,this._validDirections[D]=e},_eachScroller:function(e){e=e.bind(this),a.each(this._scrollers,function(t,n){e(n,t)})},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){o=this},_resetActive:function(){o===this&&(o=null)},handleMove:function(e){return this._isLocked()?(e.cancel=!0,void this._resetActive()):(this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e){e.x*=this._validDirections[T],e.y*=this._validDirections[D]},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._scrollAction()},_attachKeyboardHandler:function(){this._$element.off("."+b),!this.option("disabled")&&this.option("useKeyboard")&&this._$element.on(p.addNamespace("keydown",b),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(this._$container.is(document.activeElement)){var t=!0;switch(e.keyCode){case H.DOWN:this._scrollByLine({y:1});break;case H.UP:this._scrollByLine({y:-1});break;case H.RIGHT:this._scrollByLine({x:1});break;case H.LEFT:this._scrollByLine({x:-1});break;case H.PAGE_DOWN:this._scrollByPage(1);break;case H.PAGE_UP:this._scrollByPage(-1);break;case H.HOME:this._scrollToHome();break;case H.END:this._scrollToEnd();break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){this.scrollBy({top:(e.y||0)*-R,left:(e.x||0)*-R})},_scrollByPage:function(e){var t=this._wheelProp(),n=this._dimensionByProp(t),i={};i[t]=e*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_scrollToHome:function(){var e=this._wheelProp(),t={};t[e]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),n={};n[e]=this._$content[t]()-this._$container[t](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=this,n=t._createActionByOption(e);return function(){n(l(t._createActionArgs(),arguments))}},_createActionArgs:function(){var e=this._scrollers[T],t=this._scrollers[D],n=this.location();return this._scrollOffset={top:t&&-n.top,left:e&&-n.left},{jQueryEvent:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_eventHandler:function(e){var t=a.makeArray(arguments).slice(1),n=a.map(this._scrollers,function(n){return n["_"+e+"Handler"].apply(n,t)});return g.apply(a,n).promise()},location:function(){var e=c.locate(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){this._$element.off("."+y),!this.option("disabled")&&this._isHoverMode()&&this._$element.on(p.addNamespace("mouseenter",y),this._cursorEnterHandler.bind(this)).on(p.addNamespace("mouseleave",y),this._cursorLeaveHandler.bind(this))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){e=e||{},e.originalEvent=e.originalEvent||{},o||e.originalEvent._hoverHandled||(i&&i._cursorLeaveHandler(),i=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){i===this&&o!==i&&(this._eventHandler("cursorLeave"),i=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!o){var t=a(e),n=t.closest("."+C+":not(.dx-state-disabled)"),s=n.length&&n.data(x);i&&i!==s&&i._cursorLeaveHandler(),s&&s._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return g(t,f.deferUpdate(function(){var t=e._allowedDirections();return f.deferRender(function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)}),g().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[D],n=this._scrollers[T];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[T]&&this._scrollers[T]._updateBounds()},scrollBy:function(e){var t=this._scrollers[D],n=this._scrollers[T];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction()},validate:function(e){return!this.option("disabled")&&(!!this.option("bounceEnabled")||(N(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this._scrollers[this._wheelDirection(e)],n=t._reachedMin(),i=t._reachedMax(),o=!n||!i,a=!n&&!i,s=n&&e.delta>0,r=i&&e.delta<0;return o&&(a||s||r)},_validateMove:function(e){return!(!this.option("scrollByContent")&&!a(e.target).closest("."+S).length)&&this._allowedDirection()},getDirection:function(e){return N(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===T?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case T:return T;case D:return D;default:return e&&e.shiftKey?T:D}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),i===this&&(i=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(C),this._eventForUserAction=null,clearTimeout(this._gestureEndTimer)},_detachEventHandlers:function(){this._$element.off("."+y),this._$container.off("."+b)}});t.SimulatedStrategy=$,t.Scroller=W},function(e,t,n){var i=n(14).noop,o=n(25),a=o.abstract,s=n(59),r=o.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,s.cancelAnimationFrame(this._stepAnimationFrame)},_stepCore:function(){return this._isStopped()?void this._stop():this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=s.requestAnimationFrame(this._proxiedStepCore)))},_step:a,_isFinished:i,_stop:i,_complete:i,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});e.exports=r},function(e,t,n){var i=n(9),o=n(61),a=n(23),s=n(14),r=n(12),l=n(11).extend,c=n(53),d=n(57),u=n(43),h=n(103),p=n(72),f=n(246),m=n(243),g=n(237),_=n(16).when,v="dxScrollable",w="dxScrollableStrategy",x="dx-scrollable",y="dx-scrollable-disabled",b="dx-scrollable-container",C="dx-scrollable-wrapper",k="dx-scrollable-content",I="vertical",S="horizontal",D="both",T=void 0!==document.onbeforeactivate,E=function(){return[{device:function(){return!o.nativeScrolling},options:{useNative:!1}},{device:function(e){return!c.isSimulator()&&"generic"===c.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:o.touch,showScrollbar:"onHover"}}]},A=u.inherit({_getDefaultOptions:function(){return l(this.callBase(),{disabled:!1,onScroll:null,direction:I,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(E(),[{device:function(){return o.nativeScrolling&&"android"===c.real().platform},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===c.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){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(x),t=this._$container=i("
").addClass(b),n=this._$wrapper=i("
").addClass(C),o=this._$content=i("
").addClass(k);T&&e.on(p.addNamespace("beforeactivate",v),function(e){i(e.target).is(h.focusable)||e.preventDefault()}),o.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==c.real().deviceType||navigator.platform.indexOf("Mac")>-1&&a.webkit||this.element().addClass("dx-scrollable-customizable-scrollbars")},_render:function(){this._renderDirection(),this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._toggleRTLDirection(this.option("rtlEnabled"))},_toggleRTLDirection:function(e){var t=this;this.callBase(e),this._updateBounds(),e&&this.option("direction")!==I&&s.deferUpdate(function(){var e=t.scrollWidth()-t.clientWidth(); s.deferRender(function(){t.scrollTo({left:e})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};this._$wrapper.off("."+v).on(p.addNamespace(f.init,v),t,this._initHandler.bind(this)).on(p.addNamespace(f.start,v),e.handleStart.bind(e)).on(p.addNamespace(f.move,v),e.handleMove.bind(e)).on(p.addNamespace(f.end,v),e.handleEnd.bind(e)).on(p.addNamespace(f.cancel,v),e.handleCancel.bind(e)).on(p.addNamespace(f.stop,v),e.handleStop.bind(e)),this._$container.off("."+v).on(p.addNamespace("scroll",v),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.element().toggleClass(y,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.element().removeClass("dx-scrollable-"+S).removeClass("dx-scrollable-"+I).removeClass("dx-scrollable-"+D).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.element().data(w,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new g(this):new m.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"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===I?"left":e===S?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(r.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!==I?-e:void 0,top:i!==S?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===I?t!==S:e===S?t!==I:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(D)&&e.vertical&&e.horizontal?this._allowedDirectionValue=D:this._isDirection(S)&&e.horizontal?this._allowedDirectionValue=S:this._isDirection(I)&&e.vertical?this._allowedDirectionValue=I:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},content:function(){return this._$content},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.content().outerWidth()},update:function(){var e=this;return _(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=i(e),o=this.content().find(e).length,a=n.parents("."+x).length-n.parents("."+k).length===0;if(o&&a){var s={top:0,left:0},r=this.option("direction");r!==I&&(s.left=this._scrollToElementPosition(n,S,t)),r!==S&&(s.top=this._scrollToElementPosition(n,I,t)),this.scrollTo(s)}},_scrollToElementPosition:function(e,t,n){var i=t===I,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,s=i?this._strategy.verticalOffset():0,r=this._elementPositionRelativeToContent(e,i?"top":"left"),l=r-s,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 h<=0&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});d(v,A),e.exports=A,e.exports.deviceDependentOptions=E},function(e,t,n){var i=n(9),o=n(25),a=o.abstract,s=n(72),r=n(87),l=n(85),c=n(59),d=n(53).real(),u=n(17).compare,h="dxscrollinit",p="dxscrollstart",f="dxscroll",m="dxscrollend",g="dxscrollstop",_="dxscrollcancel",v=function(e){return"dxmousewheel"===e.type},w=o.inherit(function(){var e=s.addNamespace("scroll","dxScrollEmitter");return{ctor:function(t){this._element=t,this._locked=!1;var n=this;this._proxiedScroll=function(e){n._scroll(e)},i(this._element).on(e,this._proxiedScroll)},_scroll:a,check:function(e,t){this._locked&&t()},dispose:function(){i(this._element).off(e,this._proxiedScroll)}}}()),x=w.inherit(function(){return{ctor:function(e,t){this.callBase(e),this._timeout=t},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout(function(){e._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}}()),y=x.inherit(function(){var e=400;return{ctor:function(t){this.callBase(t,e),this._lastWheelDirection=null},check:function(e,t){this._checkDirectionChanged(e),this.callBase(e,t)},_checkDirectionChanged:function(e){if(!v(e))return void(this._lastWheelDirection=null);var t=e.shiftKey||!1,n=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!n}}}()),b=x.inherit(function(){var e=400;return{ctor:function(t){this.callBase(t,e)}}}());!function(){var e=d.ios&&u(d.version,[8])>=0,t=d.android&&u(d.version,[5])>=0;(e||t)&&(b=w.inherit(function(){return{_scroll:function(){this._locked=!0;var e=this;c.cancelAnimationFrame(this._scrollFrame),this._scrollFrame=c.requestAnimationFrame(function(){e._locked=!1})},check:function(e,t){c.cancelAnimationFrame(this._scrollFrame),c.cancelAnimationFrame(this._checkFrame);var n=this,i=this.callBase;this._checkFrame=c.requestAnimationFrame(function(){i.call(n,e,t),n._locked=!1})},dispose:function(){this.callBase(),c.cancelAnimationFrame(this._scrollFrame),c.cancelAnimationFrame(this._checkFrame)}}}()))}();var C=r.inherit(function(){var e=100,t=200,n=Math.round(1e3/60);return{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new b(e),this._wheelLocker=new y(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new b(e.scrollTarget),this._wheelLocker=new y(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){v(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&s.isMouseEvent(e);v(e)||t||this._accept(e)}.bind(this)),this._fireEvent(h,e),this._prevEventData=s.eventData(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=s.eventData(e),this._fireEvent(p,e),this._prevEventData=s.eventData(e)},_move:function(e){var n=s.eventData(e);this._fireEvent(f,e,{delta:s.eventDelta(this._prevEventData,n)});var i=s.eventDelta(this._savedEventData,n);i.time>t&&(this._savedEventData=this._prevEventData),this._prevEventData=s.eventData(e)},_end:function(t){var i=s.eventDelta(this._prevEventData,s.eventData(t)),o={x:0,y:0};if(!v(t)&&i.time<e){var a=s.eventDelta(this._savedEventData,this._prevEventData),r=n/a.time;o={x:a.x*r,y:a.y*r}}this._fireEvent(m,t,{velocity:o})},_stop:function(e){this._fireEvent(g,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(_,e)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());l({emitter:C,events:[h,p,f,m,g,_]}),e.exports={init:h,start:p,move:f,end:m,stop:g,cancel:_}},function(e,t,n){var i=n(9),o=n(14).noop,a=n(90),s=n(57),r=n(11).extend,l=n(239),c=n(110),d="dx-loadpanel",u="dx-loadpanel-wrapper",h="dx-loadpanel-indicator",p="dx-loadpanel-message",f="dx-loadpanel-content",m="dx-loadpanel-content-wrapper",g="dx-loadpanel-pane-hidden",_=c.inherit({_supportedKeys:function(){return r(this.callBase(),{escape:o})},_getDefaultOptions:function(){return r(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}}])},_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(d),this._wrapper().addClass(u)},_renderContentImpl:function(){this.callBase(),this.content().addClass(f),this._$contentWrapper=i("
").addClass(m),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=i.Deferred(),n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("
").addClass(p).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("
").addClass(h).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.content().find("."+p).remove(),this.content().find("."+h).remove()},_togglePaneVisible:function(){this.content().toggleClass(g,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});s("dxLoadPanel",_),e.exports=_},function(e,t,n){var i=n(9),o=n(76),a=n(11).extend,s=n(249),r=n(250),l=n(72),c=n(223).register,d=n(225),u="dx-list-select-decorator-enabled",h="dx-list-select-all",p="dx-list-select-all-checkbox",f="dx-list-select-all-label",m="dx-list-select-checkbox-container",g="dx-list-select-checkbox",_="dx-list-select-radiobutton-container",v="dx-list-select-radiobutton",w=l.addNamespace(o.name,"dxListEditDecorator");c("selection","default",d.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?_:m,this._controlClass=this._singleStrategy?v:g,this._controlWidget=this._singleStrategy?r:s,this._list.element().addClass(u)},beforeBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div />").addClass(this._controlClass);new this._controlWidget(o,a(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){this._processCheckedState(t,e.value),e.jQueryEvent&&e.jQueryEvent.stopPropagation()}.bind(this)})),n.addClass(this._containerClass),n.append(o)},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,n=this._controlWidget.getInstance(t.find("."+this._controlClass));t.on("stateChanged",function(e,t){n.option("value",t)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},_renderSelectAll:function(){var e=this._$selectAll=i("
").addClass(h);this._selectAllCheckBox=this._list._createComponent(i("
").addClass(p).appendTo(e),s),i("
").addClass(f).text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),this._$selectAll.off(w).on(w,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.jQueryEvent&&e.jQueryEvent.stopPropagation();var t=this._selectAllCheckBox.option("value"),n=this._list._createActionByOption("onSelectAllValueChanged")({value:t});n!==!1&&(t===!0?this._selectAllItems():t===!1&&this._unselectAllItems())},_selectAllItems:function(){this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(){this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.element().removeClass(u),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},function(e,t,n){var i=n(9),o=n(53),a=n(11).extend,s=n(203),r=n(107),l=n(57),c=n(72),d=n(144),u=n(76),h="dx-checkbox",p="dx-checkbox-icon",f="dx-checkbox-checked",m="dx-checkbox-container",g="dx-checkbox-text",_="dx-checkbox-has-text",v="dx-checkbox-indeterminate",w=100,x=r.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({jQueryEvent:e})};return a(this.callBase(),{space:e})},_getDefaultOptions:function(){return a(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(d.current())},options:{useInkRipple:!0}}])},_feedbackHideTimeout:w,_render:function(){this._renderSubmitElement(),this.callBase(),this._$container=i("
").addClass(m),this.setAria("role","checkbox"),this._renderClick(),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.element().addClass(h).append(this._$container)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,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=i("").addClass(p).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("").addClass(g)),this._$text.text(e),this._$container.append(this._$text),void this.element().addClass(_)):void(this._$text&&(this._$text.remove(),this.element().removeClass(_)))},_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._$submitElement.val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}}});l("dxCheckBox",x),e.exports=x},function(e,t,n){var i=n(9),o=n(53),a=n(11).extend,s=n(203),r=n(57),l=n(107),c=n(72),d=n(144),u=n(76),h="dx-radiobutton",p="dx-radiobutton-icon",f="dx-radiobutton-icon-dot",m="dx-radiobutton-checked",g=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({jQueryEvent:e})};return a(this.callBase(),{space:e})},_getDefaultOptions:function(){return a(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(d.current())},options:{useInkRipple:!0}}])},_init:function(){this.callBase(),this.element().addClass(h)},_render:function(){this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,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=i("
").addClass(p),i("
").addClass(f).appendTo(this._$icon),this.element().append(this._$icon)},_renderCheckedState:function(e){this.element().toggleClass(m,e),this.setAria("checked",e)},_renderClick:function(){var e=c.addNamespace(u.name,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.jQueryEvent)}.bind(this)),this.element().off(e).on(e,function(e){this._clickAction({jQueryEvent:e})}.bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}}});r("dxRadioButton",g),e.exports=g},function(e,t,n){var i=n(9),o=n(70),a=n(69),s=n(111),r=n(88),l=n(244),c=n(72),d=n(223).register,u=n(225),h=l.inherit({ctor:function(e){this.callBase(),this._strategy=e},_isFinished:function(){return this._strategy.scrollFinished()},_step:function(){this._strategy.scrollByStep()}}),p="dxListEditDecorator",f=c.addNamespace(s.start,p),m=c.addNamespace(s.move,p),g=c.addNamespace(s.end,p),_="dx-list-reorder-handle-container",v="dx-list-reorder-handle",w="dx-list-item-reordering",x="dx-list-item-ghost-reordering";d("reorder","default",u.inherit({_init:function(){this._groupedEnabled=this._list.option("grouped"),this._initAnimator()},_initAnimator:function(){this._scrollAnimator=new h(this)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},afterBag:function(e){var t=e.$itemElement,n=e.$container,o=i("
").addClass(v),a=!1;o.on("dxpointerdown",function(e){a=!c.isMouseEvent(e)}),o.on("dxhold",{timeout:30},function(e){e.cancel=!0,a=!1}),o.on(f,{direction:"vertical",immediate:!0},function(e){return a?void(e.cancel=!0):void this._dragStartHandler(t,e)}.bind(this)),o.on(m,this._dragHandler.bind(this,t)),o.on(g,this._dragEndHandler.bind(this,t)),n.addClass(_),n.append(o)},_dragStartHandler:function(e,t){if(e.is(".dx-state-disabled, .dx-state-disabled *"))return void(t.cancel=!0);this._stopPreviousAnimation(),t.targetElements=[],this._cacheItemsPositions(),this._startPointerOffset=t.pageY-e.offset().top,this._elementHeight=e.outerHeight();var n=this._list.getFlatIndexByItemElement(e);this._startIndex=n,this._lastIndex=n,this._cacheScrollData();var i=this;this._createGhostTimeout=setTimeout(function(){i._createGhost(e),i._updateGhostPosition(),e.addClass(w)})},_stopPreviousAnimation:function(){a.stop(this._$ghostItem,!0)},_cacheItemsPositions:function(){var e=this._itemPositions=[];i.each(this._list.itemElements(),function(t,n){var o=null;e.push(function(){return o=null===o?i(n).position().top:o})})},_getDraggingElementPosition:function(){return this._itemPositions[this._startIndex]()},_getLastElementPosition:function(){return this._itemPositions[this._lastIndex]()},_cacheScrollData:function(){this._list.updateDimensions(),this._startScrollTop=this._list.scrollTop(),this._scrollOffset=0,this._scrollHeight=this._list.scrollHeight(),this._clientHeight=this._list.clientHeight()},_scrollTop:function(){return this._startScrollTop+this._scrollOffset},_createGhost:function(e){this._$ghostItem=e.clone(),this._$ghostItem.addClass(x).appendTo(this._list.itemsContainer()),this._startGhostPosition=this._getDraggingElementPosition()-this._$ghostItem.position().top,o.move(this._$ghostItem,{top:this._startGhostPosition})},_dragHandler:function(e,t){this._topOffset=t.offset.y,this._updateItemPositions();var n=this._getPointerPosition();this._toggleScroll(n)},_getPointerPosition:function(){return this._getDraggingElementPosition()+this._startPointerOffset+this._scrollOffset+this._topOffset},_toggleScroll:function(e){if(!(this._scrollHeight<=this._clientHeight)){var t=.7*this._elementHeight,n=this._clientHeight-(e-this._scrollTop()),i=n/t,o=e-this._scrollTop(),a=o/t;i<1?(this._stepSize=this._adjustRationIntoRange(i),this._startAnimator()):a<1?(this._stepSize=-this._adjustRationIntoRange(a),this._startAnimator()):this._stopAnimator()}},_adjustRationIntoRange:function(e){return r.fitIntoRange(Math.round(7*Math.abs(e-1)),1,7)},_updateItemPositions:function(){this._updateGhostPosition(),this._updateOthersPositions()},_updateGhostPosition:function(){this._$ghostItem&&o.move(this._$ghostItem,{top:this._startGhostPosition+this._scrollOffset+this._topOffset})},_updateOthersPositions:function(){var e=this._findItemIndexByPosition(this._getPointerPosition());if(this._lastIndex!==e&&(!this._groupedEnabled||this._sameParent(e))){for(var t=e-this._startIndex,n=r.sign(t),i=Math.min(e,this._lastIndex),o=Math.max(e,this._lastIndex),s=i;s<=o;s++)if(s!==this._startIndex){var l=this._list.getItemElementByFlatIndex(s),c=s-this._startIndex,d=r.sign(c),u=Math.abs(c)<=Math.abs(t),h=n===d,p=u&&h,f=!u||!h;a.stop(l),p&&a.animate(l,{type:"slide",to:{top:this._elementHeight*-n},duration:300}),f&&a.animate(l,{type:"slide",to:{top:0},duration:300})}this._lastIndex=e}},_sameParent:function(e){var t=this._list.getItemElementByFlatIndex(this._startIndex),n=this._list.getItemElementByFlatIndex(e);return n.parent().get(0)===t.parent().get(0)},scrollByStep:function(){this._scrollOffset+=this._stepSize,this._list.scrollBy(this._stepSize),this._updateItemPositions()},scrollFinished:function(){var e=this._scrollTop(),t=e<=0&&this._stepSize<0,n=e>=this._scrollHeight-this._clientHeight&&this._stepSize>0;return t||n},_dragEndHandler:function(e){this._scrollAnimator.stop(),a.animate(this._$ghostItem,{type:"slide",to:{top:this._startGhostPosition+this._getLastElementPosition()-this._getDraggingElementPosition()},duration:300}).done(function(){e.removeClass(w),this._resetPositions(),this._list.reorderItem(e,this._list.getItemElementByFlatIndex(this._lastIndex)),this._deleteGhost()}.bind(this))},_deleteGhost:function(){this._$ghostItem&&this._$ghostItem.remove()},_resetPositions:function(){for(var e=Math.min(this._startIndex,this._lastIndex),t=Math.max(this._startIndex,this._lastIndex),n=e;n<=t;n++){var i=this._list.getItemElementByFlatIndex(n);o.resetPosition(i)}},_findItemIndexByPosition:function(e){for(var t,n,i=0,o=this._itemPositions.length-1;i<=o;)if(t=(i+o)/2|0,n=this._itemPositions[t](),n<e)i=t+1;else{if(!(n>e))return t;o=t-1}return r.fitIntoRange(i,0,Math.max(o,0))},dispose:function(){clearTimeout(this._createGhostTimeout),this.callBase.apply(this,arguments)}}))},function(e,t,n){var i=n(9),o=n(28),a=n(50),s=n(14),r=n(11).extend,l=n(99),c=n(153),d=n(154),u=n(159),h=r(c,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new d.DataSource({store:new u(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=a.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=a.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=i.Deferred();return e=this._unwrappedValue(e),s.isDefined(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail(function(){t.reject()}),t.promise()):t.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){return e=s.isDefined(e)?e:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),o.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},i=0,o=t.length;i<o;i++)n[t[i]]=e[t[i]];return n}return t&&"object"==typeof e&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=s.isDefined,o=this._compareValues(e,t);return!o&&n&&i(e)&&i(t)&&(o=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),o},_compareByCompositeKey:function(e,t,n){var i=s.isObject;if(!i(e)||!i(t))return!1;for(var o=0,a=n.length;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},_compareByKey:function(e,t,n){var i=s.ensureDefined,a=o.unwrap,r=i(a(e[n]),e),l=i(a(t[n]),t);return this._compareValues(r,l)},_compareValues:function(e,t){return a.toComparable(e,!0)===a.toComparable(t,!0)},_initDynamicTemplates:function(){this._displayGetterExpr()?(this._originalItemTemplate=this._defaultTemplates.item,this._defaultTemplates.item=new l(function(e){return i("<div/>").text(this._displayGetter(e.model)).html()}.bind(this))):this._originalItemTemplate&&(this._defaultTemplates.item=this._originalItemTemplate)},_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this._getTemplateByOption("itemTemplate"))},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._setCollectionWidgetItemTemplate()}}});e.exports=h},function(e,t,n){var i=n(9),o=n(25),a=n(57),s=n(11).extend,r=n(14),l=n(61),c=n(23),d=n(164),u=n(53),h=n(150),p="dx-box",f=".dx-box",m="dx-box-item",g="dxBoxItemData",_=l.styleProp("flexGrow"),v=l.styleProp("flexShrink"),w=l.stylePropPrefix("flexDirection"),x={row:"minWidth",col:"minHeight"},y={row:"maxWidth",col:"maxHeight"},b=1,C={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},k={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},I={row:"row",col:"column"},S=d.inherit({_renderVisible:function(e,t){this.callBase(e),r.isDefined(t)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:t})}}),D=o.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({display:l.stylePropPrefix("flexDirection")+"flex",flexDirection:I[this._option("direction")]})},renderAlign:function(){this._$element.css({justifyContent:this._normalizedAlign()})},_normalizedAlign:function(){var e=this._option("align");return e in C?C[e]:e},renderCrossAlign:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})},_normalizedCrossAlign:function(){var e=this._option("crossAlign");return e in k?k[e]:e},renderItems:function(e){var t=this._option("direction");i.each(e,function(){var e=i(this),n=e.data(g);e.css({display:w+"flex",flexBasis:n.baseSize||0}).css(y[t],n.maxSize||"none").css(x[t],n.minSize||"0");var o=e.get(0).style;o[_]=n.ratio,o[v]=r.isDefined(n.shrink)?n.shrink:b,e.children().each(function(t,n){i(n).css({width:"auto",height:"auto",display:l.stylePropPrefix("flexDirection")+"flex",flexDirection:e.children().css("flexDirection")||"column",flexBasis:0}),n.style[_]=1})})},initSize:r.noop,update:r.noop}),T="dxBox",E="dxupdate."+T,A="dx-box-fallback-item",B={row:"nowrap",col:"normal"},M={row:"width",col:"height"},R={row:"height",col:"width"},O={row:"marginLeft",col:"marginTop"},P={row:"marginRight",col:"marginBottom"},V={row:"marginTop",col:"marginLeft"},F={row:"marginBottom",col:"marginRight"},H={marginLeft:"marginRight",marginRight:"marginLeft"},L=o.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({fontSize:0,whiteSpace:B[this._option("direction")],verticalAlign:"top"}),this._$element.off(E).on(E,this.update.bind(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[M[o]](),s=a-i;switch(this._setItemsMargins(e,o,0),t){case"start":break;case"end":n=s,e.first().css(this._chooseMarginSide(O[o]),n);break;case"center":n=.5*s,e.first().css(this._chooseMarginSide(O[o]),n),e.last().css(this._chooseMarginSide(P[o]),n);break;case"space-between":n=.5*s/(e.length-1),this._setItemsMargins(e,o,n), e.first().css(this._chooseMarginSide(O[o]),0),e.last().css(this._chooseMarginSide(P[o]),0);break;case"space-around":n=.5*s/e.length,this._setItemsMargins(e,o,n)}}},_setItemsMargins:function(e,t,n){e.css(this._chooseMarginSide(O[t]),n).css(this._chooseMarginSide(P[t]),n)},renderCrossAlign:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),o=this._$element[R[n]](),a=this;switch(t){case"start":break;case"end":i.each(e,function(){var e=i(this),t=e[R[n]](),s=o-t;e.css(a._chooseMarginSide(V[n]),s)});break;case"center":i.each(e,function(){var e=i(this),t=e[R[n]](),s=.5*(o-t);e.css(a._chooseMarginSide(V[n]),s).css(a._chooseMarginSide(F[n]),s)});break;case"stretch":e.css(a._chooseMarginSide(V[n]),0).css(a._chooseMarginSide(F[n]),0).css(R[n],"100%")}}},_chooseMarginSide:function(e){return this._option("rtlEnabled")?H[e]||e:e},renderItems:function(e){this._$items=e;var t=this._option("direction"),n=0,o=0,a=0;i.each(e,function(e,s){var l=i(s);l.css({display:"inline-block",verticalAlign:"top"}),l[M[t]]("auto"),l.removeClass(A);var c=l.data(g),d=c.ratio||0,u=this._baseSize(l),h=r.isDefined(c.shrink)?c.shrink:b;n+=d,o+=h*u,a+=u}.bind(this));var s=this._boxSize()-a,l=function(e){var t=e.data(g),i=this._baseSize(e),a=s>=0?t.ratio||0:(r.isDefined(t.shrink)?t.shrink:b)*i,l=s>=0?n:o,c=l?Math.round(s*a/l):0;return i+c}.bind(this),c=0;i.each(e,function(e,n){var o=i(n),a=i(n).data(g),s=l(o);c+=s,o.css(y[t],a.maxSize||"none").css(x[t],a.minSize||"0").css(M[t],s),o.addClass(A)}),this.totalItemSize=c},_baseSize:function(e){var t=i(e).data(g);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)},_contentSize:function(e){return i(e)[M[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 i.each(this._$items,function(t,n){e+=this._baseSize(n)}.bind(this)),e},initSize:function(){this._boxSize(this._$element[M[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(f).each(function(){e===i(this).parent().closest(f).get(0)&&i(this).triggerHandler(E)})}}}),z=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=u.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 m},_itemDataKey:function(){return g},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.element().addClass(p+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()},_initLayout:function(){this._layout="fallback"===this.option("_layoutStrategy")?new L(this.element(),this.option.bind(this)):new D(this.element(),this.option.bind(this))},_initBoxQueue:function(){this._queue=this.option("_queue")||[]},_queueIsNotEmpty:function(){return!this.option("_queue")&&!!this._queue.length},_pushItemToQueue:function(e,t){this._queue.push({$item:e,config:t})},_shiftItemFromQueue:function(){return this._queue.shift()},_render:function(){this._renderActions(),this.callBase(),this.element().addClass(p),this._renderBox()},_renderActions:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")},_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,z,s({_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(function(){this._isUpdated||this._layout.update(),this._isUpdated=!1,this._updateTimer=null}.bind(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?e.source():i():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)},_itemOptionChanged:function(e,t,n,i){"visible"===t&&this._onItemStateChanged({name:t,state:n,oldState:i!==!1}),this.callBase(e,t,n)},_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)}},_itemOptions:function(){var e=this,t=this.callBase();return t.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},t},repaint:function(){this._dimensionChanged()}});z.ItemClass=S,a("dxBox",z),e.exports=z},function(e,t,n){e.exports=n(255)},function(e,t,n){var i=n(9),o=n(152),a=n(57),s=n(14),r=n(11).extend,l=n(202),c=n(107),d=n(256),u=n(257),h=n(258),p=n(70),f=n(23),m=n(64),g=n(260),_=n(53),v=n(15),w=n(69),x=n(90),y=n(99),b="dx-calendar",C="dx-calendar-body",k="dx-calendar-cell",I="dx-calendar-footer",S="dx-calendar-today-button",D="dx-calendar-with-footer",T="dx-calendar-views-wrapper",E="dx-calendar-view",A="dx-state-focused",B=250,M=.6,R=1,O="yyyy-MM-dd",P="dxDateValueKey",V={month:3,year:2,decade:1,century:0},F=c.inherit({_activeStateUnit:"."+k,_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:"month",maxZoomLevel:"month",minZoomLevel:"century",showTodayButton:!1,cellTemplate:"cell",onCellClick:null,onContouredChanged:null,hasFocus:function(e){return e.hasClass(A)}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===_.real().deviceType&&!_.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return r(this.callBase(),{rightArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(1):this._moveCurrentDate(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(-1):this._moveCurrentDate(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateUp();else{if(w.isAnimating(this._view.element()))return;this._moveCurrentDate(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateDown();else{if(w.isAnimating(this._view.element()))return;this._moveCurrentDate(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("min"),o=m.sameView(t,n,i)?i:m.getViewFirstCellDate(t,n);this.option("currentDate",o)},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("max"),o=m.sameView(t,n,i)?i:m.getViewLastCellDate(t,n);this.option("currentDate",o)},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1)},pageDown:function(e){e.preventDefault(),this._waitRenderView(1)},tab:s.noop,enter:function(e){if(this._isMaxZoomLevel()){var t=this._updateTimeComponent(this.option("currentDate"));this._dateValue(t,e)}else this._navigateDown()}})},_getSerializationFormat:function(e){var t=this.option(e||"value");if(this.option("dateSerializationFormat"))return this.option("dateSerializationFormat");if(s.isNumeric(t))return"number";if(s.isString(t))return g.getDateSerializationFormat(t)},_convertToDate:function(e,t){return g.deserializeDate(e)},_dateValue:function(e,t){t&&this._saveValueChangeEvent(t),this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);var n=this._getSerializationFormat(e);this.option(e,g.serializeDate(t,n))},_moveCurrentDate:function(e){var t=new Date(this.option("currentDate")),n=new Date(t),i=this.option("zoomLevel");switch(i){case"month":n.setDate(t.getDate()+e);break;case"year":n.setMonth(t.getMonth()+e);break;case"decade":n.setFullYear(t.getFullYear()+e);break;case"century":n.setFullYear(t.getFullYear()+10*e)}var o=2*e/Math.abs(e);Math.abs(e)>1&&!m.sameView(i,t,n)&&("decade"===i&&n.setFullYear(t.getFullYear()+e-o),"century"===i&&n.setFullYear(t.getFullYear()+10*(e-o))),this.option("currentDate",n)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),n=this.option("zoomLevel");V[t]<V[e]||(V[n]>V[t]?this.option("zoomLevel",t):V[n]<V[e]&&this.option("zoomLevel",e))},_initCurrentDate:function(){var e=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",e)},_getNormalizedDate:function(e){return e=m.normalizeDate(e,this._getMinDate(),this._getMaxDate()),s.isDefined(e)?new Date(e):e},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this.callBase(),this._defaultTemplates.cell=new y(function(e){var t=e.model;e.container.append(i("").text(t&&t.text||String(t)))},this)},_updateCurrentDate:function(e){w.isAnimating(this._$viewsWrapper)&&w.stop(this._$viewsWrapper,!0);var t=this._getMinDate(),n=this._getMaxDate();if(t>n)return void this.option("currentDate",new Date);var i=this._getNormalizedDate(e);if(e.getTime()!==i.getTime())return void this.option("currentDate",new Date(i));var o=this._getViewsOffset(this._view.option("date"),i);0!==o&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(o=0),this._view&&0!==o&&!this._suppressNavigation?this._navigate(o,i):(this._renderNavigator(),this._setViewContoured(i),this._updateAriaId(i))},_setViewContoured:function(e){this.option("hasFocus")(this._focusTarget())&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min?this.min:(this.min=this._dateOption("min")||new Date(1e3,0),this.min)},_getMaxDate:function(){return this.max?this.max:(this.max=this._dateOption("max")||new Date(3e3,0),this.max)},_getViewsOffset:function(e,t){var n=this.option("zoomLevel");if("month"===n)return this._getMonthsOffset(e,t);var i;switch(n){case"century":i=100;break;case"decade":i=10;break;default:i=1}return parseInt(t.getFullYear()/i)-parseInt(e.getFullYear()/i)},_getMonthsOffset:function(e,t){var n=t.getFullYear()-e.getFullYear(),i=t.getMonth()-e.getMonth();return 12*n+i},_waitRenderView:function(e){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var t=this._getDateByOffset(e*this._getRtlCorrection());this.option("currentDate",t),setTimeout(function(){this._alreadyViewRender=!1}.bind(this))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){t=new Date(t||this.option("currentDate"));var n=t.getDate(),i=m.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+i);var o=m.getLastMonthDate(t).getDate();return t.setDate(n>o?o:n),t},_focusTarget:function(){return this.element()},_render:function(){this._renderSubmitElement(),this.callBase();var e=this.element();e.addClass(b),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),this._renderSwipeable(),this._renderFooter(),this.setAria({role:"listbox",label:x.format("dxCalendar-ariaWidgetName")}),this._updateAriaSelected(),this._updateAriaId(),this._setViewContoured(this.option("currentDate")),e.append(this._navigator.element())},_renderBody:function(){this._$viewsWrapper||(this.$body=i("
").addClass(C),this._$viewsWrapper=i("
").addClass(T),this.$body.append(this._$viewsWrapper))},_renderViews:function(){this.element().addClass(E+"-"+this.option("zoomLevel"));var e=this.option("currentDate");this._view=this._renderSpecificView(e),this._view.option("_keyboardProcessor",this._viewKeyboardProcessor);var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var n=this._getDateByOffset(1,e);this._afterView=this._isViewAvailable(n)?this._renderSpecificView(n):null,this._translateViews()},_renderSpecificView:function(e){var t=h[this.option("zoomLevel")],n=i("
").appendTo(this._$viewsWrapper),o=this._viewConfig(e);return new t(n,o)},_viewConfig:function(e){return{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek"),value:this._dateOption("value"),rtl:this.option("rtlEnabled"),disabled:this.option("disabled")||v().designMode,tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel()}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),n=m.getViewMinBoundaryDate(t,this._getMinDate()),i=m.getViewMaxBoundaryDate(t,this._getMaxDate());return m.dateInRange(e,n,i)},_translateViews:function(){p.move(this._view.element(),{left:0,top:0}),this._beforeView&&p.move(this._beforeView.element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&p.move(this._afterView.element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){var t=this.option("rtlEnabled")&&!f.msie?-1:1;return 100*e*t+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),n=m.getViewDown(t),i=this._isMaxZoomLevel();if(n&&!i)this._navigateDown(e.jQueryEvent.currentTarget);else{var o=this._updateTimeComponent(e.value);this._dateValue(o,e.jQueryEvent),this._cellClickAction(e)}},_updateTimeComponent:function(e){var t=new Date(e),n=this._dateOption("value");return n&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds()),t.setMilliseconds(n.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var n=m.getViewDown(t);if(n){var o=this._view.option("contouredDate")||this._view.option("date");e&&(o=i(e).data(P)),this._isOtherViewCellClicked=!0,this.option("currentDate",o),this.option("zoomLevel",n),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._setViewContoured(this._getNormalizedDate(o))}}},_renderNavigator:function(){this._navigator||(this._navigator=new u(i("
"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(e){var t=this._getDateByOffset(e.direction,this.option("currentDate"));this.option("currentDate",t),this._updateNavigatorCaption(-e.direction*this._getRtlCorrection())},_navigateUp:function(){var e=this.option("zoomLevel"),t=m.getViewUp(e);if(t&&!this._isMinZoomLevel(e)){var n=this._view.option("contouredDate");this.option("zoomLevel",t),this.option("currentDate",n||this._view.option("date")),this._renderNavigator(),this._animateShowView().done(function(){this._setViewContoured(n)}.bind(this))}},_isMinZoomLevel:function(e){var t=this._getMinDate(),n=this._getMaxDate();return m.sameView(e,t,n)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!s.isDefined(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!s.isDefined(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.element(),d,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){w.stop(this._$viewsWrapper,!0),e.jQueryEvent.maxLeftOffset=this._getRequiredView("next")?1:0,e.jQueryEvent.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(e){var t,n=this.option("rtlEnabled");return"next"===e?t=n?this._beforeView:this._afterView:"prev"===e&&(t=n?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.jQueryEvent.offset;p.move(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.jQueryEvent.targetOffset,n=t?t/Math.abs(t):0;if(0===n)return void this._animateWrapper(0,B);var i=this._getDateByOffset(-n*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=this.element().width()),this._viewWidthValue},_updateNavigatorCaption:function(e){e*=this._getRtlCorrection();var t=this._view;e>.5&&this._beforeView?t=this._beforeView:e<-.5&&this._afterView&&(t=this._afterView),this._navigator.option("text",t.getNavigatorCaption())},_isDateInInvalidRange:function(e){if(!this._view.isBoundary(e)){var t=this._getMinDate(),n=this._getMaxDate(),i=m.normalizeDate(e,t,n);return i===t||i===n}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent(i("<a>"),l,{focusStateEnabled:!1,text:x.format("dxCalendar-todayButtonText"),onClick:function(){this._toTodayView()}.bind(this),integrationOptions:{}}).element().addClass(S);this._$footer=i("
").addClass(I).append(t),this.element().append(this._$footer)}this.element().toggleClass(D,e)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._$submitElement.val(g.serializeDate(t,O))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return w.stop(this._view.element(),!0),this._popAnimationView(this._view,M,R,B).promise()},_popAnimationView:function(e,t,n,i){return w.animate(e.element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:n,opacity:n},duration:i})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var n=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.element().remove(),this._afterView=n):(this._beforeView&&this._beforeView.element().remove(),this._beforeView=n),this._translateViews()}var i=this._getRtlCorrection(),o=e>0?1:e<0?-1:0,a=-i*o*this._viewWidth(),s=this._$viewsWrapper.position().left;s!==a&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(a,B).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return w.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_toTodayView:function(){var e=new Date;return this._isMaxZoomLevel()?void this._dateOption("value",e):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",e),this._animateShowView(),void(this._preventViewChangeAnimation=!1))},_wrapperAnimationEndHandler:function(e,t){this._rearrangeViews(e),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t)},_rearrangeViews:function(e){if(0!==e){var t,n,i;if(e<0?(t=1,n="_beforeView",i="_afterView"):(t=-1,n="_afterView",i="_beforeView"),this[n]){var o=this[n].option("date");this[i]&&this[i].element().remove(),e===t?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(t,o)),this._view.element().remove()),this._view=this[n];var a=this._getDateByOffset(-t,o);this[n]=this._isViewAvailable(a)?this._renderSpecificView(a):null}}},_resetLocation:function(){p.move(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.element().remove(),this._beforeView&&this._beforeView.element().remove(),this._afterView&&this._afterView.element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(e){var t=e?new Date(e):null;this._view.option("value",t),this._beforeView&&this._beforeView.option("value",t),this._afterView&&this._afterView.option("value",t)},_updateAriaSelected:function(e,t){e=e||this._dateOption("value");var n=this._view._getCellByDate(t),i=this._view._getCellByDate(e);this.setAria("selected",void 0,n),this.setAria("selected",!0,i),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){e=e||this.option("currentDate");var t="dx-"+new o,n=this._view._getCellByDate(e);this.setAria("id",t,n),this.setAria("activedescendant",t),this._onContouredChanged(t)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"width":this.callBase(e),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(n)),this._updateCurrentDate(t);break;case"zoomLevel":this.element().removeClass(E+"-"+n),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),n=this._convertToDate(n),this._updateAriaSelected(t,n),this.option("currentDate",s.isDefined(t)?new Date(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"disabled":this._view.option("disabled",t),this.callBase(e);break;case"showTodayButton":this._invalidate();break;case"onCellClick":this._view.option("onCellClick",t);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"dateSerializationFormat":case"cellTemplate":this._invalidate();break;case"hasFocus":break;default:this.callBase(e)}}});a("dxCalendar",F),e.exports=F},function(e,t,n){var i=n(9),o=n(184),a=n(43),s=n(72),r=n(11).extend,l=n(45),c="dxSwipeable",d="dx-swipeable",u={onStart:o.start,onUpdated:o.swipe,onEnd:o.end,onCancel:"dxswipecancel"},h=a.inherit({_getDefaultOptions:function(){return r(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(d),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),i.each(u,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})})}.bind(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("."+c)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}}});l.name(h,c),e.exports=h},function(e,t,n){var i=n(9),o=n(11).extend,a=n(96),s=n(202),r="dx-calendar-navigator",l="dx-calendar-navigator-previous-month",c="dx-calendar-navigator-next-month",d="dx-calendar-navigator-previous-view",u="dx-calendar-navigator-next-view",h="dx-calendar-disabled-navigator-link",p="dx-calendar-caption-button",f=a.inherit({_getDefaultOptions:function(){return o(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_render:function(){this.callBase(),this.element().addClass(r),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent(i("<a>"),s,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(n){e._clickAction({direction:-t,jQueryEvent:n})},integrationOptions:{}});var n=this._prevButton.element().addClass(d).addClass(l);this._nextButton=this._createComponent(i("<a>"),s,{focusStateEnabled:!1,icon:"chevronright",onClick:function(n){e._clickAction({direction:t,jQueryEvent:n})},integrationOptions:{}});var o=this._nextButton.element().addClass(u).addClass(c);this._caption=this._createComponent(i("<a>").addClass(p),s,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({jQueryEvent:t})},integrationOptions:{}});var a=this._caption.element();this.element().append(n,a,o)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var n="_"+e+"Button",i=this[n];i&&(i.option("disabled",t),i.element().toggleClass(h,t))},_optionChanged:function(e){switch(e.name){case"text":this._renderCaption();break;default:this.callBase(e)}}});e.exports=f},function(e,t,n){var i=n(9),o=n(14).noop,a=n(259),s=n(64),r=n(11).extend,l=n(33),c=n(260),d="dx-calendar-other-month",u="dx-calendar-other-view",h={month:a.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return r(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find("."+u).addClass(d)},_renderFocusTarget:o,getCellAriaLabel:function(e){return l.format(e,"longdate")},_renderHeader:function(){var e=this,t=i("<thead>");this._$table.prepend(t);var n=i("<tr>");t.append(n);var o=this.option("rtl")?function(e,t){e.prepend(t)}:function(e,t){e.append(t)};this._iterateCells(this.option("colCount"),function(t){var a=i("<th>").text(e._getDayCaption(e._getFirstDayOfWeek()+t));o(n,a)})},getNavigatorCaption:function(){return l.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=new Date;return s.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!s.dateInRange(e,t,n,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return e.getDate()},_getDayCaption:function(e){var t=this.option("colCount");return l.getDayNames("abbreviated")[e%t]},_getFirstCellData:function(){var e=s.getFirstMonthDate(this.option("date")),t=this._getFirstDayOfWeek()-e.getDay(),n=this.option("colCount");return t>=0&&(t-=n),e.setDate(e.getDate()+t),e},_getNextCellData:function(e){return e=new Date(e),e.setDate(e.getDate()+1),e},_getFirstDayOfWeek:function(){return this.option("firstDayOfWeek")||l.firstDayOfWeekIndex()},_getCellByDate:function(e){return this._$table.find("td[data-value='"+c.serializeDate(e,s.getShortDateFormat())+"']")},isBoundary:function(e){return s.sameMonthAndYear(e,this.option("min"))||s.sameMonthAndYear(e,this.option("max"))}}),year:a.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){return s.sameMonthAndYear(e,new Date)},_isDateOutOfRange:function(e){return!s.dateInRange(e,s.getFirstMonthDate(this.option("min")),s.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return l.getMonthNames()[e.getMonth()].slice(0,3)},_getFirstCellData:function(){var e=new Date(this.option("date"));return e.setDate(1),e.setMonth(0),e},_getNextCellData:function(e){return e=new Date(e),e.setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='"+c.serializeDate(t,s.getShortDateFormat())+"']")},getCellAriaLabel:function(e){return l.format(e,"monthandyear")},getNavigatorCaption:function(){return this.option("date").getFullYear()},isBoundary:function(e){return s.sameYear(e,this.option("min"))||s.sameYear(e,this.option("max"))}}),decade:a.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){return s.sameYear(e,new Date)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!s.dateInRange(e.getFullYear(),t&&t.getFullYear(),n&&n.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!s.sameDecade(t,this.option("date"))},_getCellText:function(e){return e.getFullYear()},_getFirstCellData:function(){var e=s.getFirstYearInDecade(this.option("date"))-1;return new Date(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=s.getFirstYearInDecade(this.option("date"));return e+"-"+(e+9)},_isValueOnCurrentView:function(e,t){return s.sameDecade(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='"+c.serializeDate(t,s.getShortDateFormat())+"']")},isBoundary:function(e){return s.sameDecade(e,this.option("min"))||s.sameDecade(e,this.option("max"))}}),century:a.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){return s.sameDecade(e,new Date)},_isDateOutOfRange:function(e){var t=s.getFirstYearInDecade(e),n=s.getFirstYearInDecade(this.option("min")),i=s.getFirstYearInDecade(this.option("max"));return!s.dateInRange(t,n,i)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!s.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=e.getFullYear();return t+" - "+(t+9)},_getFirstCellData:function(){var e=s.getFirstDecadeInCentury(this.option("date"))-10;return new Date(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear(s.getFirstYearInDecade(t)),this._$table.find("td[data-value='"+c.serializeDate(t,s.getShortDateFormat())+"']"); },getNavigatorCaption:function(){var e=s.getFirstDecadeInCentury(this.option("date"));return e+"-"+(e+99)},isBoundary:function(e){return s.sameCentury(e,this.option("min"))||s.sameCentury(e,this.option("max"))}})};e.exports=h},function(e,t,n){var i=n(9),o=n(96),a=n(64),s=n(11).extend,r=n(260),l=n(72),c=n(76),d=o.abstract,u="dx-calendar-other-view",h="dx-calendar-cell",p="dx-calendar-empty-cell",f="dx-calendar-today",m="dx-calendar-selected-date",g="dx-calendar-contoured-date",_=l.addNamespace(c.name,"dxCalendar"),v="dxDateValueKey",w=o.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return s(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0})},_init:function(){this.callBase();var e=this.option("value");this.option("value",new Date(e)),this.option("value").valueOf()||this.option("value",new Date(0,0,0,0,0,0))},_render:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this._$table=i(""),this.element().append(this._$table),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_renderBody:function(){function e(e){t&&a.fixTimezoneGap(t,l),t=l;var c=document.createElement("td"),d=h;n._isTodayCell(l)&&(d=d+" "+f),n._isDateOutOfRange(l)&&(d=d+" "+p),n._isOtherView(l)&&(d=d+" "+u),c.className=d,c.setAttribute("data-value",r.serializeDate(l,a.getShortDateFormat())),i.data(c,v,l),n.setAria({role:"option",label:n.getCellAriaLabel(l)},i(c)),s(g,c),o?o.render({model:{text:n._getCellText(l),date:l,view:n._getViewName()},container:i(c),index:e}):c.innerHTML=n._getCellText(l),l=n._getNextCellData(l)}this.$body=i("<tbody>").appendTo(this._$table);for(var t,n=this,o=this.option("cellTemplate"),s=this.option("rtl")?function(e,t){e.insertBefore(t,e.firstChild)}:function(e,t){e.appendChild(t)},l=this._getFirstCellData(),c=this.option("colCount"),d=0,m=this.option("rowCount");d<m;d++){var g=document.createElement("tr");this.$body.get(0).appendChild(g),this._iterateCells(c,e)}},_iterateCells:function(e,t){for(var n=0;n<e;)t(n),++n},_renderEvents:function(){this._createCellClickAction(),this._$table.off(_).on(_,"td",function(e){i(e.currentTarget).hasClass(p)||this._cellClickAction({jQueryEvent:e,value:i(e.currentTarget).data(v)})}.bind(this))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_isTodayCell:d,_isDateOutOfRange:d,_isOtherView:d,_getCellText:d,_getFirstCellData:d,_getNextCellData:d,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._$table.find("."+g),n=this._getCellByDate(e);t.removeClass(g),n.addClass(g)}},_dispose:function(){this._keyboardProcessor=void 0,this.callBase()},_changeValue:function(e){if(e){var t=this.option("value"),n=t?new Date(t):new Date;n.setDate(e.getDate()),n.setMonth(e.getMonth()),n.setFullYear(e.getFullYear()),n.setDate(e.getDate()),this.option("value",n)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var e=this.option("value"),t=this._getCellByDate(e);this._selectedCell&&this._selectedCell.removeClass(m),t.addClass(m),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=a.getFirstDateView(this._getViewName(),e),new Date(t&&e<t?t:e)},_getCellByDate:d,isBoundary:d,_optionChanged:function(e){var t=e.name;switch(t){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(e.value);break;case"onCellClick":this._createCellClickAction();break;case"cellTemplate":this._invalidate();break;default:this.callBase(e)}}});e.exports=w},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var o=n(15),a=n(14),s=a.isString,r=a.isDate,l=a.isNumeric,c="number",d="yyyy/MM/dd",u="yyyy/MM/dd HH:mm:ss",h=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([\+\-])(\d{2})(:)?(\d{2})?)?$/,p=/^(\d{2}):(\d{2})(:(\d{2}))?$/,f=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],m={y:function(e,t,n){return i(e[n?"getUTCFullYear":"getFullYear"]().toString(),t)},M:function(e,t,n){return i((e[n?"getUTCMonth":"getMonth"]()+1).toString(),Math.min(t,2))},d:function(e,t,n){return i(e[n?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,n){return i(e[n?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},m:function(e,t,n){return i(e[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,n){return i(e[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,n){return i(e[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,n){var o=n?0:e.getTimezoneOffset(),a=o>0?"-":"+",s=Math.abs(o),r=Math.floor(s/60),l=s%60,c=i(r.toString(),2),d=i(l.toString(),2);return a+c+(t>=3?":":"")+(t>1||l?d:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":m.x(e,t,n)},Z:function(e,t,n){return m.X(e,t>=5?3:2,n)}},g=function(e,t){var n,i,o,a,s=0,r="'",l=!1,c="";if(!e)return null;if(!t)return e;var d="Z"===t[t.length-1]||"'Z'"===t.slice(-3);for(n=0;n<t.length;n++)o=t[n],i=m[o],a=o===t[n+1],s++,a||(i&&!l&&(c+=i(e,s,d)),s=0),o!==r||a?!l&&i||(c+=o):l=!l,o===r&&a&&n++;return c},_=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!r(e)&&Date.parse(e),n=l(i)?new Date(i):e),n},v=function(e){var t=e.match(h),n=function(e){return+e||0};if(t){var i=t[1],o=--t[3],a=t[5],s=0,r=0;s=n(t[14]),r=n(t[16]),"-"===t[13]&&(s=-s,r=-r);var l=n(t[6])-s,c=n(t[8])-r,d=n(t[10]),u=n(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,c,d,u)):new Date(i,o,a,l,c,d,u)}if(t=e.match(p))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},w=function(e,t){var n=e.match(h),i="";{if(n){for(var o=1;o<f.length;o++)n[o]&&(i+=f[o]||n[o]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(i+=n[15]?"xxx":n[16]?"xx":"x"),i}if(n=e.match(p))return n[3]?"HH:mm:ss":"HH:mm"}},x=function(e){return"number"==typeof e?new Date(e):_(e,!o().forceIsoDateParsing)},y=function(e,t){return t?r(e)?t===c?e&&e.valueOf?e.valueOf():null:g(e,t):null:e},b=function(e){if("number"==typeof e)return c;if(s(e)){var t;return o().forceIsoDateParsing&&(t=w(e)),t?t:e.indexOf(":")>=0?u:d}return e?null:void 0};e.exports={dateParser:_,deserializeDate:x,serializeDate:y,getDateSerializationFormat:b}},function(e,t,n){e.exports=n(262)},function(e,t,n){var i=n(9),o=n(38),a=n(263),s=n(11).extend,r=n(14).isFunction,l=n(57),c=n(211),d="dx-colorbox",u=d+"-input",h=u+"-container",p=d+"-color-result-preview",f=d+"-color-is-not-defined",m=d+"-overlay",g="dx-colorview-container-cell",_="dx-colorview-button-cell",v="dx-colorview-buttons-container",w="dx-colorview-apply-button",x="dx-colorview-cancel-button",y=a.prototype,b={makeTransparentBackground:y._makeTransparentBackground.bind(y),makeRgba:y._makeRgba.bind(y)},C=c.inherit({_supportedKeys:function(){var e=function(e){if(e.stopPropagation(),this.option("opened"))return e.preventDefault(),!0},t=function(e){return this.option("opened")?!e.altKey||(this.close(),!1):(e.preventDefault(),!1)},n=function(e){return this.option("opened")||e.altKey?!(!this.option("opened")&&e.altKey)||(this._validatedOpening(),!1):(e.preventDefault(),!1)};return s(this.callBase(),{tab:function(e){this.option("opened")&&(e.preventDefault(),this._colorView._rgbInputs[0].focus())},enter:this._enterKeyHandler,leftArrow:e,rightArrow:e,upArrow:t,downArrow:n})},_getDefaultOptions:function(){return s(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,onApplyButtonClick:null,onCancelButtonClick:null,buttonsLocation:"bottom after"})},_popupConfig:function(){return s(this.callBase(),{height:"auto",width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var e=this._popup.bottomToolbar();e&&(e.addClass(g).addClass(_).find(".dx-toolbar-items-container").addClass(v),e.find(".dx-popup-done").addClass(w),e.find(".dx-popup-cancel").addClass(x))},_createColorView:function(){this._popup.overlayContent().addClass(m);var e=i("
").appendTo(this._popup.content());this._colorView=this._createComponent(e,a,this._colorViewConfig()),e.on("focus",function(){this.focus()}.bind(this))},_applyNewColor:function(e){this.option("value",e),e&&b.makeTransparentBackground(this._$colorResultPreview,e),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var e=this;return{value:e.option("value"),editAlphaChannel:e.option("editAlphaChannel"),applyValueMode:e.option("applyValueMode"),focusStateEnabled:e.option("focusStateEnabled"),onEnterKeyPressed:function(){e._colorViewEnterKeyPressed=!0,e._colorView.option("value")!==e.option("value")&&(e._applyNewColor(e._colorView.option("value")),e.close())},onValueChanged:function(t){var n="instantly"===e.option("applyValueMode");(n||e._colorViewEnterKeyPressed)&&e._applyNewColor(t.value)},_keyboardProcessor:e._colorViewProcessor}},_enterKeyHandler:function(){var e=this._input().val(),t=this.option("value"),n=this.option("editAlphaChannel")?b.makeRgba(t):t;if(!e)return!1;var i=new o(e);if(i.colorIsInvalid)return void this._input().val(n);if(e!==n&&(this._applyColorFromInput(e),this.option("value",this.option("editAlphaChannel")?b.makeRgba(e):e)),this._colorView){var a=this._colorView.option("value");t!==a&&this.option("value",a)}return this.close(),!1},_applyButtonHandler:function(){this._applyNewColor(this._colorView.option("value")),r(this.option("onApplyButtonClick"))&&this.option("onApplyButtonClick")(),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),r(this.option("onCancelButtonClick"))&&this.option("onCancelButtonClick")(),this.callBase()},_attachChildKeyboardEvents:function(){if(this._colorViewProcessor=this._keyboardProcessor.attachChildProcessor(),this._colorView)return void this._colorView.option("_keyboardProcessor",this._colorViewProcessor)},_init:function(){this.callBase()},_render:function(){this.callBase(),this.element().addClass(d)},_renderInput:function(){this.callBase(),this._input().addClass(u),this._renderColorPreview()},_renderColorPreview:function(){this.element().wrapInner(i("<div/>").addClass(h)),this._$colorBoxInputContainer=this.element().children().eq(0),this._$colorResultPreview=i("
",{"class":p,appendTo:this._$colorBoxInputContainer}),this.option("value")?b.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(f)},_renderValue:function(){var e=this.option("value");this.option("text",this.option("editAlphaChannel")?b.makeRgba(e):e),this.callBase()},_resetInputValue:function(){var e=this._input(),t=this.option("value");e.val(t),this._colorView&&this._colorView.option("value",t)},_valueChangeEventHandler:function(e){var t=this._input().val();t&&(t=this._applyColorFromInput(t),this._colorView&&this._colorView.option("value",t)),this.callBase(e,t)},_applyColorFromInput:function(e){var t=new o(e);return t.colorIsInvalid&&(this._resetInputValue(),e=this.option("value")),e},_optionChanged:function(e){var t=e.value,n=e.name;switch(n){case"value":this._$colorBoxInputContainer.toggleClass(f,!t),t?b.makeTransparentBackground(this._$colorResultPreview,t):this._$colorResultPreview.removeAttr("style"),this._colorView&&this._colorView.option("value",t),this.callBase(e);break;case"applyButtonText":case"cancelButtonText":this.callBase(e),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"onCancelButtonClick":case"onApplyButtonClick":case"keyStep":this._colorView&&this._colorView.option(n,t);break;case"applyValueMode":this.callBase(e);break;case"rtlEnabled":this._colorView&&this._colorView.option(n,t),this.callBase(e);break;default:this.callBase(e)}}});l("dxColorBox",C),e.exports=C},function(e,t,n){var i=n(9),o=n(70),a=n(11).extend,s=n(38),r=n(90),l=n(53),c=n(57),d=n(107),u=n(264),h=n(212),p=n(267),f=n(76),m="dx-colorview",g="dx-colorview-container",_="dx-colorview-container-row",v="dx-colorview-container-cell",w="dx-colorview-palette",x="dx-colorview-palette-cell",y="dx-colorview-palette-handle",b="dx-colorview-palette-gradient",C="dx-colorview-palette-gradient-white",k="dx-colorview-palette-gradient-black",I="dx-colorview-hue-scale",S="dx-colorview-hue-scale-cell",D="dx-colorview-hue-scale-handle",T="dx-colorview-hue-scale-wrapper",E="dx-colorview-controls-container",A="dx-colorview-label-red",B="dx-colorview-label-green",M="dx-colorview-label-blue",R="dx-colorview-label-hex",O="dx-colorview-alpha-channel-scale",P="dx-colorview-alpha-channel-row",V="dx-colorview-alpha-channel-wrapper",F="dx-colorview-alpha-channel-label",H="dx-colorview-alpha-channel-handle",L="dx-colorview-alpha-channel-cell",z="dx-colorview-alpha-channel-border",N="dx-colorview-color-preview",W="dx-colorview-color-preview-container",$="dx-colorview-color-preview-container-inner",q="dx-colorview-color-preview-color-current",G="dx-colorview-color-preview-color-new",j=d.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e){var n=100/t._paletteWidth;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},i=function(e){var n=t._currentColor.hsv.s+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.s=n,l()},s=function(e){var n=100/t._paletteHeight;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},r=function(e){var n=t._currentColor.hsv.v+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.v=n,l()},l=function(){t._placePaletteHandle(),t._updateColorFromHsv(t._currentColor.hsv.h,t._currentColor.hsv.s,t._currentColor.hsv.v)},c=function(e){var n=360/(t._hueScaleWrapperHeight-t._hueScaleHandleHeight);return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1},d=function(e){t._currentColor.hsv.h+=e,t._placeHueScaleHandle();var n=o.locate(t._$hueScaleHandle);t._updateColorHue(n.top+t._hueScaleHandleHeight/2)},u=function(n){var i=1/t._alphaChannelScaleWorkWidth;return n.shiftKey&&(i*=t.option("keyStep")),i=i>.01?i:.01,i=e?-i:i},h=function(e){t._currentColor.a+=e,t._placeAlphaChannelHandle();var n=o.locate(t._$alphaChannelHandle);t._calculateColorTransparencyByScaleWidth(n.left+t._alphaChannelHandleWidth/2)};return a(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&d(c(e)):this._currentColor.hsv.v<100&&r(s(e))},downArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),d(-c(e))):this._currentColor.hsv.v>0&&r(-s(e))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&h(-u(t)):this._currentColor.hsv.s<100&&i(n(t))},leftArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&h(u(t)):this._currentColor.hsv.s>0&&i(-n(t))},enter:function(e){this._fireEnterKeyPressed(e)}})},_getDefaultOptions:function(){return a(this.callBase(),{value:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===l.real().deviceType&&!l.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(e){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({jQueryEvent:e})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(e){e=e||"#000000";var t=new s(e);t.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(t)||(this._currentColor=t,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,t))},_render:function(){this.callBase(),this.element().addClass(m),this._renderColorPickerContainer()},_makeTransparentBackground:function(e,t){t instanceof s||(t=new s(t)),e.css("backgroundColor",this._makeRgba(t))},_makeRgba:function(e){return e instanceof s||(e=new s(e)),"rgba("+[e.r,e.g,e.b,e.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var e=this.element();this._$colorPickerContainer=i("
",{"class":g,appendTo:e}),this._renderHtmlRows(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_renderHtmlRows:function(e){var t=this._$colorPickerContainer.find("."+_),n=t.length,o=this.option("editAlphaChannel")?2:1,a=n-o;if(a>0&&t.eq(-1).remove(),a<0){a=Math.abs(a);var s,r=[];for(s=0;s<a;s++)r.push(i("
",{"class":_}));if(n)for(s=0;s<r.length;s++)t.eq(0).after(r[s]);else this._$colorPickerContainer.append(r)}},_renderHtmlCellInsideRow:function(e,t,n){return i("
",{"class":v,addClass:n,appendTo:t.find("."+_).eq(e)})},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,x),t=i("
",{"class":[b,C].join(" ")}),n=i("
",{"class":[b,k].join(" ")});this._$palette=i("
",{"class":w,css:{backgroundColor:this._currentColor.getPureColor().toHex()},appendTo:e}),this._paletteHeight=this._$palette.height(),this._paletteWidth=this._$palette.width(),this._renderPaletteHandle(),this._$palette.append([t,n])},_renderPaletteHandle:function(){this._createComponent(this._$paletteHandle=i("
",{"class":y,appendTo:this._$palette}),p,{area:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDrag:function(){var e=o.locate(this._$paletteHandle);this._updateByDrag=!0,this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(e),this._calculateColorValue(e))}.bind(this)}),this._paletteHandleWidth=this._$paletteHandle.width(),this._paletteHandleHeight=this._$paletteHandle.height(),this._placePaletteHandle()},_placePaletteHandle:function(){o.move(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(e){var t=Math.floor(e.top+this._paletteHandleHeight/2);return 100-Math.round(100*t/this._paletteHeight)},_calculateColorSaturation:function(e){var t=Math.floor(e.left+this._paletteHandleWidth/2);return Math.round(100*t/this._paletteWidth)},_updateColorFromHsv:function(e,t,n){var i=this._currentColor.a;this._currentColor=new s("hsv("+[e,t,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,S);this._$hueScaleWrapper=i("
",{"class":T,appendTo:e}),this._$hueScale=i("
",{"class":I,appendTo:this._$hueScaleWrapper}),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._createComponent(this._$hueScaleHandle=i("
",{"class":D,appendTo:this._$hueScaleWrapper}),p,{area:this._$hueScaleWrapper,allowMoveByClick:!0,direction:"vertical",onDrag:function(){this._updateByDrag=!0,this._updateColorHue(o.locate(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}.bind(this)}),this._hueScaleHandleHeight=this._$hueScaleHandle.height(),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var e=this._hueScaleWrapperHeight,t=this._hueScaleHandleHeight,n=(e-t)*(360-this._currentColor.hsv.h)/360;e<n+t&&(n=e-t),n<0&&(n=0),o.move(this._$hueScaleHandle,{top:Math.round(n)})},_updateColorHue:function(e){var t=360-Math.round(360*(e-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),n=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,t=t<0?0:t,t>=360&&(this._isTopColorHue=!0,t=0),this._updateColorFromHsv(t,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=i("
",{"class":E,appendTo:e})},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=i("
",{"class":W,appendTo:this._$controlsContainer}),t=i("
",{"class":$,appendTo:e});this._$currentColor=i("
",{"class":[N,q].join(" ")}),this._$newColor=i("
",{"class":[N,G].join(" ")}),this._makeTransparentBackground(this._$currentColor,this._currentColor),this._makeTransparentBackground(this._$newColor,this._currentColor),t.append([this._$currentColor,this._$newColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+_).eq(1).addClass(P),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:u,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:r.format("dxColorView-ariaRed"),labelClass:A}),this._renderEditorWithLabel({editorType:u,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:r.format("dxColorView-ariaGreen"),labelClass:B}),this._renderEditorWithLabel({editorType:u,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:r.format("dxColorView-ariaBlue"),labelClass:M})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(e){var t=i("
"),n=i("<label>",{"class":e.labelClass,text:e.labelText+":",append:t}).off(f.name).on(f.name,function(e){e.preventDefault()}),o=e.editorType,a={value:e.value,onValueChanged:e.onValueChanged};o===u&&(a.min=e.min||0,a.max=e.max||255,a.step=e.step||1);var s=new o(t,a);return s.registerKeyHandler("enter",function(e){this._fireEnterKeyPressed(e)}.bind(this)),this.setAria("label",e.labelAriaText,t),n},hexInputOptions:function(){return{editorType:h,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:R,labelText:"#",labelAriaText:r.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=h.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var e=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,L),t=i("
",{"class":z,appendTo:e}),n=i("
",{"class":V,appendTo:t});this._$alphaChannelScale=i("
",{"class":O,appendTo:n}),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(e)},_makeCSSLinearGradient:function(e){var t=this._currentColor,n=[t.r,t.g,t.b].join(","),i=t.toHex().replace("#",""),o=function(e,t){var n=this.option("rtlEnabled"),i="rgba("+e+", "+(n?"1":"0")+")",o="rgba("+e+", "+(n?"0":"1")+")",a="'#"+(n?"00":"")+t+"'",s="'#"+(n?"":"00")+t+"'";return["background-image: -webkit-linear-gradient(180deg, "+i+", "+o+")","background-image: -moz-linear-gradient(-90deg, "+i+", "+o+")","background-image: -ms-linear-gradient(-90deg, "+i+", "+o+")","background-image: -o-linear-gradient(-90deg, "+i+", "+o+")","background-image: linear-gradient(-90deg, "+i+", "+o+")","filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr="+a+", endColorstr="+s+")"].join(";")};e.attr("style",o.call(this,n,i))},_renderAlphaChannelInput:function(){var e=this,t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);e._alphaChannelInput=this._renderEditorWithLabel({editorType:u,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(t){var n=t.value;n=e._currentColor.isValidAlpha(n)?n:e._currentColor.a,e._updateColorTransparency(n),e._placeAlphaChannelHandle()},labelClass:F,labelText:"Alpha",labelAriaText:r.format("dxColorView-ariaAlpha")}).appendTo(t).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(e){this._currentColor.a=e,this._makeTransparentBackground(this._$newColor,this._currentColor),this.applyColor()},_renderAlphaChannelHandle:function(e){this._createComponent(this._$alphaChannelHandle=i("
",{"class":H,appendTo:e}),p,{area:e,allowMoveByClick:!0,direction:"horizontal",onDrag:function(){this._updateByDrag=!0;var e=this._$alphaChannelHandle,t=o.locate(e).left+this._alphaChannelHandleWidth/2;this._calculateColorTransparencyByScaleWidth(t)}.bind(this)}),this._alphaChannelHandleWidth=this._$alphaChannelHandle.width(),this._alphaChannelScaleWorkWidth=e.width()-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(e){var t=(e-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,n=this.option("rtlEnabled");t=n?t:1-t,e>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?t=n?1:0:t<1&&(t=t.toFixed(2)),t=Math.max(t,0),t=Math.min(t,1),this._alphaChannelInput.option("value",t)},_placeAlphaChannelHandle:function(){var e=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);e<0&&(e=0),this._alphaChannelScaleWorkWidth<e&&(e=this._alphaChannelScaleWorkWidth),o.move(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-e:e})},applyColor:function(){var e=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),this.option("value",e)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(e,t){var n,i;e?i=this._validateHex("#"+this._hexInput.option("value")):(n=this._validateRgb(),this._alphaChannelInput?(n.push(this._alphaChannelInput.option("value")),i="rgba("+n.join(", ")+")"):i="rgb("+n.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new s(i),this.applyColor(),this._refreshMarkup())},_validateHex:function(e){return this._currentColor.isValidHex(e)?e:this._currentColor.toHex()},_validateRgb:function(){var e=this._rgbInputs[0].option("value"),t=this._rgbInputs[1].option("value"),n=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(e,t,n)||(e=this._currentColor.r,t=this._currentColor.g,n=this._currentColor.b),[e,t,n]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this._makeTransparentBackground(this._$newColor,this._currentColor),this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._setCurrentColor(t),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(e);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;default:this.callBase(e)}}});c("dxColorView",j),e.exports=j},function(e,t,n){e.exports=n(265)},function(e,t,n){var i=n(9),o=n(14),a=n(88),s=n(11).extend,r=n(26).inArray,l=n(53),c=n(57),d=n(214),u=n(72),h=n(77),p=n(86),f=n(266),m=n(90),g=Math,_="dx-numberbox",v="dx-numberbox-spin",w="dx-numberbox-spin-container",x="dx-numberbox-spin-touch-friendly",y=["Tab","Del","Delete","Backspace","Left","ArrowLeft","Right","ArrowRight","Home","End","Enter"],b=d.inherit({_supportedKeys:function(){return s(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e)},downArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e)},enter:function(){}})},_getDefaultOptions:function(){return s(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:m.format("dxNumberBox-invalidValueMessage")})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return l.real().generic&&!l.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"generic"!==l.real().platform},options:{mode:"number"}}])},_render:function(){this._renderSubmitElement(),this._setSubmitValue(this.option("value")),this.callBase(),this.option("isValid")&&this._validateValue(this.option("value")),this.element().addClass(_),this.setAria("role","spinbutton"),this._renderMouseWheelHandler()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element())},_setSubmitValue:function(e){this._$submitElement.val(o.applyServerDecimalSeparator(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=String.fromCharCode(e.which),n=/[\d.,eE\-+]/,i=n.test(t);if(!i){if(e.metaKey||e.ctrlKey||e.key&&r(e.key,y)>=0)return;return e.preventDefault(),!1}this._keyPressed=!0},_renderMouseWheelHandler:function(){var e=u.addNamespace(p.name,this.NAME),t=this._createAction(function(e){this._mouseWheelHandler(e.jQueryEvent)}.bind(this));this._input().off(e).on(e,function(e){t({jQueryEvent:e})})},_mouseWheelHandler:function(e){this._input().is(":focus")&&(e.delta>0?this._spinValueChange(1,e):this._spinValueChange(-1,e),e.preventDefault(),e.stopPropagation())},_renderValue:function(){var e=this._input().val();e.length&&Number(e)===this.option("value")||(this._forceValueRender(),this._toggleEmptinessEventHandler());var t=this.option("value");this._renderInputAddons(),this.setAria("valuenow",t)},_renderValueEventName:function(){return this.callBase()+" keypress"},_toggleDisabledState:function(e){this._$spinUp&&f.getInstance(this._$spinUp).option("disabled",e),this._$spinDown&&f.getInstance(this._$spinDown).option("disabled",e),this.callBase.apply(this,arguments)},_forceValueRender:function(){var e=this.option("value"),t=Number(e),n=this.option("valueFormat"),i=isNaN(t)?"":n(e);this._renderDisplayText(i)},_renderProps:function(){this.callBase(),this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:this.option("min")||"undefined",valuemax:this.option("max")||"undefined"})},_renderInputAddons:function(){this.callBase(),this._renderSpinButtons()},_renderSpinButtons:function(){var e=this.option("showSpinButtons");return this.element().toggleClass(v,e),this._toggleTouchFriendlyClass(),e?(this._$spinContainer||(this._$spinContainer=this._createSpinButtons()),void this._$spinContainer.prependTo(this._buttonsContainer())):(this._$spinContainer&&this._$spinContainer.remove(),void(this._$spinContainer=null))},_toggleTouchFriendlyClass:function(){this.element().toggleClass(x,this.option("showSpinButtons")&&this.option("useLargeSpinButtons")); },_createSpinButtons:function(){var e=u.addNamespace(h.down,this.NAME),t=this._createAction(this._spinButtonsPointerDownHandler.bind(this)),n=i("
").addClass(w).off(e).on(e,function(e){t({jQueryEvent:e})});return this._$spinUp=i("
").appendTo(n),this._createComponent(this._$spinUp,f,{direction:"up",onChange:this._spinUpChangeHandler.bind(this)}),this._$spinDown=i("
").appendTo(n),this._createComponent(this._$spinDown,f,{direction:"down",onChange:this._spinDownChangeHandler.bind(this)}),n},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||document.activeElement===e[0]||e.trigger("focus")},_spinUpChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(1,e.jQueryEvent||e)},_spinDownChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(-1,e.jQueryEvent||e)},_spinValueChange:function(e,t){var n=parseFloat(this._normalizeInputValue())||0,i=parseFloat(this.option("step"));n=this._correctRounding(n,i*e);var o=this.option("min"),a=this.option("max");void 0!==o&&(n=Math.max(o,n)),void 0!==a&&(n=Math.min(a,n)),this._saveValueChangeEvent(t),this.option("value",n)},_correctRounding:function(e,t){var n=/[,.](.*)/,i=n.test(e),o=n.test(t);if(i||o){var a=i?n.exec(e)[0].length:0,s=o?n.exec(t)[0].length:0,r=g.max(a,s);return e=this._round(e+t,r)}return e+t},_round:function(e,t){t=t||0;var n=Math.pow(10,t);return e*=n,e=Math.round(e)/n},_renderValueChangeEvent:function(){this.callBase(),this._input().focusout(this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this.option("valueFormat");e.val(null),e.val(t(this.option("value")))}},_valueChangeEventHandler:function(e){var t=this._input(),n=this._normalizeText(),i=this.option("valueFormat"),o=this._parseValue(n),a="."!==n&&"-"!==n,s=this._isValueIncomplete(n),r=this._isValueInRange(n);return this._isValueValid()&&!this._validateValue(o)?void t.val(i(o)):(a&&this.callBase(e,isNaN(o)?null:o),s||r||null===o||Number(n)!==o&&t.val(i(o)),void this.validationRequest.fire({value:o,editor:this}))},_replaceCommaWithPoint:function(e){return e.replace(",",".")},_inputIsInvalid:function(){var e="number"===this.option("mode"),t=this._input().get(0).validity;return e&&t&&t.badInput},_renderDisplayText:function(e){this._inputIsInvalid()||this.callBase(e)},_isValueIncomplete:function(e){var t=/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i;return t.test(e)},_isValueInRange:function(e){return a.inRange(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),n=this._isValueValid(),i=!0,o=this._isNumber(t);return isNaN(Number(e))&&(i=!1),!e&&n?i=!0:o||n||(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_normalizeInputValue:function(){return this._normalizeValue()},_normalizeValue:function(e){return this._parseValue(this._normalizeText(e))},_normalizeText:function(e){return e=i.trim(o.isDefined(e)?e:this._input().val()),this._replaceCommaWithPoint(e)},_parseValue:function(e){var t=parseFloat(e);return isNaN(t)?null:a.fitIntoRange(t,this.option("min"),this.option("max"))},_clean:function(){delete this._$spinContainer,delete this._$spinUp,delete this._$spinDown,this.callBase()},_optionChanged:function(e){switch(e.name){case"value":this._validateValue(e.value),this._setSubmitValue(e.value),this.callBase(e),this._resumeValueChangeAction();break;case"step":case"min":case"max":this._renderProps();break;case"showSpinButtons":this._renderInputAddons();break;case"useLargeSpinButtons":this._toggleTouchFriendlyClass();break;case"invalidValueMessage":break;default:this.callBase(e)}}});c("dxNumberBox",b),e.exports=b},function(e,t,n){var i=n(9),o=n(96),a=n(11).extend,s=n(72),r=n(77),l=n(105),c=n(165),d="dx-numberbox-spin",u="dx-numberbox-spin-button",h=100,p="dxNumberBox",f=s.addNamespace(r.up,p),m=s.addNamespace(r.cancel,p),g=o.inherit({_getDefaultOptions:function(){return a(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_render:function(){this.callBase();var e=this.element(),t=d+"-"+this.option("direction"),n=s.addNamespace(r.down,this.NAME);e.addClass(u).addClass(t).off(n).on(n,this._spinDownHandler.bind(this)),this._spinIcon=i("
").addClass(t+"-icon").appendTo(this.element()),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),this.element().on(c.name,function(){this._feedBackDeferred=i.Deferred(),l.lock(this._feedBackDeferred),this._spinChangeHandler({jQueryEvent:e}),this._holdTimer=setInterval(this._spinChangeHandler,h,{jQueryEvent:e})}.bind(this)),i(document).on(f,this._clearTimer.bind(this)).on(m,this._clearTimer.bind(this)),this._spinChangeHandler({jQueryEvent:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){this.element().off(c.name),i(document).off(f).off(m),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}});e.exports=g},function(e,t,n){var i=n(9),o=n(14),a=n(18),s=n(57),r=n(70),l=n(39).dasherize,c=n(11).extend,d=n(43),u=n(72),h=n(77),p=n(111),f=n(71),m=o.isFunction,g=o.noop,_="dxDraggable",v=u.addNamespace(p.start,_),w=u.addNamespace(p.move,_),x=u.addNamespace(p.end,_),y=u.addNamespace(h.down,_),b=l(_),C=b+"-dragging",k=d.inherit({_getDefaultOptions:function(){return c(this.callBase(),{onDragStart:g,onDrag:g,onDragEnd:g,immediate:!0,direction:"both",area:window,boundOffset:0,allowMoveByClick:!1})},_init:function(){this.callBase(),this._attachEventHandlers()},_attachEventHandlers:function(){if(!this.option("disabled")){var e=this.element().css("position","absolute"),t={},n=this.option("allowMoveByClick");t[v]=this._dragStartHandler.bind(this),t[w]=this._dragHandler.bind(this),t[x]=this._dragEndHandler.bind(this),n&&(t[y]=this._pointerDownHandler.bind(this),e=this._getArea()),e.on(t,{direction:this.option("direction"),immediate:this.option("immediate")})}},_detachEventHandlers:function(){this.element().off("."+_),this._getArea().off("."+_)},_move:function(e){r.move(this.element(),e)},_pointerDownHandler:function(e){if(!u.needSkipEvent(e)){var t=this._getAreaOffset(i(e.currentTarget)),n=this.option("direction"),o={};"horizontal"!==n&&"both"!==n||(o.left=e.pageX-this.element().width()/2-t.left),"vertical"!==n&&"both"!==n||(o.top=e.pageY-this.element().height()/2-t.top),this._move(o),this._getAction("onDrag")({jQueryEvent:e})}},_dragStartHandler:function(e){var t=this.element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);var n=this._getArea(),i=this._getAreaOffset(n),o=this._getBoundOffset(),a=n.outerWidth(),s=n.outerHeight(),l=t.width(),c=t.height();this._toggleDraggingClass(!0);var d={left:t.offset().left-i.left,top:t.offset().top-i.top};this._startPosition=r.locate(t),e.maxLeftOffset=d.left-o.left,e.maxRightOffset=a-d.left-l-o.right,e.maxTopOffset=d.top-o.top,e.maxBottomOffset=s-d.top-c-o.bottom,this._getAction("onDragStart")({jQueryEvent:e})},_getAreaOffset:function(e){var t=e&&f.offset(e);return t?t:{left:0,top:0}},_toggleDraggingClass:function(e){this.element().toggleClass(C,e)},_getBoundOffset:function(){var e=this.option("boundOffset");return m(e)&&(e=e.call(this)),a.quadToObject(e)},_getArea:function(){var e=this.option("area");return m(e)&&(e=e.call(this)),i(e)},_dragHandler:function(e){var t=e.offset,n=this._startPosition;this._move({left:n.left+t.x,top:n.top+t.y}),this._getAction("onDrag")({jQueryEvent:e})},_dragEndHandler:function(e){this._toggleDraggingClass(!1),this._getAction("onDragEnd")({jQueryEvent:e})},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_render:function(){this.callBase(),this.element().addClass(b)},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDrag":case"onDragEnd":this["_"+t+"Action"]=this._createActionByOption(t);break;case"allowMoveByClick":case"direction":case"disabled":this._detachEventHandlers(),this._attachEventHandlers();break;case"boundOffset":case"area":break;default:this.callBase(e)}},_dispose:function(){this.callBase(),this._detachEventHandlers()}});s(_,k),e.exports=k},function(e,t,n){e.exports=n(269)},function(e,t,n){var i=n(9),o=n(57),a=n(14),s=n(17).compare,r=n(11).extend,l=n(61),c=n(53),d=n(15),u=n(64),h=n(270),p=n(260),f=n(211),m=n(33),g=n(90),_="dx-datebox",v="dx-auto-width",w="dx-datebox-wrapper",x={calendar:"calendar",rollers:"rollers",list:"list","native":"native"},y={date:"date",datetime:"datetime",time:"time"},b={calendar:"Calendar",dateView:"DateView","native":"Native",calendarWithTime:"CalendarWithTime",list:"List"},C={Calendar:n(271),DateView:n(273),Native:n(276),CalendarWithTime:n(277),List:n(279)},k=function(e){var t=e[0].style.width;return!(!t||"auto"===t||"inherit"===t)},I=function(e,t,n){var o=10,a=48,s=i("
").text(e).css({"font-style":t.css("font-style"),"font-variant":t.css("font-variant"),"font-weight":t.css("font-weight"),"font-size":t.css("font-size"),"font-family":t.css("font-family"),"letter-spacing":t.css("letter-spacing"),"padding-left":t.css("padding-left"),"padding-right":t.css("padding-right"),border:t.css("border"),visibility:"hidden","white-space":"nowrap",position:"absolute","float":"left"});s.appendTo(n);var r=s.outerWidth()+o+("text"!==t.prop("type")?a:0);return s.remove(),r},S=f.inherit({_supportedKeys:function(){return r(this.callBase(),this._strategy.supportedKeys())},_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{format:{since:"16.1",alias:"type"},formatString:{since:"16.1",alias:"displayFormat"},useNative:{since:"15.1",message:"'useNative' option is deprecated in 15.1. Use the 'pickerType' option instead"},useCalendar:{since:"15.1",message:"'useCalendar' option is deprecated in 15.1. Use the 'pickerType' option instead"}})},_getDefaultOptions:function(){return r(this.callBase(),{type:"date",value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,useCalendar:!1,displayFormat:null,interval:30,maxZoomLevel:"month",minZoomLevel:"century",useNative:!0,pickerType:x.native,invalidDateMessage:g.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:g.format("validation-range"),applyButtonText:g.format("Done"),adaptivityEnabled:!1,onContentReady:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showPopupTitle:!0}},{device:function(e){return"android"===e.platform},options:{buttonsLocation:"bottom after"}},{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{buttonsLocation:"bottom after"}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{buttonsLocation:"bottom center"}},{device:function(){var e=c.real(),t=e.platform,n=e.version;return"generic"===t||"win"===t||"android"===t&&s(n,[4,4])<0},options:{pickerType:x.rollers}},{device:{platform:"generic",deviceType:"desktop"},options:{pickerType:x.calendar,buttonsLocation:"bottom after"}},{device:function(){var e=c.real(),t=e.platform,n=e.phone;return"win"===t&&!n},options:{pickerType:x.calendar}}])},_initOptions:function(e){this._userOptions=r({},e),this.callBase(e),this._updatePickerOptions(this._userOptions)},_updatePickerOptions:function(e){var t=this._getPickerTypeByDeprecatedOptions(e),n=this.option("type");t!==x.list||n!==y.datetime&&n!==y.date||(t=x.calendar),n===y.time&&t===x.calendar&&(t=x.list),this.option("showDropDownButton","generic"!==c.real().platform||t!==x.native),this._pickerType=t},_getPickerTypeByDeprecatedOptions:function(e){return e.pickerType?e.pickerType:a.isDefined(e.useCalendar)||a.isDefined(e.useNative)?this._getPickerType():this._pickerType||this.option("pickerType")},_getPickerType:function(){return this.option().useCalendar?this.option("type")===y.time?x.list:x.calendar:this.option().useNative?x.native:x.rollers},_init:function(){this._initStrategy(),this.option(r({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},_initStrategy:function(){var e=this._getStrategyName(this._getFormatType()),t=C[e];this._strategy&&this._strategy.NAME===e||(this._strategy=new t(this))},_getFormatType:function(){var e=this.option("type"),t=/h|m|s/g.test(e),n=/d|M|Y/g.test(e),i="";return n&&(i+=y.date),t&&(i+=y.time),i},_getStrategyName:function(e){var t=this._pickerType;return t===x.rollers?this.option().useCalendar?b.calendar:b.dateView:t===x.native?b.native:e===y.date?b.calendar:e===y.datetime?b.calendarWithTime:b.list},_render:function(){this.element().addClass(_),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._renderSubmitElement(),this.callBase(),this._updateSize(),this._strategy.renderInputMinMax(this._input())},_renderDimensions:function(){this.callBase(),this.element().toggleClass(v,!this.option("width"))},_refreshFormatClass:function(){var e=this.element();i.each(y,function(t,n){e.removeClass(_+"-"+n)}),e.addClass(_+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var e=this.element();i.each(x,function(t,n){e.removeClass(_+"-"+n)}),e.addClass(_+"-"+this._pickerType)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element())},_getSubmitElement:function(){return this._$submitElement},_updateSize:function(){var e=this.element(),t=this.option("width"),n=a.isDefined(t)||k(e)&&!this._isSizeUpdatable,i=e.is(":visible"),o=this._pickerType,s=o!==x.rollers&&"generic"===c.current().platform;if(!n&&s&&i){var r=this._input(),l=this._strategy.getDisplayFormat(this.option("displayFormat")),d=m.format(h.getLongestDate(l,m.getMonthNames(),m.getDayNames()),l);e.width(I(d,r,this.element())),this._isSizeUpdatable=!0}},_attachChildKeyboardEvents:function(){this._strategy.attachKeyboardEvents(this._keyboardProcessor)},_renderPopup:function(){this.callBase(),this._popup._wrapper().addClass(w),this._renderPopupWrapper()},_popupConfig:function(){var e=this.callBase();return r(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.element(),t=r({},y,x);i.each(t,function(t,n){e.removeClass(w+"-"+n)}.bind(this)),this._popup._wrapper().addClass(w+"-"+this.option("type")).addClass(w+"-"+this._pickerType)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupHiddenHandler:function(){this.callBase(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._updateSize()},_readOnlyPropValue:function(){return this.callBase()||this._pickerType===x.rollers},_clearButtonVisibility:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat");this.option("text",this._getDisplayedText(e));var n=h.SUBMIT_FORMATS_MAP[this.option("type")],i=t?p.serializeDate(e,t):h.toStandardDateFormat(e,n);this._$submitElement.val(i),this._strategy.renderValue(),this.callBase()},_getDisplayedText:function(e){var t,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));t=m.format(e,i)}else{var o=this._getFormatByMode(n);t=o?m.format(e,o):h.toStandardDateFormat(e,n)}return t},_getFormatByMode:function(e){return l.inputType(e)?null:h.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var t=this.option("text"),n=this._getParsedDate(t),i=this.dateOption("value")||this._getDateByDefault(),o=this.option("type"),a=h.mergeDates(i,n,o),s=n&&"time"===o?a:n;if(this._validateValue(s)){var r=this._getDisplayedText(a);i&&a&&i.getTime()===a.getTime()&&r!==t?this._renderValue():this.dateValue(a,e)}this.validationRequest.fire({value:a,editor:this})},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&new Date},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=this._strategy.getParsedText(e,t);return a.isDefined(n)?n:void 0},_validateValue:function(e){var t=this.option("text"),n=!!t&&null!==e,i=!!e&&a.isDate(e)&&!isNaN(e.getTime()),o=i&&u.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),s=!n||!n&&!e||o,r="";return i?o||(r=this.option("dateOutOfRangeMessage")):r=this.option("invalidDateMessage"),this.option({isValid:s,validationError:s?null:{editorSpecific:!0,message:r}}),s},_isValueChanged:function(e){var t=this.dateOption("value"),n=t&&t.getTime(),i=e&&e.getTime();return n!==i},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy(),this._strategy.renderOpenedState()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===y.time?g.format("dxDateBox-simulatedDataPickerTitleTime"):t===y.date||t===y.datetime?g.format("dxDateBox-simulatedDataPickerTitleDate"):""},_renderPlaceholder:function(){this._popup&&this._popup.option("title",this._getPopupTitle()),this.callBase()},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(){this.dateValue(this._strategy.getValue()),this.callBase()},_dispose:function(){this._strategy&&this._strategy.dispose(),this.callBase()},_isNativeType:function(){return this._pickerType===x.native},_optionChanged:function(e){switch(e.name){case"useCalendar":this._updatePickerOptions({useCalendar:e.value}),this._refreshStrategy();break;case"useNative":this._updatePickerOptions({useNative:e.value}),this._refreshStrategy();break;case"showClearButton":this.callBase.apply(this,arguments),this._updateSize();break;case"pickerType":this._updatePickerOptions({pickerType:e.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:e.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._updateSize();break;case"placeholder":this._renderPlaceholder();break;case"min":case"max":this._validateValue(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"readOnly":case"interval":case"minZoomLevel":case"maxZoomLevel":this._invalidate();break;case"displayFormat":this._updateValue();break;case"formatWidthCalculator":break;case"closeOnValueChange":var t=e.value?"instantly":"useButtons";this.option("applyValueMode",t);break;case"applyValueMode":this._suppressDeprecatedWarnings(),this.option("closeOnValueChange","instantly"===e.value),this._resumeDeprecatedWarnings(),this.callBase.apply(this,arguments);break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._updateSize();break;case"value":this._validateValue(this.dateOption("value")),this.callBase.apply(this,arguments);break;case"showDropDownButton":case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var e=this.option("value");if(this.option("dateSerializationFormat")&&d().forceIsoDateParsing)return this.option("dateSerializationFormat");if(a.isNumeric(e))return"number";if(a.isString(e))return p.getDateSerializationFormat(e)},dateValue:function(e,t){return this._isValueChanged(e)&&t&&this._saveValueChangeEvent(t),this.dateOption("value",e)},dateOption:function(e,t){if(1===arguments.length)return p.deserializeDate(this.option(e));var n=this._getSerializationFormat();this.option(e,p.serializeDate(t,n))},reset:function(){this.callBase(),this._updateValue()}});o("dxDateBox",S),e.exports=S},function(e,t,n){var i=n(9),o=n(260),a=n(14),s=n(33),r=function(){return["year","day","month","day"]},l=6e4,c=60*l*24,d=365*c,u=function(e){var t=typeof e;return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},h={SUPPORTED_FORMATS:["date","time","datetime"],DEFAULT_FORMATTER:function(e){return e},DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=i("
").addClass("dx-dateview-formatter-container");return i("").text(e).addClass("dx-dateview-value-formatter").appendTo(n),i("").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:l,ONE_DAY:c,ONE_YEAR:d,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","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e;return function(){var t="yyyy-MM-ddTHH:mmZ",n="2000-01-01T01:01Z",o=i("<input>").attr("type","datetime");o.val(n),o.val()&&(e=t)}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),h.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"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=h.FORMATS_INFO[t].getStandardPattern();return o.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=o.dateParser(e);return a.isDate(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var o=new Date(null);e=new Date(o.getFullYear(),o.getMonth(),o.getDate())}var a=new Date(e.valueOf()),s=h.FORMATS_INFO[n];return i.each(s.components,function(){var e=h.DATE_COMPONENTS_INFO[this];a[e.setter](t[e.getter]())}),a},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;t<e.length;++t)e[t].length>i&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return s.formatUsesMonthName(e)},formatUsesDayName:function(e){return s.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=u(e),o=9;i&&!h.formatUsesMonthName(i)||(o=h.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||h.formatUsesDayName(i)){var s=a.getDate()-a.getDay()+h.getLongestCaptionIndex(n);a.setDate(s)}return a}};h.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:h.DEFAULT_FORMATTER,startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t,n){if(!t)return e;var i=new Date(n.getTime());return i.setDate(e),h.DATE_COMPONENT_TEXT_FORMATTER(e,s.getDayNames()[i.getDay()])},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e,t){var n=s.getMonthNames()[e];return t?h.DATE_COMPONENT_TEXT_FORMATTER(e+1,n):n},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return s.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return s.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return s.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return s.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=h},function(e,t,n){var i=n(254),o=n(272),a=n(64),s=n(14),r=n(11).extend,l=n(90),c=o.inherit({NAME:"Calendar",supportedKeys:function(){return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")!==this._widget.option("maxZoomLevel"))return!0;var t=this._widget._view.option("contouredDate");t&&this.dateBoxValue(t,e),this.dateBox.close(),this.dateBox._valueChangeEventHandler(e)}else this.dateBox._valueChangeEventHandler(e)}.bind(this)}},getDisplayFormat:function(e){return e||"shortdate"},_getWidgetName:function(){return i},_getWidgetOptions:function(){return r(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,_keyboardProcessor:this._widgetKeyboardProcessor,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,maxZoomLevel:this.dateBox.option("maxZoomLevel"),minZoomLevel:this.dateBox.option("minZoomLevel"),onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t=e.toolbarItems,n=this.dateBox.option("buttonsLocation"),i=[];return i="default"!==n?s.splitPair(n):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&t.unshift({widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onClick:function(){this._widget._toTodayView()}.bind(this),text:l.format("dxCalendar-todayButtonText"),type:"today"}}),r(!0,e,{toolbarItems:t,position:{collision:"flipfit flip"}})},_valueChangedHandler:function(e){var t=this.dateBox,n=e.value,i=e.previousValue;a.sameDate(n,i)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.jQueryEvent)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.jQueryEvent))},dispose:function(){this.dateBox.off("optionChanged"),this.callBase()}});e.exports=c},function(e,t,n){var i=n(9),o=n(14).noop,a=n(25),s=n(33),r=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||i("
"),this._widget=this._createWidget(e),this._widget.element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:r,_getWidgetName:r,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:r,supportedKeys:o,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){return s.parse(e,t)},renderInputMinMax:o,renderOpenedState:function(){this.dateBox.option("opened")&&this._updateValue()},popupConfig:r,renderPopupContent:function(){var e=this._getPopup();this._renderWidget(),e.content().parent().off("mousedown").on("mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:o,getLastPopupElement:o,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:o,popupHiddenHandler:o,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:o,textChangedHandler:o,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});e.exports=l},function(e,t,n){var i=n(9),o=n(274),a=n(272),s=n(61),r=n(11).extend,l=n(144),c=n(270),d=n(90),u=a.inherit({NAME:"DateView",getDefaultOptions:function(){return r(this.callBase(),{openOnFieldClick:!0,applyButtonText:d.format("Done")})},getDisplayFormat:function(e){return e||c.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(){return{showTitle:!0,toolbarItems:this.dateBox._popupToolbarItemsConfig(),defaultOptionsRules:[{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showNames:!0}},{device:function(e){return"win"===e.platform&&e.phone&&e.version&&8===e.version[0]},options:{animation:null}},{device:function(){var e=(l.current()||"").split(".")[0];return"win8"===e},options:{fullScreen:!0}},{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform,n=e.version;return"generic"===t||"ios"===t||"win"===t&&n&&10===n[0]},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,n=e.phone;return"generic"===t&&n},options:{width:333,height:"auto",position:{collision:"flipfit flip"}}},{device:function(e){var t=(l.current()||"").split(".")[0];return e.phone&&"win10"===t},options:{width:333,height:"auto"}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:window}}}]}},_renderWidget:function(){if(s.inputType(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))return void(this._widget&&(this._widget.element().remove(),this._widget=null));var e=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var t=i("
").appendTo(e.content());this._widget=this._createWidget(t)}this._widget.element().appendTo(this._getWidgetContainer())},_getWidgetName:function(){return o},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,1,1),maxDate:this.dateBox.dateOption("max")||new Date(i.now()+50*c.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())}});e.exports=u},function(e,t,n){var i=n(9),o=n(107),a=n(275),s=n(64),r=n(11).extend,l=n(270),c=n(57),d=n(33),u="dx-dateview",h="dx-dateview-wrapper",p="dx-dateview-rollers",f="dx-dateviewroller",m={date:"date",datetime:"datetime",time:"time"},g={year:"year",month:"month",day:"day"},_=o.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===m.date?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return r(this.callBase(),{minDate:l.MIN_DATEVIEW_DEFAULT_DATE,maxDate:l.MAX_DATEVIEW_DEFAULT_DATE,type:m.date,value:new Date,showNames:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showNames:!0}}])},_render:function(){this.callBase(),this.element().addClass(u),this._toggleFormatClasses(this.option("type"))},_toggleFormatClasses:function(e,t){this.element().addClass(u+"-"+e),t&&this.element().removeClass(u+"-"+t)},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=i("
").addClass(h),this._renderRollers(),this._$wrapper.appendTo(this.element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=i("
").addClass(p)), this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;i.each(e._rollerConfigs,function(t){var n=i("
").appendTo(e._$rollersContainer).addClass(f+"-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(n,a,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:!1,onStart:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex"))},onEnd:function(e){var t=e.component;t._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){var i=n.component;e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex"))}})}),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},d.getFormatParts(l.FORMATS_MAP[e]).forEach(function(e){t._createRollerConfig(e)})},_createRollerConfig:function(e){for(var t=l.DATE_COMPONENTS_INFO[e],n=this._calculateRollerConfigValueRange(e),i=n.startValue,o=n.endValue,a=t.formatter,s=this.option("showNames"),r=this._getCurrentDate(),c={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-i}},d=i;d<=o;d++)c.valueItems.push(d),c.displayItems.push(a(d,s,r));c.selectedIndex=c.getIndex(r),this._rollerConfigs[e]=c},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];i.each(this._rollers,function(){this.toggleActiveState(this===t)})},_updateRollersPosition:function(){var e=this;i.each(this._rollers,function(t){var n=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",n)})},_setRollerState:function(e,t){if(t!==e.selectedIndex){var n=e.valueItems[t],i=e.setValue,o=new Date(this._getCurrentDate()),a=o.getDate();e.type===g.month?a=Math.min(a,l.getMaxMonthDay(o.getFullYear(),n)):e.type===g.year&&(a=Math.min(a,l.getMaxMonthDay(n,o.getMonth()))),o.setDate(a),o[i](n),o=s.normalizeDate(o,this.option("minDate"),this.option("maxDate")),this.option("value",o),e.selectedIndex=t}e.type===g.year&&(this._refreshMonthRoller(),this._refreshDayRoller()),e.type===g.month&&this._refreshDayRoller()},_refreshMonthRoller:function(){var e=this._rollers[g.month];if(e){this._createRollerConfig(g.month);var t=this._rollerConfigs[g.month];t.displayItems.length!==e.option("items").length&&e.option({items:t.displayItems,selectedIndex:t.selectedIndex})}},_refreshDayRoller:function(){var e=this._rollers[g.day];if(e){this._createRollerConfig(g.day);var t=this._rollerConfigs[g.day];e.option({items:t.displayItems,selectedIndex:t.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),n=this.option("maxDate");return t&&e.getTime()<=t.getTime()?e=t:n&&e.getTime()>=n.getTime()&&(e=n),e},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),o=s.sameYear(t,n),a=o&&t.getMonth()===n.getMonth(),r=s.sameYear(t,i),c=r&&t.getMonth()===i.getMonth(),d=l.DATE_COMPONENTS_INFO[e],u=d.startValue,h=d.endValue;return e===g.year&&(u=n.getFullYear(),h=i.getFullYear()),e===g.month&&(o&&(u=n.getMonth()),r&&(h=i.getMonth())),e===g.day&&(h=l.getMaxMonthDay(t.getFullYear(),t.getMonth()),o&&a&&(u=n.getDate()),r&&c&&(h=i.getDate())),{startValue:u,endValue:h}},_refreshRollers:function(){this._refreshMonthRoller(),this._refreshDayRoller()},_optionChanged:function(e){switch(e.name){case"showNames":case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer},_dispose:function(){clearTimeout(this._deferredRenderDayTimeout),clearTimeout(this._deferredRenderMonthTimeout),this.callBase()}});c("dxDateView",_),e.exports=_},function(e,t,n){var i=n(9),o=n(57),a=n(11).extend,s=n(72),r=n(76),l=n(245),c=n(69),d=n(70),u="dx-dateviewroller",h="dx-state-active",p="dx-dateviewroller-current",f="dx-dateview-item",m="dx-dateview-item-selected",g="dx-dateview-item-selected-frame",_="dx-dateview-item-selected-border",v=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{showScrollbar:!1,useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showOnClick:!0}},{device:{platform:"generic"},options:{scrollByContent:!0}}])},_init:function(){this.callBase(),this._renderSelectedItemFrame()},_render:function(){this.callBase(),this.element().addClass(u),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._wrapAction("_endAction",this._endActionHandler.bind(this)),this._renderSelectedIndexChanged()},_renderSelectedIndexChanged:function(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")},_renderContainerClick:function(){if(this.option("showOnClick")){var e=s.addNamespace(r.name,this.NAME),t=this._createActionByOption("onClick");this._$container.off(e).on(e,function(e){t({jQueryEvent:e})})}},_wrapAction:function(e,t){var n=this._strategy,i=n[e];n[e]=function(){return t.apply(this,arguments),i.apply(this,arguments)}},_renderItems:function(){var e=this.option("items")||[],t=i();this._$content.empty(),i.each(e,function(){t=t.add(i("
").addClass(f).append(this))}),this._$content.append(t),this._$items=t,this.update()},_renderSelectedItemFrame:function(){i("
").addClass(g).append(i("
").addClass(_)).appendTo(this._$container)},_renderSelectedValue:function(e){var t=this._fitIndex(e||this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()},_fitIndex:function(e){var t=this.option("items")||[],n=t.length;return e>=n?n-1:e<0?0:e},_getItemPosition:function(e){return Math.round(this._itemHeight()*e)},_renderItemsClick:function(){var e=this._getItemSelector(),t=s.addNamespace(r.name,this.NAME);this.element().off(t,e),this.element().on(t,e,this._itemClickHandler.bind(this))},_getItemSelector:function(){return"."+f},_itemClickHandler:function(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))},_itemElementIndex:function(e){return this._itemElements().index(e)},_itemElements:function(){return this.element().find(this._getItemSelector())},_renderActiveStateItem:function(){var e=this.option("selectedIndex");i.each(this._$items,function(t){i(this).toggleClass(m,e===t)})},_moveTo:function(e){e=this._normalizeLocation(e);var t=this._location(),n={x:-(t.left-e.left),y:-(t.top-e.top)};if(this._isVisible()&&(n.x||n.y))if(this._strategy._prepareDirections(!0),this._animation){var i=this;c.stop(this._$content),c.animate(this._$content,{duration:200,type:"slide",to:{top:Math.floor(n.y)},complete:function(){d.resetPosition(i._$content),i._strategy.handleMove({delta:n})}}),delete this._animation}else this._strategy.handleMove({delta:n})},_validate:function(e){return this._strategy.validate(e)},_endActionHandler:function(){var e=this.option("selectedIndex"),t=-this._location().top/this._itemHeight(),n=Math.round(t);this._animation=!0,n===e?this._renderSelectedValue(n):this.option("selectedIndex",n)},_itemHeight:function(){var e=this._$items.first();return e.get(0)&&e.get(0).getBoundingClientRect().height||0},_toggleActive:function(e){this.element().toggleClass(h,e)},_isVisible:function(){return this._$container.is(":visible")},_fireSelectedIndexChanged:function(e,t){this._selectedIndexChanged({value:e,previousValue:t,jQueryEvent:void 0})},_visibilityChanged:function(e){this.callBase(e),e&&this._renderSelectedValue(this.option("selectedIndex")),this.toggleActiveState(!1)},toggleActiveState:function(e){this.element().toggleClass(p,e)},_refreshSelectedIndex:function(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)},_optionChanged:function(e){switch(e.name){case"selectedIndex":this._fireSelectedIndexChanged(e.value,e.previousValue),this._renderSelectedValue(e.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:this.callBase(e)}}});o("dxDateViewRoller",v),e.exports=v},function(e,t,n){var i=n(14).noop,o=n(272),a=n(61),s=n(26).inArray,r=n(270),l=n(260),c=o.inherit({NAME:"Native",popupConfig:i,getParsedText:function(e){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):r.fromStandardDateFormat(e):null},renderPopupContent:i,_getWidgetName:i,_getWidgetOptions:i,_getDateBoxType:function(){var e=this.dateBox.option("type");return s(e,r.SUPPORTED_FORMATS)===-1?e="date":"datetime"!==e||a.inputType(e)||(e="datetime-local"),e},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||r.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:l.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:l.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});e.exports=c},function(e,t,n){var i=n(9),o=n(271),a=n(278),s=n(11).extend,r=n(253),l=573,c="dx-datebox-adaptivity-mode",d=o.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return s(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after",showPopupTitle:!1})},getDisplayFormat:function(e){return e||"shortdateshorttime"},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent(i("
"),a,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),onValueChanged:this._valueChangedHandler.bind(this)})},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e._wrapper().toggleClass(c,this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView();return e!==this._currentAdaptiveMode?(this._currentAdaptiveMode=e,!0):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date),this.callBase(),this._timeView&&t&&this._timeView.option("value",t)},_isSmallScreen:function(){return i(window).width()<=l},_isShrinkView:function(){return this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().content();this._box=this.dateBox._createComponent(i("
").appendTo(e),r,{direction:"row",crossAlign:"start",items:this._getBoxItems(),itemTemplate:function(e){var t=i("
");switch(e.name){case"calendar":t.append(this._widget.element()),this._isShrinkView()&&t.append(this._timeView.element());break;case"time":t.append(this._timeView.element())}return t}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e),n=s(t,{onShowing:function(){if("fallback"===this._box.option("_layoutStrategy")){var e=this._getPopup().content().find(".dx-timeview-clock").css("minWidth");this._timeView.element().css("width",e)}}.bind(this)});return n},getFirstPopupElement:function(){return this._timeView._hourBox.element().find("input")},_attachTabHandler:function(){var e=this.dateBox,t=function(t){t.shiftKey&&(t.preventDefault(),e.focus())};this._timeView._hourBox.registerKeyHandler("tab",t)},_preventFocusOnPopup:function(e){i(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},getValue:function(){var e=this._widget.option("value"),t=this._timeView.option("value");return e=e?new Date(e):new Date,e.setHours(t.getHours(),t.getMinutes(),t.getSeconds()),e},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});e.exports=d},function(e,t,n){var i=n(9),o=n(107),a=n(264),s=n(253),r=n(11).extend,l=n(57),c=n(33),d="dx-timeview",u="dx-timeview-clock",h="dx-timeview-field",p="dx-timeview-hourarrow",f="dx-timeview-time-separator",m="dx-timeview-minutearrow",g=function(e,t,n){_(e,t,n)},_=function(e,t,n){e.css("transform","rotate("+t+"deg) translate(0,"+n+"px)")},v=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{value:new Date(i.now()),_showClock:!0,_arrowOffset:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{_arrowOffset:15}},{device:{platform:"generic"},options:{_arrowOffset:5}}])},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.element().addClass(d)},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=i("
").appendTo(this.element()),t=[];this.option("_showClock")&&t.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),t.push({ratio:0,shrink:0,baseSize:50,template:this._renderField.bind(this)}),this._createComponent(e,s,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,n){this._$hourArrow=i("
").addClass(p),this._$minuteArrow=i("
").addClass(m),n.addClass(u).append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",n)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,n=e.getMinutes()/60*360;g(this._$hourArrow,t,this.option("_arrowOffset")),g(this._$minuteArrow,n,this.option("_arrowOffset"))},_renderField:function(){return this._createHourBox(),this._createMinuteBox(),this._createComponent(i("
").addClass(h),s,{direction:"row",align:"center",crossAlign:"center",items:[{ratio:0,shrink:0,baseSize:"auto",template:function(){return this._hourBox.element()}.bind(this)},{ratio:0,shrink:0,baseSize:"auto",template:i("
",{"class":f}).text(c.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:function(){return this._minuteBox.element()}.bind(this)}]}).element()},_createHourBox:function(){this._hourBox=this._createComponent(i("
"),a,r({min:-1,max:24,value:this._getValue().getHours(),onValueChanged:function(e){var t=(24+e.value)%24;this._hourBox.option("value",t);var n=new Date(this._getValue());n.setHours(t),this.option("value",n)}.bind(this)},this._getNumberBoxConfig())),this._hourBox.setAria("label","hours")},_createMinuteBox:function(){this._minuteBox=this._createComponent(i("
"),a,r({min:-1,max:60,value:this._getValue().getMinutes(),onValueChanged:function(e){var t=(60+e.value)%60;this._minuteBox.option("value",t);var n=new Date(this._getValue());n.setMinutes(t),this.option("value",n)}.bind(this)},this._getNumberBoxConfig())),this._minuteBox.setAria("label","minutes")},_getNumberBoxConfig:function(){return{showSpinButtons:!0,disabled:this.option("disabled"),valueFormat:function(e){return(e<10?"0":"")+e}}},_updateField:function(){this._hourBox&&this._hourBox.option("value",this._getValue().getHours()),this._minuteBox&&this._minuteBox.option("value",this._getValue().getMinutes())},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_toggleDisabledState:function(e){this._hourBox&&this._hourBox.option("disabled",e),this._minuteBox&&this._minuteBox.option("disabled",e)},_optionChanged:function(e){switch(e.name){case"value":this._updateTime(),this.callBase(e);break;case"_arrowOffset":break;case"_showClock":this._invalidate();break;default:this.callBase(e)}}});l("dxTimeView",v),e.exports=v},function(e,t,n){var i=n(9),o=n(219),a=n(272),s=n(53),r=n(14),l=n(11).extend,c=n(270),d=n(33),u={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},h=a.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){this.option("opened")&&this.close()},space:r.noop,home:r.noop,end:r.noop}},getDefaultOptions:function(){return l(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){var t=s.current(),n=l(e,{width:this._getPopupWidth()});return"android"===t.platform&&l(n,{position:{offset:{h:-16,v:-10}}}),n},useCurrentDateByDefault:function(){return!0},_getPopupWidth:function(){var e=s.current(),t=this.dateBox.element().outerWidth();return"android"===e.platform&&(t+=32),t},popupShowingHandler:function(){this._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return o},_getWidgetOptions:function(){var e=this.dateBox._keyboardProcessor;return{_keyboardProcessor:e?e.attachChildProcessor():null,itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",e.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var e=this.dateBoxValue(),t=this._getDateIndex(e);t===-1?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",t)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(e){for(var t=-1,n=0,i=this._widgetItems.length;n<i;n++)if(this._areDatesEqual(e,this._widgetItems[n])){t=n;break}return t},_areDatesEqual:function(e,t){return r.isDate(e)&&r.isDate(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},_getTimeListItems:function(){var e=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),t=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),n=this.dateBox.dateOption("value")||null,i=t-e,o=e.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>c.ONE_DAY&&(i=c.ONE_DAY),n-e<c.ONE_DAY?this._getRangeItems(e,new Date(e),i):(e=this._getBoundaryDate("min"),e.setMinutes(o),n&&Math.abs(n-t)<c.ONE_DAY&&(i=(60*t.getHours()+Math.abs(t.getMinutes()-o))*c.ONE_MINUTE),this._getRangeItems(e,new Date(e),i)))},_getRangeItems:function(e,t,n){for(var i=[],o=this.dateBox.option("interval");t-e<n;)i.push(new Date(t)),t.setMinutes(t.getMinutes()+o);return i},_getBoundaryDate:function(e){var t=u[e],n=this.dateBox.dateOption("value")||new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes())},_timeListItemTemplate:function(e){var t=this.dateBox.option("displayFormat");return d.format(e,this.getDisplayFormat(t))},_listItemClickHandler:function(e){this.dateBox.option("opened",!1);var t=this.dateBox.option("value");t=t?new Date(t):new Date,t.setHours(e.itemData.getHours()),t.setMinutes(e.itemData.getMinutes()),t.setSeconds(e.itemData.getSeconds()),this.dateBoxValue(t)},attachKeyboardEvents:function(e){var t=e.attachChildProcessor();this._widget&&this._widget.option("_keyboardProcessor",t)},_dimensionChanged:function(){this._getPopup()&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this.dateBox._setPopupOption("width",this._getPopupWidth())},_updatePopupHeight:function(){this.dateBox._setPopupOption("height","auto");var e=this._widget.element().outerHeight(),t=.45*i(window).height();this.dateBox._setPopupOption("height",Math.min(e,t)),this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()}});e.exports=h},function(e,t,n){var i=n(9),o=n(57),a=n(14),s=n(11).extend,r=n(62),l=n(75),c=n(96),d=n(239),u="dx-widget",h="dx-deferrendering",p="dx-pending-rendering",f="dx-pending-rendering-manual",m="dx-pending-rendering-active",g="dx-visible-while-pending-rendering",_="dx-invisible-while-pending-rendering",v="dx-loadindicator-container",w="dx-deferrendering-loadindicator-container",x="dx-deferrendering-load-indicator",y="content",b=["onRendered","onShown"],C=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return y},_init:function(){this.transitionExecutor=new l.TransitionExecutor,this._initElement(),this._initRender(),this._$initialContent=this.element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.element().addClass(h)},_initRender:function(){var e=this,t=this.element(),n=this.option("renderWhen"),i=function(){return e._renderDeferredContent()};n&&n.done?n.done(i):(t.data("dx-render-delegate",i),void 0===n&&t.addClass(f))},_initActions:function(){this._actions={},i.each(b,function(e,t){this._actions[t]=this._createActionByOption(t)||a.noop}.bind(this))},_renderContentImpl:function(){this.element().removeClass(u),this.element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var e=this,t=this.element(),n=i.Deferred();return t.removeClass(f),t.addClass(m),this._renderTask=a.executeAsync(function(){e._renderImpl().done(function(){var i={element:t};e._actions.onShown([i]),n.resolve(i)}).fail(function(){n.rejectWith(n,arguments)})}),n.promise()},_isElementInViewport:function(e){var t=e.getBoundingClientRect();return t.bottom>=0&&t.right>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.left<=(window.innerWidth||document.documentElement.clientWidth)},_animate:function(){var e,t=this,n=this.element(),o=this.option("animation"),a=this.option("staggerItemSelector");return t.transitionExecutor.stop(),o?(a?n.find(a).each(function(){t._isElementInViewport(this)&&t.transitionExecutor.enter(i(this),o)}):t.transitionExecutor.enter(n,o),e=t.transitionExecutor.start()):e=i.Deferred().resolve().promise(),e},_renderImpl:function(){var e=this.element(),t={element:e},n=this._getTemplate(this._getAnonymousTemplateName());return n&&n.render({container:e.empty(),noModel:!0}),this._setRenderedState(e),e.trigger("dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var e=this.element(),t=!!e.find("."+g).length;e.addClass(p),t||e.children().addClass(_),this.option("showLoadIndicator")&&this._showLoadIndicator(e)},_showLoadIndicator:function(e){this._$loadIndicator=new d(i("<div/>"),{visible:!0}).element().addClass(x),i("<div/>").addClass(v).addClass(w).append(this._$loadIndicator).appendTo(e)},_setRenderedState:function(){var e=this.element();this._$loadIndicator&&this._$loadIndicator.remove(),e.removeClass(p),e.removeClass(m),r.triggerShownEvent(e.children())},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"renderWhen":n===!1&&t===!0?this._renderOrAnimate():n===!0&&t===!1&&this._setLoadingState();break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(e)}},_renderOrAnimate:function(){var e;return this._isRendered?(this._setRenderedState(),e=this._animate()):e=this._renderDeferredContent(),e},renderContent:function(){return this._renderOrAnimate()},_dispose:function(){this.transitionExecutor.stop(!0),this._renderTask&&this._renderTask.abort(),this._actions=null,this._$initialContent=null,this.callBase()}});o("dxDeferRendering",C),e.exports=C},function(e,t,n){var i=n(211),o=n(252),a=n(14),s=n(103),r=n(102),l=n(16).when,c=n(9),d=n(14).grep,u=n(11).extend,h=n(57),p="dx-dropdownbox",f=["width","height","maxWidth","maxHeight","minWidth","minHeight"],m=i.inherit({_supportedKeys:function(){return u({},this.callBase(),{tab:function(e){if(this.option("opened")){var t=this._getTabbableElements(),n=e.shiftKey?t.last():t.first();n&&n.focus(),e.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(s.tabbable)},_getElements:function(){return this.content().find("*")},_getDefaultOptions:function(){return u(this.callBase(),{acceptCustomValue:!1,contentTemplate:null,dropDownOptions:{},openOnFieldClick:!0,valueFormat:function(e){return Array.isArray(e)?e.join(", "):e}})},_init:function(){this.callBase(),this._initDataExpressions()},_render:function(){this._renderSubmitElement(),this.callBase(),this.element().addClass(p)},_renderSubmitElement:function(){this._$submitElement=c("<input>").attr("type","hidden").appendTo(this.element())},_renderValue:function(){this._setSubmitValue(),this.callBase()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){var e=this.callBase.bind(this),t=this._getCurrentValue(),n=a.ensureDefined(t,[]),i=[];n=Array.isArray(n)?n:[n];var o=c.map(n,function(e){return this._loadItem(e).always(function(e){var t=this._displayGetter(e);a.isDefined(t)&&i.push(t)}.bind(this))}.bind(this));return l.apply(this,o).done(function(){this.option("displayValue",i),e(i.length&&i)}.bind(this)).fail(e),o},_loadItem:function(e){var t=d(this.option("items")||[],function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0];return void 0!==t?c.Deferred().resolve(t).promise():this._loadValue(e)},_clearValueHandler:function(e){e.stopPropagation(),this.reset()},_updatePopupWidth:function(){this._setPopupOption("width",this.element().outerWidth())},_dimensionChanged:function(){this._popup&&!this.option("dropDownOptions.width")&&this._updatePopupWidth()},_popupElementTabHandler:function(e){if("tab"===e.key){var t=this._getTabbableElements().first().get(0),n=this._getTabbableElements().last().get(0),i=e.originalEvent.target,o=!(i!==t||!e.shift),a=!(i!==n||e.shift);(o||a)&&(this.close(),this._input().focus(),o&&e.originalEvent.preventDefault())}},_renderPopup:function(e){this.callBase(),this.option("focusStateEnabled")&&this._popup._keyboardProcessor.push(new r({element:this.content(),handler:this._popupElementTabHandler,context:this}))},_popupConfig:function(){return u(this.callBase(),{width:this.element().outerWidth(),height:"auto",tabIndex:-1,dragEnabled:!1,focusStateEnabled:this.option("focusStateEnabled"),maxHeight:this._getMaxHeight.bind(this)},this.option("dropDownOptions"))},_getMaxHeight:function(){var e=this.element(),t=e.offset().top-c(window).scrollTop(),n=c(window).innerHeight()-t-e.outerHeight(),i=.9*Math.max(t,n);return i},_popupShownHandler:function(){this.callBase();var e=this._getTabbableElements().first();e.focus()},_popupOptionChanged:function(e){var t={};if(e.name===e.fullName)t=e.value;else{var n=e.fullName.split(".").pop();t[n]=e.value}this._setPopupOption(t),Object.keys(t).every(function(e){return!(f.indexOf(e)>=0)||(this._dimensionChanged(),!1)},this)},_setCollectionWidgetOption:a.noop,_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"dropDownOptions":this._popupOptionChanged(e);break;case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",e.value);break;case"displayExpr":this._renderValue();break;default:this.callBase(e)}}}).include(o);h("dxDropDownBox",m),e.exports=m},function(e,t,n){var i=n(9),o=n(53),a=n(57),s=n(11).extend,r=n(96),l=n(202),c=n(208),d=n(153),u=n(219),h=n(101),p="dx-dropdownmenu",f="dx-dropdownmenu-popup",m="dx-dropdownmenu-popup-wrapper",g="dx-dropdownmenu-list",_="dx-dropdownmenu-button",v={popupWidth:"width",popupHeight:"height"},w={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},x=r.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),s(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_setDeprecatedOptions:function(){this.callBase(),s(this._deprecatedOptions,{buttonIconSrc:{since:"15.1",alias:"buttonIcon"}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:u})},_defaultOptionsRules:function(){return this.callBase().concat([{device:[{platform:"ios"}],options:{usePopover:!0}},{device:[{platform:"generic"}],options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===o.real().deviceType&&!o.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"===o.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(p),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new h("item",this),this._defaultTemplates.content=new h("content",this)},_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(_),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:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=i("
").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(m).toggleClass(f,e); },visible:this.option("opened"),onContentReady:this._popupContentReadyHandler.bind(this),deferRendering:!1,position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.element(),height:this.option("popupHeight"),width:this.option("popupWidth")}},_popupContentReadyHandler:function(){var e=c.getInstance(this._$popup);this._renderList(e)},_renderList:function(e){var t=e.content(),n=this._listOptions();t.addClass(g),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.element()}.bind(this),this._setListDataSource();var o=.5*i(window).height();t.height()>o&&t.height(o)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this._getTemplateByOption("itemTemplate"),onItemClick:function(e){this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(w[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":this._popup.option(v[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);a("dxDropDownMenu",x),e.exports=x},function(e,t,n){var i=n(9),o=n(57),a=n(14),s=n(11).extend,r=n(26).inArray,l=n(107),c=n(202),d=n(284),u=n(23),h=n(53),p=n(72),f=n(76),m=n(90),g="dx-fileuploader",_="dx-fileuploader-empty",v="dx-fileuploader-show-file-list",w="dx-fileuploader-dragover",x="<input type='file'>",y="dx-fileuploader-wrapper",b="dx-fileuploader-container",C="dx-fileuploader-content",k="dx-fileuploader-input-wrapper",I="dx-fileuploader-input-container",S="dx-fileuploader-input-label",D="dx-fileuploader-input",T="dx-fileuploader-files-container",E="dx-fileuploader-file-container",A="dx-fileuploader-file-info",B="dx-fileuploader-file-status-message",M="dx-fileuploader-file",R="dx-fileuploader-file-name",O="dx-fileuploader-file-size",P="dx-fileuploader-button",V="dx-fileuploader-button-container",F="dx-fileuploader-cancel-button",H="dx-fileuploader-upload-button",L=400,z=function(){return!!window.FormData},N=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault();var t=this._selectButton.element();t.trigger(f.name)};return s(this.callBase(),{space:e,enter:e})},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{value:!0})},_setDeprecatedOptions:function(){this.callBase(),s(this._deprecatedOptions,{buttonText:{since:"15.1",alias:"selectButtonText"},values:{since:"16.1",alias:"value"}})},_getDefaultOptions:function(){return s(this.callBase(),{value:[],selectButtonText:m.format("dxFileUploader-selectFile"),uploadButtonText:m.format("dxFileUploader-upload"),labelText:m.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,readyToUploadMessage:m.format("dxFileUploader-readyToUpload"),uploadedMessage:m.format("dxFileUploader-uploaded"),uploadFailedMessage:m.format("dxFileUploader-uploadFailedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},onUploadStarted:null,onUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,extendSelection:!0,validationMessageMode:"always",validationMessageOffset:{h:0,v:0},useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===h.real().deviceType&&!h.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"},{platform:"win"}],options:{validationMessageOffset:{v:0}}},{device:function(){return u.msie&&u.version<=10},options:{uploadMode:"useForm",useNativeInputClick:!0}},{device:function(){return"generic"!==h.real().platform},options:{useDragOver:!1}},{device:function(){return!z()},options:{uploadMode:"useForm"}},{device:function(){return u.msie||"generic"!==h.real().platform},options:{nativeDropSupported:!1}}])},_init:function(){this.callBase.apply(this,arguments),this._initFileInput(),this._initLabel(),this._createFiles(),this._createUploadStartedAction(),this._createUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction()},_initFileInput:function(){this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=i(x),this._$fileInput.on("change",this._inputChangeHandler.bind(this)).on("click",function(e){return e.stopPropagation(),this.option("useNativeInputClick")||this._isCustomClickEvent}.bind(this))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabindex:-1})},_inputChangeHandler:function(){if(!this._doPreventInputChange){var e=this._$fileInput.val().replace(/^.*\\/,""),t=this._$fileInput.prop("files");if(!t||t.length){var n=t?this._getFiles(t):[{name:e}];this._changeValue(n),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}},_shouldFileListBeExtended:function(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")},_removeDuplicates:function(e,t){for(var n=[],i=0;i<t.length;i++)this._isFileInArray(e,t[i])||n.push(t[i]);return n},_isFileInArray:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.size===t.size&&i.name===t.name)return!0}return!1},_changeValue:function(e){var t=this._shouldFileListBeExtended()?this.option("value").slice():[];"instantly"!==this.option("uploadMode")&&(e=this._removeDuplicates(t,e)),this.option("value",t.concat(e))},_getFiles:function(e){var t=[];return i.each(e,function(e,n){t.push(n)}),t},_initLabel:function(){this._$inputLabel||(this._$inputLabel=i("
")),this._$inputLabel.text(this.option("labelText"))},_focusTarget:function(){return this.element().find("."+P)},_getSubmitElement:function(){return this._$fileInput},_render:function(){this.element().addClass(g),this._renderWrapper(),this._renderInputWrapper(),this._renderDragEvents(),this._renderSelectButton(),this._renderInputContainer(),this._renderFiles(),this._renderUploadButton(),this.callBase.apply(this,arguments)},_createFiles:function(){var e=this.option("value");this._files&&0!==e.length&&this._shouldFileListBeExtended()||(this._files=[]),i.each(e.slice(this._files.length),function(e,t){this._files.push(this._createFile(t))}.bind(this))},_createUploadStartedAction:function(){this._uploadStartedAction=this._createActionByOption("onUploadStarted")},_createUploadedAction:function(){this._uploadedAction=this._createActionByOption("onUploaded")},_createProgressAction:function(){this._progressAction=this._createActionByOption("onProgress")},_createUploadAbortedAction:function(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted")},_createUploadErrorAction:function(){this._uploadErrorAction=this._createActionByOption("onUploadError")},_createFile:function(e){return{value:e,loadedSize:0,onProgress:i.Callbacks(),onAbort:i.Callbacks(),onLoad:i.Callbacks(),onError:i.Callbacks(),onLoadStart:i.Callbacks()}},_renderFiles:function(){var e=this.option("value");this._$filesContainer?this._shouldFileListBeExtended()&&0!==e.length||this._$filesContainer.empty():this._$filesContainer=i("
").addClass(T).appendTo(this._$content);var t=this.option("showFileList");if(t){var n=this;i.each(this._files,function(e,t){t.$file||n._renderFile(t)})}this.element().toggleClass(v,t),this.element().toggleClass(_,!this._files.length),this._updateFileNameMaxWidth(),this._$validationMessage&&this._$validationMessage.dxOverlay("instance").repaint()},_renderFile:function(e){var t=e.value,n=i("
").addClass(E).appendTo(this._$filesContainer);this._renderFileButtons(e,n),e.$file=i("
").addClass(M).appendTo(n);var o=i("
").addClass(A).appendTo(e.$file);e.$statusMessage=i("
").addClass(B).text(this.option("readyToUploadMessage")).appendTo(e.$file),i("
").addClass(R).text(t.name).appendTo(o),a.isDefined(t.size)&&i("
").addClass(O).text(this._getFileSize(t.size)).appendTo(o)},_updateFileNameMaxWidth:function(){var e=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,t="useButtons"===this.option("uploadMode")?1:0,n=this._$filesContainer.width(),i=this._$filesContainer.find("."+V).eq(0),o=i.width()*(e+t),a=this._$filesContainer.find("."+O).eq(0),s=a.text();a.text("1000 Mb");var r=a.width();a.text(s),this._$filesContainer.find("."+R).css("max-width",n-o-r)},_renderFileButtons:function(e,t){var n=this._getCancelButton(e);n&&t.append(n);var i=this._getUploadButton(e);i&&t.append(i)},_getCancelButton:function(e){return"useForm"===this.option("uploadMode")?null:(e.cancelButton=this._createComponent(i("
").addClass(P+" "+F),c,{onClick:function(){this._removeFile(e)}.bind(this),icon:"close",visible:this.option("allowCanceling"),integrationOptions:{}}),i("
").addClass(V).append(e.cancelButton.element()))},_getUploadButton:function(e){return"useButtons"!==this.option("uploadMode")?null:(e.uploadButton=this._createComponent(i("
").addClass(P+" "+H),c,{onClick:function(){this._uploadFile(e)}.bind(this),icon:"upload"}),e.onLoadStart.add(function(){e.uploadButton.element().remove()}.bind(this)),i("
").addClass(V).append(e.uploadButton.element()))},_removeFile:function(e){e.$file.parent().remove(),this._files.splice(r(e,this._files),1);var t=this.option("value").slice();t.splice(r(e.value,t),1),this._doPreventRecreatingFiles=!0,this.option("value",t),this._doPreventRecreatingFiles=!1,this.element().toggleClass(_,!this._files.length),this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1},_getFileSize:function(e){for(var t=0,n=[m.format("dxFileUploader-bytes"),m.format("dxFileUploader-kb"),m.format("dxFileUploader-Mb"),m.format("dxFileUploader-Gb")],i=n.length-1;t<i&&e>=1024;)e/=1024,t++;return Math.round(e)+" "+n[t]},_renderSelectButton:function(){var e=i("
").addClass(P).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(e,c,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{}}),"desktop"===h.real().deviceType?this._selectButton.option("onClick",this._selectButtonClickHandler.bind(this)):e.off("click").on("click",this._selectButtonClickHandler.bind(this))},_selectButtonClickHandler:function(){var e=this;if(!e.option("useNativeInputClick")){if(e.option("disabled"))return!1;e._isCustomClickEvent=!0,e._$fileInput.trigger("click"),e._isCustomClickEvent=!1}},_renderUploadButton:function(){if("useButtons"===this.option("uploadMode")){var e=i("
").addClass(P).addClass(H).appendTo(this._$content);this._uploadButton=this._createComponent(e,c,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),integrationOptions:{}})}},_uploadButtonClickHandler:function(){this._uploadFiles()},_shouldDragOverBeRendered:function(){return"useForm"!==this.option("uploadMode")||this.option("nativeDropSupported")},_renderInputContainer:function(){this._$inputContainer=i("
").addClass(I).appendTo(this._$inputWrapper),this._shouldDragOverBeRendered()||this._$inputContainer.css("display","none"),this._$fileInput.addClass(D),this._renderInput(),this._$inputLabel.addClass(S).appendTo(this._$inputContainer)},_renderInput:function(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content"))},_selectButtonInputTemplate:function(e,t){var n=i("").addClass("dx-button-text").text(e.text);return t.append(n).append(this._$fileInput),t},_renderInputWrapper:function(){this._$inputWrapper=i("
").addClass(k).appendTo(this._$content)},_renderDragEvents:function(){this._$inputWrapper.off("."+this.NAME),this._shouldDragOverBeRendered()&&(this._dragEventsCount=0,this._$inputWrapper.on(p.addNamespace("dragenter",this.NAME),this._dragEnterHandler.bind(this)).on(p.addNamespace("dragover",this.NAME),this._dragOverHandler.bind(this)).on(p.addNamespace("dragleave",this.NAME),this._dragLeaveHandler.bind(this)).on(p.addNamespace("drop",this.NAME),this._dropHandler.bind(this)))},_useInputForDrop:function(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")},_dragEnterHandler:function(e){return!this.option("disabled")&&(this._useInputForDrop()||e.preventDefault(),this._dragEventsCount++,void this.element().addClass(w))},_dragOverHandler:function(e){this._useInputForDrop()||e.preventDefault()},_dragLeaveHandler:function(e){this._useInputForDrop()||e.preventDefault(),this._dragEventsCount--,this._dragEventsCount<=0&&this.element().removeClass(w)},_dropHandler:function(e){if(this._dragEventsCount=0,this.element().removeClass(w),!this._useInputForDrop()){e.preventDefault();var t=e.originalEvent.dataTransfer.files,n=this._getFiles(t);!this.option("multiple")&&n.length>1||(this._changeValue(this._filterFiles(n)),"instantly"===this.option("uploadMode")&&this._uploadFiles())}},_filterFiles:function(e){if(!e.length)return e;var t=this.option("accept");if(!t.length)return e;for(var n=[],i=this._getAllowedFileTypes(t),o=0,a=e.length;o<a;o++)this._isFileTypeAllowed(e[o],i)&&n.push(e[o]);return n},_getAllowedFileTypes:function(e){return e.length?e.split(",").map(function(e){return e.trim()}):[]},_isFileTypeAllowed:function(e,t){for(var n=0,i=t.length;n<i;n++){var o=t[n];if("."===o[0]){if(o=o.replace(".","\\."),e.name.match(o))return!0}else if(o=o.replace("*",""),e.type.match(o))return!0}return!1},_renderWrapper:function(){var e=i("
").addClass(y).appendTo(this.element()),t=i("
").addClass(b).appendTo(e);this._$content=i("
").addClass(C).appendTo(t)},_clean:function(){this._$fileInput.detach(),delete this._$filesContainer,this.callBase.apply(this,arguments)},_uploadFiles:function(){z()&&i.each(this._files,function(e,t){this._uploadFile(t)}.bind(this))},_uploadFile:function(e){if(!e.uploadStarted){var t=e.$file,n=e.value;this._initUploadRequest(e),t&&(e.progressBar=this._createProgressBar(n.size),e.progressBar.element().appendTo(t),this._initStatusMessage(e),this._initCancelButton(e)),e.onLoadStart.add(this._onUploadStarted.bind(this,e)),e.onLoad.add(this._onLoadedHandler.bind(this,e)),e.onError.add(this._onErrorHandler.bind(this,e)),e.onAbort.add(this._onAbortHandler.bind(this,e)),e.onProgress.add(this._onProgressHandler.bind(this,e)),e.request.send(this._createFormData(this.option("name"),n))}},_onUploadStarted:function(e,t){e.uploadStarted=!0,this._uploadStartedAction({file:e.value,jQueryEvent:t,request:e.request})},_onErrorHandler:function(e,t){var n=this;setTimeout(function(){n.option("showFileList")&&(e.$statusMessage.text(n.option("uploadFailedMessage")),e.$statusMessage.css("display",""),e.progressBar.element().remove())},L),this._uploadErrorAction({file:e.value,jQueryEvent:t,request:e.request})},_onAbortHandler:function(e,t){this._uploadAbortedAction({file:e.value,jQueryEvent:t,request:e.request})},_onLoadedHandler:function(e,t){var n=this;setTimeout(function(){n.option("showFileList")&&(e.$statusMessage.text(n.option("uploadedMessage")),e.$statusMessage.css("display",""),e.progressBar.element().remove())},L),this._uploadedAction({file:e.value,jQueryEvent:t,request:e.request})},_onProgressHandler:function(e,t){var n=this._getTotalSize(),i=0,o=this._getLoadedSize(),a=0;if(e){i=Math.min(t.loaded,e.value.size);var s=i-e.loadedSize;o+=s,e.progressBar&&e.progressBar.option({value:i,showStatus:!0}),this._progressAction({file:e.value,segmentSize:s,bytesLoaded:t.loaded,bytesTotal:t.total,jQueryEvent:t,request:e.request}),e.loadedSize=i}n&&(a=Math.round(o/n*100)),this.option("progress",a),this._setLoadedSize(o)},_initStatusMessage:function(e){e.$statusMessage.css("display","none")},_initCancelButton:function(e){var t=function(){e.request.abort(),this._removeFile(e)}.bind(this);e.cancelButton.option("onClick",t);var n=function(){setTimeout(function(){e.cancelButton.option({visible:!1})},L)};e.onLoad.add(n),e.onError.add(n)},_initUploadRequest:function(e){var t=this;e.request=this._createRequest(this.option("uploadUrl")),e.loadedSize=0,this._initUploadHeaders(e.request),e.request.onreadystatechange=function(e){if(4===e.currentTarget.readyState){var n=e.currentTarget.status;t._isStatusSuccess(n)?this.onLoad.fire(e):!t._isStatusError(n)&&this._isProgressStarted||(this._isError=!0,this.onError.fire(e))}}.bind(e),e.request.upload.onprogress=function(e){this._isError||(this._isProgressStarted=!0,this.onProgress.fire(e))}.bind(e),e.request.upload.onloadstart=function(e){this.onLoadStart.fire(e)}.bind(e),e.request.upload.onabort=function(e){this.onAbort.fire(e)}.bind(e)},_initUploadHeaders:function(e){var t=this.option("uploadHeaders");for(var n in t)t.hasOwnProperty(n)&&e.setRequestHeader(n,t[n])},_isStatusSuccess:function(e){return 200<=e&&e<300},_isStatusError:function(e){return 400<=e&&e<500||500<=e&&e<600},_createRequest:function(e){var t=new XMLHttpRequest;return t.open(this.option("uploadMethod"),e,!0),t},_createFormData:function(e,t){var n=new FormData;return n.append(e,t),n},_createProgressBar:function(e){return this._createComponent(i("
"),d,{value:void 0,min:0,max:e,statusFormat:function(e){return Math.round(100*e)+"%"},showStatus:!1,statusPosition:"right"})},_getTotalSize:function(){if(!this._totalSize){var e=this.option("value"),t=0;i.each(e,function(e,n){t+=n.size}),this._totalSize=t}return this._totalSize},_getLoadedSize:function(){if(!this._loadedSize){var e=0;i.each(this._files,function(t,n){e+=n.loadedSize}),this._loadedSize=e}return this._loadedSize},_setLoadedSize:function(e){this._loadedSize=e},_recalculateProgress:function(){delete this._totalSize,delete this._loadedSize,this._onProgressHandler()},_getValidationMessageTarget:function(){return this._$inputWrapper},_optionChanged:function(e){var t=e.value;switch(e.name){case"height":case"width":this._updateFileNameMaxWidth(),this.callBase(e);break;case"value":!t.length&&this._$fileInput.val(""),this._doPreventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),this.callBase(e);break;case"name":this._initFileInput(),this.callBase(e);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),e.value||this.reset();break;case"selectButtonText":this._selectButton.option("text",t);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",t);break;case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":this._invalidate();break;case"labelText":this._$inputLabel.text(t);break;case"showFileList":this._renderFiles();break;case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"extendSelection":break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._renderDragEvents();break;case"nativeDropSupported":this._invalidate();break;default:this.callBase(e)}},reset:function(){this.option("value",[])}});o("dxFileUploader",N),e.exports=N},function(e,t,n){var i=n(9),o=n(285),a=n(11).extend,s=n(14).isFunction,r=n(57),l="dx-progressbar",c="dx-progressbar-container",d="dx-progressbar-range-container",u="dx-progressbar-range",h="dx-progressbar-wrapper",p="dx-progressbar-status",f="dx-progressbar-animating-container",m="dx-progressbar-animating-segment",g=o.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:0,statusFormat:function(e){return"Progress: "+Math.round(100*e)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"win"},options:{_animatingSegmentCount:5}},{device:function(e){return"android"===e.platform},options:{_animatingSegmentCount:2}}])},_init:function(){this.callBase()},_render:function(){this._createCompleteAction(),this._renderStatus(),this.callBase(),this.element().addClass(l),this.setAria("role","progressbar"),this._$wrapper.addClass(h),this._$bar.addClass(c),i("
").addClass(d).appendTo(this._$wrapper).append(this._$bar),this._$range.addClass(u),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("
").addClass(p)},_renderIndeterminateState:function(){this._$segmentContainer=i("
").addClass(f);for(var e=this.option("_animatingSegmentCount"),t=0;t<e;t++)i("
").addClass(m).addClass(m+"-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition"),t=e.split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var n="dx-position-"+t[0];t[1]&&(n+="-"+t[1]),this._$wrapper.addClass(n)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");return e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),void this._setStatus()):void this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat");e=s(e)?e.bind(this):function(e){return e};var t=e(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});r("dxProgressBar",g),e.exports=g},function(e,t,n){var i=n(9),o=n(107),a=n(57),s=n(11).extend,r=n(69),l="dx-trackbar",c="dx-trackbar-container",d="dx-trackbar-range",u="dx-trackbar-wrapper",h=o.inherit({_getDefaultOptions:function(){return s(this.callBase(),{min:0,max:100,value:0})},_render:function(){this.element().addClass(l),this._renderWrapper(),this._renderContainer(),this._renderRange(),this.callBase(),this._renderValue()},_renderWrapper:function(){this._$wrapper=i("
").addClass(u).appendTo(this.element())},_renderContainer:function(){this._$bar=i("
").addClass(c).appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("
").addClass(d).appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_setRangeStyles:function(e){r.stop(this._$range),this._needPreventAnimation||r.animate(this._$range,{type:"custom",duration:100,to:e})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){r.stop(this._$range),this.callBase()}});a("dxTrackBar",h),e.exports=h},function(e,t,n){e.exports=n(287)},function(e,t,n){var i=n(9),o=n(57),a=n(152),s=n(14),r=n(12).isEmptyObject,l=n(26).inArray,c=n(11).extend,d=n(18),u=n(22),h=n(23),p=n(62),f=n(90),m=n(96),g=n(44),_=n(118),v=(n(288),n(292)),w=n(245);n(296),n(297);var x="dx-form",y="dx-field-item",b="dx-field-item-label-text",C="dx-form-group",k="dx-form-group-content",I="dx-form-group-with-caption",S="dx-form-group-caption",D="dx-layout-manager-hidden-label",T="dx-field-item-label",E="dx-field-item-label-content",A="dx-field-item-tab",B="dx-col-",M="dx-group-colcount-",R="dx-field-item-content",O="dx-form-validation-summary",P="dx-widget",V="dx-state-focused",F=m.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._groupsColCount=[]},_initOptions:function(e){"screenByWidth"in e||(e.screenByWidth=g.defaultScreenFactorFunc),this.callBase(e)},_getDefaultOptions:function(){return c(this.callBase(),{formID:"dx-"+new a,formData:{},colCount:1,screenByWidth:null,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:f.format("dxForm-optionalMark"),requiredMessage:f.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0})},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{formData:!0,validationGroup:!0})},_getColCount:function(e){for(var t,n=0,i=!0;i;)t=e.find("."+B+n),t.length?n++:i=!1;return n},_createHiddenElement:function(e){this._$hiddenElement=i("<div/>").addClass(P).addClass(D).appendTo(document.body);var t=e._renderLabel({text:" ",location:this.option("labelLocation")}).appendTo(this._$hiddenElement);this._hiddenLabelText=t.find("."+b)[0]},_removeHiddenElement:function(){this._$hiddenElement.remove(),this._hiddenLabelText=null},_getLabelWidthByText:function(e){return this._hiddenLabelText.innerHTML=e,this._hiddenLabelText.offsetWidth},_getLabelsSelectorByCol:function(e,t){t=t||{};var n=t.inOneColumn?y:B+e,i=t.excludeTabbed?":not(."+A+")":"",o="> ."+T+" > ."+E;return"."+n+i+o},_getLabelText:function(e){var t,n,i=e.children.length,o="";for(n=0;n<i;n++)t=e.children[n],o+=d.isEmpty(t.innerText)?t.innerHTML:t.innerText;return o},_applyLabelsWidthByCol:function(e,t,n){var i,o,a=e.find(this._getLabelsSelectorByCol(t,n)),s=a.length,r=0;for(o=0;o<s;o++)i=this._getLabelWidthByText(this._getLabelText(a[o])),i>r&&(r=i);for(o=0;o<s;o++)a[o].style.width=r+"px"},_applyLabelsWidth:function(e,t,n){var i,o=n?1:this._getColCount(e),a={excludeTabbed:t,inOneColumn:n};for(i=0;i<o;i++)this._applyLabelsWidthByCol(e,i,a)},_getGroupElementsInColumn:function(e,t,n){var i=s.isDefined(n)?"."+M+n:"",o="."+B+t+" > ."+R+" > ."+C+i;return e.find(o)},_applyLabelsWidthWithGroups:function(e,t,n){var i=this.option("alignItemLabelsInAllGroups");if(i)this._applyLabelsWidthWithNestedGroups(e,t,n);else{var o,a=this.element().find("."+C);for(o=0;o<a.length;o++)this._applyLabelsWidth(a.eq(o),n)}},_applyLabelsWidthWithNestedGroups:function(e,t,n){var i,o,a,s,r={excludeTabbed:n};for(i=0;i<t;i++)for(s=this._getGroupElementsInColumn(e,i),this._applyLabelsWidthByCol(s,0,r),o=0;o<this._groupsColCount.length;o++){s=this._getGroupElementsInColumn(e,i,this._groupsColCount[o]);var l=this._getColCount(s);for(a=1;a<l;a++)this._applyLabelsWidthByCol(s,a,r)}},_alignLabelsInColumn:function(e){this._createHiddenElement(e.layoutManager),e.inOneColumn?this._applyLabelsWidth(e.$container,e.excludeTabbed,!0):this._checkGrouping(e.items)?this._applyLabelsWidthWithGroups(e.$container,e.layoutManager._getColCount(),e.excludeTabbed):this._applyLabelsWidth(e.$container,e.excludeTabbed),this._removeHiddenElement()},_render:function(){this._clearCachedInstances(),this.callBase(),this.element().addClass(x),this._attachSyncSubscriptions(),this._cachedScreenFactor=g.getCurrentScreenFactor(this.option("screenByWidth"))},_clearCachedInstances:function(){this._editorInstancesByField={},this._cachedLayoutManagers=[]},_alignLabels:function(e,t){this._alignLabelsInColumn({$container:this.element(),layoutManager:e,excludeTabbed:!0,items:this.option("items"),inOneColumn:t})},_clean:function(){this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],delete this._cachedScreenFactor},_renderContentImpl:function(){this.callBase(),this.setAria("role","form",this.element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary()},_renderScrollable:function(){var e=this.option("useNativeScrolling");this._scrollable=new w(this.element(),{useNative:!!e,useSimulatedScrollbar:!e,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?this._scrollable.content():this.element()},_renderValidationSummary:function(){var e=this.element().find("."+O);e.length>0&&e.remove(),this.option("showValidationSummary")&&i("<div/>").addClass(O).dxValidationSummary({validationGroup:this._getValidationGroup()}).appendTo(this._getContent())},_prepareItems:function(e,t){if(e){var n,i,o,a=this,r=[];for(n=0;n<e.length;n++)i=e[n],o=s.isObject(i)?c({},i):i,a._prepareGroupItem(o),a._prepareTabbedItem(o),a._prepareItemTemplate(o),s.isObject(o)&&(t&&(o.cssItemClass=A),o.items=this._prepareItems(o.items,t)),r.push(o);return r}},_prepareGroupItem:function(e){"group"===e.itemType&&(e.alignItemLabels=s.ensureDefined(e.alignItemLabels,!0),e.template&&(e.groupContentTemplate=this._getTemplate(e.template)),e.template=this._itemGroupTemplate.bind(this,e))},_prepareTabbedItem:function(e){"tabbed"===e.itemType&&(e.template=this._itemTabbedTemplate.bind(this,e),e.tabs=this._prepareItems(e.tabs,!0))},_prepareItemTemplate:function(e){e.template&&(e.template=this._getTemplate(e.template))},_checkGrouping:function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];if("group"===n.itemType)return!0}},_renderLayout:function(){var e=this,t=e.option("items"),n=e._getContent();t=e._prepareItems(t),e._rootLayoutManager=e._renderLayoutManager(t,n,{colCount:e.option("colCount"),alignItemLabels:e.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(t){e._alignLabels.bind(e)(e._rootLayoutManager,t); },onContentReady:function(t){e._alignLabels(t.component,t.component.isSingleColumnMode())}})},_itemTabbedTemplate:function(e,t,n){var o=this,a=i("<div/>").appendTo(n),r=c({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:function(e){p.triggerShownEvent(e.itemElement)},itemTemplate:function(e,t,n){var i,a=s.ensureDefined(e.alignItemLabels,!0);i=o._renderLayoutManager(e.items,n,{colCount:e.colCount,alignItemLabels:a,screenByWidth:this.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:function(t){o._alignLabelsInColumn.bind(o)({$container:n,layoutManager:i,items:e.items,inOneColumn:t})}}),a&&o._alignLabelsInColumn.bind(o)({$container:n,layoutManager:i,items:e.items,inOneColumn:i.isSingleColumnMode()})}});o._createComponent(a,v,r)},_itemGroupTemplate:function(e,t,n){var o,a,r,c=i("<div/>").toggleClass(I,s.isDefined(e.caption)&&e.caption.length).addClass(C).appendTo(n);if(e.caption&&i("<span/>").addClass(S).text(e.caption).appendTo(c),o=i("<div/>").addClass(k).appendTo(c),e.groupContentTemplate){var d={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:d,container:o})}else r=this._renderLayoutManager(e.items,o,{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass}),a=r._getColCount(),l(a,this._groupsColCount)===-1&&this._groupsColCount.push(a),c.addClass(M+a)},_renderLayoutManager:function(e,t,n){var o,a=i("<div />"),s=this,r=s._getLayoutManagerConfig(e,n),l={lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1};return s._cachedColCountOptions.push({colCountByScreen:c(l,n.colCountByScreen)}),a.appendTo(t),o=s._createComponent(a,"dxLayoutManager",r),o.on("autoColCountChanged",function(){s._refresh()}),s._cachedLayoutManagers.push(o),o},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(e,t){var n=this,i={form:n,validationGroup:n._getValidationGroup(),showRequiredMark:n.option("showRequiredMark"),showOptionalMark:n.option("showOptionalMark"),requiredMark:n.option("requiredMark"),optionalMark:n.option("optionalMark"),requiredMessage:n.option("requiredMessage"),screenByWidth:n.option("screenByWidth"),layoutData:n.option("formData"),labelLocation:n.option("labelLocation"),customizeItem:n.option("customizeItem"),minColWidth:n.option("minColWidth"),showColonAfterLabel:n.option("showColonAfterLabel"),onEditorEnterKey:n.option("onEditorEnterKey"),onFieldDataChanged:function(e){n._isDataUpdating||n._triggerOnFieldDataChanged(e)},validationBoundary:n.option("scrollingEnabled")?n.element():void 0};return c(i,{items:e,onContentReady:function(e){n._updateEditorInstancesFromLayoutManager(e.component._editorInstancesByField),t.onContentReady&&t.onContentReady(e)},colCount:t.colCount,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass,colCountByScreen:t.colCountByScreen,onLayoutChanged:t.onLayoutChanged,width:t.width})},_updateEditorInstancesFromLayoutManager:function(e){c(this._editorInstancesByField,e)},_createComponent:function(e,t,n){var i=this;return n=n||{},i._extendConfig(n,{readOnly:i.option("readOnly")}),i.callBase(e,t,n)},_attachSyncSubscriptions:function(){var e=this;e.off("optionChanged").on("optionChanged",function(t){var n=t.fullName;"formData"===n&&(s.isDefined(t.value)||(e._options.formData=t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&i.each(e._cachedLayoutManagers,function(i,o){"formData"===n&&(e._isDataUpdating=!0,o.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||o.option(n,t.value)})})},_optionChanged:function(e){var t=this._getRootLevelOfExpectedComplexOption(e.fullName,["formData","items"]);if(t)return void this._customHandlerOfComplexOption(e,t);switch(e.name){case"formData":this.option("items")?r(e.value)&&this._resetValues():this._invalidate();break;case"items":case"colCount":case"onFieldDataChanged":case"onEditorEnterKey":case"labelLocation":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"readOnly":break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(e),e.value&&p.triggerShownEvent(this.element());break;default:this.callBase(e)}},_getRootLevelOfExpectedComplexOption:function(e,t){var n,i=e.split(".");if(i.length>1){var o,a=i[0];for(o=0;o<t.length;o++)a.search(t[o])!==-1&&(n=t[o])}return n},_customHandlerOfComplexOption:function(e,t){var n=e.fullName.split(".");switch(t){case"items":var i,o,a,s=this._getItemPath(n),r=this.option(s);e.fullName.search("editorOptions")!==-1?(i=this.getEditor(r.dataField),i&&i.option(r.editorOptions)):r&&(a=e.fullName.replace(s+".",""),this._changeItemOption(r,a,e.value),o=this._generateItemsFromData(this.option("items")),this.option("items",o));break;case"formData":var l=n.slice(1).join("."),c=this.getEditor(l);c?c.option("value",e.value):this._triggerOnFieldDataChanged({dataField:l,value:e.value})}},_getItemPath:function(e){var t,n=e[0];for(t=1;t<e.length&&e[t].search("items|tabs")!==-1;t++)n+="."+e[t];return n},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_triggerOnFieldDataChangedByDataSet:function(e){var t=this;e&&s.isObject(e)&&i.each(e,function(e,n){t._triggerOnFieldDataChanged({dataField:e,value:n})})},_updateFieldValue:function(e,t){if(s.isDefined(this.option("formData"))){var n=this.getEditor(e);if(this.option("formData."+e,t),n){var i=n.option("value");i!==t&&n.option("value",t)}}},_generateItemsFromData:function(e){var t=this.option("formData"),n=[];return!e&&s.isDefined(t)&&i.each(t,function(e){n.push({dataField:e})}),e&&i.each(e,function(e,t){s.isObject(t)?n.push(t):n.push({dataField:t})}),n},_getItemByField:function(e,t){var n,o=this,a=s.isObject(e)?e:o._getFieldParts(e),r=a.fieldName,l=a.fieldPath;return t.length&&i.each(t,function(e,t){var i=t.itemType;if(l.length){var a=l.slice();t=o._getItemByFieldPath(a,r,t)}else if("group"===i&&!t.caption||"tabbed"===i){var s=o._getSubItemField(i);t.items=o._generateItemsFromData(t.items),t=o._getItemByField({fieldName:r,fieldPath:l},t[s])}if(o._isExpectedItem(t,r))return n=t,!1}),n},_getFieldParts:function(e){for(var t=".",n=e,i=n.indexOf(t),o=[];i!==-1;)o.push(n.substr(0,i)),n=n.substr(i+1),i=n.indexOf(t);return{fieldName:n,fieldPath:o.reverse()}},_getItemByFieldPath:function(e,t,n){var i,o=this,a=n.itemType,r=o._getSubItemField(a),l="group"===a||"tabbed"===a||n.title;do{if(!l)break;var c,d=s.isDefined(n.caption||n.title),u=o._getTextWithoutSpaces(n.caption||n.title);if(n[r]=o._generateItemsFromData(n[r]),d&&(c=e.pop()),!e.length&&(i=o._getItemByField(t,n[r])))break;(!d||d&&u===c)&&e.length&&(i=o._searchItemInEverySubItem(e,t,n[r]))}while(e.length&&i!==!1);return i},_getSubItemField:function(e){return"tabbed"===e?"tabs":"items"},_searchItemInEverySubItem:function(e,t,n){var o,a=this;return i.each(n,function(n,i){if(o=a._getItemByFieldPath(e,t,i))return!1}),o||(o=!1),o},_getTextWithoutSpaces:function(e){return e?e.replace(" ",""):void 0},_isExpectedItem:function(e,t){return e&&(e.dataField===t||e.name===t||this._getTextWithoutSpaces(e.title)===t||"group"===e.itemType&&this._getTextWithoutSpaces(e.caption)===t)},_changeItemOption:function(e,t,n){s.isObject(e)&&(e[t]=n)},_dimensionChanged:function(){var e=g.getCurrentScreenFactor(this.option("screenByWidth"));if(this._cachedScreenFactor!==e)return this._isColCountChanged(this._cachedScreenFactor,e)&&this._refresh(),void(this._cachedScreenFactor=e)},_isColCountChanged:function(e,t){var n=!1;return i.each(this._cachedColCountOptions,function(i,o){if(o.colCountByScreen[e]!==o.colCountByScreen[t])return n=!0,!1}),n},_refresh:function(){var e="."+V+" input, ."+V+" textarea";this.element().find(e).trigger("change"),this.callBase()},_resetValues:function(){var e=_.getGroupConfig(this);e&&e.reset(),i.each(this._editorInstancesByField,function(e,t){t.reset(),t.option("isValid",!0)})},_updateData:function(e,t,n){var o=this,a=n?t:e;s.isObject(a)?i.each(a,function(t,i){o._updateData(n?e+"."+t:t,i,s.isObject(i))}):s.isString(e)&&o._updateFieldValue(e,t)},registerKeyHandler:function(e,t){this.callBase(e,t),i.each(this._editorInstancesByField,function(n,i){i.registerKeyHandler(e,t)})},_focusTarget:function(){return this.element().find("."+R+" [tabindex]").first()},_visibilityChanged:function(e){e&&h.msie&&this._refresh()},resetValues:function(){this._resetValues()},updateData:function(e,t){this._updateData(e,t)},getEditor:function(e){return this._editorInstancesByField[e]},updateDimensions:function(){var e=this,t=i.Deferred();return e._scrollable?e._scrollable.update().done(function(){t.resolveWith(e)}):t.resolveWith(e),t.promise()},itemOption:function(e,t,n){var o=this,a=arguments.length,r=o._generateItemsFromData(o.option("items")),l=o._getItemByField(e,r);switch(a){case 1:return l;case 3:o._changeItemOption(l,t,n);break;default:s.isObject(t)&&i.each(t,function(e,t){o._changeItemOption(l,e,t)})}this.option("items",r)},validate:function(){try{return _.validateGroup(this._getValidationGroup())}catch(e){u.log("E1036",e.message)}},getItemID:function(e){return"dx_"+this.option("formID")+"_"+(e||new a)}});o("dxForm",F),e.exports=F},function(e,t,n){var i=n(9),o=n(152),a=n(57),s=n(14),r=n(12).isEmptyObject,l=n(28).isWrapped,c=n(28).isWritableWrapped,d=n(28).unwrap,u=n(44),h=n(18),p=n(11).extend,f=n(26).inArray,m=n(50),g=n(47),_=n(76),v=n(26).normalizeIndexes,w=n(22),x=n(90),y=n(61),b=n(39),C=n(96),k=n(289),I=n(291);n(212),n(264),n(249),n(268);var S="dxTextBox",D="dx-field-item",T="dx-field-empty-item",E="dx-field-item-required",A="dx-field-item-optional",B="dx-field-item-required-mark",M="dx-field-item-optional-mark",R="dx-field-item-label",O="dx-field-item-label-align",P="dx-field-item-label-content",V="dx-field-item-label-text",F="dx-field-item-label-location-",H="dx-field-item-content",L="dx-field-item-content-location-",z="dx-field-item-content-wrapper",N="dx-field-item-help-text",W="dx-single-column-item-content",$="dx-label-h-align",q="dx-label-v-align",G="dx-layout-manager",j="dx-first-row",K="dx-first-col",U="dx-last-col",Q="dx-layout-manager-one-col",Y="dx-flex-layout",Z="flex",X="fallback",J="simple",ee=["dataSource","items"],te=C.inherit({_getDefaultOptions:function(){return p(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",optionalMark:x.format("dxForm-optionalMark"),requiredMessage:x.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),p(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){this.callBase(),this._itemWatchers=[],this._initDataAndItems(this.option("layoutData"))},_initDataAndItems:function(e){this._syncDataWithItems(),this._updateItems(e)},_syncDataWithItems:function(){var e=this,t=e.option("items");s.isDefined(t)&&i.each(t,function(t,n){var i;n.dataField&&void 0===e._getDataByField(n.dataField)&&(n.editorOptions&&(i=n.editorOptions.value),e._updateFieldValue(n.dataField,i))})},_getDataByField:function(e){return e?this.option("layoutData."+e):null},_updateFieldValue:function(e,t){var n=this.option("layoutData"),i=t;!l(n[e])&&s.isDefined(e)?this.option("layoutData."+e,i):c(n[e])&&(i=s.isFunction(i)?i():i,n[e](i)),this._triggerOnFieldDataChanged({dataField:e,value:i})},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_updateItems:function(e){var t,n,o=this,a=this.option("items"),r=s.isDefined(a),l=o.option("customizeItem");t=r?a:this._generateItemsByData(e),s.isDefined(t)&&(n=[],i.each(t,function(e,t){o._isAcceptableItem(t)&&(t=o._processItem(t),l&&l(t),s.isObject(t)&&d(t.visible)!==!1&&n.push(t))}),o._itemWatchers.length&&r||o._updateItemWatchers(t),this._items=n,this._sortItems())},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(e){e()}),this._itemWatchers=[]},_updateItemWatchers:function(e){var t=this,n=t._getWatch();e.forEach(function(e){s.isObject(e)&&s.isDefined(e.visible)&&i.isFunction(n)&&t._itemWatchers.push(n(function(){return d(e.visible)},function(){t._updateItems(t.option("layoutData")),t.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(e){var t=[];return s.isDefined(e)&&i.each(e,function(e){t.push({dataField:e})}),t},_isAcceptableItem:function(e){var t=e.dataField||e,n=this._getDataByField(t);return!(s.isFunction(n)&&!l(n))},_processItem:function(e){if("string"==typeof e&&(e={dataField:e}),"object"!=typeof e||e.itemType||(e.itemType=J),!s.isDefined(e.editorType)&&s.isDefined(e.dataField)){var t=this._getDataByField(e.dataField);e.editorType=s.isDefined(t)?this._getEditorTypeByDataType(s.type(t)):S}return e},_getEditorTypeByDataType:function(e){switch(e){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){v(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(e,t){var n,i=e.visibleIndex,o=t.visibleIndex;return n=i>o?1:i<o?-1:0})},_render:function(){this._clearEditorInstances(),this.element().addClass(G),this.callBase()},_clearEditorInstances:function(){this._editorInstancesByField={}},_hasBrowserFlex:function(){return y.styleProp(Z)===Z},_renderContentImpl:function(){this.callBase(),this._renderResponsiveBox()},_renderResponsiveBox:function(){var e=this;if(e._items&&e._items.length){var t,n=e._getColCount(),o=i("<div />").appendTo(e.element());e._prepareItemsWithMerging(n),t=e._generateLayoutItems(),e._extendItemsWithDefaultTemplateOptions(t,e._items),e._responsiveBox=e._createComponent(o,I,e._getResponsiveBoxConfig(t,n))}},_extendItemsWithDefaultTemplateOptions:function(e,t){t.forEach(function(t){t.merged||(s.isDefined(t.disabled)&&(e[t.visibleIndex].disabled=t.disabled),s.isDefined(t.visible)&&(e[t.visibleIndex].visible=t.visible))})},_itemStateChangedHandler:function(e){this._refresh()},_getResponsiveBoxConfig:function(e,t){var n=this,o=n.option("colCountByScreen"),a=o&&o.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),_layoutStrategy:n._hasBrowserFlex()?Z:X,onLayoutChanged:function(){var e=n.option("onLayoutChanged"),t=n.isSingleColumnMode();e&&(n.element().toggleClass(Q,t),e(t))},onContentReady:function(e){n.option("onLayoutChanged")&&n.element().toggleClass(Q,n.isSingleColumnMode(e.component)),n._fireContentReadyAction()},itemTemplate:function(e,o,a){if(e.location){var s=e.location.row*t,r=n._items[e.location.col+s],l=i("<div/>").addClass(r.cssClass).appendTo(a);a.toggleClass(W,n.isSingleColumnMode(this)),0===e.location.row&&l.addClass(j),0===e.location.col&&l.addClass(K),e.location.col!==t-1&&e.location.col+e.location.colspan!==t||l.addClass(U),"empty"===r.itemType?n._renderEmptyItem(l):n._renderFieldItem(r,l)}},cols:n._generateRatio(t),rows:n._generateRatio(n._getRowsCount(),!0),dataSource:e,screenByWidth:n.option("screenByWidth"),singleColumnScreen:!a&&"xs"}},_getColCount:function(){var e=this.option("colCount"),t=this.option("colCountByScreen");if(t){var n=t[u.getCurrentScreenFactor(this.option("screenByWidth"))];e=n||e}if("auto"===e){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=e=this._getMaxColCount()}return e<1?1:e},_getMaxColCount:function(){var e=this.option("minColWidth"),t=this.element().width(),n=this._items.length,i=Math.floor(t/e)||1;return n<i?n:i},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(e){var t,n,i,o,a=this._items.slice(0),s=[];for(o=0;o<a.length;o++)if(t=a[o],s.push(t),(this.option("alignItemLabels")||t.alignItemLabels||t.colSpan)&&(t.col=this._getColByIndex(s.length-1,e)),t.colSpan>1&&t.col+t.colSpan<=e){for(n=[],i=0;i<t.colSpan-1;i++)n.push({merged:!0});s=s.concat(n)}else delete t.colSpan;this._items=s},_getColByIndex:function(e,t){return e%t},_generateLayoutItems:function(){var e,t,n=this._items,i=this._getColCount(),o=[];for(t=0;t<n.length;t++)if(e=n[t],!e.merged){var a={location:{row:parseInt(t/i),col:this._getColByIndex(t,i)}};s.isDefined(e.colSpan)&&(a.location.colspan=e.colSpan),s.isDefined(e.rowSpan)&&(a.location.rowspan=e.rowSpan),o.push(a)}return o},_renderEmptyItem:function(e){return e.addClass(T).html(" ")},_renderFieldItem:function(e,t){var n,a=this,r=a._getName(e),l=a.getItemID(r),c=s.isDefined(e.isRequired)?e.isRequired:!!a._hasRequiredRuleInSet(e.validationRules),d=a._getLabelOptions(e,l,c),u=i("<div/>"),h=e.helpText?"dx-"+new o:null;t.addClass(D).addClass(c?E:A).addClass(a.option("cssItemClass")).addClass(s.isDefined(e.col)?"dx-col-"+e.col:""),d.visible&&d.text&&(n=a._renderLabel(d).appendTo(t)),e.itemType===J&&(a._isLabelNeedBaselineAlign(e)&&"top"!==d.location&&t.addClass(O),a._hasBrowserFlex()&&t.addClass(Y)),u.data("dx-form-item",e),a._appendEditorToField({$fieldItem:t,$label:n,$editor:u,labelOptions:d}),a._renderEditor({$container:u,dataField:r,editorType:e.editorType,editorOptions:e.editorOptions,template:a._getTemplateByFieldItem(e),isRequired:c,helpID:h,id:l,validationBoundary:a.option("validationBoundary")});var p=u.children().first();p&&p.data("dx-validation-target")&&a._renderValidator(p,e),a._renderHelpText(e,u,h),a._attachClickHandler(n,u,e.editorType)},_hasRequiredRuleInSet:function(e){var t;return e&&e.length&&i.each(e,function(e,n){if("required"===n.type)return t=!0,!1}),t},_getName:function(e){return e.dataField||e.name},_isLabelNeedBaselineAlign:function(e){var t=["dxTextArea","dxRadioGroup","dxCalendar"];return!!e.helpText&&!this._hasBrowserFlex()||f(e.editorType,t)!==-1},_getLabelOptions:function(e,t,n){var i=p({showColon:this.option("showColonAfterLabel"),location:this.option("labelLocation"),id:t,visible:!0,isRequired:n},e?e.label:{});return!i.text&&e.dataField&&(i.text=b.captionize(e.dataField)),i.text&&(i.text+=i.showColon?":":""),i},_renderLabel:function(e){if(s.isDefined(e.text)&&e.text.length>0){var t=R+" "+F+e.location,n=i("<label />").addClass(t).attr("for",e.id),o=i("<span/>").addClass(P).appendTo(n);return i("<span />").addClass(V).text(e.text).appendTo(o),e.alignment&&n.css("text-align",e.alignment),o.append(this._renderLabelMark(e.isRequired)),n}},_renderLabelMark:function(e){var t,n=this._getRequiredMarksConfig(),o=n.showRequiredMark&&e,a=n.showOptionalMark&&!e;if(o||a){var s=o?B:M,r=o?n.requiredMark:n.optionalMark;t=i("<span />").addClass(s).html("&nbsp"+r)}return t},_getRequiredMarksConfig:function(){return this._cashedRequiredConfig||(this._cashedRequiredConfig={showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark")}),this._cashedRequiredConfig},_renderEditor:function(e){var t,n=this._getDataByField(e.dataField),i={value:n},o=!0;"dxTagBox"===e.editorType&&(i.value=i.value||[]),t=p(o,i,e.editorOptions,{inputAttr:{id:e.id},validationBoundary:e.validationBoundary}),this._replaceDataOptions(e.editorOptions,t),this._createEditor(e.$container,{editorType:e.editorType,dataField:e.dataField,template:e.template,name:e.name,helpID:e.helpID,isRequired:e.isRequired},t)},_replaceDataOptions:function(e,t){e&&ee.forEach(function(n){t[n]&&(t[n]=e[n])})},_renderValidator:function(e,t){var n=this._getFieldLabelName(t),i=this._prepareValidationRules(t.validationRules,t.isRequired,t.itemType,n);Array.isArray(i)&&this._createComponent(e,k,{validationRules:i,validationGroup:this.option("validationGroup")})},_getFieldLabelName:function(e){var t=e.label&&e.label.text,n=t?null:this._getName(e);return t?e.label.text:n&&b.captionize(n)},_prepareValidationRules:function(e,t,n,i){var o,a=n===J;if(a)if(e)o=e;else{var s=h.format(this.option("requiredMessage"),i||"");o=t?[{type:"required",message:s}]:null}return o},_createEditor:function(e,t,n){var o,a=this,s=t.template;if(t.dataField&&!n.name&&(n.name=t.dataField),a._addItemContentClasses(e),s){var r={dataField:t.dataField,editorType:t.editorType,editorOptions:n,component:a.option("form")||a};s.render({model:r,container:e})}else{var l=i("<div/>").appendTo(e);try{if(o=a._createComponent(l,t.editorType,n),o.setAria("describedby",t.helpID),o.setAria("required",t.isRequired),t.dataField){var c=a.option("form")||a;o.on("enterKey",function(e){c._createActionByOption("onEditorEnterKey")(p(e,{dataField:t.dataField}))}),a._registerEditorInstance(o,t.dataField),a._createWatcher(o,e,t),a.linkEditorToDataField(o,t.dataField,t.editorType)}}catch(e){w.log("E1035",e.message)}}},_createWatcher:function(e,t,n){var i=this,o=i._getWatch();if(s.isFunction(o)){var a=o(function(){return i._getDataByField(n.dataField)},function(){e.option("value",i._getDataByField(n.dataField))},{deep:!0,skipImmediate:!0});t.on(g,a)}},_getWatch:function(){if(!s.isDefined(this._watch)){var e=this.option("form");this._watch=e&&e.option("integrationOptions.watchMethod")}return this._watch},_addItemContentClasses:function(e){var t=this._getItemContentLocationSpecificClass();e.addClass([H,t].join(" "))},_getItemContentLocationSpecificClass:function(){var e=this.option("labelLocation"),t={right:"left",left:"right",top:"bottom"};return L+t[e]},_registerEditorInstance:function(e,t){this._editorInstancesByField[t]=e},_createComponent:function(e,t,n){var i,o=this,a=this.option("readOnly");return i=o.callBase(e,t,n),a&&i.option("readOnly",a),o.on("optionChanged",function(e){"readOnly"===e.name&&i.option(e.name,e.value)}),i},_getTemplateByFieldItem:function(e){return e.template?this._getTemplate(e.template):null},_appendEditorToField:function(e){if(e.$label){var t=e.labelOptions.location;"top"!==t&&"left"!==t||e.$fieldItem.append(e.$editor),"right"===t&&e.$fieldItem.prepend(e.$editor),this._addInnerItemAlignmentClass(e.$fieldItem,t)}else e.$fieldItem.append(e.$editor)},_addInnerItemAlignmentClass:function(e,t){"top"===t?e.addClass(q):e.addClass($)},_renderHelpText:function(e,t,n){var o=e.helpText,a=e.itemType===J;if(o&&a){var s=i("
").addClass(z);t.wrap(s),i("
").addClass(N).attr("id",n).text(o).appendTo(t.parent())}},_attachClickHandler:function(e,t,n){var i="dxCheckBox"===n||"dxSwitch"===n;e&&i&&e.on(_.name,function(){t.children().trigger(_.name)})},_generateRatio:function(e,t){var n,i,o=[];for(i=0;i<e;i++)n={ratio:1},t&&(n.baseSize="auto"),o.push(n);return o},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_optionChanged:function(e){if(0!==e.fullName.search("layoutData."))switch(e.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this.option("items")?r(e.value)||i.each(this._editorInstancesByField,function(t,n){var i=m.compileGetter(t),o=i(e.value);s.isDefined(o)?n.option("value",o):(n.reset(),n.option("isValid",!0))}):(this._initDataAndItems(e.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(e.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":break;case"width":this.callBase(e),"auto"===this.option("colCount")&&this._resetColCount();break;case"onFieldDataChanged":break;default:this.callBase(e)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField:function(e,t,n){var i,o="layoutData."+t,a=this;a.on("optionChanged",function(t){t.fullName===o&&(i=!0,"object"==typeof t.value?a._managedUpdateEditorOption(e,"value",t.value):e.option("value",t.value),i=!1)}),e.on("valueChanged",function(e){var n="object"==typeof e.value,o=n&&e.value===e.previousValue;i||o||(n?a._managedUpdateFieldValue(t,e.value):a._updateFieldValue(t,e.value))})},_managedUpdateEditorOption:function(e,t,n){this._isValueChangedCalled||(this._isFieldValueChanged=!0,e.option(t,n),this._isFieldValueChanged=!1)},_managedUpdateFieldValue:function(e,t){this._isValueChangedCalled=!0,this._isFieldValueChanged||this._updateFieldValue(e,t),this._isValueChangedCalled=!1},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this.fireEvent("autoColCountChanged")},getItemID:function(e){var t=this.option("form");return t&&t.getItemID(e)},updateData:function(e,t){var n=this;s.isObject(e)?i.each(e,function(e,t){n._updateFieldValue(e,t)}):"string"==typeof e&&n._updateFieldValue(e,t)},getEditor:function(e){return this._editorInstancesByField[e]},isSingleColumnMode:function(e){var t=this._responsiveBox||e;if(t)return t.option("currentScreenFactor")===t.option("singleColumnScreen")}});a("dxLayoutManager",te),e.exports=te},function(e,t,n){var i=n(9),o=n(22),a=n(43),s=n(11).extend,r=n(109),l=n(118),c=n(290),d=n(57),u="dx-validator",h=a.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=i.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(),s(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.element()[0],n=i.data(t,"dx-validation-target"),a=e.option("adapter");if(!a){if(n)return a=new c(n,this),a.validationRequestsCallbacks.add(function(){e.validate()}),void this.option("adapter",a);throw o.Error("E0120")}a.validationRequestsCallbacks&&a.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"),o=t.option("name"),a=n.bypass&&n.bypass(),s=n.getValue(),r=n.getCurrentValidationError&&n.getCurrentValidationError(),c=i.map(t.option("validationRules"),function(e){return e.validator=t,e});return a?e={isValid:!0}:r&&r.editorSpecific?(r.validator=this,e={isValid:!1,brokenRule:r}):e=l.validate(s,c,o),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&&e.focus&&e.focus()}}).include(r);d("dxValidator",h),e.exports=h},function(e,t,n){var i=n(9),o=n(25),a=o.inherit({ctor:function(e,t){var n=this;n.editor=e,n.validator=t,n.validationRequestsCallbacks=i.Callbacks();var o=function(){n.validationRequestsCallbacks.fire()};e.validationRequest.add(o),e.on("disposing",function(){e.validationRequest.remove(o)})},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(e){this.editor.option({isValid:e.isValid,validationError:e.brokenRule})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});e.exports=a},function(e,t,n){var i=n(9),o=n(14),a=n(12),s=n(22),r=n(44),l=n(11).extend,c=n(57),d=n(253),u=n(150),h="dx-responsivebox",p=h+"-screen-",f="dx-box-item",m="dxBoxItemData",g=u.inherit({_getDefaultOptions:function(){return l(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||(this._options.screenByWidth=r.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return f},_itemDataKey:function(){return m},_render:function(){this.callBase(),this.element().addClass(h),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&this._$root.triggerHandler("dxupdate")}.bind(this))},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.element().addClass(p+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.element().removeClass(p+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),i.each(this._rows,function(){var t=[];e.push(t),i.each(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this._defaultSizeConfig(this._screenItems.length),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col}),i.each(this._screenItems,function(e,t){l(t.location,{row:e,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(e){return i.map(this._filterByScreen(e),function(e){return l(this._defaultSizeConfig(),e)}.bind(this))},_defaultSizeConfig:function(e){var t={ratio:1,baseSize:0,minSize:0,maxSize:0};if(!arguments.length)return t;for(var n=[],i=0;i<e;i++)n.push(t);return n},_filterByScreen:function(e){var t=this._screenRegExp();return o.grep(e,function(e){return!e.screen||t.test(e.screen)})},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return i(window).width()},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){i.each(this._screenItems,function(e,t){var n=t.location||{},i=n.col,o=n.row,a=this._grid[o],s=a&&a[i];this._occupyCells(s,t)}.bind(this))},_itemsByScreen:function(){return i.map(this.option("items"),function(e){var t=e.location||{};return t=a.isPlainObject(t)?[t]:t,i.map(this._filterByScreen(t),function(t){ return{item:e,location:l({rowspan:1,colspan:1},t)}})}.bind(this))},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&(l(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!a.isEmptyObject(e.item))return!0;var n=!1;return this._loopOverSpanning(t.location,function(e){n=n||!a.isEmptyObject(e.item)}),n},_loopOverSpanning:function(e,t){var n=e.row+e.rowspan-1,i=e.col+e.colspan-1,o=Math.min(n,this._rows.length-1),a=Math.min(i,this._cols.length-1);e.rowspan-=n-o,e.colspan-=i-a;for(var s=e.row;s<=o;s++)for(var r=e.col;r<=a;r++)s===e.row&&r===e.col||t(this._grid[s][r])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,function(t){l(t,{item:e.item,spanningCell:e})})},_linkNodeToItem:function(){i.each(this._itemElements(),function(e,t){var n=i(t),o=n.data(m);o.box||(o.node=n.children())})},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var n=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),o=this._prepareBoxConfig(n.box||{direction:"row",items:[l(n,{ratio:1})]});l(o,this._rootBoxConfig()),this._$root=i("
").appendTo(this._itemContainer()),this._createComponent(this._$root,d,o)}},_rootBoxConfig:function(){return l({width:"100%",height:"100%",itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")},{_layoutStrategy:this.option("_layoutStrategy")})},_prepareBoxConfig:function(e){return l(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,n=e.row.end-e.row.start===t.rowspan-1,i=e.col.end-e.col.start===t.colspan-1;return n&&i},_itemByCell:function(e,t){var n=this._grid[e][t];return n.spanningCell?null:n.item},_layoutDirection:function(e){for(var t,n=[],i=e.direction,o=this._crossDirection(i);t=this._nextBlock(e);){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw s.Error("E1025");var a=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});a&&(l(a,this._blockSize(t,o)),n.push(a)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,n=this._crossDirection(t),i=e[t].start,o=e[t].end,a=e[n].start;if(a>e[n].end)return null;for(var s=1,r=a;r<a+s;r++){for(var l=1,c=i;c<=o;c++){var d=this._cellByDirection(t,c,r);l=Math.max(l,d.location[n+"span"])}var u=r+l,h=a+s;u>h&&(s+=u-h)}var p={};return p[t]={start:i,end:o},p[n]={start:a,end:a+s-1},p},_cellByDirection:function(e,t,n){return"col"===e?this._grid[n][t]:this._grid[t][n]},_blockSize:function(e,t){for(var n="row"===t?this._rows:this._cols,i={ratio:0,baseSize:0,minSize:0,maxSize:0},o=e[t].start;o<=e[t].end;o++){var a=n[o];i.ratio+=a.ratio,i.baseSize+=a.baseSize,i.minSize+=a.minSize,i.maxSize+=a.maxSize}return i.minSize=i.minSize?i.minSize:"auto",i.maxSize=i.maxSize?i.maxSize:"auto",this._isSingleColumnScreen()&&(i.baseSize="auto"),i},_update:function(){var e=this._$root;this._renderItems(),e&&e.detach(),this._saveAssistantRoot(e),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){clearTimeout(this._updateTimer),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&i.each(this._assistantRoots,function(){i(this).remove()})},_clearItemNodeTemplates:function(){i.each(this.option("items"),function(){delete this.node})},_toggleVisibility:function(e){this.callBase(e),e&&this._updateRootBox()},_attachClickEvent:o.noop,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});c("dxResponsiveBox",g),e.exports=g},function(e,t,n){var i=n(9),o=n(61),a=n(11).extend,s=n(53),r=n(57),l=n(293),c=n(294),d=n(116),u=n(167),h="dx-tabpanel",p="dx-tabpanel-tabs",f="dx-tabpanel-container",m="dx-tab-text",g=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!o.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.element().addClass(h),this.setAria("role","tabpanel")},_render:function(){this._createTitleActions(),this._renderLayout(),this.callBase()},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new u(function(e,t){e.text(t.title||String(t));var n=t.icon,o=t.iconSrc,a=d.getImageContainer(n||o);e.wrapInner(i("").addClass(m)),a&&a.prependTo(e)},["title","html","icon","iconSrc"],this.option("integrationOptions.watchMethod"))},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){e._updateLayout()},0))},_renderLayout:function(){if(!this._tabs){var e=this.element();this._$tabContainer=i("
").addClass(p).appendTo(e);var t=i("
").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,c,this._tabConfig()),this._$container=i("
").addClass(f).appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){var e=this._$tabContainer.outerHeight();this._$container.css({"margin-top":-e,"padding-top":e})},_refreshActiveDescendant:function(){var e=this._tabs,t=e.itemElements(),n=i(t[e.option("selectedIndex")]),o=this.getFocusedItemId();this.setAria("controls",void 0,i(t)),this.setAria("controls",o,n)},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){var t=e.name,n=e.value;if("focusedElement"===t){var i=n?n.index():n,o=n?this._itemElements().eq(i):n;this.option("focusedElement",o)}}.bind(this),onFocusIn:function(e){this._focusInHandler(e.jQueryEvent)}.bind(this),onFocusOut:function(e){this._focusOutHandler(e.jQueryEvent)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabindex",-1),this._refreshActiveDescendant()},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},_optionChanged:function(e){var t=e.name,n=e.value,i=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(i,n),this._updateLayout(),this._tabs.repaint(),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(i,n),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(i,n);break;case"focusedElement":var o=n?n.index():n,a=n?this._tabs._itemElements().eq(o):n;this._setTabsOption("focusedElement",a),this.callBase(e),this._tabs.focus();break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",n);break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});r("dxTabPanel",g),e.exports=g},function(e,t,n){var i=n(9),o=n(69),a=n(70),s=n(88),r=n(11).extend,l=n(14),c=n(53),d=n(57),u=n(150),h=n(256),p="dx-multiview",f="dx-multiview-wrapper",m="dx-multiview-item-container",g="dx-multiview-item",_="dx-multiview-item-hidden",v="dxMultiViewItemData",w=200,x=function(e){return+e},y=function(e){return a.locate(e).left},b=function(e,t){a.move(e,{left:t})},C={moveTo:function(e,t,n,i){o.animate(e,{type:"slide",to:{left:t},duration:n,complete:i})},complete:function(e){o.stop(e,!0)}},k=u.inherit({_activeStateUnit:"."+g,_supportedKeys:function(){return r(this.callBase(),{pageUp:l.noop,pageDown:l.noop})},_getDefaultOptions:function(){return r(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===c.real().deviceType&&!c.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return g},_itemDataKey:function(){return v},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=this._$wrapper.width()),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.element();e.addClass(p),this._$wrapper=i("
").addClass(f),this._$wrapper.appendTo(e),this._$itemContainer=i("
").addClass(m),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_render:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=i.Deferred(),n=this,o=this.callBase,a=i.Deferred();return a.done(function(){var i=o.call(n,e);t.resolve(i)}),this._deferredItems.push(a),this.option("deferRendering")||a.resolve(),t.promise()},_renderSelection:function(e){this._updateItems(e[0])},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_updateItemsPosition:function(e,t){var n=this._itemElements(),i=-this._animationDirection(t,e),o=n.eq(e);b(o,0),b(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){var n=this._itemElements();n.each(function(n,o){var a=i(o),s=n!==e&&n!==t;s||this._renderSpecificItem(n),a.toggleClass(_,s),this.setAria("hidden",s||void 0,a)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e).find(this._itemContentClass()).length>0;l.isDefined(e)&&!t&&this._deferredItems[e].resolve()},_setAriaSelected:l.noop,_updateSelection:function(e,t){var n=e[0],i=t[0];C.complete(this._$itemContainer),this._updateItems(i,n);var o=this._animationDirection(n,i);this._animateItemContainer(o*this._itemWidth(),function(){b(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?w:0;C.moveTo(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n=y(this._$itemContainer),i=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==n,a=o?n:i;return s.sign(a)},_initSwipeable:function(){this._createComponent(this.element(),h,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(e){this._swipeStartHandler(e.jQueryEvent)}.bind(this),onUpdated:function(e){this._swipeUpdateHandler(e.jQueryEvent)}.bind(this),onEnd:function(e){this._swipeEndHandler(e.jQueryEvent)}.bind(this)})},_swipeStartHandler:function(e){C.complete(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=x(n||(o?t>0:t<i)),e.maxRightOffset=x(n||(o?t<i:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=s.sign(t)*this._getRTLSignCorrection();if(b(this._$itemContainer,t*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),o=this._normalizeIndex(i-n);this._updateItems(i,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",n)}else this._animateItemContainer(0,l.noop)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":h.getInstance(this.element()).option("disabled",!t);break;case"deferRendering":this._invalidate();break;default:this.callBase(e)}}});d("dxMultiView",k),e.exports=k},function(e,t,n){var i=n(9),o=n(53),a=n(57),s=n(202),r=n(203),l=n(72),c=n(62),d=n(11).extend,u=n(12).isPlainObject,h=n(77),p=n(295),f=n(144),m=n(165),g=n(245),_=n(150),v=n(116),w=n(167),x="dx-tabs",y="dx-tabs-wrapper",b="dx-tabs-expanded",C="dx-tabs-scrollable",k="dx-tabs-nav-buttons",I="dx-tab",S="dx-tab-selected",D="dx-tabs-nav-button",T="dx-tabs-nav-button-left",E="dx-tabs-nav-button-right",A="dx-tab-text",B="dxTabData",M=100,R=5,O=300,P=30,V=_.inherit({_activeStateUnit:"."+I,_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{showNavButtons:!0,scrollByContent:!1}},{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(f.current())},options:{useInkRipple:!0}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.element().addClass(x),this._renderMultiple(),this._feedbackHideTimeout=M},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new w(function(e,t){u(t)?(t.text&&e.text(t.text),t.html&&e.html(t.html)):e.text(String(t));var n=t.icon,o=t.iconSrc,a=v.getImageContainer(n||o);e.wrapInner(i("").addClass(A)),a&&a.prependTo(e)},["text","html","icon","iconSrc"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return I},_selectedItemClass:function(){return S},_itemDataKey:function(){return B},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){c.triggerResizeEvent(e.element())},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(b),this._allowScrolling()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this._allowScrolling()||(this._cleanScrolling(),this.element().removeClass(k).addClass(b))},_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("."+y).appendTo(this._itemContainer()),this._scrollable.element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=r.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(i("
").addClass(y))},_renderScrollable:function(){var e=this.element().wrapInner(i("
").addClass(C)).children();this._scrollable=this._createComponent(e,g,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.element().append(this._scrollable.element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_allowScrolling:function(){if(!this.option("scrollingEnabled"))return!1;var e=0;return this.itemElements().each(function(t,n){e+=i(n).outerWidth(!0)}),e-1>this.element().width()},_renderNavButtons:function(){if(this.element().toggleClass(k,this.option("showNavButtons")),this.option("showNavButtons")){this._leftButton=this._createNavButton(-P,"chevronprev");var e=this._leftButton.element();e.addClass(T),this.element().prepend(e),this._rightButton=this._createNavButton(P,"chevronnext");var t=this._rightButton.element();t.addClass(E),this.element().append(t)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,o=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,R)},R)}),a=l.addNamespace(m.name,"dxNavButton"),r=l.addNamespace(h.up,"dxNavButton"),c=l.addNamespace(h.out,"dxNavButton"),d=this._createComponent(i("
").addClass(D),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}});return d.element().on(a,{timeout:O},function(e){o({jQueryEvent:e})}.bind(this)).on(r,function(){n._clearInterval()}).on(c,function(){n._clearInterval()}),d},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_renderSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this.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;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}}});V.ItemClass=p,a("dxTabs",V),e.exports=V},function(e,t,n){var i=n(9),o=n(164),a="dx-tabs-item-badge",s="dx-badge",r=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+s).remove(),e){var t=i("
").addClass(a).addClass(s).text(e);this._$element.append(t)}}});e.exports=r},function(e,t,n){var i=n(9),o=n(57),a=n(14).grep,s=n(11).extend,r=n(109),l=n(118),c=n(150),d="dx-validationsummary",u=d+"-item",h=d+"-item-data",p=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this._findGroup(),t=l.addGroup(e);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=e,this.groupSubscription=this._groupValidationHandler.bind(this),t.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=l.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return i.each(e,function(e,i){var o=a(t,function(e){if(e.validator===i)return!0})[0];o&&n.push(o)}),n},_groupValidationHandler:function(e){var t=this,n=t._getOrderedItems(e.validators,i.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator}}));t.validators=e.validators,i.each(t.validators,function(e,n){if(n._validationSummary!==this){var i=t._itemValidationHandler.bind(t),o=function(){n.off("validated",i),n._validationSummary=null,i=null};n.on("validated",i),n.on("disposing",o),n._validationSummary=this}}),t.option("items",n)},_itemValidationHandler:function(e){var t,n=this.option("items"),o=e.isValid,a=!1,s=e.brokenRule&&e.brokenRule.message,r=e.validator;i.each(n,function(e,n){if(n.validator===r)return o?t=e:n.text=s,a=!0,!1}),o^a||(o?n.splice(t,1):n.push({text:s,validator:r}),n=this._getOrderedItems(this.validators,n),this.option("items",n))},_render:function(){this.element().addClass(d),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return u},_itemDataKey:function(){return h},_postprocessRenderItem:function(e){e.itemElement.on("click",function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()})},_dispose:function(){this.callBase(),this._unsubscribeGroup()}}).include(r);o("dxValidationSummary",p),e.exports=p},function(e,t,n){var i=n(9),o=n(57),a=n(43),s=n(296),r=n(118),l=n(289),c="dx-validationgroup",d=a.inherit({_getDefaultOptions:function(){return this.callBase()},_init:function(){this.callBase()},_render:function(){var e=this.element();e.addClass(c),e.find(".dx-validator").each(function(e,t){l.getInstance(i(t))._initGroupRegistration()}),e.find(".dx-validationsummary").each(function(e,t){s.getInstance(i(t))._initGroupRegistration()}),this.callBase()},validate:function(){return r.validateGroup(this)},reset:function(){return r.resetGroup(this)},_optionChanged:function(e){switch(e.name){default:this.callBase(e)}},_dispose:function(){r.removeGroup(this),this.element().removeClass(c),this.callBase()}});o("dxValidationGroup",d),e.exports=d},function(e,t,n){var i=n(9),o=n(57),a=n(14),s=n(12),r=n(11).extend,l=n(69),c=n(76),d=n(70),u=n(53),h=n(96),p=n(72),f=n(150),m=n(256),g=n(167),_="dx-gallery",v=_+"-wrapper",w="dx-gallery-loop",x=_+"-container",y=_+"-active",b=_+"-item",C=b+"-loop",k="."+b,I=b+"-selected",S=_+"-indicator",D=S+"-item",T="."+D,E=D+"-selected",A="dx-gallery-item-image",B="dxGalleryItemData",M=1,R=h.inherit({_supportedKeys:function(){return r(this.callBase(),{pageUp:a.noop,pageDown:a.noop})},_getDefaultOptions:function(){return r(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var e=this,t=this.element(),n=p.addNamespace(c.name,this.NAME);t.addClass(_+"-nav-button-"+this.option("direction")).off(n).on(n,function(t){e._createActionByOption("onClick")({jQueryEvent:t})})},_optionChanged:function(e){switch(e.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(e)}}}),O=f.inherit({_activeStateUnit:k,_getDefaultOptions:function(){return r(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new g(function(e,t){var n=i("<img>").addClass(A);s.isPlainObject(t)?n.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(e):n.attr("src",String(t)).appendTo(e)},["imageSrc","imageAlt"],this.option("integrationOptions.watchMethod"))},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return b},_itemDataKey:function(){return B},_actualItemWidth:function(){var e=this.option("wrapAround")?this._itemsPerPage()+1:this._itemsPerPage();return this.option("stretchImages")?1/e:this.option("wrapAround")?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var e,t=this.element().outerWidth(),n=this.option("initialItemWidth");return e=n&&n<=t?this.option("initialItemWidth")/t:1},_itemsPerPage:function(){var e=Math.floor(1/this._itemPercentWidth());return Math.min(e,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_render:function(){this.element().addClass(_),this.element().toggleClass(w,this.option("loop")),this._renderDragHandler(),this._renderWrapper(),this._renderItemsContainer(),this.callBase(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.setAria({role:"listbox",label:"gallery"}),this._fireContentReadyAction()},_renderContent:function(){this._renderContentImpl()},_dimensionChanged:function(){var e=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._renderDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(e))},_renderDragHandler:function(){var e=p.addNamespace("dragstart",this.NAME);this.element().off(e).on(e,"img",function(){return!1})},_renderWrapper:function(){this._$wrapper||(this._$wrapper=i("<div />").addClass(v).appendTo(this.element()))},_renderItems:function(e){this.callBase(e),this._loadNextPageIfNeeded()},_renderItemsContainer:function(){this._$container||(this._$container=i("
").addClass(x).appendTo(this._$wrapper))},_renderDuplicateItems:function(){if(this.option("loop")){var e,t=this.option("items")||[],n=t.length,i=n-1;if(n){this.element().find("."+C).remove();var o=Math.min(this._itemsPerPage(),n);for(e=0;e<o;e++)this._renderItem(0,t[e]).addClass(C);for(e=0;e<o;e++)this._renderItem(0,t[i-e]).addClass(C)}}},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(e){var t=this._itemElements(),n=this._actualItemWidth();void 0!==e&&(t=t.slice(e)),t.each(function(e){i(t[e]).outerWidth(100*n+"%")})},_renderItemPositions:function(){var e=this._actualItemWidth(),t=this._itemsCount(),n=this._itemsPerPage(),o=this.element().find("."+C).length,a=t+o-1,s=this.option("wrapAround")?.5:0,r=this._itemFreeSpace(),l=this.option("rtlEnabled");this._itemElements().each(function(o){var c=o;o>t+n-1&&(c=a-c-n);var d=e*(c+s)+r*(c+1-s);i(this).css(l?"right":"left",100*d+"%")}),this._relocateItems(this.option("selectedIndex"),this.option("selectedIndex"),!0)},_itemFreeSpace:function(){var e=this._itemsPerPage();return this.option("wrapAround")&&(e+=1),(1-this._actualItemWidth()*e)/(e+1)},_renderContainerPosition:function(e,t){e=e||0;var n,o=this,s=this._actualItemWidth(),r=e,l=this._offsetDirection()*r*(s+this._itemFreeSpace());return a.isDefined(this._animationOverride)&&(t=this._animationOverride,delete this._animationOverride),t?(o._startSwipe(),n=o._animate(l).done(o._endSwipe.bind(o))):(d.move(this._$container,{left:l*this._elementWidth(),top:0}),n=i.Deferred().resolveWith(o)),this._deferredAnimate&&n.done(function(){o._deferredAnimate.resolveWith(o)}),n.promise()},_startSwipe:function(){this.element().addClass(y)},_endSwipe:function(){this.element().removeClass(y)},_animate:function(e,t){var n=this,o=this._$container,a=i.Deferred();return l.animate(this._$container,r({type:"slide",to:{left:e*this._elementWidth()},duration:n.option("animationDuration"),complete:function(){n._needMoveContainerForward()&&d.move(o,{left:0,top:0}),n._needMoveContainerBack()&&d.move(o,{left:n._maxContainerOffset()*n._elementWidth(),top:0}),a.resolveWith(n)}},t||{})),a},_needMoveContainerForward:function(){var e=this._$container.position().left*this._offsetDirection(),t=-this._maxItemWidth()*this._elementWidth()*this._itemsCount();return e<=t+M},_needMoveContainerBack:function(){var e=this._$container.position().left*this._offsetDirection(),t=this._actualItemWidth()*this._elementWidth();return e>=t-M; },_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var e=this,t=e._itemElements().first().find(".dx-item-content");t&&!t.is(":hidden")&&(e.option("height")||e.option("height",t.outerHeight()),e.option("width")||e.option("width",t.outerWidth()),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var e=this._$indicator=i("
").addClass(S).appendTo(this._$wrapper),t=0;t<this._pagesCount();t++)i("
").addClass(D).appendTo(e);this._renderSelectedPageIndicator()}},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var e=this.option("selectedIndex");this._itemElements().removeClass(I).eq(e).addClass(I)},_renderSelectedPageIndicator:function(){if(this._$indicator){var e=this.option("selectedIndex"),t=this._pagesCount()-1,n=Math.ceil(e/this._itemsPerPage());n=Math.min(t,n),this._$indicator.find(T).removeClass(E).eq(n).addClass(E)}},_renderUserInteraction:function(){var e=this.element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(e,m,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)});var n=this._createAction(this._indicatorSelectHandler);e.off(p.addNamespace(c.name,this.NAME),T).on(p.addNamespace(c.name,this.NAME),T,function(e){n({jQueryEvent:e})})},_indicatorSelectHandler:function(e){var t=e.jQueryEvent,n=e.component;if(n.option("indicatorEnabled")){var o=i(t.target).index(),a=n._fitPaginatedIndex(o*n._itemsPerPage());n._needLongMove=!0,n.option("selectedIndex",a),n._loadNextPageIfNeeded(a)}},_renderNavButtons:function(){var e=this;return e.option("showNavButtons")?(e._prevNavButton=i("
").appendTo(this._$wrapper),e._createComponent(e._prevNavButton,R,{direction:"prev",onClick:function(){e._prevPage()}}),e._nextNavButton=i("
").appendTo(this._$wrapper),e._createComponent(e._nextNavButton,R,{direction:"next",onClick:function(){e._nextPage()}}),void this._renderNavButtonsVisibility()):void e._cleanNavButtons()},_prevPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")-e;return t===-e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")+e;return t===e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(e){e=void 0===e?this.option("selectedIndex"):e,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(e)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(e)}.bind(this))},_shouldLoadNextPage:function(e){var t=this._itemsPerPage();return e+2*t>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(e){var t=this._itemsPerPage(),n=e<0?t+e:this._itemsCount()-e;return e>this._itemsCount()-1?(e=0,this._goToGhostItem=!0):n<t&&n>0&&(e>0?e-=t-n:e+=t-n),e},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var e=this.option("selectedIndex"),t=this.option("loop"),n=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===n&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=e===n-this._itemsPerPage(),o=n<2||0===e;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||n<2,o&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var e=this,t=e.option("slideshowDelay");clearTimeout(e._slideshowTimer),t&&(e._slideshowTimer=setTimeout(function(){return e._userInteraction?void e._setupSlideShow():void e.nextItem(!0).done(e._setupSlideShow)},t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=this.element().width()),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(e){this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(!t)return void(e.jQueryEvent.cancel=!0);if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var n=this.option("selectedIndex"),i=t-n-this._itemsPerPage(),o=n,a=this.option("rtlEnabled");e.jQueryEvent.maxLeftOffset=a?o:i,e.jQueryEvent.maxRightOffset=a?i:o}},_stopItemAnimations:function(){l.stop(this._$container,!0)},_swipeUpdateHandler:function(e){var t=this.option("wrapAround")?1:0,n=this._offsetDirection()*e.jQueryEvent.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");n<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(n))),this._renderContainerPosition(n)},_swipeEndHandler:function(e){var t=e.jQueryEvent.targetOffset*this._offsetDirection()*this._itemsPerPage(),n=this.option("selectedIndex"),i=this._fitIndex(n-t),o=this._fitPaginatedIndex(i);return Math.abs(t)<this._itemsPerPage()?void this._relocateItems(n):this._itemsPerPage()===this._itemsCount()?void(t>0?this._relocateItems(-t):this._relocateItems(0)):void this.option("selectedIndex",o)},_setFocusOnSelect:function(){this._userInteraction=!0;var e=this.itemElements().filter("."+I);this.option("focusedElement",e),this._userInteraction=!1},_flipIndex:function(e){var t=this._itemsCount();return e%=t,e>(t+1)/2&&(e-=t),e<-(t-1)/2&&(e+=t),e},_fitIndex:function(e){if(!this.option("loop"))return e;var t=this._itemsCount();return(e>=t||e<0)&&(this._goToGhostItem=!0),e>=t&&(e=t-e),e%=t,e<0&&(e+=t),e},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(e,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(e[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(e,t,n){void 0===t&&(t=e);var i=this._calculateIndexOffset(e,t);this._renderContainerPosition(i,this.option("animationEnabled")&&!n).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler:function(){l.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){l.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:a.noop,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var e=this.itemElements().index(this.option("focusedElement"));this.goToItem(e,this.option("animationEnabled"))},_visibilityChanged:function(e){e&&this._reviseDimensions()},_calculateIndexOffset:function(e,t){void 0===t&&(t=e);var n=t-e;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(e)&&this._isItemOnLastPage(t)?n=-this._itemsPerPage():this._isItemOnLastPage(e)&&this._isItemOnFirstPage(t)&&(n=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,n-=t},_isItemOnLastPage:function(e){return e>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(e){return e<=this._itemsPerPage()},_optionChanged:function(e){var t=e.value;switch(e.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":return this.option("loopItemFocus",t),this.element().toggleClass(w,t),this._renderDuplicateItems(),this._renderItemPositions(),void this._renderNavButtonsVisibility();case"showIndicator":return void this._renderIndicator();case"showNavButtons":return void this._renderNavButtons();case"slideshowDelay":return void this._setupSlideShow();case"wrapAround":case"stretchImages":this._renderItemSizes(),this._renderItemPositions();break;case"swipeEnabled":case"indicatorEnabled":return void this._renderUserInteraction();default:this.callBase(e)}},goToItem:function(e,t){var n=this.option("selectedIndex"),o=this._itemsCount();return void 0!==t&&(this._animationOverride=t),e=this._fitIndex(e),this._deferredAnimate=i.Deferred(),e>o-1||e<0||n===e?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",e),this._deferredAnimate.promise())},prevItem:function(e){return this.goToItem(this.option("selectedIndex")-1,e)},nextItem:function(e){return this.goToItem(this.option("selectedIndex")+1,e)}});o("dxGallery",O),e.exports=O},function(e,t,n){var i=n(9),o=n(61),a=n(14),s=n(11).extend,r=n(203),l=n(90),c=n(53),d=n(57),u=n(72),h=n(210),p=n(144),f=n(76),m=n(208),g=n(212),_=n(101),v="dx-lookup",w="dx-lookup-search",x="dx-lookup-search-wrapper",y="dx-lookup-field",b="dx-lookup-arrow",C="dx-lookup-field-wrapper",k="dx-lookup-popup",I="dx-lookup-popup-wrapper",S="dx-lookup-popup-search",D="dx-lookup-popover-mode",T="dx-lookup-empty",E="dx-lookup-validation-message",A="dx-lookup-invalid",B={popupWidth:"width",popupHeight:"height"},M=h.inherit({_supportedKeys:function(){return s(this.callBase(),{space:function(e){e.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_setDeprecatedOptions:function(){this.callBase(),s(this._deprecatedOptions,{showNextButton:{since:"15.1",message:"Use the 'pageLoadMode' option instead"},pagingEnabled:{since:"15.1",message:"Use the 'dataSource.paginate' option instead"}})},_getDefaultOptions:function(){return s(this.callBase(),{title:"",titleTemplate:"title",onTitleRendered:null,placeholder:l.format("Select"),searchPlaceholder:l.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,fullScreen:!1,showCancelButton:!0,showClearButton:!1,clearButtonText:l.format("Clear"),applyButtonText:l.format("Done"),popupWidth:function(){return.8*i(window).width()},popupHeight:function(){return.8*i(window).height()},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:l.format("dxList-pullingDownText"),pulledDownText:l.format("dxList-pulledDownText"),refreshingText:l.format("dxList-refreshingText"),pageLoadingText:l.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:l.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,showPopupTitle:!0,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!o.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!c.isSimulator()&&"generic"===c.real().platform&&"generic"===e.platform},options:{usePopover:!0,popupHeight:"auto"}},{device:function(e){return"win"===e.platform&&e.phone&&e.version&&8===e.version[0]},options:{showCancelButton:!1,fullScreen:!0}},{device:function(e){return"win"===e.platform&&!e.phone&&e.version&&8===e.version[0]},options:{popupWidth:function(){return i(window).width()}}},{device:{platform:"ios",phone:!0},options:{fullScreen:!0}},{device:{platform:"ios",tablet:!0},options:{popupWidth:function(){return.4*Math.min(i(window).width(),i(window).height())},popupHeight:"auto",usePopover:!0,useInkRipple:!1}},{device:function(){return"desktop"===c.real().deviceType&&!c.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(p.current())},options:{useInkRipple:!0}}])},_dataSourceOptions:function(){this._suppressDeprecatedWarnings();var e=a.ensureDefined(this.option("pagingEnabled"),!0);return e=a.isDefined(this.option("showNextButton"))?e||this.option("showNextButton"):e,this._resumeDeprecatedWarnings(),s(this.callBase(),{paginate:e})},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new _("group",this),this._defaultTemplates.title=new _("title",this)},_inputWrapper:function(){return this.element().find("."+C)},_render:function(){this._renderSubmitElement(),this.callBase(),this.element().addClass(v).toggleClass(D,this.option("usePopover"))},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element())},_getSubmitElement:function(){return this._$submitElement},_fireContentReadyAction:a.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var e=this._createAction(function(){this._toggleOpenState()}.bind(this));this._$field=i("
").addClass(y).on(u.addNamespace(f.name,this.NAME),function(t){e({jQueryEvent:t})});var t=i("
").addClass(b);this._$fieldWrapper=i("
").addClass(C).append(this._$field).append(t).appendTo(this.element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=r.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._inputWrapper(),jQueryEvent:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");return e&&this.option("fieldTemplate")?void this._renderFieldTemplate(e):(this._$field.text(this.option("displayValue")||this.option("placeholder")),void this.element().toggleClass(T,!this.option("selectedItem")))},_renderFieldTemplate:function(e){this._$field.empty();var t=this._fieldRenderData();e.render({model:t,container:this._$field})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){var e;this._$popupValidationMessage&&(e=this.option("validationError"),e&&e.message?(this._$popupValidationMessage.text(e.message),this._popup.content().addClass(A)):this._popup.content().removeClass(A)),this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled(),this._searchDataSource()),this._list&&this._list.option("focusedElement",null)),this._attachSearchChildProcessor()},_renderPopup:function(){this.option("usePopover")&&!this.option("fullScreen")?this._renderPopover():this.callBase(),this._$popup.addClass(k),this._popup._wrapper().addClass(I)},_popupOptionMap:function(e){return B[e]||e},_renderPopover:function(){this._popup=this._createComponent(this._$popup,m,s(this._popupConfig(),{showEvent:null,hideEvent:null,target:this.element(),fullScreen:!1,shading:!1,closeOnTargetScroll:!0,width:this._isInitialOptionValue("popupWidth")?function(){return this.element().outerWidth()}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_preventFocusOnPopup:a.noop,_popupConfig:function(){var e=s(this.callBase(),{showTitle:this.option("showPopupTitle"),title:this.option("title"),titleTemplate:this._getTemplateByOption("titleTemplate"),onTitleRendered:this.option("onTitleRendered"),toolbarItems:this._getPopupToolbarItems(),fullScreen:this.option("fullScreen"),shading:this.option("shading"),closeOnTargetScroll:!1,closeOnOutsideClick:this.option("closeOnOutsideClick"),onPositioned:null});return delete e.animation,delete e.position,e.maxHeight=function(){return i(window).height()},i.each(["position","animation","popupWidth","popupHeight"],function(t,n){void 0!==this.option(n)&&(e[this._popupOptionMap(n)]=this.option(n))}.bind(this)),e},_getPopupToolbarItems:function(){var e="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],t=this._getCancelButtonConfig();t&&e.push(t);var n=this._getClearButtonConfig();return n&&e.push(n),this._applyButtonsLocation(e)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(){this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updatePopupHeight()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("popupWidth")&&this.option("popupWidth",this.element().width()),this.callBase()},_updatePopupDimensions:function(){this._updatePopupHeight()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){"dxPopup"===this._popup.NAME&&(this._$popupValidationMessage=i("
").addClass(E).appendTo(this._popup.content())),this.callBase(),this._renderSearch(),this._attachSearchChildProcessor()},_attachSearchChildProcessor:function(){this.option("searchEnabled")&&this._searchBox?(this._listKeyboardProcessor=this._searchBox._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._listKeyboardProcessor)):this._setListOption("_keyboardProcessor",void 0)},_renderSearch:function(){if(this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox,this.option("searchEnabled")){var e=this._$searchWrapper=i("
").addClass(x),t=this._$searchBox=i("
").addClass(w).appendTo(e),n=c.current(),o=n.android&&n.version[0]>=5?"text":"search";this._searchBox=this._createComponent(t,g,{mode:o,showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:this._searchHandler.bind(this)}),this._registerSearchKeyHandlers(),e.insertBefore(this._$list)}this._renderSearchVisibility(),this._setSearchPlaceholder()},_selectListItemHandler:function(e){var t=this._list.option("focusedElement");t&&(e.preventDefault(),this._selectListItem(e.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",a.noop),this._searchBox.registerKeyHandler("home",a.noop)},_renderSearchVisibility:function(){this._popup&&this._popup._wrapper().toggleClass(S,this.option("searchEnabled"))},_setSearchPlaceholder:function(){if(this._$searchBox){var e=this.option("minSearchLength"),t=this.option("searchPlaceholder");e&&t===l.format("Search")&&(t=l.getFormatter("dxLookup-searchPlaceholder")(e)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:a.noop,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",function(){this.close()}.bind(this))},_listConfig:function(){return s(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this.option("onScroll"),onPullRefresh:this.option("onPullRefresh"),onPageLoading:this.option("onPageLoading"),pageLoadMode:this._getPageLoadMode(),nextButtonText:this.option("nextButtonText"),_keyboardProcessor:this._listKeyboardProcessor,onFocusIn:this._onFocusInHandler.bind(this),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):a.noop},_onFocusInHandler:function(){this._setListOption("_keyboardProcessor",void 0)},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_getPageLoadMode:function(){this._suppressDeprecatedWarnings();var e=a.isDefined(this.option("showNextButton"))?"nextButton":this.option("pageLoadMode");return this._resumeDeprecatedWarnings(),e},_setFocusPolicy:function(){this.option("focusStateEnabled")&&(this.option("searchEnabled")?this._searchBox.focus():this._$list.focus())},_attachChildKeyboardEvents:a.noop,_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(e){this._selectListItem(e.itemData,e.jQueryEvent.currentTarget)},_selectListItem:function(e,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(){this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always(function(){this._renderField(),this._refreshSelected(),this._setSubmitValue()}.bind(this))},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_renderPlaceholder:function(){0!==this.element().find("input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),this._$searchBox=null,this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"searchEnabled":this._popup&&this._renderSearch(),this._attachSearchChildProcessor();break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"title":case"titleTemplate":case"onTitleRendered":case"shading":case"animation":case"position":case"closeOnOutsideClick":this._setPopupOption(t);break;case"fullScreen":case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":this.callBase.apply(this,arguments);break;case"popupWidth":this._setPopupOption("popupWidth","auto"===n?this.initialOption("popupWidth"):n);break;case"popupHeight":this._setPopupOption("popupHeight","auto"===n?this.initialOption("popupHeight"):n);break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"onScroll":case"onPullRefresh":case"onPageLoading":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(t);break;case"showNextButton":case"pageLoadMode":this._setListOption("pageLoadMode",this._getPageLoadMode());break;case"cleanSearchOnOpening":break;default:this.callBase.apply(this,arguments)}},focus:function(){this.option("opened")?this._setFocusPolicy():this._focusTarget().focus()},field:function(){return this._$field}});d("dxLookup",M),e.exports=M},function(e,t,n){var i=n(9),o=n(301),a=n(16),s=n(57),r=n(22),l=n(53),c=n(96),d=n(39),u=n(11).extend,h=n(26).inArray,p=n(14).isNumeric,f=n(72),m=n(77),g=n(15),_=n(26).wrapToArray,v={googleStatic:n(302),google:n(304),bing:n(306)},w="dx-map",x="dx-map-container",y="dx-map-shield",b="dx-native-click",C=c.inherit({_getDefaultOptions:function(){return u(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,key:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===l.real().deviceType&&!l.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.element().addClass(w).addClass(b),this._lastAsyncAction=o.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_checkOption:function(e){var t=this.option(e);if("markers"===e&&!Array.isArray(t))throw r.Error("E1022");if("routes"===e&&!Array.isArray(t))throw r.Error("E1023")},_initContainer:function(){this._$container=i("<div />").addClass(x),this.element().append(this._$container)},_grabEvents:function(){var e=f.addNamespace(m.down,this.NAME);this.element().on(e,this._cancelEvent.bind(this))},_cancelEvent:function(e){var t=this._provider&&this._provider.cancelEvents&&!this.option("disabled");!g.designMode&&t&&e.stopPropagation()},_saveRendered:function(e){var t=this.option(e);this._rendered[e]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(v[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var e,t=window.DevExpress;t&&t.designMode||this.option("disabled")?(e=i("<div/>").addClass(y),this.element().append(e)):(e=this.element().find("."+y),e.remove())},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=o.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null})},_optionChanged:function(e){var t=e.name;if(!this._cancelOptionChange){var n=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(e);break;case"width":case"height":this.callBase(e),this._dimensionChanged();break;case"provider":this._invalidate();break;case"key":r.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+d.titleize(t),n?n.removed:i,n?n.added:this._rendered[t]).then(function(e){n&&n.resolve(e)});break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(e){var t=i.makeArray(arguments).slice(1);return this._lastAsyncAction=this._lastAsyncAction.then(function(){return this._provider?this._provider[e].apply(this._provider,t).then(function(e){e=_(e);var t=e[0];return t&&this._triggerReadyAction(),e[1]}.bind(this)):o.resolve()}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(e,t){this._cancelOptionChange=!0,this.option(e,t),this._cancelOptionChange=!1},addMarker:function(e){return this._addFunction("markers",e)},removeMarker:function(e){return this._removeFunction("markers",e)},addRoute:function(e){return this._addFunction("routes",e)},removeRoute:function(e){return this._removeFunction("routes",e)},_addFunction:function(e,t){var n=this.option(e),i=_(t);return n.push.apply(n,i),this._partialArrayOptionChange(e,n,i,[])},_removeFunction:function(e,t){var n=this.option(e),o=_(t);return i.each(o,function(t,i){var a=p(i)?i:h(i,n);if(a===-1)throw r.log("E1021",d.titleize(e.substring(0,e.length-1)),i);var s=n.splice(a,1)[0];o.splice(t,1,s)}),this._partialArrayOptionChange(e,n,[],o)},_partialArrayOptionChange:function(e,t,n,i){return a.fromPromise(new o(function(o){this._optionChangeBag={resolve:o,added:n,removed:i},this.option(e,t)}.bind(this)).then(function(e){return e&&1===e.length?e[0]:e}),this)}});s("dxMap",C),e.exports=C},function(e,t,n){var i=n(9),o=window.Promise;o||(o=function(e){var t=i.Deferred();return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},o.resolve=function(e){return i.Deferred().resolve(e).promise()},o.reject=function(e){return i.Deferred().reject(e).promise()},o.all=function(e){return i.when.apply(i,e).then(function(){return i.makeArray(arguments)})}),e.exports=o},function(e,t,n){var i=n(9),o=n(301),a=n(303),s=n(38),r=n(76),l="https://maps.google.com/maps/api/staticmap?",c=a.inherit({_locationToString:function(e){var t=this._getLatLng(e);return t?t.lat+","+t.lng:e.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return o.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return o.resolve()},addMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i.each(e,function(e,n){t._fireMarkerAddedAction({options:n})}),n})},removeMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i.each(e,function(e,n){t._fireMarkerRemovedAction({options:n})}),n})},adjustViewport:function(){return o.resolve()},addRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i.each(e,function(e,n){t._fireRouteAddedAction({options:n})}),n})},removeRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i.each(e,function(e,n){t._fireRouteRemovedAction({options:n})}),n})},clean:function(){return this._$container.css("background-image","none"),this._$container.off(this._addEventNamespace(r.name)),o.resolve()},mapRendered:function(){return!0},_updateMap:function(){var e=this._keyOption("googleStatic"),t=this._$container,n=["sensor=false","size="+Math.round(t.width())+"x"+Math.round(t.height()),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];n.push.apply(n,this._routeSubstrings()),e&&n.push("key="+e);var i=l+n.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),o.resolve(!0)},_markersSubstring:function(){var e=this,t=[],n=this._option("markerIconSrc");return n&&t.push("icon:"+n),i.each(this._option("markers"),function(n,i){t.push(e._locationToString(i.location))}),"markers="+t.join("|")},_routeSubstrings:function(){var e=this,t=[];return i.each(this._option("routes"),function(n,o){var a=new s(o.color||e._defaultRouteColor()).toHex().replace("#","0x"),r=Math.round(255*(o.opacity||e._defaultRouteOpacity())).toString(16),l=o.weight||e._defaultRouteWeight(),c=[];i.each(o.locations,function(t,n){c.push(e._locationToString(n))}),t.push("path=color:"+a+r+"|weight:"+l+"|"+c.join("|"))}),t},_attachClickEvent:function(){var e=this,t=this._addEventNamespace(r.name); this._$container.off(t).on(t,function(t){e._fireClickAction({jQueryEvent:t})})}});e.exports=c},function(e,t,n){var i=n(9),o=n(301),a=n(25),s=n(14),r=n(12),l=n(72),c=r.isPlainObject,d=s.isNumeric,u=a.abstract,h=a.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},cancelEvents:!1,ctor:function(e,t){this._mapWidget=e,this._$container=t},render:function(e,t){return this._renderImpl().then(function(){return o.all([this._applyFunctionIfNeeded("addMarkers",e),this._applyFunctionIfNeeded("addRoutes",t)]).then(function(){return!0})}.bind(this))},_renderImpl:u,updateDimensions:u,updateMapType:u,updateBounds:u,updateCenter:u,updateZoom:u,updateControls:u,updateMarkers:function(e,t){return new o(function(n){return this._applyFunctionIfNeeded("removeMarkers",e).then(function(e){this._applyFunctionIfNeeded("addMarkers",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addMarkers:u,removeMarkers:u,adjustViewport:u,updateRoutes:function(e,t){return new o(function(n){return this._applyFunctionIfNeeded("removeRoutes",e).then(function(e){this._applyFunctionIfNeeded("addRoutes",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addRoutes:u,removeRoutes:u,clean:u,map:function(){return this._map},_option:function(e,t){return void 0===t?this._mapWidget.option(e):void this._mapWidget.setOptionSilent(e,t)},_keyOption:function(e){var t=this._option("key");return void 0===t[e]?t:t[e]},_parseTooltipOptions:function(e){return{text:e.text||e,visible:e.isShown||!1}},_getLatLng:function(e){if("string"==typeof e){var t=i.map(e.split(","),i.trim),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(n)&&t[1].match(n))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(e)&&2===e.length)return{lat:e[0],lng:e[1]};if(c(e)&&d(e.lat)&&d(e.lng))return e}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(e){return l.addNamespace(e,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(e,t){return t.length?this[e](t):o.resolve()},_fireAction:function(e,t){this._mapWidget._createActionByOption(e)(t)},_fireClickAction:function(e){this._fireAction("onClick",e)},_fireMarkerAddedAction:function(e){this._fireAction("onMarkerAdded",e)},_fireMarkerRemovedAction:function(e){this._fireAction("onMarkerRemoved",e)},_fireRouteAddedAction:function(e){this._fireAction("onRouteAdded",e)},_fireRouteRemovedAction:function(e){this._fireAction("onRouteRemoved",e)}});e.exports=h},function(e,t,n){var i,o,a=n(9),s=n(14).noop,r=n(301),l=n(11).extend,c=n(305),d=n(22),u=n(38),h="_googleScriptReady",p="https://maps.google.com/maps/api/js?sensor=false&callback="+h,f=function(){i=function(e){this._position=e.position,this._offset=e.offset,this._$overlayContainer=a("
").css({position:"absolute",display:"none",cursor:"pointer"}).append(e.html),this.setMap(e.map)},i.prototype=new google.maps.OverlayView,i.prototype.onAdd=function(){var e=a(this.getPanes().overlayMouseTarget);e.append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(e){google.maps.event.trigger(this,"click"),e.preventDefault()}.bind(this)),this.draw()},i.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},i.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:e.x+this._offset.left,top:e.y+this._offset.top,display:"block"})}},m=function(){return window.google&&window.google.maps},g=c.inherit({_mapType:function(e){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[e]||t.hybrid},_movementMode:function(e){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[e]||t.driving},_resolveLocation:function(e){return new r(function(t){var n=this._getLatLng(e);n?t(new google.maps.LatLng(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new r(function(t){var n=new google.maps.Geocoder;n.geocode({address:e},function(e,n){n===google.maps.GeocoderStatus.OK?t(e[0].geometry.location):(d.log("W1006",n),t(new google.maps.LatLng(0,0)))})})},_normalizeLocation:function(e){return{lat:e.lat(),lng:e.lng()}},_normalizeLocationRect:function(e){return{northEast:this._normalizeLocation(e.getNorthEast()),southWest:this._normalizeLocation(e.getSouthWest())}},_loadImpl:function(){return new r(function(e){m()?e():(o||(o=this._loadMapScript()),o.then(function(){return m()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){f()})},_loadMapScript:function(){return new r(function(e){var t=this._keyOption("google");window[h]=e,a.getScript(p+(t?"&key="+t:""))}.bind(this)).then(function(){try{delete window[h]}catch(e){window[h]=void 0}})},_init:function(){return new r(function(e){var t=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),panControl:t,zoomControl:t,mapTypeControl:t,streetViewControl:t});var n=google.maps.event.addListener(this._map,"idle",function(){e(n)})}.bind(this)).then(function(e){google.maps.event.removeListener(e)})},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){this._fireClickAction({location:this._normalizeLocation(e.latLng)})},updateDimensions:function(){var e=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",e),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),r.resolve()},updateBounds:function(){return r.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new google.maps.LatLngBounds;t.extend(e[0]),t.extend(e[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setCenter(e),this._option("center",this._normalizeLocation(e))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),r.resolve()},updateControls:function(){var e=this._option("controls");return this._map.setOptions({panControl:e,zoomControl:e,mapTypeControl:e,streetViewControl:e}),r.resolve()},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n;n=e.html?new i({map:this._map,position:t,html:e.html,offset:l({top:0,left:0},e.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:e.iconSrc||this._option("markerIconSrc")});var o,a=this._renderTooltip(n,e.tooltip);if(e.onClick||e.tooltip){var r=this._mapWidget._createAction(e.onClick||s),c=this._normalizeLocation(t);o=google.maps.event.addListener(n,"click",function(){r({location:c}),a&&a.open(this._map,n)}.bind(this))}return{location:t,marker:n,listener:o}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new google.maps.InfoWindow({content:t.text});return t.visible&&n.open(this._map,e),n}},_destroyMarker:function(e){e.marker.setMap(null),e.listener&&google.maps.event.removeListener(e.listener)},_renderRoute:function(e){return r.all(a.map(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new r(function(n){var i=t.shift(),o=t.pop(),s=a.map(t,function(e){return{location:e,stopover:!0}}),r={origin:i,destination:o,waypoints:s,optimizeWaypoints:!0,travelMode:this._movementMode(e.mode)};(new google.maps.DirectionsService).route(r,function(t,i){if(i===google.maps.DirectionsStatus.OK){var o=new u(e.color||this._defaultRouteColor()).toHex(),a={directions:t,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:e.weight||this._defaultRouteWeight(),strokeOpacity:e.opacity||this._defaultRouteOpacity(),strokeColor:o}},s=new google.maps.DirectionsRenderer(a),r=t.routes[0].bounds;n({instance:s,northEast:r.getNorthEast(),southWest:r.getSouthWest()})}else d.log("W1006",i),n({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();e<t?this._map.setZoom(e):this._option("zoom",t),delete this._preventZoomChangeEvent}return r.resolve()},_extendBounds:function(e){this._bounds?this._bounds.extend(e):(this._bounds=new google.maps.LatLngBounds,this._bounds.extend(e))},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),r.resolve()}});e.exports=g},function(e,t,n){var i=n(9),o=n(301),a=n(11).extend,s=n(303),r=s.abstract,l=s.inherit({cancelEvents:!0,_geocodeLocation:function(e){return new o(function(t){var n=this._geocodedLocations,i=n[e];i?t(i):this._geocodeLocationImpl(e).then(function(i){n[e]=i,t(i)})}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return o.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new o(function(e){var t=setTimeout(function(){clearTimeout(t),e()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:r,_init:r,_attachHandlers:r,addMarkers:function(e){return o.all(i.map(e,function(e){return this._addMarker(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,i.map(e,function(e){return e.marker})]}.bind(this))},_addMarker:function(e){return this._renderMarker(e).then(function(t){return this._markers.push(a({options:e},t)),this._fireMarkerAddedAction({options:e,originalMarker:t.marker}),t}.bind(this))},_renderMarker:r,removeMarkers:function(e){var t=this;return i.each(e,function(e,n){t._removeMarker(n)}),o.resolve()},_removeMarker:function(e){var t=this;i.each(this._markers,function(n,i){return i.options!==e||(t._destroyMarker(i),t._markers.splice(n,1),t._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:r,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(e){return o.all(i.map(e,function(e){return this._addRoute(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,i.map(e,function(e){return e.instance})]}.bind(this))},_addRoute:function(e){return this._renderRoute(e).then(function(t){return this._routes.push(a({options:e},t)),this._fireRouteAddedAction({options:e,originalRoute:t.instance}),t}.bind(this))},_renderRoute:r,removeRoutes:function(e){var t=this;return i.each(e,function(e,n){t._removeRoute(n)}),o.resolve()},_removeRoute:function(e){var t=this;i.each(this._routes,function(n,i){return i.options!==e||(t._destroyRoute(i),t._routes.splice(n,1),t._fireRouteRemovedAction({options:e}),!1)})},_destroyRoute:r,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},_fitBounds:r,_updateBounds:function(){var e=this;this._clearBounds(),this._option("autoAdjust")&&(i.each(this._markers,function(t,n){e._extendBounds(n.location)}),i.each(this._routes,function(t,n){n.northEast&&e._extendBounds(n.northEast),n.southWest&&e._extendBounds(n.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:r});e.exports=l},function(e,t,n){var i,o=n(9),a=n(14),s=a.noop,r=n(301),l=n(11).extend,c=n(305),d=n(38),u=n(23),h=a.isDefined,p="_bingScriptReady",f="https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1&onScriptLoad="+p,m="https://www.bing.com/api/maps/mapcontrol?callback="+p,g=33,_=13,v=!(u.msie&&parseInt(u.version)<11),w="AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",x=1e-16,y=function(){return window.Microsoft&&window.Microsoft.Maps},b=c.inherit({_mapType:function(e){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[e]||t.road},_movementMode:function(e){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[e]||t.driving},_resolveLocation:function(e){return new r(function(t){var n=this._getLatLng(e);n?t(new Microsoft.Maps.Location(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new r(function(t){if(!h(e))return void t(new Microsoft.Maps.Location(0,0));var n=new Microsoft.Maps.Search.SearchManager(this._map),i={where:e,count:1,callback:function(e){var n=e.results[0];if(n){var i=e.results[0].location;t(new Microsoft.Maps.Location(i.latitude,i.longitude))}else t(new Microsoft.Maps.Location(0,0))}};n.geocode(i)}.bind(this))},_normalizeLocation:function(e){return{lat:e.latitude,lng:e.longitude}},_normalizeLocationRect:function(e){var t=this._normalizeLocation(e.getNorthwest()),n=this._normalizeLocation(e.getSoutheast());return{northEast:{lat:t.lat,lng:n.lng},southWest:{lat:n.lat,lng:t.lng}}},_loadImpl:function(){return new r(function(e){y()?e():(i||(i=this._loadMapScript()),i.then(function(){return y()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){return r.all([new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:e})}),new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:e})})])})},_loadMapScript:function(){var e=v?m:f;return new r(function(t){window[p]=t,o.getScript(e)}).then(function(){try{delete window[p]}catch(e){window[p]=void 0}})},_init:function(){return v?(this._createMap(),r.resolve()):new r(function(e){this._createMap();var t=Microsoft.Maps.Events.addHandler(this._map,"tiledownloadcomplete",function(){e(t)})}.bind(this)).then(function(e){Microsoft.Maps.Events.removeHandler(e)})},_createMap:function(){var e=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||w,zoom:this._option("zoom"),showDashboard:e,showMapTypeSelector:e,showScalebar:e})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){if("map"===e.targetType){var t;if(v)t=e.location;else{var n=new Microsoft.Maps.Point(e.getX(),e.getY());t=e.target.tryPixelToLocation(n)}this._fireClickAction({location:this._normalizeLocation(t)})}},updateDimensions:function(){var e=this._$container;return this._map.setOptions({width:e.width(),height:e.height()}),r.resolve()},updateMapType:function(){var e=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(e),labelOverlay:"satellite"===e?t.hidden:t.visible}),r.resolve()},updateBounds:function(){return r.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new Microsoft.Maps.LocationRect.fromLocations(e[0],e[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setView({animate:!1,center:e})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),r.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n={icon:e.iconSrc||this._option("markerIconSrc")};if(e.html){l(n,{htmlContent:e.html,width:null,height:null});var i=e.htmlOffset;i&&(n.anchor=new Microsoft.Maps.Point((-i.left),(-i.top)))}var o=new Microsoft.Maps.Pushpin(t,n);this._map.entities.push(o);var a,r=this._renderTooltip(t,e.tooltip);if(e.onClick||e.tooltip){var c=this._mapWidget._createAction(e.onClick||s),d=this._normalizeLocation(t);a=Microsoft.Maps.Events.addHandler(o,"click",function(){c({location:d}),r&&r.setOptions({visible:!0})})}return{location:t,marker:o,infobox:r,handler:a}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=v?_:g,i=new Microsoft.Maps.Infobox(e,{description:t.text,offset:new Microsoft.Maps.Point(0,n),visible:t.visible});return v?i.setMap(this._map):this._map.entities.push(i,null),i}},_destroyMarker:function(e){this._map.entities.remove(e.marker),e.infobox&&this._map.entities.remove(e.infobox),e.handler&&Microsoft.Maps.Events.removeHandler(e.handler)},_renderRoute:function(e){return r.all(o.map(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new r(function(n){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),a=new d(e.color||this._defaultRouteColor()).toHex(),s=new Microsoft.Maps.Color.fromHex(a);s.a=255*(e.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:s,strokeThickness:e.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:s,strokeThickness:e.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(e.mode),routeDraggable:!1}),o.each(t,function(e,t){var n=new Microsoft.Maps.Directions.Waypoint({location:t});i.addWaypoint(n)});var r=Microsoft.Maps.Events.addHandler(i,"directionsUpdated",function(e){Microsoft.Maps.Events.removeHandler(r);var t=e.routeSummary[0];n({instance:i,northEast:t.northEast,southWest:t.southWest})});i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:e});var n=this._map.getZoom();e<n?this._map.setView({animate:!1,zoom:e}):this._option("zoom",n),delete this._preventZoomChangeEvent}return r.resolve()},_extendBounds:function(e){this._bounds?this._bounds=new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),e):this._bounds=new Microsoft.Maps.LocationRect(e,x,x)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),r.resolve()}});e.exports=b},function(e,t,n){var i=n(57),o=n(11).extend,a=n(308),s=n(294),r="dx-navbar",l="dx-item-content",c="dx-nav-item",d="dx-nav-item-content",u=s.inherit({_getDefaultOptions:function(){return o(this.callBase(),{scrollingEnabled:!1})},_render:function(){this.callBase(),this.element().addClass(r)},_postprocessRenderItem:function(e){this.callBase(e);var t=e.itemElement,n=e.itemData;t.addClass(c),t.find("."+l).addClass(d),n.icon||n.iconSrc||t.addClass("dx-navbar-text-item")}});u.ItemClass=a,i("dxNavBar",u),e.exports=u},function(e,t,n){var i=n(295),o="dx-tabs-item-badge",a="dx-navbar-item-badge",s=i.inherit({_renderBadge:function(e){this.callBase(e),this._$element.children("."+o).removeClass(o).addClass(a)}});e.exports=s},function(e,t,n){e.exports=n(310)},function(e,t,n){var i=n(9),o=n(14).noop,a=n(53),s=n(11).extend,r=n(57),l=n(107),c=n(203),d=n(252),u=n(144),h=n(150),p=n(101),f="dx-radiogroup",m="dx-radiogroup-vertical",g="dx-radiogroup-horizontal",_="dx-radiobutton",v="dx-radiobutton-icon",w="dx-radiobutton-icon-dot",x="dx-radio-value-container",y="dx-radiobutton-checked",b="dxItemData",C=100,k=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),d._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})},_supportedKeys:function(){var e=this.callBase();return s({},e,{enter:function(t){return t.preventDefault(),e.enter.apply(this,arguments)},space:function(t){return t.preventDefault(),e.space.apply(this,arguments)}})},_focusTarget:function(){return this.element().parent()},_keyboardEventBindingTarget:function(){return this._focusTarget()}}),I=l.inherit({_activeStateUnit:"."+_,_getDefaultOptions:function(){return s(this.callBase(),s(d._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical",useInkRipple:!1}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(u.current())},options:{useInkRipple:!0}}])},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{value:!0})},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this._initDataExpressions(),this._feedbackHideTimeout=C},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new p("item",this)},_render:function(){this.element().addClass(f),this._renderSubmitElement(),this._renderRadios(),this.setAria("role","radiogroup"),this.callBase(),this._renderLayout(),this._updateItemsSize(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=c.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,isCentered:!0})},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._inkRipple&&(t?this._inkRipple.showWave({element:e.find("."+v),jQueryEvent:n}):this._inkRipple.hideWave({element:e.find("."+v),jQueryEvent:n}))},_renderFocusState:o,_renderRadios:function(){var e=i("
").appendTo(this.element());this._radios=this._createComponent(e,k,{dataSource:this._dataSource,onItemRendered:this._itemRenderedHandler.bind(this),onItemClick:this._itemClickHandler.bind(this),itemTemplate:this._getTemplateByOption("itemTemplate"),scrollingEnabled:!1,focusStateEnabled:this.option("focusStateEnabled"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:""}),this._setCollectionWidgetOption("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element()),this._setSubmitValue()},_setSubmitValue:function(e){e=e||this.option("value");var t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_contentReadyHandler:function(){this.itemElements().addClass(_),this._refreshSelected()},_itemRenderedHandler:function(e){if(!e.itemData.html){var t,n;t=i("
").addClass(v),i("
").addClass(w).appendTo(t),n=i("
").append(t).addClass(x),e.itemElement.prepend(n)}},_itemClickHandler:function(e){this._saveValueChangeEvent(e.jQueryEvent),this.option("value",this._getItemValue(e.itemData))},_getItemValue:function(e){return this._valueGetter?this._valueGetter(e):e.text},itemElements:function(){return this._radios.itemElements()},_renderDimensions:function(){this.callBase(),this._updateItemsSize()},_renderLayout:function(){var e=this.option("layout");this.element().toggleClass(m,"vertical"===e),this.element().toggleClass(g,"horizontal"===e)},_refreshSelected:function(){var e=this.option("value");this.itemElements().each(function(t,n){var o=i(n),a=this._valueGetter(o.data(b));o.toggleClass(y,this._isValueEquals(a,e)),this.setAria("checked",this._isValueEquals(a,e),o)}.bind(this))},_updateItemsSize:function(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var e=this.option("items").length;this.itemElements().css("height",100/e+"%")}},_getAriaTarget:function(){return this.element()},_setCollectionWidgetOption:function(){this._setWidgetOption("_radios",arguments)},focus:function(){this._radios&&this._radios.focus()},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(e.name,e.value);break;case"disabled":this.callBase(e),this._setCollectionWidgetOption(e.name,e.value);break;case"dataSource":this._setCollectionWidgetOption("dataSource");break;case"valueExpr":this._refreshSelected();break;case"value":this._refreshSelected(),this._setSubmitValue(e.value),this.callBase(e);break;case"items":case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:this.callBase(e)}}}).include(d);r("dxRadioGroup",I),e.exports=I},function(e,t,n){var i=n(9),o=n(312),a=n(314),s=n(57),r=n(11).extend,l=n(14).applyServerDecimalSeparator,c=n(72),d=n(90),u="dx-rangeslider",h=u+"-start-handle",p=u+"-end-handle",f=o.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){t.option("start")===t.option("end")&&(t._capturedHandle=n,e.target=t._capturedHandle,t._capturedHandle.focus())},o=function(n,o,a){var s=i(n.target).hasClass(h),r=s?"start":"end",l=t.option(r);o=t._valueStep(o),l+=a*(e?-o:o),t.option(r,l)},a=function(i,a){n(i,e?t._$handleStart:t._$handleEnd),o(i,a,1)},s=function(i,a){n(i,e?t._$handleEnd:t._$handleStart),o(i,a,-1)};return r(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),a(e,this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),a(e,this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(h),n=t?"start":"end",o=t?"min":"start",a=this.option(o);this.option(n,a)},end:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(h),n=t?"start":"end",o=t?"end":"max",a=this.option(o);this.option(n,a)}})},_getDefaultOptions:function(){return r(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var e=this.element();this._$submitStartElement=i("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(e),this._$submitEndElement=i("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(e)},_initOptions:function(e){this.callBase(e);var t=this.initialOption("value"),n=this.option("value");n[0]===t[0]&&n[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:n[0],end:n[1]})},_render:function(){this.callBase(),this.element().addClass(u),this._callHandlerMethod("repaint")},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(h),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass(p),this._updateHandleAriaLabels()},_startHandler:function(e){var t=e.jQueryEvent,n=this._$range,i=n.width(),o=c.eventData(t).x-this._$bar.offset().left,a=n.position().left,s=n.position().left+i,r=this.option("rtlEnabled"),l=(r?-1:1)*((a+s)/2-o)>0;this._capturedHandle=l?this._$handleStart:this._$handleEnd,this.callBase(e)},_updateHandleAriaLabels:function(){this.setAria("label",d.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",d.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(e){var t=this.option("rtlEnabled"),n=t?-1:1,i=this.option("max"),o=this.option("min"),s=this._startOffset+n*e.jQueryEvent.offset/this._swipePixelRatio();s=s.toPrecision(12);var r=s*(i-o)+o;this._updateSelectedRangePosition(s,s),a.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(s);var l,c=this.option("start"),d=this.option("end");c===d&&(l=r<c?this._$handleStart:this._$handleEnd,l.focus(),l&&l!==this._capturedHandle&&(this._updateSelectedRangePosition((c-o)/(i-o),(d-o)/(i-o)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(l,!0),this._capturedHandle=l),this._updateSelectedRangePosition(s,s),this._changeValueOnSwipe(s))},_updateSelectedRangePosition:function(e,t){var n=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&n||this._capturedHandle===this._$handleEnd&&!n,o=i?"right":"left";n^i?this._$range.css(o,100-100*t+"%"):this._$range.css(o,100*e+"%")},_setValueOnSwipe:function(e){var t=this._capturedHandle===this._$handleStart?"start":"end",n=this.option("start"),i=this.option("end"),o=this.option("max"),a=this.option("min");n=Math.min(Math.max(n,a),o),i=Math.min(Math.max(i,a),o),"start"===t?n=e>i?i:e:i=e<n?n:e,this.option("value",[n,i])},_renderValue:function(){var e=this.option("start"),t=this.option("end"),n=this.option("min"),i=this.option("max"),o=this.option("rtlEnabled");e=Math.max(n,Math.min(e,i)),t=Math.max(e,Math.min(t,i)),this.option("start",e),this.option("end",t),this._$submitStartElement.val(l(e)),this._$submitEndElement.val(l(t));var s=i===n?0:(e-n)/(i-n),r=i===n?0:(t-n)/(i-n),c=parseFloat((100*s).toPrecision(12))+"%",d=parseFloat((100*(1-r)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:o?c:d,left:o?d:c}),a.getInstance(this._$handleStart).option("value",e),a.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(e,t){a.getInstance(this._$handleStart)[e](t),a.getInstance(this._$handleEnd)[e](t)},_setValueOption:function(){var e=this.option("start"),t=this.option("end");this.option("value",[e,t])},_optionChanged:function(e){switch(e.name){case"value":this.option({start:e.value[0],end:e.value[1]});break;case"start":case"end":this._setValueOption(),this._renderValue();var t=this.option("start"),n=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:n,value:[t,n],jQueryEvent:this._valueChangeEventInstance}),this._saveValueChangeEvent(void 0);break;case"startName":this._$submitStartElement.attr("name",e.value);break;case"endName":this._$submitEndElement.attr("name",e.value);break;case"name":break;default:this.callBase(e)}}});s("dxRangeSlider",f),e.exports=f},function(e,t,n){e.exports=n(313)},function(e,t,n){var i=n(9),o=n(62),a=n(32),s=n(53),r=n(11).extend,l=n(14).applyServerDecimalSeparator,c=n(57),d=n(285),u=n(72),h=n(77),p=n(105),f=n(314),m=n(203),g=n(76),_=n(256),v=n(144),w="dx-slider",x="dx-slider-wrapper",y=".dx-slider-handle",b="dx-slider-bar",C="dx-slider-range",k="dx-slider-range-visible",I="dx-slider-label",S="dx-slider-label-position-",D="dx-slider-tooltip-position-",T=d.inherit({_activeStateUnit:y, _supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){e=t._valueStep(e);var i=t.option("step"),o=t.option("value"),a=(o-t.option("min"))%i,s=n?o-e+(a?i-a:0):o+e-a,r=t.option("min"),l=t.option("max");return s<r?s=r:s>l&&(s=l),s},i=function(i){t.option("value",n(i,e))},o=function(i){t.option("value",n(i,!e))};return r(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("min");this.option("value",t)},end:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("max");this.option("value",t)}})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,step:1,value:50,showRange:!0,tooltip:{enabled:!1,format:function(e){return e},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(e){return e}},keyStep:1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(v.current())},options:{useInkRipple:!0}}])},_render:function(){this.element().addClass(w),this._renderSubmitElement(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax(),this._repaintHandle(),this.option("useInkRipple")&&this._renderInkRipple()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=m.render({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_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)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass(x),this._createComponent(this._$wrapper,_,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass(b)},_renderRange:function(){this.callBase(),this._$range.addClass(C),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass(k,Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(e,t){var n=t||i("
").appendTo(this._$range),o=this.option("tooltip.format"),a=this.option("tooltip.enabled"),s=this.option("tooltip.position");return this.element().toggleClass(D+"bottom",a&&"bottom"===s).toggleClass(D+"top",a&&"top"===s),this._createComponent(n,f,{value:e,tooltipEnabled:a,tooltipPosition:s,tooltipFormat:o,tooltipShowMode:this.option("tooltip.showMode"),tooltipFitIn:this.element()}),n},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_hoverStartHandler:function(e){f.getInstance(i(e.currentTarget)).updateTooltip()},_toggleActiveState:function(e,t){this.callBase(e,t),t&&f.getInstance(e).updateTooltip(),this._renderInkWave(e,null,!!t,1)},_toggleFocusClass:function(e,t){if(this.callBase(e,t),!this._disposed){var n=i(t||this._focusTarget());this._renderInkWave(n,null,e,0)}},_renderLabels:function(){if(this.element().removeClass(S+"bottom").removeClass(S+"top"),this.option("label.visible")){var e=this.option("min"),t=this.option("max"),n=this.option("label.position"),o=this.option("label.format");this._$minLabel||(this._$minLabel=i("
").addClass(I).appendTo(this._$wrapper)),this._$minLabel.html(a.format(e,o)),this._$maxLabel||(this._$maxLabel=i("
").addClass(I).appendTo(this._$wrapper)),this._$maxLabel.html(a.format(t,o)),this.element().addClass(S+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderDimensions:function(){if(this.callBase(),this._$bar){var e=this._$bar.outerWidth(!0)-this._$bar.outerWidth();this._$bar.width(this.option("width")-e)}},_renderStartHandler:function(){var e=u.addNamespace(h.down,this.NAME),t=u.addNamespace(g.name,this.NAME),n=this._createAction(this._startHandler.bind(this));this.element().off(e).on(e,function(e){u.isMouseEvent(e)&&n({jQueryEvent:e})}).off(t).on(t,function(e){var t=this._activeHandle();t&&t.focusin()&&t.focus(),n({jQueryEvent:e})}.bind(this))},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(e){var t,n,o=this.option("rtlEnabled");u.isTouchEvent(e.jQueryEvent)&&this._createAction(this._startHandler.bind(this))({jQueryEvent:e.jQueryEvent}),this._feedbackDeferred=i.Deferred(),p.lock(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio,t=this._startOffset*this._swipePixelRatio(),n=(1-this._startOffset)*this._swipePixelRatio(),e.jQueryEvent.maxLeftOffset=o?n:t,e.jQueryEvent.maxRightOffset=o?t:n,this._itemWidthRatio=this.element().width()/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(e){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1;delete this._needPreventAnimation,this._changeValueOnSwipe(this._startOffset+t*e.jQueryEvent.targetOffset/this._swipePixelRatio()),delete this._startOffset,this._renderValue()},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(e){this._saveValueChangeEvent(e),this._updateHandlePosition(e)},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=this._startOffset+t*e.jQueryEvent.offset/this._swipePixelRatio();this._$range.width(100*n+"%"),f.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(n)},_swipePixelRatio:function(){var e=this.option("min"),t=this.option("max"),n=this._valueStep(this.option("step"));return(t-e)/n},_valueStep:function(e){return e&&!isNaN(e)||(e=1),e=parseFloat(e.toFixed(5)),0===e&&(e=1e-5),e},_changeValueOnSwipe:function(e){var t=this.option("min"),n=this.option("max"),i=this._valueStep(this.option("step")),o=e*(n-t),a=t+o;if(!(i<0))if(a===n||a===t)this._setValueOnSwipe(a);else{var s=(i+"").split(".")[1],r=(t+"").split(".")[1],l=Math.max(s&&s.length||0,r&&r.length||0),c=Math.round((a-t)/i);a=Number((c*i+t).toFixed(l)),this._setValueOnSwipe(Math.max(Math.min(a,n),t))}},_setValueOnSwipe:function(e){this.option("value",e)},_startHandler:function(e){var t=e.jQueryEvent;this._currentRatio=(u.eventData(t).x-this._$bar.offset().left)/this._$bar.width(),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)},_renderValue:function(){this.callBase();var e=this.option("value");this._$submitElement.val(l(e)),f.getInstance(this._activeHandle()).option("value",e)},_setRangeStyles:function(e){this._$range.css(e)},_callHandlerMethod:function(e,t){f.getInstance(this._$handle)[e](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("fitTooltipPosition")},_optionChanged:function(e){switch(e.name){case"visible":this.callBase(e),this._renderHandle(),this._repaintHandle(),o.triggerShownEvent(this.element());break;case"min":case"max":this._renderLabels(),this._renderAriaMinAndMax(),this.callBase(e),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"rtlEnabled":this._toggleRTLDirection(),this._renderValue();break;case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_refresh:function(){this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()}});c("dxSlider",T),e.exports=T},function(e,t,n){var i=n(9),o=n(96),a=n(315),s=n(70),r=n(71),l=n(88),c=n(14),d=n(11).extend,u=n(32),h="dx-slider",p="dx-slider-handle",f={top:{my:"bottom center",at:"top center",collision:"none"},bottom:{my:"top center",at:"bottom center",collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},m=o.inherit({_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(e){return e},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_render:function(){this.callBase(),this.element().addClass(p),this._renderTooltip(),this.setAria({role:"slider",valuenow:this.option("value")})},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("
").appendTo(this.element())),this._$slider=this.element().closest("."+h),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,a,{visible:!0,target:this.element(),closeOnOutsideClick:!1,container:this.element(),closeOnBackButton:!1,closeOnTargetScroll:!1,onPositioned:function(e){this._saveTooltipElements(e.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var e=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===c.type(e)&&(e=d({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[e])),this._tooltip.option("position",e),this._saveTooltipLocation()}},_saveTooltipElements:function(e){e=this._tooltip||e,this._$tooltipContent=e.content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){s.resetPosition(this._$tooltipContent),s.resetPosition(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=s.locate(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var e=this._$tooltipContent.get(0).getBoundingClientRect().width,t=Math.ceil(e),n=t%2+t;this._$tooltipContent.outerWidth(n);var i=(n-this.element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var e=this.option("tooltipPosition");"string"===c.type(e)&&(e=d({of:this.element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[e],{collision:"fit none"}));var t=r.calculate(this._$tooltipContent,e),n="left"===t.h.collisionSide,i=(n?-1:1)*t.h.oversize,o=this._contentLocate.left,a=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();s.move(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*t.h.oversize}),s.move(this._$tooltipArrow,{left:l.fitIntoRange(i,o,a)})}},_renderValue:function(){if(this._tooltip){var e=u.format(this.option("value"),this.option("tooltipFormat"));this._tooltip.content().html(e),this._fitTooltip()}},_updateTooltip:function(){var e=/^onhover$/i.test(this.option("tooltipShowMode"));e||this._createTooltip(),this.element().toggleClass("dx-slider-tooltip-on-hover",e),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(e,t){c.isDefined(e)&&c.isDefined(t)&&e.toString().length!==t.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(e){switch(e.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue(),this._ensureTooltipIsCentered(e.value,e.previousValue),this.setAria("valuenow",e.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(e)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});e.exports=m},function(e,t,n){e.exports=n(316),e.exports.show=n(317).show,e.exports.hide=n(317).hide},function(e,t,n){var i=n(9),o=n(152),a=n(57),s=n(11).extend,r=n(208),l="dx-tooltip",c="dx-tooltip-wrapper",d=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.element().addClass(l),this._wrapper().addClass(c),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o,this._$content.attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=i(this.option("target")),n=e?this._contentId:void 0;this.setAria("describedby",n,t)}});a("dxTooltip",d),e.exports=d},function(e,t,n){var i=n(9),o=n(316),a=n(11).extend,s=n(55),r=null,l=null,c=function(e){e=a({position:"top"},e);var t=e.content;delete e.content;var n=i("<div />").html(t).appendTo(s.value());l=function(){n.remove()},r=new o(n,e)},d=function(){r&&(l(),r=null)};t.show=function(e){return d(),c(e),r.show()},t.hide=function(){return r?r.hide().done(d).promise():i.Deferred().resolve()}},function(e,t,n){var i=n(9),o=n(14),a=n(11).extend,s=n(26).inArray,r=n(7),l=n(203),c=n(90),d=n(57),u=n(72),h=n(160),p=n(210),f=n(144),m=n(76),g=".dx-state-disabled",_="dx-selectbox",v="dx-selectbox-popup",w="dx-selectbox-container",x="dx-selectbox-popup-wrapper",y=p.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 a({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!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)},escape:function(){t.escape.apply(this,arguments),this._isEditable()||(this._focusListElement(null),this._updateField(this.option("selectedItem")))},enter:function(e){if(""===this._input().val()&&this.option("value")&&this.option("allowClearing"))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 a(this.callBase(),{placeholder:c.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){return e.text},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return/win8/.test(f.current())},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return/android5/.test(f.current())},options:{_isAdaptablePopupPosition:!0,popupPosition:{offset:{h:-16,v:-8}},useInkRipple:!0}}])},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_render:function(){this._renderSubmitElement(),this.callBase(),this.element().addClass(_),this.option("useInkRipple")&&this._renderInkRipple(),this._renderTooltip(),this._$container.addClass(w)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element())},_renderInkRipple:function(){this._inkRipple=l.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(v)},_popupWrapperClass:function(){return this.callBase()+" "+x},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=s(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(g).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",e),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){this._renderInputValue(),this._setSubmitValue()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl(),this._refreshSelected()},_renderInputValueImpl:function(){this._renderInputAddons()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_setNextValue:function(e){var t=this._dataSource.isLoaded()?i.Deferred().resolve():this._dataSource.load();t.done(function(){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)}.bind(this))},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_items:function(){var e=this._list?this.option("items"):this._dataSource.items(),t=new h(e).filter("disabled","<>",!0).toArray();return t},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return i.each(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e)},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!o.isDefined(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=a(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&a(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=t.option("focusedElement"),i=t._getItemData(n);this._updateField(i)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderInputAddons():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):o.noop},_selectionChangeHandler:function(e){i.each(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._restoreInputText(),this._wasSearch()&&e)if(this._wasSearch(!1),this.option("showDataBeforeSearch")||0===this.option("minSearchLength")){if(this._searchTimer)return;var t=this._dataSource.searchValue();t&&this._wasSearch(!0),this._filterDataSource(t||null)}else this._setListOption("items",[]);this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_restoreInputText:function(){if(!this.option("acceptCustomValue")){if(!this._searchValue()&&this.option("allowClearing"))return void this._clearTextValue();var e=this.option("selectedItem");this._renderInputValue().always(function(t){var n=o.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this))}},_focusOutHandler:function(e){this.callBase(e),this._restoreInputText()},_clearTextValue:function(){this.option("value",null)},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this._list.option("focusedElement");return e?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._saveValueChangeEvent(e.jQueryEvent),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_completeSelection:function(e){this._wasSearch()&&this._clearFilter(),this._setValue(e)},_clearValueHandler:function(){this.reset()},_loadItem:function(e){var t=this,n=i.Deferred();return this.callBase(e).done(function(e){n.resolve(e)}).fail(function(){var i=t.option("selectedItem");t.option("acceptCustomValue")&&e===t._valueGetter(i)?n.resolve(i):n.reject()}),n.promise()},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_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.done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)),null===e&&this._wasSearch()&&this._filterDataSource(null))},_createClearButton:function(){var e=u.addNamespace(m.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.key)||this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e);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},_dispose:function(){this._renderInputValueAsync=o.noop,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"selectedItem":e.previousValue!==e.value&&this.callBase(e);break;case"allowClearing":break;default:this.callBase(e)}}});d("dxSelectBox",y),e.exports=y},function(e,t,n){var i=n(9),o=n(53),a=n(11).extend,s=n(203),r=n(57),l=n(107),c=n(72),d=n(105),u=n(144),h=n(69),p=n(90),f=n(76),m=n(256),g="dx-switch",_=g+"-wrapper",v=g+"-container",w=g+"-inner",x=g+"-handle",y=g+"-on-value",b=g+"-on",C=g+"-off",k=100,I=l.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({jQueryEvent:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._animateValue(e)};return a(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_getDefaultOptions:function(){return a(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,onText:p.format("dxSwitch-onText"),offText:p.format("dxSwitch-offText"),value:!1,useInkRipple:!1,useOldRendering:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return/android5/.test(u.current())},options:{useInkRipple:!0}},{device:function(){var e=o.real();return"android"===e.platform&&(e.version[0]<4||4===e.version[0]&&e.version[1]<4)},options:{useOldRendering:!0}}])},_feedbackHideTimeout:0,_animating:!1,_render:function(){this._renderSwitchInner(),this._renderLabels(),this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.element().addClass(g).append(this._$switchWrapper),this.setAria("role","button"),this._renderSubmitElement(),this._renderSwipeable(),this.callBase(),this._renderHandleWidth(),this._getHandleOffset=this.option("useOldRendering")?this._getPixelOffset:this._getCalcOffset,this._renderValue(),this._renderClick()},_renderHandleWidth:function(){this._handleWidth=parseFloat(window.getComputedStyle(this._$handle.get(0)).width)},_getCalcOffset:function(e,t){var n=t-Number(!e);return"calc("+100*n+"% + "+-this._getHandleWidth()*n+"px)"},_getHandleWidth:function(){return!this._handleWidth&&this._renderHandleWidth(),this._handleWidth},_getPixelOffset:function(e,t){return this._getMarginBound()*(t-Number(!e))},_renderSwitchInner:function(){this._$switchInner=i("
").addClass(w),this._$handle=i("
").addClass(x).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("
").addClass(b).prependTo(this._$switchInner),this._$labelOff=i("
").addClass(C).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("
").addClass(v).append(this._$switchInner),this._$switchWrapper=i("
").addClass(_).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.element(),m,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getMarginBound.bind(this)})},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,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._$handle,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,t,1)},_getMarginBound:function(){return this._marginBound||(this._marginBound=this._$switchContainer.outerWidth(!0)-this._getHandleWidth()),this._marginBound},_marginDirection:function(){return this.option("rtlEnabled")?"Right":"Left"},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._marginDirection(),i="Left"===n?"Right":"Left";this._$switchInner.css("margin"+n,this._getHandleOffset(e,t)),this._$switchInner.css("margin"+i,0)},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&(this._options.value=!!e)},_renderClick:function(){var e=c.addNamespace(f.name,this.NAME);this._clickAction=this._createAction(this._clickHandler.bind(this)),this.element().off(e).on(e,function(e){this._clickAction({jQueryEvent:e})}.bind(this))},_clickHandler:function(e){var t=e.jQueryEvent;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this,o=this._marginDirection(),a="Left"===o?"Right":"Left",s={},r={};this._$switchInner.css("margin"+a,0),s["margin"+o]=this._getHandleOffset(t,0),r["margin"+o]=this._getHandleOffset(n,0),h.animate(this._$switchInner,{from:s,to:r,duration:k,complete:function(){i._animating=!1,i.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),o=n?0:1,a=n?1:0;e.jQueryEvent.maxLeftOffset=t?o:a,e.jQueryEvent.maxRightOffset=t?a:o,this._swiping=!0,this._feedbackDeferred=i.Deferred(),d.lock(this._feedbackDeferred),this._toggleActiveState(this.element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),this._offsetDirection()*e.jQueryEvent.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={};i["margin"+this._marginDirection()]=this._getHandleOffset(t.option("value"),n*e.jQueryEvent.targetOffset),h.animate(this._$switchInner,{to:i,duration:k,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.jQueryEvent.targetOffset;t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.element(),!1)}})},_renderValue:function(){this._validateValue(); var e=this.option("value");this._renderPosition(e,0),this.element().toggleClass(y,e),this._$submitElement.val(e),this.setAria({pressed:e,label:e?this.option("onText"):this.option("offText")})},_setLabelsText:function(){this._$labelOn.text(this.option("onText")),this._$labelOff.text(this.option("offText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"useOldRendering":case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"onText":case"offText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;default:this.callBase(e)}}});r("dxSwitch",I),e.exports=I},function(e,t,n){var i=n(9),o=n(53),a=n(14),s=n(26),r=n(11).extend,l=n(26).inArray,c=n(90),d=n(57),u=n(72),h=n(318),p=n(76),f=n(216),m=n(23),g=n(16).when,_=n(77),v=n(167),w="dxTagData",x="dx-tagbox",y="dx-tag-container",b="dx-tag",C="dx-tag-custom",k="dx-tag-remove-button",I="dx-tagbox-only-select",S="dx-tagbox-single-line",D="dx-tagbox-popup-wrapper",T="dx-list-select-all-checkbox",E="dx-tag-content",A="dx-tagbox-default-template",B="dx-tagbox-custom-template",M="dx-native-click",R="dx-texteditor-container",O=-.3,P=h.inherit({_supportedKeys:function(){var e=this.callBase();return r(e,{backspace:function(e){if(this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e){var t=this._list&&null!==this._list.option("focusedElement"),n=this.option("acceptCustomValue")&&!t;return n?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler())):void(this.option("opened")&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e)))},leftArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||!t||this._$focusedTag){e.preventDefault();var n=t?"next":"prev";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}},rightArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||t||this._$focusedTag){e.preventDefault();var n=t?"prev":"next";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}}})},_isCaretAtTheStart:function(){var e=f(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e]("."+b);i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_scrollContainer:function(e){if(!this.option("multiline")&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,i=t&&!m.webkit,o=!t||m.webkit||m.msie?1:-1;return n^!i?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,i=this._$focusedTag.position().left,o=this._$tagsContainer.scrollLeft();if(n&&(i+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^i<0){var a=t&&m.msie?-1:1;o+=i*a}return o},_setNextValue:a.noop,_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{values:{since:"16.1",alias:"value"}})},_getDefaultOptions:function(){return r(this.callBase(),{value:[],showDropDownButton:!1,tagTemplate:"tag",selectAllText:c.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,multiline:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initTemplates:function(){this.callBase(),this._defaultTemplates.tag=new v(function(e,t){var n=i("
").addClass(E);i("").text(t).appendTo(n),i("
").addClass(k).appendTo(n),e.append(n)},[],this.option("integrationOptions.watchMethod"))},_renderSubmitElement:function(){this._$submitElement=i("<select>").attr("multiple","multiple").css("display","none").appendTo(this.element())},_setSubmitValue:function(){for(var e=this._getValue(),t="this"===this.option("valueExpr"),n=[],o=0,a=e.length;o<a;o++)n.push(i("<option>").val(t?this._displayGetter(e[o]):e[o]).attr("selected","selected"));this._$submitElement.html(n)},_render:function(){this._tagElementsCache=i();var e=!this.option("multiline");this.element().addClass(x).toggleClass(I,!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(S,e),this._toggleRTLDirection(this.option("rtlEnabled")),this._initTagTemplate(),this.callBase(),e&&this._renderPreventBlur(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!a.isDefined(this.option("fieldTemplate"));this.element().toggleClass(A,e).toggleClass(B,!e),this.callBase()},_renderPreventBlur:function(){var e=u.addNamespace(_.down,"dxTagBoxContainer");this._$tagsContainer&&this._$tagsContainer.off(e).on(e,function(e){e.preventDefault()})},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=u.addNamespace(p.name,"dxTagBoxTagRemove");this.element().find("."+R).off(t).on(t,"."+k,function(t){e({jQueryEvent:t})}),this._renderTypingEvent()},_renderSingleLineScroll:function(){var e=u.addNamespace("dxmousewheel",this.NAME),t=this.element(),n=this.option("multiline");return t.off(e),"desktop"!==o.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflow-x",n?"":"auto")):void(n||t.on(e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=this._$tagsContainer.scrollLeft();return this._$tagsContainer.scrollLeft(t+e.delta*O),!1},_renderTypingEvent:function(){this._input().on(u.addNamespace("keydown",this.NAME),function(e){!this._isControlKey(e.key)&&this._isEditable()&&this._clearTagFocus()}.bind(this))},_popupWrapperClass:function(){return this.callBase()+" "+D},_renderInputValueImpl:function(){this._renderMultiSelect()},_loadInputValue:function(){return i.when()},_clearTextValue:function(){this._input().val("")},_focusInHandler:function(e){this.callBase(e),this._scrollContainer("end")},_focusOutHandler:function(e){this.option("opened")&&"useButtons"===this.option("applyValueMode")||(this.callBase(e),this._clearTextValue(),this._clearTagFocus(),this._scrollContainer("start"))},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._popup._wrapper().find("."+T):this.callBase()},_suppressingSelectionChanged:function(e){this._setListOption("onSelectionChanged",a.noop),e.call(this),this._setListOption("onSelectionChanged",this._getSelectionChangeHandler())},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){if(this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")){var e=this._list.element().find("."+T),t=e.dxCheckBox("instance");t.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),t.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))}},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return r(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){e._selectAllValueChangeAction({value:t.value})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){this._$tagsContainer=this.element().find("."+R).addClass(y).addClass(M),this._renderInputSize(),this._clearFilter(),this._renderTags(),this._popup&&this._popup.refreshPosition()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&this.callBase(e)},_renderInputSize:function(){var e=this._input();e.prop("size",e.val()?e.val().length+2:1)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_renderTags:function(){this._cleanTags();var e=this._input(),t=i.map(this._getValue(),function(t){return this._renderTag(t,e)}.bind(this));g.apply(i,t).done(function(){this._renderInputAddons(),this._scrollContainer("end"),this.option("selectedItems",this._selectedItems.slice())}.bind(this)),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus(),this._refreshTagElements()},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_cleanTags:function(){var e=this._tagElements(),t=this._getValue();i.each(e,function(e,n){var o=i(n),a=l(o.data(w),t);a<0&&o.remove()}),this._cleanSelectedItems()},_cleanSelectedItems:function(){if(this.option("fieldTemplate"))return void(this._selectedItems=[]);for(var e=this._getValue(),t=this._selectedItems.length,n=0;n<t;n++){var i=this._selectedItems[n],o=this._valueGetter(i);l(o,e)<0&&(this._selectedItems.splice(n,1),n--,t--)}},_refreshTagElements:function(){this._tagElementsCache=this.element().find("."+b)},_tagElements:function(){return this._tagElementsCache},_getDefaultTagTemplate:function(){return this._defaultTemplates.tag},_renderTag:function(e,t){var n=this._getTag(e);return n&&!n.hasClass(C)?i.Deferred().resolve():(n&&n.removeClass(C),n=n||this._createTag(e,t),this._loadItem(e).always(function(t){a.isDefined(t)?this._selectedItems.push(t):(n.addClass(C),t=e),this._displayGetterExpr()&&this._tagTemplate===this._getDefaultTagTemplate()&&(t=this._displayGetter(t)),this._tagTemplate.render({model:t,container:n})}.bind(this)))},_getTag:function(e){for(var t=this._tagElements(),n=t.length,o=!1,a=0;a<n;a++){var s=t[a];if(e===i.data(s,w)){o=i(s);break}}return o},_createTag:function(e,t){return i("
").addClass(b).data(w,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._input().val("")},_removeTagHandler:function(e){var t=e.jQueryEvent;t.stopPropagation();var n=i(t.target).closest("."+b);this._removeTagElement(n)},_removeTagElement:function(e){var t=e.data(w);this._removeTagWithUpdate(t),this._refreshTagElements()},_updateField:a.noop,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){if("useButtons"!==this.option("applyValueMode")){var t=this._getValue().slice();i.each(e.removedItems||[],function(e,n){this._removeTag(t,this._valueGetter(n))}.bind(this)),i.each(e.addedItems||[],function(e,n){this._addTag(t,this._valueGetter(n))}.bind(this)),this._updateWidgetHeight(),this.option("value",t)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){var n=this._valueIndex(t);n<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_setValue:function(e){if(null!==e&&!this.option("showSelectionControls")){var t=this._valueIndex(e),n=this._getValue().slice();t>=0?n.splice(t,1):n.push(e),this.option("value",n)}},_isSelectedValue:function(e){return this._valueIndex(e)>-1},_valueIndex:function(e,t){t=t||this._getValue();var n=-1;return i.each(t,function(t,i){if(this._isValueEquals(e,i))return n=t,!1}.bind(this)),n},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return a.isDefined(t)?t:null},_valueChangeEventHandler:a.noop,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&this.callBase(e),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.element(),t=e.height();this._renderInputSize();var n=e.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){this._list&&this._suppressingSelectionChanged(function(){this.callBase()})},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();e&&(e.filter(this._dataSourceFilter.bind(this)),e.reload())}},_dataSourceFilter:function(e){var t=this._valueGetter(e),n=!0;return i.each(this._getValue(),function(e,i){if(this._isValueEquals(i,t))return n=!1,!1}.bind(this)),n},_applyButtonHandler:function(){this.option("value",this._getListValues()),this._clearTextValue(),this.callBase()},_getListValues:function(){if(!this._list)return[];var e=this,t=this._getPlainItems(this._list.option("selectedItems")),n=[];return i.each(t,function(t,i){n[t]=e._valueGetter(i)}),n},_renderOpenedState:function(){this.callBase(),this.option(!1)&&this._refreshSelected()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._tagTemplate},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"displayExpr":this.callBase(e),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"value":this.callBase(e),this._setListDataSourceFilter();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":break;case"selectedItems":var t=s.removeDuplicates(e.value,e.previousValue),n=s.removeDuplicates(e.previousValue,e.value);this._selectionChangedAction({addedItems:t,removedItems:n});break;case"multiline":this.element().toggleClass(S,!e.value),this._renderSingleLineScroll();break;default:this.callBase(e)}},reset:function(){this.option("value",[]),this._clearFilter(),this._clearSelectedItem()}});d("dxTagBox",P),e.exports=P},function(e,t,n){var i=n(9),o=n(14).noop,a=n(57),s=n(11).extend,r=n(72),l=n(77),c=n(212),d="dx-textarea",u="dx-texteditor-input",h=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_render:function(){this.callBase(),this.element().addClass(d),this.setAria("multiline","true"),this._updateInputHeight()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=i("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_applyInputAttributes:function(e,t){e.attr(t).addClass(u)},_renderScrollHandler:function(){var e=this._input(),t=0;e.on(r.addNamespace(l.down,this.NAME),function(e){t=r.eventData(e).y}),e.on(r.addNamespace(l.move,this.NAME),function(n){var i=e.scrollTop(),o=e.prop("scrollHeight")-e.prop("clientHeight")-i;if(0!==i||0!==o){var a=r.eventData(n).y,s=0===i&&t>=a,l=0===o&&t<=a,c=i>0&&o>0;(s||l||c)&&(n.isScrollingEvent=!0,n.stopPropagation()),t=a}})},_renderDimensions:function(){var e=this.option("width"),t=this.option("height"),n=this.option("minHeight"),i=this.option("maxHeight"),o=this.element();o.css({"min-height":void 0!==n?n:"","max-height":void 0!==i?i:""}),o.outerWidth(e),o.outerHeight(t)},_resetDimensions:function(){this.element().css({height:"","min-height":"","max-height":""})},_renderEvents:function(){this.option("autoResizeEnabled")&&this._input().on(r.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){this._input().off(r.addNamespace("input paste",this.NAME)),this.callBase()},_updateInputHeight:function(){var e=this._input();if(!this.option("autoResizeEnabled")||void 0!==this.option("height"))return void e.css("height","");this._resetDimensions(),e.css("height",0);var t=this._$element.outerHeight()-e.outerHeight();this._renderDimensions();var n=this.option("minHeight"),i=this.option("maxHeight"),o=e[0].scrollHeight;void 0!==n&&(o=Math.max(o,n-t)),void 0!==i&&(o=Math.min(o,i-t)),e.css("height",o)},_renderInputType:o,_visibilityChanged:function(e){e&&this._updateInputHeight()},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});a("dxTextArea",h),e.exports=h},function(e,t,n){var i=n(9),o=n(53),a=n(57),s=n(39),r=n(14),l=n(11).extend,c=n(234),d=n(150),u="dx-tileview",h="dx-tileview-wrapper",p="dx-tile",f="."+p,m="dxTileData",g={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},_=d.inherit({_activeStateUnit:f,_getDefaultOptions:function(){return l(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:!1,height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return p},_itemDataKey:function(){return m},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.element().addClass(u),this._initScrollView()},_dataSourceLoadingChangedHandler:function(e){var t=this._scrollView;t&&(e&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){this._scrollView=this._createComponent(this.element(),c,{direction:this.option("direction"),scrollByContent:!0,useKeyboard:!1,showScrollbar:this.option("showScrollbar")}),this._$container=this._scrollView.content(),this._$container.addClass(h),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_render:function(){this.callBase(),this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()},_renderContent:function(){this._renderContentImpl()},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=g[this.option("direction")];var e=this.option("items")||[],t=this._config,n=this.option("itemMargin"),o=Math.max.apply(Math,i.map(e||[],function(e){return Math.round(e[t.itemCrossRatio]||1)}));this._cellsPerDimension=Math.floor(this.element()[t.crossDimension]()/(this.option(t.baseItemCrossDimension)+n)),this._cellsPerDimension=Math.max(this._cellsPerDimension,o),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(e),this._$container[t.mainDimension](this._cells.length*this.option(t.baseItemMainDimension)+(this._cells.length+1)*n)},_arrangeItems:function(e){var t=this._config,n=t.itemMainRatio,o=t.itemCrossRatio,a=t.mainPosition;this._itemsPositions=[],i.each(e,function(e,i){var s={};s[n]=i[n]||1,s[o]=i[o]||1,s.index=e,s[n]=s[n]<=0?0:Math.round(s[t.itemMainRatio]),s[o]=s[o]<=0?0:Math.round(s[t.itemCrossRatio]);var r=this._getItemPosition(s);r[a]===-1&&(r[a]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(s,r),this._arrangeItem(s,r),this._itemsPositions.push(r)}.bind(this))},_getItemPosition:function(e){var t=this._config,n=t.mainPosition,i=t.crossPosition,o={};o[n]=-1,o[i]=0;for(var a=0;a<this._cells.length;a++){for(var s=0;s<this._cellsPerDimension;s++)if(this._itemFit(a,s,e)){o[n]=a,o[i]=s;break}if(o[n]>-1)break}return o},_itemFit:function(e,t,n){var i=!0,o=this._config,a=n[o.itemMainRatio],s=n[o.itemCrossRatio];if(t+s>this._cellsPerDimension)return!1;for(var r=e;r<e+a;r++)for(var l=t;l<t+s;l++)if(this._cells.length-1<r)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[r][l]){i=!1;break}return i},_occupyCells:function(e,t){for(var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],s=e[n.itemCrossRatio],r=i;r<i+a;r++)for(var l=o;l<o+s;l++)this._cells[r][l]=e.index},_arrangeItem:function(e,t){var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],s=e[n.itemCrossRatio],r=this.option(n.baseItemCrossDimension),l=this.option(n.baseItemMainDimension),c=this.option("itemMargin"),d={display:a<=0||s<=0?"none":""};if(d[n.mainDimension]=a*l+(a-1)*c,d[n.crossDimension]=s*r+(s-1)*c,d[n.mainPosition]=i*l+(i+1)*c,d[n.crossPosition]=o*r+(o+1)*c,this.option("rtlEnabled")){var u=this._$container.width(),h=this.option("baseItemWidth"),p=t.left,f=p*h,m=h+c,g=m*e.widthRatio,_=p*c;d.left=u-(f+g+_)}this._itemElements().eq(e.index).css(d)},_moveFocus:function(e){var t="up",n="down",i=this.option("rtlEnabled")?"right":"left",o=this.option("rtlEnabled")?"left":"right",a="pageup",s="pagedown",l="horizontal"===this.option("direction"),c=this._cells,d=this.option("focusedElement").index(),u=this._itemsPositions[d].left,h=this._itemsPositions[d].top,p=(l?c:c[0]).length,f=(l?c[0]:c).length,m=function(e,t){return l?c[e][t]:c[t][e]};switch(e){case a:case t:for(;h>0&&d===m(u,h);)h--;h<0&&(h=0);break;case s:case n:for(;h<f&&d===m(u,h);)h++;h===f&&(h=f-1);break;case o:for(;u<p&&d===m(u,h);)u++;u===p&&(u=p-1);break;case i:for(;u>=0&&d===m(u,h);)u--;u<0&&(u=0);break;default:return void this.callBase.apply(this,arguments)}var g=m(u,h);if(r.isDefined(g)){var _=this._itemElements().eq(g);this.option("focusedElement",_),this._scrollToItem(_)}},_scrollToItem:function(e){if(e.length){var t=this._config,n="outer"+s.captionize(t.mainDimension),i=this.option("itemMargin"),o=e.position()[t.mainPosition],a=e[n](),r=o+a,l=this.scrollPosition(),c=this.element()[n]();l<=o&&r<=l+c||(l>o?this._scrollView.scrollTo(o-i):this._scrollView.scrollTo(o+a-c+i))}},_optionChanged:function(e){switch(e.name){case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",e.value),this.callBase(e);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(e)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});a("dxTileView",_),e.exports=_},function(e,t,n){var i=n(9),o=n(144),a=n(57),s=n(14).grep,r=n(11).extend,l=n(324),c=n(326),d=n(328),u=n(330),h=n(204),p=n(101),f={actionSheet:l,dropDownMenu:c,listBottom:d,listTop:u},m="dx-toolbar-item-auto-hide",g="dx-toolbar-text-auto-hide",_="dx-toolbar-item-invisible",v=h.inherit({_getDefaultOptions:function(){return r(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return/ios7.*/.test(o.current())},options:{submenuType:"actionSheet"}},{device:function(){return/android5.*/.test(o.current())},options:{submenuType:"dropDownMenu"}},{device:function(){return/win8.*/.test(o.current())},options:{submenuType:"listBottom"}},{device:function(){return/win10.*/.test(o.current())},options:{submenuType:"listTop"}}])},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._defaultTemplates.actionSheetItem=new p("item",this)},_render:function(){this.callBase(),this._menuStrategy.renderMenuItems()},_renderContentImpl:function(){this.callBase(),this._hideOverflowItems(),this._renderMenu()},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(m),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass(g),o},_hideOverflowItems:function(e){var t=this.element().find("."+m);if(t.length){e=e||this.element().width(),i(t).removeClass(_);for(var n=this._$beforeSection.outerWidth(),o=this._$centerSection.outerWidth(),a=this._$afterSection.outerWidth(),s=n+o+a;t.length&&e<s;){var r=t.eq(-1);s-=r.outerWidth(),r.addClass(_),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=s(this.option("items")||[],function(t){return e._isMenuItem(t)}),n=this._itemContainer().children("."+m+"."+_).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var o=i.map(n,function(t){var n=e._getItemData(t),o=i(t).children(),a=o.children();return r({menuItemTemplate:function(){e._restoreItems.push({container:o,item:a});var t=i("
").addClass(m);return t.append(a)}},n)});return i.merge(o,t)},_getToolbarItems:function(){var e=this;return s(this.option("items")||[],function(t){return!e._isMenuItem(t)})},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=f[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("submenuType");if(("listBottom"===e||"listTop"===e)&&"topToolbar"===this.option("renderAs"))return!0;var t=this.option("items")||[],n=!1;return i.each(t,function(e,t){"auto"===t.locateInMenu?n=!0:"always"===t.locateInMenu&&t.widget&&(n=!0)}),n},_arrangeItems:function(){if(!this.element().is(":hidden")){this._$centerSection.css({margin:"0 auto","float":"none"}),i.each(this._restoreItems||[],function(e,t){i(t.container).append(t.item)}),this._restoreItems=[];var e=this.element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems())},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});a("dxToolbar",v),e.exports=v},function(e,t,n){var i=n(325),o=n(11).extend,a=n(207),s=i.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return a},_menuContainer:function(){return this._toolbar.element()},_widgetOptions:function(){return o({},this.callBase(),{target:this._$button,showTitle:!1})},_menuButtonOptions:function(){return o({},this.callBase(),{icon:"overflow"})},_toggleMenu:function(){this.callBase.apply(this,arguments),this._menu.toggle(this._menuShown),this._menuShown=!1}});e.exports=s},function(e,t,n){var i=n(9),o=n(14).noop,a=n(7),s=n(50).compileGetter,r=n(25),l=n(202),c=r.abstract,d="dx-toolbar-menu-container",u="dx-toolbar-menu-button",h=r.inherit({ctor:function(e){this._toolbar=e},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toggleMenu(!1,!0),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=i("
").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:c,_menuWidgetClass:c,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,o=s("visible"),r=s("locateInMenu"),l=!1;return i.each(t,function(e,t){var i=o(t,{functionsAsIs:!0}),a=r(t,{functionsAsIs:!0});"menu"===t.location&&(l=!0),i===!1||"auto"!==a&&"always"!==a&&"menu"!==t.location||(n=!0)}),l&&a.log("W0001","dxToolbar - 'location' item field","menu","16.1","Use 'locateInMenu' item field instead."),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_renderMenuButton:function(){var e=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=i("
").appendTo(this._$menuButtonContainer).addClass(u),this._toolbar._createComponent(this._$button,l,e)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=i("
").appendTo(e).addClass(this._toolbar._buttonClass()).addClass(d)},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(e,t){this._menu&&this._toggleMenu(e,t)},_toggleMenu:function(e){this._menuShown=e},getMenuWidget:function(){return this._menu},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)},handleToolbarVisibilityChange:o});e.exports=h},function(e,t,n){var i=n(11).extend,o=n(325),a=n(327),s=n(282),r=o.inherit({NAME:"dropDownMenu",render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButtonContainer(),this._renderWidget())},renderMenuItems:function(){this._menu||this.render(),this.callBase(),this._menu&&!this._menu.option("items").length&&this._menu.close()},_menuWidgetClass:function(){return s},_widgetOptions:function(){return i(this.callBase(),{deferRendering:!0,menuWidget:a,popupPosition:{at:"bottom right",my:"top right"}})},_getMenuItems:function(){var e=this.callBase(),t=e.length&&this._hasVisibleMenuItems(e);return this._toggleMenuVisibility(t),e},_toggleMenuVisibility:function(e){this._menuContainer()&&this._menuContainer().toggleClass("dx-state-invisible",!e); },_menuContainer:function(){return this._$menuButtonContainer}});e.exports=r},function(e,t,n){var i=n(9),o=n(57),a=n(232),s="dx-toolbar-menu-action",r="dx-toolbar-hidden-button",l="dx-toolbar-menu-section",c="dx-toolbar-menu-last-section",d=a.inherit({_activeStateUnit:"."+s,_render:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var e=this,t=this._itemContainer();i.each(["before","center","after","menu"],function(){var n="_$"+this+"Section",o=e[n];o||(e[n]=o=i("
").addClass(l)),o.appendTo(t)})},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var e=this.element().find("."+l);e.removeClass(c),e.not(":empty").eq(-1).addClass(c)},_renderItem:function(e,t,n,i){var o,a=t.location||"menu",l=this["_$"+a+"Section"];return o=this.callBase(e,t,l,i),this._getItemTemplateName({itemData:t})&&o.addClass("dx-toolbar-menu-custom"),("menu"===a||"dxButton"===t.widget||t.isAction)&&o.addClass(s),"dxButton"===t.widget&&o.addClass(r),o},_getItemTemplateName:function(e){var t=this.callBase(e),n=e.itemData,i=n&&n.menuItemTemplate;return i||t},_itemClickHandler:function(e,t,n){i(e.target).closest("."+s).length&&this.callBase(e,t,n)},_clean:function(){this._getSections().empty(),this.callBase()}});o("dxToolbarMenu",d),e.exports=d},function(e,t,n){var i=n(329),o=n(256),a=i.inherit({NAME:"listBottom",_renderWidget:function(){this._renderContainerSwipe(),this.callBase(),this._toolbar._$toolbarItemsContainer.prependTo(this._listOverlay.content())},_renderContainerSwipe:function(){this._toolbar._createComponent(this._toolbar._$toolbarItemsContainer,o,{elastic:!1,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getListHeight.bind(this),direction:"vertical"})},_swipeStartHandler:function(e){e.jQueryEvent.maxTopOffset=this._menuShown?0:1,e.jQueryEvent.maxBottomOffset=this._menuShown?1:0},_swipeUpdateHandler:function(e){var t=this._menuShown?e.jQueryEvent.offset:1+e.jQueryEvent.offset;this._renderMenuPosition(t,!1)},_swipeEndHandler:function(e){var t=e.jQueryEvent.targetOffset;t-=this._menuShown-1,this._toggleMenu(0===t,!0)}});e.exports=a},function(e,t,n){var i=n(9),o=n(11).extend,a=n(325),s=n(70),r=n(66).hideCallback,l=n(69),c=n(110),d=n(232),u="dx-toolbar-list-visible",h="easeOutCubic",p=200,f=400,m=a.inherit({render:function(){this._renderListOverlay(),this.callBase(),this._changeListVisible(this._toolbar.option("visible"))},_renderWidget:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return d},_menuContainer:function(){return this._listOverlay.content()},_menuButtonOptions:function(){return o({},this.callBase(),{activeStateEnabled:!1,text:"..."})},_widgetOptions:function(){return o({},this.callBase(),{width:"100%",indicateLoading:!1})},_renderListOverlay:function(){var e=i("
").appendTo(this._toolbar.element());this._listOverlay=this._toolbar._createComponent(e,c,this._listOverlayConfig())},_listOverlayConfig:function(){return{container:!1,deferRendering:!1,shading:!1,height:"auto",width:"100%",showTitle:!1,closeOnOutsideClick:this._listOutsideClickHandler.bind(this),position:null,animation:null,closeOnBackButton:!1}},_listOutsideClickHandler:function(e){i(e.target).closest(this._listOverlay.content()).length||this._toggleMenu(!1,!0)},_getListHeight:function(){var e=this._listOverlay.content().find(".dx-list").height(),t=this._toolbar._$toolbarItemsContainer.height()-this._toolbar.element().height();return e+t},_hideTopOverlayHandler:function(){this._toggleMenu(!1,!0)},_toggleHideTopOverlayCallback:function(){this._closeCallback&&r.remove(this._closeCallback),this._menuShown&&(this._closeCallback=this._hideTopOverlayHandler.bind(this),r.add(this._closeCallback))},_calculatePixelOffset:function(e){e=(e||0)-1;var t=this._getListHeight();return e*t},_renderMenuPosition:function(e,t){var n=this._calculatePixelOffset(e),o=this._listOverlay.content();return t?this._animateMenuToggling(o,n,this._menuShown):(s.move(o,{top:n}),i.Deferred().resolve().promise())},_animateMenuToggling:function(e,t,n){var i=n?f:p;return l.animate(e,{type:"slide",to:{top:t},easing:h,duration:i})},_toggleMenu:function(e,t){this.callBase.apply(this,arguments),this._toggleHideTopOverlayCallback(),this._renderMenuPosition(this._menuShown?0:1,t).done(function(){this._toolbar.element().toggleClass(u,e)}.bind(this))},_changeListVisible:function(e){this._listOverlay&&(this._listOverlay.option("visible",e),this._toggleMenu(!1,!1))},handleToolbarVisibilityChange:function(e){this._changeListVisible(e)}});e.exports=m},function(e,t,n){var i=n(9),o=n(329),a=n(11).extend,s=n(70),r=o.inherit({NAME:"listTop",_listOverlayConfig:function(){var e=this.callBase();return a({},e,{onContentReady:this._setItemsContainerZIndex.bind(this)})},_setItemsContainerZIndex:function(e){var t=e.component.content().css("z-index");this._toolbar._$toolbarItemsContainer.css("z-index",t+1)},_renderMenuPosition:function(e,t){var n=this._toolbar._$toolbarItemsContainer,i=this._calculateItemsContainerOffset(e);return t?this._animateMenuToggling(n,i,this._menuShown):s.move(n,{top:i}),this.callBase(e,t)},_calculateItemsContainerOffset:function(e){e=(e||0)-1;var t=this._getItemsContainerHeight();return e*t},_getItemsContainerHeight:function(){var e=this._toolbar._$toolbarItemsContainer.height()-this._toolbar.element().height();return e},_listOutsideClickHandler:function(e){var t=i(e.target),n=t.closest(this._listOverlay.content()).length>0,o=t.closest(this._toolbar._$toolbarItemsContainer).length>0;n||o||this._toggleMenu(!1,!0)}});e.exports=r},,,,,,,function(e,t,n){var i=n(186),o=n(4);o.dxAccordion=n(338),o.dxContextMenu=n(339),o.dxDataGrid=n(346),o.dxTreeList=n(421),o.dxMenu=n(399),o.dxPivotGrid=n(449),o.dxPivotGridFieldChooser=n(467),i.PivotGridDataSource=n(453),i.XmlaStore=n(468),o.dxScheduler=n(469),o.dxTreeView=n(381)},function(e,t,n){var i=n(9),o=n(69),a=n(76),s=n(53),r=n(11).extend,l=n(12).isPlainObject,c=n(57),d=n(72),u=n(150),h=n(16).when,p=n(167),f=n(116),m="dx-accordion",g="dx-accordion-wrapper",_="dx-accordion-item",v="dx-accordion-item-opened",w="dx-accordion-item-closed",x="dx-accordion-item-title",y="dx-accordion-item-body",b="dxAccordionItemData",C=u.inherit({_activeStateUnit:"."+_,_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var e=this.element();e.addClass(m),this._$container=i("
").addClass(g),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new p(function(e,t){l(t)?(t.title&&e.text(t.title),e.append(f.getImageContainer(t.icon||t.iconSrc))):e.html(String(t))},["title","icon","iconSrc"],this.option("integrationOptions.watchMethod"))},_render:function(){this._deferredItems=[],this.callBase(),this._fireContentReadyAction(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),this._attachItemTitleClickAction()},_renderContent:function(){this._renderContentImpl()},_itemDataKey:function(){return b},_itemClass:function(){return _},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+x)},_itemContents:function(){return this._itemElements().find("."+y)},_getItemData:function(e){return i(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){i(e.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_renderItemContent:function(e){var t=this.callBase(r({},e,{contentClass:x,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")})),n=i.Deferred();this._deferredItems.push(n),this.option("deferRendering")||n.resolve(),n.done(this.callBase.bind(this,r({},e,{contentClass:y,container:i("
").appendTo(t.parent())})))},_attachItemTitleClickAction:function(){var e="."+x,t=d.addNamespace(a.name,this.NAME);this._itemContainer().off(t,e).on(t,e,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemJQueryEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(w),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t,!0)},_updateSelection:function(e,t){this._updateItems(e,t,!1)},_updateItems:function(e,t,n){var o=this._itemElements(),a=this;i.each(e,function(e,t){a._deferredItems[t].resolve();var n=o.eq(t).addClass(v).removeClass(w);a.setAria("hidden",!1,n.find("."+y))}),i.each(t,function(e,t){var n=o.eq(t).removeClass(v);a.setAria("hidden",!0,n.find("."+y))}),a.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(n)}.bind(this)):this._updateItemHeights(n)},_updateItemHeights:function(e){var t=this,n=t._deferredAnimate,o=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),h.apply(i,i.map(this._itemElements(),function(n){return t._updateItemHeight(i(n),o,e)})).done(function(){n&&n.resolveWith(t)})},_updateItemHeight:function(e,t,n){var i=e.children("."+x);o.isAnimating(e)&&o.stop(e);var a=e.outerHeight(),s=e.hasClass(v)?t+i.outerHeight()||e.height("auto").outerHeight():i.outerHeight();return this._animateItem(e,a,s,n,!!t)},_animateItem:function(e,t,n,a,s){var r;return a||t===n?(e.css("height",n),r=i.Deferred().resolve()):r=o.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration")}),r.done(function(){e.hasClass(v)&&!s&&e.css("height",""),e.not("."+v).addClass(w)})},_splitFreeSpace:function(e){return e?e/this.option("selectedItems").length:e},_calculateFreeSpace:function(){var e=this.option("height");if(void 0!==e&&"auto"!==e){var t=this._itemTitles(),n=0;return i.each(t,function(e,t){n+=i(t).outerHeight()}),this.element().height()-n}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_optionChanged:function(e){switch(e.name){case"animationDuration":case"onItemTitleClick":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",e.value?"multiple":"single");break;default:this.callBase(e)}},expandItem:function(e){return this._deferredAnimate=i.Deferred(),this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=i.Deferred(),this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});c("dxAccordion",C),e.exports=C},function(e,t,n){e.exports=n(340)},function(e,t,n){var i=n(9),o=n(152),a=n(57),s=n(14),r=n(12),l=n(26).inArray,c=n(11).extend,d=n(69),u=n(71),h=n(53),p=n(72),f=n(110),m=n(341),g="dx-menu",_=g+"-item",v=_+"-expanded",w="dx-menu-phone-overlay",x=g+"-items-container",y=_+"-wrapper",b="dx-submenu",C="dx-context-menu",k="dx-has-context-menu",I="dx-state-disabled",S="up",D="down",T="left",E="right",A="first",B="last",M=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],R=[S,D,A,B],O="dxcontextmenu",P=m.inherit(function(){var e=function(e){var t=null,n=e.option("showEvent");return s.isObject(n)?null!==n.name&&(t=n.name||O):t=n,t},t=function(e){var t=e.option("showEvent");return s.isObject(t)&&t.delay};return{_getDefaultOptions:function(){return c(this.callBase(),{showEvent:O,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})},_initActions:function(){this._actions={},i.each(M,function(e,t){this._actions[t]=this._createActionByOption(t)||s.noop}.bind(this))},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{animation:!0,selectedItem:!0})},_focusInHandler:s.noop,_itemContainer:function(){return this._overlay?this._overlay.content():i()},_eventBindingTarget:function(){return this._itemContainer()},itemsContainer:function(){return this._overlay?this._overlay.content():void 0},_supportedKeys:function(){var e=function(){var e=this.option("focusedElement");this.hide(),e&&this._isSelectionEnabled()&&this.selectItem(e[0])};return c(this.callBase(),{space:e,esc:this.hide})},_getActiveItem:function(){var e=this._getAvailableItems(),t=e.filter(".dx-state-focused"),n=e.filter(".dx-state-hover"),i=n.closest("."+x);return i.find("."+_).index(t)>=0?t:n.length?n:this.callBase()},_moveFocus:function(e){var t,n=this._getItemsByLocation(e),i=this._getActiveItem(!0),o=this.itemsContainer().find(".dx-state-hover"),a=this.option("focusedElement"),s=!(!a&&!o.length);switch(e){case S:t=s?this._prevItem(n):i,i.is(n.first())&&this._actions.onLeftFirstItem(i);break;case D:t=s?this._nextItem(n):i,i.is(n.last())&&this._actions.onLeftLastItem(i);break;case E:t=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(n,e);break;case T:t=this.option("rtlEnabled")?this._expandSubmenuHandler(n,e):this._hideSubmenuHandler();break;case A:t=n.first();break;case B:t=n.last();break;default:return this.callBase(e)}0!==t.length&&this.option("focusedElement",t)},_getItemsByLocation:function(e){var t,n=this._getActiveItem(!0);return l(e,R)>=0&&(t=n.closest("."+x).children().children()),t=this._getAvailableItems(t)},_getAriaTarget:function(){return this.element()},_refreshActiveDescendant:function(){if(this._overlay){var e=this.getFocusedItemId();this.setAria("activedescendant","",this._overlay.content()),this.setAria("activedescendant",e,this._overlay.content())}},_hideSubmenuHandler:function(){var e=this._getActiveItem(!0),t=e.parents("."+v).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest("."+b)),t):(this._actions.onCloseRootSubmenu(e),e)},_expandSubmenuHandler:function(e,t){var n=this._getActiveItem(!0),i=this._getItemData(n),o=this._dataAdapter.getNodeByItem(i),a=this._hasSubmenu(o),s=n.children("."+b);return a&&!n.hasClass(I)?(s.length&&"hidden"!==s.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t))):(this._actions.onExpandLastSubmenu(n),n)},_clean:function(){this._overlay&&(this._overlay.element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),this.callBase()},_render:function(){this.element().addClass(k),this.callBase(),this.setAria("role","menu")},_renderContentImpl:function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()},_renderContextMenuOverlay:function(){if(!this._overlay){var e,t=this._getOverlayOptions(),n=i("
");this._overlay=this._createComponent(n.appendTo(this._$element),f,t),e=this._overlay.content(),e.addClass(C),this._addCustomCssClass(e),this._addPlatformDependentClass(e),this._attachContextMenuEvent()}},_itemContextMenuHandler:function(e){this.callBase(e),e.stopPropagation()},_addPlatformDependentClass:function(e){h.current().phone&&e.addClass(w)},_detachShowContextMenuEvents:function(t){var n,o=e(this);o&&(n=p.addNamespace(o,this.NAME),this._showContextMenuEventHandler?i(document).off(n,t,this._showContextMenuEventHandler):i(t).off(n))},_attachShowContextMenuEvents:function(){var n,o,a,r,l=this,c=l._getTarget(),d=e(l);d&&(a=p.addNamespace(d,l.NAME),r=l._createAction(function(e){n=t(l),n?setTimeout(function(){l._show(e.jQueryEvent)},n):l._show(e.jQueryEvent)}.bind(l),{validatingTargetName:"target"}),o=function(e){r({jQueryEvent:e,target:i(e.currentTarget)})},r=l._createAction(r),c.jquery||c.nodeType||s.isWindow(c)?(l._showContextMenuEventHandler=void 0,i(c).on(a,o)):(l._showContextMenuEventHandler=o,i(document).on(a,c,l._showContextMenuEventHandler)))},_hoverEndHandler:function(e){this.callBase(e),e.stopPropagation()},_renderDimensions:s.noop,_renderContainer:function(e,t){var n,o=t||this._itemContainer();return e=i("
"),e.appendTo(o).addClass(b).css("visibility",t?"hidden":"visible"),n=this.callBase(e),t?n:this.option("width")?n.css("min-width",this.option("width")):this.option("height")?n.css("min-height",this.option("height")):n},_renderSubmenuItems:function(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:t,itemData:e.internalFields.item,submenuElement:t.children("."+b)})},_getOverlayOptions:function(){var e=this.option("position"),t=this.option("animation"),n={focusStateEnabled:this.option("focusStateEnabled"),animation:t,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),closeOnTargetScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)};return n},_overlayShownActionHandler:function(e){this._actions.onShown(e)},_overlayHidingActionHandler:function(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionSilent("visible",!1))},_overlayHiddenActionHandler:function(e){this._actions.onHidden(e)},_closeOnOutsideClickHandler:function(e){var t,n,i,o,a,r,l=this.option("closeOnOutsideClick");return s.isFunction(l)?l(e):!!l&&(e.target===document||(n=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),t=this._searchActiveItem(e.target),o=this.element().parents("."+_),a=t[0]===o[0]&&t.length&&o.length,r=this._isIncludeOverlay(n,i)&&t.length,!r&&!a||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(t),!1)))},_getActiveItemsContainer:function(e){return i(e).closest("."+x)},_getItemsContainers:function(){return this._overlay._$content.find("."+x)},_searchActiveItem:function(e){return i(e).closest("."+_).eq(0)},_isIncludeOverlay:function(e,t){var n=!1;return i.each(t,function(t,i){e.is(i)&&!n&&(n=!0)}),n},_hideAllShownChildSubmenus:function(e){var t,n=this,o=e.find("."+b),a=c([],this._shownSubmenus);o.length>0&&i.each(a,function(i,o){t=n._searchActiveItem(o.context).parent(),t.parent().is(e.parent().parent())&&!t.is(e.parent())&&n._hideSubmenu(o)})},_showSubmenu:function(e){var t=this._dataAdapter.getNodeByItem(this._getItemData(e));if(this._hideSubmenusOnSameLevel(e),this._hasSubmenu(t)){var n=e.children("."+b),i=n.length;this.callBase(e),i||this._renderSubmenuItems(t,e),this._isSubmenuVisible(n)||this._drawSubmenu(e)}},_hideSubmenusOnSameLevel:function(e){var t=e.parent("."+y).siblings().find("."+v);t.length&&(t.removeClass(v),this._hideSubmenu(t.find("."+b)))},_hideSubmenuGroup:function(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)},_isSubmenuVisible:function(e){return"visible"===e.css("visibility")},_drawSubmenu:function(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children("."+b),i=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&(s.isDefined(this._shownSubmenus)||(this._shownSubmenus=[]),l(n,this._shownSubmenus)&&this._shownSubmenus.push(n),t&&d.stop(n),u.setup(n,i),t&&(r.isPlainObject(t.to)&&(t.to.position=i),this._animate(n,t)),n.css("visibility","visible"))},_animate:function(e,t){d.animate(e,t)},_getSubmenuPosition:function(e){var t=this.option("submenuDirection").toLowerCase(),n=e.parent("."+y),i={collision:"flip",of:n,offset:{h:0,v:-1}};switch(t){case"left":i.at="left top",i.my="right top";break;case"right":i.at="right top",i.my="left top";break;default:this.option("rtlEnabled")?(i.at="left top",i.my="right top"):(i.at="right top",i.my="left top")}return i},_updateSubmenuVisibilityOnClick:function(e){if(e.args.length){var t=e.args[0].itemElement,n=e.args[0].itemData,o=this._dataAdapter.getNodeByItem(n);if(o){var a=t.find("."+b),s=this._hasSubmenu(o)&&!a.length;if(s&&(this._renderSubmenuItems(o,t),a=t.find("."+b)),t.context!==a.context||"visible"!==a.css("visibility")){var r=n&&n.closeMenuOnClick===!1;if(n&&!n.disabled&&!r)if(this._updateSelectedItemOnClick(e),0===a.length){var l=i(t.parents("."+b)[0]);this._hideSubmenu(l),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&(this._shownSubmenus[0].is(a)||1===this._shownSubmenus[0].has(a).length?this._hideSubmenu(a):this._hideAllShownSubmenus()),this._showSubmenu(t)}}}},_hideSubmenu:function(e){var t=this,n=c([],t._shownSubmenus);i.each(n,function(n,i){(e.is(i)||e.has(i).length)&&(i.parent().removeClass(v),t._hideSubmenuCore(i))})},_hideSubmenuCore:function(e){var t=l(e,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")},_stopAnimate:function(e){d.stop(e,!0)},_hideAllShownSubmenus:function(){var e=this,t=c([],e._shownSubmenus),n=this._overlay.content().find("."+v);n.removeClass(v),i.each(t,function(t,n){e._hideSubmenuCore(n)})},_visibilityChanged:function(e){e&&this._renderContentImpl()},_optionChanged:function(e){if(this._cancelOptionChange!==e.name){if(l(e.name,M)>-1)return void this._initActions();switch(e.name){case"visible":this._toggleVisibility(e.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":e.previousValue&&this._detachShowContextMenuEvents(e.previousValue),this.option("position").of=null,this._invalidate();break;case"closeOnOutsideClick":break;default:this.callBase(e)}}},_toggleVisibility:function(e){e?this._show():this._hide()},_show:function(e){var t={jQEvent:e},n=i.Deferred().reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var a=this._positionContextMenu(e);if(a){this._overlay||(this._renderContextMenuOverlay(),this._overlay.content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionSilent("visible",!0),this._overlay.option("position",a),n=this._overlay.show();var s="dx-"+new o;this._overlay.content().attr({id:s,role:"menu"}),this.setAria("owns",s)}return n},_getTarget:function(){return this.option("target")||this.option("position").of||i(document)},_getContextMenuPosition:function(){return c({},this.option("position"),{of:this._getTarget()})},_positionContextMenu:function(e){var t,n=this._getContextMenuPosition(),i=this._isInitialOptionValue("position"),o=this._createActionByOption("onPositioning",t);return e&&e.preventDefault&&i&&(n.of=e),t={position:n,jQueryEvent:e},o(t),t.cancel?n=null:t.jQueryEvent&&(t.jQueryEvent.cancel=!0,e.preventDefault()),n},_hide:function(){var e;return this._overlay&&(this._overlay.content().removeAttr("id"),e=this._overlay.hide(),this._setOptionSilent("visible",!1)),this.setAria("owns",void 0),e||i.Deferred().reject().promise()},toggle:function(e){var t=this.option("visible");return e=void 0===e?!t:e,this._toggleVisibility(e)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}}}());a("dxContextMenu",P),e.exports=P},function(e,t,n){var i=n(9),o=n(14),a=n(12),s=n(11).extend,r=n(203),l=n(342),c=n(345),d=n(53),u=n(144),h="dx-menu",p=h+"-no-icons",f="dx-menu-base",m=h+"-item",g=m+"-selected",_=m+"-wrapper",v=h+"-items-container",w=m+"-expanded",x=h+"-separator",y=h+"-last-group-item",b=m+"-has-text",C=m+"-has-icon",k=m+"-has-submenu",I=m+"-popout",S=I+"-container",D=m+"-text",T="single",E={show:50,hide:300},A=l.inherit({_getDefaultOptions:function(){return s(this.callBase(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},_setDeprecatedOptions:function(){this.callBase(),s(this._deprecatedOptions,{selectionByClick:{since:"16.1",alias:"selectByClick"}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return/android5/.test(u.current())},options:{useInkRipple:!0}}])},_activeStateUnit:"."+m,_itemDataKey:function(){return"dxMenuItemDataKey"},_itemClass:function(){return m},_setAriaSelected:o.noop,_selectedItemClass:function(){return g},_widgetClass:function(){return f},_focusTarget:function(){return this._itemContainer()},_supportedKeys:function(){var e=function(){var e=this.option("focusedElement");e&&this._isSelectionEnabled()&&this.selectItem(e[0])};return s(this.callBase(),{space:e,pageUp:o.noop,pageDown:o.noop})},_isSelectionEnabled:function(){return this.option("selectionMode")===T},_init:function(){this.callBase(),this._renderSelectedItem(),this._initActions()},_getTextContainer:function(e){var t=e.text,n=i("").addClass(D),o=a.isPlainObject(e)?t:String(e);return t&&n.html(o)},_getPopoutContainer:function(e){var t,n=e.items;if(n&&n.length){var o=i("
").addClass(I);t=i("").addClass(S).append(o)}return t},_getDataAdapterOptions:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},_selectByItem:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},_renderSelectedItem:function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(!t)return void this._selectByItem(n);var i=this._dataAdapter.getNodeByKey(t);if(i.selectable!==!1)return n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item)},_initActions:o.noop,_render:function(){this.callBase(),this._addCustomCssClass(this.element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=r.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)}},_getShowSubmenuMode:function(){var e="onClick",t=this.option("showSubmenuMode");return t=o.isObject(t)?t.name:t,this._isDesktopDevice()?t:e},_initSelectedItems:o.noop,_isDesktopDevice:function(){return"desktop"===d.real().deviceType},_initEditStrategy:function(){var e=c;this._editStrategy=new e(this)},_addCustomCssClass:function(e){e.addClass(this.option("cssClass"))},_itemWrapperSelector:function(){return"."+_},_hoverStartHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e);n&&!t._isItemDisabled(n)&&(e.stopPropagation(),"onHover"===t._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(t._showSubmenu.bind(t,n),t._getSubmenuDelay("show"))))},_getAvailableItems:function(e){return this.callBase(e).filter(function(){return"hidden"!==i(this).css("visibility")})},_isItemDisabled:function(e){return this._disabledGetter(e.data(this._itemDataKey()))},_showSubmenu:function(e){this._addExpandedClass(e)},_addExpandedClass:function(e){e.addClass(w)},_getSubmenuDelay:function(e){var t=this.option("showSubmenuMode").delay;return o.isDefined(t)?o.isObject(t)?t[e]:t:E[e]},_getItemElementByEventArgs:function(e){var t=i(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if(t=t.parent(),t.hasClass("dx-submenu"))return null;return t},_hoverEndHandler:function(){clearTimeout(this._showSubmenusTimeout)},_hasSubmenu:function(e){return e.internalFields.childrenKeys.length},_renderContentImpl:function(){this._renderItems(this._dataAdapter.getRootNodes())},_renderItems:function(e,t){var n,o=this;e.length&&(this.hasIcons=!1,n=this._renderContainer(this.element(),t),i.each(e,function(e,t){o._renderItem(e,t,n)}),this.hasIcons||n.addClass(p))},_renderContainer:function(e){return i("
    ").appendTo(e).addClass(v)},_createDOMElement:function(e){var t=i("
  • ").appendTo(e).addClass(_);return t},_renderItem:function(e,t,n){var i,o=this.option("items");if(this._renderSeparator(t,e,n),t.internalFields.item.visible!==!1){var a=this._createDOMElement(n);o[e+1]&&o[e+1].beginGroup&&a.addClass(y),i=this.callBase(e,t.internalFields.item,a),t.internalFields.item===this.option("selectedItem")&&i.addClass(g),this._addContentClasses(t,i),i.attr("tabindex",-1),this._hasSubmenu(t)&&this.setAria("haspopup","true",i)}},_addContentClasses:function(e,t){this._displayGetter(e)&&t.addClass(b),(e.icon||e.iconSrc)&&(t.addClass(C),this.hasIcons=!0),this._hasSubmenu(e)&&t.addClass(k)},_postprocessRenderItem:function(e){var t,n=i(e.itemElement),o=this._dataAdapter.getSelectedNodesKeys();return o.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)?(t=this._dataAdapter.getNodeByItem(e.itemData),void(t.internalFields.key===o[0]?(n.addClass(this._selectedItemClass()),this._setAriaSelected(n,"true")):this._setAriaSelected(n,"false"))):void this._setAriaSelected(n,"false")},_isItemSelectable:function(e){return e.selectable!==!1},_renderSeparator:function(e,t,n){e.beginGroup&&t>0&&(this._needSeparate=!0),e.visible!==!1&&this._needSeparate&&(t>0&&i("
  • ").appendTo(n).addClass(x),this._needSeparate=!1)},_itemClickHandler:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemJQueryEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},_updateSubmenuVisibilityOnClick:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},_updateSelectedItemOnClick:function(e){var t,n=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(n.itemData)){t=this._dataAdapter.getSelectedNodesKeys();var i=t.length&&this._dataAdapter.getNodeByKey(t[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===n.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(n.itemData)}},_isItemSelectionAllowed:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},_isContainerEmpty:function(){return this._itemContainer().is(":empty")},_syncSelectionOptions:o.noop,_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"showSubmenuMode":break;case"selectedItem":var t=e.value,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(n.selectable===!1)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_toggleItemSelection:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&i(n).toggleClass(g), this._dataAdapter.toggleSelection(e.internalFields.key,t)},_getElementByItem:function(e){var t,n=this;return i.each(this._itemElements(),function(o,a){return i(a).data(n._itemDataKey())!==e||(t=a,!1)}),t},_updateSelectedItems:function(e,t){(e||t)&&(this._updateSelection(t,e),this._fireSelectionChangeEvent(t,e))},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},selectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0],o=this.option("selectedItem");n.internalFields.key!==i&&(i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems(o,t),this._setOptionSilent("selectedItem",t))},unselectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionSilent("selectedItem",null))}});e.exports=A},function(e,t,n){var i=n(9),o=n(14),a=n(50),s=n(11).extend,r=n(53),l=n(116),c=n(343),d=n(150),u=n(167),h=o.isFunction,p=o.noop,f="dx-state-disabled",m=d.inherit({_getDefaultOptions:function(){return s(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new c(s({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:p,_initDynamicTemplates:function(){this._defaultTemplates.item=new u(function(e,t){e.html(t.html).append(this._getIconContainer(t)).append(this._getTextContainer(t)).append(this._getPopoutContainer(t))}.bind(this),["text","html","items","icon","iconSrc"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})},_getIconContainer:function(e){var t=e.icon||e.iconSrc;return t?l.getImageContainer(t):void 0},_getTextContainer:function(e){return i("").text(e.text)},_getPopoutContainer:p,_initAccessors:function(){var e=this;i.each(this._getAccessors(),function(t,n){e._compileAccessor(n)})},_getAccessors:function(){return["key","display","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return i.each(e.internalFields.childrenKeys,function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)}),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?h(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=a.compileGetter(i),void(this[n]=a.compileSetter(i))):(this[t]=p,void(this[n]=p))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return i.each(this._getAccessors(),function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",s="parentId"===i?"parentKey":i;t.getters[s]=e[o],t.setters[s]=e[a]}),t},_render:function(){this.callBase(),this._focusTarget().addClass(this._widgetClass())},_widgetClass:p,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(f,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});e.exports=m},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=n(11).extend,r=n(22),l=n(26).inArray,c=n(160),d=n(344),u="expanded",h="selected",p="disabled",f=o.inherit({ctor:function(e){this.options={},s(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,t){this.options[e]=t,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",dataConverter:new d,onNodeChanged:a.noop}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(h)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(u)},_updateNodesKeysArray:function(e){var t=this,n=[];return i.each(this._dataStructure,function(i,o){t._isNodeVisible(o)&&o.internalFields[e]&&(e===u||t.options.multipleSelection?n.push(o.internalFields.key):(n.length&&t.toggleSelection(n[0],!1,!0),n=[o.internalFields.key]))}),n},_isNodeVisible:function(e){return e.internalFields.item.visible!==!1},_getByKey:function(e,t){return e===this._dataStructure?this.options.dataConverter._getByKey(t):this.options.dataConverter.getByKey(e,t)},_setChildrenSelection:function(){var e=this;i.each(this._dataStructure,function(t,n){if(n.internalFields.childrenKeys.length){var i=n.internalFields.selected;i===!0&&e._toggleChildrenSelection(n,i)}})},_setParentSelection:function(){var e=this;i.each(this._dataStructure,function(t,n){var i=e.options.dataConverter.getParentNode(n);i&&n.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(n,function(t){var n=e._calculateSelectedState(t);e._setFieldState(t,h,n)})})},_setParentExpansion:function(){var e=this;i.each(this._dataStructure,function(t,n){n.internalFields.expanded&&e._updateOneBranch(n.internalFields.key)})},_updateOneBranch:function(e){var t=this,n=this.getNodeByKey(e);t._iterateParents(n,function(e){t._setFieldState(e,u,!0)})},_iterateChildren:function(e,t,n){var o=this;i.each(e.internalFields.childrenKeys,function(e,i){var s=o.getNodeByKey(i);a.isFunction(n)&&n(s),s.internalFields.childrenKeys.length&&t&&o._iterateChildren(s,t,n)})},_iterateParents:function(e,t){if(e.internalFields.parentKey!==this.options.rootValue){var n=this.options.dataConverter.getParentNode(e);n&&(a.isFunction(t)&&t(n),n.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(n,t))}},_calculateSelectedState:function(e){for(var t=e.internalFields.childrenKeys.length,n=0,i=0,o=!1,a=0;a<=t-1;a++){var s=this.getNodeByKey(e.internalFields.childrenKeys[a]),r=s.internalFields.item.visible===!1,l=s.internalFields.selected;r?i++:l?n++:void 0===l&&(n+=.5)}return n&&(o=n===t-i||void 0),o},_toggleChildrenSelection:function(e,t){var n=this;this._iterateChildren(e,!0,function(e){n._isNodeVisible(e)&&n._setFieldState(e,h,t)})},_setFieldState:function(e,t,n){e.internalFields[t]!==n&&(e.internalFields[t]=n,e.internalFields.publicNode&&(e.internalFields.publicNode[t]=n),this.options.dataAccessors.setters[t](e.internalFields.item,n),this.options.onNodeChanged(e))},_markChildren:function(e){var t=this;i.each(e,function(e,n){var i=t.getIndexByKey(n),o=t.getNodeByKey(n);t._dataStructure[i]=0,o.internalFields.childrenKeys.length&&t._markChildren(o.internalFields.childrenKeys)})},_removeNode:function(e){var t=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(t.internalFields.childrenKeys);var n=this,o=0,a=s([],this._dataStructure);i.each(a,function(e,t){t||(n._dataStructure.splice(e-o,1),o++)})},_addNode:function(e){var t=this.options.dataConverter,n=t._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(n),this._initialDataStructure=this._initialDataStructure.concat(n),t._dataStructure=t._dataStructure.concat(n)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var t=null;return i.each(this._dataStructure,function(n,i){if(i.internalFields.item===e)return t=i,!1}),t},getNodesByItems:function(e){var t=this,n=[];return i.each(e,function(e,i){var o=t.getNodeByItem(i);o&&n.push(o)}),n},getNodeByKey:function(e){return this._getByKey(this._dataStructure,e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return c(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,t,n){var i=this._getByKey(n?this._initialDataStructure:this._dataStructure,e);this._setFieldState(i,h,t),this.options.recursiveSelection&&!n&&(t?this._setChildrenSelection():this._toggleChildrenSelection(i,t),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(h)},toggleNodeDisabledState:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,p,t)},toggleSelectAll:function(e){if(a.isDefined(e)){var t=this;i.each(this._dataStructure,function(n,i){t._isNodeVisible(i)&&(t._setFieldState(i,h,e),t._selectedNodesKeys=t._updateNodesKeysArray(h))})}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,u,t),t&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(u)},_filterDataStructure:function(e){for(var t,n=[],i=this._initialDataStructure,o=a.escapeRegExp(e),s=new RegExp(o,"i"),r=0,l=i.length;r<l;r++)t=this.options.dataAccessors.getters.display(i[r]),s.test(t)&&n.push(i[r]);return n},search:function(e){function t(e,i){for(var o=e.length;i<o;){var s=e[i];if(s.internalFields.parentKey!==n.options.rootValue){var c=a.getParentNode(s);c?(c.internalFields.expanded||n._setFieldState(c,u,!0),l(c,e)>-1?i++:(e.splice(i,0,c),t(e,i))):(r.log("W1007",s.internalFields.parentKey,s.internalFields.key),i++)}else i++}}var n=this,o=this._filterDataStructure(e),a=this.options.dataConverter;return t(o,0),a._indexByKey={},i.each(o,function(e,t){t.internalFields.childrenKeys=[],a._indexByKey[t.internalFields.key]=e}),a._dataStructure=o,a.setChildrenKeys(),a._dataStructure}});e.exports=f},function(e,t,n){var i=n(9),o=n(25),a=n(11).extend,s=n(22),r=n(14),l=o.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,t){var n=this;i.each(e,function(e,i){var o=r.isDefined(t)?t:n._getParentId(i),a=n._convertItemToNode(i,o);n._dataStructure.push(a),n._checkForDuplicateId(a.internalFields.key),n._indexByKey[a.internalFields.key]=n._dataStructure.length-1,n._itemHasChildren(i)&&n._convertItemsToNodes(n._dataAccessors.getters.items(i),a.internalFields.key)})},_checkForDuplicateId:function(e){if(r.isDefined(this._indexByKey[e]))throw s.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){var t=this._dataAccessors.getters.items(e);return t&&t.length},_getUniqueKey:function(e){var t=this._dataAccessors.getters.key,n=t(e),i=t&&(n||0===n)&&r.isPrimitive(n);return i?n:this.getItemsCount()},_convertItemToNode:function(e,t){this._itemsCount++,e.visible!==!1&&this._visibleItemsCount++;var n=this,i={internalFields:{disabled:n._dataAccessors.getters.disabled(e)||!1,expanded:n._dataAccessors.getters.expanded(e)||!1,selected:n._dataAccessors.getters.selected(e)||!1,key:n._getUniqueKey(e),parentKey:r.isDefined(t)?t:n._rootValue,item:n._makeObjectFromPrimitive(e),childrenKeys:[]}};return a(i,e),delete i.items,i},setChildrenKeys:function(){var e=this;i.each(this._dataStructure,function(t,n){if(n.internalFields.parentKey!==e._rootValue){var i=e.getParentNode(n);i&&i.internalFields.childrenKeys.push(n.internalFields.key)}})},_makeObjectFromPrimitive:function(e){if(r.isPrimitive(e)){var t=e;e={},this._dataAccessors.setters.key(e,t)}return e},_convertToPublicNode:function(e,t){if(!e)return null;var n={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:t||null,itemData:e.internalFields.item,children:[],items:[]};return n.parent&&(n.parent.children.push(n),n.parent.items.push(n)),n},convertToPublicNodes:function(e,t){if(!e.length)return[];var n=this,o=[];return i.each(e,function(e,i){i=r.isPrimitive(i)?n._getByKey(i):i;var a=n._convertToPublicNode(i,t);a.children=n.convertToPublicNodes(i.internalFields.childrenKeys,a),o.push(a),i.internalFields.publicNode=a}),o},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function(e,t){var n=null,o=this,a=function(e,t){return i.each(e,function(e,i){var s=i.internalFields&&i.internalFields.key||o._dataAccessors.getters.key(i),r=o._dataAccessors.getters.items(i);return s===t?(n=i,!1):void(r&&a(r,t))}),n};return a(e,t)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},i.each(this._dataStructure,function(t,n){e._checkForDuplicateId(n.internalFields.key),e._indexByKey[n.internalFields.key]=t})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},i.each(this._dataStructure,function(e,t){t.internalFields.childrenKeys=[]})},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,t,n){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=t,this._dataType=n,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}});e.exports=l},function(e,t,n){var i=n(9),o=n(168),a=o.inherit({_getPlainItems:function(){return i.map(this._collectionWidget.option("items"),function e(t){return t.items?[t].concat(i.map(t.items,e)):t})},_stringifyItem:function(e){var t=this;return JSON.stringify(e,function(e,n){return"template"===e?t._getTemplateString(n):n})},_getTemplateString:function(e){var t;return t="object"==typeof e?i(e).text():e.toString()}});e.exports=a},function(e,t,n){e.exports=n(347)},function(e,t,n){var i=n(348);e.exports=i,n(375),n(377),n(379),n(382),n(386),n(388),n(392),n(394),n(397),n(402),n(405),n(407),n(409),n(411),n(413),n(415),n(417),n(419)},function(e,t,n){var i=n(9),o=n(57),a=n(14),s=n(11).extend,r=n(13).logger,l=n(23),c=n(96),d=n(349),u=d.callModuleItemsMethod,h=".dx-row",p="Specifying grid templates with the name of a jQuery selector is now deprecated. Instead, use the jQuery object that references this selector.";n(352),n(356),n(358),n(362),n(365),n(367),n(369),n(371),n(373),d.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var f=c.inherit({_activeStateUnit:h,_getDefaultOptions:function(){var e=this,t=e.callBase();return i.each(d.modules,function(){a.isFunction(this.defaultOptions)&&s(!0,t,this.defaultOptions())}),t},_setDeprecatedOptions:function(){this.callBase(),s(this._deprecatedOptions,{"editing.editMode":{since:"15.2",alias:"editing.mode"},"editing.editEnabled":{since:"15.2",alias:"editing.allowUpdating"},"editing.insertEnabled":{since:"15.2",alias:"editing.allowAdding"},"editing.removeEnabled":{since:"15.2",alias:"editing.allowDeleting"},"grouping.groupContinuedMessage":{since:"16.1",alias:"grouping.texts.groupContinuedMessage"},"grouping.groupContinuesMessage":{since:"16.1",alias:"grouping.texts.groupContinuesMessage"},"export.texts.excelFormat":{since:"16.1",alias:"export.texts.exportAll"},"export.texts.exportToExcel":{since:"16.1",alias:"export.texts.exportAll"},"export.texts.selectedRows":{since:"16.1",alias:"export.texts.exportSelectedRows"},"filterRow.operationDescriptions.>":{since:"16.2",alias:"filterRow.operationDescriptions.greaterThan"},"filterRow.operationDescriptions.<":{since:"16.2",alias:"filterRow.operationDescriptions.lessThan"},"filterRow.operationDescriptions.=":{since:"16.2",alias:"filterRow.operationDescriptions.equal"},"filterRow.operationDescriptions.<>":{since:"16.2",alias:"filterRow.operationDescriptions.notEqual"},"filterRow.operationDescriptions.<=":{since:"16.2",alias:"filterRow.operationDescriptions.lessThanOrEqual"},"filterRow.operationDescriptions.>=":{since:"16.2",alias:"filterRow.operationDescriptions.greaterThanOrEqual"},"filterRow.operationDescriptions.startswith":{since:"16.2",alias:"filterRow.operationDescriptions.startsWith"},"filterRow.operationDescriptions.notcontains":{since:"16.2",alias:"filterRow.operationDescriptions.notContains"},"filterRow.operationDescriptions.endswith":{since:"16.2",alias:"filterRow.operationDescriptions.endsWith"}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return l.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){var e=this;e.callBase(),d.processModules(e,d),u(e,"init")},_clean:a.noop,_optionChanged:function(e){var t=this;u(t,"optionChanged",[e]),e.handled||t.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_renderContentImpl:function(){this.getView("gridView").render(this.element())},_renderContent:function(){var e=this;a.deferRender(function(){e._renderContentImpl()})},_getTemplate:function(e){var t=e;return a.isString(t)&&"#"===t[0]&&(t=i(e),r.warn(p)),this.callBase(t)},_dispose:function(){var e=this;e.callBase(),u(e,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){var e=this;e.callBase(),u(e,"beginUpdate")},endUpdate:function(){var e=this;u(e,"endUpdate"),e.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),a.isDefined(e)&&this.getController("keyboardNavigation").focus(e)}});f.registerModule=d.registerModule.bind(d),o("dxDataGrid",f),e.exports=f},function(e,t,n){var i=n(11).extend,o=n(350),a=n(351);i(t,a,o,{modules:[]})},function(e,t,n){var i=n(9),o=n(14),a=n(18),s=n(11).extend,r=n(26).inArray,l=n(50).toComparable,c=n(247),d=n(138),u=n(67),h="nodata",p={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()}},f=["year","month","day"];e.exports=function(){var t=function(){var e,t,n=arguments[1],i=this.calculateCellValue(n);return o.isDefined(i)?"date"===this.dataType?(t=arguments[0],p[t](i)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(i)/e)*e):void 0:null},n=function(e){return o.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:i.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},m=function(t,i,o){var a,s,r=this,l=_(r,o),c=n(t),d="headerFilter"===o&&e.exports.getGroupInterval(r)[c.length-1];switch(d){case"year":a=new Date(c[0],0,1),s=new Date(c[0]+1,0,1);break;case"month":a=new Date(c[0],c[1],1),s=new Date(c[0],c[1]+1,1);break;case"quarter":a=new Date(c[0],3*c[1],1),s=new Date(c[0],3*c[1]+3,1);break;case"hour":a=new Date(c[0],c[1],c[2],c[3]),s=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]),s=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]),s=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]),s=new Date(c[0],c[1],c[2]+1)}switch(i){case"<":return[l,"<",a];case"<=":return[l,"<",s];case">":return[l,">=",s];case">=":return[l,">=",a];case"<>":return[[l,"<",a],"or",[l,">=",s]];default:return[[l,">=",a],"and",[l,"<",s]]}},g=function(t,n,i){var a,s,r,l=this,c=_(l,i),d=(""+t).split("/"),u=Number(d[d.length-1]),h="exclude"===l.filterType,p=e.exports.getGroupInterval(l);return"headerFilter"===i&&p&&o.isDefined(t)?(a=p[d.length-1],s=[c,h?"<":">=",u],r=[c,h?">=":"<",u+a],[s,h?"or":"and",r]):[c,n||"=",t]},_=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},v=function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},w=function(e){var t,n,i,a=this,s=a.dataField;if(Array.isArray(e)&&o.isDefined(e[0])&&o.isDefined(e[1]))return n=[s,">=",e[0]],i=[s,"<=",e[1]],"date"===a.dataType&&v(e[1])&&(t=new Date(e[1].getTime()),t.setDate(e[1].getDate()+1),i=[s,"<",t]),[n,"and",i]},x=function(e,t){return o.isFunction(e)&&o.isFunction(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback:e===t};return{renderNoDataText:function(e){var t=this;if(e=e||this.element()){var n=t.addWidgetPrefix(h),a=e.find("."+n).last(),s=this._dataController.isEmpty(),r=this._dataController.isLoading(),l=this.option("rtlEnabled");a.length||(a=i("").addClass(n).appendTo(e)),s&&!r?(a.removeClass("dx-hidden").text(t._getNoDataText()),o.deferUpdate(function(){var e=a.height(),t=a.width();o.deferRender(function(){a.css({marginTop:-Math.floor(e/2),marginRight:l?-Math.floor(t/2):0,marginLeft:l?0:-Math.floor(t/2)})})})):a.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var o,a=this;a._loadPanel&&a._loadPanel.element().remove(),o=a.option("loadPanel"),o&&("auto"===o.enabled?!n:o.enabled)?(o=s({shading:!1,message:o.text,position:{of:e},container:e},o),a._loadPanel=a._createComponent(i("
    ").appendTo(t),c,o)):a._loadPanel=null},getIndexByKey:function(e,t,n){var i,a=-1;if(Array.isArray(t)){n=arguments.length<=2?"key":n;for(var s=0;s<t.length;s++)if(i=o.isDefined(n)?t[s][n]:t[s],o.equalByValue(e,i)){a=s;break}}return a},combineFilters:function(e,t){var n,i=[];for(t=t||"and",n=0;n<e.length;n++)e[n]&&(i.length&&i.push(t),i.push(e[n]));if(1===i.length&&(i=i[0]),i.length)return i},checkChanges:function(e,t){var n,i=0;for(n=0;n<t.length;n++)e[t[n]]&&i++;return e.length&&e.length===i},equalFilterParameters:function(t,n){var i;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(!e.exports.equalFilterParameters(t[i],n[i]))return!1;return!0}return o.isFunction(t)&&t.columnIndex>=0&&o.isFunction(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex:l(t)==l(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=u.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},getFormatOptionsByColumn:function(e,t){return{format:e.format,precision:e.precision,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){var i,o,a="(";for(i=0;i<t.length;i++)o=t[i],a+=(i>0?", ":"")+e.exports.getSummaryText(o,n);return a+=")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,precision:e.precision,getDisplayFormat:function(t){return n?a.format(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){e=e||[];var t,n;for(t=d.normalizeSortingInfo(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},getFormatByDataType:function(e){switch(e){case"date":return"shortDate"}},defaultCalculateFilterExpression:function(e,t,n){var i=this,a=_(i,n),s=i.calculateDisplayValue&&"search"===n,r=s&&i.lookup&&i.lookup.dataType||i.dataType,l=null;if("headerFilter"===n&&null===e)l=[a,t||"=",null],"string"===r&&(l=[l,"="===t?"or":"and",[a,t||"=",""]]);else if("string"!==r||i.lookup&&!s){if("between"===t)return w.apply(i,arguments);if("date"===r&&o.isDefined(e))return m.apply(i,arguments);if("number"===r)return g.apply(i,arguments);"object"!==r&&(l=[a,t||"=",e])}else l=[a,t||"contains",e];return l},getHeaderFilterGroupParameters:function(e,n){var o=[],a=e.dataField||e.name,s=this.getGroupInterval(e);return s?(i.each(s,function(i,r){o.push(n?{selector:a,groupInterval:r,isExpanded:i<s.length-1}:t.bind(e,r))}),o):(n?o=[{selector:a,isExpanded:!1}]:(o=function(t){var n=e.calculateCellValue(t);return void 0!==n&&""!==n||(n=null),n},e.sortingMethod&&(o=[{selector:o,compare:e.sortingMethod.bind(e)}])),o)},getGroupInterval:function(e){var t,n=[],i=["year","month","day","hour","minute","second"],a=e.headerFilter&&e.headerFilter.groupInterval,s="quarter"===a?"month":a;return"date"===e.dataType?(n=f,t=r(s,i),t>=0?(n=i.slice(0,t),n.push(a),n):n):o.isDefined(a)?Array.isArray(a)?a:[a]:void 0},equalSortParameters:function(t,n,i){var o;if(t=e.exports.normalizeSortingInfo(t),n=e.exports.normalizeSortingInfo(n),Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(o=0;o<t.length;o++)if(!x(t[o].selector,n[o].selector)||t[o].desc!==n[o].desc||t[o].groupInterval!==n[o].groupInterval||!i&&Boolean(t[o].isExpanded)!==Boolean(n[o].isExpanded))return!1;return!0}return(!t||!t.length)==(!n||!n.length)},getPointsByColumns:function(e,t,n,i){var o,a,s,r,l,c,d=e.length,u=!1,h=i||0,p=[];for(a=0;a<=d;a++)a<d&&(s=e.eq(a),r=s.offset(),c="rtl"===s.css("direction")),o={index:h,x:r?r.left+(!n&&c^a===d?s.outerWidth():0):0,y:r?r.top+(n&&a===d?s.outerHeight():0):0,columnIndex:h},!n&&a>0&&(l=e.eq(a-1).offset(),l.top<o.y&&(o.y=l.top)),t&&(u=t(o)),u||p.push(o),h++;return p}}}()},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=n(26).inArray,r=n(22),l=n(90),c="dxDataGrid",d=function(e){e=e||{};var t,n,i=[],o=function(o,a){t=!0;var s=n;for(n=0;n<i.length&&(!i[n]||i[n].apply(o,a)!==!1||!e.stopOnFalse);n++);n=s,t=!1},a={add:function(e){return"function"!=typeof e||a.has(e)||i.push(e),this},has:function(e){return e?s(e,i)>-1:!!i.length},remove:function(e){var o=s(e,i);return o>-1&&(i.splice(o,1),t&&o<=n&&n--),this},fireWith:function(e,t){t=t||[],o(e,t.slice?t.slice():t)},fire:function(){return a.fireWith(this,arguments),this},empty:function(){return i=[],this}};return a},u=o.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},i.each(this.callbackNames()||[],function(e,n){var i=t.callbackFlags(n);t[this]=d(i)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=l.format(e)),t[e]):l.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){var n;return a.isFunction(e)?(n=this.component._createAction(e.bind(this),t),function(e){n({jQueryEvent:e})}):(this._actions[e]=this.component._createActionByOption(e,t),void(this._actionConfigs[e]=t))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;i.each(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-"+t.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e=this.component.NAME===c?null:"container";return this.addWidgetPrefix(e)}}),h=u,p=h.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),f=u.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=this.component._requireResize||e,this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=i.Callbacks(),this.resizeCompleted=i.Callbacks()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0,i=e.get(0).offsetHeight;return i+t+n; },isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,o=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=i("<div />").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!o),o&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire()))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){this.element().focus()}}),m=1e6,g=function(e,t){var n=t.modules,o=t.modulesOrder,a=t.controllerTypes||{},l=t.viewTypes||{};t.controllerTypes||(o&&n.sort(function(e,t){var n=s(e.name,o),i=s(t.name,o);return n<0&&(n=m),i<0&&(i=m),n-i}),i.each(n,function(){var e=this.controllers,t=this.name,n=this.views;e&&i.each(e,function(e,n){if(a[e])throw r.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(h)))throw n.subclassOf(h),r.Error("E1002",t,e);a[e]=n}),n&&i.each(n,function(e,n){if(l[e])throw r.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(f)))throw r.Error("E1004",t,e);l[e]=n})}),i.each(n,function(){var e=this.extenders;e&&(e.controllers&&i.each(e.controllers,function(e,t){a[e]&&(a[e]=a[e].inherit(t))}),e.views&&i.each(e.views,function(e,t){l[e]&&(l[e]=l[e].inherit(t))}))}),t.controllerTypes=a,t.viewTypes=l);var c=function(e,t,n){var o=n.publicMethods();o&&i.each(o,function(i,o){if(!n[o])throw r.Error("E1006",t,o);if(e[o])throw r.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}})},d=function(t){var n={};return i.each(t,function(t,i){var o=new i(e);o.name=t,c(e,t,o),n[t]=o}),n};e._controllers=d(a),e._views=d(l)},_=function(e,t,n){n=n||[],e._controllers&&i.each(e._controllers,function(){this[t]&&this[t].apply(this,n)}),e._views&&i.each(e._views,function(){this[t]&&this[t].apply(this,n)})};e.exports={modules:[],View:f,ViewController:p,Controller:h,registerModule:function(e,t){var n,i=this.modules;for(n=0;n<i.length;n++)if(i[n].name===e)return;t.name=e,i.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=a.grep(this.modules,function(t){return t.name!==e}),delete this.controllerTypes,delete this.viewTypes},processModules:g,callModuleItemsMethod:_}},function(e,t,n){var i=n(349),o=n(353);t.ColumnHeadersView=o.views.columnHeadersView,i.registerModule("columnHeaders",o)},function(e,t,n){var i=n(9),o=n(354),a=n(14),s=n(11).extend,r=n(90),l="text-content",c="headers",d="nowrap",u="dx-header-row",h="dx-column-lines",p="context-menu-sort-asc",f="context-menu-sort-desc",m="context-menu-sort-none",g="dx-cell-focus-disabled",_="dx-visibility-hidden",v="dx-text-content-alignment-",w="dx-sort-indicator",x="dx-header-filter-indicator";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:o.ColumnsView.inherit(function(){var e=function(e,n,o){var a,s=i("<div />").addClass(e.addWidgetPrefix(l));return t(e,n,o.column,s),a=e.option("showColumnLines"),s[a||"right"===o.column.alignment?"appendTo":"prependTo"](n)},t=function(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),s=o&&o.length,r=e._getColumnAlignment(n.alignment);i=i||t.children("."+e.addWidgetPrefix(l)),i.toggleClass(v+r,s>0).toggleClass(v+("left"===r?"right":"left"),s>0&&"center"===n.alignment).toggleClass(w,!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass(x,!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return e.on("mousedown selectstart",this.createAction(function(e){var t=e.jQueryEvent;t.shiftKey&&t.preventDefault()})),e},_getDefaultTemplate:function(t){var n,i=this;return n=t.command?function(e,t){var n=t.column;e.html(" "),e.addClass(n.cssClass)}:function(n,o){var a=e(i,n,o);a.text(t.caption)}},_getHeaderTemplate:function(e){return!e.command&&e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i,o=this,a=n.column,r=o.callBase(t);return i=r&&a.headerCellTemplate?{render:function(t){var n=e(o,t.container,t.model);r.render(s({},t,{container:n}))}}:r},_handleDataChanged:function(){(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&(n.addClass(g),a.isDefined(t.column.command)||(this.setAria("role","columnheader",n),this.setAria("label",t.column.caption+" "+r.format("dxDataGrid-ariaColumn"),n))),n},_createRow:function(e){var t=this.callBase(e).toggleClass(h,this.option("showColumnLines"));return"header"===e.rowType&&t.addClass(u),t},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(c)).toggleClass(e.addWidgetPrefix(d),!e.option("wordWrapEnabled")).empty(),e._updateContent(e._renderTable()),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&n.attr("rowspan",t.rowspan),n},_getRows:function(){var e,t=[],n=this.getRowCount();if(this.option("showColumnHeaders"))for(e=0;e<n;e++)t.push({rowType:"header",rowIndex:e});return t},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping?void(this._isGroupingChanged=!0):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+_).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(_).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(l))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+_+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+u);return t&&t.length?t.first().height()*t.length:0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,o,s,r,l=this,c=l._columnsController,d=l.getRowCount();if(l.option("showColumnHeaders")){if(d>1&&(!a.isDefined(e)||a.isDefined(t)))return o=[],r=a.isDefined(t)?c.getChildrenByBandColumn(t,!0):c.getVisibleColumns(),i.each(r,function(t,i){n=a.isDefined(e)?e:c.getRowIndex(i.index),s=l.getCellElement(n,c.getVisibleIndex(i.index,n)),s&&o.push(s.get(0))}),i(o);if(!e||e<d)return l.getCellElements(e||0)}},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o,a=e&&this._columnsController.getRowIndex(e.index),s=this.getColumns(0===a?0:null),r=0,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<s.length;i++)l(s[i])&&r++;if(r<=1)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++)if(o=n[i],o&&o.allowDragging(e,t))return!0;return!1},getBoundingRect:function(){var e,t=this,n=t.getColumnElements();return n&&n.length?(e=t._getTableElement().offset(),{top:e.top}):null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){var t=this;switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":t._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t,n,i=this,o=e.column;if(e.row&&"header"===e.row.rowType&&(n=i.option("sorting"),n&&"none"!==n.mode&&o&&o.allowSorting))return t=function(e){setTimeout(function(){i._columnsController.changeSortOrder(o.index,e.itemData.value)})},[{text:n.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:p,onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:f,onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:m,onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var o,s,r=this,l=r.getRowCount(),c=r._columnsController.getColumns(),d=c&&c[e],u=d&&d.isBand&&d.index,h=function(e,n){n.ownerBand===u&&(s.eq(e).css({opacity:t}),n.isBand&&r.setRowsOpacity(n.index,t,o+1))};if(a.isDefined(u))for(n=n||0,o=n;o<l;o++)s=r.getCellElements(o),i.each(r.getColumns(o),h)}}}())}}},function(e,t,n){var i=n(9),o=n(76),a=n(23),s=n(14),r=n(11).extend,l=n(108).getDefaultAlignment,c=n(53),d=n(351),u=n(350),h=n(355),p="scroll-container",f="group-space",m="content",g="table",_="table-fixed",v="content-fixed",w="dx-row",x="dx-group-row",y="dx-master-detail-row",b="0.0001px",C="dxCellHintVisible",k="dx-field-item-content",I={render:function(e){e.container.append(e.content)}};t.ColumnsView=d.View.inherit(h).inherit({_createScrollableOptions:function(){var e=this,t=e.option("scrolling"),n=e.option("scrolling.useNative"),i=r({},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||l(this.option("rtlEnabled")),o=window.document.createElement("td");o.style.textAlign=n;var a=i(o);return this.setAria("role","gridcell",a),!s.isDefined(t.groupIndex)&&t.cssClass&&a.addClass(t.cssClass),"expand"===t.command&&a.addClass(this.addWidgetPrefix(f)),t.colspan>1&&a.attr("colspan",t.colspan),a},_createRow:function(){return i("
").addClass(w).attr("role","row")},_getTableRoleName:function(){return"grid"},_createTable:function(e){var t=this,n=i("<table />").addClass(t.addWidgetPrefix(g)).addClass(t.addWidgetPrefix(_)).attr("role",t._getTableRoleName());e&&(n.append(t._createColGroup(e)),c.real().ios&&n.append("<thead></thead>")),n.append("<tbody />"),a.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,o=i(n.target),a=i(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],m=f?f.column:u[p];l&&(!l||!m||m.cellTemplate)||c&&(!c||!m||m.headerCellTemplate)||d&&(!d||!m||void 0!==m.groupIndex&&m.groupCellTemplate)||(o.data(C)&&(o.removeAttr("title"),o.data(C,!1)),o[0].scrollWidth>o[0].clientWidth&&!s.isDefined(o.attr("title"))&&(o.attr("title",o.text()),o.data(C,!0)))}));var l=function(e){var n,o,a=i(e.currentTarget),s=i(e.target).closest("."+k),l=a.parent().data("options"),c=l&&l.cells&&l.cells[a.index()];return o=r({},c,{cellElement:a,jQueryEvent:e,eventType:e.type}),s.length&&(n=s.data("dxFormItem"),n.column&&(o.column=n.column,o.columnIndex=t._columnsController.getVisibleIndex(o.column.index))),o};return n.on("mouseover",".dx-row > td",function(e){t.executeAction("onCellHoverChanged",l(e))}),n.on("mouseout",".dx-row > td",function(e){t.executeAction("onCellHoverChanged",l(e))}),n.on(o.name,".dx-row > td",function(e){t.executeAction("onCellClick",l(e))}),n.on(o.name,".dx-row",{useNative:t._isNativeClick()},t.createAction(function(e){var n=e.jQueryEvent;i(n.target).closest("a").length||(e.rowIndex=t.getRowIndex(n.currentTarget),e.rowIndex>=0&&(e.rowElement=i(n.currentTarget),e.columns=t.getColumns(),t._rowClick(e)))})),n},_isNativeClick:s.noop,_rowClick:s.noop,_createColGroup:function(e){var t,n,o,a=i("<colgroup />");for(t=0;t<e.length;t++)for(o=e[t].colspan||1,n=0;n<o;n++)a.append(this._createCol(e[t]));return a},_createCol:function(e){var t=e.visibleWidth||e.width;return"adaptiveHidden"===t&&(t=b),i("<col />").width(t)},renderDelayedTemplates:function(){for(var e,t=this._delayedTemplates;t.length;)e=t.shift(),e.template.render(e.options),e.options.model&&e.options.model.column&&this._updateCell(e.options.container,e.options.model)},_processTemplate:function(e){var t,n,o=this;return e&&e.render&&!e.jquery?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:s.isFunction(e)?n={render:function(t){var n=e(t.container,t.model);n&&(n.jquery||n.nodeType)&&t.container.append(n)}}:(t=s.isString(e)?e:i(e).attr("id"),t?(o._templatesCache[t]||(o._templatesCache[t]=o.getTemplate(e)),n=o._templatesCache[t]):n=o.getTemplate(e)),n},renderTemplate:function(e,t,n,i){var o=this,a=o._processTemplate(t,n);if(a){if(n.component=o.component,a.allowRenderToDetachedContainer||i)return a.render({container:e,model:n}),!0;o._delayedTemplates.push({template:a,options:{container:e,model:n}})}return!1},_appendRow:function(e,t,n){n=n||I,n.render({content:t,container:e})},_resizeCore:function(){var e=this,t=e._scrollLeft;t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))},_renderCore:function(){var e=this.element().parent();e&&!e.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,o=i._getRows(t.change);for(n=0;n<o.length;n++)i._renderRow(e,r({row:o[n]},t))},_renderRow:function(e,t){var n,i=this;t.row.cells=[],n=i._createRow(t.row),i._renderCells(n,t),i._appendRow(e,n),i._rowPrepared(n,r({columns:t.columns},t.row))},_renderCells:function(e,t){var n,i=this,o=0,a=t.row,s=t.columns;for(n=0;n<s.length;n++)i._renderCell(e,r({column:s[n],columnIndex:o,value:a.values&&a.values[o]},t)),s[n].colspan>1?o+=s[n].colspan:o++},_renderCell:function(e,t){var n,i=this,o=i._getCellOptions(t),a=t.column;return t.row.cells.push(o),n=i._createCell(o),a.command||i.setAria("label",i.localize("dxDataGrid-ariaColumn")+" "+a.caption+", "+i.localize("dxDataGrid-ariaValue")+" "+o.text,n),i._renderCellContent(n,o),e.get(0).appendChild(n.get(0)),n},_renderCellContent:function(e,t){var n=this._getCellTemplate(t);n&&!this.renderTemplate(e,n,t)||this._updateCell(e,t)},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){return{column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType}},_cellPrepared:function(e,t){t.cellElement=e,this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){i.data(e.get(0),"options",t),t.rowElement=e,this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if(u.checkChanges(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),o=i.map(n,function(e){return e.visibleWidth||e.width||"auto"});return void this.setColumnWidths(o)}this._requireReady||this.render()},getTableElements:function(){return this._tableElement||i()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:s.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(p)).not("."+t.addWidgetPrefix(v));t._skipScrollChanged=!1,s.isDefined(e)&&s.isDefined(e.left)&&t._scrollLeft!==e.left&&(t._scrollLeft=e.left,i&&i.scrollLeft(Math.round(e.left)),t._skipScrollChanged=!0)},_wrapTableInScrollContainer:function(e){var t,n=this;return t=i("<div/>").on("scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}).addClass(n.addWidgetPrefix(m)).addClass(n.addWidgetPrefix(p)).append(e).appendTo(n.element())},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:s.noop,_getWidths:function(e){var t,n,o=[];return e&&i.each(e,function(e,i){t=i.offsetWidth,i.getBoundingClientRect&&(n=i.getBoundingClientRect(),n.width>t&&(t=Math.ceil(n.width))),o.push(t)}),o},getColumnWidths:function(e){var t,n=this,o=[];if((this.option("forceApplyBindings")||i.noop)(),e=e||n._getTableElement()){t=e.children("tbody").children();for(var a=0;a<t.length;a++){var s=t.eq(a);if(!s.is("."+x)&&!s.is("."+y)){t=s.children("td");break}}o=n._getWidths(t)}return o},setColumnWidths:function(e,t,n){var i,o,a,s;if(t=t||this._getTableElement(),t&&t.length&&e)for(s=0,i=t.find("col"),n=n||this.getColumns(null,t),o=0;o<n.length;o++)n[o].colspan?s+=n[o].colspan:(a=e[s],"adaptiveHidden"===a&&(a=b),i.eq(s).css("width",a||"auto"),s++)},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){var t=this._getRowElements().eq(e);return t.children()},getCellElement:function(e,t){var n,i=this,o=i.getCellElements(e),a=i._getVisibleColumnIndex(o,e,t);if(o.length&&a>=0&&(n=o.eq(a)),n&&n.length)return n},getRowElement:function(e){var t=this,n=i(),o=t.getTableElements();if(i.each(o,function(o,a){n=n.add(t._getRowElements(i(a)).eq(e))}),n.length)return n},_getVisibleColumnIndex:function(e,t,n){var i;return s.isString(n)?(i=this._columnsController.columnOption(n,"index"),this._columnsController.getVisibleIndex(i)):n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),n=this.getCellElements(e.rowIndex),n&&n.length>0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElements:function(e){return e=e||this._getTableElement(),e&&e.children("tbody").children("."+w)||i()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this,n=t.element(),i=t.option("rtlEnabled");n&&n.css(i?{paddingLeft:e}:{paddingRight:e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(108).getDefaultAlignment,s=n(14),r="dx-column-indicators",l="dx-group-panel-item";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),a=t._getColumnAlignment(e.column.alignment,n),s=o(!0,{columnAlignment:a},e),r=s.rootElement.hasClass(l),c=t._createIndicatorContainer(s,r),d=i("").addClass(t._getIndicatorClassName(e.name)),u=function(){return n?"left"===a?"right":"left":a};return s.container=c,s.indicator=d,t._renderIndicator(s),c[!r&&e.showColumnLines||"left"!==u()?"prependTo":"appendTo"](e.rootElement),d},_getIndicatorClassName:s.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:a(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),o="left"===e.columnAlignment?"right":"left";return n.length||(n=i("
").addClass(r)),n.css("float",e.showColumnLines&&!t?o:null)},_getIndicatorContainer:function(e){return e&&e.find("."+r)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i,o=this,a=o.getColumns(),s=o.getColumnElements();if(s.length)for(i=0;i<a.length;i++)n=s.eq(i),o._updateIndicator(n,a[i],e),t=n.parent().data("options"),t&&t.cells&&(t.cells[n.index()].column=a[i])},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}}},function(e,t,n){var i=n(349),o=n(357),a=n(11).extend;i.registerModule("columns",{defaultOptions:function(){return a(!0,{},o.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:o.controllers})},function(e,t,n){var i=n(9),o=n(28).isWrapped,a=n(50),s=n(14),r=n(108).getDefaultAlignment,l=n(11).extend,c=n(26).inArray,d=n(15),u=s.isDefined,h=n(27),p=n(22),f=n(351),m=n(350),g=m.normalizeSortingInfo,_=m.equalSortParameters,v=n(26).normalizeIndexes,w=n(39),x=n(260),y=n(32),b=n(33),C=n(90),k=n(16).when,I=n(154),S=I.normalizeDataSourceOptions,D=["filterValues","filterType","fixed","fixedPosition"],T=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(D),E="dx-command-expand";e.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:C.format("dxDataGrid-trueText"),falseText:C.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:f.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},f="group",C="columnChooser",A=function(t,n,i,o){var a,r={};if(n)return s.isString(n)&&(n={dataField:n}),n.command?l(!0,{},n):(r=t.getCommonSettings(),i&&i.name&&i.dataField&&(n=l({},n,{dataField:i.dataField})),a=t._createCalculatedColumnOptions(n,o),l(!0,{},e,r,a,n,{selector:null}))},B=function(e,t,n){var o=[];return t&&i.each(t,function(t,i){var a=e._columnsUserState&&Q(i,e._columnsUserState[t])&&e._columnsUserState[t],s=A(e,i,a,n);s&&(n&&(s.ownerBand=n),o.push(s),s.isBand&&(o=o.concat(B(e,s.columns,s)),delete s.columns))}),o},M=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),e=i.index,i=t[e];return n},R=function(e,t,n){var i,o=[],a=t[e];if(a)for(var s=0;s<a.length;s++)i=a[s],u(i.groupIndex)&&!i.showWhenGrouped||(o.push(i),n&&i.isBand&&(o=o.concat(R(i.index,t,n))));return o},O=function(e,t){for(var n,i=e._columns,o=function(e){return e.ownerBand===n.index},a=0;a<t.length;a++)n=i[t[a]],n&&(i=e._columns.filter(o));return n},P=function(e,t){var n=0,o=e.getChildrenByBandColumn(t,!0);return i.each(o,function(t,i){i.isBand?(i.colspan=i.colspan||P(e,i.index),n+=i.colspan):n+=1}),n},V=function(e,t,n){var i,o,a,s=e.getRowCount();for(i=0;i<t.length;i++)o=t[i],(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||P(e,o.index)),o.isBand&&o.colspan||(a=s-(o.command||u(o.groupIndex)?0:M(o.index,n.columnParentByIndex).length),a>1&&(o.rowspan=a)))},F=function(e){var t=s.type(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},H=function(e,t){switch(e){case"date":return x.getDateSerializationFormat(t);case"number":if(s.isString(t))return"string";if(s.isNumeric(t))return null}},L=function(e,t){e.deserializeValue||("date"===t&&(e.deserializeValue=function(e){return x.deserializeDate(e)},e.serializeValue=function(e){return x.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e){return u(e)&&"string"===this.serializationFormat?e.toString():e}))},z=function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return r(t)}},N=function(e){if("boolean"===e)return function(e){return e.value===!0?this.trueText||"true":e.value===!1?this.falseText||"false":e.valueText||""}},W=function(e,t){var n,i,a=e._getFirstItems(t),r={},l=[];for(i=0;i<a.length;i++)if(a[i])for(n in a[i])s.isFunction(a[i][n])&&!o(a[i][n])||(r[n]=!0);for(n in r)if(0!==n.indexOf("__")){var c=A(e,n);l.push(c)}return l},$=function(e){i.each(e._columns,function(e,t){t.index=e}),i.each(e._columns,function(e,t){s.isObject(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),i.each(e._commandColumns,function(e,t){t.index=-(e+1)})},q=function(e,t){v(e._columns,"groupIndex",t,function(e){var t=e.grouped;return delete e.grouped,t})},G=function(e,t){i.each(e._columns,function(e,t){u(t.sortIndex)&&!ie(t.sortOrder)&&delete t.sortIndex}),v(e._columns,"sortIndex",t,function(e){return!u(e.groupIndex)&&ie(e.sortOrder)})},j=function(e,t){var n,i,o,a,s,r={},l=[],c=e.getBandColumnsCache();for(n=0;n<e._columns.length;n++)o=e._columns[n],s=M(n,c.columnParentByIndex),s.length?(a=s[s.length-1].index,r[a]=r[a]||[],r[a].push(o)):l.push(o);for(i in r)v(r[i],"visibleIndex",t);v(l,"visibleIndex",t)},K=function(e,t,n){var i,o=s.isObject(t)?t.rowIndex:null,a=n===f?e.getGroupColumns():n===C?e.getChooserColumns():e.getVisibleColumns(o);return t=s.isObject(t)?t.columnIndex:t,i=a[t],i&&u(i.index)?i.index:-1},U=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);t.groupIndex=n},Q=function(e,t){return e&&t&&t.name===e.name&&(t.dataField===e.dataField||e.name)},Y=function(e){function t(e,t){var n;if(t)for(var i=0;i<T.length;i++)n=T[i],c(n,l)>=0||("dataType"===n?e[n]=e[n]||t[n]:c(n,D)>=0?n in t&&(e[n]=t[n]):e[n]=t[n])}function n(e,t){for(var n=t.name||t.dataField,i=h[n]||0,o=0;o<e.length;o++)if(Q(t,e[o])){if(!i)return h[n]=h[n]||0,h[n]++,o;i--}return-1}var i,o,a,s,r=e._columnsUserState,l=e._ignoreColumnOptionNames||[],d=e._columns,h={},p=[],f=!0,m=[];if(r){for(s=0;s<d.length;s++)a=n(r,d[s]),f=f&&a>=0,m.push(a);for(s=0;s<d.length;s++)i=d[s],a=m[s],(e._hasUserState||f)&&t(i,r[a]),a>=0&&u(r[a].initialIndex)?p[a]=i:p.push(i);for(s=0;s<r.length;s++)o=r[s],o.added&&n(d,o)<0&&(i=A(e,o.added),t(i,o),p.push(i));J(e,p)}},Z=function(e,t){$(e),q(e,t),G(e,t),j(e,t)},X=function(e){e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,e._bandColumnsCache=void 0},J=function(e,t){e._columns=t,X(e),e.updateColumnDataTypes()},ee=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=n||"all",n=n.split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var s=o.optionNames;n&&!s[n]&&(s[n]=!0,s.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,X(e)},te=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges;e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t(l({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,n.optionNames&&(n.optionNames.dataField||n.optionNames.lookup)?e.reinit():e.columnsChanged.fire(n))},ne=function(e,t,n,i,o){var r,l,d,h,p=a.compileGetter(n),f=t.index;return 3===arguments.length?p(t,{functionsAsIs:!0}):(r=p(t,{functionsAsIs:!0}),void(r!==i&&(h="groupIndex"===n?"grouping":"sortIndex"===n||"sortOrder"===n?"sorting":"columns",l=a.compileSetter(n),l(t,i,{functionsAsIs:!0}),u(r)||u(i)||0===n.indexOf("buffer")||(o=!0),o?X(e):(c(n,T)<0&&"visibleWidth"!==n&&(d=e.option("columns"),t=d&&d[f],s.isString(t)&&(t=d[f]={dataField:t}),t&&l(t,i,{functionsAsIs:!0})),ee(e,h,n,f)))))},ie=function(e){return"asc"===e||"desc"===e},oe=function(e){e.addCommandColumn({command:"expand",width:"auto",cssClass:E,allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1})},ae=function(e,t){var n,i,o=this.dataField.split("."),a=o.length-1;for(this.serializeValue&&(t=this.serializeValue(t)),i=0;i<a;i++)n=o[i],e=e[n]=e[n]||{};e[o[a]]=t},se=function(e,t,n){var o=[];return t=t||0,e[t]&&i.each(e[t],function(i,a){(a.ownerBand===n||u(a.groupIndex))&&(a.isBand&&a.colspan?o.push.apply(o,se(e,t+1,a.index)):(!a.command||t<1)&&o.push(a))}),o},re=function(e,t,n){var i=1,o=e.getBandColumnsCache(),a=o.columnParentByIndex;return e._columns.forEach(function(e){var t=M(e.index,a),n=t.filter(function(e){return!e.visible});e.visible&&!n.length&&(i=Math.max(i,t.length+1))}),i},le=function(e){return e.fixedPosition?e.fixedPosition:"left"},ce=function(e,t,n){var o=e[n]&&e[n].rowspan,a=t.slice(0);return o>1&&(a=i.map(a,function(e){return l({},e,{rowspan:o})})),a.unshift(n,0),e.splice.apply(e,a),o||1},de=function(e){var t;for(t=0;e>1;t++)e/=10;return t},ue=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n};return{_getFirstItems:function(e){var t,n=[],i=function(e,t){var n,o;if(!e||!t)return e;for(n=0;n<e.length;n++)if(o=i(e[n].items||e[n].collapsedItems,t-1),o&&o.length)return o};return e&&e.items().length>0&&(t=g(e.group()).length,n=i(e.items(),t)||[]),n},_endUpdateCore:function(){te(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],oe(e),e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(J(e,t?B(e,t):[]),Y(e)):J(e,e._columnsUserState?B(e,e._columnsUserState):e._columns),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):Z(e)},callbackNames:function(){return["columnsChanged"]},optionChanged:function(e){switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"columns":e.handled=!0,e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):this._columnOptionChanged(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":e.handled=!0,this.reinit();break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t,n=[],i={},o=e.fullName.replace(/columns\[(\d+)\]\.?/gi,function(e,t){return n.push(parseInt(t)),""});n.length&&(t=O(this,n),o?i[o]=e.value:i=e.value),t&&this.columnOption(t.index,i)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns"]},applyDataSource:function(e,t){var n=this,o=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(o){if(!n._isColumnsFromOptions){

var a=W(n,e);a.length&&(J(n,a),n._dataSourceColumnsCount=n._columns.length,Y(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(o&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return ee(n,"columns"),te(n),i.Deferred().reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},reinit:function(){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=null,this.init()},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(){var e=this.option("commonColumnSettings")||{},t=this.option("grouping")||{},n=this.option("groupPanel")||{};return l({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing"),allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),autoExpandGroup:t.autoExpandAll,allowCollapsing:t.allowCollapsing,allowGrouping:n.allowColumnDragging&&n.visible||t.contextMenuEnabled},e)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t,n=this._columns;if(!n.length)return!1;for(t=0;t<n.length;t++)if(!n[t].dataType||e&&n[t].deserializeValue&&void 0===n[t].serializationFormat)return!1;return!0},getColumns:function(){return this._columns},getGroupColumns:function(){var e=[];return i.each(this._columns,function(){var t=this;u(t.groupIndex)&&(e[t.groupIndex]=t)}),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=u(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=u(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},_getFixedColumnsCore:function(){var e,t,n,i,o,a,s,r,l=this,c=[],d=l.getRowCount(),h=l._isColumnFixing(),p={command:"transparent"},f=0;if(h)for(e=0;e<=d;e++){for(o=0,s=null,a=null,r=l.getVisibleColumns(e),t=0;t<r.length;t++)i=r[t-1],n=r[t],n.command||(n.fixed?i&&i.fixed&&le(i)!==le(n)?u(a)||(a=t):s=n.fixedPosition:(0===e&&(n.isBand&&n.colspan?f+=n.colspan:f++),o++,u(a)||(a=t)));if(0===e&&(0===o||o>=r.length))return[];u(a)||(a="right"===s?0:r.length),c[e]=r.slice(0),p.colspan||(p.colspan=f),c[e].splice(a,o,p)}return c},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&i.each(this._columns,function(t,n){if(n.fixed)return e=!0,!1}),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore();return t.length&&(e=this.columnOption("command:expand")),t=i.map(t,function(t){return l({},t,{visibleWidth:null,minWidth:null},e,{index:t.index})})},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={};e.forEach(function(i){var o=i.ownerBand,a=e[o];i.colspan&&(i.colspan=void 0),i.rowspan&&(i.rowspan=void 0),a?n[i.index]=a:o=-1,t[o]=t[o]||[],t[o].push(i)}),this._bandColumnsCache={columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n,o=this,a=[],s=0,r=o.getExpandColumns(),c=o.getRowCount(),d=[],p=[],f=0,m=o.option("rtlEnabled"),g=l(!0,[],o._columns.length?o._commandColumns.concat(o._columns):[]),_=o.getBandColumnsCache(),v=de(g.length);for(V(o,g,_),e=0;e<c;e++)a[e]=[],p[e]=[{}],d[e]=[{},{},{}];return i.each(g,function(){var t,i,a=this,s=a.visibleIndex,r=M(a.index,_.columnParentByIndex),l=o._isColumnVisible(a);if(l&&(!u(a.groupIndex)||a.showWhenGrouped)){if(t=r.length,s<0?(s=-s,i=p[t]):(a.fixed=r.length?r[0].fixed:a.fixed,a.fixedPosition=r.length?r[0].fixedPosition:a.fixedPosition,a.fixed||a.command?(n="right"===a.fixedPosition,m&&(n=!n),i=n||a.command?d[t][2]:d[t][0]):i=d[t][1]),r.length)for(s=ue(s,v),e=r.length-1;e>=0;e--)s=ue(r[e].visibleIndex,v)+s;i[s]=i[s]||[],i[s].push(a),f++}}),i.each(a,function(e){h.orderEach(p[e],function(t,n){a[e].unshift.apply(a[e],n)}),t=a[e].length,i.each(d[e],function(t,n){h.orderEach(n,function(t,n){a[e].push.apply(a[e],n)})}),s<e+1&&(s+=ce(a[e],r,t))}),a.push(se(a)),!f&&o._columns.length&&a[c].push({command:"empty"}),a},getInvisibleColumns:function(e,t){var n,o=this,a=[];return e=e||o._columns,i.each(e,function(e,i){if(i.ownerBand===t)return i.isBand?(n=i.visible?o.getInvisibleColumns(o.getChildrenByBandColumn(i.index),i.index):o.getChildrenByBandColumn(i.index),void(n.length&&(a.push(i),a=a.concat(n)))):void(i.visible||a.push(i))}),a},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns();return s.grep(t,function(e){return e.showInColumnChooser})},allowMoveColumn:function(e,t,n,i){var o=this,a=K(o,e,n),r=o._columns[a];return!(!r||!(r.allowReordering||r.allowGrouping||r.allowHiding))&&(n===i?n!==C&&(e=s.isObject(e)?e.columnIndex:e,t=s.isObject(t)?t.columnIndex:t,e!==t&&e+1!==t):n===f&&i!==C||i===f?r&&r.allowGrouping:n!==C&&i!==C||r&&r.allowHiding)},moveColumn:function(e,t,n,i){var o,a,r=this,l=K(r,e,n),c=K(r,t,i),d=n===f||i===f;if(l>=0){if(a=r._columns[l],t=s.isObject(t)?t.columnIndex:t,o=c>=0?r._columns[c].groupIndex:-1,u(a.groupIndex)&&n===f&&(o>a.groupIndex&&o--,delete a.groupIndex,delete a.sortOrder,q(r)),i===f)U(r,a,o),q(r);else if(t>=0){var h=r._columns[c];h&&a.ownerBand===h.ownerBand?a.fixed^h.fixed?a.visibleIndex=void 0:a.visibleIndex=h.visibleIndex:a.visibleIndex=void 0,j(r,a)}var p=i!==C,m=d?"grouping":"columns";a.visible!==p?(a.visible=p,ee(r,m,"visible",a.index)):ee(r,m),te(r)}},changeSortOrder:function(e,t){var n=this,o=n.option("sorting"),a=o&&o.mode,s="single"===a||!t,r="single"===a||"multiple"===a,l=n._columns[e],c=function(e){if("ctrl"===t){if(!("sortOrder"in e&&"sortIndex"in e))return!1;delete e.sortOrder,delete e.sortIndex}else u(e.groupIndex)||u(e.sortIndex)?e.sortOrder="desc"===e.sortOrder?"asc":"desc":e.sortOrder="asc";return!0},d=!1;r&&l&&l.allowSorting&&(s&&!u(l.groupIndex)&&i.each(n._columns,function(t){t!==e&&this.sortOrder&&!u(this.groupIndex)&&(delete this.sortOrder,delete this.sortIndex,d=!0)}),ie(t)?l.sortOrder!==t&&(l.sortOrder=t,d=!0):"none"===t?l.sortOrder&&(delete l.sortIndex,delete l.sortOrder,d=!0):d=c(l)),d&&(G(n),ee(n,"sorting"),te(n))},getSortDataSourceParameters:function(e){var t=this,n=[],o=[];return i.each(t._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&u(this.sortIndex)&&!u(this.groupIndex)&&(n[this.sortIndex]=this)}),i.each(n,function(){var t=this&&this.sortOrder;if(ie(t)){var n={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(n.compare=this.sortingMethod.bind(this)),o.push(n)}}),o.length>0?o:null},getGroupDataSourceParameters:function(e){var t=[];return i.each(this.getGroupColumns(),function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}}),t.length>0?t:null},refresh:function(e){var t=[];return i.each(this._columns,function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}}),k.apply(i,t).done(X.bind(null,this))},_updateColumnOptions:function(e){e.selector=e.selector||function(t){return e.calculateCellValue(t)},i.each(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(t,n){var i=e[n];s.isFunction(i)&&!i.originalCallback&&(e[n]=function(t){return i.call(e,t)},e[n].originalCallback=i)}),s.isString(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=a.compileGetter(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),L(e,e.dataType);var n=e.lookup;n&&L(n,n.dataType);var o=n?n.dataType:e.dataType;o&&(e.alignment=e.alignment||z(o,this.option("rtlEnabled")),e.format=e.format||m.getFormatByDataType(o),e.customizeText=e.customizeText||N(o),u(e.filterOperations)||(e.filterOperations=!n&&t[o]||[]),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=u(e.showEditorAlways)?e.showEditorAlways:"boolean"===o&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),o=t._getFirstItems(e),a=!1;return i.each(t._columns,function(e,i){var s,r,l,c,d,u=i.lookup;if("date"===i.dataType&&void 0===i.serializationFormat&&(i.serializationFormat=n),u&&"date"===u.dataType&&void 0===i.serializationFormat&&(u.serializationFormat=n),i.calculateCellValue&&o.length){if(!i.dataType||u&&!u.dataType){for(s=0;s<o.length;s++)r=i.calculateCellValue(o[s]),d=i.dataType||F(r),l=l||d,l&&d&&l!==d&&(l="string"),u&&(d=u.dataType||F(m.getDisplayValue(i,r,o[s])),c=c||d,c&&d&&c!==d&&(c="string"));i.dataType=l,u&&(u.dataType=c),l&&(a=!0)}if(void 0===i.serializationFormat||u&&void 0===u.serializationFormat)for(s=0;s<o.length;s++)r=i.calculateCellValue(o[s],!0),void 0===i.serializationFormat&&(i.serializationFormat=H(i.dataType,r)),u&&void 0===u.serializationFormat&&(u.serializationFormat=H(u.dataType,u.calculateCellValue(r,!0)))}t._updateColumnOptions(i)}),a},_customizeColumns:function(e){var t=this,n=t.option("customizeColumns");n&&(n(e),J(t,B(t,e)))},updateColumns:function(e,t){var n,i,o=this;if(t||o.updateSortingGrouping(e),!e||e.isLoaded()){n=e?e.sort()||[]:o.getSortDataSourceParameters(),i=e?e.group()||[]:o.getGroupDataSourceParameters(),o._customizeColumns(o._columns),Z(o);var a=o._columns;return k(o.refresh(!0)).always(function(){o._columns===a&&(o._updateChanges(e,{sorting:n,grouping:i}),te(o))})}},_updateChanges:function(e,t){var n=this;e&&(n.updateColumnDataTypes(e),n._dataSourceApplied=!0),_(t.sorting,n.getSortDataSourceParameters())||ee(n,"sorting"),_(t.grouping,n.getGroupDataSourceParameters())||ee(n,"grouping"),ee(n,"columns")},updateSortingGrouping:function(e,t){var n,o,a,s,r,l=this,c=function(e,t,n){var o,a,s;i.each(e,function(e,i){if(delete i[n],t)for(o=0;o<t.length;o++)if(a=t[o].selector,s=t[o].isExpanded,a===i.dataField||a===i.name||a===i.selector||a===i.calculateCellValue||a===i.calculateGroupValue){i.sortOrder=i.sortOrder||(t[o].desc?"desc":"asc"),void 0!==s&&(i.autoExpandGroup=s),i[n]=o;break}})};e&&(n=g(e.sort()),o=g(e.group()),a=l.getGroupDataSourceParameters(),s=l.getSortDataSourceParameters(),l._columns.length||(i.each(o,function(e,t){l._columns.push(t.selector)}),i.each(n,function(e,t){l._columns.push(t.selector)}),J(l,B(l,l._columns))),!t&&(a||l._hasUserState)||_(o,a)||(c(l._columns,o,"groupIndex"),t&&(ee(l,"grouping"),r=!0)),!t&&(s||l._hasUserState)||_(n,s)||(c(l._columns,n,"sortIndex"),t&&(ee(l,"sorting"),r=!0)),r&&te(l))},updateFilter:function(e,t,n){var i=this;if(!Array.isArray(e))return e;var o,a;for(e=l([],e),n=e.columnIndex||n,s.isString(e[0])?(o=i.columnOption(e[0]),t?d().forceIsoDateParsing&&o&&o.serializeValue&&e.length>1&&(e[e.length-1]=o.serializeValue(e[e.length-1])):o&&o.selector&&(e[0]=o.selector,e[0].columnIndex=o.index)):s.isFunction(e[0])&&(e[0].columnIndex=n),a=0;a<e.length;a++)e[a]=i.updateFilter(e[a],t,n);return e},columnCount:function(){return this._columns.length},columnOption:function(e,t,o,a){var r,c,d,u=this,h=s.isString(e)&&e.substr(0,e.indexOf(":")),p=e<0||"command"===h?u._commandColumns:u._columns;if(void 0!==e){for(h&&(e=e.substr(h.length+1)),r=0;r<p.length;r++)if(h){if(""+p[r][h]===e){d=p[r];break}}else if(p[r].index===e||p[r].name===e||p[r].dataField===e||p[r].caption===e){d=p[r];break}if(d){if(1===arguments.length)return l({},d);if(s.isString(t)){if(2===arguments.length)return ne(u,d,t);c=c||n[t],ne(u,d,t,o,a)}else s.isObject(t)&&i.each(t,function(e,t){c=c||n[e],ne(u,d,e,t,a)});c&&Z(u,d),te(u)}}},clearSorting:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"sortOrder",void 0);t.endUpdate()},clearGrouping:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"groupIndex",void 0);t.endUpdate()},getVisibleIndex:function(e,t){var n,i=this.getVisibleColumns(t);for(n=i.length-1;n>=0;n--)if(i[n].index===e)return n;return-1},addColumn:function(e){var t=this,n=A(t,e);n.added=e,t._columns.push(n),Z(t,n),t.updateColumns(t._dataSource)},deleteColumn:function(e){var t=this,n=t.columnOption(e,"index");n>=0&&(t._columns.splice(n,1),Z(t),t.updateColumns(t._dataSource))},addCommandColumn:function(e){var t,n=this._commandColumns;for(t=0;t<n.length;t++)if(n[t].command===e.command)return;n.push(e)},getUserState:function(){function e(e,i){void 0!==n[t][i]&&(o[t][i]=n[t][i])}var t,n=this._columns,o=[];for(t=0;t<n.length;t++)o[t]={},i.each(T,e);return o},setUserState:function(e){var t,n=this,i=n.option("stateStoring.ignoreColumnOptionNames");i||(i=[],t=n.getCommonSettings(),n.option("columnChooser.enabled")||i.push("visible"),"none"===n.option("sorting.mode")&&i.push("sortIndex","sortOrder"),t.allowGrouping||i.push("groupIndex"),t.allowFixing||i.push("fixed","fixedPosition"),t.allowResizing||i.push("width","visibleWidth"),n.option("filterRow.visible")||i.push("filterValue","selectedFilterOperation"),n.option("headerFilter.visible")||i.push("filterValues","filterType")),n._columnsUserState=e,n._ignoreColumnOptionNames=i,n._hasUserState=!!e,n.init()},_createCalculatedColumnOptions:function(e,t){var n,r={},c=e.dataField;return(Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(r.isBand=!0,c=null),c?(s.isString(c)&&(n=a.compileGetter(c),r={caption:w.captionize(c),calculateCellValue:function(e,t){var i=n(e);return this.deserializeValue&&!t?this.deserializeValue(i):i},setCellValue:ae,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?s.isString(e)?(n=y.parse(e),s.isNumeric(n)&&(t=n)):u(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):"date"===i.dataType?(n=b.parse(e,i.format),n&&(t=n)):t=e,t}}),r.allowFiltering=!0):r.allowFiltering=!!e.calculateFilterExpression,r.calculateFilterExpression=function(){return m.defaultCalculateFilterExpression.apply(this,arguments)},r.createFilterExpression=function(){var e;return this.calculateFilterExpression&&(e=this.calculateFilterExpression.apply(this,arguments)),s.isFunction(e)?e=[e,"=",!0]:e&&(e.columnIndex=this.index),e},c&&s.isString(c)||l(!0,r,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(r.allowFixing=!1),e.dataType&&(r.userDataType=e.dataType),e.selectedFilterOperation&&(r.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(r.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){var e,t,n,i;if(this.valueMap={},this.items)for(e=a.compileGetter(this.valueExpr),t=a.compileGetter(this.displayExpr),i=0;i<this.items.length;i++){n=this.items[i];var o=t(n);this.valueMap[e(n)]=o,this.dataType=this.dataType||F(o)}},update:function(){var e,t=this,n=t.dataSource;if(n)if(s.isFunction(n)&&!o(n)&&(n=n({})),s.isObject(n)||Array.isArray(n)){if(t.valueExpr)return e=S(n),e.paginate=!1,n=new I.DataSource(e),n.load().done(function(e){t.items=e,t.updateValueMap&&t.updateValueMap()})}else p.log("E1016");else t.updateValueMap&&t.updateValueMap()}}),r.resizedCallbacks=i.Callbacks(),e.resized&&r.resizedCallbacks.add(e.resized.bind(e)),i.each(r,function(e){var t;s.isFunction(r[e])&&0!==e.indexOf("default")&&(t="default"+e.charAt(0).toUpperCase()+e.substr(1),r[t]=r[e])}),r},getRowCount:function(){return this._rowCount=this._rowCount||re(this),this._rowCount},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!u(n.groupIndex))?M(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=this,i=n.getBandColumnsCache(),o=R(e,i.columnChildrenByIndex,!t);return t?o.filter(function(e){return e.visible&&!e.command}).sort(function(e,t){return e.visibleIndex-t.visibleIndex}):o},isParentBandColumn:function(e,t){var n=!1,o=this._columns[e],a=this.getBandColumnsCache(),s=o&&M(e,a.columnParentByIndex);return s&&i.each(s,function(e,i){if(i.index===t)return n=!0,!1}),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),o=e>=0&&M(e,n.columnParentByIndex);return o&&i.each(o,function(e,n){return t=t&&n.visible}),t}}}())}}},function(e,t,n){var i=n(349),o=n(359),a=n(361);t.DataController=a.controllers.data.inherit(function(){return{_getDataSourceAdapter:function(){return o}}}()),i.registerModule("data",{defaultOptions:a.defaultOptions,controllers:{data:t.DataController}})},function(e,t,n){var i=n(360);e.exports={extend:function(e){i=i.inherit(e)},create:function(e){return new i(e)}}},function(e,t,n){var i=n(9),o=n(349),a=n(14),s=n(12),r=n(11).extend,l=n(159),c=n(16).when;e.exports=o.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=r({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t){var n={};return t&&(n={sorting:!o.equalSortParameters(e.sort,t.sort),grouping:!o.equalSortParameters(e.group,t.group,!0),filtering:!o.equalFilterParameters(e.filter,t.filter),skip:e.skip!==t.skip,take:e.take!==t.take},n.reload=n.sorting||n.grouping||n.filtering,n.paging=n.skip||n.take),n}function n(e,t){a.isDefined(t)?a.executeAsync(e,t):e()}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n.changed=i.Callbacks(),n.loadingChanged=i.Callbacks(),n.loadError=i.Callbacks(),n.customizeStoreLoadOptions=i.Callbacks(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._dataLoadingHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),i.each(e,function(e,t){!n[e]&&a.isFunction(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource;n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._dataLoadingHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),e||n.dispose()},refresh:function(e,t,n){var i=this,o=i._dataSource;(t||n.reload)&&(i._currentTotalCount=0,i._isLastPage=!o.paginate(),i._hasLastPage=i._isLastPage)},_customizeRemoteOperations:function(e,t,n){var o=this,a=o._cachedStoreData,s=o._cachedPagingData;t?(a=void 0,s=void 0):(n.reload&&(s=void 0),i.each(n,function(t,n){n&&e.remoteOperations[t]&&(a=void 0,s=void 0)})),s&&(e.remoteOperations.paging=!1),e.cachedStoreData=a,e.cachedPagingData=s,e.isCustomLoading||(o._cachedStoreData=a,o._cachedPagingData=s)},_handleDataLoading:function(e){var n,i,o=this,a=o._dataSource,s=o._lastLoadOptions;o.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=r({},this.remoteOperations());var l=!o.isLoaded()&&!o._isRefreshing;n=r({},e.storeLoadOptions),i=t(n,s),o._customizeRemoteOperations(e,l,i),e.isCustomLoading||(o._lastLoadOptions=n,o._isRefreshing=!0,c(o.refresh(e,l,i)).always(function(){o._lastOperationId===e.operationId&&o.load(),o._isRefreshing=!1}),a.cancel(o._lastOperationId),o._lastOperationId=e.operationId,o._isRefreshing&&a.cancel(o._lastOperationId)),this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var n={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:!t.paging};i.each(e.storeLoadOptions,function(t,i){n[t]&&(e.loadOptions[t]=i,delete e.storeLoadOptions[t])}),e.data=e.cachedStoreData},_handleDataLoaded:function(t){var n=t.loadOptions,i=t.remoteOperations&&!t.remoteOperations.paging,a=this.option("cacheEnabled")!==!1&&i&&t.storeLoadOptions,r=a&&!t.isCustomLoading;if(!n)return void this._dataSource.cancel(t.operationId);i&&(t.skip=n.skip,t.take=n.take,delete n.skip,delete n.take),n.group&&(n.group=t.group||n.group);var c=o.normalizeSortingInfo(t.storeLoadOptions.group||n.group).length;a&&t.cachedPagingData?t.data=e(t.cachedPagingData,c):(r&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,o.normalizeSortingInfo(t.storeLoadOptions.group).length)),new l(t.data).load(n).done(function(e){t.data=e}),r&&(this._cachedPagingData=e(t.data,c))),n.requireTotalCount&&i&&(t.extra=s.isPlainObject(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),this._handleDataLoadedCore(t),t.storeLoadOptions=t.originalStoreLoadOptions},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.changed.fire({changeType:"loadError",error:e}),this.loadError.fire(e)},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,o=!1,a=n.itemsCount();n._isLastPage=!a||!n.pageSize()||a<n.pageSize(),n._isLastPage&&(n._hasLastPage=!0),i.totalCount()>=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),i.load(),o=!0):(t=i.pageIndex()*n.pageSize()+a,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===a&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),o=!0))),o||(this.component._optionCache={},this.changed.fire(e),this.component._optionCache=void 0)},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount(),n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e){var t=this._dataSource,n=i.Deferred();if(t)return t.store().load(e).done(function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),n.resolve(e,t)}).fail(n.reject),n},load:function(e){var t,o,a,s=this,r=s._dataSource,l=i.Deferred();return e?(t=r.store(),a=r.loadOptions(),o={storeLoadOptions:e,isCustomLoading:!0},i.each(t._customLoadOptions()||[],function(e,t){t in o.storeLoadOptions||(o.storeLoadOptions[t]=a[t])}),r._scheduleLoadCallbacks(l),s._handleDataLoading(o),n(function(){r.store()&&c(o.data||s.loadFromStore(o.storeLoadOptions)).done(function(n,i){o.data=n,o.extra=i||{},s._handleDataLoaded(o),e.requireTotalCount&&void 0===o.extra.totalCount&&(o.extra.totalCount=t.totalCount(o.storeLoadOptions)),c(o.data,o.extra.totalCount).done(function(e,t){o.extra.totalCount=t,l.resolve(e,o.extra)}).fail(l.reject)}).fail(l.reject)},s.option("loadingTimeout")),l.fail(function(){s.fireEvent("loadError",arguments)}).promise()):r.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()}}}())},function(e,t,n){var i=n(9),o=n(351),a=n(350),s=n(159),r=n(163),l=n(22),c=n(14),d=n(11).extend,u=n(153),h=c.equalByValue,p=n(16).when;e.exports={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:o.Controller.inherit({}).include(u).inherit(function(){var e={init:function(){var e=this;e._items=[],e._columnsController=e.getController("columns"),e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._dataChangedHandler=e._handleDataChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add(function(t){return e.executeAction("onDataErrorOccurred",{error:t})}),e._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},optionChanged:function(e){function t(){e.handled=!0}function n(){i._columnsController.reset(),i._items=[],i._refreshDataSource()}var i=this;if("dataSource"===e.name&&e.name===e.fullName&&e.value===e.previousValue)return t(),void i.refresh();switch(e.name){case"cacheEnabled":case"loadingTimeout":case"remoteOperations":t();break;case"keyExpr":case"dataSource":case"scrolling":case"paging":t(),n();break;case"rtlEnabled":n();break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n,i=this,o=i._dataSource,s=i._columnsController;return o&&(void 0===e&&(e=o.filter()),n=i._calculateAdditionalFilter(),n&&(s.isDataSourceApplied()||s.isAllDataTypesDefined())&&(e=a.combineFilters([n,e])),e=s.updateFilter(e,t||o.remoteOperations().filtering)),e},_endUpdateCore:function(){var e=this._changes;e.length&&(this._changes=[],this.updateItems(1===e.length?e[0]:{}))},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._isFirstLoading),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping),this._isFirstLoading=!1)},_handleColumnsChanged:function(e){var t,n,i=this,o=e.changeTypes,s=e.optionNames,r=function(){i._columnsController.columnsChanged.remove(r),i.updateItems()};if(o.sorting||o.grouping)i._dataSource&&!i._columnsUpdating&&(i._dataSource.group(i._columnsController.getGroupDataSourceParameters()),i._dataSource.sort(i._columnsController.getSortDataSourceParameters()),i.reload()),i.pageChanged.fire();else if(o.columns&&((s.filterValues||s.filterValue||s.selectedFilterOperation)&&(t=i._columnsController.columnOption(e.columnIndex,"filterValue"),n=i._columnsController.columnOption(e.columnIndex,"filterValues"),(Array.isArray(n)||void 0===e.columnIndex||c.isDefined(t)||!s.selectedFilterOperation||s.filterValue)&&i._applyFilter()),i._needApplyFilter||a.checkChanges(s,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||i._columnsController.columnsChanged.add(r),c.isDefined(s.visible))){var l=i._columnsController.columnOption(e.columnIndex);l&&(c.isDefined(l.filterValue)||c.isDefined(l.filterValues))&&i._applyFilter()}},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,o=i.isAllDataTypesDefined(),a=!1;n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,p(t._columnsController.applyDataSource(n)).done(function(){t._isLoading&&t._handleLoadingChanged(!1),a&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n=t._calculateAdditionalFilter(),i=t._needApplyFilter;t._needApplyFilter=!1,i&&n&&n.length&&!o?(l.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e)}).fail(function(){t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(a=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),a="infinite"===o,s="virtual"===o;e.requireTotalCount(!a),void 0!==i&&e.paginate(i||s||a),void 0!==n&&e.pageSize(n),void 0!==t&&e.pageIndex(t)},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._isFirstLoading=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this._dataSource,t=i.Deferred();return p(this._columnsController.refresh(!0)).always(function(){e?e.load().done(t.resolve).fail(t.reject):t.resolve()}),t.promise()},_processItems:function(e,t){var n=this,o=n._columnsController.getVisibleColumns(),a=n._items,s="append"===t&&a.length>0?a[a.length-1].dataIndex+1:0,r={visibleColumns:o,dataIndex:s},l=[];return i.each(e,function(e,t){c.isDefined(t)&&(r.rowIndex=e,t=n._processItem(t,r),l.push(t))}),l},_processItem:function(e,t){return e=this._generateDataItem(e),e=this._processDataItem(e,t),e.dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t){for(var n,i,o=[],a=0;a<t.length;a++)n=t[a],i=null,n.command?i=null:n.calculateCellValue?i=n.calculateCellValue(e):n.dataField&&(i=e[n.dataField]),o.push(i);return o},_updateItemsCore:function(e){var t,n=this,o=n._dataSource,a=e.changeType||"refresh";if(e.changeType=a,o){switch(t=e.items||o.items(),t=n._processItems(t.slice(0),a),e.items=t,a){case"prepend":n._items.unshift.apply(n._items,t);break;case"append":n._items.push.apply(n._items,t);break;case"update":var s=-1,r=e.rowIndices.slice(0),l=0;r.sort(function(e,t){return e-t});for(var c=0;c<r.length;c++)r[c]<0&&(r.splice(c,1),c--);e.items=[],e.rowIndices=[],e.changeTypes=[];var d=function(e,t,n){var i=e&&t&&h(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};i.each(r,function(i,o){var r,c,u,h,p;if(o+=l,s!==o){if(s=o,r=n._items[o],u=n._items[o+1],c=t[o],h=t[o+1],p=d(r,u)||d(c,h),c&&e.items.push(c),r&&c&&d(r,c,p))a="update",n._items[o]=c,r.visible!==c.visible&&e.items.splice(-1,1,{visible:c.visible});else if(c&&!r||h&&d(r,h,p))a="insert",n._items.splice(o,0,c),l++;else if(r&&!c||u&&d(c,u,p))a="remove",n._items.splice(o,1),l--,s=-1;else{if(!c)return;a="update",n._items[o]=c}e.rowIndices.push(o),e.changeTypes.push(a)}});break;default:n._items=t.slice(0)}i.each(n._items,function(e,t){t.rowIndex=e})}else n._items=[]},updateItems:function(e){e=e||{};var t=this;return t._updateLockCount?void t._changes.push(e):(t._updateItemsCore(e),void c.deferRender(function(){t.changed.fire(e)}))},

isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(e){this.loadingChanged.fire(this.isLoading(),e)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function(e){var t=this._dataSource,n=t.filter();return 0===arguments.length?t?t.filter():void 0:(e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,void(a.equalFilterParameters(n,e)||(t&&t.filter(e),this._applyFilter())))},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){var t,i=n.columnCount();for(t=0;t<i;t++)n.columnOption(t,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this,t=function(){e.changed.remove(t),e.dataSourceChanged.fire()};e.changed.add(t)},_getDataSourceAdapter:c.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter(),i=n.create(this.component);return i.init(e,t),i},isLocalStore:function(e){return e=e||this.store(),e instanceof s},isCustomStore:function(e){return e=e||this.store(),e instanceof r},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=d({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),t===!0&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=i.Deferred(),o=t._dataSource;if(o)if(e){var a={data:e,isCustomLoading:!0,storeLoadOptions:{},loadOptions:{group:o.group(),sort:o.sort()}};o._handleDataLoaded(a),p(a.data).done(function(e){n.resolve(t._processItems(e,"loadingAll"),a.extra&&a.extra.summary)}).fail(n.reject)}else if(t.isLoading())n.reject();else{var s=d({},o.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});o.load(s).done(function(e,i){e=t._processItems(e.slice(0),"loadingAll"),n.resolve(e,i&&i.summary)}).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e){var t=this.items()[e];if(t)return t.key},getRowIndexByKey:function(e){return a.getIndexByKey(e,this.items())},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),o=this.getRowIndexByKey(e);if(n)return o>=0&&(t=i.Deferred().resolve(this.items()[o].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=i.Deferred(),o=[],a=[];return i.each(e,function(e,n){o.push(t.byKey(n).done(function(t){a[e]=t}))}),p.apply(i,o).always(function(){n.resolve(a)}),n},pageIndex:function(e){var t=this,n=t.option("paging"),i=t._dataSource;return i?void 0!==e&&i.pageIndex()!==e?(i.pageIndex(e),n&&(n.pageIndex=e),i.load().done(t.pageChanged.fire.bind(t.pageChanged))):i.pageIndex():0},pageSize:function(e){var t=this,n=t.option("paging"),i=t._dataSource;return void 0===e?i?i.pageSize():0:i&&i.pageSize()!==e?(i.pageIndex(0),i.pageSize(e),n&&(n.pageSize=e),i.reload().done(t.pageChanged.fire.bind(t.pageChanged))):void 0},beginCustomLoading:function(e){this._isCustomLoading=!0,this._fireLoadingChanged(e||"")},endCustomLoading:function(){this._isCustomLoading=!1,this._fireLoadingChanged()},refresh:function(){var e=this,t=i.Deferred();return p(this._columnsController.refresh()).always(function(){p(e.reload(!0)).done(t.resolve).fail(t.reject)}),t},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},repaintRows:function(e){e=Array.isArray(e)?e:[e],(e.length>1||c.isDefined(e[0]))&&this.updateItems({changeType:"update",rowIndices:e})}};return a.proxyMethod(e,"load"),a.proxyMethod(e,"reload"),a.proxyMethod(e,"itemsCount",0),a.proxyMethod(e,"totalItemsCount",0),a.proxyMethod(e,"hasKnownLastPage",!0),a.proxyMethod(e,"isLoaded",!0),a.proxyMethod(e,"totalCount",0),e}())}}},function(e,t,n){var i=n(349),o=n(363);i.registerModule("sorting",o)},function(e,t,n){var i=n(9),o=n(76),a=n(14),s=n(11).extend,r=n(364),l=n(90),c=n(72),d="dxDataGridColumnHeadersView",u=s({},r,{_createRow:function(e){var t=this,n=t.callBase(e);return"header"===e.rowType&&n.on(c.addNamespace(o.name,d),"> td",t.createAction(function(e){var n=null,o=e.jQueryEvent,s=i(o.currentTarget),r=s.parent().index(),l=i.map(t.getCellElements(r),function(e,t){if(e===s.get(0))return t})[0],c=t._columnsController.getVisibleColumns(r),d=c[l],u=t.getController("editing"),h=t.option("editing.mode"),p=u&&u.isEditing()&&("batch"===h||"cell"===h);!p&&t._isSortableElement(i(o.target))&&(!d||a.isDefined(d.groupIndex)||d.command||(o.shiftKey?n="shift":o.ctrlKey&&(n="ctrl"),setTimeout(function(){t._columnsController.changeSortOrder(d.index,n)})))})),n},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;return 1===t.length&&t.sorting?void this._updateIndicators("sort"):void this.callBase(e)},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}}),h=s({},r,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.on(c.addNamespace(o.name,"dxDataGridHeaderPanel"),n.createAction(function(){setTimeout(function(){n.getController("columns").changeSortOrder(t.index)})})),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:l.format("dxDataGrid-sortingAscendingText"),descendingText:l.format("dxDataGrid-sortingDescendingText"),clearText:l.format("dxDataGrid-sortingClearText")}}},extenders:{views:{columnHeadersView:u,headerPanel:h}}}},function(e,t,n){var i=n(14),o="dx-sort",a="dx-sort-none",s="dx-sort-up",r="dx-sort-down",l="action";e.exports={_applyColumnState:function(e){var t,n,a,c=this,d=c.option("sorting.mode"),u=e.rootElement,h=e.column,p=c._getIndicatorContainer(u);return"sort"===e.name?(t=c.option("rtlEnabled")?"right":"left",u.find("."+o).remove(),!p.children().length&&p.remove(),(("single"===d||"multiple"===d)&&h.allowSorting||i.isDefined(h.sortOrder))&&(n="asc"===h.sortOrder?"ascending":"descending",a=c.callBase(e).toggleClass(s,"asc"===h.sortOrder).toggleClass(r,"desc"===h.sortOrder),e.rootElement.addClass(c.addWidgetPrefix(l))),i.isDefined(h.sortOrder)?c.setAria("sort",n,u):c.setAria("sort","none",u),a):c.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?o:this.callBase(e)},_renderIndicator:function(e){var t,n=e.column,o=e.container,s=e.indicator;return"sort"===e.name&&(t=this.option("rtlEnabled"),i.isDefined(n.sortOrder)||s&&s.addClass(a),o.children().length&&(!t&&"left"===e.columnAlignment||t&&"right"===e.columnAlignment))?void o.prepend(s):void this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!i.isDefined(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not("."+a)}}},function(e,t,n){var i=n(349),o=n(366);t.RowsView=o.views.rowsView,i.registerModule("rows",o)},function(e,t,n){var i=n(9),o=n(14),a=n(11).extend,s=n(18),r=n(108).getDefaultAlignment,l=n(50).compileGetter,c=n(350),d=n(354),u=n(245),h=n(47),p=n(90),f=o.isDefined,m="rowsview",g="content",_="nowrap",v="dx-group-row",w="dx-group-cell",x="dx-data-row",y="dx-freespace-row",b="dx-row-lines",C="dx-column-lines",k="dx-row-alt",I="dx-last-row-border",S=200;e.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:p.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:p.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:d.ColumnsView.inherit(function(){var e={render:function(e){var t=e.container.find("tbody");t.length?t.last().append(e.content):e.container.append(e.content)}};return{_getDefaultTemplate:function(e){switch(e.command){case"empty":return function(e){e.html(" ")};default:return function(t,n){var i=s.isEmpty(n.text)&&"data"===n.rowType,o=i?" ":n.text,a=t.get(0);e.encodeHtml&&!i?a.textContent=o:a.innerHTML=o}}},_getDefaultGroupTemplate:function(e){var t=this,n=t.option("summary.texts");return function(t,i){var o=i.data,a=i.column.caption+": "+i.text,s=t.get(0);i.summaryItems&&i.summaryItems.length&&(a+=" "+c.getGroupRowSummaryText(i.summaryItems,n)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?a+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?a+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(a+=" ("+i.groupContinuedMessage+")")),t.addClass(w),e.encodeHtml?s.textContent=a:s.innerHTML=a}},_update:function(){},_getCellTemplate:function(e){var t,n=this,i=e.column;return t="group"===e.rowType&&f(i.groupIndex)&&!i.showWhenGrouped?i.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultGroupTemplate(i)}:i.cellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultTemplate(i)}},_createRow:function(e){var t,n,i,o=this.callBase(e);return e&&(t="group"===e.rowType,n="data"===e.rowType,n&&o.addClass(x),n&&e.dataIndex%2===1&&this.option("rowAlternationEnabled")&&o.addClass(k),n&&this.option("showRowLines")&&o.addClass(b),this.option("showColumnLines")&&o.addClass(C),e.visible===!1&&o.hide(),t&&(o.addClass(v),i=e.isExpanded,this.setAria("role","rowgroup",o),this.setAria("expanded",f(i)&&i.toString(),o))),o},_afterRowPrepared:function(e){var t=e.args[0],n=this._dataController,i=this.option("integrationOptions.watchMethod");if(t.data&&"data"===t.rowType&&!t.inserted&&this.option("twoWayBindingEnabled")&&i){var o=i(function(){return n.generateDataValues(t.data,t.columns)},function(){n.updateItems({changeType:"update",rowIndices:[t.rowIndex]})},{deep:!0,skipImmediate:!0});t.rowElement.on(h,o)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div />"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),o=!0,a=0;a<i.length;a++)if(!i[a].width&&!i[a].minWidth){o=!1;break}(t.option("columnAutoWidth")||t._hasHeight||o||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this;t._isScrollByEvent=!!e.jQueryEvent,t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left,t.scrollChanged.fire(e.scrollOffset,t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,n.onStop=i,t._scrollable=t._createComponent(e,u,n),t._scrollableContainer=t._scrollable&&t._scrollable._$container},_renderLoadPanel:c.renderLoadPanel,_renderContent:function(e,t){return e.replaceWith(i("
").addClass(this.addWidgetPrefix(g)).append(t)),this._findContentElement()},_updateContent:function(e,t){var n=this,o=n._getTableElement(),a=n._findContentElement(),s=t&&t.changeType,r=[];switch(s){case"update":i.each(t.rowIndices,function(i,a){var s=n._getRowElements(e).eq(i),l=t.changeTypes[i],c=t.items&&t.items[i];r.push(function(){var e=n._getRowElements(),t=e.eq(a);switch(l){case"update":c&&(f(c.visible)&&c.visible!==t.is(":visible")?t.toggle(c.visible):t.replaceWith(s));break;case"insert":e.length?t.length?s.insertBefore(t):s.insertAfter(e.last()):s.prependTo(o);break;case"remove":t.remove()}})}),i.each(r,function(){this()}),e.remove();break;default:n._setTableElement(e),a.addClass(n.addWidgetPrefix(g)),n._renderContent(a,e)}},_renderFreeSpaceRow:function(t){var n,i=this,o=i._createRow(),a=this.getColumns();for(o.addClass(y).toggleClass(C,i.option("showColumnLines")),n=0;n<a.length;n++)o.append(i._createCell({column:a[n],rowType:"freeSpace"}));i._appendRow(t,o,e)},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){var t=e.children("tbody").children().not("."+y);return t.toArray().reduce(function(e,t){return e+t.offsetHeight},0)},_updateRowHeight:function(){var e,t=this,n=t._getTableElement(),i=t._dataController.items().length;n&&t._needUpdateRowHeight(i)&&(e=t._getRowsHeight(n),t._rowHeight=e/i)},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+y)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+y)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",a({evaluate:function(e){var n=l(e);return n(t.data)}},e,t))},_getGroupCellOptions:function(e){var t=(e.row.groupIndex||0)+e.columnsCountBeforeGroups;return{columnIndex:t,colspan:e.columns.length-t-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){var n,i,o,s,l=t.row,c=t.columns,d=l.rowIndex,u=this._getGroupCellOptions(t);for(n=0;n<=u.columnIndex;n++)i=n===u.columnIndex&&c[n].allowCollapsing&&"infinite"!==t.scrollingMode?!!l.isExpanded:null,this._renderCell(e,{value:i,row:l,rowIndex:d,column:{command:"expand",cssClass:c[n].cssClass},columnIndex:n});s=r(this.option("rtlEnabled")),o=a({},c[u.columnIndex],{command:null,cssClass:null,showWhenGrouped:!1,alignment:s}),u.colspan>1&&(o.colspan=u.colspan),this._renderCell(e,{value:l.values[l.groupIndex],row:l,rowIndex:d,column:o,columnIndex:u.columnIndex})},_renderRows:function(e,t){var n,i=this,o=t.columns,s=0,r=i.option("scrolling.mode");for(n=0;n<o.length;n++)if("expand"===o[n].command){s=n;break}i.callBase(e,a({scrollingMode:r,columnsCountBeforeGroups:s},t)),i._renderFreeSpaceRow(e),i._hasHeight||i.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,o=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||f(i.groupIndex)||!o?n.callBase(e,t):n.renderTemplate(e,o,a({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e),i=function(){var e=t.getScrollable();e&&t.element().closest(document).length&&(t.resizeCompleted.remove(i),e._visibilityChanged(!0))};return f(t._getTableElement())?t._renderScrollable():(t._setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(i)),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.element()),e},_renderCore:function(e){var t,n=this,i=n.element();i.addClass(n.addWidgetPrefix(m)).toggleClass(n.addWidgetPrefix(_),!n.option("wordWrapEnabled")),t=n._renderTable({change:e}),n._updateContent(t,e),n.callBase(e),n._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t,n,i,o=this,a=e.column,s=e.row,r=s.data,l=s&&s.summaryCells,d=e.value,u=c.getDisplayValue(a,d,r,s.rowType);return t=this.callBase(e),t.value=d,t.displayValue=u,t.row=s,t.key=s.key,t.data=r,t.rowType=s.rowType,t.values=s.values,t.text=a.command?"":c.formatValue(u,a),t.rowIndex=s.rowIndex,t.summaryItems=l&&l[e.columnIndex],t.resized=a.resizedCallbacks,f(a.groupIndex)&&(n=o.option("grouping.texts"),i=o.option("scrolling.mode"),"virtual"!==i&&"infinite"!==i&&(t.groupContinuesMessage=r&&r.isContinuationOnNextPage&&n&&n.groupContinuesMessage,t.groupContinuedMessage=r&&r.isContinuation&&n&&n.groupContinuedMessage)),t},renderNoDataText:c.renderNoDataText,getCellOptions:function(e,t){var n,i,o=this._dataController.items()[e];return o&&(i=this._columnsController.columnOption(t),i&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i}))),n},getRow:function(e){var t=this._getRowElements();if(t.length>e)return i(t[e])},getCellIndex:function(e){var t=e.length?e[0].cellIndex:-1;return t},updateFreeSpaceRowHeight:function(e){var t,n,i=this,a=i._dataController.items().length,s=i._findContentElement(),r=i._getFreeSpaceRowElements(e);if(r&&s){var l=!1;a>0?i._hasHeight?(r.css("display","none"),o.deferUpdate(function(){var e=i.getScrollbarWidth(!0),t=i.element().height()-e,n=s.outerHeight(),a=t-n>0,c=i._getRowsHeight(s.children().first()),d=t-c;a&&o.deferRender(function(){r.height(d),l=!0,r.css("display","")}),o.deferRender(function(){i._updateLastRowBorder(l)})})):(t=i._dataController.pageSize()-a,n=i.option("scrolling.mode"),t>0&&i._dataController.pageCount()>1&&"virtual"!==n&&"infinite"!==n&&(r.height(t*i._rowHeight),l=!0),!l&&e?r.height(0):r.css("display",l?"":"none"),i._updateLastRowBorder(l)):(r.height(0),r.css("display",""),i._updateLastRowBorder(!0))}},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._hasHeight=!1,t.loadingChanged.add(function(t,n){e.setLoading(t,n)}),t.dataSourceChanged.add(function(){e._handleScroll({scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})})},_handleDataChanged:function(e){var t=this;switch(e.changeType){case"refresh":case"prepend":case"append":case"update":t.render(null,e);break;default:t._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var t=this._scrollableContainer&&this._scrollableContainer.get(0),n=0;return t&&(n=e?t.clientHeight?t.offsetHeight-t.clientHeight:0:t.clientWidth?t.offsetWidth-t.clientWidth:0),n>0?n:0},_fireColumnResizedCallbacks:function(){var e,t=this,n=t._lastColumnWidths||[],i=[],o=t.getColumns();for(e=0;e<o.length;e++)i[e]=o[e].visibleWidth,o[e].resizedCallbacks&&!f(o[e].groupIndex)&&n[e]!==i[e]&&o[e].resizedCallbacks.fire(i[e]);t._lastColumnWidths=i},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(I):this.element().removeClass(I)},_updateScrollable:function(){var e=u.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),o.deferRender(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight()}),e._updateScrollable(),e.setLoading(e._dataController.isLoading())},scrollTo:function(e){var t=this.element(),n=t&&u.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,i=this.element();return f(e)?(n._hasHeight=void 0===t?"auto"!==e:t,void(i&&i.css("height",e))):i?i.outerHeight(!0):0},setLoading:function(e,t){var n,i=this,o=i._loadPanel,a=i._dataController,s=i.option("loadPanel")||{},r=a.isLoaded()?s.animation:null,l=i.element();!o&&void 0!==t&&a.isLocalStore()&&"auto"===s.enabled&&l&&(i._renderLoadPanel(l,l.parent()),o=i._loadPanel),o&&(n={message:t||s.text,animation:r,visible:e},clearTimeout(i._hideLoadingTimeoutID),o.option("visible")&&!e?i._hideLoadingTimeoutID=setTimeout(function(){o.option(n)},S):o.option(n))},setRowsOpacity:function(e,t){var n,a=this,s=a._columnsController,r=a.getColumns(),l=s.getColumns(),c=l&&l[e],d=c&&c.isBand&&c.index,u=a._getRowElements().not("."+v)||[];i.each(u,function(l,c){if(!i(c).hasClass(v))for(n=0;n<r.length&&(!(o.isNumeric(d)&&s.isParentBandColumn(r[n].index,d)||r[n].index===e)||(a.getCellElements(l).eq(n).css({opacity:t}),o.isNumeric(d)));n++);})},_getCellElementsCore:function(e){var t,n=this.callBase(e);return n&&(t=n.filter("."+w).index(),t>=0&&n.length>t+1&&(n.length=t+1)),n},getTopVisibleItemIndex:function(){var e,t,n=this,i=0,o=0,a=0,s=n._scrollTop,r=n._findContentElement().offset().top,l=n._dataController.items(),c=n._getTableElement();if(l.length&&c){for(e=c.children("tbody").children(".dx-row:visible, .dx-error-row").not("."+y),i=0;i<l.length;i++)if(o=a,t=e.eq(i),t.length&&(a=t.offset().top-r,a>s)){2*s<a+o&&i&&i--;break}i&&i===l.length&&i--}return i},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,!0),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID)},setScrollerSpacing:function(){}}}())}}},function(e,t,n){var i=n(349),o=n(368);i.registerModule("contextMenu",o)},function(e,t,n){var i=n(9),o=n(14).noop,a=n(351),s=n(339),r="dx-context-menu",l={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},c=["columnHeadersView","rowsView","footerView","headerPanel"],d=a.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,o,a,s,r,d,u,h,p=this,f=i(e.target);return i.each(c,function(){if(t=p.getView(this),r=t&&t.element(),r&&(r.is(f)||r.find(f).length)&&(u=f.closest("td"),d=u.closest(".dx-row"),o=t.getRowIndex(d),a=u[0]&&u[0].cellIndex,s=d.data("options"),n={jQueryEvent:e,targetElement:f,target:l[this],rowIndex:o,row:t._getRows()[o],columnIndex:a,column:s&&s.cells[a].column},n.items=t.getContextMenuItems&&t.getContextMenuItems(n),p.executeAction("onContextMenuPreparing",n),p._contextMenuPrepared(n),h=n.items))return!1}),h},_contextMenuPrepared:o}),u=a.View.inherit({_renderCore:function(){var e=this;this._createComponent(e.element().addClass(r),s,{onPositioning:function(t){var n=t.jQueryEvent,i=t.component,o=e.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.element()})}});e.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:d},views:{contextMenuView:u}}},function(e,t,n){var i=n(349),o=n(370);i.registerModule("errorHandling",o)},function(e,t,n){var i=n(9),o=n(76),a=n(351),s="dx-error-row",r="dx-error-message",l="dx-closebutton",c="action",d=a.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),e._rowsView=e.getView("rowsView")},_createErrorRow:function(e,t){var n,a,d=this,u=i("<div/>").addClass(r).text(e);return t?(n=i("
").addClass(s),a=i("<div/>").addClass(l).addClass(d.addWidgetPrefix(c)),a.on(o.name,d.createAction(function(e){var n,o=e.jQueryEvent,a=i(o.currentTarget).closest("."+s).index();o.stopPropagation(),i.each(t,function(e,t){n=i(t).children("tbody").children("tr").eq(a),d.removeErrorRow(n)})})),i(""+s+"</tr>"};for(n=0;n<o.length;n++){var c=i._getCellClasses(o[n]),u=c.length?" class='"+c.join(" ")+"'":"";s+="<td"+u+"/>"}for(;t>x;)a+=l(x),t-=x;a+=l(t),e.addClass(i.addWidgetPrefix(d)),e.html(a)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix(p)),t},_findBottomLoadPanel:function(){var e=this.element(),t=e&&e.find("."+this.addWidgetPrefix(u));if(t&&t.length)return t},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===w,o=t===v,a=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||o),s=e._findBottomLoadPanel();a?s||i("
").addClass(e.addWidgetPrefix(u)).append(e._createComponent(i("
"),c).element()).appendTo(e._findContentElement()):s&&s.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._setViewportScrollTop(e.scrollOffset.top),t.callBase.apply(t,arguments)},_setViewportScrollTop:function(e){var t=this,n=Math.min(t.option("scrolling.timeout")||0,t._renderTime||0);clearTimeout(t._scrollTimeoutID),n>0?t._scrollTimeoutID=setTimeout(function(){t._setViewportScrollTopCore(e)},n):t._setViewportScrollTopCore(e)},_setViewportScrollTopCore:function(e){var t=this,n=t._dataController.virtualItemsCount(),i=t._heightRatio||1,o=t._rowHeight,a=n?Math.floor(n.begin*o*i):0;n&&e>=a&&e<=a+t._contentTableHeight?t._dataController.setViewportItemIndex(n.begin+(e-a)/o):t._dataController.setViewportItemIndex(e/(o*i))},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===v},_updateRowHeight:function(){var e,t=this;t.callBase.apply(t,arguments),t._rowHeight&&(t._updateContentPosition(),e=t._hasHeight?t.element().outerHeight():i(window).outerHeight(),t._dataController.viewportSize(Math.round(e/t._rowHeight)))},setLoading:function(e,t){var n=this,i=n.callBase,o=n._dataController,a=o.pageIndex()>0&&o.isLoaded()&&!!n._findBottomLoadPanel();a&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.element()&&!e._windowScroll&&t.closest(document).length&&(e._windowScroll=a.subscribeToExternalScrollers(t,function(t){!e._hasHeight&&e._rowHeight&&e._setViewportScrollTop(t)},e.component.element()),e.on("disposing",function(){e._windowScroll.dispose()}));var n=e._dataController.dataSource();n&&n.loadIfNeed&&n.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(f)).children(":not(."+this.addWidgetPrefix(h)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}();e.exports={defaultOptions:function(){return{scrolling:{timeout:300,mode:"standard",preloadEnabled:!1}}},extenders:{dataSourceAdapter:C,controllers:{data:function(){var e={getRowIndexOffset:function(){var e=0,t=this.dataSource();return"virtual"===this.option("scrolling.mode")&&t&&(e=t.beginPageIndex()*t.pageSize()),e}};return s.proxyMethod(e,"virtualItemsCount"),s.proxyMethod(e,"viewportSize"),s.proxyMethod(e,"setViewportItemIndex"),e}()},views:{rowsView:k}}}},function(e,t,n){var i=n(9),o=n(23),a=n(71),s=n(25),r="infinite",l="virtual",c=function(e){return e.option("scrolling.mode")===l},d=function(e){return e.option("scrolling.mode")===r};t.getContentHeightLimit=function(e){return e.msie?4e6:e.mozilla?8e6:15e6},t.subscribeToExternalScrollers=function(e,t,n){function o(t){var n=t.element?t.element():t,i=a.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}function s(e){return function(){var n=e.scrollTop()-o(e);n=n>0?n:0,t(n)}}function r(e){var t,n="#document"===e.get(0).nodeName,a=e.data("dxScrollable")||n&&i(window)||"auto"===e.css("overflow-y")&&e;a&&(t=s(a),a.on("scroll",t),d.push(function(e){var t=o(a),n=a.scrollTo?"scrollTo":"scrollTop";e-t>=0&&a[n](e+t)}),c.push(a),u.push(function(){a.off("scroll",t)}))}var l,c=[],d=[],u=[];for(n=n||e,l=n.parent();l.length;l=l.parent())r(l);return{scrollTo:function(e){i.each(d,function(t,n){n(e)})},dispose:function(){i.each(u,function(e,t){t()})}}},t.VirtualScrollController=s.inherit(function(){var e=function(e){var t=e._dataSource.pageSize(),n=e.option("scrolling.preventPreload");return n?0:t&&e._viewportSize>0?Math.ceil(e._viewportSize/t):1},n=function(t,n){var i=t.option("scrolling.preloadEnabled"),o=e(t);return o&&(n?o=i?1:0:(i&&o++,d(t)&&o--)),o},a=function(e){var t,i,o,a=-1,l=s(e),c=e._dataSource;return l<0||!e._cache[e._pageIndex-l]?a=e._pageIndex:l>=0&&e._viewportSize>=0&&(l>0&&(o=r(e)+1===c.pageCount()&&e._cache.length<n(e)+1,i=o||e._pageIndex===l&&n(e,!0),i&&(a=l-1)),a<0&&(t=l+e._cache.length<=e._pageIndex+n(e),t&&(a=l+e._cache.length))),a},s=function(e){return e._cache.length?e._cache[0].pageIndex:-1},r=function(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1},l=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},u=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,l(e,t,n),!0},h=function(e,t,n,i){var o,a=e._dataSource,s=a.items();n&&!e._isDelayChanged&&(o={changeType:n,items:s});var r=e._dataSource.viewportItems();"append"===n?r.push.apply(r,s):"prepend"===n?r.unshift.apply(r,s):e._dataSource.viewportItems(s),a.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||l(e,t,o)},p=function(e,t){var n=e._dataSource;if(t===e.pageIndex()||!n.isLoading()&&t<n.pageCount()||!n.hasKnownLastPage()&&t===n.pageCount())return n.pageIndex(t),n.load()};return{ctor:function(e,t){var n=this;n._dataSource=t,n.component=e,n._pageIndex=n._lastPageIndex=t.pageIndex(),n._viewportSize=0,n._viewportItemSize=20,n._viewportItemIndex=-1,n._sizeRatio=1,n._items=[],n._cache=[]},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var e,t,n,i=this,o=0;if(c(i))return e=s(i),e<0&&(e=i._dataSource.pageIndex()),t=e*i._dataSource.pageSize(),o=i._cache.length*i._dataSource.pageSize(),n=Math.max(0,i._dataSource.totalItemsCount()-o-t),{begin:t,end:n}},_setViewportPositionCore:function(e,t){var n=this,i=Math.min(n.option("scrolling.timeout")||0,n._dataSource.changingDuration());t&&i<n.option("scrolling.renderingThreshold")&&(i=10),clearTimeout(n._scrollTimeoutID),i>0?n._scrollTimeoutID=setTimeout(function(){n.setViewportItemIndex(e)},i):n.setViewportItemIndex(e)},getViewportPosition:function(){return this._position||0},setViewportPosition:function(e){var t=this,n=t.virtualItemsCount(),i=t._sizeRatio||1,o=t._viewportItemSize,a=n?Math.floor(n.begin*o*i):0;t._position=e,n&&e>=a&&e<=a+t._contentSize?t._setViewportPositionCore(n.begin+(e-a)/o,!0):t._setViewportPositionCore(e/(o*i))},setContentSize:function(e){var n=this,i=n.virtualItemsCount();if(n._contentSize=e,i){var a=(i.begin+i.end+n.itemsCount())*n._viewportItemSize,s=t.getContentHeightLimit(o);a>s?n._sizeRatio=s/a:n._sizeRatio=1}},getContentOffset:function(){var e=this,t=e.virtualItemsCount();return t?Math.floor(t.begin*e._viewportItemSize*e._sizeRatio):0},getVirtualContentSize:function(){var e=this,t=e.virtualItemsCount();return t?(t.begin+t.end)*e._viewportItemSize*e._sizeRatio+e._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){var t,n,i,o=this,a=o._dataSource.pageSize(),s=o._dataSource.pageCount(),r=c(o),l=d(o),u=o._dataSource.totalItemsCount(),h=o._viewportItemIndex<0;o._viewportItemIndex=e,a&&(r||l)&&u>=0&&(o._viewportSize&&e+o._viewportSize>=u?o._dataSource.hasKnownLastPage()?(i=s-1,t=u%a,i>0&&t>0&&t<a/2&&i--):i=s:(i=Math.floor(e/a),n=s-1,i=Math.max(i,0),i=Math.min(i,n)),(o.pageIndex()!==i||h)&&(o.pageIndex(i),o.load()))},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},pageIndex:function(e){return c(this)||d(this)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataSource.pageIndex(e)},beginPageIndex:function(e){var t=s(this);return t<0&&(t=void 0!==e?e:this.pageIndex()),t},endPageIndex:function(){var e=r(this);return e>0?e:this._lastPageIndex},load:function(){var e,t,n=this._dataSource;return c(this)||d(this)?(e=a(this),e>=0&&(t=p(this,e)),n.updateLoading()):t=n.load(),t||this._lastPageIndex===this.pageIndex()||this._dataSource.onChanged({changeType:"pageIndex"}),t||i.Deferred().resolve()},loadIfNeed:function(){var e=this;!c(e)&&!d(e)||e._dataSource.isLoading()||e._isChangedFiring||e.load()},handleDataChanged:function(e){var t,i,o,a,p=this,f=p._dataSource,m=p._cache.length;if(c(p)||d(p)){if(t=s(p),t>=0&&(c(p)&&t+p._cache.length!==f.pageIndex()&&t-1!==f.pageIndex()&&(p._cache=[]),d(p)))if(0===f.pageIndex())p._cache=[];else if(f.pageIndex()<r(p))return void l(p,e,{changeType:"append",items:[]});a={pageIndex:f.pageIndex(),itemsCount:p.itemsCount(!0)},p.option("scrolling.removeInvisiblePages")?o=p._cache.length>Math.max(n(this),2):u(p,e,{isDelayed:!0}),t===f.pageIndex()+1?(o?p._cache.pop():i="prepend",p._cache.unshift(a)):(o?p._cache.shift():i="append",p._cache.push(a)),h(p,e,p._cache.length>1?i:void 0,0===m),p.load().done(function(){u(p,e)&&p.load()})}else h(p,e)},itemsCount:function(e){var t=0;return!e&&c(this)?i.each(this._cache,function(){t+=this.itemsCount}):t=this._dataSource.itemsCount(),t},reset:function(){this._cache=[]},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},function(e,t,n){var i=n(349),o=n(398);i.registerModule("filterRow",o)},function(e,t,n){function i(e){return"onClick"===e.option("filterRow.applyFilter")}var o=n(9),a=n(14),s=n(11).extend,r=n(351),l=n(350),c=n(90),d=n(107),u=n(110),h=n(399),p={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal","default":"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},f={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},m=700,g=1,_="filter-row",v="filter-range-overlay",w="filter-range-start",x="filter-range-end",y="dx-menu",b="dx-editor-with-menu",C="dx-editor-container",k="dx-editor-cell",I="dx-filter-menu",S="dx-apply-button",D="dx-highlight-outline",T="dx-focused",E="dx-cell-focus-disabled",A="dx-filter-range-content",B="input:not([type='hidden'])",M=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof d)return i},t=function(e,t){var i="",o="",s=n(e,t),r=l.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(s)?(i=l.formatValue(s[0],r),o=l.formatValue(s[1],r),""!==o&&(i+=" - "+o)):a.isDefined(s)&&(i=l.formatValue(s,r)),i},n=function(e,t){if(t)return i(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue},r=function(e,t){if(t)return i(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},S=function(e,t,i){var o=e._columnsController.columnOption(t),a=n(e,o),s=i.closest("."+e.addWidgetPrefix(v)).length,l=i.hasClass(e.addWidgetPrefix(w));return a&&Array.isArray(a)&&"between"===r(e,o)?l?a[0]:a[1]:s||void 0===a?null:a},D=function(e,t,i,o){if("between"===r(e,i)){var a=n(e,i);return o.hasClass(e.addWidgetPrefix(w))?[t,Array.isArray(a)?a[1]:void 0]:[Array.isArray(a)?a[0]:a,t]}return t},M=function(e,t){var n=""===t.value?null:t.value,o=t.container,s=e._columnsController.columnOption(t.column.index),r=S(e,s.index,o);(a.isDefined(r)||a.isDefined(n))&&(e._applyFilterViewController.setHighLight(o,r!==n),e._columnsController.columnOption(s.index,i(e)?"bufferedFilterValue":"filterValue",D(e,n,s,o),t.notFireEvent))};return{_updateEditorValue:function(t,n){var i=this,o=e(n);o&&o.option("value",S(i,t.index,n))},_columnOptionChanged:function(e){var n,i,a,s,c,d,u,h=this,p=e.optionNames;return l.checkChanges(p,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex?(i=h._columnsController.getVisibleIndex(e.columnIndex),a=h._columnsController.columnOption(e.columnIndex),s=h.getCellElement(h.element().find("."+h.addWidgetPrefix(_)).index(),i)||o(),c=s.find("."+C).first(),(p.filterValue||p.bufferedFilterValue)&&(h._updateEditorValue(a,c),n=s.find("."+h.addWidgetPrefix(v)).data("dxOverlay"),n&&(d=n.content().find("."+C),h._updateEditorValue(a,d.first()),h._updateEditorValue(a,d.last())),n&&n.option("visible")||h._updateFilterRangeContent(s,t(h,a))),void((p.selectedFilterOperation||p.bufferedSelectedFilterOperation)&&i>=0&&a&&(u=s.find("."+y),u.length&&(h._updateFilterOperationChooser(u,a,c),"between"===r(h,a)?h._renderFilterRangeContent(s,a):c.find("."+A).length&&(h._renderEditor(c,h._getEditorOptions(c,a)),h._hideFilterRange()))))):void h.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var i=this,a={},s=e.find(".dx-editor-container"),l=o("
").addClass(i.addWidgetPrefix(v)).appendTo(e);return i._createComponent(l,u,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!0,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:s.length&&s||e,offset:"0 -1"},contentTemplate:function(t){var s,r=o("
").addClass(C+" "+i.addWidgetPrefix(w)).appendTo(t);return n=i._columnsController.columnOption(n.index),s=i._getEditorOptions(r,n),s.sharedData=a,i._renderEditor(r,s),r.find(B).on("keydown",function(t){var n=e.find("[tabindex]").not(t.target).first();9===t.which&&t.shiftKey&&(t.preventDefault(),i._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),n.focus())}),r=o("
").addClass(C+" "+i.addWidgetPrefix(x)).appendTo(t),s=i._getEditorOptions(r,n),s.sharedData=a,i._renderEditor(r,s),r.find(B).on("keydown",function(t){9!==t.which||t.shiftKey||(t.preventDefault(),i._hideFilterRange(),e.next().find("[tabindex]").first().focus())}),t.addClass(i.getWidgetContainerClass())},onShown:function(e){var t=e.component.content().find("."+C).first();t.find(B).focus()},onHidden:function(){n=i._columnsController.columnOption(n.index),e.find("."+y).parent().addClass(b),"between"===r(i,n)&&(i._updateFilterRangeContent(e,t(i,n)),i.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(v)),o=i.length&&i.data("dxOverlay");!o&&t&&(o=n._initFilterRangeOverlay(e,t)),o.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=o,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+g}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this.callBase(e);return"filter"===e.rowType&&t.addClass(this.addWidgetPrefix(_)),t},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderCellContent:function(e,t){var n,i,a=this,s=t.column;"filter"===t.rowType&&(s.command?e.html(" "):s.allowFiltering&&(a.setAria("label",c.format("dxDataGrid-ariaColumn")+" "+s.caption+", "+c.format("dxDataGrid-ariaFilterCell"),e),e.addClass(k),n=o("
").appendTo(e),i=o("
").addClass(C).appendTo(n),"between"===r(a,s)?a._renderFilterRangeContent(e,s):a._renderEditor(i,a._getEditorOptions(i,s)),s.alignment&&e.find(B).first().css("text-align",s.alignment),s.filterOperations&&s.filterOperations.length&&a._renderFilterOperationChooser(n,s,i))),a.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,i=s({},t,{value:S(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:m,width:null,setValue:function(i,o){M(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===r(n,t)&&(e.hasClass(n.addWidgetPrefix(w))?i.placeholder=n.option("filterRow.betweenStartText"):i.placeholder=n.option("filterRow.betweenEndText")),i},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor(o("
").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var i=this,a=e.find("."+C).first();a.empty(),o("
").addClass(A).attr("tabindex",this.option("tabIndex")).on("focusin",function(){i._showFilterRange(e,n)}).appendTo(a),i._updateFilterRangeContent(e,t(i,n))},_updateFilterRangeContent:function(e,t){var n=e.find("."+A);n.length&&(""===t?n.html(" "):n.text(t))},_updateFilterOperationChooser:function(t,n,o){var a,s=this;s._createComponent(t,h,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:s.getWidgetContainerClass()+" "+E+" "+I,showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:p[r(s,n)||"default"],selectable:!1,items:s._getFilterOperationMenuItems(n)}],onItemClick:function(t){var a=t.itemData.name,l=r(s,n),c=!1,d=i(s),u={};if(!(t.itemData.items||a&&a===l)){if(a?(u[d?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=a,"between"!==a&&"between"!==l||(c="between"===a,u[d?"bufferedFilterValue":"filterValue"]=null)):(u[d?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null,u[d?"bufferedFilterValue":"filterValue"]=null),s._columnsController.columnOption(n.index,u),s._applyFilterViewController.setHighLight(o,!0),!a){var h=e(o);h&&"dxDateBox"===h.NAME&&!h.option("isValid")&&(h.reset(),h.option("isValid",!0))}c?s._showFilterRange(o.closest("."+k),n):s._focusEditor(o)}},onSubmenuShown:function(){a=s._isEditorFocused(o),s.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){var e=h.getInstance(t);t.blur(),e&&e.option("focusedElement",null),a&&s._focusEditor(o)},rtlEnabled:s.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass(T)||e.parents("."+T).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),e.find(B).focus()},_renderFilterOperationChooser:function(e,t,n){var i,a=this;a.option("filterRow.showOperationChooser")&&(e.addClass(b),i=o("
").prependTo(e),a._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],i=t.option("filterRow"),a=i&&i.operationDescriptions||{};return e.filterOperations&&e.filterOperations.length&&(n=o.map(e.filterOperations,function(n){var i=f[n];return{name:n,selected:(r(t,e)||e.defaultFilterOperation)===n,text:a[i],icon:p[n]}}),n.push({name:null,text:i&&i.resetOperationText,icon:p.default})),n},optionChanged:function(e){var t=this;switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}}}}(),R={_calculateAdditionalFilter:function(){var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns();return o.each(n,function(){var e;this.allowFiltering&&this.calculateFilterExpression&&a.isDefined(this.filterValue)&&(e=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow"),t.push(e))}),l.combineFilters(t)}};t.ApplyFilterViewController=r.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){i(this)&&(e&&e.toggleClass(D,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;n<t.length;n++)void 0!==t[n].bufferedFilterValue&&(e.columnOption(n,"filterValue",t[n].bufferedFilterValue),t[n].bufferedFilterValue=void 0),void 0!==t[n].bufferedSelectedFilterOperation&&(e.columnOption(n,"selectedFilterOperation",t[n].bufferedSelectedFilterOperation),t[n].bufferedSelectedFilterOperation=void 0);e.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(i(this)){var e=this.getView("columnHeadersView");e.element().find("."+this.addWidgetPrefix(_)+" ."+D).removeClass(D),this._getHeaderPanel().enableApplyButton(!1)}}}),e.exports={defaultOptions:function(){return{filterRow:{visible:!1,showOperationChooser:!0,showAllText:c.format("dxDataGrid-filterRowShowAllText"),resetOperationText:c.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:c.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:c.format("dxDataGrid-filterRowOperationEquals"),notEqual:c.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:c.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:c.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:c.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:c.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:c.format("dxDataGrid-filterRowOperationStartsWith"),contains:c.format("dxDataGrid-filterRowOperationContains"),notContains:c.format("dxDataGrid-filterRowOperationNotContains"),endsWith:c.format("dxDataGrid-filterRowOperationEndsWith"), between:c.format("dxDataGrid-filterRowOperationBetween")},betweenStartText:c.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:c.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:t.ApplyFilterViewController},extenders:{controllers:{data:R,columnsResizer:{_startResizing:function(){var e,t,n=this;n.callBase.apply(n,arguments),n.isResizing()&&(t=n._columnHeadersView.getFilterRangeOverlayInstance(),t&&(e=t.element().closest("td").index(),e!==n._targetPoint.columnIndex&&e!==n._targetPoint.columnIndex+1||t.content().hide()))},_endResizing:function(){var e,t,n=this;n.isResizing()&&(t=n._columnHeadersView.getFilterRangeOverlayInstance(),t&&(e=t.element().closest("td"),n._columnHeadersView._updateFilterRangeOverlay({width:e.outerWidth(!0)+g}),t.content().show())),n.callBase.apply(n,arguments)}}},views:{columnHeadersView:M,headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this._prepareFilterItem(e);return t.concat(e)},_prepareFilterItem:function(){var e=this,t=[];if(e._isShowApplyFilterButton()){var n=e.option("filterRow.applyFilterText"),i=e._columnsController.getColumns(),o=!i.filter(function(e){return void 0!==e.bufferedFilterValue}).length,a=function(t){t.element.addClass(e._getToolbarButtonClass(S))},s=function(){e._applyFilterViewController.applyFilter()},r={widget:"dxButton",options:{icon:"apply-filter",disabled:o,onClick:s,hint:n,text:n,onInitialized:a},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};t.push(r)}return t},_isShowApplyFilterButton:function(){var e=this.option("filterRow");return e&&e.visible&&"onClick"===e.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(e){this.setToolbarItemDisabled("applyFilterButton",!e)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}}}},function(e,t,n){e.exports=n(400)},function(e,t,n){var i=n(9),o=n(57),a=n(14),s=n(12),r=n(11).extend,l=n(72),c=n(77),d=n(104),u=n(341),h=n(110),p=n(401),f=n(202),m=n(381),g="dx-menu",_=g+"-vertical",v=g+"-horizontal",w=g+"-item",x=g+"-items-container",y=w+"-expanded",b="dx-context-menu",C=b+"-container-border",k="dx-context-menu-content-delimiter",I="dx-submenu",S="dx-state-disabled",D="dx-state-hover",T="dx-state-active",E=g+"-adaptive-mode",A=g+"-hamburger-button",B="up",M="down",R="left",O="right",P="showSubmenu",V="nextItem",F="prevItem",H={show:50,hide:300},L=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged"],z=u.inherit({_getDefaultOptions:function(){return r(this.callBase(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})},_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{animation:!0,selectedItem:!0})},_itemElements:function(){var e=this.callBase(),t=this._submenuItemElements();return e.add(t)},_submenuItemElements:function(){var e=[],t="."+w,n=this._submenus.length&&this._submenus[0];return n&&n.itemsContainer()&&(e=n.itemsContainer().find(t)),e},_focusTarget:function(){return this.element()},_isMenuHorizontal:function(){return"horizontal"===this.option("orientation")},_moveFocus:function(e){var t,n,i,o,a=this._getAvailableItems(),s=this._isMenuHorizontal(),r=this._getActiveItem(!0);switch(e){case B:n=s?P:this._getItemsNavigationOperation(F),t=s?r:a,i=this._getKeyboardNavigationAction(n,t),o=i();break;case M:n=s?P:this._getItemsNavigationOperation(V),t=s?r:a,i=this._getKeyboardNavigationAction(n,t),o=i();break;case O:n=s?this._getItemsNavigationOperation(V):P,t=s?a:r,i=this._getKeyboardNavigationAction(n,t),o=i();break;case R:n=s?this._getItemsNavigationOperation(F):P,t=s?a:r,i=this._getKeyboardNavigationAction(n,t),o=i();break;default:return this.callBase(e)}o&&0!==o.length&&this.option("focusedElement",o)},_getItemsNavigationOperation:function(e){var t=e;return this.option("rtlEnabled")&&(t=e===F?V:F),t},_getKeyboardNavigationAction:function(e,t){var n=a.noop;switch(e){case P:t.hasClass(S)||(n=this._showSubmenu.bind(this,t));break;case V:n=this._nextItem.bind(this,t);break;case F:n=this._prevItem.bind(this,t)}return n},_clean:function(){this.callBase(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)},_visibilityChanged:function(e){e&&this._dimensionChanged()},_isAdaptivityEnabled:function(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")},_dimensionChanged:function(){if(this._isAdaptivityEnabled()){var e=this.element().find("ul").first().children("li").children("."+w),t=0,n=this.element().outerWidth();e.each(function(e,n){t+=i(n).outerWidth(!0)}),this._toggleAdaptiveMode(t>n)}},_init:function(){this.callBase(),this._submenus=[]},_initActions:function(){this._actions={},i.each(L,function(e,t){this._actions[t]=this._createActionByOption(t)}.bind(this))},_render:function(){this._visibleSubmenu=null,this.callBase(),this.element().addClass(g),this._isAdaptivityEnabled()&&this._initAdaptivity(),this.setAria("role","menubar")},_renderHamburgerButton:function(){return this._hamburger=new f(i("
",{"class":A}),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.element()},_toggleTreeView:function(e){s.isPlainObject(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)},_toggleHamburgerActiveState:function(e){this._hamburger&&this._hamburger.element().toggleClass(T,e)},_toggleAdaptiveMode:function(e){var t=this.element().find("."+v),n=this.element().find("."+E);e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)},_removeAdaptivity:function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)},_treeviewItemClickHandler:function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)},_getAdaptiveOverlayOptions:function(){var e=this.option("rtlEnabled"),t=e?"right":"left";return{deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){this._toggleHamburgerActiveState(!1)}.bind(this),height:"auto",closeOnOutsideClick:function(e){return!i(e.target).closest("."+A).length},position:{collision:"flipfit",at:"bottom "+t,my:"top "+t,of:this._hamburger.element()}}},_getTreeViewOptions:function(){var e={},t=this,n=["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],o=["onItemContextMenu","onSelectionChanged"];return i.each(n,function(n,i){e[i]=t.option(i)}),i.each(o,function(n,i){e[i]=function(e){this._actions[i](e)}.bind(t)}),r(e,{animationEnabled:!!this.option("animation"),onItemClick:t._treeviewItemClickHandler.bind(t),onItemExpanded:function(e){this._overlay.repaint(),this._actions.onSubmenuShown(e)}.bind(t),onItemCollapsed:function(e){this._overlay.repaint(),this._actions.onSubmenuHidden(e)}.bind(t),selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})},_initAdaptivity:function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=i("
",{"class":E});var e=this._renderHamburgerButton();this._treeView=this._createComponent(i("
"),m,this._getTreeViewOptions()),this._overlay=this._createComponent(i("
"),h,this._getAdaptiveOverlayOptions()),this._overlay.content().append(this._treeView.element()).addClass(E).addClass(this.option("cssClass")),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.element()),this.element().append(this._$adaptiveContainer),this.option("templatesRenderAsynchronously")?this._resizeEventTimer=setTimeout(function(){this._dimensionChanged()}.bind(this),0):this._dimensionChanged()}},_getDelay:function(e){var t=this.option("showFirstSubmenuMode").delay;return a.isDefined(t)?a.isObject(t)?t[e]:t:H[e]},_renderContainer:function(){var e=i("
");return e.appendTo(this.element()).addClass(this._isMenuHorizontal()?v:_),this.callBase(e)},_renderSubmenuItems:function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n},_createSubmenu:function(e,t){var n=i("
").addClass(b).appendTo(t),o=this._getChildNodes(e),a=this._createComponent(n,p,r(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:o,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,a),a},_getSubmenuOptions:function(){var e=i("
"),t=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:e,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this.option("onItemRendered"),onLeftFirstItem:t?null:this._moveMainMenuFocus.bind(this,F),onLeftLastItem:t?null:this._moveMainMenuFocus.bind(this,V),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,t?F:null),onExpandLastSubmenu:t?this._moveMainMenuFocus.bind(this,V):null}},_getShowFirstSubmenuMode:function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return a.isObject(e)?e.name:e},_moveMainMenuFocus:function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter("."+y).eq(0),o=t.index(i);o+=e===F?-1:1,o>=n?o=0:o<0&&(o=n-1);var a=t.eq(o);this._hideSubmenu(this._visibleSubmenu),this.focus(),this.option("focusedElement",a)},_nestedItemOnSelectionChangedHandler:function(e){var t=e.addedItems.length&&e.addedItems[0],n=p.getInstance(e.element),i=this._actions.onSelectionChanged;i(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionSilent("selectedItem",t)},_clearSelectionInSubmenus:function(e,t){var n=this,o=!arguments.length;i.each(this._submenus,function(e,i){var a=i._itemContainer(),s=!a.is(t&&t._itemContainer()),r=a.find("."+n._selectedItemClass());if(s&&r.length||o){var l;r.removeClass(n._selectedItemClass()),l=n._getItemData(r),l&&(l.selected=!1),i._clearSelectedItems()}})},_clearRootSelection:function(){var e=this.element().find("."+x).first().children().children().filter("."+this._selectedItemClass());if(e.length){var t;t=this._getItemData(e),t.selected=!1,e.removeClass(this._selectedItemClass())}},_nestedItemOnItemClickHandler:function(e){this._actions.onItemClick(e)},_attachSubmenuHandlers:function(e,t){var n=this,o=t.getOverlayContent(),a=o.find("."+I),s=l.addNamespace(d.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),i.each(a,function(t,o){i(o).off(s).on(s,null,n._submenuMouseLeaveHandler.bind(n,e))})},_submenuOnShowingHandler:function(e,t){var n=e.children("."+C);this._actions.onSubmenuShowing({rootItem:e,submenu:t}),n.show(),e.addClass(y)},_submenuOnShownHandler:function(e,t){this._actions.onSubmenuShown({rootItem:e,submenu:t})},_submenuOnHidingHandler:function(e,t,n){var i=e.children("."+C),o=n;o.rootItem=e,o.submenu=t,this._actions.onSubmenuHiding(o),n=o,n.cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass(y))},_submenuOnHiddenHandler:function(e,t){this._actions.onSubmenuHidden({rootItem:e,submenu:t})},_submenuMouseLeaveHandler:function(e,t){var n=this,o=i(t.relatedTarget).parents("."+b)[0],a=n._getSubmenuByRootElement(e).getOverlayContent()[0];n.option("hideSubmenuOnMouseLeave")&&o!==a&&(n._clearTimeouts(),setTimeout(n._hideSubmenuAfterTimeout.bind(n),n._getDelay("hide")))},_hideSubmenuAfterTimeout:function(){if(this._visibleSubmenu){var e=i(this._visibleSubmenu.element().context).hasClass(D),t=this._visibleSubmenu.getOverlayContent().find("."+D).length;t||e||this._visibleSubmenu.hide()}},_getSubmenuByRootElement:function(e){if(!e)return!1;var t=e.children("."+b);return t.length&&p.getInstance(t)},getSubmenuPosition:function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(n){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o},_renderBorderElement:function(e){i("
").appendTo(e).addClass(C).hide()},_itemPointerDownHandler:function(e){var t=i(e.target),n=t.closest(this._itemElements());return n.hasClass("dx-menu-item-has-submenu")?void this.option("focusedElement",null):void this.callBase(e)},_hoverStartHandler:function(e){var t=l.addNamespace(c.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),o=a.isDefined(e.buttons)&&1===e.buttons||!a.isDefined(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(n.off(t),!this._hasChildren(i))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!o){var s=this._getSubmenuByElement(n);this._clearTimeouts(),s.isOverlayVisible()||(n.on(t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}},_hoverEndHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e),o=i(e.relatedTarget);t.callBase(e),t._clearTimeouts(),t._isItemDisabled(n)||o.hasClass(k)||t.option("hideSubmenuOnMouseLeave")&&!o.hasClass(x)&&(t._hideSubmenuTimer=setTimeout(function(){t._hideSubmenuAfterTimeout()},t._getDelay("hide")))},_hideVisibleSubmenu:function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)},_showSubmenu:function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&t.show(),this._visibleSubmenu=t,this._hoveredRootItem=e},_hideSubmenu:function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null},_itemMouseMoveHandler:function(e){if(!e.pointers||!e.pointers.length){var t=this,n=i(e.currentTarget);a.isDefined(t._showSubmenuTimer)&&(t._clearTimeouts(),t._showSubmenuTimer=setTimeout(function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)},t._getDelay("show")))}},_clearTimeouts:function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)},_getSubmenuByElement:function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)},_updateSubmenuVisibilityOnClick:function(e){var t,n=e.args.length&&e.args[0];if(n&&!this._disabledGetter(n.itemData)){if(t=this._getSubmenuByElement(n.itemElement,n.itemData),this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===t)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(t)return t.isOverlayVisible()?void 0:void this._showSubmenu(n.itemElement)}},_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"onSubmenuShowing":case"onSubmenuShown":case"onSubmenuHiding":case"onSubmenuHidden":this._initActions();break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),this.callBase(e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),this.callBase(e);break;default:this._isAdaptivityEnabled()&&this._treeView.option(e.name,e.value),this.callBase(e)}},_changeSubmenusOption:function(e,t){i.each(this._submenus,function(n,i){i.option(e,t)})},selectItem:function(e){this._hideSubmenu(this._visibleSubmenu),this.callBase(e)},unselectItem:function(e){this._hideSubmenu(this._visibleSubmenu),this.callBase(e)}});o("dxMenu",z),e.exports=z},function(e,t,n){var i=n(9),o=n(14).noop,a=n(71),s=n(11).extend,r=n(339),l="dx-context-menu-content-delimiter",c="dx-submenu",d=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{orientation:"horizontal",onHoverStart:o})},_initDataAdapter:function(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||this.callBase()},_renderContentImpl:function(){this._renderContextMenuOverlay(),this.callBase();var e=this._dataAdapter.getNodeByKey(this.option("_parentKey"));e&&this._renderItems(this._getChildNodes(e)),this._renderDelimiter()},_renderDelimiter:function(){this.$contentDelimiter=i("
").appendTo(this._itemContainer()).addClass(l)},_getOverlayOptions:function(){return s(this.callBase(),{onPositioned:this._overlayPositionedActionHandler.bind(this)})},_overlayPositionedActionHandler:function(e){this._showDelimiter(e)},_hoverEndHandler:function(e){this.callBase(e),this._toggleFocusClass(!1,e.currentTarget)},_isMenuHorizontal:function(){return"horizontal"===this.option("orientation")},_hoverStartHandler:function(e){var t=this.option("onHoverStart");t(e),this.callBase(e),this._toggleFocusClass(!0,e.currentTarget)},_drawSubmenu:function(e){this._actions.onShowing({rootItem:e,submenu:this}),this.callBase(e),this._actions.onShown({rootItem:e,submenu:this})},_hideAllShownSubmenus:function(e){this._actions.onHiding({rootItem:e,submenu:this}),this.callBase(e),this._actions.onHidden({rootItem:e,submenu:this})},_hideSubmenu:function(e){this._actions.onHiding({rootItem:e,submenu:this}),this.callBase(e),this._actions.onHidden({rootItem:e,submenu:this})},_showDelimiter:function(e){if(this.$contentDelimiter){var t=this._itemContainer().children("."+c).eq(0),n=this.option("position").of,i={of:t},o=e.position,s=o.v.location,r=o.h.location,l=n.offset(),d=Math.round(l.left),u=Math.round(l.top),h=n.width(),p=n.height(),f=t.width(),m=t.height();this.$contentDelimiter.css("display","block"),this.$contentDelimiter.width(this._isMenuHorizontal()?h<f?h-2:f:2),this.$contentDelimiter.height(this._isMenuHorizontal()?2:p<m?p-2:m),this._isMenuHorizontal()?s>u?Math.round(r)===d?(i.offset="1 -1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="right top"):(this.$contentDelimiter.height(5),Math.round(r)===d?(i.offset="1 4",i.at=i.my="left bottom"):(i.offset="-1 2",i.at=i.my="right bottom")):r>d?Math.round(s)===u?(i.offset="-1 1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="left bottom"):Math.round(s)===u?(i.offset="1 1",i.at=i.my="right top"):(i.offset="1 -1",i.at=i.my="right bottom"),a.setup(this.$contentDelimiter,i)}},_getContextMenuPosition:function(){return this.option("position")},isOverlayVisible:function(){return this._overlay.option("visible")},getOverlayContent:function(){return this._overlay.content()}});e.exports=d},function(e,t,n){var i=n(349),o=n(403);i.registerModule("headerFilter",o)},function(e,t,n){function i(e){var t,n,o;if(Array.isArray(e[0])){for(o=[],t=0;t<e.length;t++)Array.isArray(e[t])?(n&&o.push(n),o.push(i(e[t])),n="or"):n=h.isConjunctiveOperator(e[t])?"or":"and";return o}return o=h.normalizeBinaryCriterion(e),o[1]=k[o[1]]||o[1],o}var o=n(9),a=n(351),s=n(350),r=n(404),l=r.headerFilterMixin,c=n(90),d=r.allowHeaderFiltering,u=n(76),h=n(138),p=n(50),f=n(14),m=n(108).getDefaultAlignment,g=n(11).extend,_=n(154).normalizeDataSourceOptions,v=n(33),w=n(28).isWrapped,x={month:function(e){return v.getMonthNames()[e-1]},quarter:function(e){return v.format(new Date(2e3,3*e-1),"quarter")}},y=a.ViewController.inherit(function(){var e=function(e,t,n){var i=s.getGroupInterval(t),o=s.getFormatOptionsByColumn(t,"headerFilter");return i&&(o.groupInterval=i[n],"date"===t.dataType?o.format=x[i[n]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,precision:t.precision,target:"headerFilter"},a=s.formatValue(e,o),r=e+i[n],l=s.formatValue(r,o);return a&&l?a+" - "+l:""})),o};return{init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var o=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),r.updateHeaderFilterItemSelectionState(o,s.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(t,n,i){var o,a,r=i.path,l=i.valueSelector,c=i.displaySelector,d=i.column;return l&&c?(o=l(t),a=c(t)):(o=t.key,a=o),t=f.isObject(t)?t:{},r.push(o),1===r.length?t.value=r[0]:t.value=r.join("/"),t.text=s.formatValue(a,e(a,d,n)),t.text||(t.text=i.headerFilterOptions.texts.emptyValue),delete t.key,t},_processGroupItems:function(e,t,n,i){var o,a,s=this,r=i.column,l=r.lookup,c=i.level;n=n||[],t=t||0,l&&(o=p.compileGetter(l.displayExpr),a=p.compileGetter(l.valueExpr));for(var d=0;d<e.length;d++)e[d]=s._normalizeGroupItem(e[d],t,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:o,valueSelector:a,path:n}),"items"in e[d]&&(t!==c&&f.isDefined(e[d].value)?s._processGroupItems(e[d].items,t+1,n,i):delete e[d].items),n.pop()},getDataSource:function(e){var t,n,i,a=this,r=a._dataController.dataSource(),l=s.getHeaderFilterGroupParameters(e,r&&r.remoteOperations().grouping),c=e.headerFilter&&e.headerFilter.dataSource,d=a.option("headerFilter"),u={component:a.component};if(r)return f.isDefined(c)&&!f.isFunction(c)?(r=_(c),r.postProcess=function(t){return a._updateSelectedState(t,e),t},r):(e.lookup?(r=e.lookup.dataSource,f.isFunction(r)&&!w(r)&&(r=r({})),r=_(r),r.postProcess=function(t){return 0===this.pageIndex()&&(t=t.slice(0),t.unshift(null)),a._processGroupItems(t,null,null,{level:0,column:e,headerFilterOptions:d}),a._updateSelectedState(t,e),t},u.dataSource=r):(n=Array.isArray(l)?l.length-1:0,a._currentColumn=e,t=a._dataController.getCombinedFilter(),a._currentColumn=null,u.dataSource={filter:t,group:l,load:function(t){var i=o.Deferred();return t.dataField=e.dataField||e.name,r.load(t).done(function(t){a._processGroupItems(t,null,null,{level:n,column:e,headerFilterOptions:d}),a._updateSelectedState(t,e),i.resolve(t)}).fail(i.reject),i}}),f.isFunction(c)&&(c.call(e,u),i=u.dataSource.postProcess,u.dataSource.postProcess=function(t){var n=i&&i.apply(this,arguments)||t;return a._updateSelectedState(n,e),n}),u.dataSource)},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(e,t){var n=this,i=g(!0,{},n._columnsController.getColumns()[e]);if(i){var o=n._columnsController.getVisibleIndex(e),a=t?n.getView("headerPanel"):n.getView("columnHeadersView"),r=a.getColumnElements().eq(t?i.groupIndex:o),l=s.getGroupInterval(i),c=g(i,{type:l&&l.length>1?"tree":"list",apply:function(){n._columnsController.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})},onShowing:function(e){var t=e.component.overlayContent().dxResizable("instance");t&&t.option("onResizeEnd",function(e){var t=n.getController("columns"),i=t.columnOption(c.dataField,"headerFilter");i=i||{},i.width=e.width,i.height=e.height,t.columnOption(c.dataField,"headerFilter",i,!0)})}});c.dataSource=n.getDataSource(c),n._headerFilterView.showHeaderFilterMenu(r,c)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}}()),b=g({},r.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,o=t.column;!o.command&&d(o)&&i.option("headerFilter.visible")&&"header"===t.rowType&&(n=i._applyColumnState({name:"headerFilter",rootElement:e,column:o,showColumnLines:i.option("showColumnLines")}),n&&i._subscribeToIndicatorEvent(n,o,"headerFilter")),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var i=this;"headerFilter"===n&&e.on(u.name,i.createAction(function(e){var n=e.jQueryEvent;n.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!1)}))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_columnOptionChanged:function(e){var t=e.optionNames;return s.checkChanges(t,["filterValues","filterType"])?void(this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")):void this.callBase(e)}}),C=g({},l,{_createGroupPanelItem:function(e,t){var n,i=this,o=i.callBase.apply(i,arguments);return!t.command&&d(t)&&i.option("headerFilter.visible")&&(n=i._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:m(i.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}),n&&n.on(u.name,i.createAction(function(e){var n=e.jQueryEvent;n.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!0)}))),o}}),k={"=":"<>","<>":"=",">":"<=",">=":"<","<":">=","<=":">",contains:"notcontains",notcontains:"contains",startswith:"notcontains",endswith:"notcontains"},I={_calculateAdditionalFilter:function(){var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(),a=e.getController("headerFilter"),r=a.getCurrentColumn();return o.each(n,function(e,n){var a;if((!r||r.index!==n.index)&&d(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var l=[],c="exclude"===n.filterType;o.each(n.filterValues,function(e,t){Array.isArray(t)?a=c?i(t):t:(n.deserializeValue&&"date"!==n.dataType&&"number"!==n.dataType&&(t=n.deserializeValue(t)),a=n.createFilterExpression(t,c?"<>":"=","headerFilter")),a&&(a.columnIndex=n.index),l.push(a)}),l=s.combineFilters(l,c?"and":"or"),t.push(l)}}),s.combineFilters(t)}};e.exports={invertFilterExpression:i,defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,texts:{emptyValue:c.format("dxDataGrid-headerFilterEmptyValue"),ok:c.format("dxDataGrid-headerFilterOK"),cancel:c.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:y},views:{headerFilterView:r.HeaderFilterView},extenders:{controllers:{data:I},views:{columnHeadersView:b,headerPanel:C}}}},function(e,t,n){function i(e){e=e||[];for(var t=0;t<e.length;t++)e[t].selected=!1,i(e[t].items)}function o(e,t){var n=e.find(".dx-list-select-all-checkbox").data("dxCheckBox");n&&t&&t.length&&n.option("value",void 0)}var a=n(9),s=n(351),r=n(350),l=n(14),c=n(11).extend,d=n(201),u=n(381),h=n(219),p="dx-header-filter",f="dx-header-filter-menu";t.updateHeaderFilterItemSelectionState=function(e,t,n){if(t^n){if(e.selected=!0,n&&e.items)for(var o=0;o<e.items.length;o++)if(!e.items[o].selected){e.selected=void 0;break}}else(n||e.selected)&&(e.selected=!1,i(e.items))},t.HeaderFilterView=s.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(e){var t=this,n=t.getListContainer(),i=n.element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked"),o=[],s=function(e,t,n){a.each(t,function(t,i){void 0!==i.selected&&!!i.selected^n?e.push(i.value):i.items&&i.items.length&&s(e,i.items,n)})};i?Array.isArray(e.filterValues)&&(e.filterValues=[]):"tree"===e.type&&(s(o,n.option("items"),"exclude"===e.filterType),e.filterValues=o),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),t.hideHeaderFilterMenu()},showHeaderFilterMenu:function(e,t){var n,i=this;t&&(i._initializePopupContainer(t),n=i.getPopupContainer(),i.hideHeaderFilterMenu(),i.updatePopup(e,t),n.show())},hideHeaderFilterMenu:function(){var e=this.getPopupContainer();e&&e.hide()},updatePopup:function(e,t){var n=this,i="right"===t.alignment?"left":"right";n._popupContainer&&(n._cleanPopupContent(),n._popupContainer.option("position",{my:i+" top",at:i+" bottom",of:e,collision:"flip fit"}))},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),o=e.headerFilter&&e.headerFilter.width||i&&i.width,a=e.headerFilter&&e.headerFilter.height||i&&i.height,s={width:o,height:a,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!0,dragEnabled:!1,closeOnOutsideClick:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};l.isDefined(t._popupContainer)?t._popupContainer.option(s):t._popupContainer=t._createComponent(n,d,s)},_initializeListContainer:function(e){var t=this,n=t._popupContainer.content(),i={dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,n,i){return e.encodeHtml?i.text(t.text):i.html(t.text)}};"tree"===e.type?t._listContainer=t._createComponent(a("
").appendTo(n),u,c(i,{showCheckBoxesMode:"selectAll",keyExpr:"id"})):t._listContainer=t._createComponent(a("
").appendTo(n),h,c(i,{pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:"all",onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");t.component._selectedItemsUpdating||(0===i.length&&n.length&&(!e.filterValues||e.filterValues.length<=1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])),a.each(n,function(t,n){var o,a=r.getIndexByKey(n,i,null)>=0,s=!!n.selected;s!==a&&(n.selected=a,e.filterValues=e.filterValues||[],o=r.getIndexByKey(n.value,e.filterValues,null),o>=0&&e.filterValues.splice(o,1),a^"exclude"===e.filterType&&e.filterValues.push(n.value))}),o(t.element,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),s=[];a.each(i,function(){this.selected&&s.push(this)}),n._selectedItemsUpdating=!0,n.option("selectedItems",s),n._selectedItemsUpdating=!1,o(t.element,e.filterValues)}}))},_renderCore:function(){this.element().addClass(f)}});var m=t.allowHeaderFiltering=function(e){return l.isDefined(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.headerFilterMixin={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find("."+p).remove(),m(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",!i.filterValues||!i.filterValues.length)),t):this.callBase(e)},_getIndicatorClassName:function(e){return"headerFilter"===e?p:this.callBase(e)},_renderIndicator:function(e){var t,n=e.container,i=e.indicator;return"headerFilter"===e.name&&(t=this.option("rtlEnabled"), n.children().length&&(!t&&"right"===e.columnAlignment||t&&"left"===e.columnAlignment))?void n.prepend(i):void this.callBase(e)},optionChanged:function(e){"headerFilter"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}},function(e,t,n){var i=n(349),o=n(406);i.registerModule("search",o)},function(e,t,n){function i(e){return s.isDefined(e.allowSearch)?e.allowSearch:e.allowFiltering}function o(e,t){var n=e.lookup;return n?e.parseValue.call(n,t):e.parseValue?e.parseValue(t):t}var a=n(9),s=n(14),r=n(50).compileGetter,l=n(350),c=n(90),d=n(160),u="search-panel",h="search-text",p=700;e.exports={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:c.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:function(){var e=function(e,t){function n(e){var t,n,i=r(u.valueExpr);for(t=0;t<e.length;t++)n=i(e[t]),f.push(s.createFilterExpression(n,null,"search"))}var a,s,c,u,h=e._columnsController.getColumns(),p=e.option("searchPanel.searchVisibleColumnsOnly"),f=[];if(!t)return null;for(a=0;a<h.length;a++)s=h[a],p&&!s.visible||i(s)&&s.calculateFilterExpression&&(u=s.lookup,c=o(s,t),u&&u.items?d(u.items).filter(s.createFilterExpression.call({dataField:u.displayExpr,dataType:u.dataType,calculateFilterExpression:s.calculateFilterExpression},c,null,"search")).enumerate().done(n):void 0!==c&&f.push(s.createFilterExpression(c,null,"search")));return l.combineFilters(f,"or")};return{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var t=this,n=t.callBase(),i=e(t,t.option("searchPanel.text"));return l.combineFilters([n,i])},searchByText:function(e){this.option("searchPanel.text",e)},optionChanged:function(e){var t=this;switch(e.fullName){case"searchPanel.text":case"searchPanel":t._applyFilter(),e.handled=!0;break;default:t.callBase(e)}}}}()},views:{headerPanel:function(){var e=function(e){return e.option("searchPanel")};return{_getToolbarItems:function(){var e=this.callBase();return this._prepareSearchItem(e)},_prepareSearchItem:function(t){var n=this,i=n.getController("data"),o=e(n);if(o&&o.visible){var s={template:function(e,t,s){var r=a("
").addClass(n.addWidgetPrefix(u)).appendTo(s);n.setAria("label",c.format("dxDataGrid-ariaSearchInGrid"),r),n.getController("editorFactory").createEditor(r,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:p,setValue:function(e){i.searchByText(e)}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(s)}return t},_getSearchTextEditor:function(){var e=this.element().find("."+this.addWidgetPrefix(u));return e.length?e.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this._getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_highlightSearchText:function(e,t,n){var i,s=this,r=s.option("searchPanel.text");if(r&&s.option("searchPanel.highlightSearchText")){var c=s.option("searchPanel.highlightCaseSensitive")?function(e){return e}:function(e){return e.toLowerCase()};if(t&&n){var d=o(n,r),u=l.getFormatOptionsByColumn(n,"search");if(r=l.formatValue(d,u),!r)return}i=e.parent(),i.length||(i=a("
").append(e));var p=i.find("*").filter(function(e,t){for(var n=a(t).contents(),i=0;i<n.length;i++){var o=n.get(i);return 3===o.nodeType&&(o.textContent||o.nodeValue||"").toLowerCase().indexOf(r.toLowerCase())>-1}});a.each(p,function(e,n){a.each(a(n).contents(),function(e,n){if(3===n.nodeType){var i=function(e,t){var n=a("<span />").addClass(s.addWidgetPrefix(h)),o=e.text(),r=c(o).indexOf(c(t));if(r>=0)return e[0].textContent?e[0].textContent=o.substr(0,r):e[0].nodeValue=o.substr(0,r),e.after(n.text(o.substr(r,t.length))),e=a(document.createTextNode(o.substr(r+t.length))).insertAfter(n),i(e,t)};t?c(a(n).text())===c(r)&&a(this).replaceWith(a("<span />").addClass(s.addWidgetPrefix(h)).text(a(n).text())):i(a(n),r)}})})}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(e,t){var n=t.column,o=n.lookup&&n.lookup.dataType||n.dataType,a="string"!==o;i(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,a,n])):this._highlightSearchText(e,a,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(e,t,n){var i=n(349),o=n(408),a=n(26).inArray,s=n(14),r="dx-datagrid-pager",l=10;t.PagerView=i.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(t){t&&"update"===t.changeType||e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(r),n=e.option("pager")||{},i=e.getController("data"),a={maxPagesCount:l,pageIndex:1+(parseInt(i.pageIndex())||0),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})}};s.isDefined(n.infoText)&&(a.infoText=n.infoText),e._createComponent(t,o,a)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return s.isDefined(e._pageSizes)&&a(o,e._pageSizes)!==-1||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,o=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!o||"virtual"!==o.mode&&"infinite"!==o.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,o="paging"===n,a="dataSource"===n,s="scrolling"===n;(i||o||s||a)&&((i||o)&&(t._pageSizes=null),(i||o||s)&&(t._isVisible=!1),a||(t._invalidate(),i&&t.component&&t.component.resize()),e.handled=!0)}}),i.registerModule("pager",{defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:t.PagerView}})},function(e,t,n){var i=n(9),o=n(25),a=n(18),s=n(57),r=n(14),l=n(11).extend,c=n(76),d=n(90),u=n(96),h=n(318),p=n(264),f=n(72),m=4,g="dx-pager",_="dx-page",v="dx-pages",w="dx-light-mode",x="dx-light-pages",y="dx-page-index",b="dx-pages-count",C="dx-selection",k="dx-separator",I="dx-page-sizes",S="dx-page-size",D="dx-navigate-button",T="dx-prev-button",E="dx-next-button",A="dx-info",B="dx-info-text",M="dx-button-disable",R=o.inherit({ctor:function(e,t){var n=this;n.index=t,n._$page=i("<div />").text(e).addClass(_)},value:function(e){var t=this;if(!r.isDefined(e)){var n=t._$page.text();return r.isNumeric(n)?parseInt(n):n}t._$page.text(e)},element:function(){return this._$page},select:function(e){this._$page.toggleClass(C,e)},render:function(e,t){t?this._$page.prependTo(e):this._$page.appendTo(e)}}),O=u.inherit({_getDefaultOptions:function(){return l(this.callBase(),{visible:!0,pagesNavigatorVisible:"auto",pageIndex:1,maxPagesCount:10,pageCount:10,totalCount:0,pageSize:5,showPageSizes:!0,pageSizes:[5,10],hasKnownLastPage:!0,showNavigationButtons:!1,showInfo:!1,infoText:d.getFormatter("dxPager-infoText"),pagesCountText:d.getFormatter("dxPager-pagesCountText"),rtlEnabled:!1,lightModeEnabled:!1,pageIndexChanged:r.noop,pageSizeChanged:r.noop})},_toggleVisibility:function(e){var t=this.element();t&&t.css("display",e?"":"none")},_getPages:function(e,t){var n,i,o=[],a=!this.option("hasKnownLastPage");if(t>0||a)if(t<=this.option("maxPagesCount")){for(i=1;i<=t;i++)o.push(new R(i,i-1));a&&o.push(new R(">",i-1))}else{for(o.push(new R(1,0)),n=e?e.value()-e.index:1,i=1;i<=m;i++)o.push(new R(n+i,i));o.push(new R(t,m+1)),a&&o.push(new R(">",m+1))}return o},_getPageByValue:function(e){var t,n,i=this;for(n=0;n<i._pages.length;n++)if(t=i._pages[n],t.value()===e)return t},_processSelectedPage:function(e,t,n){var o,a=this,s=!1;a._pages&&(i.each(a._pages,function(e,n){t===n.value()&&(s=!0)}),s||(a.selectedPage=null)),r.isDefined(a.selectedPage)?t===n&&n>e&&a.selectedPage.index!==m+1&&(a.selectedPage.index=m+1):t>m&&t<n&&(o=n-m<t?m-(n-t)+1:2,a.selectedPage=new R(t,o))},_selectPageByValue:function(e){var t,n,i,o,a=this,s=a._getPageByValue(e),l=a._pages,c=l.length;if(r.isDefined(s)){if(n=a._pages[s.index-1],i=a._pages[s.index+1],i&&">"===i.value()&&(o=i,i=void 0,c--,l.pop()),a.selectedPage&&a.selectedPage.select(!1),s.select(!0),a.selectedPage=s,i&&i.value()-e>1)if(0!==s.index)for(n.value(e+1),a._pages.splice(s.index,1),a._pages.splice(s.index-1,0,s),a._pages[s.index].index=s.index,s.index=s.index-1,t=s.index-1;t>0;t--)a._pages[t].value(a._pages[t+1].value()-1);else for(t=0;t<c-1;t++)a._pages[t].value(t+1);if(n&&e-n.value()>1)if(s.index!==c-1)for(i.value(e-1),a._pages.splice(s.index,1),a._pages.splice(s.index+1,0,s),a._pages[s.index].index=s.index,s.index=s.index+1,t=s.index+1;t<c-1;t++)a._pages[t].value(a._pages[t-1].value()+1);else for(t=1;t<=c-2;t++)a._pages[c-1-t].value(a._pages[c-1].value()-t);o&&l.push(o)}},_nextPage:function(e){var t=this.option("pageIndex"),n=this.option("pageCount");r.isDefined(t)&&(t="next"===e?++t:--t,t>0&&t<=n&&this.option("pageIndex",t))},_renderPages:function(e){var t,n,o=this,a=e.length,s=o._createAction(function(e){var t=e.jQueryEvent,n=i(t.target).text(),a=">"===n?o.option("pageCount")+1:Number(n);o.option("pageIndex",a)});a>1&&(o._pageClickHandler=function(e){s({jQueryEvent:e})},o._$pagesChooser.on(f.addNamespace(c.name,o.Name+"Pages"),"."+_,o._pageClickHandler));for(var r=0;r<a;r++)n=e[r],n.render(o._$pagesChooser,o.option("rtlEnabled")),o.setAria({role:"button",label:"Page "+n.value()},n.element()),e[r+1]&&e[r+1].value()-n.value()>1&&(t=i("
. . .
").addClass(k),o.option("rtlEnabled")?t.prependTo(o._$pagesChooser):t.appendTo(o._$pagesChooser))},_calculateLightPagesWidth:function(e,t){return Number(e.css("min-width").replace("px",""))+10*t.toString().length},_renderLightPages:function(){var e,t,n=this,o=this.option("pageCount"),a=this.option("pageIndex"),s=n._createAction(function(){n.option("pageIndex",o)}),r=this.option("pagesCountText"),l=i("<div/>").addClass(x).appendTo(this._$pagesChooser);t=i("<div/>").addClass(y).appendTo(l),n._pageIndexEditor=n._createComponent(t,p,{value:a,min:1,max:o,width:n._calculateLightPagesWidth(t,o),onValueChanged:function(e){n.option("pageIndex",e.value)}}),i("<span/>").text(r).addClass(B+" "+A).appendTo(l),e=i("<span/>").addClass(b).text(o).on(f.addNamespace(c.name,n.Name+"PagesCount"),function(e){s({jQueryEvent:e})}).appendTo(l),n.setAria({role:"button",label:"Navigates to the last page"},e)},_renderPagesChooser:function(){var e=this,t=e.option("lightModeEnabled"),n=e.option("pagesNavigatorVisible"),o=e.element();if(e._$pagesChooser&&e._$pagesChooser.remove(),n){if(e._pages&&0===e._pages.length)return void(e.selectedPage=null);e._$pagesChooser=i("<div />").addClass(v).appendTo(o),"auto"===n&&e._$pagesChooser.css("visibility",1===e.option("pageCount")?"hidden":""),t||e._renderInfo(),e._renderNavigateButton("prev"),t?e._renderLightPages():e._renderPages(e._pages),e._renderNavigateButton("next"),e._updatePagesChooserWidth()}},_renderPageSizes:function(){var e,t,n,o=this,a=o.option("pageSizes"),s=a&&a.length,r=o.option("pageSize"),l=o._createAction(function(e){var n=e.jQueryEvent;t=parseInt(i(n.target).text()),o.option("pageSize",t)});for(o._$pagesSizeChooser.on(f.addNamespace(c.name,o.Name+"PageSize"),"."+S,function(e){l({jQueryEvent:e})}),e=0;e<s;e++)n=i("<div />").text(a[e]).addClass(S),o.setAria({role:"button",label:"Display "+a[e]+" items on page"},n),r===a[e]&&n.addClass(C),o._$pagesSizeChooser.append(n)},_calculateLightPageSizesWidth:function(e){return Number(this._$pagesSizeChooser.css("min-width").replace("px",""))+10*Math.max.apply(Math,e).toString().length},_renderLightPageSizes:function(){var e,t=this,n=t.option("pageSizes");e=i("<div/>").appendTo(t._$pagesSizeChooser),t._pageSizeEditor=t._createComponent(e,h,{dataSource:n,value:t.option("pageSize"),onSelectionChanged:function(e){t.option("pageSize",e.selectedItem)},width:t._calculateLightPageSizesWidth(n)})},_renderPagesSizeChooser:function(){var e=this,t=e.option("pageSizes"),n=e.option("showPageSizes"),o=t&&t.length,a=e.element();n&&o&&(e._$pagesSizeChooser&&e._$pagesSizeChooser.remove(),e._$pagesSizeChooser=i("<div />").addClass(I).appendTo(a),e.option("lightModeEnabled")?e._renderLightPageSizes():e._renderPageSizes(),e._pagesSizeChooserWidth=e._$pagesSizeChooser.width())},_renderInfo:function(){var e=this.option("infoText");this.option("showInfo")&&r.isDefined(e)&&(this._$info=i("
").css("display",this._isInfoHide?"none":"").addClass(A).text(a.format(e,this.selectedPage&&this.selectedPage.value(),this.option("pageCount"),this.option("totalCount"))).appendTo(this._$pagesChooser),this._isInfoHide||(this._infoWidth=this._$info.outerWidth(!0)))},_renderNavigateButton:function(e){var t,n=this,o=n._createAction(function(){n._nextPage(e)});(n.option("showNavigationButtons")||n.option("lightModeEnabled"))&&(t=i("
").addClass(D).on(f.addNamespace(c.name,n.Name+"Pages"),function(e){o({jQueryEvent:e})}),n.setAria({role:"button",label:"prev"===e?"Previous page":" Next page"},t),n.option("rtlEnabled")?(t.addClass("prev"===e?E:T),t.prependTo(this._$pagesChooser)):(t.addClass("prev"===e?T:E),t.appendTo(this._$pagesChooser)))},_renderContentImpl:function(){this.element().addClass(g).toggleClass(w,this.option("lightModeEnabled")),this._toggleVisibility(this.option("visible")),this._updatePageSizes(!0),this._updatePages(!0)},_render:function(){this.callBase(),this._updateLightMode()},_updatePageSizes:function(e){var t=this.option("lightModeEnabled"),n=this.option("pageSize"),i=this.option("pageSizes");t&&this._pageSizeEditor&&this._pageSizeEditor.option({value:n,dataSource:i,width:this._calculateLightPageSizesWidth(i)}),t&&!e||this._renderPagesSizeChooser()},_updatePages:function(e){var t=this.option("pageCount"),n=this.option("pageIndex"),i=this.option("lightModeEnabled");i?this._pageIndexEditor&&this._pageIndexEditor.option({value:n,width:this._calculateLightPagesWidth(this._pageIndexEditor.element(),t)}):(this._processSelectedPage(this.option("maxPagesCount"),n,t),this._pages=this._getPages(this.selectedPage,t),this._selectPageByValue(n)),i&&!e||this._renderPagesChooser(),this._updateButtonsState(n)},_isPageIndexInvalid:function(e,t){var n="next"===e,i=this.option("rtlEnabled");return i&&n||!i&&!n?t<=1:t>=this.option("pageCount")},_updateButtonsState:function(e){var t=this.element().find("."+E),n=this.element().find("."+T);t.toggleClass(M,this._isPageIndexInvalid("next",e)),n.toggleClass(M,this._isPageIndexInvalid("prev",e))},_optionChanged:function(e){switch(e.name){case"visible":this._toggleVisibility(e.value);break;case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value),this._updatePages();break;case"maxPagesCount":case"pageCount":case"totalCount":case"hasKnownLastPage":case"pagesNavigatorVisible":case"showNavigationButtons":this._updatePages();break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(e.value),this._updatePageSizes();break;case"pageSizes":this._updatePageSizes();break;case"lightModeEnabled":this._renderContentImpl(),!e.value&&this._updateLightMode();break;default:this._invalidate()}},_clean:function(){this._$pagesChooser&&this._$pagesChooser.off(f.addNamespace(c.name,this.Name+"Pages"),"."+_,this._pageClickHandler),this.callBase()},_getMinPagerWidth:function(){var e=r.isDefined(this._pagesChooserWidth)?this._pagesChooserWidth:0,t=r.isDefined(this._pagesSizeChooserWidth)?this._pagesSizeChooserWidth:0;return e+t},_updatePagesChooserWidth:r.deferUpdater(function(){var e=this._pages&&this._pages.length>0?this._pages[this._pages.length-1]._$page.width():0;this._pagesChooserWidth=this._$pagesChooser.width()+e}),_updateLightMode:r.deferUpdater(function(){var e=this,t=this.element().width(),n=r.isDefined(this._infoWidth)?this._infoWidth:0;r.deferRender(function(){e._isInfoHide&&t>e._getMinPagerWidth()+n&&(e._$info.show(),e._updatePagesChooserWidth(),e._isInfoHide=!1),!e._isInfoHide&&t>e._getMinPagerWidth()-n&&t<e._getMinPagerWidth()&&(e._$info.hide(),e._updatePagesChooserWidth(),e._isInfoHide=!0),r.deferUpdate(function(){r.deferRender(function(){e.option("lightModeEnabled")&&t>=e._previousWidth?e.option("lightModeEnabled",!1):t<e._getMinPagerWidth()&&e.option("lightModeEnabled",!0),e._previousWidth=t})})})}),_dimensionChanged:function(){this._updateLightMode()},getHeight:function(){return this.option("visible")?this.element().outerHeight():0}});e.exports=O,s("dxPager",O)},function(e,t,n){var i=n(349),o=n(410);t.DraggingHeaderView=o.views.draggingHeaderView,t.DraggingHeaderViewController=o.controllers.draggingHeader,t.ColumnsSeparatorView=o.views.columnsSeparatorView,t.TablePositionViewController=o.controllers.tablePosition,t.ColumnsResizerViewController=o.controllers.columnsResizer,t.TrackerView=o.views.trackerView,i.registerModule("columnsResizingReordering",o)},function(e,t,n){var i=n(9),o=n(14),a=n(11).extend,s=n(72),r=n(77),l=n(111),c=s.addNamespace,d=n(351),u=n(350),h=n(69),p="columns-separator",f="columns-separator-transparent",m="drag-header",g="text-content",_="drag-action",v="tracker",w="drop-highlight",x="dx-block-separator",y="dx-header-row",b="dx-widget",C="dxDataGridResizingReordering",k=10,I=5,S=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},D=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},T=d.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(v)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(v))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return S(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),E=d.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!o.isDefined(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!o.isDefined(e))return t.width();t.width(e)}}}),A=E.inherit({_renderSeparator:function(){this.callBase();var e=this.element();e.addClass(this.addWidgetPrefix(p))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){e=t.element(),e&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=S(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(D(this)||S(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=S(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(f)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(f);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),"none"===t.css("display")&&t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",e-this._parentElement().offset().left)},changeCursor:function(e){e=o.isDefined(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),B=E.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add(function(t){var n=e.element();!t&&n&&"none"!==n.css("display")&&e.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(x).html(" ")},hide:function(){var e=this,t=this._parentElement(),n=this.element();n&&this._isShown&&n.hide(),t&&!t.children("."+x).length&&t.prepend(e.element()),e.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this,n=this.element(),i=function(e){h.stop(n,!0),h.animate(n,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(n&&!t._isShown)switch(e){case"group":i({width:"50px",display:"inline-block"});break;case"columnChooser":i({width:"100%",display:"block"});break;default:n.show()}t.callBase()}}),M=d.View.inherit({_isDragging:!1,_getDraggingPanelByPos:function(e){var t,n=this;return i.each(n._dragOptions.draggingPanels,function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.y<o.bottom)&&(void 0===o.top||e.y>o.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.x<o.right))return t=i,!1}}),t},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(m)+" "+this.addWidgetPrefix(g)+" "+b).css("display","none")},_resetTargetColumnOptions:function(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY},_getVisibleIndexObject:function(e,t){return o.isDefined(e)?{columnIndex:t,rowIndex:e}:t},dispose:function(){var e=this.element();this._dragOptions=null,e&&e.parent().find("."+this.addWidgetPrefix(m)).remove()},isVisible:function(){var e=this.getController("columns"),t=e.getCommonSettings();return this.option("showColumnHeaders")&&(D(this)||t.allowGrouping||t.allowHiding)},init:function(){var e=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add(function(t){var n=e.element();!t&&n&&"none"!==n.css("display")&&n.hide()})},dragHeader:function(e){var t=this,n=e.columnElement;t._isDragging=!0,t._dragOptions=e,t._dropOptions={sourceIndex:e.index,sourceColumnIndex:t._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation},t._onSelectStart=document.onselectstart,document.onselectstart=function(){return!1},t.element().css({textAlign:n&&n.css("text-align"),height:n&&n.height(),width:n&&n.width(),whiteSpace:n&&n.css("white-space")}).addClass(t.addWidgetPrefix(_)).text(e.sourceColumn.caption),t.element().appendTo(i(document.body))},moveHeader:function(e){var t,n,i,o,a=e.jQueryEvent,r=a.data.that,l=s.eventData(a),c=!!r._columnsResizerViewController&&r._columnsResizerViewController.isResizing(),d=r._dragOptions;r._isDragging&&!c&&(i=Math.abs(l.x-d.columnElement.offset().left-d.deltaX),o=Math.abs(l.y-d.columnElement.offset().top-d.deltaY),(r.element().is(":visible")||i>I||o>I)&&(r.element().show(),t=l.x-d.deltaX,n=l.y-d.deltaY,r.element().offset({left:t,top:n}),r.dockHeader(l)),a.preventDefault())},dockHeader:function(e){var t,n,o=this,s=o._getDraggingPanelByPos(e),r=o._controller,l=o._dropOptions;if(s){var c=o.option("rtlEnabled"),d="columnChooser"===s.getName(),u=d?"y":"x",h=s.getName(),p="headers"===h?o._dragOptions.rowIndex:void 0,f=o._dragOptions.sourceColumn,m=s.getColumnElements(p,f&&f.ownerBand)||[],g=r._generatePointsByColumns(a({},o._dragOptions,{targetDraggingPanel:s,columns:s.getColumns(p),columnElements:m,isVerticalOrientation:d,startColumnIndex:"headers"===h&&i(m[0]).index()}));if(l.targetLocation=h,g.length>0){for(t=0;t<g.length;t++)if(n=g[t+1]&&(g[t][u]+g[t+1][u])/2,void 0===n||(c&&"x"===u?e[u]>n:e[u]<n)){l.targetColumnIndex=o._getVisibleIndexObject(p,g[t].columnIndex),m[t]?(l.targetColumnElement=m.eq(t),l.isLast=!1):(l.targetColumnElement=m.last(),l.isLast=!0),l.posX=g[t].x,l.posY=g[t].y,r.dock(l);break}}else o._resetTargetColumnOptions(),r.dock(l)}},dropHeader:function(e){var t=e.jQueryEvent,n=t.data.that,i=n._controller;n.element().hide(),i&&n._isDragging&&i.drop(n._dropOptions),n.element().appendTo(n._parentElement()),n._dragOptions=null,n._dropOptions=null,n._isDragging=!1,document.onselectstart=n._onSelectStart||null}}),R=function(e){return"widget"!==e.option("columnResizingMode")},O=d.ViewController.inherit({_isHeadersRowArea:function(e){if(this._columnHeadersView){var t,n,i=this._columnHeadersView.element();if(i)return n=i.offset().top,t=this._columnHeadersView.getHeadersRowHeight(),e>=n&&e<=n+t}return!1},_pointCreated:function(e,t,n){var i,o,a=R(this),s=this.option("rtlEnabled"),r=!a&&s?0:1;return!(e.index>=r&&e.index<t+(a||s?0:1))||(e.columnIndex-=r,i=n[e.columnIndex]||{},o=n[e.columnIndex+1]||{},!(a?i.allowResizing&&o.allowResizing:i.allowResizing))},_getTargetPoint:function(e,t,n){if(e)for(var i=0;i<e.length;i++)if((e[i].x!==e[0].x||!e[i+1]||e[i].x!==e[i+1].x)&&e[i].x-n<=t&&t<=e[i].x+n)return e[i];return null},_moveSeparator:function(e){var t=e.jQueryEvent,n=t.data,i=n._columnsSeparatorView.width(),o=n._columnsSeparatorView.element().offset(),a=R(n),r=i/2,l=n._$parentContainer.offset(),c=l.left,d=s.eventData(t);if(n._isResizing){if(c<=d.x&&(!a||d.x<=c+n._$parentContainer.width())&&n._updateColumnsWidthIfNeeded(d.x)){var u=n._columnHeadersView.getColumnElements().eq(n._resizingInfo.currentColumnIndex);n._columnsSeparatorView.moveByX(u.offset().left+(a&&n.option("rtlEnabled")?0:u.outerWidth())),n._tablePositionController.update(n._targetPoint.y),t.preventDefault()}}else n._isHeadersRowArea(d.y)?(n._previousParentOffset&&(n._previousParentOffset.left===l.left&&n._previousParentOffset.top===l.top||n.pointsByColumns(null)),n._targetPoint=n._getTargetPoint(n.pointsByColumns(),d.x,i),n._previousParentOffset=l,n._isReadyResizing=!1,n._targetPoint&&n._targetPoint.y<=d.y&&o.top+n._columnsSeparatorView.height()>=d.y?(n._columnsSeparatorView.changeCursor("col-resize"),n._columnsSeparatorView.moveByX(n._targetPoint.x-r),n._tablePositionController.update(n._targetPoint.y),n._isReadyResizing=!0,t.preventDefault()):n._columnsSeparatorView.changeCursor()):(n.pointsByColumns(null),n._isReadyResizing=!1,n._columnsSeparatorView.changeCursor())},_endResizing:function(e){var t=e.jQueryEvent,n=t.data;n._isResizing&&(n.pointsByColumns(null),n._resizingInfo=null,n._columnsSeparatorView.hide(),n._columnsSeparatorView.changeCursor(),n._trackerView.hide(),n._isReadyResizing=!1,n._isResizing=!1)},_getNextColumnIndex:function(e){return e+1},_setupResizingInfo:function(e){var t=this,n=t._targetPoint.columnIndex,i=t._getNextColumnIndex(n),o=t._columnHeadersView.getHeaderElement(n),a=t._columnHeadersView.getHeaderElement(i);t._resizingInfo={startPosX:e,currentColumnIndex:n,currentColumnWidth:o&&o.length>0?o.outerWidth():0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?a.outerWidth():0}},_startResizing:function(e){var t=e.jQueryEvent,n=t.data,i=s.eventData(t),o=n.getController("editing"),a=n.option("editing.mode"),r=o.isEditing()&&("batch"===a||"cell"===a);s.isTouchEvent(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,k),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!r&&(n._setupResizingInfo(i.x),n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show(),n._isResizing=!0,t.preventDefault(),t.stopPropagation())},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=u.getPointsByColumns(n,function(i){return e._pointCreated(i,n.length,t)})),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&i(document).off(c(r.move,C),this._moveSeparatorHandler),this._startResizingHandler&&this._$parentContainer.off(c(r.down,C),this._startResizingHandler),this._endResizingHandler&&(this._columnsSeparatorView.element().off(c(r.up,C),this._endResizingHandler),i(document).off(c(r.up,C),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),i(document).on(c(r.move,C),this,this._moveSeparatorHandler),this._$parentContainer.on(c(r.down,C),this,this._startResizingHandler),this._columnsSeparatorView.element().on(c(r.up,C),this,this._endResizingHandler),i(document).on(c(r.up,C),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e,t,n,i){if(e){var a=e.width;a&&(i=o.isString(a)&&"%"===a.slice(-1)),i?(e&&d.columnOption(e.index,"visibleWidth",t),e&&d.columnOption(e.index,"width",(t/n*100).toFixed(3)+"%")):(e&&d.columnOption(e.index,"visibleWidth",void 0),e&&d.columnOption(e.index,"width",t))}}var n,i,a,s,r,l,c=!1,d=this._columnsController,u=d.getVisibleColumns(),h=this._columnsSeparatorView.width(),p=this._rowsView.contentWidth(),f=R(this),m=f&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth");if(n=e-this._resizingInfo.startPosX,f&&this.option("rtlEnabled")&&(n=-n),l=this._resizingInfo.currentColumnWidth+n,a=u[this._resizingInfo.currentColumnIndex],s=a&&a.minWidth||h,c=l>=s,f&&(i=this._resizingInfo.nextColumnWidth-n,r=u[this._resizingInfo.nextColumnIndex],s=r&&r.minWidth||h,c=c&&i>=s),c){if(d.beginUpdate(),l=Math.floor(l),t(a,l,p,m),f)i=Math.floor(i),t(r,i,p,m);else for(var g=this._columnHeadersView.getColumnWidths(),_=0;_<g.length;_++)u[_]&&u[_]!==a&&void 0===u[_].width&&d.columnOption(u[_].index,"width",g[_]);d.endUpdate(),f||this.component.updateDimensions()}return c},_subscribeToCallback:function(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})},_unsubscribeFromCallbacks:function(){var e,t;for(e=0;e<this._subscribesToCallbacks.length;e++)t=this._subscribesToCallbacks[e],t.callback.remove(t.handler);this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){ var e=this,t=function(){e._isResizing||e.pointsByColumns(null)},n=function(t){e._scrollLeft!==t.left&&(e._scrollLeft=t.left,e.pointsByColumns(null))};e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._columnHeadersView=e.getView("columnHeadersView"),e._trackerView=e.getView("trackerView"),e._rowsView=e.getView("rowsView"),e._columnsController=e.getController("columns"),e._tablePositionController=e.getController("tablePosition"),e._$parentContainer=e._columnsSeparatorView.component.element(),e._subscribeToCallback(e._columnHeadersView.renderCompleted,t),e._subscribeToCallback(e._columnHeadersView.resizeCompleted,t),e._subscribeToCallback(e._columnsSeparatorView.renderCompleted,function(){e._unsubscribeFromEvents(),e._subscribeToEvents()}),e._subscribeToCallback(e._rowsView.renderCompleted,function(){e._rowsView.scrollChanged.remove(n),e._rowsView.scrollChanged.add(n)});var i=0!==e._rowsView.getScrollbarWidth(),o=0;e._subscribeToCallback(e.getController("tablePosition").positionChanged,function(t){if(e._isResizing&&!e._rowsView.isResizing){var n=0!==e._rowsView.getScrollbarWidth();i!==n||o&&o!==t.height?(i=n,o=t.height,e.component.updateDimensions()):e._rowsView.updateFreeSpaceRowHeight()}o=t.height})},optionChanged:function(e){this.callBase(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],S(this)&&this._init()},pointsByColumns:function(e){return void 0===e?(this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns):void(this._pointsByColumns=e)},dispose:function(){this._unsubscribes(),this.callBase()}}),P=d.ViewController.inherit({update:function(e){var t=this,n=t._columnHeadersView.element(),i=n&&n.offset(),a=i&&i.top||0,s=o.isDefined(e)?Math.abs(e-a):0,r=t._columnHeadersView?t._columnHeadersView.getHeight():0,l=t._rowsView?t._rowsView.height()-t._rowsView.getScrollbarWidth(!0):0;t.positionChanged.fire({height:r+l-s,top:n&&n.length&&n[0].offsetTop+s})},init:function(){var e=this;e.callBase(),e._columnHeadersView=this.getView("columnHeadersView"),e._rowsView=this.getView("rowsView"),e._pagerView=this.getView("pagerView"),e._rowsView.resizeCompleted.add(function(){e.update()})},ctor:function(e){this.callBase(e),this.positionChanged=i.Callbacks()}}),V=d.ViewController.inherit({_generatePointsByColumns:function(e){var t=this;return u.getPointsByColumns(e.columnElements,function(n){return t._pointCreated(n,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn)},e.isVerticalOrientation,e.startColumnIndex)},_pointCreated:function(e,t,n,i){var o=t[e.columnIndex],a=t[e.columnIndex-1];switch(n){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!o||!o.allowReordering)&&(!a||!a.allowReordering);default:return 0===t.length}},_subscribeToEvents:function(e,t){var n=this;i.each(t,function(o,a){if(a){var r,d,u,h=a.getRowCount?a.getRowCount():1,p=a.getName(),f=function(o,r){var u=i(r),h=d[o];a.allowDragging(d[o],p,t)&&(u.addClass(n.addWidgetPrefix(_)),u.on(c(l.start,C),n.createAction(function(a){var r=a.jQueryEvent,l=s.eventData(r);e.dragHeader({deltaX:l.x-i(r.currentTarget).offset().left,deltaY:l.y-i(r.currentTarget).offset().top,sourceColumn:h,index:h.index,columnIndex:o,columnElement:u,sourceLocation:p,draggingPanels:t,rowIndex:n._columnsController.getRowIndex(h.index,!0)})})),u.on(c(l.move,C),{that:e},n.createAction(e.moveHeader)),u.on(c(l.end,C),{that:e},n.createAction(e.dropHeader)))};for(r=0;r<h;r++)u=a.getColumnElements(r)||[],u.length&&(d=a.getColumns(r)||[],i.each(u,f))}})},_unsubscribeFromEvents:function(e,t){var n=this;i.each(t,function(e,t){if(t){var o=t.getColumnElements()||[];i.each(o,function(e,t){var o=i(t);o.off(c(l.start,C)),o.off(c(l.move,C)),o.off(c(l.end,C)),o.removeClass(n.addWidgetPrefix(_))})}})},_getSeparator:function(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(){var e=this._blockSeparatorView,t=this._columnsSeparatorView;this._animationColumnIndex=null,e&&e.hide(),t&&t.hide()},init:function(){var e,t=this;t.callBase(),t._columnsController=t.getController("columns"),t._columnHeadersView=t.getView("columnHeadersView"),t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._draggingHeaderView=t.getView("draggingHeaderView"),t._rowsView=t.getView("rowsView"),t._blockSeparatorView=t.getView("blockSeparatorView"),t._headerPanelView=t.getView("headerPanel"),t._columnChooserView=t.getView("columnChooserView"),e=function(){if(t._draggingHeaderView){var e=[t._columnChooserView,t._columnHeadersView,t._headerPanelView];t._unsubscribeFromEvents(t._draggingHeaderView,e),t._subscribeToEvents(t._draggingHeaderView,e)}},t._columnHeadersView.renderCompleted.add(e),t._headerPanelView&&t._headerPanelView.renderCompleted.add(e),t._columnChooserView&&t._columnChooserView.renderCompleted.add(e)},allowDrop:function(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)},dock:function(e){var t=this,n=o.isObject(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,i=e.sourceLocation,a=e.sourceIndex,s=e.sourceColumnElement,r=e.targetLocation,l=t._getSeparator(r),c=n>=0,d=function(){t._animationColumnIndex!==n&&(t.hideSeparators(),l.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,l.show(r))};t._columnHeadersView.element().find("."+y).toggleClass(t.addWidgetPrefix(w),"headers"!==i&&"headers"===r&&!c),l&&(s&&(s.css({opacity:.5}),"headers"===i&&(t._columnHeadersView.setRowsOpacity(a,.5),t._rowsView.setRowsOpacity(a,.5))),t.allowDrop(e)&&c?"group"===r||"columnChooser"===r?d():(t.hideSeparators(),t.getController("tablePosition").update(e.posY),l.moveByX(e.posX-l.width()),l.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+y).removeClass(this.addWidgetPrefix(w))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});e.exports={views:{columnsSeparatorView:A,blockSeparatorView:B,draggingHeaderView:M,trackerView:T},controllers:{draggingHeader:V,tablePosition:P,columnsResizer:O}}},function(e,t,n){var i=n(349),o=n(412);i.registerModule("keyboardNavigation",o)},function(e,t,n){function i(e){return e&&e.hasClass(v)}function o(e){return e&&e.hasClass(x)}function a(e){return e.length&&"TD"===e[0].tagName}var s=n(9),r=n(351),l=n(14),c=n(26).inArray,d=n(102),u=n(72),h=n(77),p="rowsview",f="edit-form",m="group-footer",g="dx-row",_="dx-data-row",v="dx-group-row",w="edit-form-item",x="dx-master-detail-row",y="dx-master-detail-cell",b="dx-dropdowneditor-overlay",C="dx-command-expand",k="input:not([type='hidden']), textarea, a, [tabindex]",I=["rowsView"],S="row",D="form",T=r.ViewController.inherit({_isRowEditMode:function(){var e=this._editingController.getEditMode();return e===S||e===D},_focusView:function(e,t){this._focusedViews.viewIndex=t,this._focusedView=e},_getInteractiveElement:function(e,t){var n=e.find(k).filter(":visible");return t?n.last():n.first()},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);n.focus()}},_updateFocus:function(){var e=this,t=e._getFocusedCell();!t||e._isMasterDetailCell(t)&&!e._isRowEditMode()||(e._hasSkipRow(t.parent())&&(t=e._getNextCell(this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),t&&t.length>0&&setTimeout(function(){t.is("td")||t.hasClass(e.addWidgetPrefix(w))?(e.getController("editorFactory").focus()&&e._focus(t),e._editingController.isEditing()&&s.proxy(e._focusInteractiveElement,e)(t)):t.focus()}))},_applyTabIndexToElement:function(e){var t=this.option("tabIndex");e.attr("tabIndex",l.isDefined(t)?t:0)},_clickHandler:function(e){var t=e.jQueryEvent,n=s(t.currentTarget),i=s(t.target).closest("."+this.getWidgetContainerClass()).parent(),o=t.data;i.is(this.component.element())&&this._isCellValid(n)?(this._focusView(o.view,o.viewIndex),this._updateFocusedCellPosition(n),this._editingController.isEditing()||(this._applyTabIndexToElement(o.view.element()),o.view.element().find(".dx-row > td[tabIndex]").attr("tabIndex",null),n.focus())):this._resetFocusedCell()},_initFocusedViews:function(){var e=this,t=e.createAction(e._clickHandler);e._focusedViews=[],s.each(I,function(t,n){var i=e.getView(n);i&&i.isVisible()&&e._focusedViews.push(i)}),s.each(e._focusedViews,function(n,i){i&&i.renderCompleted.add(function(){var o=i.element();o.off(u.addNamespace(h.down,"dxDataGridKeyboardNavigation"),t),o.on(u.addNamespace(h.down,"dxDataGridKeyboardNavigation"),"."+g+" td",{viewIndex:n,view:i},t),e._initKeyDownProcessor(e,o,e._keyDownHandler),e._focusedView&&e._focusedView.name===i.name&&e._isNeedFocus&&e._updateFocus()})})},_initKeyDownProcessor:function(e,t,n){this._keyDownProcessor&&(this._keyDownProcessor.dispose(),this._keyDownProcessor=null),this._keyDownProcessor=new d({element:t,context:e,handler:n})},_getCell:function(e){if(this._focusedView&&e)return this._focusedView.getCell({rowIndex:e.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:e.columnIndex})},_getFocusedCell:function(){return this._getCell(this._focusedCellPosition)},_getRowIndex:function(e){var t=this,n=t._focusedView,i=-1;return n&&(i=n.getRowIndex(e)),i>=0&&(i+=t._dataController.getRowIndexOffset()),i},_updateFocusedCellPosition:function(e,t){var n,i,o=this,a=e.closest("tr");a.length>0&&o._focusedView&&(n=a.length>0&&o._getRowIndex(a),i=o._focusedView.getCellIndex(e,n),t&&(i="previous"===t?i-1:i+1,i=o._applyColumnIndexBoundaries(i)),this._focusedCellPosition={columnIndex:i,rowIndex:n})},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellValid:function(e){if(l.isDefined(e)){var t=this.getView("rowsView"),n=this._columnsController.getVisibleColumns(),i=t.getRowIndex(e.parent()),a=t.getCellIndex(e),s=n[a],r=this._getVisibleColumnCount(),c=this._editingController,d=c&&c.getEditMode(),u=c&&(d===S?c.isEditRow(i):c.isEditing()),h=o(e.parent()),p=function(){return!h&&s&&!l.isDefined(s.groupIndex)||parseInt(e.attr("colspan"))>1};if(this._isMasterDetailCell(e))return!0;if(r>a&&p()){var f="expand"===s.command;return s&&!s.command&&(!u||s.allowEditing)||!u&&f}}},_isCellByPositionValid:function(e){var t=this._getCell(e);return this._isCellValid(t)},_focus:function(e){var t,n=e.parent(),o=this._getFocusedCell(),s=this._focusedView;o&&o.is("td")&&o.attr("tabIndex",null),i(n)?(t=n,s&&(this._focusedCellPosition.rowIndex=this._getRowIndex(n))):a(e)&&(t=e,this._updateFocusedCellPosition(e)),s&&s.element().attr("tabIndex",null),t&&(this._applyTabIndexToElement(t),t.focus()),this.getController("editorFactory").focus(t)},_hasSkipRow:function(e){return e&&("none"===e.css("display")||e.hasClass(this.addWidgetPrefix(m))||o(e)&&!e.hasClass(this.addWidgetPrefix(f)))},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),o=this.option("editing"),a=this._getFocusedRowIndex(),r=this._focusedView&&this._focusedView.getRow(a);if(this.option("grouping.allowCollapsing")&&i(r)||this.option("masterDetail.enabled")&&n&&n.hasClass(C)){var l=this._dataController.getKeyByRowIndex(a),c=this._dataController.items()[a];void 0!==l&&c&&c.data&&!c.data.isContinuation&&this._dataController.changeRowExpand(l)}else if(t)n=this._getCellElementFromTarget(e.originalEvent.target),this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(s(e.originalEvent.target).blur().focus(),this._editingController.closeEditCell()),e.originalEvent.preventDefault();else{var d=this._columnsController.getVisibleColumns()[this._focusedCellPosition.columnIndex];o.allowUpdating&&d&&d.allowEditing&&(this._isRowEditMode()?this._editingController.editRow(a):this._focusedCellPosition&&this._editingController.editCell(a,this._focusedCellPosition.columnIndex))}},_getFocusedRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():null},_leftRightKeysHandler:function(e,t){var n,a,s,r=this._getFocusedRowIndex(),l=this._focusedView&&this._focusedView.getRow(r),c=this._dataController;e.ctrl?(a=this._getDirectionCodeByKey(e.key),n=c.getKeyByRowIndex(r),"nextInRow"===a?c.expandRow(n):c.collapseRow(n)):t||!l||i(l)||o(l)||(a=this._getDirectionCodeByKey(e.key),s=this._getNextCell(a),s&&this._isCellValid(s)&&this._focus(s),e.originalEvent.preventDefault())},_getDirectionCodeByKey:function(e){var t;return t=this.option("rtlEnabled")?"leftArrow"===e?"nextInRow":"previousInRow":"leftArrow"===e?"previousInRow":"nextInRow"},_upDownKeysHandler:function(e,t){var n,i=this._getFocusedRowIndex(),a=this._focusedView&&this._focusedView.getRow(i);t||o(a)||(n=this._getNextCell(e.key),n&&this._isCellValid(n)&&this._focus(n),e.originalEvent.preventDefault())},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_scrollBy:function(e){var t=this,n=this.getView("rowsView").getScrollable();if(t._focusedCellPosition){var i=function(){n.off(i),setTimeout(function(){var e=t._focusedCellPosition.columnIndex,n=t.getView("rowsView").getTopVisibleItemIndex()+t._dataController.getRowIndexOffset();t.getController("editorFactory").loseFocus();var i=t.getView("rowsView").element();t._applyTabIndexToElement(i),i.focus(),t._focusedCellPosition.rowIndex=n,t._focusedCellPosition.columnIndex=e})};n.on("scroll",i)}n.scrollBy({left:0,top:e})},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===e.key,a=o?-1:1,s=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+a),e.originalEvent.preventDefault()):s&&s._container().height()<s.content().height()&&(this._scrollBy(s._container().height()*a),e.originalEvent.preventDefault())},_spaceKeyHandler:function(e,t){var n=this._getFocusedRowIndex(),i=s(e.originalEvent&&e.originalEvent.target);this.option("selection")&&"none"!==this.option("selection").mode&&!t&&(i.parent().hasClass(_)||i.hasClass(this.addWidgetPrefix(p)))&&(this._selectionController.changeItemSelection(n,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault())},_ctrlAKeyHandler:function(e,t){!t&&e.ctrl&&!e.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),e.originalEvent.preventDefault())},_isInsideEditForm:function(e){return s(e).closest("."+this.addWidgetPrefix(f)).length>0},_isMasterDetailCell:function(e){var t=s(e).closest("."+y),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition(s(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_tabKeyHandler:function(e,t){var n,i=this.option("editing"),o=e.shift?"previous":"next",a=!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),r=e.originalEvent.target;if(!this._handleTabKeyOnMasterDetailCell(r,o)){if(i&&r&&!a)if(s(r).hasClass(this.addWidgetPrefix(p))&&this._resetFocusedCell(),t){var l,c,d;if(this._updateFocusedCellPosition(this._getCellElementFromTarget(r)),n=this._getNextCell(o),this._handleTabKeyOnMasterDetailCell(n,o))return;l=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(n)],c=this._dataController.items()[this._getRowIndex(n&&n.parent())],d=(i.allowUpdating||c&&c.inserted)&&l.allowEditing,d||this._editingController.closeEditCell(),this._focusCell(n)&&(!this._isRowEditMode()&&d?this._editingController.editCell(this._getFocusedRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(n,e.shift))}else{n=s(r).closest(".dx-row > td");var u=this._getInteractiveElement(n,!e.shift);u.length&&r!==u.get(0)?a=!0:(n=this._getNextCell(o,this._getElementType(r)),this._focusCell(n),this._focusInteractiveElement(n,e.shift))}a?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._editingController.closeEditCell())):e.originalEvent.preventDefault()}},_focusCell:function(e){if(this._isCellValid(e))return this._focus(e),!0},_getElementType:function(e){return s(e).is("tr")?"row":"cell"},_focusEditFormCell:function(e){e.hasClass(y)&&this.getController("editorFactory").focus(e,!0)},_escapeKeyHandler:function(e,t){if(t){var n=this._getCellElementFromTarget(e.originalEvent.target);this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData()):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._editingController.closeEditCell(),e.originalEvent.preventDefault()}},_ctrlFKeyHandler:function(e){e.ctrl&&this.option("searchPanel")&&this.option("searchPanel").visible&&(this._headerPanel.focus(),e.originalEvent.preventDefault())},_keyDownHandler:function(e){var t=this._editingController.isEditing(),n=!0,i={handled:!1,jQueryEvent:e.originalEvent};if(this.executeAction("onKeyDown",i),!e.originalEvent.isDefaultPrevented()&&(this._isNeedFocus=!0,this._isNeedScroll=!0,this._updateFocusedCellPosition(this._getCellElementFromTarget(i.jQueryEvent.target)),!i.handled)){switch(e.key){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,t);break;case"upArrow":case"downArrow":this._upDownKeysHandler(e,t);break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e);break;case"space":this._spaceKeyHandler(e,t);break;case"A":this._ctrlAKeyHandler(e,t);break;case"tab":this._tabKeyHandler(e,t);break;case"enter":this._enterKeyHandler(e,t);break;case"escape":this._escapeKeyHandler(e,t);break;case"F":this._ctrlFKeyHandler(e);break;default:this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1}n&&e.originalEvent.stopPropagation()}},_isLastRow:function(e){return this._isVirtualScrolling()?e>=this._dataController.totalItemsCount()-1:e===this.getController("data").items().length-1},_getNextCell:function(e,t,n){var i,o,a,s,r=n||this._focusedCellPosition,l=c(e,["next","previous"])>-1,d="previous"===e?this._isFirstValidCell(r):this._isLastValidCell(r);if(this._focusedView&&r){if(o=this._getNewPositionByCode(r,t,e),a=this._getCell(o),this._isCellValid(a)||!this._isCellInRow(o,l)||d||(a=this._getNextCell(e,"cell",o)),s=a&&a.parent(),this._hasSkipRow(s)){if(i=this._getRowIndex(s),this._isLastRow(i))return null;a=this._getNextCell(e,"row",{columnIndex:r.columnIndex,rowIndex:i})}return a}return null},_getNewPositionByCode:function(e,t,n){var i,o=e.columnIndex,a=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i=this._getVisibleColumnCount(),o<i-1&&!this._isLastValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o++:this._isLastRow(a)||"next"!==n||(o=0,a++);break;case"previousInRow":case"previous":o>0&&!this._isFirstValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o--:a>0&&"previous"===n&&(a--,i=this._getVisibleColumnCount(),o=i-1);break;case"upArrow":a=a>0?a-1:a;break;case"downArrow":a=this._isLastRow(a)?a:a+1}return{columnIndex:o,rowIndex:a}},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._haveValidCellBeforePosition(e)),t},_haveValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(e){var t={columnIndex:e.columnIndex+1,rowIndex:e.rowIndex},n=this._getVisibleColumnCount(),i=this._isCellByPositionValid(t);return!!this._isLastRow(e.rowIndex)&&(e.columnIndex===n-1||!i&&this._isLastValidCell(t))},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n<i-1},_resetFocusedCell:function(){var e=this,t=e._getFocusedCell();t&&t.attr("tabIndex",null),e._focusedView&&e._focusedView.renderFocusState&&e._focusedView.renderFocusState(),e._isNeedFocus=!1,e._isNeedScroll=!1,e._focusedCellPosition={}},_getCellElementFromTarget:function(e){return s(e).closest("."+g+"> td")},init:function(){var e=this;e.option("useKeyboard")&&(e._dataController=e.getController("data"),e._selectionController=e.getController("selection"),e._editingController=e.getController("editing"),e._headerPanel=e.getView("headerPanel"),e._columnsController=e.getController("columns"),e.getController("editorFactory").focused.add(function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._scrollToElement(t),e._isNeedScroll=!1)}),e._focusedCellPosition={},e._initFocusedViews(),e._documentClickHandler=e.createAction(function(t){var n=s(t.jQueryEvent.target);n.closest("."+e.addWidgetPrefix(p)).length||n.closest("."+b).length||e._resetFocusedCell()}),e.createAction("onKeyDown"),s(document).on(u.addNamespace(h.down,"dxDataGridKeyboardNavigation"),e._documentClickHandler))},_scrollToElement:function(e,t){var n=this._focusedView.getScrollable();n&&n.scrollToElement(e,t)},focus:function(e){var t=this._getFocusedViewByElement(e);t&&(this._focusView(t.view,t.viewIndex),this._isNeedFocus=!0,this._isNeedScroll=!0,this._focus(e),this._focusInteractiveElement(e))},getFocusedView:function(){return this._focusedView},_getFocusedViewByElement:function(e){var t=function(t){return e.closest(t._$element).length};return this._getFocusedViewByCondition(t)},_getFocusedViewByCondition:function(e){var t;return s.each(this._focusedViews,function(n,i){if(e(i))return t={viewIndex:n,view:i},!1}),t},focusViewByName:function(e){var t=this._getFocusedViewByName(e);this._focusView(t.view,t.viewIndex)},setupFocusedView:function(){this.option("useKeyboard")&&!l.isDefined(this._focusedView)&&this.focusViewByName("rowsView")},_getFocusedViewByName:function(e){var t=function(t){return t.name===e};return this._getFocusedViewByCondition(t)},optionChanged:function(e){var t=this;switch(e.name){case"useKeyboard":e.handled=!0;break;default:t.callBase(e)}},dispose:function(){this.callBase(),this._focusedView=null,this._focusedViews=null,this._keyDownProcessor&&this._keyDownProcessor.dispose(),s(document).off(u.addNamespace(h.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)}});e.exports={defaultOptions:function(){return{useKeyboard:!0}},controllers:{keyboardNavigation:T},extenders:{views:{rowsView:{renderFocusState:function(){var e,t,n=this,o=n.getCellElements(0),s=n.getController("keyboardNavigation"),r=n.option("tabIndex"),l=s._focusedView,c=n.element();if(c&&!c.is(":focus")&&c.attr("tabIndex",null),n.option("useKeyboard")&&o)if(e=o.eq(0).parent(),i(e))e.attr("tabIndex",r);else{s._focusedView=n;for(var d=0;d<o.length;d++)if(t=o.eq(d),s._isCellValid(t)){a(t)&&t.attr("tabIndex",r);break}s._focusedView=l}},renderDelayedTemplates:function(){this.callBase.apply(this,arguments),this.renderFocusState()},_renderCore:function(e){this.callBase(e),this.renderFocusState()}}},controllers:{editing:{editCell:function(e,t){var n=this.callBase(e,t),i=this.getController("keyboardNavigation");return n&&i.setupFocusedView(),n},addRow:function(e){this.getController("keyboardNavigation").setupFocusedView(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(e){var t=this.getController("keyboardNavigation"),n=this.callBase(e);return this.option("useKeyboard")&&t._focusedCellPosition.rowIndex===e&&(n=t._getFocusedCell()||n),n}}}}}},function(e,t,n){var i=n(9),o=n(14),a=n(12).isEmptyObject,s=n(11).extend,r=n(50).compileGetter,l=n(22),c=n(349),d=n(90),u=n(359),h=n(354),p=n(414),f=n(160),m=n(138),g="dx-datagrid-total-footer",_="dx-datagrid-summary-item",v="dx-datagrid-text-content",w="dx-datagrid-group-footer",x="dx-datagrid-group-text-content",y="dx-datagrid-nowrap",b="groupFooter",C=function(e,t){var n,o,a=t.column,s=t.summaryItems,r=[];if(!a.command&&s){for(n=0;n<s.length;n++)o=s[n],r.push(i("
").css("text-align",o.alignment||a.alignment).addClass(_).addClass(v).addClass(o.cssClass).toggleClass(x,"group"===t.rowType).text(c.getSummaryText(o,t.summaryTexts)));e.append(r)}},k=function(e,t){var n=e.option("summary.texts")||{};return{totalItem:t.row,summaryItems:t.row.summaryCells[t.columnIndex],summaryTexts:n}},I=function(e){return e.summary||e.aggregates||[]};t.FooterView=h.ColumnsView.inherit(function(){return{_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(e){return s(this.callBase(e),k(this,e))},_renderCellContent:function(e,t){C(e,t),this.callBase(e,t)},_renderCore:function(){var e=this._dataController.footerItems()[0];this.element().empty().addClass(g).toggleClass(y,!this.option("wordWrapEnabled")),e&&e.summaryCells&&e.summaryCells.length&&this._updateContent(this._renderTable())},_rowClick:function(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",s({},e,t))},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&this.callBase(e)},_handleDataChanged:function(e){"refresh"===e.changeType&&this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}}}());var S=function(){return{init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=o.noop},summaryGetter:function(e){return arguments.length?void(o.isFunction(e)&&(this._summaryGetter=e)):this._summaryGetter},summary:function(e){return arguments.length?void(this._summaryGetter=function(){return e}):this._summaryGetter()},totalAggregates:function(){return this._totalAggregates}}}(),D=function(){var e=function(e,t,n,i){var o;return t&&(o=new p({totalAggregates:t.totalAggregates,groupAggregates:t.groupAggregates,data:n,groupLevel:i}),o.calculate()),o?o.totalAggregates():[]},t=function(e,n,o){if(!e||!n.length)return e;var a,s=n[0],r=o[0];return s&&r&&r.length&&(a=f(e),i.each(r,function(e){a=0===e?a.sortBy(this.selector,this.desc):a.thenBy(this.selector,this.desc)}),a.enumerate().done(function(t){e=t})),n=n.slice(1),o=o.slice(1),n.length&&o.length&&i.each(e,function(){this.items=t(this.items,n,o)}),e},n=function(e,n,i){var o=i&&i.sortByGroups&&i.sortByGroups();return o&&o.length?t(e,n,o):e};return{_customizeRemoteOperations:function(e){var t=this.summary();t&&(e.remoteOperations.summary?e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),this.callBase.apply(this,arguments)},_handleDataLoadedCore:function(t){var i,o=this,a=m.normalizeSortingInfo(t.storeLoadOptions.group||t.loadOptions.group||[]),s=t.remoteOperations||{},r=o.summaryGetter()(s);s.summary?!s.paging&&a.length&&r&&(s.grouping||e(o,{groupAggregates:r.groupAggregates},t.data,a.length),t.data=n(t.data,a,r)):s.paging||(i=e(o,r,t.data,a.length),t.data=n(t.data,a,r),t.extra=t.extra||{},t.extra.summary=i),t.isCustomLoading||(o._totalAggregates=t.extra&&t.extra.summary||o._totalAggregates),o.callBase(t)}}}();u.extend(S),u.extend(D),t.renderSummaryCell=C,c.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,texts:{sum:d.getFormatter("dxDataGrid-summarySum"),sumOtherColumn:d.getFormatter("dxDataGrid-summarySumOtherColumn"),min:d.getFormatter("dxDataGrid-summaryMin"),minOtherColumn:d.getFormatter("dxDataGrid-summaryMinOtherColumn"),max:d.getFormatter("dxDataGrid-summaryMax"),maxOtherColumn:d.getFormatter("dxDataGrid-summaryMaxOtherColumn"),avg:d.getFormatter("dxDataGrid-summaryAvg"),avgOtherColumn:d.getFormatter("dxDataGrid-summaryAvgOtherColumn"),count:d.getFormatter("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:t.FooterView},extenders:{controllers:{data:function(){return{_isDataColumn:function(e){return e&&(!o.isDefined(e.groupIndex)||e.showWhenGrouped)},_isGroupFooterVisible:function(){var e,t,n,i=this.option("summary.groupItems")||[];for(n=0;n<i.length;n++)if(e=i[n],t=this._columnsController.columnOption(e.showInColumn||e.column),e.showInGroupFooter&&this._isDataColumn(t))return!0;return!1},_processGroupItems:function(e,t,n){var i=n&&n.data,o=this.callBase.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!i.isContinuationOnNextPage)&&o.push({rowType:b,data:i,groupIndex:n.path.length-1,values:[]})),o},_processGroupItem:function(e,t){var n=this;if(t.summaryGroupItems||(t.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===e.rowType){var a=-1,s=-1;i.each(t.visibleColumns,function(n){var i=t.visibleColumns[n-1];e.groupIndex===this.groupIndex&&(a=this.index),n>0&&"expand"===i.command&&"expand"!==this.command&&(s=this.index)}),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,I(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter?-1:e.alignByColumn&&t&&!o.isDefined(t.groupIndex)&&t.index!==s?t.index:a})}return e.rowType===b&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,I(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter&&n._isDataColumn(t)?t.index:-1})),e},_calculateSummaryCells:function(e,t,n,r){var l=this,d=[],u={};return i.each(e,function(e,n){var i,a=l._columnsController.columnOption(n.column),d=n.showInColumn&&l._columnsController.columnOption(n.showInColumn)||a,h=r(n,d);h>=0&&(u[h]||(u[h]=[]),i=t[e],i===i&&u[h].push(s({},n,{value:o.isString(i)&&a&&a.deserializeValue?a.deserializeValue(i):i,valueFormat:o.isDefined(n.valueFormat)?n.valueFormat:c.getFormatByDataType(a&&a.dataType),columnCaption:a&&a.index!==h?a.caption:void 0})))}),a(u)||i.each(n,function(){d.push(u[this.index]||[])}),d},_getSummaryCells:function(e,t){var n=this,i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(),function(e,t){return n._isDataColumn(t)?t.index:-1})},_updateItemsCore:function(e){var t,n,i=this,o=i._dataSource,a=i.option("summary.totalItems");i.callBase(e),i._footerItems=[],o&&a&&a.length&&(n=o.totalAggregates(),t=this._getSummaryCells(a,n),t.length&&i._footerItems.push({rowType:"totalFooter",summaryCells:t}))},_getAggregates:function(e,t){var n=this,a=n.getController("columns"),s=n.option("summary.calculateCustomSummary"),c=n.option("summary.skipEmptyValues");return i.map(e||[],function(e){var i,d=a.columnOption(e.column),u=d&&d.calculateCellValue?d.calculateCellValue.bind(d):r(d?d.dataField:e.column),h=e.summaryType||"count",p=e.column,f=o.isDefined(e.skipEmptyValues)?e.skipEmptyValues:c;return t?{selector:e.column,summaryType:e.summaryType}:(p="avg"===h||"sum"===h?function(e){var t=u(e);return o.isDefined(t)?Number(t):t}:u,"custom"===h&&(s||(l.log("E1026"),s=function(){}),i={component:n.component,name:e.name },s(i),i.summaryProcess="calculate",h={seed:function(){return i.summaryProcess="start",i.totalValue=void 0,delete i.value,s(i),i.totalValue},step:function(e,t){return i.summaryProcess="calculate",i.totalValue=e,i.value=t,s(i),i.totalValue},finalize:function(e){return i.summaryProcess="finalize",i.totalValue=e,delete i.value,s(i),i.totalValue}}),{selector:p,aggregator:h,skipEmptyValues:f})})},_addSortInfo:function(e,t,n,i){var a;t&&(a=t.groupIndex,i=i||t.sortOrder,o.isDefined(a)&&(e[a]=e[a]||[],e[a].push({selector:n,desc:"desc"===i})))},_findSummaryItem:function(e,t){var n=-1,a=function(e){var t=e.summaryType,n=e.column;return t&&n&&t+"_"+n};return o.isDefined(t)&&i.each(e||[],function(e){if(this.name===t||e===t||this.summaryType===t||this.column===t||a(this)===t)return n=e,!1}),n},_getSummarySortByGroups:function(e,t){var n=this,a=n._columnsController,s=a.getGroupColumns(),r=[];if(t&&t.length)return i.each(e||[],function(){var e=this.sortOrder,l=this.groupColumn,c=n._findSummaryItem(t,this.summaryItem);if(!(c<0)){var d=function(e){return I(e)[c]};o.isDefined(l)?(l=a.columnOption(l),n._addSortInfo(r,l,d,e)):i.each(s,function(t,i){n._addSortInfo(r,i,d,e)})}}),r},_createDataSourceAdapterCore:function(e,t){var n=this,i=this.callBase(e,t);return i.summaryGetter(function(e){return n._getSummaryOptions(e||t)}),i},_getSummaryOptions:function(e){var t=this,n=t.option("summary.groupItems"),i=t.option("summary.totalItems"),o=t.option("sortByGroupSummaryInfo"),a=t._getAggregates(n,e&&e.grouping&&e.summary),s=t._getAggregates(i,e&&e.summary),r=function(){return t._getSummarySortByGroups(o,n)};if(a.length||s.length)return{groupAggregates:a,totalAggregates:s,sortByGroups:r}},publicMethods:function(){var e=this.callBase();return e.push("getTotalSummaryValue"),e},getTotalSummaryValue:function(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]},optionChanged:function(e){"summary"!==e.name&&"sortByGroupSummaryInfo"!==e.name||(e.name="dataSource"),this.callBase(e)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}}}()},views:{rowsView:function(){return{_createRow:function(e){var t=this.callBase(e);return e&&t.addClass(e.rowType===b?w:""),t},_renderCells:function(e,t){this.callBase.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)},_hasAlignByColumnSummaryItems:function(e,t){return!o.isDefined(t.columns[e].groupIndex)&&t.row.summaryCells[e].length},_getAlignByColumnCellCount:function(e,t){for(var n,i=0,o=1;o<e;o++)n=t.row.summaryCells.length-o,i=this._hasAlignByColumnSummaryItems(n,t)?o:i;return i},_renderGroupSummaryCells:function(e,t){var n=e.children().last(),i=Number(n.attr("colspan"))||1,o=this._getAlignByColumnCellCount(i,t);this._renderGroupSummaryCellsCore(n,t,i,o)},_renderGroupSummaryCellsCore:function(e,t,n,i){if(i>0){e.attr("colspan",n-i);for(var o=0;o<i;o++){var a=t.columns.length-i+o;this._renderCell(e.parent(),s({column:t.columns[a],columnIndex:this._getSummaryCellIndex(a,t.columns)},t))}}},_getSummaryCellIndex:function(e){return e},_getCellTemplate:function(e){return!e.column.command&&!o.isDefined(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?C:this.callBase(e)},_getCellOptions:function(e){var t=this,n=t.callBase(e);return e.row.summaryCells?s(n,k(t,e)):n}}}()}}})},function(e,t,n){function i(e,t,n,o){var a=0;if(e<t)for(;a<n.items.length;a++)i(e+1,t,n.items[a],o);e===t&&o(n)}function o(e,t){var n,i;if("map"in e)return e.map(t);i=new Array(e.length);for(n in e)i[n]=t(e[n],n);return i}function a(e){return e!==e||""===e||null===e||void 0===e}function s(e){return e===h.aggregators.count}function r(e){var t=c(e.selector),n=!("skipEmptyValues"in e)||e.skipEmptyValues,i=e.aggregator;if("string"==typeof i&&(i=h.aggregators[i],!i))throw u.Error("E4001",e.aggregator);return{selector:t,aggregator:i,skipEmptyValues:n}}var l=n(25),c=n(50).compileGetter,d=n(14).isFunction,u=n(156).errors,h=n(138);e.exports=l.inherit({ctor:function(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=o(e.totalAggregates||[],r),this._groupAggregates=o(e.groupAggregates||[],r),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(e,t,n){var i,o;for(i=0;i<e.length;i++)if(s(e[i].aggregator))n[i]=(n[i]||0)+t.items.length;else for(o=0;o<t.items.length;o++)this._accumulate(i,e[i],n,t.items[o])},_calculateTotals:function(e,t){var n;if(0===e&&(this._totals=this._seed(this._totalAggregates)),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(n=0;n<t.items.length;n++)this._calculateTotals(e+1,t.items[n]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(e){function t(e){e.aggregates=a(),o===n?s(e,e.aggregates):i(o,n,e,function(t){s(t,e.aggregates)}),e.aggregates=r(e.aggregates)}for(var n=this._groupLevel,o=n+1,a=this._seed.bind(this,this._groupAggregates),s=this._aggregate.bind(this,this._groupAggregates),r=this._finalize.bind(this,this._groupAggregates);--o>0;)i(0,o,e,t)},_seed:function(e){return o(e,function(e){var t=e.aggregator,n="seed"in t?d(t.seed)?t.seed():t.seed:NaN;return n})},_accumulate:function(e,t,n,i){var o=t.selector(i),s=t.aggregator,r=t.skipEmptyValues;r&&a(o)||(n[e]!==n[e]?n[e]=o:n[e]=s.step(n[e],o))},_finalize:function(e,t){return o(e,function(e,n){var i=e.aggregator.finalize;return i?i(t[n]):t[n]})}})},function(e,t,n){var i=n(349),o=n(416);i.registerModule("columnFixing",o)},function(e,t,n){var i=n(9),o=n(23),a=n(14),s=n(11).extend,r=n(86),l=n(90),c=n(350),d="content",u="content-fixed",h="dx-master-detail-cell",p="dx-first-cell",f="dx-last-cell",m="dx-state-hover",g="dx-col-fixed",_="dx-pointer-events-target",v="dx-pointer-events-none",w=function(e){var t=-1;return i.each(e,function(e,n){if("transparent"===n.command)return t=e,!1}),t},x=function(e,t,n){var i,o=0;if(e&&t&&n)for(i=0;i<e.length;i++)"transparent"===e[i].command?o+=e[i].colspan:(t[o]<n[i]&&(t[o]=n[i]),o++);return t},y={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(e){return this.callBase(e).toggleClass(g,!(!this._isFixedTableRendering||!(e.fixed||e.command&&"transparent"!==e.command)))},_renderTable:function(e){var t,n,i=this,o=i.getFixedColumns();return i._isFixedColumns=!!o.length,n=i.callBase(e),i._isFixedColumns?(i._isFixedTableRendering=!0,t=i._createTable(o),i._renderRows(t,s({},e,{columns:o})),i._updateContent(t,e&&e.change),i._isFixedTableRendering=!1):(i._fixedTableElement&&i._fixedTableElement.remove(),i._fixedTableElement=null),n},_createCell:function(e){var t,n,i,o=this,a=e.column,s=a&&a.command,r=e.rowType,l=o.callBase.apply(o,arguments);return(o._isFixedTableRendering||"filter"===r)&&(t=o.getFixedColumns(),i=w(t),n=t[i-1]),o._isFixedTableRendering?"transparent"===s&&l.addClass(v).toggleClass(p,0===i||n&&"expand"===n.command).toggleClass(f,t.length&&i===t.length-1).html("freeSpace"!==r?" ":""):"filter"===r&&l.toggleClass(p,e.columnIndex===i),l},_wrapTableInScrollContainer:function(){var e=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&e.addClass(this.addWidgetPrefix(u)+" "+_),e},_renderCellContent:function(e,t){var n,i,o,s,r=this,l=t.column;return!r._isFixedTableRendering&&r._isFixedColumns&&(i=l.fixed||l.command,"group"===t.rowType&&a.isDefined(l.groupIndex)&&(i=!1,t.row.summaryCells&&t.row.summaryCells.length&&(n=r._columnsController.getVisibleColumns(),s=r._getAlignByColumnCellCount?r._getAlignByColumnCellCount(l.colspan,{columns:n,row:t.row,isFixed:!0}):0,s>0&&(o=w(r._columnsController.getFixedColumns()),i=n.length-s<o))),i)?void e.html(" ").addClass(l.cssClass):void("transparent"!==l.command&&r.callBase(e,t))},_getCellElementsCore:function(e){var t,n,o,a=this,s=a.callBase(e),r="columnHeadersView"===a.name?e:void 0;return a._fixedTableElement&&s&&(t=a.getFixedColumns(r),o=a._getRowElements(a._fixedTableElement).eq(e).children("td"),i.each(t,function(e,t){"transparent"===t.command?o.eq(e).hasClass(h)&&(s[e]=o.get(e)||s[e]):(n=a._columnsController.getVisibleIndex(t.index,r),s[n]=o.get(e)||s[n])})),s},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumns();return t._fixedTableElement&&n.length&&(e=t.callBase(t._fixedTableElement)),x(i,n,e)},_getTableElement:function(){var e=this._isFixedTableRendering?this._fixedTableElement:this.callBase();return e},_setTableElement:function(e){this._isFixedTableRendering?this._fixedTableElement=e.addClass(v):this.callBase(e)},getColumns:function(e,t){return t=t||this._getTableElement(),this._isFixedTableRendering||t&&t.closest("table").parent("."+this.addWidgetPrefix(u)).length?this.getFixedColumns(e):this.callBase(e,t)},getRowIndex:function(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):this.callBase(e)},getTableElements:function(){var e=this.callBase.apply(this,arguments);return this._fixedTableElement&&(e=e.add(this._fixedTableElement)),e},getFixedColumns:function(e){return this._columnsController.getFixedColumns(e)},getFixedColumnsOffset:function(){var e,t,n={left:0,right:0};return this._fixedTableElement&&(e=this.getTransparentColumnElement(),t=e.position(),n={left:t.left,right:this.element().outerWidth(!0)-(e.outerWidth(!0)+t.left)}),n},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+v).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(e){var t;this.callBase.apply(this,arguments),this._fixedTableElement&&(e&&e.length&&!this.isScrollbarVisible(!0)&&(t=this._columnsController.getVisibleColumns()),this.callBase(e,this._fixedTableElement,t)),this.synchronizeRows()},_getClientHeight:function(e){var t=e.getBoundingClientRect&&e.getBoundingClientRect();return t&&t.height?t.height:e.clientHeight},synchronizeRows:function(){var e,t,n,i,o,a,s,r=this,l=[],c=[];if(r._isFixedColumns&&r._tableElement&&r._fixedTableElement&&(i=r._getClientHeight(r._tableElement.get(0)),o=r._getClientHeight(r._fixedTableElement.get(0)),a=r._getRowElements(r._tableElement),s=r._getRowElements(r._fixedTableElement),i!==o)){for(a.css("height",""),s.css("height",""),n=0;n<a.length;n++)l.push(r._getClientHeight(a.get(n))),c.push(r._getClientHeight(s.get(n)));for(n=0;n<a.length;n++)e=l[n],t=c[n],e>t?s.eq(n).css("height",e):e<t&&a.eq(n).css("height",t)}}},b=s({},y,{_getRowVisibleColumns:function(e){return this._isFixedTableRendering?this.getFixedColumns(e):this.callBase(e)},getContextMenuItems:function(e){var t,n=this,i=e.column,o=n.option("columnFixing"),a=n.callBase(e);return e.row&&"header"===e.row.rowType&&i&&i.allowFixing&&(t=function(e){switch(e.itemData.value){case"none":n._columnsController.columnOption(i.index,"fixed",!1);break;case"left":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"left"});break;case"right":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"right"})}},a=a||[],a.push({text:o.texts.fix,beginGroup:!0,items:[{text:o.texts.leftPosition,value:"left",disabled:i.fixed&&(!i.fixedPosition||"left"===i.fixedPosition),onItemClick:t},{text:o.texts.rightPosition,value:"right",disabled:i.fixed&&"right"===i.fixedPosition,onItemClick:t}]},{text:o.texts.unfix,value:"none",disabled:!i.fixed,onItemClick:t})),a},setScrollerSpacing:function(e){var t=this,n=t.option("rtlEnabled");t.callBase(e),t.element().children("."+this.addWidgetPrefix(u)).css(n?{paddingLeft:e}:{paddingRight:e})},getFixedColumnElements:function(e){var t,n,i,o=this;return a.isDefined(e)?this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children():(t=o.getColumnElements(),i=o.getTransparentColumnElement(),t&&i&&i.length&&(n=w(o.getFixedColumns()),t.splice(n,i.get(0).colSpan,i.get(0))),t)},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumnElements(),o=t.getFixedColumns();return t._fixedTableElement&&(e=i&&i.length?t._getWidths(i):t.callBase(t._fixedTableElement)),x(o,n,e)}}),C=s({},y,{_detachHoverEvents:function(){this._fixedTableElement&&this._fixedTableElement.off("mouseover mouseout",".dx-data-row"),this._tableElement&&this._tableElement.off("mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var e=this,t=function(t){t.on("mouseover mouseout",".dx-data-row",e.createAction(function(t){var n=t.jQueryEvent,o=e.getRowIndex(i(n.target).closest(".dx-row")),a="mouseover"===n.type;o>=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(o).toggleClass(m,a),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(o).toggleClass(m,a))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n,o=this,a=o.addWidgetPrefix(d),s=o.element();return s&&o._isFixedTableRendering?(e=s.children("."+a),t=o.getScrollable(),!e.length&&t&&(e=i("<div/>").addClass(a).on("scroll",function(e){n=i(e.target).scrollTop(),n&&(i(e.target).scrollTop(0),t.scrollTo({y:o._scrollTop+n}))}).on(r.name,function(e){if(t&&(n=t.scrollTop(),t.scrollTo({y:n-e.delta}),t.scrollTop()>0&&t.scrollTop()+t.clientHeight()<t.scrollHeight()+o.getScrollbarWidth()))return!1}).appendTo(s)),e):o.callBase()},_updateBottomLoading:function(){this._isFixedTableRendering||this.callBase()},_updateScrollable:function(){this.callBase();var e=this.getScrollable(),t=e&&e.scrollOffset().top;this._updateFixedTablePosition(-t)},_renderContent:function(e,t){return this._isFixedTableRendering?e.empty().addClass(this.addWidgetPrefix(d)+" "+this.addWidgetPrefix(u)+" "+_).append(t):this.callBase(e,t)},_getGroupCellOptions:function(e){return this._isFixedTableRendering?this.callBase(s({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e)},_renderGroupSummaryCells:function(e,t){this._isFixedTableRendering?this.callBase(e,s({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e,t)},_hasAlignByColumnSummaryItems:function(e,t){var n=this.callBase.apply(this,arguments),i=t.columns[e];return t.isFixed?i.fixed&&(n||"right"===i.fixedPosition)||"edit"===i.command:n&&!i.fixed},_renderGroupSummaryCellsCore:function(e,t,n,i){var a,r,l;this._isFixedTableRendering&&(t.isFixed=!0,l=this._getAlignByColumnCellCount(n,t),t.isFixed=!1,a=t.columns.length-l,t=s({},t,{columns:this.getFixedColumns()}),r=w(t.columns),a<r?(l-=t.columns[r].colspan-1||0,n-=t.columns[r].colspan-1||0):i>0&&(o.mozilla?e.css("display","none"):e.css("visibility","hidden")),i=l),this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){var n;return this._isFixedTableRendering?(n=w(t),e>n&&(e+=t[n].colspan-1),e):this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e),this.option("hoverStateEnabled")&&this._isFixedColumns&&this._attachHoverEvents()},optionChanged:function(e){var t=this;t.callBase(e),"hoverStateEnabled"===e.name&&t._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t,n=this._fixedTableElement,o=0;return n&&n.find(e).length?(t=this.getFixedColumns(),i.each(t,function(t,n){return t!==e[0].cellIndex&&(n.colspan?void(o+=n.colspan):void o++)}),o):this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e){if(this._fixedTableElement&&this._tableElement){var t=this.getController("editorFactory"),n=t.focus();this._fixedTableElement.css("top",e+this._tableElement.position().top),n&&t.focus(n)}},setScrollerSpacing:function(e,t){var n,i=this,o=i.element().children("."+this.addWidgetPrefix(u));o.length&&(n=i.option("rtlEnabled")?{marginLeft:e}:{marginRight:e},n.marginBottom=t,o.css(n))},_handleScroll:function(e){this._updateFixedTablePosition(-e.scrollOffset.top),this.callBase(e)},_updateContentPosition:function(){var e=this.callBase();return e&&this._updateFixedTablePosition(-this._scrollTop),e},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)}}),k=y;e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:l.format("dxDataGrid-columnFixingFix"),unfix:l.format("dxDataGrid-columnFixingUnfix"),leftPosition:l.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:l.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:b,rowsView:C,footerView:k},controllers:function(){var e=function(e,t,n){var o=w(t),a=e.length-t.length;return i.each(n,function(e,t){t.index>o&&(t.columnIndex+=a,t.index+=a)}),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n,i=t.columns,o=t.targetDraggingPanel;return o&&"headers"===o.getName()&&o.isFixedColumns()&&t.sourceColumn.fixed?(t.rowIndex||(t.columnElements=o.getFixedColumnElements(0)),t.columns=o.getFixedColumns(t.rowIndex),n=this.callBase(t),e(i,t.columns,n),n):this.callBase(t)},_pointCreated:function(e,t,n,i){var o,a=this.callBase.apply(this,arguments),s=this._columnHeadersView.getTransparentColumnElement();return!a&&"headers"===n&&s&&s.length?(o=s.get(0).getBoundingClientRect(),i&&i.fixed?"right"===i.fixedPosition?e.x<o.right:e.x>o.left:e.x<o.left||e.x>o.right):a}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),o=n&&t._columnsController.getFixedColumns(),a=t._columnHeadersView.getFixedColumnElements(),s=[];t.callBase(),a&&a.length>0&&(s=c.getPointsByColumns(a,function(e){return t._pointCreated(e,a.length,o)}),t._pointsByFixedColumns=e(i,o,s))},_pointCreated:function(e,t,n){var i,o;return e.index>0&&e.index<t&&(i=n[e.columnIndex-1]||{},o=n[e.columnIndex]||{},i.fixed||o.fixed)?(e.columnIndex-=1,!((i.allowResizing||"transparent"===i.command)&&(o.allowResizing||"transparent"===o.command))):this.callBase.apply(this,arguments)},_getTargetPoint:function(e,t,n){var i,o=this._columnHeadersView.getTransparentColumnElement();return o&&o.length&&(i=o.get(0).getBoundingClientRect(),t<=i.left||t>=i.right)?this.callBase(this._pointsByFixedColumns,t,n):this.callBase(e,t,n)}},keyboardNavigation:{_scrollToElement:function(e){var t=this.getFocusedView();this.callBase(e,t&&t.getFixedColumnsOffset())}}}}()}}},function(e,t,n){var i=n(349),o=n(418);i.registerModule("adaptivity",o)},function(e,t,n){function i(e){return e.command?"command:"+e.command:e.index}var o=n(9),a=n(72),s=n(76),r=n(14),l=n(11).extend,c=r.equalByValue,d=n(152),u=n(351),h=n(286),p=n(350),f="columnHeadersView",m="rowsView",g="footerView",_=[f,m,g],v="dxDataGridAdaptivity",w="adaptiveHidden",x="detailAdaptive",y="dx-field-item-content",b="dx-item-modified",C="hidden-column",k="adaptive-more",I="dx-command-adaptive",S="dx-command-adaptive-hidden",D="dx-adaptive-detail-row",T="dx-adaptive-item-text",E="dx-master-detail-cell",A="adaptive",B="batch",M="row",R="form",O="popup",P=u.ViewController.inherit({_isRowEditMode:function(){var e=this._editingController.getEditMode();return e===M},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&r.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i,o=this,a=e.column,c=a.calculateCellValue(t.data),d=o.createAction(function(){n.trigger(s.name)});if(c=p.getDisplayValue(a,c,t.data,t.rowType),i=p.formatValue(c,a),a.allowEditing&&o.option("useKeyboard")&&n.attr("tabIndex",o.option("tabIndex")).off("focus",d).on("focus",d),a.cellTemplate){var u=l({},t,{value:c,text:i,column:a});o._rowsView.renderTemplate(n,a.cellTemplate,u,!!n.closest(document).length)}else{var h=n.get(0);a.encodeHtml?h.textContent=i:h.innerHTML=i,n.addClass(T),r.isDefined(i)&&""!==i||n.html(" "),o._isRowEditMode()||o._isItemModified(e,t)&&n.addClass(b)}},_getTemplate:function(e,t){var n=this,i=e.column,o=this.getController("editing");return function(a,s){var r=n._isItemEdited(e),c=n._columnsController.getVisibleIndex(i.visibleIndex),d=l({},t);d.value=t.row.values[c],r||i.showEditorAlways?o.renderFormEditTemplate(d,e,a.component,s,!r):(d.column=i,d.columnIndex=c,n._renderFormViewTemplate(e,d,s),n.getView("rowsView")._cellPrepared(s,d))}},_isVisibleColumnsValid:function(e){var t=function(){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],n.command&&i++;return i};return!(e<2)&&!(e.length-t()<=1)},_calculatePercentWidths:function(e,t){var n=this,i=0;return t.forEach(function(t,o){e[o]!==w&&(i+=n._getItemPercentWidth(t))}),i},_isPercentWidth:function(e){return r.isString(e)&&"%"===e.slice(-1)},_isColumnHidden:function(e){return this._hiddenColumns.filter(function(t){return t.index===e.index}).length>0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach(function(s){if(!i._isColumnHidden(s)){var l=s.width;r.isDefined(l)&&!isNaN(parseFloat(l))?o+=i._isPercentWidth(l)?i._calculatePercentWidth({visibleIndex:s.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:s.bestFitWidth,columnWidth:l,containerWidth:e}):parseFloat(l):a++}}),(e-o)/a},_calculatePercentWidth:function(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,n=e.containerWidth*parseFloat(e.columnWidth)/100,i=e.columnsCanFit&&n<e.bestFitWidth?e.bestFitWidth:n;return t?this.component.element().width()*parseFloat(e.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(e,t,n,o){var a,s=i(e),r=this._columnsController.columnOption(s,"width"),l=this._columnsController.columnOption(s,"bestFitWidth"),c=n.length;if(r&&"auto"!==r){if(!this._isPercentWidth(r))return r;a=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:c,columnsCanFit:o,bestFitWidth:l,columnWidth:r,containerWidth:t})}else{var d=this.option("columnAutoWidth");a=d||e.command?l:this._getAverageColumnsWidth(t,n,o)}var u=a<l;return u?null:a},_getItemPercentWidth:function(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t},_getCommandColumnsWidth:function(){var e=this,t=e._columnsController.getVisibleColumns(),n=0;return o.each(t,function(t,o){(o.index<0||o.command)&&(n+=e._columnsController.columnOption(i(o),"bestFitWidth")||0)}),n},_isItemEdited:function(e){if(this.isFormEditMode())return!1;if(!this._isRowEditMode()){var t=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(t,n)}var i=this._editingController.getEditRowKey();return!!c(i,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(e){var t=[];return o.each(e,function(e,n){t.push({column:n,name:n.name,dataField:n.dataField,visibleIndex:n.visibleIndex})}),t},_getAdaptiveColumnVisibleIndex:function(e){var t,n;for(t=0;t<e.length;t++)if(n=e[t],n.command===A)return t},_hideAdaptiveColumn:function(e,t){var n=this._getAdaptiveColumnVisibleIndex(t);r.isDefined(n)&&(e[n]=w,this._addCssClassToColumn(S,n))},_removeCssClassFromColumn:function(e){var t,n,i;for(t=0;t<_.length;t++)n=this.getView(_[t]),n&&n.isVisible()&&n.element()&&(i=n.element().find("."+e),i.removeClass(e))},_removeCssClassesFromColumns:function(){this._removeCssClassFromColumn(S),this._removeCssClassFromColumn(this.addWidgetPrefix(C))},_isCellValid:function(e){return!e.hasClass(E)},_addCssClassToColumn:function(e,t){var n=this;_.forEach(function(i){var o=n.getView(i);o&&n._addCssClassToViewColumn(o,e,t)})},_addCssClassToViewColumn:function(e,t,n){var i,o,a,s,r=e.name,l=this._columnsController.getVisibleColumns()[n],c=this._editingController&&this._editingController.getEditFormRowIndex();if(e&&e.isVisible()&&l)for(i=e.getRowsCount(),o=0;o<i;o++)o===c&&r===m||(s=r===f?this._columnsController.getVisibleIndex(l.index,o):n,s>=0&&(a=e.getCellElements(o).eq(s),this._isCellValid(a)&&a.addClass(t)))},applyStylesForHiddenColumns:function(e){var t=this;this._hiddenColumns.forEach(function(n){var i=t._columnsController.getVisibleIndex(n.index);t._addCssClassToViewColumn(e,t.addWidgetPrefix(C),i)})},isFormEditMode:function(){var e=this._editingController.getEditMode();return e===R||e===O},hideRedundantColumns:function(e,t,n){var o,a=this;if(this._hiddenColumns=[],a._isVisibleColumnsValid(t)&&n.length){var s,r,l,c,d=0,u=a.component.element(),h=u.width()-a._getCommandColumnsWidth(),p=t.filter(function(e){return!e.command}),f=p.length;do{for(c=!1,d=0,s=a._calculatePercentWidths(e,t),r=s<100&&0!==s,l=0;l<t.length;l++){o=t[l];var m=a._getNotTruncatedColumnWidth(o,h,p,r),g=i(o),_=a._columnsController.columnOption(g,"width"),v=a._columnsController.columnOption(g,"bestFitWidth");if(e[l]!==w){if(!m&&!o.command&&!o.fixed){c=!0;break}d+=_&&"auto"!==_?m:v||0}}if(c=c||d>u.width()){var x=n.pop(),y=a._columnsController.getVisibleIndex(x.index);a._addCssClassToColumn(a.addWidgetPrefix(C),y),e[y]=w,f--,this._hiddenColumns.push(x)}}while(c&&f>1&&n.length);f===p.length&&a._hideAdaptiveColumn(e,t)}else a._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){var t,n,i;for(n=0;n<this._$itemContents.length;n++)if(t=this._$itemContents.eq(n),i=t.data("dx-form-item"),i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===e)return t},toggleExpandAdaptiveDetailRow:function(e){this.isFormEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(e)},createFormByHiddenColumns:function(e,t){var n=this,i={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-"+new d};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:i}),n._$itemContents=null,n._form=n._createComponent(o("
").appendTo(e),h,l({},i,{customizeItem:function(e){var o=e.column||n._columnsController.columnOption(e.name||e.dataField);o&&(e.label=e.label||{},e.label.text=e.label.text||o.caption,e.column=o,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),i.customizeItem&&i.customizeItem.call(this,e)},onContentReady:function(t){i.onContentReady&&i.onContentReady.call(this,t),n._$itemContents=e.find("."+y)}}))},hasAdaptiveDetailRowExpanded:function(){return r.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&r.isDefined(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,o=e.filter(function(e){return e.visible&&!e.fixed&&!(r.isDefined(e.groupIndex)&&e.groupIndex>=0)});if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n<o.length;n++)r.isDefined(o[n].hidingPriority)&&o[n].hidingPriority>=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n<o.length;n++){var a=i._columnsController.getVisibleIndex(o[n].index);i._hidingColumnsQueue[a]=o[n]}return i._hidingColumnsQueue=i._hidingColumnsQueue.filter(Object),i._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({command:A,visible:!0,adaptiveHidden:!0,cssClass:I,width:"auto"}),e._columnsController.columnsChanged.add(function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)}),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&r.equalByValue(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});e.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:P},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return n.command===A&&"groupFooter"!==e.rowType?function(n){o("<span/>").addClass(t.addWidgetPrefix(k)).on(a.addNamespace(s.name,v),t.createAction(function(){t._adaptiveColumnsController.toggleExpandAdaptiveDetailRow(e.key)})).appendTo(n)}:e.rowType===x&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns(e,n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===x&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(D),t},_getColumnIndexByElementCore:function(e){var t=e.closest("."+y);if(t.length&&t.closest(this.component.element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(){this.callBase.apply(this,arguments),this._adaptiveColumnsController.applyStylesForHiddenColumns(this)},getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===x?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase(e,t)},isClickableElement:function(e){var t=!!this.callBase&&this.callBase(e);return t||!!e.closest("."+I).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{"export":{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===w?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),s=n[a]||{},r=a!==e.columnIndex+1&&s.command,l=o.visibleWidth===w||r;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===w;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=t[e.columnIndex]||{},s=a.visibleWidth===w;return o||s}},editing:{_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==M&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+y),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=p.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&t>o&&this._editRowIndex--,o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.expandAdaptiveDetailRow(e.key),this._isForceRowAdaptiveExpand=!0); },_collapseAdaptiveDetailRow:function(){this.getEditMode()===M&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase(),this.getController("validating").validate(!0)&&this._cancelEditAdaptiveDetailRow()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===x?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t,n=this._dataController._adaptiveExpandedKey;n&&(t=p.getIndexByKey(n,this._dataController.items()),t>-1&&e.unshift(t))},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);this.getEditMode()===B&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_correctColumnWidths:function(e,t){var n,i=this._adaptiveColumnsController,o=i.getHiddenColumns(),a=i.updateHidingQueue(this._columnsController.getColumns());return i.hideRedundantColumns(e,t,a),n=i.getHiddenColumns(),i.hasAdaptiveDetailRowExpanded()&&o.length!==n.length&&i.updateForm(n),!n.length&&i.collapseAdaptiveDetailRow(),this.callBase(e,t)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._removeCssClassesFromColumns(),this.callBase(e)},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()}},data:{_processItems:function(e,t){var n,i,o=this;return e=o.callBase.apply(o,arguments),"loadingAll"!==t&&r.isDefined(o._adaptiveExpandedKey)?(i=p.getIndexByKey(o._adaptiveExpandedKey,e),i>=0?(n=e[i],e.splice(i+1,0,{visible:!0,rowType:x,key:n.key,data:n.data,modifiedValues:n.modifiedValues,inserted:n.inserted,values:n.values})):o._adaptiveExpandedKey=void 0,e):e},_getRowIndicesForExpand:function(e){var t,n=this.callBase.apply(this,arguments);return this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)&&(t=n[n.length-1],n.push(t+1)),n},adaptiveExpandedKey:function(e){return r.isDefined(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e){var t=this,n=p.getIndexByKey(t._adaptiveExpandedKey,t._items),i=p.getIndexByKey(e,t._items);n>=0&&n===i&&(e=void 0,i=-1),t._adaptiveExpandedKey=e,n>=0&&n++,i>=0&&i++,t.updateItems({changeType:"update",rowIndices:[n,i]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content .dx-tooltip"}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase(e)&&!e.hasClass(this.addWidgetPrefix(C))},_processNextCellInMasterDetail:function(e){if(this.callBase(e),!this._isInsideEditForm(e)&&e){var t=function(){e.off("focus",t),e.trigger("dxclick")};e.on("focus",t)}}}}}}},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=n(11).extend,r=n(108).getDefaultAlignment,l=n(349),c=n(420),d=n(20),u=n(90),h=d.excel,p=n(202),f=n(219),m=n(339),g=n(16).when,_="dx-datagrid-export-menu",v="dx-datagrid-export-button",w="export-to",x="exportxlsx",y="exportselected",b="export-excel-button",C=3;t.DataProvider=o.inherit({_getGroupValue:function(e){var t,n=this._options.groupColumns[e.groupIndex],i=l.getDisplayValue(n,e.values[e.groupIndex],e.data,e.rowType),o=n.caption+": "+l.formatValue(i,n);return t=this._options.getVisibleIndex(n.index),e.summaryCells&&e.summaryCells.length&&e.summaryCells[t].length&&(o+=" "+l.getGroupRowSummaryText(e.summaryCells[t],this._options.summaryTexts)),o},_correctCellIndex:function(e){var t=this._options.startValueIndex,n=this._options.endValueIndex;return e<=n?t+e:null},_initOptions:function(){var e=this._exportController,t=e._columnsController.getGroupColumns(),n=e._getStartEndValueIndexes(e._columnsController.getVisibleColumns()),i=e.option("export.excelWrapTextEnabled");this._options={columns:e._getColumns(),groupColumns:t,items:e._selectionOnly?e._getSelectedItems():e._getAllItems(),getVisibleIndex:e._columnsController.getVisibleIndex.bind(e._columnsController),startValueIndex:n.startIndex,endValueIndex:n.endIndex,isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),customizeExportData:e.option("customizeExportData"),rtlEnabled:e.option("rtlEnabled"),wrapTextEnabled:a.isDefined(i)?i:!!e.option("wordWrapEnabled")}},ctor:function(e){this._exportController=e},getStyles:function(){var e=this._options.wrapTextEnabled,t=["center","left","right"].map(function(e){return{bold:!0,alignment:e,wrapText:!0}});return this.getColumns().forEach(function(n){t.push({alignment:n.alignment||"left",format:n.format,precision:n.precision,wrapText:e,dataType:n.dataType})}),t.push({bold:!0,wrapText:!1,alignment:r(this._options.rtlEnabled)}),t},_getTotalCellStyleId:function(e){var t=this.getColumns()[e]&&this.getColumns()[e].alignment||"right";return["center","left","right"].indexOf(t)},getStyleId:function(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?C+this.getColumns().length:t+C},getColumns:function(e){var t=this._options.columns;return e?t:t[t.length-1]},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType},getGroupLevel:function(e){var t=this._options.items[e-this.getHeaderRowCount()],n=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:a.isDefined(n)?n:this._options.groupColumns.length},getCellType:function(e,t){var n=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<n.length){var i=this._options.items.length&&this._options.items[e],o=n[t];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(t)])&&!a.isDefined(o.customizeText)?a.isDefined(o.lookup)?o.lookup.dataType:o.dataType:"string"}},ready:function(){var e,t=this;return t._initOptions(),e=this._options,g(e.items).done(function(n){e.customizeExportData&&e.customizeExportData(t.getColumns(t.getHeaderRowCount()>1),n),e.items=n}).fail(function(){e.items=[]})},_getHeaderCellValue:function(e,t){var n=this.getColumns(!0)[e];return n[t]&&n[t].caption},getCellValue:function(e,t){var n,i,o,s,r,c,d=this.getColumns(),u=this._correctCellIndex(t);if(e<this.getHeaderRowCount())return this._getHeaderCellValue(e,t);if(e-=this.getHeaderRowCount(),c=this._options.items.length&&this._options.items[e])switch(r=c.values,c.rowType){case"groupFooter":case"totalFooter":if(u<r.length&&(i=r[u],a.isDefined(i)))return l.getSummaryText(i,this._options.summaryTexts);break;case"group":if(t<1)return this._getGroupValue(c);if(s=c.values[u],Array.isArray(s)){for(i="",o=0;o<s.length;o++)i+=(o>0?" \n ":"")+l.getSummaryText(s[o],this._options.summaryTexts);return i}break;default:if(n=d[t])return i=l.getDisplayValue(n,r[u],c.data,c.rowType),!isFinite(i)||n.customizeText?l.formatValue(i,n):i}},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(e,t){var n=this._options.items,i=n[e],o=this._correctCellIndex(t),a=i.summaryCells&&i.summaryCells[o]&&i.summaryCells[o].length>0&&i.summaryCells[o][0].alignByColumn;return i&&"groupFooter"===i.rowType||"totalFooter"===i.rowType||a},getCellMerging:function(e,t){var n=this._options.columns,i=n[e]&&n[e][t];return i?{colspan:(i.colspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var e=this;return{x:0,y:e.getHeaderRowCount()}}}),t.ExportController=l.ViewController.inherit({}).include(c).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(e,t){e.width=t},_getColumns:function(){var e,t,n,i,o=[],a=this._columnsController,r=a.getRowCount(),l=this._headersView&&this._headersView.isVisible()?this._headersView.getColumnWidths():this._rowsView.getColumnWidths();for(e=0;e<=r;e++)for(o.push([]),i=a.getVisibleColumns(e),t=0;t<i.length;t++)n=s({},i[t]),n.allowExporting&&!n.command&&(e===r&&l&&l.length&&this._updateColumnWidth(n,l[t]),o[e].push(n));return i=o[r],o=this._prepareItems(0,o.slice(0,-1)),o.push(i),o},_getFooterSummaryItems:function(e,t){var n,i,o,a,s=[],r=1,l=0;do{for(n=[],a=0;a<e.length;a++)o=e[a],i=o.length,r<i&&(r=i),n.push(o[l]);s.push({values:n,rowType:t?"totalFooter":"groupFooter"})}while(l++<r-1);return s},_hasSummaryGroupFooters:function(){var e,t=this.option("summary.groupItems");if(a.isDefined(t))for(e=0;e<t.length;e++)if(t[e].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(e){var t,n,i=[],o=[],a=[];for(n=0;n<e.length;n++)t=e[n],"groupFooter"===t.rowType?(a=this._getFooterSummaryItems(t.summaryCells),i=i.concat(o,a),o=[]):o.push(t);return i.length?i:o},_updateGroupValuesWithSummaryByColumn:function(e){var t,n,o,a,s,r,l,c=[];for(l=0;l<e.length;l++)if(t=e[l],n=t.summaryCells,"group"===t.rowType&&n&&n.length>1){for(a=t.values.length,r=1;r<n.length;r++)for(s=0;s<n[r].length;s++)o=n[r][s],o&&o.alignByColumn&&(Array.isArray(c[r-a])||(c[r-a]=[]),c[r-a].push(o));c.length>0&&(i.merge(t.values,c),c=[])}},_processUnExportedItems:function(e){var t,n,i,o,s,r=this._columnsController.getVisibleColumns();for(o=0;o<e.length;o++)if(t=e[o],i=[],"group"!==t.rowType){for(s=0;s<r.length;s++)n=r[s],(a.isDefined(n.command)||n.allowExporting)&&t.values&&i.push(t.values[s]);i.length&&(t.values=i)}},_getAllItems:function(e){var t,n,o=this,s=i.Deferred(),r=this.getController("data"),l=r.footerItems(),c=l.length&&l[0],d=o.option("summary.totalItems");return g(e).done(function(e){r.loadAll(e).done(function(e,i){o._updateGroupValuesWithSummaryByColumn(e),o._hasSummaryGroupFooters()&&(e=o._getItemsWithSummaryGroupFooters(e)),t=c&&c.summaryCells,a.isDefined(i)&&d&&(t=r._getSummaryCells(d,i)),n=c&&o._getFooterSummaryItems(t,!0),n&&(e=e.concat(n)),o._processUnExportedItems(e),s.resolve(e)}).fail(s.reject)}).fail(s.reject),s},_getSelectedItems:function(){var e=this.getController("selection"),t=e.getSelectedRowsData();return this._getAllItems(t)},_getStartEndValueIndexes:function(e){var t,n,i,o=e.length;for(t=0;t<o;t++)if(!a.isDefined(e[t].command)){n=t;break}for(t=o-1;t>=0;t--)if(!a.isDefined(e[t].command)){i=t;break}return{startIndex:n,endIndex:i}},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getExportFormat:function(){return["EXCEL"]},getDataProvider:function(){return new t.DataProvider(this)},exportToExcel:function(e){var t=this;t._selectionOnly=e,d.export(t.component.getDataProvider(),{fileName:t.option("export.fileName"),proxyUrl:t.option("export.proxyUrl"),format:"EXCEL",autoFilterEnabled:!!t.option("export.excelFilterEnabled"),rtlEnabled:t.option("rtlEnabled"),exportingAction:t.getAction("onExporting"),exportedAction:t.getAction("onExported"),fileSavingAction:t.getAction("onFileSaving")},h.getData)},publicMethods:function(){return["getDataProvider","getExportFormat","exportToExcel"]},selectionOnly:function(e){return a.isDefined(e)?(this._isSelectedRows=e,void this.selectionOnlyChanged.fire()):this._isSelectedRows}}),l.registerModule("export",{defaultOptions:function(){return{"export":{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,excelWrapTextEnabled:void 0,proxyUrl:void 0,allowExportSelectedData:!1,texts:{exportTo:u.format("dxDataGrid-exportTo"),exportAll:u.format("dxDataGrid-exportAll"),exportSelectedRows:u.format("dxDataGrid-exportSelectedRows")}}}},controllers:{"export":t.ExportController},extenders:{controllers:{editing:{callbackNames:function(){var e=this.callBase();return a.isDefined(e)?e.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendExportItems(e)},_appendExportItems:function(e){var t=this,n=t.option("export");if(n.enabled){var i=[];n.allowExportSelectedData?i.push({template:function(e,n,i){t._renderButton(e,i),t._renderExportMenu(i)},menuItemTemplate:function(e,n,i){t._renderList(e,i)},name:"exportButton",allowExportSelected:!0,location:"after",locateInMenu:"auto",sortIndex:30}):i.push({template:function(e,n,i){t._renderButton(e,i)},menuItemTemplate:function(e,n,i){t._renderButton(e,i,!0)},name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30}),e=e.concat(i),t._correctItemsPosition(e)}return e},_renderButton:function(e,t,n){var i=this,o=i._getButtonOptions(e.allowExportSelected),a=i._getButtonContainer().addClass(v).appendTo(t);n&&(t.wrapInner("
").parent().addClass("dx-toolbar-menu-action dx-toolbar-menu-button dx-toolbar-hidden-button"),o.text=o.hint),i._createComponent(a,p,o)},_renderList:function(e,t){var n=this,o=n.option("export.texts"),a=function(e,t,n){var o=i("<div />").addClass("dx-icon dx-icon-"+n),a=i("<span class='dx-button-text'/>").text(e.text),s=i("<div class='dx-button-content' />").append(o).append(a),r=i("
").append(s),l=i("<div class ='dx-toolbar-item-auto-hide' />").append(r);t.append(l).parent().addClass("dx-toolbar-menu-custom dx-toolbar-hidden-button")},s=[{template:function(e,t,n){a(e,n,x)},text:o.exportAll},{template:function(e,t,n){a(e,n,y)},text:o.exportSelectedRows,exportSelected:!0}];n._createComponent(t,f,{items:s,onItemClick:function(e){n._exportController.exportToExcel(e.itemData.exportSelected)},scrollingEnabled:!1})},_correctItemsPosition:function(e){e.sort(function(e,t){return e.sortIndex-t.sortIndex})},_renderExportMenu:function(e){var t=this,n=e.find(".dx-button"),o=t.option("export.texts"),a=[{text:o.exportAll,icon:x},{text:o.exportSelectedRows,exportSelected:!0,icon:y}],s=i("
").appendTo(e);t._contextMenu=t._createComponent(s,m,{showEvent:"dxclick",items:a,cssClass:_,onItemClick:function(e){t._exportController.exportToExcel(e.itemData.exportSelected)},target:n,position:{at:"left bottom",my:"left top",offset:"0 3",collision:"fit",boundary:t._$parent,boundaryOffset:"1 1"}})},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(e){var t,n=this,i=n.option("export.texts");return t=e?{hint:i.exportTo,icon:w}:{hint:i.exportAll,icon:b,onClick:function(){n._exportController.exportToExcel()}}},optionChanged:function(e){this.callBase(e),"export"===e.name&&(e.handled=!0,this._invalidate())},init:function(){var e=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(t){e.setToolbarItemDisabled("exportButton",t)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},function(e,t,n){var i=n(9),o=n(11).extend;e.exports={_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_defaultSetter:function(e){return e=parseInt(e,10),e?e:1},_makeRowOffset:function(e){var t=0,n=e.length-1,o=e[n],a=o.length;i.each(e,function(n){this[a]&&this[a].rowspan+n>e.length-1&&(t=Math.max.apply(this,[this[a].colspan,t]))});for(var s=0;s<t;s++)o.push(this._cloneItem(e[e.length-2][a&&a-1||0]));t>0&&this._makeRowOffset(e)},_cloneItem:function(e){return o({},e,this._getEmptyCell())},_prepareItems:function(e,t){var n,o,a,s,r=this,l=[];for(s=0;s<t.length;s++){o=[],l.push(o);do for(r._makeRowOffset(l),a=o.length,o.push(t[s].shift()),o[o.length-1]?(o[o.length-1].colspan=r._defaultSetter(o[o.length-1].colspan),o[o.length-1].rowspan=r._defaultSetter(o[o.length-1].rowspan)):o[o.length-1]=i({},r._getEmptyCell()),n=1;n<o[a].colspan;n++)o.push(r._cloneItem(o[o.length-1]));while(t[s].length);for(;o.length<e;)o.push(r._cloneItem(o[o.length-1]))}return l}}},function(e,t,n){e.exports=n(422)},function(e,t,n){var i=n(423);e.exports=i,n(435),n(436),n(437),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448)},function(e,t,n){var i=n(9),o=n(57),a=n(14),s=n(11).extend,r=n(96),l=n(424),c=l.callModuleItemsMethod,d=".dx-row",u="dx-treelist";n(425),n(426),n(427),n(429),n(430),n(431),n(432),n(433),n(434),l.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var h=r.inherit({_activeStateUnit:d,_getDefaultOptions:function(){var e=this,t=e.callBase();return i.each(l.modules,function(){a.isFunction(this.defaultOptions)&&s(!0,t,this.defaultOptions())}),t},_init:function(){var e=this;e.callBase(),l.processModules(e,l),c(e,"init")},_clean:a.noop,_optionChanged:function(e){var t=this;c(t,"optionChanged",[e]),e.handled||t.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_renderContentImpl:function(){var e=this.element().addClass(u);this.getView("gridView").render(e)},_renderContent:function(){var e=this;a.deferRender(function(){e._renderContentImpl()})},_dispose:function(){var e=this;e.callBase(),c(e,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){var e=this;e.callBase(),c(e,"beginUpdate")},endUpdate:function(){var e=this;c(e,"endUpdate"),e.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),a.isDefined(e)&&this.getController("keyboardNavigation").focus(e)}});h.registerModule=l.registerModule.bind(l),o("dxTreeList",h),e.exports=h},function(e,t,n){var i=n(11).extend,o=n(351);i(t,o,{modules:[]})},function(e,t,n){var i=n(424),o=n(353);i.registerModule("columnHeaders",o)},function(e,t,n){var i=n(14),o=n(424),a=n(357);t.ColumnsController=a.controllers.columns.inherit(function(){return{_getFirstItems:function(e){return this.callBase(e).map(function(e){return e.data})},getFirstDataColumnIndex:function(){for(var e=this.getVisibleColumns(),t=e.length,n=0,o=0;o<=t-1;o++)if(!i.isDefined(e[o].command)){n=e[o].index;break}return n}}}()),o.registerModule("columns",{defaultOptions:a.defaultOptions,controllers:{columns:t.ColumnsController}})},function(e,t,n){var i=n(9),o=n(11).extend,a=n(424),s=n(428),r=n(361);t.DataController=r.controllers.data.inherit(function(){return{_getDataSourceAdapter:function(){return s},_getNodeLevel:function(e){for(var t=-1;e.parent;)e.visible&&t++,e=e.parent;return t},_generateDataItem:function(e){return{rowType:"data",node:e,key:e.key,data:e.data,isExpanded:this.isRowExpanded(e.key),level:this._getNodeLevel(e)}},_setPagingOptions:function(e){var t="virtual"===this.option("scrolling.mode");e.paginate(t),e.requireTotalCount(!0)},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(e){var t=this._dataSource;if(t)return t.keyOf(e)},key:function(){var e=this._dataSource;if(e)return e.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey"])},changeRowExpand:function(e){if(this._dataSource){var t=this,n={key:e},o=this.isRowExpanded(e);if(t.executeAction(o?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return t._dataSource.changeRowExpand(e).done(function(){t.executeAction(o?"onRowCollapsed":"onRowExpanded",n)})}return i.Deferred().resolve()},isRowExpanded:function(e){return this._dataSource&&this._dataSource.isRowExpanded(e)},expandRow:function(e){return this.isRowExpanded(e)?i.Deferred().resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):i.Deferred().resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(e){switch(e.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),e.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":this._dataSource&&!this._dataSource._isNodesInitializing&&this._dataSource.load(),e.handled=!0;break;case"maxFilterLengthInRequest":e.handled=!0;break;default:this.callBase(e)}},getNodeByKey:function(e){if(this._dataSource)return this._dataSource.getNodeByKey(e)}}}()),a.registerModule("data",{defaultOptions:function(){return o({},r.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"extended",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500})},controllers:{data:t.DataController}})},function(e,t,n){var i=n(9),o=n(22),a=n(14),s=n(50),r=n(11).extend,l=n(350),c=n(159),d=n(160),u=n(360),h="id";u=u.inherit(function(){return{_createKeyGetter:function(){var e=this.getKeyExpr();return s.compileGetter(e)},_createKeySetter:function(){var e=this.getKeyExpr();return s.compileSetter(e)},_createParentIdGetter:function(){return s.compileGetter(this.option("parentIdExpr"))},createParentIdSetter:function(){return s.compileSetter(this.option("parentIdExpr"))},_createItemsGetter:function(){return s.compileGetter(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&s.compileGetter(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},i.each(e,function(e,n){t._indexByKey[n.key]=e})},_calculateHasItems:function(e,t){var n,i=this;if(i._hasItemsGetter&&(n=i._hasItemsGetter(e.data)),void 0===n){var o=i._hasItemsMap[e.key];n=void 0!==o?o:!(!t.remoteOperations.filtering||!t.storeLoadOptions.parentIds)||e.hasChildren}return!!n},_createVisibleItemsByNodes:function(e,t){for(var n=this,i=[],o=0;o<e.length;o++)e[o].visible&&i.push(e[o]),(n.isRowExpanded(e[o].key)||!e[o].visible)&&e[o].hasChildren&&e[o].children.length&&(i=i.concat(n._createVisibleItemsByNodes(e[o].children,t)));return i},_convertItemToNode:function(e,t,n){var i,o,s=this._keyGetter(e),r=this._parentIdGetter(e);return r=a.isDefined(r)?r:t,i=n[r]=n[r]||{key:r,children:[]},o=n[s]=n[s]||{key:s,children:[]},o.data=e,o.parent=i,o},_createNodesByItems:function(e,t){var n,i=this,o=i.option("rootValue"),a={},s=i._nodeByKey={};if(t)for(n=0;n<t.length;n++)a[this._keyGetter(t[n])]=!0;for(n=0;n<e.length;n++){var r=i._convertItemToNode(e[n],o,s);if(void 0===r.key)return;r.visible=!t||!!a[r.key],r.parent&&r.parent.children.push(r)}var l=s[o]||{key:o,children:[]};return l.level=-1,l},_convertDataToPlainStructure:function(e,t,n){var i,o,s,l;if(this._itemsGetter){n=n||[];for(var c=0;c<e.length;c++)o=r({},e[c]),i=this._keyGetter(o),void 0===i&&(i=n.length+1,this._keySetter(o,i)),void 0===this._parentIdGetter(o)&&this._parentIdSetter(o,void 0===t?this.option("rootValue"):t),n.push(o),l=this._itemsGetter(o),l&&l.length&&(this._convertDataToPlainStructure(l,i,n),s=this.option("itemsExpr"),a.isFunction(s)||delete o[s]);return n}return e},_createIdFilter:function(e,t){for(var n=[],i=0;i<t.length;i++)n.push([e,"=",t[i]]);return l.combineFilters(n,"or")},_customizeRemoteOperations:function(e,t,n){this.callBase.apply(this,arguments),e.remoteOperations.paging=!1;var i=!1;this.option("autoExpandAll")&&(e.remoteOperations.sorting=!1,e.remoteOperations.filtering=!1,!t||this._lastLoadOptions||e.isCustomLoading||(i=!0)),this._isReload=this._isReload||t||n.reload,e.isCustomLoading||(e.cachedStoreData||(this._hasItemsMap={}),this.option("expandNodesOnFiltering")&&(t||n.filtering)&&(e.storeLoadOptions.filter||n.filtering&&this.option("autoExpandAll"))&&(i=!0)),e.expandVisibleNodes=i},_getParentIdsToLoad:function(e){for(var t=[],n=0;n<e.length;n++)this._hasItemsMap[e[n]]||t.push(e[n]);return t},_handleDataLoading:function(e){var t,n=this.option("rootValue"),i=this.option("parentIdExpr"),o=this.option("expandedRowKeys"),a=this.option("filterMode");if(this.callBase.apply(this,arguments),e.remoteOperations.filtering&&!e.isCustomLoading&&("standard"===a||!e.storeLoadOptions.filter)){var s=[n].concat(o),r=e.data?this._getParentIdsToLoad(s):s;r.length&&(e.cachedPagingData=void 0,e.data=void 0,e.mergeStoreLoadData=!0),e.storeLoadOptions.parentIds=r,t=this._createIdFilter(i,r),e.storeLoadOptions.filter=l.combineFilters([t,e.storeLoadOptions.filter])}},_generateParentInfoToLoad:function(e){var t,n=this,i={},o={},a=[],s=n.option("rootValue");for(t=0;t<e.length;t++)i[n._keyGetter(e[t])]=!0;for(t=0;t<e.length;t++){var r=n._parentIdGetter(e[t]);o[r]||i[r]||r===s||(o[r]=!0,a.push(r))}return{parentIdMap:o,parentIds:a}},_loadParents:function(e,t){var n,o,a,s,l=this,u=l._generateParentInfoToLoad(e),h=u.parentIds,p=u.parentIdMap,f=i.Deferred(),m=t.remoteOperations.filtering,g=l.option("maxFilterLengthInRequest"),_=m?t.storeLoadOptions:t.loadOptions;return h.length?(o=l._createIdFilter(l.getKeyExpr(),h),a=encodeURI(JSON.stringify(o)).length,a>g&&(o=function(e){return p[l._keyGetter(e)]},s=m),_=r({},_,{filter:s?null:o}),n=t.fullData?new c(t.fullData):l._dataSource.store(),n.load(_).done(function(n){n.length?(s&&(n=d(n).filter(o).toArray()),l._loadParents(e.concat(n),t).done(f.resolve).fail(f.reject)):f.resolve(e)}).fail(f.reject),f):f.resolve(e)},_updateHasItemsMap:function(e){var t=e.data,n=e.storeLoadOptions.parentIds;if(n)for(var i=0;i<n.length;i++){for(var o=0;o<t.length;o++){var a=this._parentIdGetter(t[o]);if(a===n[i]){this._hasItemsMap[n[i]]=!0;break}}o===t.length&&(this._hasItemsMap[n[i]]=!1)}},_handleDataLoaded:function(e){e.data=this._convertDataToPlainStructure(e.data),e.remoteOperations.filtering||(e.fullData=e.data),this._updateHasItemsMap(e),this.callBase(e)},_fillNodes:function(e,t,n,i){i=i||0;for(var o=0;o<e.length;o++){var a=e[o];this._fillNodes(e[o].children,t,n,i+1),a.level=i,a.hasChildren=this._calculateHasItems(a,t),a.visible&&a.hasChildren&&t.expandVisibleNodes&&n.push(a.key),(a.visible||a.hasChildren)&&(a.parent.hasChildren=!0)}},_processTreeStructure:function(e,t){var n=e.data,a=[];if(!e.fullData||this._isReload){if(e.fullData&&e.fullData.length>e.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=i.Deferred().reject(o.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,a),this._isNodesInitializing=!0,a.length&&this.option("expandedRowKeys",a),this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1,this._isReload=!1}n=this._createVisibleItemsByNodes(this._rootNode.children,e),e.data=n,this._totalItemsCount=n.length},_handleDataLoadedCore:function(e){var t,n=this,o=e.data,a=n.callBase,s=e.storeLoadOptions.filter||e.loadOptions.filter,r=n.option("filterMode");if(!e.isCustomLoading){if(s&&!e.storeLoadOptions.parentIds&&"standard"!==r){var l=e.data=i.Deferred();return"smart"===r&&(t=o),n._loadParents(o,e).done(function(i){e.data=i,n._processTreeStructure(e,t),a.call(n,e),l.resolve(e.data)}).fail(l.reject)}n._processTreeStructure(e)}n.callBase(e)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._hasItemsMap={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if(a.isDefined(t)&&a.isDefined(n)&&!a.equalByValue(t,n))throw o.Error("E1044");return t||n||h},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e){var t=l.getIndexByKey(e,this.option("expandedRowKeys"),null);return t>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys"),n=l.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?i.Deferred().resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]}}}()),e.exports={extend:function(e){u=u.inherit(e)},create:function(e){return new u(e)}}},function(e,t,n){var i=n(424),o=n(363);i.registerModule("sorting",o)},function(e,t,n){var i=n(9),o=n(424),a=n(366),s="dx-treelist-text-content",r="dx-treelist-icon-container",l="dx-treelist-cell-expandable",c="dx-treelist-empty-space",d="dx-treelist-expanded",u="dx-treelist-collapsed";t.RowsView=a.views.rowsView.inherit(function(){var e=function(e){return i("<div />").addClass(s).appendTo(e)},t=function(e,t){var n=i("<div/>").addClass(c);return e&&n.toggleClass(d,t).toggleClass(u,!t).append(i("<span/>")),n};return{_renderExpandIcon:function(e,n){for(var o=n.row.level,a=i("<div/>").addClass(r).appendTo(e),s=0;s<=o;s++)a.append(t(s===o&&n.row.node.hasChildren,n.row.isExpanded));return e.addClass(l),a},_renderCellCommandContent:function(e,t){return this._renderExpandIcon(e,t),!0},_processTemplate:function(t,n){var i,o=this,a=this.callBase(t),s=o._columnsController.getFirstDataColumnIndex();return i=a&&n.column.index===s?{render:function(t){var n=t.container;o._renderCellCommandContent(n,t.model)&&(t.container=e(n)),a.render(t)}}:a},_updateCell:function(e,t){e=e.hasClass(s)?e.parent():e,this.callBase(e,t)},_rowClick:function(e){var t=this._dataController,n=i(e.jQueryEvent.target),o=this.isExpandIcon(n),a=t&&t.items()[e.rowIndex];o&&a&&t.changeRowExpand(a.key),this.callBase(e)},_createRow:function(e){var t=e&&e.node,n=this.callBase.apply(this,arguments);return t&&(this.setAria("level",e.level,n),t.hasChildren&&this.setAria("expanded",e.isExpanded,n)),n},_getTableRoleName:function(){return"treegrid"},isExpandIcon:function(e){return!!e.closest("."+d+", ."+u).length}}}()),o.registerModule("rows",{defaultOptions:a.defaultOptions,views:{rowsView:t.RowsView}})},function(e,t,n){var i=n(424),o=n(368);i.registerModule("contextMenu",o)},function(e,t,n){var i=n(424),o=n(370);i.registerModule("errorHandling",o)},function(e,t,n){var i=n(424),o=n(372),a=o.views.gridView.inherit(function(){return{_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"}}}());i.registerModule("gridView",{defaultOptions:o.defaultOptions,controllers:o.controllers,views:{gridView:a}})},function(e,t,n){var i=n(424),o=n(374);i.registerModule("headerPanel",o); },function(e,t,n){var i=n(424),o=n(380);i.registerModule("columnChooser",o)},function(e,t,n){var i=n(424),o=n(387),a=n(11).extend;i.registerModule("masterDetail",a(!0,{},o,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){n(438);var i=n(9),o=n(22),a=n(14),s=n(11).extend,r=n(90),l=n(424),c=n(350),d=n(391),u="dx-treelist-icon-container",h="dx-select-checkbox",p="insert",f=d.controllers.editing.inherit(function(){return{_generateNewItem:function(e){var t=this.callBase(e);return t.data={key:e},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_needInsertItem:function(e,t,n,i){var o=e.key.parentKey;if(void 0!==o&&o!==this.option("rootValue")){var a=c.getIndexByKey(o,n);return a>=0&&this._dataController.isRowExpanded(o)&&n.splice(a+1,0,i),!1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return e||t&&t.allowAdding},_createEditingLinks:function(e,t,n){var i=this.callBase,o=n.texts||{};!n.allowAdding||t.row.removed||t.row.inserted||this._createLink(e,o.addRowToNode,"addRowByRowIndex",t,"dx-link-add"),i.apply(this,arguments)},_beforeSaveEditData:function(e){var t,n,i=this._dataController,s=this.callBase.apply(this,arguments);if(e&&e.type!==p&&(n=i&&i.store(),t=n&&n.key(),!a.isDefined(t)))throw o.Error("E1045");return s},addRowByRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return this.addRow(n?n.key:void 0)},addRow:function(e){var t=this,n=this.callBase,o=this.getController("data");if(void 0!==e&&!o.isRowExpanded(e)){var a=i.Deferred();return o.expandRow(e).done(function(){setTimeout(function(){n.call(t,e),a.resolve()})}).fail(a.reject),a}n.call(t,e)},_initNewRow:function(e,t){var n=t.parentKey,i=this.getController("data"),o=i.dataSource(),a=o.createParentIdSetter();void 0===n&&(n=this.option("rootValue"),t.parentKey=n),a(e.data,n),this.callBase.apply(this,arguments)}}}()),m=d.extenders.views.rowsView._rowClick,g=s({},d.extenders.views.rowsView,{_renderCellCommandContent:function(e,t){var n=this._editingController,i=t.row&&n.isEditRow(t.row.rowIndex),o=t.isEditing||i;return!o&&this.callBase.apply(this,arguments)},_rowClick:function(e){var t=i(e.jQueryEvent.target);t.closest("."+h).length||(t.closest("."+u).length?this.callBase.apply(this,arguments):m.apply(this,arguments))}});l.registerModule("editing",{defaultOptions:function(){return s(!0,d.defaultOptions(),{editing:{texts:{addRowToNode:r.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:f},extenders:{controllers:s(!0,{},d.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:g,headerPanel:d.extenders.views.headerPanel}}})},function(e,t,n){var i=n(424),o=n(390);i.registerModule("editorFactory",o)},function(e,t,n){var i=n(11).extend,o=n(424),a=n(393),s=i({},a.extenders.controllers.editing);delete s.processItems,delete s.processDataItem,o.registerModule("validating",{defaultOptions:a.defaultOptions,controllers:a.controllers,extenders:{controllers:{editing:s,editorFactory:a.extenders.controllers.editorFactory},views:a.extenders.views}})},function(e,t,n){var i=n(424),o=n(428),a=n(395),s=n(11).extend,r=a.defaultOptions;i.registerModule("virtualScrolling",s({},a,{defaultOptions:function(){return s(!0,r(),{scrolling:{mode:"virtual"}})}})),o.extend(a.extenders.dataSourceAdapter)},function(e,t,n){var i=n(424),o=n(398);i.registerModule("filterRow",o)},function(e,t,n){var i=n(424),o=n(403);i.registerModule("headerFilter",o)},function(e,t,n){var i=n(424),o=n(410);i.registerModule("columnsResizingReordering",o)},function(e,t,n){var i=n(424),o=n(416);i.registerModule("columnFixing",o)},function(e,t,n){var i=n(424),o=n(418);i.registerModule("adaptivity",o)},function(e,t,n){function i(e,t){for(var n=0;n<e.length;n++)t(e[n])!==!1&&e[n].hasChildren&&e[n].children.length&&i(e[n].children,t)}var o=n(9),a=n(424),s=n(14).noop,r=n(378),l=n(11).extend,c="dx-treelist-select-all",d="dx-select-checkbox",u=r.extenders.views.rowsView._rowClick;a.registerModule("selection",l(!0,{},r,{defaultOptions:function(){return l(!0,r.defaultOptions(),{selection:{showCheckBoxesMode:"always"}})},extenders:{controllers:{selection:{renderSelectCheckBoxContainer:function(e,t){var n=this,i=n.component.getView("rowsView"),o=i._renderSelectCheckBox(e,t.row.isSelected);i._attachCheckBoxClickEvent(o)},_updateSelectColumn:s,_getVisibleNodeKeys:function(){var e=this.component,t=e.getRootNode(),n=[];return t&&i(t.children,function(t){return void 0!==t.key&&t.visible&&n.push(t.key),e.isRowExpanded(t.key)}),n},isSelectAll:function(){var e=this.component,t=this._getVisibleNodeKeys(),n=t.filter(function(t){return e.isRowSelected(t)});return!!n.length&&(n.length===t.length||void 0)},selectAll:function(){var e=this._getVisibleNodeKeys();return this.selectRows(e,!0)},deselectAll:function(){var e=this._getVisibleNodeKeys();return this.deselectRows(e)}}},views:{columnHeadersView:{_processTemplate:function(e,t){var n,i=this,o=this.callBase(e,t),a=i._columnsController.getFirstDataColumnIndex();return n=o&&t.column.index===a?{render:function(e){"multiple"===i.option("selection.mode")&&i.renderSelectAll(e.container,e.model),o.render(e)}}:o},renderSelectAll:function(e,t){e.addClass(c),this._renderSelectAllCheckBox(e)},_isSortableElement:function(e){return this.callBase(e)&&!e.closest("."+d).length}},rowsView:{_renderExpandIcon:function(e,t){var n=this.callBase(e,t);return"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(n,t),n},_rowClick:function(e){var t=o(e.jQueryEvent.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):u.apply(this,arguments)}}}}}))},function(e,t,n){var i=n(424),o=n(406);i.registerModule("search",o)},function(e,t,n){var i=n(424),o=n(412);i.registerModule("keyboardNavigation",o)},function(e,t,n){e.exports=n(450)},function(e,t,n){function i(e){var t=0;return c.each(e,function(e,n){t+=n||0}),t}function o(e,t){for(var n=t/e.length,i=0;i<e.length;i++)e[i]-=n}function a(e,t){e.off("scroll").off("stop").on("scroll",t).on("stop",t)}function s(e){if(Z[e])return Z[e];var t,n=0,i={},o=c(Q).css({position:"absolute",visibility:"hidden",top:-1e3,left:-1e3,width:100,height:100}).appendTo("body"),a=c("

").css({width:"100%",height:200}).appendTo(o);return"auto"!==e&&(i.useNative=!!e,i.useSimulatedScrollbar=!e),o.dxScrollable(i),t=o.dxScrollable("instance").option("useNative"),n=t?o.width()-a.width():0,o.remove(),Z[e]={scrollBarWidth:n,scrollBarUseNative:t},Z[e]}function r(e,t){var n="width"===t?"outerWidth":"outerHeight",i=0;return c.each(e,function(e,o){i+=o[n]()-o[t]()}),i}function l(e){return e.closest("."+$).length||e.find("."+$).length}var c=n(9),d=n(57),u=n(18),h=n(14),p=n(11).extend,f=n(76),m=n(90),g=n(96),_=n(72),v=n(350),w=n(451),x=n(452),y=n(453),b=n(458),C=n(460),k=n(461),I=n(464),S=n(462),D=n(465).ExportMixin,T=n(466),E=h.isDefined,A=n(201),B=n(339),M=n(16).when,R="dx-area-data-cell",O="dx-area-row-cell",P="dx-area-column-cell",V="dx-area-description-cell",F="dx-pivotgrid-border",H="dx-pivotgrid",L="dx-row-lines",z="dx-bottom-row",N="dx-bottom-border",W="dx-pivotgrid-fields-container",$="dx-area-fields",q="dx-fieldchooser-popup",G="dx-incompressible-fields",j="dx-overflow-hidden",K="

",U="
").attr({colspan:d.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(a).append(u).appendTo(n),n):u},renderErrorRow:function(e,t,n){var o,a,s,l,c,d=this;return n?(n.find("."+r).remove(),a=d._createErrorRow(e),void n.prepend(a)):(l=t>=0?d._rowsView:d._columnHeadersView,c=n||l.getTableElements(),void i.each(c,function(n,r){a=d._createErrorRow(e,c),s=i(r).children("tbody").children("tr"),t>=0?(o=l._getRowElements(i(r)).eq(t),d.removeErrorRow(s.eq(o.index()+1)),a.insertAfter(o)):(d.removeErrorRow(s.last()),i(r).append(a))}))},removeErrorRow:function(e){var t=this._columnHeadersView&&this._columnHeadersView.element();e=e||t&&t.find("."+s),e&&e.hasClass(s)&&e.remove()},optionChanged:function(e){var t=this;switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:d},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add(function(n,i){var o=n&&n.message||n;e.option("errorRowEnabled")&&t.renderErrorRow(o,void 0,i)}),e.changed.add(function(){var t=e.getController("errorHandling"),n=e.getController("editing");n&&!n.hasChanges()&&t&&t.removeErrorRow()})}}}}}},function(e,t,n){var i=n(349),o=n(372);i.registerModule("gridView",o)},function(e,t,n){var i=n(9),o=n(351),a=n(14),s=n(90),r=n(16).when,l="table",c="borders",d="table-fixed",u="important-margin",h="text-content",p="dx-hidden",f="adaptiveHidden",m="input:not([type='hidden'])",g=100,_=50,v=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView"],w=function(e){return a.isString(e)&&"%"===e.slice(-1)},x=function(e,t){var n,i=[];if(e&&t&&e.length&&e.length===t.length)for(n=0;n<e.length;n++)i.push(e[n]>t[n]?e[n]:t[n]);else e&&e.length?i=e:t&&(i=t);return i},y=function(e){var t=e.get(0).clientHeight,n=parseFloat(e.css("paddingTop")),i=parseFloat(e.css("paddingBottom"));return t-n-i},b=o.ViewController.inherit({_initPostRenderHandlers:function(){var e=this;e._refreshSizesHandler||(e._refreshSizesHandler=function(t){e._dataController.changed.remove(e._refreshSizesHandler);var n,i=t&&t.changeType,o=t&&t.isDelayed;t&&"refresh"!==i&&"prepend"!==i&&"append"!==i?"update"===i&&(e._dataController.items().length>1||"insert"!==t.changeTypes[0]?e._rowsView.resize():n=e.resize()):o||(n=e.resize()),i&&"updateSelection"!==i&&!o&&r(n).done(function(){e.component._fireContentReadyAction()})},e._dataController.changed.add(function(){e._dataController.changed.add(e._refreshSizesHandler)}))},_getBestFitWidths:function(){var e,t,n,i,o=this;return e=o._rowsView.getColumnWidths(),t=o._columnHeadersView&&o._columnHeadersView.getColumnWidths(),n=o._footerView&&o._footerView.getColumnWidths(),i=x(e,t),i=x(i,n)},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),i.each(e,function(e,i){var o=i.command?"command:"+i.command:i.index;n.columnOption(o,"visibleWidth",t[e])}),n.endUpdate()},_toggleBestFitMode:function(e){var t=this.component.element();t.find("."+this.addWidgetPrefix(l)).toggleClass(this.addWidgetPrefix(d),!e),t.find(m).toggleClass(p,e),t.find(".dx-group-cell").toggleClass(p,e),t.find(".dx-header-row ."+this.addWidgetPrefix(h)).css("max-width","")},_synchronizeColumns:function(){var e,t=this,n=t._columnsController,o=n.getVisibleColumns(),s=t.option("columnAutoWidth"),r=t._needBestFit(),l=!1,c=!1,d=[],u=function(){var e;i.each(o,function(t,n){"expand"===n.command&&(e=d[t])}),i.each(o,function(t,n){"expand"===n.command&&e&&(d[t]=e)})};!r&&i.each(o,function(e,t){if("auto"===t.width||t.fixed)return r=!0,!1}),i.each(o,function(e,t){if(t.minWidth)return l=!0,!1}),t._setVisibleWidths(o,[]),r&&(t._toggleBestFitMode(!0),e=!0),a.deferUpdate(function(){r?(d=t._getBestFitWidths(),i.each(o,function(e,t){var i=t.command?"command:"+t.command:t.index;n.columnOption(i,"bestFitWidth",d[e],!0)})):l&&(d=t._getBestFitWidths()),i.each(o,function(e){"auto"!==this.width&&(this.width?d[e]=this.width:s||this.minWidth||(d[e]=void 0))}),c=t._correctColumnWidths(d,o),s&&(u(),t._processStretch(d,o)),a.deferRender(function(){e&&(t._toggleBestFitMode(!1),e=!1),(r||c)&&t._setVisibleWidths(o,d)})})},_needBestFit:function(){return this.option("columnAutoWidth")||this._maxHeightHappened},_correctColumnWidths:function(e,t){var n,o=this,a=!1,s=!1,r=!1,l=o.component.element(),c=o._hasWidth;if(i.each(t,function(t){var n=!1,i=e[t]===f;e[t]<this.minWidth&&!i&&(e[t]=this.minWidth,r=!0,n=!0),"auto"!==this.width&&(this.width?i||n||(e[t]=this.width):s=!0),w(this.width)&&(a=!0)}),l&&o._maxWidth&&(delete o._maxWidth,l.css("max-width","")),!s&&e.length){var d=o._rowsView.contentWidth(),u=o._rowsView.getScrollbarWidth(),h=o._getTotalWidth(e,d);if(h<=d){for(n=e.length-1;n>=0&&t[n]&&(t[n].command||e[n]===f);)n--;n>=0&&(e[n]="auto",r=!0,c||a||(o._maxWidth=h+u+(o.option("showBorders")?2:0),l.css("max-width",o._maxWidth)))}}return r},_processStretch:function(e,t){var n,o,a,s,r=this._rowsView.contentWidth(),l=this._getTotalWidth(e,r),c={length:0};if(e.length&&(i.each(t,function(t){(this.width||e[t]===f)&&(c[t]=!0,c.length++)}),n=r-l,o=Math.floor(n/(e.length-c.length)),a=n-o*(e.length-c.length),n>=0))for(s=0;s<e.length;s++)c[s]||(e[s]+=o,a&&(e[s]++,a--))},_getTotalWidth:function(e,t){var n,i,o=0;for(i=0;i<e.length;i++)n=e[i],n&&n!==f&&(o+=w(n)?parseInt(n)*t/100:parseInt(n));return Math.round(o)},updateSize:function(e){var t,n,i=this,o=i.addWidgetPrefix(u);void 0===i._hasHeight&&e&&e.is(":visible")&&(t=e.children("."+i.getWidgetContainerClass()),t.length&&t.detach(),i._hasHeight=!!y(e),n=e.width(),e.addClass(o),i._hasWidth=e.width()===n,e.removeClass(o),t.length&&t.appendTo(e))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this,n=t.component.element(),i=parseFloat(n.css("maxHeight")),o=parseFloat(n.css("minHeight"));if(t._initPostRenderHandlers(),t._checkSize(e))return a.deferRender(function(){var e,n=t._rowsView.getScrollable();t._dataController.isLoaded()&&(t._synchronizeColumns(),(i||o)&&(e=n&&n._container().get(0).scrollTop,t._rowsView.height("auto"))),a.deferUpdate(function(){a.deferRender(function(){a.deferUpdate(function(){t._updateDimensionsCore(i,e)})})})})},_checkSize:function(e){var t=this.component.element();return!(e&&(this._lastWidth===t.width()&&this._lastHeight===t.height()||!t.is(":visible")))},_updateDimensionsCore:function(e,t){var n,o,s=this,r=s._rowsView.getScrollable(),l=s._dataController,c=s._rowsView,d=s._columnHeadersView,u=s._footerView,h=s.component.element(),p=h&&(h.get(0).clientHeight||h.height()),f=e&&p>=e,m=s._hasHeight||f,w=s.option("loadPanel"),x=s.option("height")||h.get(0).style.height,y=s.getController("editorFactory"); s._maxHeightHappened=f,s.updateSize(h),x&&s._hasHeight^"auto"!==x&&(o=i("
").height(x).appendTo(h),s._hasHeight=!!o.height(),o.remove()),s.option("scrolling")&&(s._hasHeight&&p>0||f)?(n=p,i.each(s.getViews(),function(){this.isVisible()&&this.getHeight&&(n-=this.getHeight())})):n=s._hasHeight||0!==l.items().length?"auto":w&&w.enabled?w.height+_:g,a.deferRender(function(){return c.height(n,m),t&&r&&(r._container().get(0).scrollTop=t),l.isLoaded()?void a.deferUpdate(function(){s._updateLastSizes(h);var e=m?c.getScrollbarWidth():0,t=c.getScrollbarWidth(!0);a.deferRender(function(){d&&d.setScrollerSpacing(e),u&&u.setScrollerSpacing(e),c.setScrollerSpacing(e,t)}),i.each(v,function(e,t){var n=s.getView(t);n&&n.resize()}),y&&y.resize()}):void c.setLoading(!0)})},_updateLastSizes:function(e){this._lastWidth=e.width(),this._lastHeight=e.height()},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),C=o.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){var e,t,n=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")];for(t=0;t<n.length;t++)e=n[t],e&&e.scrollChanged.add(this._scrollChangedHandler.bind(this,n))}}),k=o.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=this.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;a.isDefined(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(c),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;i.each(v,function(n,i){var o=t.getView(i);o&&o.render(e)})},render:function(e){var t=this,n=!t._groupElement,o=t._groupElement||i("
").addClass(t.getWidgetContainerClass());o.toggleClass(t.addWidgetPrefix(c),!!t.option("showBorders")),t.component.setAria({role:"application",label:s.format(t._getWidgetAriaLabel())},e),t._rootElement=e||t._rootElement,n&&(t._groupElement=o,t.getController("resizing").updateSize(e),o.appendTo(e)),t._renderViews(o),t.update()},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e.component._fireContentReadyAction())}});e.exports={defaultOptions:function(){return{showBorders:!1}},controllers:{resizing:b,synchronizeScrolling:C},views:{gridView:k}}},function(e,t,n){var i=n(349),o=n(374);t.HeaderPanel=o.views.headerPanel,i.registerModule("headerPanel",o)},function(e,t,n){var i=n(9),o=n(323),a=n(354),s=n(14),r=n(62);n(282);var l="header-panel",c="toolbar-button",d=a.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return i("<div />").addClass(this.addWidgetPrefix(c))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(c)+t},_getToolbarOptions:function(){var e,t={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}};return this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!s.isDefined(t.toolbarOptions.visible)&&(e=t.toolbarOptions.items,t.toolbarOptions.visible=!(!e||!e.length)),t.toolbarOptions},_renderCore:function(){this._toolbar?this._toolbar.option(this._toolbarOptions):(this.element().addClass(this.addWidgetPrefix(l)),this._toolbar=this._createComponent(i("<div />").appendTo(this.element()),o,this._toolbarOptions))},_columnOptionChanged:s.noop,init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["designMode","disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter(function(t){return t.name===e})[0]);if(o>=0){var a="items["+o+"]";n.option(a+".options")?n.option(a+".options.disabled",t):n.option(a+".disabled",t)}}},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){"onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:s.noop});e.exports={defaultOptions:function(){return{}},views:{headerPanel:d},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments);var e=this.getView("headerPanel").element();e&&r.triggerResizeEvent(e)}}}}}},function(e,t,n){var i=n(349),o=n(14),a=n(11).extend,s=n(376),r=o.equalByValue,l=function(e){var t=e.getController("columns"),n=e.getController("selection"),i=e.getController("export"),s=e.getController("data"),l=e.getView("pagerView");t&&t.columnsChanged.add(function(){var n=t.getUserState(),i=o.getKeyHash(n),s=o.getKeyHash(e._state.columns);r(s,i)||(a(e._state,{columns:n}),e.isEnabled()&&e.save())}),n&&n.selectionChanged.add(function(t){a(e._state,{selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter}),e.isEnabled()&&e.save()}),s&&(e._initialPageSize=e.option("paging.pageSize"),s.changed.add(function(){a(e._state,{searchText:e.option("searchPanel.text"),pageIndex:s.pageIndex(),pageSize:s.pageSize(),allowedPageSizes:l?l.getPageSizes():void 0}),e.isEnabled()&&e.save()})),i&&i.selectionOnlyChanged.add(function(){a(e._state,{exportSelectionOnly:i.selectionOnly()}),e.isEnabled()&&e.save()})},c=function(e,t){var n=t.allowedPageSizes,i=t.searchText,o=t.selectedRowKeys,a=t.selectionFilter,s=e.getController("export"),r=e.getController("columns"),l=e.option("scrolling.mode");e.component.beginUpdate(),r&&r.setUserState(t.columns),s&&s.selectionOnly(t.exportSelectionOnly),e.option("selectedRowKeys",o||[]),e.option("selectionFilter",a),n&&"auto"===e.option("pager.allowedPageSizes")&&(e.option("pager").allowedPageSizes=n),e.component.endUpdate(),e.option("searchPanel.text",i||""),e.option("paging.pageSize","virtual"!==l&&"infinite"!==l&&t.pageSize?t.pageSize:e._initialPageSize),e.option("paging.pageIndex",t.pageIndex||0)};i.registerModule("stateStoring",{defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:s.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add(function(){t.isLoaded()&&(e.setLoading(!1),e.renderNoDataText())})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),l(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&c(this,a({},e)),t}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=e.callBase,n=e.getController("stateStoring");n.isEnabled()&&!n.isLoaded()?(clearTimeout(e._restoreStateTimeoutID),e._restoreStateTimeoutID=setTimeout(function(){n.load().always(function(){e._restoreStateTimeoutID=null,t.call(e),e.stateLoaded.fire()})})):e.isStateLoading()||t.call(e)},isLoading:function(){var e=this,t=e.getController("stateStoring");return this.callBase()||t.isLoading()},isStateLoading:function(){return o.isDefined(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}}}}})},function(e,t,n){var i=n(9),o=n(351),a=n(22),s=n(23),r=n(54).sessionStorage,l=n(11).extend,c=n(14),d=n(12),u=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,h=function(e){e&&i.each(e,function(t,n){var i;d.isPlainObject(n)||Array.isArray(n)?h(n):"string"==typeof n&&(i=u.exec(n),i&&(e[t]=new Date(Date.UTC(+i[1],+i[2]-1,+i[3],+i[4],+i[5],+i[6]))))})};t.StateStoringController=o.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?r():localStorage;if(!t)throw"file:"===window.location.protocol&&s.msie?new Error("E1038"):new Error("E1007");return t},t=function(e){return c.isDefined(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(e(n).getItem(t(n)))}catch(e){a.log(e.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"===i.type)return void(i.customSave&&i.customSave(n));try{e(i).setItem(t(i),JSON.stringify(n))}catch(e){}},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},i(window).on("unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e,t=this;return t._isLoading=!0,e=t._loadState(),e&&c.isFunction(e.done)||(e=i.Deferred().resolve(e)),e.done(function(e){t._isLoaded=!0,t._isLoading=!1,t.state(e)}),e},state:function(e){var t=this;return arguments.length?(t._state=l({},e),void h(t._state)):l(!0,{},t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(function(){e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;switch(e.name){case"stateStoring":t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0;break;default:t.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),i(window).off("unload",this._windowUnloadHandler)}}}())},function(e,t,n){var i=n(349),o=n(378);i.registerModule("selection",o)},function(e,t,n){var i=n(9),o=n(349),a=n(14),s=n(11).extend,r=n(61),l=n(76),c=n(90),d=n(72),u=n(165),h=n(170),p="dx-editor-cell",f="dx-row",m="dx-selection",g="dx-select-checkbox",_="dx-select-checkboxes-hidden",v="dx-command-select",w="dx-selection-disabled",x="dx-data-row",y="selection.showCheckBoxesMode",b="selection.mode",C=function(e,t){var n=e.getController("selection"),o=e.getView("rowsView"),a=i(t.target).closest("."+x),s=o.getRowIndex(a);s<0||("onLongTap"===e.option(y)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(y)&&n.startSelectionWithCheckboxes(),"always"!==e.option(y)&&n.changeItemSelection(s,{control:!0})))};t.SelectionController=o.Controller.inherit(function(){var e=function(e,t){var n=0,i=e.getController("data").store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var s=0;s<t.length;s++)if(Array.isArray(t[s])){if(t[s][0]!==o[n]||"="!==t[s][1])return!0;n++}return!1}return o!==t[0]};return{init:function(){var e=this,t=e.getController("data"),n=e.option("selection")||{};e._selectionMode=e.option(b),e._isSelectionWithCheckboxes=!1,e._selection=e._createSelection({selectedKeys:e.option("selectedRowKeys"),mode:e._selectionMode,deferred:n.deferred,maxFilterLengthInRequest:n.maxFilterLengthInRequest,selectionFilter:e.option("selectionFilter"),key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||i.Deferred().resolve([])},plainItems:function(){return t.items()},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return e&&"data"===e.rowType&&!e.inserted},getItemData:function(e){return e&&(e.oldData||e.data||e)},filter:function(){return t.getCombinedFilter()},totalCount:function(){return t.totalCount()},onSelectionChanged:e._updateSelectedItems.bind(this)}),e._updateSelectColumn(),e.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_updateSelectColumn:function(){var e=this.getController("columns"),t=this.isSelectColumnVisible();e.addCommandColumn({command:"select",visible:t,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:v,width:"auto"}),e.columnOption("command:select","visible",t)},_createSelection:function(e){return new h(e)},_fireSelectionChanged:function(){var e=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(e)},_updateCheckboxesState:function(t){var n=t.isDeferredMode,i=t.selectionFilter,o=t.selectedItemKeys,a=t.removedItemKeys;"onClick"===this.option(y)&&((n?i&&e(this,i):o.length>1)?this.startSelectionWithCheckboxes():(n?i&&!i.length:0===o.length&&a.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t=this,n=t.option("selection.deferred"),i=t._selection.selectionFilter(),o=t.getController("data"),a=o.items();if(a){var s=t.isSelectionWithCheckboxes(),r=t.getChangedItemIndexes(a);t._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:i,isDeferredMode:n}),(r.length||s!==t.isSelectionWithCheckboxes())&&o.updateItems({changeType:"updateSelection",itemIndexes:r}),n?(t.option("selectionFilter",i),t._fireSelectionChanged(),t.executeAction("onSelectionChanged",{})):((e.addedItemKeys.length||e.removedItemKeys.length)&&(t._selectedItemsInternalChange=!0,t.option("selectedRowKeys",e.selectedItemKeys.slice(0)),t._selectedItemsInternalChange=!1,t.executeAction("onSelectionChanged",{selectedRowsData:e.selectedItems,selectedRowKeys:e.selectedItemKeys,currentSelectedRowKeys:e.addedItemKeys,currentDeselectedRowKeys:e.removedItemKeys})),t._fireSelectionChanged())}},getChangedItemIndexes:function(e){for(var t=this,n=[],i=this.option("selection.deferred"),o=0,a=e.length;o<a;o++){var s=e[o],r=t._selection.isItemSelected(i?s.data:s.key);t._selection.isDataItem(s)&&s.isSelected!==r&&n.push(o)}return n},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"selection":var n=t._selectionMode;t.init();var i=t._selectionMode,o=t.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),t.selectRows(o).always(function(){t._fireSelectionChanged()}),t.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":Array.isArray(e.value)&&!t._selectedItemsInternalChange&&t.component.getDataSource()&&t.selectRows(e.value),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(b)&&("always"===this.option(y)||"onClick"===this.option(y)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(y)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):i.Deferred().resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this.getController("data").items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),i.each(e,function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)}),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){return t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0),this._selection.changeItemSelection(e,t)},focusedItemIndex:function(e){var t=this;return a.isDefined(e)?void(t._selection._focusedItemIndex=e):t._selection._focusedItemIndex},isSelectionWithCheckboxes:function(){return"multiple"===this.option(b)&&("always"===this.option(y)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(b)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}}()),e.exports={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:t.SelectionController},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done(function(){e.getController("selection").refresh()})},pageIndex:function(e){var t=this,n=t._dataSource;return n&&e&&n.pageIndex()!==e&&t.getController("selection").focusedItemIndex(-1),t.callBase(e)},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),a=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,s=this.callBase.apply(this,arguments);if(s.isSelected=i.isRowSelected(a?s.data:s.key),o&&s.values)for(var r=0;r<t.visibleColumns.length;r++)if("select"===t.visibleColumns[r].command){s.values[r]=s.isSelected;break}return s},refresh:function(){var e=this,t=i.Deferred();return this.callBase.apply(this,arguments).done(function(){e.getController("selection").refresh().done(t.resolve).fail(t.reject)}).fail(t.reject),t.promise()}},contextMenu:{_contextMenuPrepared:function(e){var t=e.jQueryEvent;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||C(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find("."+g);t&&n.length&&"multiple"===e.option("selection.mode")&&n.dxCheckBox("instance").option("value",e.getController("selection").isSelectAll())},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_getDefaultTemplate:function(e){var t=this;return"select"===e.command?function(e,n){var i=n.column;"select"===i.command&&(e.addClass(p),t._renderSelectAllCheckBox(e,i),t._attachSelectAllCheckBoxClickEvent(e))}:t.callBase(e)},_renderSelectAllCheckBox:function(e,t){var n,o=this,a=o.getController("selection");return n=i("<div />").appendTo(e).addClass(g),o.setAria("label",c.format("dxDataGrid-ariaSelectAll"),e),o.getController("editorFactory").createEditor(n,s({},t,{parentType:"headerRow",dataType:"boolean",value:a.isSelectAll(),editorOptions:{visible:o.option("selection.allowSelectAll")||a.isSelectAll()!==!1},tabIndex:-1,setValue:function(e,t){var n=o.option("selection.allowSelectAll");t.component.option("visible",n||t.component.option("value")!==!1),t.jQueryEvent&&a.isSelectAll()!==e&&(t.value&&!n?t.component.option("value",!1):t.value?a.selectAll():a.deselectAll(),t.jQueryEvent.preventDefault())}})),n},_attachSelectAllCheckBoxClickEvent:function(e){e.on(l.name,this.createAction(function(e){var t=e.jQueryEvent;i(t.target).closest("."+g).length||i(t.currentTarget).children().trigger(l.name),t.preventDefault()}))}},rowsView:{_getDefaultTemplate:function(e){var t=this;return"select"===e.command?function(n,i){t.renderSelectCheckBoxContainer(e,n,i)}:t.callBase(e)},renderSelectCheckBoxContainer:function(e,t,n){"data"!==n.rowType||n.row.inserted||(t.addClass(p),this._attachCheckBoxClickEvent(t),this.setAria("label",c.format("dxDataGrid-ariaSelectRow"),t),this._renderSelectCheckBox(t,n.value,e))},_renderSelectCheckBox:function(e,t,n){var o=i("<div />").addClass(g).appendTo(e);return this.getController("editorFactory").createEditor(o,s({},n,{parentType:"dataRow",dataType:"boolean",value:t,tabIndex:-1,setValue:function(t,n){n&&n.jQueryEvent&&"keydown"===n.jQueryEvent.type&&e.trigger(l.name,n)}})),o},_attachCheckBoxClickEvent:function(e){e.on(l.name,this.createAction(function(e){var t=this.getController("selection"),n=e.jQueryEvent,o=this.getRowIndex(i(n.currentTarget).closest("."+f));o>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(o,{shift:n.shiftKey}),i(n.target).closest("."+g).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[o]}))}))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&(i.each(n,function(n,o){i.each(e.itemIndexes||[],function(n,a){var s,r;e.items[a]&&(s=t._getRowElements(i(o)).eq(a),r=!!e.items[a].isSelected,s.toggleClass(m,r).find("."+g).dxCheckBox("option","value",r),t.setAria("selected",r,s))})}),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(y)&&r.touch||n.on(d.addNamespace(u.name,"dxDataGridRowsView"),"."+x,e.createAction(function(t){C(e.component,t.jQueryEvent),t.jQueryEvent.stopPropagation()})),n.on("mousedown selectstart",e.createAction(function(e){var t=e.jQueryEvent;t.shiftKey&&t.preventDefault()}))),n},_createRow:function(e){var t,n=this.callBase(e);return e&&(t=!!e.isSelected,t&&n.addClass(m),this.setAria("selected",t,n)),n},_rowClick:function(e){var t=this,n=e.jQueryEvent,o=i(n.target).closest("."+w).length;t.isClickableElement(i(n.target))||(o||"multiple"===t.option(b)&&"always"===t.option(y)||t.getController("selection").changeItemSelection(e.rowIndex,{control:n.ctrlKey||n.metaKey,shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),t.callBase(e))},isClickableElement:function(e){var t=e.closest("."+v).length;return!!t},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();i.each(e,function(e,t){i(t).toggleClass(_,n)})}}}}}},function(e,t,n){var i=n(349),o=n(380);t.ColumnChooserController=o.controllers.columnChooser,t.ColumnChooserView=o.views.columnChooserView,i.registerModule("columnChooser",o)},function(e,t,n){var i=n(9),o=n(351),a=n(354),s=n(14),r=n(11).extend,l=n(90),c=n(144),d=n(202),u=n(381),h=n(53),p=n(201),f="column-chooser",m="column-chooser-button",g="notouch-action",_="column-chooser-list",v="column-chooser-mode-drag",w="column-chooser-mode-select",x="column-chooser",y="dx-column-chooser-item",b=300,C=function(e,t){var n,o=[],a="select"===e.option("columnChooser.mode");return t.length&&i.each(t,function(e,t){n={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,parentId:s.isDefined(t.ownerBand)?t.ownerBand:null},a&&(n.selected=t.visible),o.push(n)}),o},k=o.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,n=this,o=n.addWidgetPrefix(m),a=n.option("columnChooser.enabled"),s=e.find("."+o);a?s.length?s.show():(t=i("<div />").addClass(o).appendTo(e),n._createComponent(t,d,{icon:x,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):s.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),I=a.ColumnsView.inherit({_resizeCore:s.noop,_isWinDevice:function(){return!!h.real().win},_updateList:function(e){var t,n=this._popupContainer.content(),i="select"===this.option("columnChooser.mode"),o=this._columnsController.getChooserColumns(i);i&&this._columnChooserList&&!e||(this._popupContainer._wrapper().toggleClass(this.addWidgetPrefix(v),!i).toggleClass(this.addWidgetPrefix(w),i),t=C(this,o),this._renderColumnChooserList(n,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(f)),n=e.option("columnChooser"),o=c.current(),a=o&&o.indexOf("generic")>-1,l=o&&o.indexOf("android5")>-1,d={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,toolbarItems:[{text:n.title,toolbar:"top",location:a||l?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&i(document.body).removeClass(e.addWidgetPrefix(g))},container:n.container};a?r(d,{showCloseButton:!0}):d.toolbarItems[d.toolbarItems.length]={shortcut:"cancel"},s.isDefined(this._popupContainer)?this._popupContainer.option(d):(e._popupContainer=e._createComponent(t,p,d),e._popupContainer.on("optionChanged",function(t){"visible"===t.name&&e.renderCompleted.fire()}))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderColumnChooserList:function(e,t){var n,i,o="select"===this.option("columnChooser.mode"),a={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null};o&&(i=e.find(".dx-scrollable").data("dxScrollable"),n=i&&i.scrollTop(),a.onContentReady=function(e){if(n){var t=e.element.find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:n})}}),this._isWinDevice()&&(a.useNativeScrolling=!1),r(a,o?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?this._columnChooserList.option(a):(this._columnChooserList=this._createComponent(e,u,a),e.addClass(this.addWidgetPrefix(_)))},_prepareDragModeConfig:function(){var e=this.option("columnChooser");return{noDataText:e.emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,n){n.text(e.text).parent().addClass(e.cssClass).addClass(y)}}},_prepareSelectModeConfig:function(){var e=this,t=function(t){var n=e._columnsController.getVisibleColumns().filter(function(e){return!e.command}),i=1===n.length&&!t.itemData.selected;i?t.component.selectItem(t.itemElement):setTimeout(function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)},b)};return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:t}},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames,i="select"===this.option("columnChooser.mode");this.callBase(e),i&&(n.showInColumnChooser||n.visible||t.columns&&n.all)&&this.render(null,!0)},optionChanged:function(e){switch(e.name){case"columnChooser":this.render(null,!0);break;default:this.callBase(e)}},getColumnElements:function(){var e=this._popupContainer&&this._popupContainer.content();return e&&e.find("."+y)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var n=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var e,t=this,n=t._popupContainer&&t._popupContainer._container();return n&&n.is(":visible")?(e=n.offset(),{left:e.left,top:e.top,right:e.left+n.outerWidth(),bottom:e.top+n.outerHeight()}):null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&i(document.body).addClass(this.addWidgetPrefix(g))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}});e.exports={defaultOptions:function(){return{columnChooser:{enabled:!1,mode:"dragAndDrop",width:250,height:260,title:l.format("dxDataGrid-columnChooserTitle"),emptyPanelText:l.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:k},views:{columnChooserView:I},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this,n=t.option("columnChooser.enabled");if(n){var i=function(){t.component.getView("columnChooserView").showColumnChooser()},o=function(e){e.element.addClass(t._getToolbarButtonClass(t.addWidgetPrefix(m)))},a=t.option("columnChooser.title"),s={widget:"dxButton",options:{icon:x,onClick:i,hint:a,text:a,onInitialized:o},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(s)}return e},optionChanged:function(e){switch(e.name){case"columnChooser":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.option("columnChooser.enabled");return e.callBase()||t}}},controllers:{columns:{allowMoveColumn:function(e,t,n,i){var o=this.option("columnChooser.mode"),a="select"===o&&"columnChooser"===i;return!a&&this.callBase(e,t,n,i)}}}}}},function(e,t,n){var i=n(9),o=n(90),a=n(76),s=n(14),r=n(11).extend,l=n(26).inArray,c=n(57),d=n(249),u=n(342),h=n(72),p=n(77),f=n(183),m=n(69),g=n(245),_=n(239),v=n(16),w="dx-treeview",x="dx-treeview-node-container",y="dx-treeview-node-container-opened",b="dx-treeview-node",C="dx-treeview-item",k="dx-treeview-item-with-checkbox",I="dx-treeview-item-data",S="dx-treeview-node-is-leaf",D="dxTreeView_expand",T="dx-treeview-toggle-item-visibility",E="dx-treeview-loadindicator",A="dx-treeview-loadindicator-wrapper",B="dx-treeview-node-loadindicator",M="dx-treeview-toggle-item-visibility-opened",R="dx-treeview-select-all-item",O="dx-state-disabled",P="dx-state-selected",V="data-item-id",F=u.inherit({_supportedKeys:function(e){var t=function(e){var t=this.option("focusedElement");t&&(e.target=t,e.currentTarget=t,this._itemClickHandler(e,t.children("."+C)))},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("."+C));this._toggleExpandedNestedItems([i],e)}}};return r(this.callBase(),{enter:this._showCheckboxes()?n:t,space:this._showCheckboxes()?n:t,asterisk:i.bind(this,!0),minus:i.bind(this,!1)})},_changeCheckBoxState:function(e){var t=this._getCheckBoxInstance(e),n=t.option("value");t.option("disabled")||this._updateItemSelection(!n,e.find("."+C).get(0),!0,e)},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;n<i;n++){var o=e[n],a=this._dataAdapter.getNodeByItem(o); this._toggleExpandedState(a,t),this._toggleExpandedNestedItems(o.items,t)}},_getNodeElement:function(e){return this.element().find("["+V+"='"+s.normalizeKey(e.internalFields.key)+"']")},_activeStateUnit:"."+C,_widgetClass:function(){return w},_getDefaultOptions:function(){return r(this.callBase(),{animationEnabled:!0,dataStructure:"tree",expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:o.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",virtualModeEnabled:!1,rootValue:0,searchValue:"",focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null})},_setDeprecatedOptions:function(){this.callBase(),r(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:s.noop,_syncSelectionOptions:s.noop,_fireSelectionChanged:function(){var e=this._selectionChangePromise;v.when(e).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(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;i.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._initExpandEvent();break;case"dataStructure":case"rootValue":case"searchValue":(!n.length||n<i)&&"none"!==this.option("showCheckBoxesMode")&&this._removeSelection(),this._initDataAdapter(),this.repaint();break;case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",e.value),this.repaint();break;default:this.callBase(e)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(e){e&&e.length&&this.option("items",e)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var e=this,t=e._filter;t.custom||(t.custom=e._dataSource.filter()),t.internal||(t.internal=[e.option("parentIdExpr"),e.option("rootValue")])},_useCustomChildrenLoader:function(){return s.isFunction(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(e){var t=this.option("createChildren").call(this,e);return Array.isArray(t)?i.Deferred().resolve(t).promise():t&&s.isFunction(t.then)?v.fromPromise(t):i.Deferred().resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers(),this._initCheckBoxesMode()},_dataSourceChangedHandler:function(e){this._initialized&&this._isVirtualMode()&&this.option("items").length||this.option("items",e)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=i("
",{"class":E}),this._createComponent(this._treeViewLoadIndicator,_,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var n=i("
",{"class":A});this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_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;i.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=r(!0,[],this.option("items"));i.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.children("."+x):this._scrollableContainer?this._scrollableContainer.content().children():i()},_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._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),searchValue:this.option("searchValue"),dataType:this.option("dataStructure")}},_render:function(){this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){if(this.option("items")&&this.option("items").length){var e=this._renderNodeContainer();this._renderScrollableContainer(),this._scrollableContainer.content().append(e),this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),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.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent(i("
").appendTo(this.element()),g,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=i("
    ").addClass(x);if(this.setAria("role","group",t),e&&e.length){var n=this._getItemData(e.children("."+C));this._expandedGetter(n)&&t.addClass(y),t.appendTo(e)}return t},_createDOMElement:function(e,t){var n=i("
  • ").addClass(b).attr(V,s.normalizeKey(t.internalFields.key)).prependTo(e);return this.setAria({role:"treeitem",label:this._displayGetter(t.internalFields.item)||"",expanded:t.internalFields.expanded||!1,level:this._getLevel(e)},n),n},_getLevel:function(e){var t=e.parent();return t.hasClass("dx-scrollable-content")?1:parseInt(t.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")},_initCheckBoxesMode:function(){if(!this._showCheckboxes()){this._suppressDeprecatedWarnings();var e=this.option("showCheckBoxes"),t=this.option("selectAllEnabled");this._resumeDeprecatedWarnings(),this.option("showCheckBoxesMode",e?t?"selectAll":"normal":"none")}},_renderItems:function(e,t){for(var n=t.length-1,i=n;i>=0;i--)this._renderItem(t[i],e);this._renderFocusTarget()},_renderItem:function(e,t){var n=this._createDOMElement(t,e),i=e.internalFields;this._showCheckboxes()&&this._renderCheckBox(n,e),this.setAria("selected",i.selected,n),this._toggleSelectedClass(n,i.selected),this.callBase(i.key,i.item,n),i.item.visible!==!1&&this._renderChildren(n,e)},_renderChildren:function(e,t){if(!this._hasChildren(t))return void this._addLeafClass(e);if(this._renderToggleItemVisibilityIcon(e,t),t.internalFields.expanded){var n=this;n._loadSublevel(t).done(function(i){n._renderSublevel(e,n._getActualNode(t),i)})}},_getActualNode:function(e){return this._dataAdapter.getNodeByKey(e.internalFields.key)},_hasChildren:function(e){return this._isVirtualMode()||this._useCustomChildrenLoader()?this._hasItemsGetter(e.internalFields.item)!==!1:this.callBase(e)},_loadSublevel:function(e){var t=i.Deferred(),n=this,o=n._getChildNodes(e);return o.length?t.resolve(o):n._loadNestedItems(e).done(function(e){t.resolve(n._dataAdapter.getNodesByItems(e))}),t.promise()},_renderSublevel:function(e,t,n){var i=this._renderNodeContainer(e,t);if(this._renderItems(i,n),n.length&&!t.internalFields.selected){var o=n[0];this._updateParentsState(o,this._getNodeElement(o))}this._normalizeIconState(e,n.length),i.addClass(y)},_executeItemRenderAction:function(e,t,n){var i=this._dataAdapter.getNodeByKey(e);this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t,node:i})},_addLeafClass:function(e){e.addClass(S)},_initExpandEvent:function(){var e=this,t=this._getEventNameByOption(this.option("expandEvent")),n=this._itemContainer(),o=this._itemSelector();n.off("."+D,o).on(t,o,function(t){var n=i(t.currentTarget.parentNode);n.hasClass(S)||e._toggleExpandedState(t.currentTarget,void 0,t)})},_getEventNameByOption:function(e){var t="click"===e?a:f;return h.addNamespace(t.name,D)},_getNode:function(e){if(!s.isDefined(e))return null;if(e.internalFields)return e;if(s.isPrimitive(e))return this._dataAdapter.getNodeByKey(e);var t=i(e).get(0);return t?s.isDomNode(t)?this._getNodeByElement(t):this._dataAdapter.getNodeByItem(t):null},_getNodeByElement:function(e){var t=i(e).closest("."+b),n=s.denormalizeKey(t.attr(V));return this._dataAdapter.getNodeByKey(n)},_toggleExpandedState:function(e,t,n){var i=this._getNode(e),o=i.internalFields.expanded;if(!i.internalFields.disabled&&o!==t){if(s.isDefined(t)||(t=!o),this._dataAdapter.toggleExpansion(i.internalFields.key,t),i.internalFields.expanded=t,this._hasChildren(i)){var a=this._getNodeElement(i);this._createLoadIndicator(a)}this._updateExpandedItemsUI(i,t,n)}},_createLoadIndicator:function(e){var t=e.children("."+T),n=e.children("."+x);t.hasClass(M)||n.not(":empty").length||(this._createComponent(i("
    ",{"class":B}),_,{}).element().appendTo(e),t.hide())},_renderToggleItemVisibilityIcon:function(e,t){var n=i("
    ").addClass(T).appendTo(e);t.internalFields.expanded&&(n.addClass(M),e.parent().addClass(y)),t.internalFields.disabled&&n.addClass(O),this._renderToggleItemVisibilityIconClick(n,t)},_renderToggleItemVisibilityIconClick:function(e,t){var n=h.addNamespace(a.name,this.NAME),i=this;e.off(n).on(n,function(e){i._toggleExpandedState(t,void 0,e)})},_updateExpandedItemsUI:function(e,t,n){var i=this._getNodeElement(e);!i.length&&this.option("expandNodesRecursive")&&this._updateExpandedItemsUI(this._getNode(e.internalFields.parentKey),t,n);var o=i.children("."+T),a=i.children("."+x);o.toggleClass(M,t);var s=a.length>0;return!t||s&&!a.is(":empty")?void this._updateExpandedItem(e,t,n):this._isVirtualMode()||this._useCustomChildrenLoader()?void this._loadNestedItemsWithUpdate(e,t,n):(this._renderSublevel(i,e,this._getChildNodes(e)),this._fireContentReadyAction(),void this._updateExpandedItem(e,t,n))},_loadNestedItemsWithUpdate:function(e,t,n){var i=this,o=this._getNodeElement(e);i._loadNestedItems(e).done(function(a){var s=i._getActualNode(e);i._renderSublevel(o,s,i._dataAdapter.getNodesByItems(a)),a&&a.length&&(i._fireContentReadyAction(),i._updateExpandedItem(s,t,n))})},_loadNestedItems:function(e){var t=this;if(t._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(e);return t._loadChildrenByCustomLoader(n).done(function(e){t._appendItems(e)})}return t._isVirtualMode()?(t._filter.internal=[t.option("parentIdExpr"),e.internalFields.key],t._dataSource.filter(t._combineFilter()),t._dataSource.load().done(function(e){var n=l(e[0],t.option("items"))+1;!n&&t._appendItems(e)})):i.Deferred().resolve([]).promise()},_appendItems:function(e){this.option().items=this.option("items").concat(e),this._initDataAdapter()},_updateExpandedItem:function(e,t,n){this._animateNodeContainer(e,t,n)},_animateNodeContainer:function(e,t,n){var i=this._getNodeElement(e),o=i.children("."+x),a=o.height();m.stop(o,!0),m.animate(o,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{"max-height":t?0:a},to:{"max-height":t?a:0},start:function(){o.addClass(y)},complete:function(){o.css("max-height","none"),o.toggleClass(y,t),this.setAria("expanded",t,i),this._scrollableContainer.update(),this._fireExpandedStateUpdatedEvent(t,e,n)}.bind(this)})},_fireExpandedStateUpdatedEvent:function(e,t,n){var i,o=e?"onItemExpanded":"onItemCollapsed";this._hasChildren(t)&&(s.isDefined(n)?this._itemJQueryEventHandler(n,o,{node:this._dataAdapter.getPublicNode(t)}):(i=this._getNodeElement(t),this._itemEventHandler(i,o,{jQueryEvent:n,node:this._dataAdapter.getPublicNode(t)})))},_normalizeIconState:function(e,t){var n,i=e.find(".dx-loadindicator");return i.length&&_.getInstance(i).option("visible",!1),t?(n=e.find("."+T),void n.show()):(e.find("."+T).removeClass(T),void e.addClass(S))},_renderContent:function(){this._renderEmptyMessage();var e=this.option("items");e&&e.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(e){e=e||this.element().find("."+x).first(),this._$selectAllItem=i("
    ").addClass(R);var t=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,d,{value:t,text:this.option("selectAllText"),onValueChanged:this._toggleSelectAll.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,t),e.before(this._$selectAllItem)},_toggleSelectAll:function(e){this._dataAdapter.toggleSelectAll(e.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(e,t){e.addClass(k);var n=i("
    ").appendTo(e);this._createComponent(n,d,{value:t.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(t)})},_toggleSelectedClass:function(e,t){e.toggleClass(P,!!t)},_toggleNodeDisabledState:function(e,t){var n=this._getNodeElement(e),i=n.find("."+C).eq(0);if(this._dataAdapter.toggleNodeDisabledState(e.internalFields.key,t),i.toggleClass(O,!!t),this._showCheckboxes()){var o=this._getCheckBoxInstance(n);o.option("disabled",!!t)}},_itemOptionChanged:function(e,t,n){var i=this._dataAdapter.getNodeByItem(e);switch(t){case this.option("disabledExpr"):this._toggleNodeDisabledState(i,n)}},_changeCheckboxValue:function(e){var t=e.element.parent("."+b),n=t.children("."+C),i=this._getItemData(n),o=this._getNodeByElement(n),a=e.value;o.internalFields.selected!==a&&this._updateItemSelection(a,i,e.jQueryEvent)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_updateItemSelection:function(e,t,n){var i=this._getNode(t);if(i&&i.internalFields.selected!==e){this._isSingleSelection()&&this._toggleSelectAll({value:!1}),this._dataAdapter.toggleSelection(i.internalFields.key,e),this._updateItemsUI();var o=n||this._findItemElementByItem(i.internalFields.item),a=n?this._itemJQueryEventHandler:this._itemEventHandler;a.call(this,o,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(i),itemData:i.internalFields.item}),this._fireSelectionChanged()}},_getCheckBoxInstance:function(e){return e.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var e=this;i.each(this._dataAdapter.getData(),function(t,n){var i=e._getNodeElement(n),o=n.internalFields.selected;if(i.length&&(e._toggleSelectedClass(i,o),e.setAria("selected",o,i),e._showCheckboxes())){var a=e._getCheckBoxInstance(i);a.option("value",o)}}),this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value",this._dataAdapter.isAllSelected())},_updateParentsState:function(e,t){var n=this._dataAdapter.getNodeByKey(e.internalFields.parentKey);if(t){var o=i(t.parents("."+b)[0]);if(this._showCheckboxes()){var a=n.internalFields.selected;this._getCheckBoxInstance(o).option("value",a),this._toggleSelectedClass(o,a)}n.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(n,o)}},_itemEventHandlerImpl:function(e,t,n){var o=i(e).closest("."+b).children("."+C);return t(r(this._extendActionArgs(o),n))},_itemContextMenuHandler:function(e){this._createEventHandler("onItemContextMenu",e)},_itemHoldHandler:function(e){this._createEventHandler("onItemHold",e)},_createEventHandler:function(e,t){var n=this._getNodeByElement(t.currentTarget);this._itemJQueryEventHandler(t,e,{node:this._dataAdapter.getPublicNode(n)})},_itemClass:function(){return C},_itemDataKey:function(){return I},_attachClickEvent:function(){var e=this,t="."+this._itemClass(),n="."+b+", ."+R,o=h.addNamespace(a.name,e.NAME),s=h.addNamespace(p.down,this.NAME);e._itemContainer().off(o,t).off(s,n).on(o,t,function(t){e._itemClickHandler(t,i(this))}).on(s,n,function(t){e._itemPointerDownHandler(t)})},_itemClickHandler:function(e,t){var n=this._getItemData(t),i=this._getNodeByElement(t);this._itemJQueryEventHandler(e,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&this._updateItemSelection(!i.internalFields.selected,n,e)},_updateSelectionToFirstItem:function(e,t){for(var n=t;n>=0;){var o=i(e[n]);this._updateItemSelection(!0,o.find("."+C).get(0)),n--}},_updateSelectionToLastItem:function(e,t){for(var n=t,o=e.length;n<o;){var a=i(e[n]);this._updateItemSelection(!0,a.find("."+C).get(0)),n++}},_focusInHandler:function(e){var t=this,n=e.currentTarget,i=t._focusTarget();if(l(n,i)!==-1&&t._toggleFocusClass(!0,n),t.option("focusedElement"))return clearTimeout(t._setFocusedItemTimeout),void(t._setFocusedItemTimeout=setTimeout(function(){t._setFocusedItem(t.option("focusedElement"))}));var o=t._getActiveItem();t.option("focusedElement",o.closest("."+b))},_setFocusedItem:function(e){e&&e.length&&(e.children().hasClass(O)||this.callBase(e),this._scrollableContainer.scrollToElement(e.find("."+C).first()))},_itemPointerDownHandler:function(e){if(this.option("focusStateEnabled")){var t=i(e.target).closest("."+b+", ."+R);if(t.length){var n=t.hasClass(O)?null:t;this.option("focusedElement",n)}}},_findNonDisabledNodes:function(e){return e.not(function(){return i(this).children("."+C).hasClass(O)})},_moveFocus:function(e,t){var n="up",i="down",o="first",a="last",s=this.option("rtlEnabled")?"right":"left",r=this.option("rtlEnabled")?"left":"right";this.element().find("."+x).each(function(){m.stop(this,!0)});var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(e){case n:var c=this._prevItem(l);this.option("focusedElement",c),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,c.find("."+C).get(0));break;case i:var d=this._nextItem(l);this.option("focusedElement",d),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,d.find("."+C).get(0));break;case o:var u=l.first();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",u);break;case a:var h=l.last();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",h);break;case r:this._expandFocusedContainer();break;case s:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_nodeElements:function(){return this.element().find("."+b).not(":hidden")},_expandFocusedContainer:function(){var e=this.option("focusedElement");if(e&&!e.hasClass(S)){var t=e.find("."+x).eq(0);if(t.hasClass(y))return void this.option("focusedElement",this._nextItem(this._findNonDisabledNodes(this._nodeElements())));var n=this._getNodeByElement(e.children("."+C));this._toggleExpandedState(n,!0)}},_getClosestNonDisabledNode:function(e){do e=e.parent().closest("."+b);while(e.children(".dx-treeview-item.dx-state-disabled").length);return e},_collapseFocusedContainer:function(){var e=this.option("focusedElement");if(e){var t=e.find("."+x).eq(0);if(!e.hasClass(S)&&t.hasClass(y)){var n=this._getNodeByElement(e.children("."+C));this._toggleExpandedState(n,!1)}else{var i=this._getClosestNonDisabledNode(e);i.length&&this.option("focusedElement",i)}}},updateDimensions:function(){var e=this,t=i.Deferred();return e._scrollableContainer?e._scrollableContainer.update().done(function(){t.resolveWith(e)}):t.resolveWith(e),t.promise()},selectItem:function(e){this._updateItemSelection(!0,e)},unselectItem:function(e){this._updateItemSelection(!1,e)},expandItem:function(e){this._toggleExpandedState(e,!0)},collapseItem:function(e){this._toggleExpandedState(e,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodesKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},collapseAll:function(){var e=this;i.each(this._dataAdapter.getExpandedNodesKeys(),function(t,n){e._toggleExpandedState(n,!1)})}});c("dxTreeView",F),e.exports=F},function(e,t,n){var i=n(9),o=n(349),a=n(383).GroupingHelper,s=n(385).GroupingHelper,r=n(90),l=n(359),c=n(14),d=n(53),u=n(16).when,h="dx-datagrid-group-panel",p="dx-group-panel-message",f="dx-group-panel-item",m="dx-datagrid-group-opened",g="dx-datagrid-group-closed",_="dx-datagrid-expand",v="dx-selection-disabled",w="dx-group-row",x=function(){return{init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(e){var t=this._grouping,n=e?e.remoteOperations:this.remoteOperations();n.filtering&&n.sorting&&n.paging&&!n.grouping?(!t||t instanceof s)&&(this._grouping=new a(this)):(!t||t instanceof a)&&(this._grouping=new s(this))},totalItemsCount:function(){var e=this,t=e.callBase();return t>0&&e._dataSource.group()&&e._dataSource.requireTotalCount()?t+e._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase()},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isRowExpanded:function(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(e){return this._collapseExpandAll(e,!1)},expandAll:function(e){return this._collapseExpandAll(e,!0)},_collapseExpandAll:function(e,t){var n,i=this,a=i._dataSource,s=a.group(),r=o.normalizeSortingInfo(s||[]);if(r.length){for(n=0;n<r.length;n++)void 0===e||e===n?r[n].isExpanded=t:s&&s[n]&&(r[n].isExpanded=s[n].isExpanded);a.group(r),i._grouping.foreachGroups(function(n,i){void 0!==e&&e!==i.length-1||(n.isExpanded=t)},!1,!0)}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(e){var t=this,n=t._dataSource;if(n.group())return n.beginLoading(),t._changeRowExpandCore(e).always(function(){n.endLoading()})},_changeRowExpandCore:function(e){return this._grouping.changeRowExpand(e)},_hasGroupLevelsExpandState:function(e,t){if(e&&Array.isArray(e))for(var n=0;n<e.length;n++)if(e[n].isExpanded===t)return!0},_customizeRemoteOperations:function(e){var t=e.remoteOperations;e.storeLoadOptions.group&&(t.grouping&&!e.isCustomLoading&&(t.groupPaging&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0)||(t.paging=!1)),t.grouping||t.sorting&&t.filtering&&!e.isCustomLoading&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1)||(t.paging=!1)),this.callBase.apply(this,arguments)},_handleDataLoading:function(e){return this.callBase(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)},_handleDataLoaded:function(e){return this._grouping.handleDataLoaded(e,this.callBase.bind(this))},_handleDataLoadedCore:function(e){return this._grouping.handleDataLoadedCore(e,this.callBase.bind(this))}}}();l.extend(x);var y=function(){return{init:function(){var e=this;e.callBase(),e.createAction("onRowExpanding"),e.createAction("onRowExpanded"),e.createAction("onRowCollapsing"),e.createAction("onRowCollapsed")},_processItems:function(e,t){var n=this._columnsController.getGroupColumns();return e.length&&n.length&&(e=this._processGroupItems(e,n.length)),this.callBase(e,t)},_processItem:function(e,t){return c.isDefined(e.groupIndex)&&c.isString(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=this.callBase.apply(this,arguments),e},_processGroupItem:function(e){return e},_processGroupItems:function(e,t,n){var i,o,a,s,r=this,l=r._columnsController.getGroupColumns(),c=l[l.length-t];if(n||(i=r.option("scrolling.mode"),n={collectContinuationItems:"virtual"!==i&&"infinite"!==i,resultItems:[],path:[],values:[]}),s=n.resultItems,n.data&&(!n.collectContinuationItems&&n.data.isContinuation||s.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)})),e)if(0===t)s.push.apply(s,e);else for(o=0;o<e.length;o++)a=e[o],a&&"items"in a?(n.data=a,n.path.push(a.key),n.values.push(c&&c.deserializeValue?c.deserializeValue(a.key):a.key),r._processGroupItems(a.items,t-1,n),n.data=void 0,n.path.pop(),n.values.pop()):s.push(a);return s},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())},expandAll:function(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())},changeRowExpand:function(e){var t=this,n=t.isRowExpanded(e),i={key:e,expanded:n};if(t.executeAction(n?"onRowCollapsing":"onRowExpanding",i),!i.cancel)return u(t._changeRowExpandCore(e)).done(function(){i.expanded=!n,t.executeAction(n?"onRowCollapsed":"onRowExpanded",i)})},_changeRowExpandCore:function(e){var t,n=this,o=this._dataSource;if(o)return t=i.Deferred(),u(o.changeRowExpand(e)).done(function(){n.load().done(t.resolve).fail(t.reject)}).fail(t.reject),t},isRowExpanded:function(e){var t=this._dataSource;return t&&t.isRowExpanded(e)},expandRow:function(e){return this.isRowExpanded(e)?i.Deferred().resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):i.Deferred().resolve()},optionChanged:function(e){"grouping"===e.name&&(e.name="dataSource"),this.callBase(e)}}}(),b=function(e,t){var n=this._columnsController;switch(t.itemData.value){case"group":var i=n._dataSource.group()||[];n.columnOption(e.dataField,"groupIndex",i.length);break;case"ungroup":n.columnOption(e.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},C=function(){return{_getToolbarItems:function(){var e=this.callBase();return this._appendGroupingItem(e)},_appendGroupingItem:function(e){var t=this,n=function(e){t._updateGroupPanelContent(e.itemElement.find("."+h))};if(t._isGroupPanelVisible()){var i={html:"
    ",name:"groupPanel",onItemRendered:n,location:"before",locateInMenu:"never",sortIndex:1};e.push(i)}return e},_isGroupPanelVisible:function(){var e,t=this.option("groupPanel");return t&&(e=t.visible,"auto"===e&&(e="desktop"===d.current().deviceType)),e},_renderGroupPanelItems:function(e,t){var n=this;e.empty(),i.each(t,function(t,i){n._createGroupPanelItem(e,i)})},_createGroupPanelItem:function(e,t){return i("<div />").addClass(t.cssClass).addClass(f).data("columnData",t).appendTo(e).text(t.caption)},_columnOptionChanged:function(e){if(!this._requireReady&&!o.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),n=t&&t.find("."+h);n&&n.length&&(this._updateGroupPanelContent(n),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(e){var t=this,n=t.getController("columns").getGroupColumns(),o=t.option("groupPanel");t._renderGroupPanelItems(e,n),o.allowColumnDragging&&!n.length&&i("<div />").addClass(p).text(o.emptyPanelText).appendTo(e)},allowDragging:function(e){var t=this.option("groupPanel");return this._isGroupPanelVisible()&&t.allowColumnDragging&&e&&e.allowGrouping},getColumnElements:function(){var e=this.element();return e&&e.find("."+f)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var e,t=this,n=t.element();return n&&n.find("."+h).length?(e=n.offset(),{top:e.top,bottom:e.top+n.height()}):null},getName:function(){return"group"},getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled"),o=e.targetElement.closest("."+f);if(o.length&&(e.column=o.data("columnData")),i&&e.column){var a=e.column,s=!c.isDefined(a.allowGrouping)||a.allowGrouping;if(s){var r=c.isDefined(a.groupIndex)&&a.groupIndex>-1,l=n.option("grouping.texts"),d=b.bind(n,a);t=[{text:l.ungroup,value:"ungroup",disabled:!r,onItemClick:d},{text:l.ungroupAll,value:"ungroupAll",onItemClick:d}]}}return t},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}();t.GroupingHeaderPanelExtender=C;var k=function(){return{getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled");if(i&&e.row&&"group"===e.row.rowType){var o=n._columnsController,a=o.columnOption("groupIndex:"+e.row.groupIndex);if(a&&a.allowGrouping){var s=n.option("grouping.texts"),r=b.bind(n,a);t=[],t.push({text:s.ungroup,value:"ungroup",onItemClick:r},{text:s.ungroupAll,value:"ungroupAll",onItemClick:r})}}return t},_rowClick:function(e){var t=this,n=t.option("grouping.expandMode"),o=t.option("scrolling.mode"),a="infinite"!==o&&"rowClick"===n&&i(e.jQueryEvent.target).closest("."+w).length,s=i(e.jQueryEvent.target).closest("."+_).length;(a||s)&&t._changeGroupRowState(e),t.callBase(e)},_changeGroupRowState:function(e){var t=this.getController("data"),n=t.items()[e.rowIndex];"detail"!==n.rowType&&(t.changeRowExpand(n.key),e.jQueryEvent.preventDefault(),e.handled=!0)},_getCellTemplate:function(e){var t=this;return"expand"===e.column.command?{allowRenderToDetachedContainer:!0,render:function(e,n){!c.isDefined(n.value)||n.data&&n.data.isContinuation||n.row.inserted||(e.addClass(_).addClass(v),i("
    ").addClass(n.value?m:g).appendTo(e), t.setAria("label",n.value?t.localize("dxDataGrid-ariaCollapse"):t.localize("dxDataGrid-ariaExpand"),e))}}:t.callBase(e)}}}(),I=function(){return{getContextMenuItems:function(e){var t=this,n=t.option("grouping.contextMenuEnabled"),i=t.callBase(e);if(n&&e.row&&"header"===e.row.rowType){var o=e.column;if(!o.command&&(!c.isDefined(o.allowGrouping)||o.allowGrouping)){var a=t.option("grouping.texts"),s=c.isDefined(o.groupIndex)&&o.groupIndex>-1,r=b.bind(t,o);i=i||[],i.push({text:a.groupByThisColumn,value:"group",beginGroup:!0,disabled:s,onItemClick:r}),o.showWhenGrouped&&i.push({text:a.ungroup,value:"ungroup",disabled:!s,onItemClick:r}),i.push({text:a.ungroupAll,value:"ungroupAll",onItemClick:r})}}return i}}}();o.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:r.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:r.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:r.format("dxDataGrid-groupHeaderText"),ungroup:r.format("dxDataGrid-ungroupHeaderText"),ungroupAll:r.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:r.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:y},views:{headerPanel:C,rowsView:k,columnHeadersView:I}}})},function(e,t,n){var i=n(9),o=n(50).toComparable,a=n(138),s=n(11).extend,r=n(157),l=n(349),c=l.normalizeSortingInfo,d=n(384),u=d.createGroupFilter,h=d.createOffsetFilter,p=n(160),f=n(16).when,m=function(e,t){var n=i.Deferred(),o=s({skip:0,take:1,requireTotalCount:!0},t);return e.load(o).done(function(e,t){n.resolve(t&&t.totalCount)}).fail(n.reject.bind(n)),n};t.GroupingHelper=d.GroupingHelper.inherit(function(){var e=function(e,t,n){return e.foreachGroups(function(e){if(!e.isExpanded)return t(e)},!1,!1,n,!0)},t=function(t,n){var i=0,o=n||0;return n&&(e(t,function(e){return!(e.offset-i>=n)&&void(i+=e.count-1)}),o+=i),o},n=function(e,t,i,o,a,s){var r,l,c,d=0,u=!1;for(r=0;r<t.length;r++){if(l=t[r],void 0!==l.items){i.push(l.key);var h=e.findGroupInfo(i);h&&!h.isExpanded?(l.collapsedItems=l.items,l.items=null,o+=h.count,s--,s<0&&d++,a&&(u=!0)):l.items&&(c=n(e,l.items,i,o,a,s),a&&(c.offset-o>1?l.isContinuation=!0:u=!0),o=c.offset,s=c.take,s<0&&(l.items.length?l.isContinuationOnNextPage=!0:d++)),i.pop()}else a&&(u=!0),o++,s--,s<0&&d++;a=!1}return u&&t.splice(0,1),d&&t.splice(-d,d),{offset:o,take:s}},d=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!a.keysEqual(null,e[n],t[n]))return!1;return!0},g=function(e,t,n,i,o){var a,s;if(t){for(a=0;a<t.length;a++)if(s=t[a],"key"in s&&void 0!==s.items){n.push(s.key),o&&d(o.path,n)&&!s.isContinuation&&(o.offset=i);var r=e.findGroupInfo(n);r&&!s.isContinuation&&(r.offset=i),r&&!r.isExpanded?i+=r.count:i=g(e,s.items,n,i,o),n.pop()}else i++;return i}},_=function(e,t){var n,i;t.group&&(n=c(t.group),i=c(e.sort),e.sort=r.arrangeSortingInfo(n,i),delete t.group)},v=function(e,t,n){var i,o,a,s=c(n||t.group),r=[];for(i=0;i<e.length;i++){for(a=[],o=0;o<=i;o++)a.push([s[o].selector,i===o?"<>":"=",e[o]]);r.push(l.combineFilters(a))}return r=l.combineFilters(r,"or"),l.combineFilters([r,t.filter])},w=function(e,t){var n,i=e.count||e.items.length;if(!e.count&&t>1)for(i=0,n=0;n<e.items.length;n++)i+=w(e.items[n],t-1);return i};return{handleDataLoading:function(n){var o,a,r=this,l=n.storeLoadOptions,c=[],d=0,u=!1,h=n.loadOptions.group,p=0;_(l,n.loadOptions),n.group=n.group||h,n.isCustomLoading||(o=s({},l),o.skip=t(r,l.skip),o.skip&&o.take&&h&&(o.skip--,o.take++,u=!0),o.take&&h&&(a=o.take,o.take++),e(r,function(e){return!(e.offset>=o.skip+o.take+p)&&void(e.offset>=o.skip+p&&e.count&&(p+=e.count-1,c.push(e),d+=e.count))}),i.each(c,function(){o.filter=v(this.path,o,h)}),n.storeLoadOptions=o,n.collapsedGroups=c,n.collapsedItemsCount=d,n.skip=o.skip||0,n.skipFirstItem=u,n.take=a)},handleDataLoaded:function(e,t){function i(e,t,n,a,s){if(e&&t.length&&n.length){var r,l,c=o(t[0],!0);for(r=0;r<e.length&&(l=o(e[r].key,!0),!(s>=a.offset||c===l));r++)s+=w(e[r],n.length);e.length&&c===l||e.splice(r,0,{key:t[0],items:[],count:1===t.length?a.count:void 0}),i(e[r].items,t.slice(1),n.slice(1),a,s)}}var a,s,l=this,d=e.data,u=e.collapsedGroups,h=c(e.group),f=h.length;if(t(e),f){if(s=p(d),r.multiLevelGroup(s,h).enumerate().done(function(e){d=e}),u)for(a=0;a<u.length;a++)i(d,u[a].path,h,u[a],e.skip);e.isCustomLoading||(n(l,d,[],e.skip,e.skipFirstItem,e.take),l.updateItemsCount(d,f)),e.data=d,e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra.totalCount+=e.collapsedItemsCount)}},updateTotalItemsCount:function(){var t=0;e(this,function(e){e.count&&(t-=e.count-1)}),this.callBase(t)},changeRowExpand:function(e){var n,o=this,a=o._dataSource,s=a.beginPageIndex?a.beginPageIndex():a.pageIndex(),r=a.items(),l=t(o,s*a.pageSize()),c=o.findGroupInfo(e);return n=c&&!c.isExpanded?i.Deferred().resolve(c.count):m(a,{filter:u(e,{filter:a.filter(),group:a.group()})}),f(n).done(function(t){t=parseInt(t.length?t[0]:t),c?(g(o,r,[],l),c.isExpanded=!c.isExpanded,c.count=t):(c={offset:-1,count:t,path:e,isExpanded:!1},g(o,r,[],l,c),c.offset>=0&&o.addGroupInfo(c)),o.updateTotalItemsCount()}).fail(function(){a.fireEvent("loadError",arguments)})},allowCollapseAll:function(){return!1},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,s=o._dataSource;if(this.callBase.apply(this,arguments),n||i.reload)return e(o,function(e){var t=m(s,{filter:u(e.path,a)}),n=m(s,{filter:h(e.path,a)});return f(n,t).done(function(t,n){t=parseInt(t.length?t[0]:t),n=parseInt(n.length?n[0]:n),e.offset=t,e.count!==n&&(e.count=n,o.updateTotalItemsCount())})},!0)}}}())},function(e,t,n){var i=n(9),o=n(25),a=n(349),s=n(138).normalizeSortingInfo,r=n(16).when;t.createGroupFilter=function(e,t){var n,i=s(t.group),o=[];for(n=0;n<e.length;n++)o.push([i[n].selector,"=",e[n]]);return t.filter&&o.push(t.filter),a.combineFilters(o)},t.createOffsetFilter=function(e,t){var n,i,o,r,l=s(t.group),c=[];for(n=0;n<e.length;n++){for(o=[],i=0;i<=n;i++)r=l[i].selector,n!==i||null!==e[i]&&e[i]!==!1&&e[i]!==!0?o.push([r,n===i?l[i].desc?">":"<":"=",e[i]]):e[i]===!1?o.push([r,"=",!!l[i].desc||null]):(e[i]?!l[i].desc:l[i].desc)?o.push([r,"<>",e[i]]):(o.push([r,"<>",null]),o.push([r,"=",null]));c.push(a.combineFilters(o))}return c=a.combineFilters(c,"or"),a.combineFilters([c,t.filter])},t.GroupingHelper=o.inherit(function(){var e=function(e,t){var n=e.hash;return n&&n[t]},t=function(e,t){var n,i=0,o=e.length-1;if(!e.length)return 0;do{var a=o+i>>1;e[a].offset>t?o=a:i=a}while(o-i>1);for(n=i;n<=o&&!(e[n].offset>t);n++);return n},n=function(e,t){var n,i;for(t=t||[],i=0;i<e.length;i++)if(n=e[i],n.data&&n.data.offset!==n.offset){n.offset=n.data.offset;for(var o=0;o<t.length;o++)t[o].offset=n.offset}e.sort(function(e,t){return e.offset-t.offset})},o=function(e,t,n){var i;for(i=0;i<e.length;i++)t+1>=n?e[i].children=[]:o(e[i].children,t+1,n)};return{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0,this._itemsCount=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},_isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function(){return this._itemsCount},updateItemsCount:function(e,t){function n(e,t,i){var o,a=0;if(t)if(i)for(o=0;o<t.length;o++)e._isGroupItemCountable(t[o])&&a++,a+=n(e,t[o].items,i-1);else a=t.length;return a}this._itemsCount=n(this,e,t)},foreachGroups:function(e,t,o,a,s){function l(e,t,c,d){function u(e,t,n,i){var o=t&&e(t,n);return o&&i.push(o),o}var h,p,f=[];for(h=0;h<e.length;h++){if(d.push(e[h].data),!c&&u(t,e[h].data,d,f)===!1)return!1;if((!e[h].data||e[h].data.isExpanded||o)&&(p=l(e[h].children,t,c,d),p&&f.push(p),p===!1))return!1;if(c&&u(t,e[h].data,d,f)===!1)return!1;e[h].data&&e[h].data.offset===e[h].offset||(a=!0),d.pop()}var m=s&&d.slice(0);return a&&r.apply(i,f).always(function(){n(e,m)})}var c=this;return l(c._groupsInfo,e,t,[])},findGroupInfo:function(t){var n,i,o=this,a=o._groupsInfo;for(n=0;a&&n<t.length;n++)i=e(a,t[n]),a=i&&i.children;return i&&i.data},addGroupInfo:function(i){var o,a,s,r=this,l=i.path,c=r._groupsInfo;for(s=0;s<l.length;s++)a=e(c,l[s]),a||(a={key:l[s],offset:i.offset,data:{offset:i.offset,isExpanded:!0,path:l.slice(0,s+1)},children:[]},o=t(c,i.offset),c.splice(o,0,a),c.hash=c.hash||{},c.hash[a.key]=a),s===l.length-1&&(a.data=i,a.offset!==i.offset&&n(c)),c=a.children},allowCollapseAll:function(){return!0},refresh:function(e){var t,n=this,i=e.storeLoadOptions,a=s(n._group||[]),r=s(i.group||[]),l=Math.min(a.length,r.length);for(n._group=i.group,t=0;t<l;t++)if(a[t].selector!==r[t].selector){l=t;break}l?o(n._groupsInfo,0,l):n.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,t){t(e)},handleDataLoadedCore:function(e,t){t(e)}}}())},function(e,t,n){var i=n(9),o=n(11).extend,a=n(349),s=a.normalizeSortingInfo,r=n(384),l=r.createGroupFilter,c=r.createOffsetFilter,d=n(22),u=n(156).errors,h=n(16).when;t.GroupingHelper=r.GroupingHelper.inherit(function(){function e(e,t,n,i){var o=t.items[i],a=e.skips&&e.skips[n],s=e.takes&&e.takes[n],r=i===t.items.length-1,l=0===i,c=l&&a||0,d=o.count>s+c;l&&void 0!==a&&(o.isContinuation=!0),r&&void 0!==s&&d&&(o.isContinuationOnNextPage=!0)}function t(e,t,n){var i=n-1,o=e.group?e.group.length:0;t.skip=e.skips&&e.skips[i],e.takes&&void 0!==e.takes[i]&&(o===n?t.take=t.count?t.count-(t.skip||0):0:t.take=0,t.take+=e.takes[i])}function n(e){return!Array.isArray(e)}function r(e){n(e.data)||(e.data=i.Deferred())}function p(e,i,o,a,s,l){if(!i.isCustomLoading){a={};var c=o+s;_(e,l,c,a,[]),t(i,a,c)}var d=i.group?i.group.length:0;a.paths.length&&d-o-s>0?(r(i),f(e,i,a,o,s,l)):a.paths.length&&i.storeLoadOptions.group?(r(i),m(e,i,a,l)):n(i.data)&&i.data.resolve(l)}function f(t,n,o,a,s,r){var c=n.group||[],d=c[s+1],u=[];i.each(o.paths,function(i){var a={requireTotalCount:!1,requireGroupCount:!0,group:[d],groupSummary:n.storeLoadOptions.groupSummary,filter:l(o.paths[i],{filter:n.storeLoadOptions.filter,group:c})};0===i&&(a.skip=o.skip||0),i===o.paths.length-1&&(a.take=o.take);var r=0===a.take?[]:t._dataSource.loadFromStore(a);h(r).done(function(t){var a=o.items[i];e(n,o,s,i),a.items=t}),u.push(r)}),h.apply(null,u).done(function(){w(t,n,r,c.length),p(t,n,a,o,s+1,r)})}function m(t,n,r,c){var d=[],u=n.group||[];i.each(r.paths,function(e,t){d.push(l(t,{group:n.isCustomLoading?n.storeLoadOptions.group:u}))});var p=n.storeLoadOptions.filter;n.storeLoadOptions.isLoadingAll||(p=a.combineFilters([p,a.combineFilters(d,"or")]));var f=o({},n.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:u.concat(s(n.storeLoadOptions.sort||[])),filter:p});f.skip=r.skip,f.take=r.take,h(0===r.take?[]:t._dataSource.loadFromStore(f)).done(function(t,o){i.each(r.items,function(i,o){var a=o.count-(0===i&&f.skip||0),s=t.splice(0,a);e(n,r,u.length-1,i),o.items=s}),n.data.resolve(c)}).fail(n.data.reject)}var g=function(e,t,n){return e.foreachGroups(function(e,n){if(e.isExpanded)return t(e,n)},!0,!1,n,n)},_=function(e,t,n,i,o,a,s){var r,l,c,d;if(i.items=i.items||[],i.paths=i.paths||[],i.count=i.count||0,i.lastCount=i.lastCount||0,n)for(r=0;r<t.length;r++)l=t[r],void 0!==l.items&&(o.push(l.key),a?d=!0:(c=e.findGroupInfo(o),d=c&&c.isExpanded),d?l.items?_(e,l.items,n-1,i,o,a,s):1!==n||!l.count||a&&!s||(i.items.push(l),i.paths.push(o.slice(0)),i.count+=i.lastCount,i.lastCount=l.count):(l.collapsedItems=l.items,l.items=null),o.pop())},v=function(e,t,n,i,o){var a,s=e.findGroupInfo(i);s?(n?s.count=t.count>0?t.count:t.items&&t.items.length||0:t.count=s.count||t.count,s.offset=o):(n&&(a=t.count>0?t.count:t.items.length),e.addGroupInfo({isExpanded:e._isGroupExpanded(i.length-1),path:i.slice(0),offset:o,count:a||0}))},w=function(e,t,n,i,o,a){var s,r,l,c=t.group?t.group.length:0,d=c===i,u=t.remoteOperations.paging,h=0,p=0;if(o=o||0,a=a||[],u&&(h=0===o?t.skip||0:t.skips[o-1]||0),o>=i)return n.length;for(l=0;l<n.length;l++)if(s=n[l]){if(a.push(s.key),!s.count&&!s.items||void 0===s.items)return-1;if(v(e,s,d,a,h+l),r=s.items?w(e,t,s.items,i,o+1,a):s.count||-1,r<0)return-1;p+=r,a.pop()}return p},x=function(e,t){return e&&e.length&&e[t]&&!!e[t].isExpanded},y=function(e,t,n){var i,o,a=n;for(i=0;i<e.length;i++)o=e[i].offset+1,i>0&&(o+=e[i-1].childrenTotalCount,t&&(o+=b(a,t,o,i-1)*i)),a+=o;return a},b=function(e,t,n,i){if(i=i||0,t>1&&n>0){var o=e-Math.floor(e/t)*t||t;return o+=n-i-2,o<0&&(o+=t),Math.floor(o/(t-i-1))}return 0},C=function(e,t){var n=i.Deferred(),a=!(!t.group||!t.group.length),s=o({skip:0,take:1,requireGroupCount:a,requireTotalCount:!a},t,{group:a?t.group:null});return e.load(s).done(function(e,t){var i=t&&(a?t.groupCount:t.totalCount);if(!isFinite(i))throw u.Error(a?"E4022":"E4021");n.resolve(i)}).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(e){var t=0,n=e.extra&&e.extra.totalCount||0,i=e.extra&&e.extra.groupCount||0,o=this._dataSource.pageSize(),a=this._isVirtualPaging();g(this,function(e){e.childrenTotalCount=0}),g(this,function(e,n){var i=y(n,a?0:o,t),s=e.count+e.childrenTotalCount;a||(s+=b(i,o,s,n.length-1)),n[n.length-2]?n[n.length-2].childrenTotalCount+=s:t+=s}),this.callBase(t-n+i)},_isGroupExpanded:function(e){var t=this._dataSource.group();return x(t,e)},_updatePagingOptions:function(e){var t=this,n=t._isVirtualPaging(),i=t._dataSource.pageSize(),o=[],a=[],s=0,r=0;e.take&&(g(this,function(e){e.childrenTotalCount=0,e.skipChildrenTotalCount=0}),g(t,function(t,l){var c,d,u=0,h=0,p=y(l,n?0:i,r),f=0,m=0,g=t.count+t.childrenTotalCount,_=g;c=e.skip-p,p<=e.skip+e.take&&g&&(d=e.take,n||(f=b(p,i,g,l.length-1),g+=f*l.length,_+=f,i&&c>=0&&(u=l.length,h=l.length-1,m=Math.floor(c/i))),c>=0?(p+g>e.skip&&o.unshift(c-m*u-t.skipChildrenTotalCount),p+g>=e.skip+d&&a.unshift(d-u-t.childrenTotalCount+t.skipChildrenTotalCount)):p+g>=e.skip+d&&a.unshift(d+c-t.childrenTotalCount)),p<=e.skip&&(l[l.length-2]?l[l.length-2].skipChildrenTotalCount+=Math.min(_,c+1-m*h):s+=Math.min(_,c+1)),p<=e.skip+d&&(g=Math.min(_,c+d-(m+1)*h),l[l.length-2]?l[l.length-2].childrenTotalCount+=g:r+=g)}),e.skip-=s,e.take-=r-s),e.skips=o,e.takes=a},changeRowExpand:function(e){var t=this,n=t.findGroupInfo(e),o=t._dataSource,a=o.remoteOperations().groupPaging,r=s(o.group());return n?(n.isExpanded=!n.isExpanded,a&&n.isExpanded&&e.length<r.length?C(o,{filter:l(e,{filter:o.filter(),group:o.group()}),group:r.slice(e.length)}).done(function(e){n.count=e}):i.Deferred().resolve()):i.Deferred().reject()},handleDataLoading:function(e){var t=this,n=e.storeLoadOptions,i=s(n.group||e.loadOptions.group);if(!e.isCustomLoading&&i.length){if(e.remoteOperations.grouping){var o=t._dataSource.remoteOperations().paging;n.group=s(n.group),n.group.forEach(function(e,t){var i=t===n.group.length-1;e.isExpanded=!o||!i})}e.group=e.group||i,e.remoteOperations.paging?(e.skip=n.skip,e.take=n.take,n.requireGroupCount=!0,n.group=i.slice(0,1),t._updatePagingOptions(e),n.skip=e.skip,n.take=e.take):t.foreachGroups(function(e){e.count=0})}},handleDataLoadedCore:function(e,t){var n,i=this,o=s(e.storeLoadOptions.group||e.loadOptions.group).length,a=e.group?e.group.length:0,r={};if(e.isCustomLoading)t(e),_(i,e.data,o,r,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if(n=w(i,e,e.data,o),n<0)throw d.Error("E1037");if(e.remoteOperations.paging||o&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=n,e.extra.groupCount=e.data.length),a&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))throw u.Error("E4022");i.updateTotalItemsCount(e),e.remoteOperations.paging||i._updatePagingOptions(e),t(e),e.remoteOperations.paging||i._processPaging(e,o)}p(i,e,o,r,0,e.data),e.isCustomLoading||h(e.data).done(function(e){i.updateItemsCount(e,a)})},_processSkips:function(e,t,n){if(n){var i=e[0],o=t[0],a=i&&i.items;void 0!==o&&(i.isContinuation=!0,a&&(i.items=a.slice(o),this._processSkips(i.items,t.slice(1),n-1)))}},_processTakes:function(e,t,n,i){if(i&&e){var o=e[e.length-1],a=o&&o.items,s=n[0],r=t[0];if(o){var l=o.count-(o.isContinuation&&r||0)||a.length;void 0!==s&&l>s&&(o.isContinuationOnNextPage=!0,a&&(a=a.slice(0,s),o.items=a)),this._processTakes(a,t.slice(1),n.slice(1),i-1)}}},_processPaging:function(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)},refresh:function(e,t,n){function i(e,t){t.length===a+1&&(e.isExpanded=o)}var o,a,r=this,d=r._dataSource,u=e.storeLoadOptions,p=e.group||e.storeLoadOptions.group,f=s(r._group);for(a=0;a<f.length;a++)o=x(p,a),x(r._group,a)!==o&&r.foreachGroups(i);if(r.callBase.apply(this,arguments),p&&e.remoteOperations.paging&&(t||n.reload))return g(r,function(t){var n=C(d,{filter:l(t.path,{filter:u.filter,group:p}),group:p.slice(t.path.length)}),i=C(d,{filter:c(t.path,{filter:u.filter,group:p}),group:p.slice(t.path.length-1,1)});return h(i,n).done(function(n,i){n=parseInt(n.length?n[0]:n),i=parseInt(i.length?i[0]:i),t.offset=n,t.count!==i&&(t.count=i,r.updateTotalItemsCount(e))})},!0)}}}())},function(e,t,n){var i=n(349),o=n(387);i.registerModule("masterDetail",o)},function(e,t,n){var i=n(9),o=n(350),a=n(14),s="dx-master-detail-cell",r="dx-master-detail-row",l="dx-cell-focus-disabled",c="dx-row-lines";e.exports={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({}),e}},data:function(){var e=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")};return{init:function(){var t=this;e(t),t.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,n=o.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(n>=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n=this;if(Array.isArray(e))return n.callBase.apply(n,arguments);if(t=o.getIndexByKey(e,n._expandedItems),t>=0){var i=n._expandedItems[t].visible;n._expandedItems[t].visible=!i}else n._expandedItems.push({key:e,visible:!0});n.updateItems({changeType:"update",rowIndices:n._getRowIndicesForExpand(e)})},_processDataItem:function(e,t){var n=this,o=n.callBase.apply(n,arguments);return o.isExpanded=n.isRowExpanded(o.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,i.each(t.visibleColumns,function(e,n){if("expand"===n.command&&!a.isDefined(n.groupIndex))return t.detailColumnIndex=e,!1})),t.detailColumnIndex>=0&&(o.values[t.detailColumnIndex]=o.isExpanded),o},_processItems:function(e,t){var n,s=this,r=[];return e=s.callBase.apply(s,arguments),"loadingAll"===t?e:("refresh"===t&&(s._expandedItems=a.grep(s._expandedItems,function(e){return e.visible})),i.each(e,function(e,t){r.push(t),n=o.getIndexByKey(t.key,s._expandedItems),"data"===t.rowType&&(t.isExpanded||n>=0)&&!t.inserted&&r.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})}),r)},optionChanged:function(t){var n,i,o,a,s=this;if("masterDetail"===t.name){switch(t.name="dataSource",t.fullName){case"masterDetail":n=t.value||{},i=t.previousValue||{},o=n.enabled!==i.enabled,a=n.autoExpandAll!==i.autoExpandAll;break;case"masterDetail.enabled":o=!0;break;case"masterDetail.autoExpandAll":a=!0}(o||a)&&e(s)}s.callBase(t)}}}()},views:{rowsView:function(){return{_getCellTemplate:function(e){var t,n=this,i=e.column,o=n.getController("editing"),a=o&&o.isEditRow(e.rowIndex);return t="detail"!==i.command||a?n.callBase.apply(n,arguments):n.option("masterDetail.template")||n._getDefaultTemplate(i)},_cellPrepared:function(e,t){var n=this,o=n.component;n.callBase.apply(n,arguments),n._isFixedColumns&&"detail"===t.rowType&&"detail"===t.column.command&&e.find("."+n.getWidgetContainerClass()).each(function(){var e=i(this).parent().data("dxDataGrid");e&&e.on("contentReady",function(){var e=o.getRowElement(t.rowIndex);e&&2===e.length&&e.eq(0).height()!==e.eq(1).height()&&o.updateDimensions()})})},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase(e);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass(c),t.addClass(r),a.isDefined(e.visible)&&t.toggle(e.visible)),t},_getGroupCellOptions:function(e){var t=e.row,n=this._columnsController.getGroupColumns(),i=n.length+e.columnsCountBeforeGroups,o=i+Number(this.option("masterDetail.enabled"));return t&&this._isDetailRow(t)?{columnIndex:i,emptyCellsCount:o,colspan:e.columns.length-o}:this.callBase(e)},_renderCells:function(e,t){var n,i,o,a=t.row;if(a.rowType&&this._isDetailRow(a)){for(i=this._getGroupCellOptions(t),o=0;o<i.emptyCellsCount;o++)this._renderCell(e,{value:null,row:a,rowIndex:a.rowIndex,column:t.columns[o]});n=this._renderCell(e,{value:null,row:a,rowIndex:a.rowIndex,column:{command:"detail"},columnIndex:i.columnIndex}),n.addClass(l).addClass(s).attr("colspan",i.colspan)}else this.callBase.apply(this,arguments)}}}()}}}},function(e,t,n){n(389);var i=n(349),o=n(391);i.registerModule("editing",o)},function(e,t,n){var i=n(349),o=n(390);i.registerModule("editorFactory",o)},function(e,t,n){var i=n(9),o=n(14),a=n(28).isWrapped,s=n(50).compileGetter,r=n(351),l=n(23),c=n(11).extend,d=n(53),u=n(71),h=n(72),p=n(76),f=n(166),m=n(77),g=n(154).normalizeDataSourceOptions,_=n(17).compare,v=h.addNamespace;n(212),n(264),n(249),n(318),n(268);var w="checkbox-size",x="focus-overlay",y="content",b="dx-cell-focus-disabled",C="dx-editor-inline-block",k="dxDataGridEditorFactory",I=v([m.down,"focusin",p.name].join(" "),k),S="dx-focused",D="dx-pointer-events-target",T="dx-pointer-events-none",E="td[tabindex]:focus, input:focus, textarea:focus, .dx-lookup-field:focus",A="dx-hidden",B=9,M=r.ViewController.inherit(function(){var e=function(e,t){return c(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},t=function(){return l.msie&&parseInt(l.version)<=11||d.real().ios},n=function(n){var i=!1,a={},s=t(),r=n.sharedData||a;return e({placeholder:n.placeholder,width:n.width,value:n.value,onValueChanged:function(e){var t=function(e,t){i=!1,n&&n.setValue(e.value,t)};window.clearTimeout(a.valueChangeTimeout),e.jQueryEvent&&"keyup"===e.jQueryEvent.type&&!n.updateValueImmediately?"filterRow"===n.parentType||"searchPanel"===n.parentType?r.valueChangeTimeout=a.valueChangeTimeout=window.setTimeout(function(){t(e,a.valueChangeTimeout!==r.valueChangeTimeout)},o.isDefined(n.updateValueTimeout)?n.updateValueTimeout:0):i=!0:t(e)},onFocusOut:function(e){s&&i&&(i=!1,n.setValue(e.component.option("value")))},onKeyDown:function(e){s&&i&&13===e.jQueryEvent.keyCode&&(i=!1,n.setValue(e.component.option("value")))},valueChangeEvent:"change"+("filterRow"===n.parentType||s?" keyup":"")},n)},r=function(n){n.editorName="dxDateBox",n.editorOptions=e({value:n.value,onValueChanged:function(e){n.setValue(e.value)},onKeyDown:function(e){t()&&13===e.jQueryEvent.keyCode&&(e.component.blur(),e.component.focus())},displayFormat:n.format,formatWidthCalculator:null,width:"auto"},n)},M=function(e){var t=n(e),i="searchPanel"===e.parentType,a=function(e){return o.isDefined(e)?e.toString():""};t.value=a(e.value),t.valueChangeEvent+=i?" keyup search":"",t.mode=i?"search":"text",e.editorName="dxTextBox",e.editorOptions=t},R=function(e){var t=n(e);t.value=o.isDefined(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t},O=function(e){"filterRow"===e.parentType?P(c(e,{lookup:{displayExpr:function(t){return t===!0?e.trueText||"true":t===!1?e.falseText||"false":void 0},dataSource:[!0,!1]}})):V(e)},P=function(t){var n,i,r,l=t.lookup,c="filterRow"===t.parentType;if(l){n=s(l.displayExpr),i=l.dataSource,o.isFunction(i)&&!a(i)&&(i=i(t.row||{})),(o.isObject(i)||Array.isArray(i))&&(i=g(i),c&&(r=i.postProcess,i.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0),e.unshift(null)),r?r.call(this,e):e}));var d=Boolean(l.allowClearing&&!c);t.editorName="dxSelectBox",t.editorOptions=e({searchEnabled:!0,value:t.value,valueExpr:t.lookup.valueExpr,searchExpr:t.lookup.searchExpr||t.lookup.displayExpr,allowClearing:d,showClearButton:d,displayExpr:function(e){return null===e?t.showAllText:n(e)},dataSource:i,onValueChanged:function(e){var n=[e.value];!c&&n.push(e.component.option("text")),t.setValue.apply(this,n)}},t)}},V=function(t){t.editorName="dxCheckBox",t.editorOptions=e({value:o.isDefined(t.value)?t.value:void 0,hoverStateEnabled:!t.readOnly,focusStateEnabled:!t.readOnly,activeStateEnabled:!1,onValueChanged:function(e){t.setValue&&t.setValue(e.value,e)}},t)},F=function(e,t){t.editorName&&t.editorOptions&&t.editorElement[t.editorName]&&("dxCheckBox"===t.editorName&&(t.isOnForm||(t.editorElement.addClass(e.addWidgetPrefix(w)),t.editorElement.parent().addClass(C)),(t.command||t.editorOptions.readOnly)&&t.editorElement.parent().addClass(b)),e._createComponent(t.editorElement,t.editorName,t.editorOptions),"dxTextBox"===t.editorName&&t.editorElement.dxTextBox("instance").registerKeyHandler("enter",o.noop))};return{_getFocusedElement:function(e){return e.find(E)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.element();return i&&(n=this._getFocusedElement(i),n.length&&(n.hasClass(b)||(e=n.closest(this._getFocusCellSelector()+", ."+b),t=e.get(0)!==n.get(0)&&e.hasClass(C),n=e),n.length&&!n.hasClass(b)))?void this.focus(n,t):void this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.jQueryEvent&&i(e.jQueryEvent.target).hasClass(t.addWidgetPrefix(x));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})},_updateFocusOverlaySize:function(e,t){var n=u.calculate(e,c({collision:"fit"},t));n.h.oversize>0&&e.outerWidth(e.outerWidth()-n.h.oversize),n.v.oversize>0&&e.outerHeight(e.outerHeight()-n.v.oversize)},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;return void 0===e?n._$focusedElement:void(e&&(n._focusTimeoutID=setTimeout(function(){delete n._focusTimeoutID;var o,a=n._$focusOverlay=n._$focusOverlay||i("
    ").addClass(n.addWidgetPrefix(x)+" "+D);if(t)n._$focusOverlay&&n._$focusOverlay.addClass(A);else{var s=l.msie?"left bottom":l.mozilla?"right bottom":"left top",r=e.closest("."+n.addWidgetPrefix(y));a.removeClass(A).appendTo(r).outerWidth(e.outerWidth()+1).outerHeight(e.outerHeight()+1),o={precise:_(i.fn.jquery,[3])>=0,my:s,at:s,of:e,boundary:r.length&&r},n._updateFocusOverlaySize(a,o),u.setup(a,o),a.css("visibility","visible")}n._$focusedElement&&n._$focusedElement.removeClass(S),e.addClass(S),n._$focusedElement=e,n.focused.fire(e)})))},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(S),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(A)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),i(document).on(I,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.element(),n=l.msie&&parseInt(l.version)<11;t&&(t.on(v("keydown",k),function(t){t.which===B&&e._updateFocusHandler(t)}),n&&t.on([m.down,m.move,m.up,p.name,f.name].join(" "),"."+D,e._focusOverlayEventProxy.bind(e)))},_focusOverlayEventProxy:function(e){var t,n=i(e.target),o=i(e.currentTarget),a=n.hasClass(D)||n.hasClass(T);a&&!o.hasClass(A)&&(o.addClass(A),t=n.get(0).ownerDocument.elementFromPoint(e.clientX,e.clientY),h.fireEvent({originalEvent:e,target:t}),e.stopPropagation(),o.removeClass(A),e.type===p.name&&"INPUT"===t.tagName&&i(t).focus())},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),i(document).off(I,this._updateFocusHandler)},createEditor:function(e,t){if(t.cancel=!1,t.editorElement=e,o.isDefined(t.tabIndex)||(t.tabIndex=this.option("tabIndex")),t.lookup)P(t);else switch(t.dataType){case"date":r(t);break;case"boolean":O(t);break;case"number":R(t);break;default:M(t)}this.executeAction("onEditorPreparing",t),t.cancel||(F(this,t),this.executeAction("onEditorPrepared",t))}}}());e.exports={defaultOptions:function(){return{}},controllers:{editorFactory:M},extenders:{controllers:{columnsResizer:{_startResizing:function(e){this.callBase(e),this.isResizing()&&this.getController("editorFactory").loseFocus()}}}}}},function(e,t,n){var i=n(9),o=n(152),a=n(14),s=n(12),r=n(27).deepExtendArraySafe,l=n(11).extend,c=n(351),d=n(76),u=n(350),h=u.getIndexByKey,p=n(72),f=p.addNamespace,m=n(200),g=n(90),_=n(202),v=n(201),w=n(22),x=n(53),y=n(286),b=n(165),C=n(16).when,k="edit-form",I="edit-form-item",S="focus-overlay",D="readonly",T="edit-popup",E="form-buttons-container",A="addrow-button",B="dx-link",M="dx-editor-cell",R="dx-selection",O="dx-edit-row",P="dx-edit-button",V="dx-button",F="__DX_INSERT_INDEX__",H="dx-row",L="dx-row-removed",z="dx-row-inserted",N="dx-row-modified",W="dx-cell-modified",$="dx-highlight-outline",q="dxDataGridEditing",G="dx-data-row",j="dx-cell-focus-disabled",K="input:not([type='hidden'])",U="[tabindex], "+K,Q="batch",Y="row",Z="cell",X="form",J="popup",ee="insert",te="update",ne="remove",ie="dx-pointer-events-none",oe="dx-pointer-events-target",ae=[Q,Y,Z,X,J],se=[Y,X,J],re=[Q,Z],le=[Y,X],ce=function(e){var t=e.option("editing.mode");return ae.indexOf(t)!==-1?t:Y},de=function(e){var t=ce(e);return se.indexOf(t)!==-1},ue=c.ViewController.inherit(function(){var e=function(e){return function(t,n){var o=i("<div/>").appendTo(t);e.getController("editorFactory").createEditor(o,l({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id,updateValueImmediately:de(e)}))}};return{init:function(){var e=this;e._editRowIndex=-1,e._editData=[],e._editColumnIndex=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._dataChangedHandler||(e._dataChangedHandler=e._handleDataChanged.bind(e),e._dataController.changed.add(e._dataChangedHandler)),e._saveEditorHandler||(e.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),e.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),e._saveEditorHandler=e.createAction(function(t){var n,o,a,s,r,l,c=t.jQueryEvent;de(e)||e._editCellInProgress||(l=i(c.target),n=l.closest(".dx-dropdowneditor-overlay").length,o=l.closest(document).length,s=l.closest("."+e.addWidgetPrefix(A)).length,a=l.hasClass(e.addWidgetPrefix(S)),r=ce(e)===Z,n||a||s&&r&&e.isEditing()||!o||e._closeEditItem.bind(e)(l))}),i(document).on(d.name,e._saveEditorHandler)), e._updateEditColumn(),e._updateEditButtons()},_closeEditItem:function(e){var t=e.closest("."+G).length,n=e.closest("."+H+"> td"),i=n[0]&&n[0].cellIndex,o=this.getView("rowsView").getRowIndex(n.parent()),a=this._columnsController.getVisibleColumns(),s=a[i]&&a[i].allowEditing;!this.isEditing()||t&&(!t||s||this.isEditCell(o,i))||this.closeEditCell()},_handleDataChanged:function(e){"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===e.changeType&&i.each(this._editData,function(t,n){n.rowIndex+=e.items.length,n.type===ee&&(n.key.rowIndex+=e.items.length,n.key.dataRowIndex+=e.items.filter(function(e){return"data"===e.rowType}).length)})},isRowEditMode:function(){return de(this)},getEditMode:function(){return ce(this)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns");if(ce(this)===X&&this._firstFormItem)e=this._firstFormItem.column.index;else{var n=t.getVisibleColumns();i.each(n,function(t,n){if(n.allowEditing)return e=t,!1})}return e},getFirstEditableCellInRow:function(e){return this.getView("rowsView").getCellElement(e?e:0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return h(e,t)},hasChanges:function(){for(var e=this,t=!1,n=0;n<e._editData.length;n++)if(e._editData[n].type){t=!0;break}return t},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),i(document).off(d.name,this._saveEditorHandler)},optionChanged:function(e){"editing"===e.name?(this.init(),e.handled=!0):this.callBase(e)},publicMethods:function(){return["insertRow","addRow","removeRow","deleteRow","undeleteRow","editRow","editCell","closeEditCell","saveEditData","cancelEditData","hasEditData"]},refresh:function(){ce(this)!==Z&&(ce(this)!==Q?this.init():(this._editRowIndex=-1,this._editColumnIndex=-1))},isEditing:function(){return this._editRowIndex>-1},isEditRow:function(e){var t=ce(this);return this._getVisibleEditRowIndex()===e&&se.indexOf(t)!==-1},getEditRowKey:function(){var e=this._dataController.items(),t=e[this._getVisibleEditRowIndex()];return t&&t.key},getEditFormRowIndex:function(){var e=ce(this);return e===X||e===J?this._getVisibleEditRowIndex():-1},isEditCell:function(e,t){return this._getVisibleEditRowIndex()===e&&this._editColumnIndex===t},getPopupContent:function(){var e=ce(this),t=this._editPopup&&this._editPopup.option("visible");if(e===J&&t)return this._editPopup.content()},getEditForm:function(){return this._editForm},_needInsertItem:function(e,t){var n=this,i=n._dataController.dataSource(),o=n.option("scrolling.mode"),a=i.pageIndex(),s=i.beginPageIndex?i.beginPageIndex():a,r=i.endPageIndex?i.endPageIndex():a;if("standard"!==o)switch(t){case"append":return e.key.pageIndex===r;case"prepend":return e.key.pageIndex===s;case"refresh":e.key.rowIndex=0,e.key.dataRowIndex=0,e.key.pageIndex=0;break;default:return e.key.pageIndex>=s&&e.key.pageIndex<=r}return e.key.pageIndex===a},_generateNewItem:function(e){var t={key:e};return e&&e[F]&&(t[F]=e[F]),t},processItems:function(e,t){var n,i,o,a=this,s=a._editData;for(a.update(t),n=0;n<s.length;n++)i=s[n].key,o=a._generateNewItem(i),s[n].type===ee&&a._needInsertItem(s[n],t,e,o)&&e.splice(i.dataRowIndex,0,o);return e},processDataItem:function(e,t,n){var i,o,a,s,l=this,c=t.visibleColumns,d=e.data[F]?e.data.key:e.key;if(s=h(d,l._editData),s>=0)switch(o=ce(l),a=l._editData[s],i=a.data,e.isEditing=t.rowIndex===l._getVisibleEditRowIndex(),a.type){case ee:o===J&&(e.visible=!1),e.inserted=!0,e.key=d,e.data=i;break;case te:e.modified=!0,e.oldData=e.data,e.data=r(r({},e.data),i),e.modifiedValues=n(i,c);break;case ne:o===Q&&(e.data=r(r({},e.data),i)),e.removed=!0}},insertRow:function(){return w.log("W0002","dxDataGrid","insertRow","15.2","Use the 'addRow' method instead"),this.addRow()},_initNewRow:function(e,t){this.executeAction("onInitNewRow",e);var n=this._dataController.items(),i=n[t.rowIndex];i&&(!i.isEditing&&"detail"===i.rowType||"detailAdaptive"===i.rowType)&&t.rowIndex++,t.dataRowIndex=n.filter(function(e,n){return n<t.rowIndex&&"data"===e.rowType}).length},_getInsertIndex:function(){var e=0;return this._editData.forEach(function(t){t.type===ee&&t.key[F]>e&&(e=t.key[F])}),e+1},addRow:function(e){var t,n=this,i=n._dataController,a=i.store(),s=a&&a.key(),r=n.getView("rowsView"),l={data:{}},c=i.getRowIndexByKey(e),u={pageIndex:i.pageIndex(),rowIndex:c>=0?c+1:r?r.getTopVisibleItemIndex():0,parentKey:e},h=n._getVisibleEditRowIndex(),p=ce(n);p===Z&&n.hasChanges()&&n.saveEditData(),n.refresh();var f=n._getInsertIndex();p!==Q&&f>1||(s||(l.data.__KEY__=String(new o)),n._initNewRow(l,u),p!==Q&&(n._editRowIndex=u.rowIndex+n._dataController.getRowIndexOffset()),u[F]=f,n._addEditData({key:u,data:l.data,type:ee}),i.updateItems({changeType:"update",rowIndices:[h,u.rowIndex]}),p===J?n._showEditPopup(u.rowIndex):(t=n.getFirstEditableCellInRow(u.rowIndex),n._editCellInProgress=!0,n._delayedInputFocus(t,function(){n._editCellInProgress=!1;var e=n.getFirstEditableCellInRow(u.rowIndex);e&&e.trigger(d.name)})),n._afterInsertRow({key:u,data:l.data}))},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeEditCell:function(e,t,n){var o=this;if(ce(o)===Z&&!n.inserted&&o.hasChanges()){var a=i.Deferred();return o.saveEditData().always(function(){a.resolve(o.hasChanges())}),a}},_beforeUpdateItems:function(){},_getVisibleEditRowIndex:function(){return this._editRowIndex>=0?this._editRowIndex-this._dataController.getRowIndexOffset():-1},editRow:function(e){var t,n=this,i=n._dataController,o=i.items(),a=o[e],s={data:a.data,cancel:!1},r=n._getVisibleEditRowIndex();if(e===r)return!0;if(a.inserted||(s.key=a.key),!n._isEditingStart(s)){n.init(),n._pageIndex=i.pageIndex(),n._editRowIndex=(o[0].inserted?e-1:e)+n._dataController.getRowIndexOffset(),n._addEditData({data:{},key:a.key,oldData:a.data});var l=[r,e],c=ce(n);n._beforeUpdateItems(l,e,r),c===J?n._showEditPopup(e):i.updateItems({changeType:"update",rowIndices:l}),le.indexOf(c)!==-1&&(t=n.getFocusedCellInRow(n._getVisibleEditRowIndex()),n._delayedInputFocus(t,function(){t&&n.component.focus(t)}))}},_showEditPopup:function(e){var t=this,n="desktop"!==x.current().deviceType,o=l({showTitle:!1,fullScreen:n,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getCancelButtonConfig()}],contentTemplate:t._getPopupEditFormTemplate(e)},t.option("editing.popup"));if(!t._editPopup){var a=i("
    ").appendTo(t.component.element()).addClass(t.addWidgetPrefix(T));t._editPopup=t._createComponent(a,v,{}),t._editPopup.on("hidden",t._getEditPopupHiddenHandler()),t._editPopup.on("shown",function(e){e.component.content().find(U).first().focus()})}t._editPopup.option(o),t._editPopup.show()},_getEditPopupHiddenHandler:function(){var e=this;return function(t){e.isEditing()&&e.cancelEditData()}},_getPopupEditFormTemplate:function(e){var t=this,n=t.component.getVisibleRows()[e],i={row:n,rowType:n.rowType,key:n.key};return function(e){var n=t.getEditFormTemplate();n(e,i,!0)}},_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},editCell:function(e,t){var n=this,i=n._columnsController,o=n._dataController,s=o.items(),r=s[e],l={data:r&&r.data,cancel:!1},c=n._getVisibleEditRowIndex(),d=i.getVisibleColumns(),u=d[n._editColumnIndex];a.isString(t)&&(t=i.columnOption(t,"index"),t=i.getVisibleIndex(t));var h=l.column=d[t];if(h&&r&&("data"===r.rowType||"detailAdaptive"===r.rowType)&&!r.removed&&!de(n)){if(n.isEditCell(e,t))return!0;var p=e+o.getRowIndexOffset();return C(n._beforeEditCell(e,t,r)).done(function(e){e||n._prepareEditCell(l,r,t,p)&&n._repaintEditCell(h,u,c)})}return!1},_prepareEditCell:function(e,t,n,i){var o=this;return t.inserted||(e.key=t.key),!o._isEditingStart(e)&&(o._editRowIndex=i,o._editColumnIndex=n,o._pageIndex=o._dataController.pageIndex(),o._addEditData({data:{},key:t.key,oldData:t.data}),!0)},_repaintEditCell:function(e,t,n){var i=this,o=i._rowsView;e&&e.showEditorAlways&&(!t||t.showEditorAlways)||(i._editCellInProgress=!0,i.getController("editorFactory").loseFocus(),i._dataController.updateItems({changeType:"update",rowIndices:[n,i._getVisibleEditRowIndex()]}));var a=o&&o.getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex);a&&!a.find(":focus").length?i._focusEditingCell(function(){i._editCellInProgress=!1},a,!0):i._editCellInProgress=!1},_delayedInputFocus:function(e,t,n){function i(){t&&t(),e&&e.find(U).first().focus(),o._beforeFocusCallback=null}var o=this;x.real().ios||x.real().android?i():(o._beforeFocusCallback&&o._beforeFocusCallback(),clearTimeout(o._inputFocusTimeoutID),n&&(o._beforeFocusCallback=t),o._inputFocusTimeoutID=setTimeout(i))},_focusEditingCell:function(e,t,n){var i=this,o=i.getView("rowsView");t=t||o&&o.getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex),i._delayedInputFocus(t,e,n)},removeRow:function(e){return w.log("W0002","dxDataGrid","removeRow","15.2","Use the 'deleteRow' method instead"),this.deleteRow(e)},deleteRow:function(e){var t,n,i=this,o=i.option("editing"),s=o&&o.texts,r=s&&s.confirmDeleteTitle,l=o&&o.mode===Q,c=s&&s.confirmDeleteMessage,d=i._dataController,u=i._getVisibleEditRowIndex(),p=d.items()[e],f=p&&p.key;p&&(t=function(t){i.refresh();var n=h(t,i._editData);n>=0?i._editData[n].type===ee?i._editData.splice(n,1):i._editData[n].type=ne:i._addEditData({key:t,oldData:p.data,type:ne}),l?d.updateItems({changeType:"update",rowIndices:[u,e]}):i.saveEditData()},l||!c?t(f):(n=a.isDefined(r)&&r.length>0,m.confirm(c,r,n).done(function(e){e&&t(f)})))},undeleteRow:function(e){var t=this,n=t._dataController,i=n.items()[e],o=t._getVisibleEditRowIndex(),a=i&&i.key;if(i){var r,l=h(a,t._editData);l>=0&&(r=t._editData[l],s.isEmptyObject(r.data)?t._editData.splice(l,1):r.type=te,n.updateItems({changeType:"update",rowIndices:[o,e]}))}},_saveEditDataCore:function(e,t){function n(e,t,n){function a(e){return function(t){var n=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(n)}}var s=i.Deferred();return o.executeAction(e,t),C(t.cancel).done(function(e){e?s.resolve("cancel"):n(t).done(s.resolve).fail(a(s))}).fail(a(s)),s}var o=this,a=o._dataController.store(),s=!0;return i.each(o._editData,function(r,l){var c,d,u,h=l.data,p=l.oldData,f=l.type;if(!o._beforeSaveEditData(l,r)){switch(f){case ne:u={data:p,key:l.key,cancel:!1},c=n("onRowRemoving",u,function(){return a.remove(l.key)});break;case ee:u={data:h,cancel:!1},c=n("onRowInserting",u,function(){return a.insert(u.data).done(function(e,t){l.key=t})});break;case te:u={newData:h,oldData:p,key:l.key,cancel:!1},c=n("onRowUpdating",u,function(){return a.update(l.key,u.newData)})}c&&(d=i.Deferred(),c.always(function(e){s="cancel"!==e,t.push({key:l.key,result:e})}).always(d.resolve),e.push(d.promise()))}}),s},_processSaveEditDataResult:function(e){var t,n,i,o,a,s,r,l=this,c=l._dataController,d=!1,u=ce(l);for(t=0;t<e.length;t++)if(n=e[t].result,i="cancel"===n,a=h(e[t].key,l._editData),o=l._editData[a])if(s=n&&n instanceof Error){if(o.error=n,r=l.getPopupContent(),c.dataErrorOccurred.fire(n,r),u!==Q)break}else(!i||u!==Q&&o.type===ne)&&(l._editData.splice(a,1),d=!i);return d},_fireSaveEditDataEvents:function(e){var t=this;i.each(e,function(e,n){var i=n.data,o=n.key,a=n.type,s={key:o,data:i};switch(n.error&&(s.error=n.error),a){case ne:t.executeAction("onRowRemoved",l({},s,{data:n.oldData}));break;case ee:t.executeAction("onRowInserted",s);break;case te:t.executeAction("onRowUpdated",s)}})},saveEditData:function(){var e,t=this,n=[],o=[],a=t._dataController,s=a.dataSource(),r=ce(t),l=i.Deferred(),c=function(e){r!==Z&&(e._editColumnIndex=-1,e._editRowIndex=-1)};return t._beforeSaveEditData()||t._saving?(t._afterSaveEditData(),l.resolve().promise()):(t._saveEditDataCore(o,n)||r!==Z||t._focusEditingCell(),o.length?(t._saving=!0,s&&s.beginLoading(),C.apply(i,o).done(function(){e=t._editData.slice(0),t._processSaveEditDataResult(n)?(c(t),r===J&&t._editPopup&&t._editPopup.hide(),s&&s.endLoading(),C(a.refresh()).always(function(){t._fireSaveEditDataEvents(e),t._afterSaveEditData(),l.resolve()})):(s&&s.endLoading(),l.resolve())}).fail(function(){s&&s.endLoading(),l.resolve()}),l.always(function(){t._focusEditingCell(),t._saving=!1}).promise()):(de(t)?t.hasChanges()||t.cancelEditData():re.indexOf(r)!==-1?(c(t),a.updateItems()):t._focusEditingCell(),t._afterSaveEditData(),l.resolve().promise()))},_updateEditColumn:function(){var e=this,t=e._isEditColumnVisible();e._columnsController.addCommandColumn({command:"edit",visible:t,cssClass:"dx-command-edit",width:"auto"}),e._columnsController.columnOption("command:edit","visible",t)},_isEditColumnVisible:function(){var e=this,t=e.option("editing");if(t){var n=ce(e),i=!1;switch(n){case Y:i=t.allowUpdating||t.allowAdding;break;case X:case J:i=t.allowUpdating}return t.allowDeleting||i}},_updateEditButtons:function(){var e=this,t=e.getView("headerPanel"),n=e.hasChanges();t&&(t.setToolbarItemDisabled("saveButton",!n),t.setToolbarItemDisabled("revertButton",!n))},_applyModified:function(e){e&&e.addClass(W)},_beforeCloseEditCellInBatchMode:function(){},cancelEditData:function(){var e=this,t=ce(e),n=this._editRowIndex,i=e._dataController;e._beforeCancelEditData(),e.init(),se.indexOf(t)!==-1&&n>=0?i.updateItems({changeType:"update",rowIndices:[n,n+1]}):i.updateItems(),t===J&&e._hideEditPopup()},_hideEditPopup:function(){this._editPopup&&this._editPopup.option("visible",!1)},hasEditData:function(){return this.hasChanges()},closeEditCell:function(){var e=this,t=ce(e),n=e._getVisibleEditRowIndex(),i=e._dataController;de(e)||setTimeout(function(){if(t===Z&&e.hasChanges())e.saveEditData().done(function(){e.hasChanges()||e.closeEditCell()});else if(n>=0){var o=[n];e._editRowIndex=-1,e._editColumnIndex=-1,e._beforeCloseEditCellInBatchMode(o),i.updateItems({changeType:"update",rowIndices:o})}})},update:function(e){var t=this,n=t._dataController;n&&t._pageIndex!==n.pageIndex()&&("refresh"===e&&t.refresh(),t._pageIndex=n.pageIndex()),t._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e){return[e.rowIndex]},updateFieldValue:function(e,t,n,i){var o,a=this,s={},r=e.key,l=e.cellElement,c=ce(a);void 0===r&&a._dataController.dataErrorOccurred.fire(w.Error("E1043")),void 0!==r&&e.column.setCellValue&&(c===Q&&a._applyModified(l,e),e.value=t,e.column.setCellValue(s,t,n),n&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n),o={data:s,key:r,oldData:e.data,type:te},a._addEditData(o,e.row),a._updateEditButtons(),e.column.showEditorAlways&&ce(a)===Z&&e.row&&!e.row.inserted?a.saveEditData():e.row&&(i||e.column.setCellValue!==e.column.defaultSetCellValue)&&a._updateEditRow(e.row,i))},_updateEditRow:function(e,t){var n=this,i=ce(n);i===J?setTimeout(this._updatePopupForm.bind(this,t)):(this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(e)}),t||this._focusEditingCell())},_updatePopupForm:function(e){var t,n,i=this._rowsView,o=this.getEditFormRowIndex();o>=0&&this._editForm&&(e||(n=this._editForm.element().find(".dx-state-focused"),t=i.getCellIndex(n,o)),this._editForm.repaint(),t>=0&&(n=i.getCellElement(o,t),this._delayedInputFocus(n)))},_addEditData:function(e,t){var n=this,i=h(e.key,n._editData);return i<0&&(i=n._editData.length,n._editData.push(e)),n._editData[i]&&(e.type=n._editData[i].type||e.type,r(n._editData[i],{data:e.data,type:e.type}),t&&(t.data=r(r({},t.data),e.data))),i},_getFormEditItemTemplate:function(t,n){return n.editCellTemplate||e(this)},renderFormEditTemplate:function(e,t,n,i,o){var a=this,s=t.column,r=e.row&&e.row.data,c=l({},e,{cellElement:null,isOnForm:!0,item:t,value:s.calculateCellValue(r),column:l({},s,{editorOptions:t.editorOptions}),id:n.getItemID(t.name||t.dataField),columnIndex:s.index,setValue:!o&&s.allowEditing&&function(e){a.updateFieldValue(c,e)}}),d=a._getFormEditItemTemplate.bind(a)(c,s);a._rowsView.renderTemplate(i,d,c,!!i.closest(document).length)&&a._rowsView._updateCell(i,c)},getFormEditorTemplate:function(e,t){var n=this;return function(i,o){n.renderFormEditTemplate.bind(n)(e,t,i.component,o)}},getEditFormTemplate:function(){var e=this;return function(t,n,s){var r=e.option("editing.form"),c=e.option("editing.form.items"),d=e.option("editing.form.customizeItem"),u=e._editData[h(n.key,e._editData)],p=e.addWidgetPrefix(I),f=ce(e)===J;if(!c){var m=e.getController("columns").getColumns();c=[],i.each(m,function(e,t){t.isBand||c.push({column:t,name:t.name,dataField:t.dataField})})}if(e._firstFormItem=void 0,e._editForm=e._createComponent(i("
    ").appendTo(t),y,l({scrollingEnabled:f},r,{items:c,formID:"dx-"+new o,validationGroup:u,customizeItem:function(t){var i=t.column||e._columnsController.columnOption(t.name||t.dataField);if(i){t.label=t.label||{},t.label.text=t.label.text||i.caption,t.template=t.template||e.getFormEditorTemplate(n,t),t.column=i,i.formItem&&l(t,i.formItem);var o=!a.isDefined(t.visible)||t.visible;!e._firstFormItem&&o&&(e._firstFormItem=t)}d&&d.call(this,t),t.cssClass=a.isString(t.cssClass)?t.cssClass+" "+p:p}})),!s){var g=i("
    ").addClass(e.addWidgetPrefix(E)).appendTo(t);e._createComponent(i("
    ").appendTo(g),_,e._getSaveButtonConfig()),e._createComponent(i("
    ").appendTo(g),_,e._getCancelButtonConfig())}}},getColumnTemplate:function(t){var n,i,o,a,s,r=this,l=t.column,c=t.row&&t.row.rowIndex,d=de(r),u=r.isEditRow(c),h=r.isEditCell(c,t.columnIndex);return!(l.showEditorAlways||l.setCellValue&&(u&&l.allowEditing||h))||"data"!==t.rowType&&"detailAdaptive"!==t.rowType||l.command?"edit"===l.command&&"data"===t.rowType?n=function(e,t){e.css("text-align","center"),t.rtlEnabled=r.option("rtlEnabled"),i=r.option("editing")||{},o=i.texts||{},t.row&&t.row.rowIndex===r._getVisibleEditRowIndex()&&d?(r._createLink(e,o.saveRowChanges,"saveEditData",t,"dx-link-save"),r._createLink(e,o.cancelRowChanges,"cancelEditData",t,"dx-link-cancel")):r._createEditingLinks(e,t,i,d)}:"detail"===l.command&&"detail"===t.rowType&&u&&(n=r.getEditFormTemplate(t)):(a=r.option("editing.allowUpdating"),((a||u)&&l.allowEditing||h)&&(d&&u||!d)&&(l.showEditorAlways&&!d&&(s={cancel:!1,key:t.row.inserted?void 0:t.row.key,data:t.row.data,column:l},r._isEditingStart(s)),s&&s.cancel||(t.setValue=function(e,n){r.updateFieldValue(t,e,n)})),n=l.editCellTemplate||e(r)),n},_createLink:function(e,t,n,o,a){var s=this,r=i("<a>").addClass(B).addClass(a).text(t).on(f(d.name,q),s.createAction(function(e){var t=e.jQueryEvent;t.stopPropagation(),setTimeout(function(){o.row&&s[n](o.row.rowIndex)})}));o.rtlEnabled?e.prepend(r," "):e.append(r," ")},_createEditingLinks:function(e,t,n,i){var o=n.texts||{};n.allowUpdating&&i&&this._createLink(e,o.editRow,"editRow",t,"dx-link-edit"),n.allowDeleting&&(t.row.removed?this._createLink(e,o.undeleteRow,"undeleteRow",t,"dx-link-undelete"):this._createLink(e,o.deleteRow,"deleteRow",t,"dx-link-delete"))},prepareEditButtons:function(e){var t=this,n=t.option("editing")||{},i=t.option("editing.texts")||{},o={revert:i.cancelAllChanges,save:i.saveAllChanges,addRow:i.addRow},a={revert:"cancel",save:"save",addRow:"addrow"},s=[],r=function(n,i,s){var r=a[n],l=function(n){n.element.addClass(e._getToolbarButtonClass(P+" "+t.addWidgetPrefix(r)+"-button"))},c=o[n],d=("save"===r||"cancel"===r)&&!t.hasChanges();return{widget:"dxButton",options:{onInitialized:l,icon:"edit-button-"+r,disabled:d,onClick:function(){t[i]()},text:c,hint:c},showText:"inMenu",name:n+"Button",location:"after",locateInMenu:"auto",sortIndex:s}};return n.allowAdding&&s.push(r("addRow","addRow",20)),(n.allowUpdating||n.allowAdding||n.allowDeleting)&&ce(t)===Q&&(s.push(r("save","saveEditData",21)),s.push(r("revert","cancelEditData",22))),s},showHighlighting:function(e){var t=e.find("."+$);"TD"!==e.get(0).tagName||t.length||e.wrapInner(i("
    ").addClass($+" "+oe))},resetRowAndPageIndices:function(e){var t=this;i.each(t._editData,function(n,i){(i.pageIndex!==t._pageIndex||e)&&(delete i.pageIndex,delete i.rowIndex)})},_afterInsertRow:function(){},_beforeSaveEditData:function(){},_afterSaveEditData:function(){},_beforeCancelEditData:function(){}}}());e.exports={defaultOptions:function(){return{editing:{mode:"row",allowAdding:!1,allowUpdating:!1,allowDeleting:!1,texts:{editRow:g.format("dxDataGrid-editingEditRow"),saveAllChanges:g.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:g.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:g.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:g.format("dxDataGrid-editingCancelRowChanges"),addRow:g.format("dxDataGrid-editingAddRow"),deleteRow:g.format("dxDataGrid-editingDeleteRow"),undeleteRow:g.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:g.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{}}}},controllers:{editing:ue},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e){var t,n=this.getController("editing");return this._editingController.refresh(),t=this.callBase(e),t&&t.done(function(){n.resetRowAndPageIndices(!0)})},_updateItemsCore:function(e){this.callBase(e);var t=this._editingController,n=t.getEditMode()===X&&t.getEditFormRowIndex(),i=this.items()[n];i&&(i.rowType="detail")},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return e=this.callBase(e,t),e.inserted&&(t.dataIndex--,delete e.dataIndex),e}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellElements:function(e){var t=this.callBase(e),n=this._editingController,i=n.getEditForm(),o=n.getEditFormRowIndex();return o===e&&t&&i?i.element().find("."+this.addWidgetPrefix(I)+", ."+V):t},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),o=-1;return i.each(n,function(t,n){if(i(n).find(e).length)return o=t,!1}),o}return this.callBase.apply(this,arguments)},_getVisibleColumnIndex:function(e,t,n){var o,a=this.callBase(e,t,n),s=this._editingController.getEditFormRowIndex();return s===t&&i.each(e,function(e,t){if(o=i(t).find(".dx-field-item-content").data("dx-form-item"),o&&o.column&&o.column.visibleIndex===a)return a=e,!1}),a},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){var t=this,n=t._editingController.getColumnTemplate(e);return n||t.callBase(e)},_isNativeClick:function(){return(x.real().ios||x.real().android)&&this.option("editing.allowUpdating")},_createTable:function(){var e=this,t=e.callBase.apply(e,arguments);return!de(e)&&e.option("editing.allowUpdating")&&t.on(f(b.name,"dxDataGridRowsView"),"td:not(."+M+")",e.createAction(function(){var t=e._editingController;t.isEditing()&&t.closeEditCell()})),t},_createRow:function(e){var t,n,i,o,a,s=this.callBase(e);return e&&(t=this._editingController,n=t.isEditRow(e.rowIndex),i=!!e.removed,o=!!e.inserted,a=!!e.modified,ce(this)===Q?i&&s.addClass(L):n&&s.addClass(O),o&&s.addClass(z),a&&s.addClass(N),(n||o||i)&&s.removeClass(R),n&&"detail"===e.rowType&&s.addClass(this.addWidgetPrefix(k))),s},_getColumnIndexByElement:function(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+H+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_rowClick:function(e){var t=this,n=t._editingController,o=i(e.jQueryEvent.target),a=t._getColumnIndexByElement(o),s=t._dataController.items()[e.rowIndex],r=t.option("editing.allowUpdating")||s&&s.inserted,l=t._columnsController.getVisibleColumns()[a],c=l&&(l.allowEditing||n.isEditCell(e.rowIndex,a));o.closest("."+H+"> td").hasClass(ie)||r&&c&&n.editCell(e.rowIndex,a)||n.isEditRow(e.rowIndex)||t.callBase(e)},_cellPrepared:function(e,t){var n=t.columnIndex,i=this._editingController,o=!!t.column.command,a=t.setValue,s=t.isEditing||i.isEditRow(t.rowIndex)&&t.column.allowEditing;if("data"===t.rowType&&!t.column.command&&(s||t.column.showEditorAlways)){var r=t.column.alignment;e.addClass(M).toggleClass(this.addWidgetPrefix(D),!a).toggleClass(j,!a),r&&e.find(K).first().css("text-align",r)}var l=t.row&&(t.row.inserted?t.row.values:t.row.modifiedValues);l&&void 0!==l[n]&&t.column&&!o&&t.column.setCellValue?(i.showHighlighting(e),e.addClass(W)):a&&i.showHighlighting(e,!0),this.callBase.apply(this,arguments)},_formItemPrepared:function(){},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&"popup"===ce(this);return(t||n)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+O).removeClass(R)},_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},cellValue:function(e,t,n,i){var o=this.getCellOptions(e,t);if(o){if(void 0===n)return o.value;this._editingController.updateFieldValue(o,n,i,!0)}}},headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this.getController("editing").prepareEditButtons(this);return t.concat(e)},optionChanged:function(e){switch(e.name){case"editing":this._invalidate(),this.callBase(e);break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.getController("editing").option("editing");return e.callBase()||t&&(t.allowAdding||(t.allowUpdating||t.allowDeleting)&&t.mode===Q)}}}}}},function(e,t,n){var i=n(349),o=n(393);i.registerModule("validating",o)},function(e,t,n){var i=n(9),o=n(351),a=n(350),s=n(14),r=n(11).extend,l=s.equalByValue,c=n(90),d=n(202),u=n(77),h=n(118),p=n(289),f=n(315),m=n(110),g="invalid",_="revert-tooltip",v="rowsview",w="dx-invalid-message",x="dx-invalid-message-always",y="dx-revert-button",b="dx-highlight-outline",C="__DX_INSERT_INDEX__",k=2,I="row",S="form",D="batch",T="cell",E="popup",A=[E,S],B=o.Controller.inherit(function(){return{init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating")},_rowValidating:function(e,t){var n=this,i=t?t.brokenRules||t.brokenRule&&[t.brokenRule]:[],o=t?t.isValid:e.isValid,a={brokenRules:i,isValid:o,key:e.key,newData:e.data,oldData:e.oldData,errorText:null};return n.executeAction("onRowValidating",a),e.isValid=a.isValid,e.errorText=a.errorText,a},validate:function(e){var t=this,n=!0,o=t._editingController;return e=e||o.getEditMode()===I,!t._isValidationInProgress&&(t._isValidationInProgress=!0,e?i.each(o._editData,function(e,a){var s;a.type&&"remove"!==a.type&&(s=t.validateGroup(a),s.isValid||i.each(s.brokenRules,function(){var e=this.validator.option("adapter").getValue();void 0===e&&(e=null),this.column&&o.updateFieldValue({key:a.key,column:this.column},e,null,!0)}),n=n&&s.isValid)}):t._currentCellValidator&&(n=t.validateGroup(t._currentCellValidator._findGroup()).isValid),t._isValidationInProgress=!1,n)},validateGroup:function(e){var t,n=this,i=h.getGroupConfig(e);return i&&i.validators.length&&(t=h.validateGroup(e)),n._rowValidating(e,t)},updateEditData:function(e){var t=this._editingController.getEditMode();A.indexOf(t)===-1?(this.setDisableApplyValidationResults(!0),e.isValid=!h.getGroupConfig(e)||h.validateGroup(e).isValid,this.setDisableApplyValidationResults(!1)):e.isValid=!0},setValidator:function(e){this._currentCellValidator=e},getValidator:function(){return this._currentCellValidator},removeValidators:function(e){var t=this,n=t._editingController;i.each(n._editData,function(t,n){var i=h.getGroupConfig(n);if((!s.isDefined(e)||e===t)&&i)for(var o=0;o<i.validators.length;o++)i.validators[o]._dispose(),o--})},createValidator:function(e,t){var n,i,o,a,l=this,c=l._editingController,d=e.column,h=function(e){if(e.brokenRule&&(e.brokenRule.columnIndex=d.index,e.brokenRule.column=d),t&&!l.getDisableApplyValidationResults()){if(!e.isValid){var n=t.find(":focus");c.showHighlighting(t,!0),n.is(":focus")||n.focus().trigger(u.down)}t.toggleClass(l.addWidgetPrefix(g),!e.isValid)}},f=function(){var t=d.calculateCellValue(n.data||{});return void 0!==t?t:e.value},m=d.showEditorAlways;if(d.validationRules&&Array.isArray(d.validationRules)&&!s.isDefined(d.command)&&(i=c.getIndexByKey(e.key,c._editData),i<0&&(m||(a=l.getController("columns"),o=a&&a.getVisibleColumns()||[],m=o.some(function(e){return e.showEditorAlways})),m&&(i=c._addEditData({key:e.key,oldData:e.data}))),i>=0)){n=c._editData[i];var _=t&&t.hasClass("dx-widget"),v=new p(t||{},{name:d.caption,validationRules:r(!0,[],d.validationRules),validationGroup:n,adapter:_?null:{getValue:f,applyValidationResults:h}});if(_){var w=v.option("adapter");w&&(w.getValue=f)}return v}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults}}}());e.exports={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:c.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:B},extenders:{controllers:{editing:{_addEditData:function(e,t){var n,i=this,o=i.getController("validating"),a=i.callBase(e,t);return a>=0&&(n=i._editData[a],o.updateEditData(n)),a},_updateRowAndPageIndices:function(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),n=t;i.each(e._editData,function(i,o){o.isValid||o.pageIndex===e._pageIndex||(o.pageIndex=e._pageIndex,"insert"===o.type?o.rowIndex=t:o.rowIndex=n,n++)})},_needInsertItem:function(e){var t=this.callBase.apply(this,arguments);return t&&!e.isValid&&(t=e.key.pageIndex===this._pageIndex),t},processItems:function(e,t){var n,o,a=this,s=0,r=a._editData,c=a.getController("data"),d=function(e,t){var n=-1,o="insert"===e.type,a=e.key;return i.each(t,function(e,t){if(l(a,o?t:c.keyOf(t)))return n=e,!1}),n},u=function(t){var n,i={key:t.key},a=d(t,e);a>=0||(t.rowIndex=t.rowIndex>o?t.rowIndex%o:t.rowIndex,n=t.rowIndex,i[C]=1,e.splice(n,0,i),s++)};if(e=a.callBase(e,t),o=e.length,a.getEditMode()===D&&"prepend"!==t&&"append"!==t)for(n=0;n<r.length;n++)r[n].type&&r[n].pageIndex===a._pageIndex&&r[n].key.pageIndex!==a._pageIndex&&u(r[n]);return e},processDataItem:function(e){var t,n,i=this,o=e.data[C],s=o?e.data.key:e.key,l=i.getEditMode();l===D&&o&&s&&(t=a.getIndexByKey(s,i._editData),t>=0&&(n=i._editData[t],"insert"!==n.type&&(e.data=r(!0,{},n.oldData,n.data),e.key=s))),i.callBase.apply(i,arguments)},_afterInsertRow:function(e){var t=this.getController("validating"),n=s.grep(this.getController("columns").getInvisibleColumns(),function(e){return!e.isBand});A.indexOf(this.getEditMode())===-1&&i.each(n,function(n,i){t.createValidator({column:i,key:e.key,value:i.calculateCellValue(e.data)})}),this.callBase(e)},_beforeSaveEditData:function(e,t){var n,i,o=this,a=o.callBase.apply(o,arguments),s=o.getController("validating");if(e)n="remove"===e.type||e.isValid,n&&s.removeValidators(t),a=a||!n;else switch(i=s.validate(!0),o._updateRowAndPageIndices(),o.getEditMode()){case T:i||(o._focusEditingCell(),a=!0);break;case D:i||(o._editRowIndex=-1,o._editColumnIndex=-1,o.getController("data").updateItems(),a=!0);break;case I:case E:a=!i}return a},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n),o=this.component.getCellElement(e,t),a=o&&o.data("dxValidator"),s=a&&a.option("adapter").getValue();if(this.getEditMode(this)===T&&(!a||void 0!==s&&a.validate().isValid))return i},_afterSaveEditData:function(){var e=this;i.each(e._editData,function(t,n){e._showErrorRow(n)})},_beforeCancelEditData:function(){ var e=this.getController("validating");e.removeValidators(),this.callBase()},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(e.key,i);!e.isValid&&e.errorText&&o>=0&&(t=this.getPopupContent(),n&&n.renderErrorRow(e.errorText,o,t))},updateFieldValue:function(e){var t=this,n=t.getEditMode();if(t.callBase.apply(t,arguments),n===I||n===D&&e.column.showEditorAlways){var i=t.getController("validating").getValidator();i&&i.validate()}},showHighlighting:function(e,t){var n,i=!0;t||(n=e.data("dxValidator"),n&&(i=n.validate().isValid)),i&&this.callBase(e)},getEditDataByKey:function(e){return this._editData[a.getIndexByKey(e,this._editData)]}},editorFactory:{_showRevertButton:function(e,t){var n=this;if(t&&t.length)return new f(i("
    ").addClass(n.addWidgetPrefix(_)).appendTo(e),{animation:null,visible:!0,target:t,container:e,closeOnOutsideClick:!1,closeOnTargetScroll:!1,boundary:n._rowsView.element(),contentTemplate:function(){return new d(i("
    ").addClass(y),{icon:"revert",hint:n.option("editing.texts.validationCancelChanges"),onClick:function(){n._editingController.cancelEditData()}}).element()},position:{my:"left top",at:"right top",of:t,offset:"1 0",collision:"flip"}})},_showValidationMessage:function(e,t,n,o){var a,s=this,r=e.find("."+b),l=e.find(".dx-dropdowneditor-overlay:visible").length,c=l?"top right":"top "+n,d=l?"top left":"bottom "+n;new m(i("<div/>").addClass(w).addClass(x).text(t).appendTo(e),{target:r.length?r:e,container:e,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,closeOnOutsideClick:!1,closeOnTargetScroll:!1,position:{collision:"flip",boundary:s._rowsView.element(),boundaryOffset:"0 0",my:c,at:d},onPositioned:function(t){a||(a=s._rowsView.updateFreeSpaceRowHeight(),a&&t.component.repaint()),s._shiftValidationMessageIfNeed(t.component.content(),o&&o.content(),e)}})},_shiftValidationMessageIfNeed:function(e,t,n){if(t){var i=e.offset(),o=t.offset();if(i.top===o.top&&i.left+e.width()>o.left){var a=t.width()+k;e.css("left",o.left<n.offset().left?-a:a)}}},_getTooltipsSelector:function(){return".dx-editor-cell .dx-tooltip, .dx-editor-cell .dx-invalid-message"},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},focus:function(e,t){var n,i,o=this,a=e&&e.closest(o._getFocusCellSelector()),s=a&&(a.data("dxValidator")||e.find(".dx-validator").eq(0).data("dxValidator")),r=a&&a.closest(".dx-row").data("options"),l=r?o.getController("editing").getEditDataByKey(r.key):null,c=a&&a.closest("."+o.addWidgetPrefix(v)).find(o._getTooltipsSelector()),d=a&&a.is("td")?a:null,u=!1,h=d&&o.getController("columns").getVisibleColumns()[d.index()];return arguments.length?(c&&c.remove(),s&&(o.getController("validating").setValidator(s),void 0!==s.option("adapter").getValue()&&(n=s.validate(),n.isValid||(t=!0,u=!0))),(n&&!n.isValid||l&&"update"===l.type)&&o._editingController.getEditMode()===T&&(i=o._showRevertButton(a,d?a.find("."+b).first():a)),u&&d&&h&&o._showValidationMessage(a,n.brokenRule.message,h.alignment,i),!t&&o._rowsView.element()&&o._rowsView.updateFreeSpaceRowHeight(),o.callBase(e,t)):o.callBase()}}},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,i,o=this,a=o.element(),s=a&&a.find(".dx-invalid-message .dx-overlay-content");if(o.callBase(e),s&&s.length&&(t=o._getRowElements(),i=o._getFreeSpaceRowElements(e),n=i.first(),n&&1===t.length&&(!n.is(":visible")||s.outerHeight()>n.outerHeight())))return i.show(),i.height(s.outerHeight()),!0},_formItemPrepared:function(e,t){this.callBase.apply(this,arguments),this.getController("validating").createValidator(e,t.children(".dx-widget"))},_cellPrepared:function(e,t){this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)}}}}}},function(e,t,n){var i=n(349),o=n(359),a=n(395);i.registerModule("virtualScrolling",a),o.extend(a.extenders.dataSourceAdapter)},function(e,t,n){var i=n(9),o=n(14),a=n(396),s=n(350),r=n(23),l=n(70),c=n(239),d="table",u="bottom-load-panel",h="table-content",p="group-space",f="content",m="dx-row",g="dx-freespace-row",_="dx-column-lines",v="infinite",w="virtual",x=25e4,y=function(e){return e.option("scrolling.mode")===w},b=function(e){return e.option("scrolling.mode")===v},C=function(){var e=function(e){var t=e._virtualScrollController.beginPageIndex(-1);y(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))};return{init:function(t){var n=this;n.callBase.apply(n,arguments),n._items=[],n._isLoaded=!0,n._virtualScrollController=new a.VirtualScrollController(n.component,{pageSize:function(){return n.pageSize()},totalItemsCount:function(){return n.totalItemsCount()},hasKnownLastPage:function(){return n.hasKnownLastPage()},pageIndex:function(e){return t.pageIndex(e)},isLoading:function(){return t.isLoading()},pageCount:function(){return n.pageCount()},load:function(){return t.load()},updateLoading:function(){e(n)},itemsCount:function(){return n.itemsCount(!0)},items:function(){return t.items()},viewportItems:function(e){return e&&(n._items=e),n._items},onChanged:function(e){n.changed.fire(e)}})},_handleLoadingChanged:function(e){var t=this;y(t)||(t._isLoading=e,t.callBase.apply(t,arguments))},_handleLoadError:function(){var e=this;e._isLoading=!1,e.loadingChanged.fire(!1),e.callBase.apply(e,arguments)},_handleDataChanged:function(){var e=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(e)},items:function(){return this._items},itemsCount:function(e){return e?this.callBase():this._virtualScrollController.itemsCount()},virtualItemsCount:function(){return this._virtualScrollController.virtualItemsCount()},getViewportItemIndex:function(){return this._virtualScrollController.getViewportItemIndex()},setViewportItemIndex:function(e){return this._virtualScrollController.setViewportItemIndex(e)},viewportSize:function(e){return this._virtualScrollController.viewportSize(e)},pageIndex:function(e){return this._virtualScrollController.pageIndex(e)},beginPageIndex:function(){return this._virtualScrollController.beginPageIndex()},endPageIndex:function(){return this._virtualScrollController.endPageIndex()},load:function(e){return e?this.callBase(e):this._virtualScrollController.load()},loadIfNeed:function(){return this._virtualScrollController.loadIfNeed()},isLoading:function(){return this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},_changeRowExpandCore:function(){var t=this.callBase.apply(this,arguments);return this._virtualScrollController.reset(),e(this),t},reload:function(){return this._dataSource.pageIndex(this.pageIndex()),this.callBase.apply(this,arguments)},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,s=o._dataSource;return(n||i.reload)&&(o._virtualScrollController.reset(),o._isLoaded=!1,e(o),o._isLoaded=!0,b(o)?(o.pageIndex(0),s.pageIndex(0),a.pageIndex=0,a.skip=0):(s.pageIndex(o.pageIndex()),s.paginate()&&(a.skip=o.pageIndex()*o.pageSize()))),o.callBase.apply(o,arguments)}}}(),k=function(){return{init:function(){var e=this,t=e.getController("data");e.callBase(),t.pageChanged.add(function(){e.scrollToPage(t.pageIndex())})},scrollToPage:function(e){var t,n=this,i=n._dataController,o=i?i.pageSize():0;t=y(n)||b(n)?e*n._rowHeight*o:0,n.scrollTo({y:t,x:n._scrollLeft})},_renderCore:function(){var e=this,t=new Date;e.callBase.apply(e,arguments),e._updateContentPosition(),e._renderTime=new Date-t},_renderContent:function(e,t){var n=this,i=n._dataController.virtualItemsCount();return i?(t.addClass(n.addWidgetPrefix(h)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_updateContent:function(e,t){var n,i=this,o=i._findContentElement(),a=t&&t.changeType;if("append"===a||"prepend"===a){n=o.children().first(),e.children("tbody")["append"===a?"appendTo":"prependTo"](n),e.remove();for(var s=i._getFreeSpaceRowElements(n),r=0;r<s.length-1;r++)s.eq(r).remove()}else i.callBase.apply(i,arguments);i._updateBottomLoading()},_updateContentPosition:o.deferUpdater(function(){var e,t,n,i,s,c,d=this,u=d._rowHeight||20,h=d._dataController.virtualItemsCount();if(h){e=d._findContentElement(),n=e.children(),i=n.eq(0),s=n.eq(1),d._contentTableHeight=i[0].offsetHeight,t=(h.begin+h.end+d._dataController.itemsCount())*d._rowHeight;var p=a.getContentHeightLimit(r);t>p?d._heightRatio=p/t:d._heightRatio=1,t=(h.begin+h.end)*u*d._heightRatio+d._contentTableHeight;var f=Math.floor(h.begin*u*d._heightRatio);o.deferRender(function(){l.move(i,{left:0,top:f}),c=d._contentHeight!==t||0===t||!d._isTableLinesDisplaysCorrect(s)||!d._isColumnElementsEqual(i.find("col"),s.find("col")),c&&(d._contentHeight=t,d._renderVirtualTableContent(s,t)),d._scrollTop<f&&!d._isScrollByEvent&&d._dataController.pageIndex()>0&&d.scrollTo({top:f,left:d._scrollLeft})})}}),_isTableLinesDisplaysCorrect:function(e){var t=e.find("."+_).length>0;return t===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&i.each(e,function(e,i){if(i.style.width!==t[e].style.width)return n=!1}),n},_renderVirtualTableContent:function(e,t){var n,i=this,o=i._columnsController.getVisibleColumns(),a=i._createColGroup(o).prop("outerHTML"),s="",r=i.option("showColumnLines")?_:"",l=function(e){return"
",Q="
",Y=66666,Z={},X=g.inherit({_getDefaultOptions:function(){return p(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,mode:"standard",useNative:"auto",removeInvisiblePages:!0},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,layout:0,title:m.format("dxPivotGrid-fieldChooserTitle"),width:600,height:600},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:m.format("dxPivotGrid-columnFieldArea"),rowFieldArea:m.format("dxPivotGrid-rowFieldArea"),filterFieldArea:m.format("dxPivotGrid-filterFieldArea"),dataFieldArea:m.format("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column","export":{enabled:!1,fileName:"PivotGrid",proxyUrl:void 0},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:m.format("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:m.format("dxPivotGrid-grandTotal"),total:m.getFormatter("dxPivotGrid-total"),noData:m.format("dxDataGrid-noDataText"),showFieldChooser:m.format("dxPivotGrid-showFieldChooser"),expandAll:m.format("dxPivotGrid-expandAll"),collapseAll:m.format("dxPivotGrid-collapseAll"),sortColumnBySummary:m.getFormatter("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:m.getFormatter("dxPivotGrid-sortRowBySummary"),removeAllSorting:m.format("dxPivotGrid-removeAllSorting"),exportToExcel:m.format("dxDataGrid-exportToExcel"),dataNotAvailable:m.format("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null})},_setDeprecatedOptions:function(){this.callBase(),p(this._deprecatedOptions,{useNativeScrolling:{since:"15.2",alias:"scrolling.useNative"}})},_getDataControllerOptions:function(){var e=this;return{component:e,dataSource:e.option("dataSource"),texts:e.option("texts"),showRowTotals:e.option("showRowTotals"),showRowGrandTotals:e.option("showRowGrandTotals"),showColumnTotals:e.option("showColumnTotals"),showTotalsPrior:e.option("showTotalsPrior"),showColumnGrandTotals:e.option("showColumnGrandTotals"),dataFieldArea:e.option("dataFieldArea"),rowHeaderLayout:e.option("rowHeaderLayout"),hideEmptySummaryCells:e.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){c.each(t,function(t,n){c.each(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"],function(t,i){void 0===n[i]&&w.setFieldProperty(n,i,e.option(i))})})}}},_initDataController:function(){var e=this;e._dataController&&e._dataController.dispose(),e._dataController=new x.DataController(e._getDataControllerOptions()),e._dataController.changed.add(function(){e._render()}),e._dataController.scrollChanged.add(function(t){e._scrollLeft=t.left,e._scrollTop=t.top}),e._dataController.loadingChanged.add(function(t,n){e._updateLoading(n)}),e._dataController.dataSourceChanged.add(function(){e._trigger("onChanged")});var t=e.option("onExpandValueChanging");t&&e._dataController.expandValueChanging.add(function(e){t(e)})},_init:function(){var e=this;e.callBase(),e._initDataController(),e._scrollLeft=e._scrollTop=null,e._initActions()},_initActions:function(){var e=this;e._actions={onChanged:e._createActionByOption("onChanged"),onContextMenuPreparing:e._createActionByOption("onContextMenuPreparing"),onCellClick:e._createActionByOption("onCellClick"),onExporting:e._createActionByOption("onExporting"),onExported:e._createActionByOption("onExported"),onFileSaving:e._createActionByOption("onFileSaving"),onCellPrepared:e._createActionByOption("onCellPrepared")}},_trigger:function(e,t){this._actions[e](t)},_optionValuesEqual:function(e,t,n){return"dataSource"===e&&n instanceof y&&t instanceof y?n===t:this.callBase.apply(this,arguments)},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":t._initDataController(),t._fieldChooserPopup.hide(),t._renderFieldChooser(),t._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":break;case"rtlEnabled":t.callBase(e),t._renderFieldChooser(),t._renderContextMenu(),t._renderLoadPanel(t._dataArea.groupElement(),t.element()),t._invalidate();break;case"export":t._renderDescriptionArea();break;case"onExpandValueChanging":break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":t._actions[e.name]=t._createActionByOption(e.name);break;case"fieldChooser":t._renderFieldChooser(),t._renderDescriptionArea();break;case"loadPanel":t._renderLoadPanel(t._dataArea.groupElement(),t.element()),t._invalidate();break;case"fieldPanel":t._renderDescriptionArea(),t._invalidate();break;case"showBorders":t._tableElement().toggleClass(F,!!e.value),t.updateDimensions();break;case"wordWrapEnabled":t._tableElement().toggleClass("dx-word-wrap",!!e.value),t.updateDimensions();break;case"rowHeaderLayout":t._tableElement().find("."+O).toggleClass("dx-area-tree-view","tree"===e.value),t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"height":case"width":t._hasHeight=null,t.callBase(e),t.resize();break;default:t.callBase(e)}},_updateScrollPosition:function(e,t,n){var i,o,a=this,s=a._scrollTop||a._scrollLeft;t&&!t.hasScroll()&&a._hasHeight&&(a._scrollTop=null),e&&!e.hasScroll()&&(a._scrollLeft=null),(null!==a._scrollTop||null!==a._scrollLeft||s||a.option("rtlEnabled"))&&(i=a._scrollTop||0,o=a._scrollLeft||0,n.scrollTo({x:o,y:i}),e.scrollTo(o),t.scrollTo(i),a._dataController.updateWindowScrollPosition(a._scrollTop))},_subscribeToEvents:function(e,t,n){var i=this,o=function(o){var a=o.scrollOffset,s=E(a.left)?a.left:i._scrollLeft,r=E(a.top)&&i._hasHeight?a.top:i._scrollTop;(i._scrollLeft||0)===(s||0)&&(i._scrollTop||0)===(r||0)||(i._scrollLeft=s,i._scrollTop=r,i._updateScrollPosition(e,t,n),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop))};c.each([e,t,n],function(e,t){a(t,o)}),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(n.groupElement())},_clean:h.noop,_needDelayResizing:function(e){var t=e.length*(e.length?e[0].length:0);return t>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var e=this,t=e._pivotGridContainer,n=e.option("fieldChooser")||{},i={layout:n.layout,texts:n.texts||{},dataSource:e.getDataSource(),width:void 0,height:void 0},o={shading:!1,title:n.title,width:n.width,height:n.height,showCloseButton:!0,resizeEnabled:!0,minWidth:n.minWidth,minHeight:n.minHeight,onResize:function(e){e.component.content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(t){e._createComponent(t.component.content(),I,i)}};e._fieldChooserPopup?(e._fieldChooserPopup.option(o),e._fieldChooserPopup.content().dxPivotGridFieldChooser(i)):e._fieldChooserPopup=e._createComponent(c(Q).addClass(q).appendTo(t),A,o)},_renderContextMenu:function(){var e=this,t=e._pivotGridContainer;e._contextMenu&&e._contextMenu.element().remove(),e._contextMenu=e._createComponent(c(Q).appendTo(t),B,{onPositioning:function(t){var n,i,o,a=t.jQueryEvent;if(t.cancel=!0,a&&(n=a.target.cellIndex>=0?a.target:c(a.target).closest("td").get(0)))return i=e._createEventArgs(n,a),o=e._getContextMenuItems(i),o?(t.component.option("items",o),void(t.cancel=!1)):void 0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:H,target:e.element()})},_getContextMenuItems:function(e){var t=this,n=[],i=t.option("texts");if("row"===e.area||"column"===e.area){var o=e[e.area+"Fields"],a=e["column"===e.area?"rowFields":"columnFields"],s=e.cell.path&&o[e.cell.path.length-1],r=t.getDataSource();if(s&&s.allowExpandAll&&e.cell.path.length<e[e.area+"Fields"].length&&(n.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){r.expandAll(s.index)}}),n.push({text:i.collapseAll,icon:"none",onItemClick:function(){r.collapseAll(s.index)}})),e.cell.isLast){var l=0;c.each(a,function(t,o){o.allowSortingBySummary&&c.each(e.dataFields,function(t,a){if(!E(e.cell.dataIndex)||e.cell.dataIndex===t){var s=!E(e.cell.dataIndex)&&e.dataFields.length>1,c="column"===e.area?i.sortColumnBySummary:i.sortRowBySummary,d=w.findField(e.dataFields,o.sortBySummaryField)===t&&(e.cell.path||[]).join("/")===(o.sortBySummaryPath||[]).join("/"),h=u.format(c,s?o.caption+" - "+a.caption:o.caption);n.push({beginGroup:0===l,icon:d?"desc"===o.sortOrder?"sortdowntext":"sortuptext":"none",text:h,onItemClick:function(){r.field(o.index,{sortBySummaryField:a.caption||a.dataField,sortBySummaryPath:e.cell.path,sortOrder:"desc"===o.sortOrder?"asc":"desc"}),r.load()}}),l++}})}),c.each(a,function(e,t){if(t.allowSortingBySummary&&E(t.sortBySummaryField))return n.push({beginGroup:0===l,icon:"none",text:i.removeAllSorting,onItemClick:function(){c.each(a,function(e,t){r.field(t.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})}),r.load()}}),!1})}}if(t.option("fieldChooser.enabled")&&n.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&n.push({beginGroup:!0,icon:"exportxlsx",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),e.items=n,t._trigger("onContextMenuPreparing",e),n=e.items,n&&n.length)return n},_createEventArgs:function(e,t){var n=this,i=n.getDataSource(),o={rowFields:i.getAreaFields("row"),columnFields:i.getAreaFields("column"),dataFields:i.getAreaFields("data"),jQueryEvent:t};return l(c(e))?p(n._createFieldArgs(e),o):p(n._createCellArgs(e),o)},_createFieldArgs:function(e){var t=c(e).children().data("field"),n={field:t};return h.isDefined(t)?n:{}},_createCellArgs:function(e){var t=c(e),n=e.cellIndex,i=e.parentElement.rowIndex,o=t.closest("table"),a=o.data("data"),s=a&&a[i]&&a[i][n],r={area:o.data("area"),rowIndex:i,columnIndex:n,cellElement:t,cell:s};return r},_handleCellClick:function(e){var t=this,n=t._createEventArgs(e.currentTarget,e),i=n.cell;i&&(n.area||!n.rowIndex&&!n.columnIndex)&&(t._trigger("onCellClick",n),i&&!n.cancel&&E(i.expanded)&&setTimeout(function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](n.area,i.path)}))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:v.renderNoDataText,_renderLoadPanel:v.renderLoadPanel,_updateLoading:function(e){var t,n=this,i=n._dataController.isLoading();n._loadPanel&&(t=n._loadPanel.option("visible"),t||(n._startLoadingTime=new Date),i&&(e?new Date-n._startLoadingTime>=1e3&&n._loadPanel.option("message",Math.floor(100*e)+"%"):n._loadPanel.option("message",n.option("loadPanel.text"))),clearTimeout(n._hideLoadingTimeoutID),t&&!i?n._hideLoadingTimeoutID=setTimeout(function(){n._loadPanel.option("visible",!1),n.element().removeClass(j)}):(n._loadPanel.option("visible",i),n.element().toggleClass(j,!i)))},_renderDescriptionArea:function(){var e,t=this,n=t.element(),i=n.find("."+V),o=c(Q).addClass("dx-pivotgrid-toolbar"),a=t.option("fieldPanel"),s=n.find(".dx-filter-header"),r=n.find(".dx-column-header");e=a.visible&&a.showFilterFields?s:a.visible&&(a.showDataFields||a.showColumnFields)?r:i,r.toggleClass(N,!(!a.visible||!a.showDataFields&&!a.showColumnFields)),s.toggleClass(N,!(!a.visible||!a.showFilterFields)),i.toggleClass("dx-pivotgrid-background",a.visible&&(a.showDataFields||a.showColumnFields||a.showRowFields)),t.element().find(".dx-pivotgrid-toolbar").remove(),o.prependTo(e),t.option("fieldChooser.enabled")&&t._createComponent(c(Q).appendTo(o).addClass("dx-pivotgrid-field-chooser-button"),"dxButton",{icon:"columnchooser",hint:t.option("texts.showFieldChooser"),onClick:function(){t.getFieldChooserPopup().show()}}),t.option("export.enabled")&&t._createComponent(c(Q).appendTo(o).addClass("dx-pivotgrid-export-button"),"dxButton",{icon:"exportxlsx",hint:t.option("texts.exportToExcel"),onClick:function(){t.exportToExcel()}})},_detectHasContainerHeight:function(){var e,t=this,n=t.element();h.isDefined(t._hasHeight)||n.is(":hidden")||(t._pivotGridContainer.addClass("dx-hidden"),e=c(Q).height(Y),n.append(e),t._hasHeight=n.height()!==Y,t._pivotGridContainer.removeClass("dx-hidden"),e.remove())},_renderHeaders:function(e,t,n,i){var o=this,a=o.getDataSource(),s=k.FieldsArea;o._rowFields=o._rowFields||new s(o,"row"),o._rowFields.render(e,a.getAreaFields("row")),o._columnFields=o._columnFields||new s(o,"column"),o._columnFields.render(t,a.getAreaFields("column")),o._filterFields=o._filterFields||new s(o,"filter"),o._filterFields.render(n,a.getAreaFields("filter")),o._dataFields=o._dataFields||new s(o,"data"),o._dataFields.render(i,a.getAreaFields("data")),o.element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var e=this;return c("").css({width:"100%"}).toggleClass(F,!!e.option("showBorders")).toggleClass("dx-word-wrap",!!e.option("wordWrapEnabled")).on(_.addNamespace(f.name,"dxPivotGrid"),"td",e._handleCellClick.bind(e))},_renderDataArea:function(e){var t=this,n=t._dataArea||new b.DataArea(t);return t._dataArea=n,n.render(e,t._dataController.getCellsInfo()),n},_renderRowsArea:function(e){var t=this,n=t._rowsArea||new C.VerticalHeadersArea(t);return t._rowsArea=n,n.render(e,t._dataController.getRowsInfo()),n},_renderColumnsArea:function(e){var t=this,n=t._columnsArea||new C.HorizontalHeadersArea(t);return t._columnsArea=n,n.render(e,t._dataController.getColumnsInfo()),n},_renderContentImpl:function(){var e,t,n,i,o,a,s,r,l,d,u,h,p=this,f=!p._pivotGridContainer;i=!f&&p._tableElement(),i||(p.element().addClass(H).addClass(L).addClass(W),p._pivotGridContainer=c(Q).addClass("dx-pivotgrid-container"),p._renderFieldChooser(),p._renderContextMenu(),e=c(U).addClass(P),t=c(U).addClass(O),n=c(U).addClass(R),i=p._createTableElement(),u=c(U).addClass("dx-data-header"),d=c("
").addClass("dx-filter-header"),l=c(U).addClass("dx-column-header"),r=c(U).addClass(V),c(K).append(d).appendTo(i),c(K).append(u).append(l).appendTo(i),c(K).append(r).append(e).appendTo(i),c(K).addClass(z).append(t).append(n).appendTo(i),p._pivotGridContainer.append(i),p.element().append(p._pivotGridContainer),"tree"===p.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),p.element().addClass(j),p._createComponent(p.element(),S,{dataSource:p.getDataSource(),allowFieldDragging:p.option("fieldPanel.allowFieldDragging")}),o=p._renderDataArea(n),a=p._renderRowsArea(t),s=p._renderColumnsArea(e),o.tableElement().prepend(s.headElement()),f&&(p._renderLoadPanel(o.groupElement().parent(),p.element()),p._renderDescriptionArea(),a.processScroll(),s.processScroll()),h=function(){p.updateDimensions().done(function(){p._subscribeToEvents(s,a,o)})},p._renderHeaders(r,l,d,u),p._needDelayResizing(o.getData())&&f?setTimeout(h):h()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(e){var t=this;return"column"===e?t._columnsArea.getScrollPath(t._scrollLeft):t._rowsArea.getScrollPath(t._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(e){var t=this;return"column"===e?t._columnsArea.hasScroll():t._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(e){e&&this.updateDimensions()},_dispose:function(){var e=this;clearTimeout(e._hideLoadingTimeoutID),e.callBase.apply(e,arguments),e._dataController&&e._dataController.dispose()},_tableElement:function(){return this.element().find("table").first()},addWidgetPrefix:function(e){return"dx-pivotgrid-"+e},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var e,t,n,a,l,d,u,p,f,m,g,_,v,x,y,b,C=this,k=C._tableElement(),I=C._rowsArea,S=C._columnsArea,D=C._dataArea,T=0,E=0,A=0,B=s(C.option("scrolling.useNative")),F=B.scrollBarWidth,H=k.find("."+R),L=k.find("."+O),z=k.find("."+P),W=k.find("."+V),$=k.find(".dx-filter-header"),q=C._rowFields,j=q.isVisible()&&"tree"!==C.option("rowHeaderLayout"),K=c.Deferred();return C._detectHasContainerHeight(),D.headElement().length||D.tableElement().prepend(S.headElement()),j&&(I.updateColspans(q.getColumnsCount()),I.tableElement().prepend(q.headElement())),k.addClass(G),D.reset(),I.reset(),S.reset(),q.reset(),h.deferUpdate(function(){d=D.getColumnsWidth(),y=I.getRowsHeight(),a=j?y.slice(1):y,n=D.getRowsHeight(),v=W.outerHeight()+(j?y[0]:0),b=C._dataController.getColumnsInfo().length,l=w.mergeArraysByMaxValue(a,n.slice(b)),x=n.slice(0,b),_=i(x),u=I.getColumnsWidth(),C._hasHeight&&(p=r([z,H,k,k.find(".dx-column-header"),$],"height"),t=C.element().height()-$.height()-k.find(".dx-data-header").height()-(Math.max(D.headElement().height(),z.height(),v)+p)),T=D.tableElement().width(),E=i(l),A=i(u),g=C.element().width(),p=r([L,H,k],"width"),e=g-A-p,e=e>0?e:T,f=C._hasHeight&&E-t>=1,m=T-e>=1,f||(t=E+(m?F:0)),h.deferRender(function(){if(S.tableElement().append(D.headElement()),q.tableElement().append(I.headElement()),!m&&f&&F&&(o(d,F),T-=F),v>_&&(o(x,_-v),S.setRowsHeight(x)),k.removeClass(G),S.groupWidth(e),S.processScrollBarSpacing(f?F:0),S.setColumnsWidth(d),I.groupHeight(C._hasHeight?t:"auto"),I.processScrollBarSpacing(m?F:0),I.setColumnsWidth(u),I.setRowsHeight(l),D.setColumnsWidth(d),D.setRowsHeight(l),D.groupWidth(e),D.groupHeight(C._hasHeight?t:"auto"),j&&q.setColumnsWidth(u),H.toggleClass(N,!f),L.toggleClass(N,!f),!C._hasHeight&&g!==C.element().width()){var n=g-C.element().width();m||(o(d,n),S.setColumnsWidth(d),D.setColumnsWidth(d)),D.groupWidth(e-n),S.groupWidth(e-n)}if("virtual"===C.option("scrolling.mode")&&!C._dataController.isEmpty()){var i=C._dataController.calculateVirtualContentParams({contentWidth:T,contentHeight:E,rowCount:l.length,columnCount:d.length,viewportWidth:e,viewportHeight:C._hasHeight?t:c(window).outerHeight()});D.setVirtualContentParams({top:i.contentTop,left:i.contentLeft,width:i.width,height:i.height}),I.setVirtualContentParams({top:i.contentTop,width:A,height:i.height}),S.setVirtualContentParams({left:i.contentLeft,width:i.width,height:S.groupElement().height()})}var a=[];D.processScroll(B.scrollBarUseNative),c.each([S,I,D],function(e,t){a.push(t&&t.updateScrollable())}),C._updateLoading(),C._renderNoDataText(H),M.apply(c,a).done(function(){C._updateScrollPosition(S,I,D),K.resolve()})})}),K},applyPartialDataSource:function(e,t,n){this._dataController.applyPartialDataSource(e,t,n)}}).inherit(D).include(T);d("dxPivotGrid",X),e.exports=X},function(e,t,n){function i(e){var t=function(n,i,o,a,r,l){function c(e,s,r){f(t(n,i,o,a,s,r)).done(e.resolve)}a=a||[],n=n||[];var d,u,h,p;for(r=r||0,u=r;u<n.length;u++){if(e&&u>r&&u%1e4===0&&new Date-g>=300)return g=new Date,h=s.Deferred(),setTimeout(c(h,u,!1),0),h;if(d=n[u],!l){if(a.unshift(d),o&&i(a,u)===!1)return;if(d.children&&(p=t(d.children,i,o,a),e&&p))return h=s.Deferred(),p.done(c(h,u,!0)),h}if(l=!1,!o&&i(a,u)===!1)return;a.shift(),n[u]!==d&&u--}};return t}function o(e){return s.map(["year","quarter","month"],function(t,n){return c({},e,{groupInterval:t,groupIndex:n})})}function a(e,t,n,i){var c=[];return s.each(t||[],function(t,s){for(var d,u=1,h=n.length?n+"."+t:t,p=i[h],f=l.compileGetter(h);!r.isDefined(s)&&e[u];)s=f(e[u]),u++;!p&&r.isDefined(s)&&(p=r.type(s)),d=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?d=d.concat(o(d[0])):"object"===p&&(d=a(e,s,h,i)),c.push.apply(c,d)}),c}var s=n(9),r=n(14),l=n(50),c=n(11).extend,d=n(33),u=n(67),h=n(154),p=n(159),f=n(16).when,m=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 s.ajax(e)};var g=new Date;t.foreachTree=i(!1),t.foreachTreeAsync=i(!0),t.findField=function(e,t){var n,i;if(e&&r.isDefined(t))for(n=0;n<e.length;n++)if(i=e[n],i.name===t||i.caption===t||i.dataField===t||i.index===t)return n;return-1},t.formatValue=function(e,t){var n={value:e,valueText:u.format(e,t.format,t.precision)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0;return e(t)>e(n)?i=1:e(t)<e(n)&&(i=-1),i}},t.createPath=function(e){var t,n=[];for(t=e.length-1;t>=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,s;for(i=i||0,o=o||"children",t.length&&n(t,i),s=0;s<t.length;s++)a=t[s],a[o]&&a[o].length&&e(a[o],n,i+1,o)},t.mergeArraysByMaxValue=function(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push(Math.max(e[n]||0,t[n]||0));return i},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:s.each(o,function(e,t){i=Math.max(i,t.length)});n[i+1]&&n[i].expanded;)i++;return i},t.discoverObjectFields=function(e,n){var i=t.getFieldsDataType(n);return a(e,e[0],"",i)},t.getFieldsDataType=function(e){var t={};return s.each(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var _={month:function(e){return d.getMonthNames()[e-1]},quarter:function(e){return d.format(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return d.getDayNames()[e]}};t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||m(e,"format",_[e.groupInterval]);else if("number"===e.dataType){var t=r.isNumeric(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&m(e,"customizeText",function(n){var i=n.value+t,o=u.format(i,e.format,e.precision);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push(c({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.storeDrillDownMixin={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return i?n=i[e](t):(n=s.Deferred(),f(o).done(function(o){i=new p(o),i[e](t).done(n.resolve).fail(n.reject)}).fail(n.reject)),n}}var i,o=this.getDrillDownItems(e,t),a=new h.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()});return a}},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var i=n(9),o=n(16).when,a=n(11).extend,s=n(26).inArray,r=n(25),l=n(18),c=n(14),d=n(396),u=n(376),h=n(453),p=n(451),f=p.foreachTree,m=p.foreachTreeAsync,g=p.createPath,_=p.formatValue,v=Math,w="GT",x="T",y="D",b="#N/A",C=function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})};t.DataController=r.inherit(function(){function e(e,t,n){var i=e.text;return c.isDefined(e.displayText)?i=e.displayText:c.isDefined(e.caption)?i=e.caption:e.type===w&&(i=n.texts.grandTotal),e.isAdditionalTotal&&(i=l.format(n.texts.total||"",i)),i}function t(e,t,n){return e===b?n:_(e,t)}function n(e,t){var n=[];return i.each(e,function(e,i){var o=p.findField(t,i.sortBySummaryField);o>=0&&n.push((i.sortBySummaryPath||[]).concat([o]))}),n}function r(e,t){for(var n=0,i=[],o=0;o<e.length;o++)for(var a=0;a<e[o].length;a++){var s=(e[o][a].rowspan||1)-1,r=o+s;if(i[o]&&(n-=i[o],i[o]=0),t(e[o][a],r,o,a,n)===!1)break;i[o+(e[o][a].rowspan||1)]=(i[o+(e[o][a].rowspan||1)]||0)+1,n++}}function k(e,t,n,i,o,a){n=n||0,i=i||[],a=a||[],i[n]=i[n]||0;var s=e[n],r=a[n]+1||0,l=0;if(s){for(var c=r;c<s.length;c++){var d=s[c],u=c+i[n],h=d.colspan||1;if(k(e,t,n+(d.rowspan||1),i,h,a),i[n]+=h-1,l+=h,d.rowspan)for(var p=n+1;p<n+d.rowspan;p++)i[p]=i[p]||0,i[p]+=d.colspan||1;if(t(d,u,n,c)===!1)break;if(void 0!==o&&l>=o)break}a[n]=c}}function I(e,n,i,o,a,s){var l=[],c="row"===a,d=i.values;return d.length&&r(e,function(e,a){var r=l[a]=[],u=d[e.dataSourceIndex>=0?e.dataSourceIndex:i.grandTotalRowIndex]||[];

e.isLast&&k(n,function(n,a){var l=(c?e.dataIndex:n.dataIndex)||0,d=o[l];if(n.isLast&&d){var h,p=u[n.dataSourceIndex>=0?n.dataSourceIndex:i.grandTotalColumnIndex];Array.isArray(p)||(p=[p]),h=p[l],r[a]={text:t(h,d,s),value:h,format:d.format,precision:d.precision,dataType:d.dataType,columnType:n.type,rowType:e.type,rowPath:e.path||[],columnPath:n.path||[],dataIndex:l},d.width&&(r[a].width=d.width)}})}),l}function S(e,t){var n=0,i=[];return f(e,function(e){var o=e[0],s=g(e);if(!o.children||t.showTotals!==!1){var r=a(!0,{},o,{visibleIndex:n++,path:s});c.isDefined(r.index)?i[r.index]=r:i.push(r)}}),i}function D(e,t,n){if(t&&"virtual"===t.option("scrolling.mode"))return new d.VirtualScrollController(t,a({hasKnownLastPage:function(){return!0},pageCount:function(){return v.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return e.isLoading()},changingDuration:function(){return e._changingDuration||0}},n))}function T(e){var t=[];return i.each(e,function(e,n){n.showTotals===!1&&t.push(e)}),t}function E(e){var t=[];return e.forEach(function(e,n){(void 0===e.showValues&&e.showTotals===!1||e.showValues===!1)&&t.push(n)}),t}function A(e,t){var n=[];return i.each(e,function(e,t){t.showGrandTotals===!1&&n.push(e)}),0===t.length&&n.length===e.length&&(n=[]),n}var B=function(){function t(e,t,n){var i=e[t]=e[t]||[],o=i[n]={};if(e[t+1]){o.children=e[t+1];for(var a=t+1;a<e.length;a++)e[a]=void 0;e.length=t+1}return o}function n(e,n){var a,s=n&&n.length||0,r=[],l=i.Deferred();return o(m(e,function(e,n){var i=e[0],o=g(e);a=t(r,o.length,n),a.type=y,a.value=i.value,a.path=o,a.text=i.text,a.index=i.index,a.displayText=i.displayText,a.key=i.key,a.isEmpty=i.isEmpty,o.length<s&&(!i.children||0!==i.children.length)&&(a.expanded=!!i.children)})).done(function(){l.resolve(t(r,0,0).children||[])}),l}var r=function(e){var t=0;return f(e,function(e){t=v.max(t,e.length)}),t},l=function(e,t,n,i){var o={type:e.type,text:e.text};return e.path&&(o.path=e.path),e.width&&(o.width=e.width),c.isDefined(e.wordWrapEnabled)&&(o.wordWrapEnabled=e.wordWrapEnabled),e.isLast&&(o.isLast=!0),e.sorted&&(o.sorted=!0),e.isMetric&&(o.dataIndex=e.dataIndex),c.isDefined(e.expanded)&&(o.expanded=e.expanded),t>1&&(o[n?"colspan":"rowspan"]=t),e.depthSize&&e.depthSize>1&&(o[n?"rowspan":"colspan"]=e.depthSize),e.index>=0&&(o.dataSourceIndex=e.index),i&&e.children&&e.children.length&&!e.children[0].isMetric&&(o.width=null,o.isWhiteSpace=!0),o},d=function(e,t){var n,i=t.lastIndex-t.index||1,o=function(e,t,n,i,o){for(var a=o?i:n;!e[a];)e.push([]);o?e[a].push(t):e[a].unshift(t)};return n=l(t.headerItem,i,t.isHorizontal,t.isTree),o(e,n,t.index,t.depth,t.isHorizontal),t.headerItem.children&&0!==t.headerItem.children.length?t.lastIndex:t.lastIndex+1},u=function(e,t){var n,o=e[0],a=c.isString(t[0]),s=o.dataIndex>=0?e[1]:o;return n=a&&t[0].indexOf("&[")!==-1&&s.key||!s.key?g(e):i.map(e,function(e){return e.dataIndex>=0?e.value:e.text}).reverse(),o.type===w&&(n=n.slice(1)),n.join("/")===t.join("/")},h=function(t,a,r,l,d){var h=r.length,f=n(t,a),g=d.dataFields,v=i.Deferred();return o(f).done(function(t){d.notifyProgress(.5),(d.showGrandTotals||0===a.length)&&t[d.showTotalsPrior?"unshift":"push"]({type:w,isEmpty:d.isEmptyGrandTotal});var n=d.showTotals===!1||g.length>0&&g.length===d.hiddenTotals.length,f=g.length>0&&d.hiddenValues.length===g.length;f&&n&&(l=1),n&&"tree"!==d.layout||_(t,a,d.showTotalsPrior,"tree"===d.layout),o(m(t,function(e){var t=e[0];t.children&&0!==t.children.length||(t.depthSize=l-e.length+1)})).done(function(){h>1&&p(t,r,d),!d.showEmpty&&C(t),d.notifyProgress(.75),o(m(t,function(n){var o=n[0],l=o.isMetric,h=a[n.length-1]||{};if(o.type!==y||l||(o.width=h.width),f===!0&&o.type===y){var p=(n[1]?n[1].children:t)||[];return void p.splice(s(o,p),1)}l?o.wordWrapEnabled=r[o.dataIndex].wordWrapEnabled:o.wordWrapEnabled=h.wordWrapEnabled,o.isLast=!o.children||!o.children.length,o.isLast&&i.each(d.sortBySummaryPaths,function(e,t){if(c.isDefined(o.dataIndex)||(t=t.slice(0),t.pop()),u(n,t))return o.sorted=!0,!1}),o.text=e(o,h,d)})).done(function(){t.length||t.push({}),d.notifyProgress(1),v.resolve(t)})})}),v},p=function(e,t,n){f(e,function(e){var i,o=e[0];if(!o.children||0===o.children.length)for(o.children=[],i=0;i<t.length;i++){var a=o.type===w,r=o.type===x,l=o.type===y,c=t[i].visible===!1||a&&s(i,n.hiddenGrandTotals)!==-1||r&&s(i,n.hiddenTotals)!==-1||l&&s(i,n.hiddenValues)!==-1;c||o.children.push({caption:t[i].caption,path:o.path,type:o.type,value:i,index:o.index,dataIndex:i,isMetric:!0,isEmpty:o.isEmpty&&o.isEmpty[i]})}})},_=function(e,t,n,i){n=n||i,f(e,function(o,s){var r=o[0],l=(o[1]?o[1].children:e)||[],c=t[o.length-1];r.type===y&&r.expanded&&(c.showTotals!==!1||i)&&(s!==-1&&l.splice(n?s:s+1,0,a({},r,{children:null,type:x,expanded:!!n||null,isAdditionalTotal:!0})),n&&(r.expanded=null))})},b=function(e,t){var n=e[t+1];!e[t].children.length&&n&&n.children&&(n.children.splice(s(e[t],n.children),1),b(e,t+1))},C=function(e){f([{children:e}],function(t,n){var i=t[0],o=(t[1]?t[1].children:e)||[];i&&!i.children&&(i.isEmpty&&i.isEmpty.length?i.isEmpty[0]:i.isEmpty)&&(o.splice(n,1),b(t,1))})},k=function(e,t,n,i,o){var a,s,r=0,l=[0];f(t,function(t){var c=t[0];for(s=c.isMetric?n:t.length-1;l.length-1<s;)l.push(l[l.length-1]);a=l[s]||0,r=d(e,{headerItem:c,index:a,lastIndex:r,depth:s,isHorizontal:i,isTree:o}),l.length=s,l.push(r)})};return function(e,t,n,o,a){var s=[],l=r(e)||1,c=i.Deferred();return h(e,t,n,l,a).done(function(e){k(s,e,l,o,"tree"===a.layout),a.notifyProgress(1),c.resolve(s)}),c}}(),M={ctor:function(e){var t=this,n=t._fireChanged.bind(t);e=t._options=e||{},t.dataSourceChanged=i.Callbacks(),t._dataSource=t._createDataSource(e),t._rowsScrollController=D(t,e.component,{totalItemsCount:function(){return t.totalRowCount()},pageIndex:function(e){return t.rowPageIndex(e)},pageSize:function(){return t.rowPageSize()},load:function(){return t._rowsScrollController.pageIndex()>=this.pageCount()&&t._rowsScrollController.pageIndex(this.pageCount()-1),t._rowsScrollController.handleDataChanged(n)}}),t._columnsScrollController=D(t,e.component,{totalItemsCount:function(){return t.totalColumnCount()},pageIndex:function(e){return t.columnPageIndex(e)},pageSize:function(){return t.columnPageSize()},load:function(){return t._columnsScrollController.pageIndex()>=this.pageCount()&&t._columnsScrollController.pageIndex(this.pageCount()-1),t._columnsScrollController.handleDataChanged(n)}}),t._stateStoringController=new u.StateStoringController(e.component).init(),t._columnsInfo=[],t._rowsInfo=[],t._cellsInfo=[],t.expandValueChanging=i.Callbacks(),t.loadingChanged=i.Callbacks(),t.scrollChanged=i.Callbacks(),t.load(),t._update(),t.changed=i.Callbacks()},_fireChanged:function(){var e=this,t=new Date;e.changed&&!e._lockChanged&&e.changed.fire(),e._changingDuration=new Date-t},load:function(){var e=this,t=this._stateStoringController;t.isEnabled()&&!t.isLoaded()?t.load().always(function(t){t?e._dataSource.state(t):e._dataSource.load()}):e._dataSource.load()},calculateVirtualContentParams:function(e){var t,n,i,o,a=this,s=a._rowsScrollController,r=a._columnsScrollController,l=e.contentHeight/e.rowCount,d=e.contentWidth/e.columnCount;if(s&&r)return t=r.viewportItemSize(),n=s.viewportItemSize(),s.viewportItemSize(l),r.viewportItemSize(d),s.viewportSize(e.viewportHeight/s.viewportItemSize()),s.setContentSize(e.contentHeight),r.viewportSize(e.viewportWidth/r.viewportItemSize()),r.setContentSize(e.contentWidth),c.deferUpdate(function(){r.loadIfNeed(),s.loadIfNeed()}),i=r.getViewportPosition()*d/t,o=s.getViewportPosition()*l/n,a.setViewportPosition(i,o),a.scrollChanged.fire({left:i,top:o}),{contentTop:s.getContentOffset(),contentLeft:r.getContentOffset(),width:r.getVirtualContentSize(),height:s.getVirtualContentSize()}},setViewportPosition:function(e,t){this._rowsScrollController.setViewportPosition(t||0),this._columnsScrollController.setViewportPosition(e||0)},subscribeToWindowScrollEvents:function(e){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(e)},updateWindowScrollPosition:function(e){this._rowsScrollController&&this._rowsScrollController.scrollTo(e)},updateViewOptions:function(e){a(this._options,e),this._update()},_handleExpandValueChanging:function(e){this.expandValueChanging.fire(e)},_handleLoadingChanged:function(e,t){this.loadingChanged.fire(e,t)},_handleFieldsPrepared:function(e){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(e)},_createDataSource:function(e){var t,n=this,i=e.dataSource;return n._isSharedDataSource=i instanceof h,t=n._isSharedDataSource?i:new h(i),n._expandValueChangingHandler=n._handleExpandValueChanging.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._fieldsPreparedHandler=n._handleFieldsPrepared.bind(n),n._changedHandler=function(){n._update(),n.dataSourceChanged.fire()},t.on("changed",n._changedHandler),t.on("expandValueChanging",n._expandValueChangingHandler),t.on("loadingChanged",n._loadingChangedHandler),t.on("fieldsPrepared",n._fieldsPreparedHandler),t},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},isEmpty:function(){var e=this._dataSource.getAreaFields("data"),t=this._dataSource.getData();return!e.length||!t.values.length},_update:function(){var e=this,t=e._dataSource,i=e._options,a=t.getAreaFields("column"),s=t.getAreaFields("row"),r=t.getAreaFields("data"),l="row"===i.dataFieldArea?r:[],d="row"!==i.dataFieldArea?r:[],u=t.getData(),h=T(r),p=E(r),f=A(r,a),m=!(r.length>0)||f.length!==r.length,g=function(e){this.progress=e,t._changeLoadingCount(0,.8+.1*_.progress+.1*v.progress)},_={isEmptyGrandTotal:u.isEmptyGrandTotalRow,texts:i.texts||{},hiddenTotals:h,hiddenValues:p,hiddenGrandTotals:[],showTotals:i.showRowTotals,showGrandTotals:i.showRowGrandTotals!==!1&&m,sortBySummaryPaths:n(a,r),showTotalsPrior:"rows"===i.showTotalsPrior||"both"===i.showTotalsPrior,showEmpty:!i.hideEmptySummaryCells,layout:i.rowHeaderLayout,fields:s,dataFields:r,progress:0,notifyProgress:g},v={isEmptyGrandTotal:u.isEmptyGrandTotalColumn,texts:i.texts||{},hiddenTotals:h,hiddenValues:p,hiddenGrandTotals:f,showTotals:i.showColumnTotals,showTotalsPrior:"columns"===i.showTotalsPrior||"both"===i.showTotalsPrior,showGrandTotals:i.showColumnGrandTotals!==!1&&m,sortBySummaryPaths:n(s,r),showEmpty:!i.hideEmptySummaryCells,fields:a,dataFields:r,progress:0,notifyProgress:g};c.isDefined(u.grandTotalRowIndex)||(u.grandTotalRowIndex=S(u.rows,_).length),c.isDefined(u.grandTotalColumnIndex)||(u.grandTotalColumnIndex=S(u.columns,v).length),t._changeLoadingCount(1,.8),o(B(u.columns,a,d,!0,v),B(u.rows,s,l,!1,_)).always(function(){t._changeLoadingCount(-1)}).done(function(t,n){e._columnsInfo=t,e._rowsInfo=n,e._rowsScrollController&&e._columnsScrollController&&e.changed&&(e._rowsScrollController.reset(),e._columnsScrollController.reset(),e._lockChanged=!0,e._rowsScrollController.load(),e._columnsScrollController.load(),e._lockChanged=!1)}).done(function(){e._fireChanged(),e._stateStoringController.isEnabled()&&!e._dataSource.isLoading()&&(e._stateStoringController.state(e._dataSource.state()),e._stateStoringController.save())})},getRowsInfo:function(e){var t,n,i=this,o=i._rowsInfo,s=i._rowsScrollController;if(s&&!e){var l=s.beginPageIndex()*i.rowPageSize(),c=s.endPageIndex()*i.rowPageSize()+i.rowPageSize(),d=[],u=1;return r(o,function(e,i,o,s,r){var h=i>=l&&o<c,p=o<l?0:o-l,f=e;if(h)d[p]=d[p]||[],t=o<l?e.rowspan-(l-o)||1:e.rowspan,l+p+t>c&&(t=c-(p+l)||1),t!==e.rowspan&&(f=a({},f,{rowspan:t})),d[p].push(f),u=v.max(u,r+1);else if(n>c)return!1}),r(d,function(e,t,n,i,o){var s=e.colspan||1;o+s>u&&(d[n][i]=a({},e,{colspan:u-o||1}))}),d}return o},getColumnsInfo:function(e){var t=this,n=t._columnsInfo,i=t._columnsScrollController;if(i&&!e){var o=i.beginPageIndex()*t.columnPageSize(),s=i.endPageIndex()*t.columnPageSize()+t.columnPageSize(),r=[];k(n,function(e,t,n){var i,l=e,c=l.colspan||1,d=t+c-1>=o&&t<s;if(r[n]=r[n]||[],d)t<o?(i=c-(o-t),t=o):i=c,t+i>s&&(i=s-t),i!==c&&(l=a({},l,{colspan:i})),r[n].push(l);else if(t>s)return!1});for(var l=0;l<r.length;l++)r[l]=r[l]||[];n=r}return n},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(e){return void 0!==e&&(this._rowPageIndex=e),this._rowPageIndex||0},totalColumnCount:function(){var e=0;if(this._columnsInfo&&this._columnsInfo.length)for(var t=0;t<this._columnsInfo[0].length;t++)e+=this._columnsInfo[0][t].colspan||1;return e},rowPageSize:function(e){return void 0!==e&&(this._rowPageSize=e),this._rowPageSize||20},columnPageSize:function(e){return void 0!==e&&(this._columnPageSize=e),this._columnPageSize||20},columnPageIndex:function(e){return void 0!==e&&(this._columnPageIndex=e),this._columnPageIndex||0},getCellsInfo:function(e){var t=this.getRowsInfo(e),n=this.getColumnsInfo(e),i=this._dataSource.getData(),o=this._options.texts||{};return I(t,n,i,this._dataSource.getAreaFields("data"),this._options.dataFieldArea,o.dataNotAvailable)},dispose:function(){var e=this;e._isSharedDataSource?(e._dataSource.off("changed",e._changedHandler),e._dataSource.off("expandValueChanging",e._expandValueChangingHandler),e._dataSource.off("loadingChanged",e._loadingChangedHandler)):e._dataSource.dispose(),e._columnsScrollController&&e._columnsScrollController.dispose(),e._rowsScrollController&&e._rowsScrollController.dispose(),e._stateStoringController.dispose(),e.expandValueChanging.empty(),e.changed.empty(),e.loadingChanged.empty(),e.scrollChanged.empty(),e.dataSourceChanged.empty()}};return C(M,"applyPartialDataSource"),C(M,"collapseHeaderItem"),C(M,"expandHeaderItem"),C(M,"getData"),M}())},function(e,t,n){function i(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return u.isString(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",x.titleize(t)+n}function o(e,t){var n=e._initProperties||{};l.each(t,function(t,i){n.hasOwnProperty(i)&&(e[i]=n[i])})}function a(e,t){o(e,t),m(e.caption)||O(e,"caption",i(e))}function s(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function r(e){return e.some(function(e){return!!e.runningTotal})}var l=n(9),c=n(154),d=n(155),u=n(14),h=n(12),p=n(11).extend,f=n(26).inArray,m=u.isDefined,g=l.each,_=n(16).when,v=n(25),w=n(51),x=n(39),y=n(26).normalizeIndexes,b=n(454),C=n(455),k=n(456),I=n(457),S=n(451),D=S.foreachTree,T=S.foreachTreeAsync,E=S.findField,A=S.formatValue,B=S.getCompareFunction,M=S.createPath,R=S.foreachDataLevel,O=S.setFieldProperty,P={row:"rows",column:"columns",data:"values",filter:"filters"},V=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],F=["format","selector","customizeText","caption"],H=F.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=v.inherit(function(){function e(e){var t=e.remoteOperations?C:b.LocalStore;return new t(p(c.normalizeDataSourceOptions(e),{onChanged:null}))}function t(t){var n,i;return h.isPlainObject(t)&&t.load?n=e(t):(t&&!t.store&&(t={store:t}),i=t.store,"xmla"===i.type?n=new k.XmlaStore(i):h.isPlainObject(i)&&i.type||i instanceof d||Array.isArray(i)?n=e(t):i instanceof v&&(n=i)),n}function n(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}function i(e,t,i,o){var a=[],s=t&&t[i]||[],r=o&&o[i]||[];return D(e[i],function(e){var t=e[0],i=M(e);t.children&&s[i.length-1]&&!s[i.length-1].expanded&&i.length<s.length&&(!o||n(s,r,i.length))&&a.push(i.slice())},!0),a}function w(e,t,n,i){return t?g(i,function(i,o){if(n)e[o]=t[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===t[o])return;O(e,o,t[o])}}):o(e,i),e}function x(e,t){var n=[];return g(e,function(e,i){n.push(w({dataField:i.dataField,name:i.name},i,!0,t))}),n}function L(e){return e.name?e.name:e.dataField+""}function z(e,t){var n=[];return g(e||[],function(e,i){L(i)===t&&n.push(i)}),n}function N(e,t){return e=e||[],g(t,function(t,n){w(n,e[t],!1,V),a(n,F)}),t}function W(e,t){e=e||[];var n,i={};return g(t,function(e,o){n=L(o),i[n]||(i[n]=z(t,L(o)))}),g(i,function(t,n){N(z(e,t),n)}),t}function $(e,t){return l.map(e,function(e){return e.groupName===t.groupName&&u.isNumeric(e.groupIndex)&&e.visible!==!1?p(e,{areaIndex:t.areaIndex,area:t.area,expanded:m(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:m(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:m(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals}):null}).sort(function(e,t){return e.groupIndex-t.groupIndex})}function q(e){e.sort(function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex})}function G(e,t){var n="data"===t||e.visible!==!1;return e.area===t&&!m(e.groupIndex)&&n}function j(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function K(e,t,n){var i=[],a={},s={},r=[],l=S.getFieldsDataType(e);return t?(g(t,function(e,t){a[j(t,n)]=t}),g(e,function(e,t){var r,c=j(t,n),d=a[c]||s[c];d?(d._initProperties&&o(d,H),r=p({},d,t,{_initProperties:null})):a[c]=r=t,p(r,{dataType:l[t.dataField]}),delete a[c],s[c]=d,i.push(r)}),n&&g(a,function(e,t){i.push(t)})):i=e,i.push.apply(i,r),i}function U(e){var t,n=l.Deferred(),i=e._store,o=i&&i.getFields(e._fields);return _(o).done(function(i){e._storeFields=i,t=K(e._fields,i,e._retrieveFields),n.resolve(t)}).fail(function(){n.resolve(e._fields)}),n}function Q(e,t){var n=null,i=(t||[]).join(".");return i.length&&D(e,function(e){var t=e[0],o=M(e).join("."),a=l.map(e,function(e){return e.text}).reverse().join(".");if(i===o||t.key&&a===i)return n=e[0].index,!1}),n}function Y(e,t,n,i){var o=t.values,a=E(n.values,e.sortBySummaryField),s="rows"===i,r=s?t.columns:t.rows,l=s?t.grandTotalRowIndex:t.grandTotalColumnIndex,c=e.sortBySummaryPath||[],d=c.length?Q(r,c):l;if(o&&o.length&&a>=0&&m(d))return function(e){var t=s?e.index:d,n=s?d:e.index;return((o[t]||[[]])[n]||[])[a]||null}}function Z(e,t,n,i,o){var a=o?"asc":e.sortOrder,s=o?"value":"displayText"===e.sortBy?"text":"value",r=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:B(function(e){return e[s]}),l=!o&&Y(e,t,n,i),c=l&&B(l),d=function(e,t){var n=c&&c(e,t)||0;return 0===n&&(n=r(e,t)),"desc"===a?-n:n};return d}function X(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,s=[];R(e[n],function(a,r){var l=o[r]||{},c=s[r]=s[r]||Z(l,e,t,n,i);a.sort(c)},a)}function J(e,t,n){X(t,e,"rows",n),X(t,e,"columns",n)}function ee(e,t,n){return T(e[n],function(e){var i=e[0];i.text=i.text||A(i.value,t[n][M(e).length-1])})}function te(e,t){return _(ee(t,e,"columns"),ee(t,e,"rows"))}function ne(e){var t=l.Deferred(),n={};return _(T(e,function(e){var t=M(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function ie(e,t){var n=[];return g(e,function(){G(this,t)&&n.push(this)}),n}var oe=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},ae=function(e,t){var n,i,o=-1;if(e)for(n=0;n<e.length;n++)i=e[n],o=Math.max(o,i.index),i.children?o=Math.max(o,ae(i.children)):i.collapsedChildren&&(o=Math.max(o,ae(i.collapsedChildren)));return m(t)&&(o=Math.max(o,t)),o},se=function(e,t,n,i){var o,a=ae(n)+1,s=ae(e,i)+1,r=[],c=l.Deferred();for(o=0;o<a;o++)r[o]=s++;return t.children=n,_(T(t.children,function(e){e[0].index=r[e[0].index]})).done(function(){c.resolve(r)}),c},re=function(e,t){var n=l.Deferred(),i=[];return _(T(e,function(e){delete e[0].collapsedChildren})).done(function(){_(T(t,function(t){var n=oe(e,M(t));n&&(i[t[0].index]=n.index)})).done(function(){n.resolve(i)})}),n},le=function(e,t,n,i){var o,a,s,r,l,c,d=e.values;if(t)for(o=0;o<=t.length;o++)if(s=t[o],l=n[o],m(l)||(l=e.grandTotalRowIndex),s&&m(l))for(d[l]||(d[l]=[]),a=0;a<=s.length;a++)r=s[a],c=i[a],m(c)||(c=e.grandTotalColumnIndex),m(r)&&m(c)&&(d[l][c]=r)};return{ctor:function(e){e=e||{};var n=this,i=t(e);n._store=i,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,g(["changed","loadError","loadingChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);e.hasOwnProperty(i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!m(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?p(n._createDescriptions(),e.descriptions):void 0,i||p(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n,i=[];return t||"data"===e?(i=ie(this._fields,e),q(i)):(n=this._descriptions||{},i=n[P[e]]||[]),i},fields:function(e){var t=this;return e&&(t._fields=K(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function(e,t){var n,i=this,o=i._fields,s=o&&o[u.isNumeric(e)?e:E(o,e)];return s&&t&&(g(t,function(e,t){var i=f(e,V)<0;if(O(s,e,t,i),"sortOrder"===e){n=s.levels||[];for(var o=0;o<n.length;o++)n[o][e]=t}}),a(s,F),i._descriptions=i._createDescriptions(s)),s},getFieldValues:function(e){var t=this,n=this._fields&&this._fields[e],i=this.store(),o=[],a={columns:o,rows:[],values:this.getAreaFields("data"),filters:[]},s=l.Deferred();return n&&i?(g(n.levels||[n],function(){o.push(p({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null}))}),i.load(a).done(function(e){te(a,e),t._sort(a,e),s.resolve(e.columns)}).fail(s)):s.reject(),s},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){function t(){n._delayedLoadTask=void 0,n._descriptions?n._loadCore(e,i):_(U(n)).done(function(t){n._fieldsPrepared(t),n._loadCore(e,i)}).fail(i.reject).fail(n._loadErrorHandler)}var n=this,i=l.Deferred();return e=e||{},n.beginLoading(),i.progress(function(e){n._changeLoadingCount(0,.8*e)}),i.fail(function(e){n.fireEvent("loadError",[e])}).always(function(){n.endLoading()}),n.store()?n._delayedLoadTask=u.executeAsync(t):t(),i},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this,n=t.fields(),i={rows:[],columns:[],values:[],filters:[]};g(["row","column","data","filter"],function(t,i){y(ie(n,i),"areaIndex",e)}),g(n||[],function(e,t){var o=P[t.area],a=i[o],s=t.groupName;s&&!u.isNumeric(t.groupIndex)&&(t.levels=$(n,t)),!a||s&&u.isNumeric(t.groupIndex)||t.visible===!1&&"data"!==t.area&&"filter"!==t.area||(t.levels&&a!==i.filters&&a!==i.values?(a.push.apply(a,t.levels),t.filterValues&&t.filterValues.length&&i.filters.push(t)):a.push(t))}),g(i,function(e,t){q(t)});var o={};return g(i.values,function(e,t){var a=t.calculateSummaryValue;if(u.isFunction(a)){var s=I.createMockSummaryCell(i,n,o);a(s)}}),i},_fieldsPrepared:function(e){var t=this;t._fields=e,g(e,function(e,t){t.index=e,a(t,H)});var n=x(e,["caption"]);t.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&O(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(e){var t=this;return arguments.length?(e=p({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(t._descriptions?(t._fields=W(e.fields,t._fields),t._descriptions=t._createDescriptions(),t.load(e)):(t.beginLoading(),_(U(t)).done(function(n){t._fields=W(e.fields,n),t._fieldsPrepared(n),t.load(e)}).always(function(){t.endLoading()})))):{fields:x(t._fields,V),columnExpandedPaths:i(t._data,t._descriptions,"columns"),rowExpandedPaths:i(t._data,t._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e,t){var n,i=this.isLoading();this._loadingCount+=e,n=this.isLoading(),(i^n||t)&&this.fireEvent("loadingChanged",[n,t])},_loadCore:function(e,t){var n=this,o=this._store,a=this._descriptions,s=P[e.area];e=e||{},o?(p(e,a),e.columnExpandedPaths=e.columnExpandedPaths||i(this._data,e,"columns",n._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||i(this._data,e,"rows",n._lastLoadOptions),s&&(e.headerName=s),n.beginLoading(),t.always(function(){n.endLoading()}),_(o.load(e)).progress(t.notify).done(function(i){e.path?n.applyPartialDataSource(e.area,e.path,i,t):(p(n._data,i),n._lastLoadOptions=e,n._update(t))}).fail(t.reject)):n._update(t)},_sort:function(e,t,n){var i=this._store;i&&J(e,t,n)},_update:function(e){var t=this,n=t._descriptions,i=t._data,o=n.values,a=s(o);_(te(n,i),ne(i.rows),ne(i.columns)).done(function(){a&&(t._sort(n,i,a),I.applyDisplaySummaryMode(n,i)),t._sort(n,i),r(o)&&I.applyRunningTotal(n,i),t._data=i,_(e).done(function(){t.fireEvent("changed"),m(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),m(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)}),e&&e.resolve(t._data)})},store:function(){return this._store},collapseHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,o=oe(i,t),a=n.getAreaFields(e)[t.length-1];return!(!o||!o.children)&&(n.fireEvent("expandValueChanging",[{area:e,path:t,expanded:!1}]),a&&(a.expanded=!1),o.collapsedChildren=o.children,delete o.children,n._update(),!0)},collapseAll:function(e){var t=!1,n=this.field(e)||{},i=f(n,this.getAreaFields(n.area));n.expanded=!1,D(this._data[n.area+"s"],function(e){var n=e[0],o=M(e);n&&n.children&&i===o.length-1&&(n.collapsedChildren=n.children,delete n.children,t=!0)},!0),t&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,this.load())},expandHeaderItem:function(e,t){var n,i,o=this,a="column"===e?o._data.columns:o._data.rows,s=oe(a,t);return!(!s||s.children)&&(n=!!s.collapsedChildren,i={area:e,path:t,expanded:!0,needExpandData:!n},o.fireEvent("expandValueChanging",[i]),n?(s.children=s.collapsedChildren,delete s.collapsedChildren,o._update()):o.load(i),n)},applyPartialDataSource:function(e,t,n,i){var o,a,s,r=this,l=r._data,c="column"===e?l.columns:l.rows;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],o=oe(c,t),o&&("column"===e?(s=se(c,o,n.columns,l.grandTotalColumnIndex),a=re(l.rows,n.rows)):(a=se(c,o,n.rows,l.grandTotalRowIndex),s=re(l.columns,n.columns)),_(a,s).done(function(e,t){le(l,n.values,e,t),r._update(i)})))},dispose:function(){var e=this,t=e._delayedLoadTask;this._disposeEvents(),t&&t.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()).include(w)},function(e,t,n){var i=n(9),o=n(16).when,a=n(138),s=n(160),r=n(260),l=n(154),c=n(163),d=n(50),u=n(25),h=n(14),p=n(451),f=p.getFiltersByPath,m=p.setFieldProperty,g=n(159);t.LocalStore=u.inherit(function(){function e(e){return e.indexOf(".")!==-1?d.compileGetter(e):function(t){return t[e]}}function t(e){return function(t){var n=e(t);return!n||n instanceof Date||(n=r.deserializeDate(n)),n}}function n(o){i.each(o||[],function(i,o){var a,s,r,l,c=o.dataField,d=o.levels;if(!o.selector){if(l=c?e(c):function(e){return e},d&&n(d),"date"===o.dataType){s=O[o.groupInterval];var u=t(l);a=function(e){var t=u(e);return s?s(t):t}}else"number"===o.dataType?(r=h.isNumeric(o.groupInterval)&&o.groupInterval>0&&o.groupInterval,a=function(e){var t=l(e);return h.isString(t)&&(t=Number(t)),r?Math.floor(t/r)*r:t}):a=l;p.setDefaultFieldValueFormatting(o),m(o,"selector",a)}})}function u(e,t,n,i,o){var a,s,r=t.dimensions[i],l=t.expandedPathsHash;r&&(a=r.selector(t.data),o=void 0!==o?o+"."+a:a+"",s=P(a,n,o,t.childrenHash),e.push(s.index),(l&&l[o]||r.expanded)&&(s.children||(s.children=[]),u(e,t,s.children,i+1,o)))}function _(e,t,n,i){var o=[0],a=t.headerName===i?t.path.length:0,s="rows"===i?t.rowExpandedPaths:t.columnExpandedPaths,r={data:e,childrenHash:n[i+"Hash"],dimensions:t[i],expandedPathsHash:t.headerName!==i&&s&&s.hash};return u(o,r,n[i],a),o}function v(e,t,n,i){var o,a,s,r,l=[],c=_(e,i,n,"rows"),d=_(e,i,n,"columns");for(a=0;a<c.length;a++)for(s=c[a],t[s]=t[s]||[],o=0;o<d.length;o++)r=d[o],l.push(t[s][r]=t[s][r]||[]);return l}function w(e){if(e){var t=e.hash={};e.forEach(function(e){var n=e.map(function(e){return e+""}).join(".");t[n]=!0})}}function x(e){e.rows=e.rows||[],e.columns=e.columns||[],e.filters=e.filters||[],w(e.columnExpandedPaths),w(e.rowExpandedPaths),n(e.columns),n(e.rows),n(e.values),n(e.filters)}function y(e){return"custom"===e.summaryType?(e.calculateCustomSummary=e.calculateCustomSummary||h.noop,{seed:function(){var t={summaryProcess:"start",totalValue:void 0};return e.calculateCustomSummary(t),t},step:function(t,n){return t.summaryProcess="calculate",t.value=n,e.calculateCustomSummary(t),t},finalize:function(t){return t.summaryProcess="finalize",delete t.value,e.calculateCustomSummary(t),t.totalValue}}):a.aggregators[e.summaryType]||a.aggregators.count}function b(e,t,n){for(var i=0;i<e.length;i++)for(var o=e[i],a=o.selector(n),s=y(o),r="function"==typeof s.seed,l=0;l<t.length;l++){var c=t[l];c.length<=i&&(c[i]=r?s.seed():s.seed),void 0===c[i]?c[i]=a:h.isDefined(a)&&(c[i]=s.step(c[i],a))}}function C(e,t){i.each(e,function(e,n){var o=y(n);o.finalize&&i.each(t,function(t,n){i.each(n,function(t,n){n&&void 0!==n[e]&&(n[e]=o.finalize(n[e]))})})})}function k(e,t){var n=e&&e.valueOf(),i=t&&t.valueOf();if(Array.isArray(e)){t=t||[];for(var o=0;o<e.length;o++)if(n=e[o]&&e[o].valueOf(),i=t[o]&&t[o].valueOf(),n!==i)return!1;return!0}return n===i}function I(e,t){var n=[];return i.each(e,function(e,i){n.push(i.selector(t))}),n}function S(e){var t=[];return i.each(e,function(e,n){var i,o=n.filterValues||[],a=n.groupName;a&&h.isNumeric(n.groupIndex)||(i=function(e){for(var t=n.levels?I(n.levels,e):n.selector(e),i=!1,a=0;a<o.length;a++)if(k(o[a],t)){i=!0;break}return"exclude"===n.filterType?!i:i},o.length&&t.push(i))}),t}function D(e){var t=S(e.rows).concat(S(e.columns)).concat(S(e.filters)),n=e[e.headerName],i=e.path;return n&&t.push(function(e){for(var t,o=0;o<i.length;o++)if(t=n[o].selector(e),d.toComparable(t,!0)!==d.toComparable(i[o],!0))return!1;return!0}),function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}}function T(e,t){function n(){for(var i=new Date,u=d;d<e.length;d++){if(d>u&&d%1e4===0&&new Date-i>=300)return c.notify(d/e.length),void setTimeout(n,0);s=e[d],a(s)&&(o=v(s,l,r,t),b(t.values,o,s))}C(t.values,l),c.notify(1),c.resolve({rows:r.rows,columns:r.columns,values:l,grandTotalRowIndex:0,grandTotalColumnIndex:0})}var o,a,s,r={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},l=[],c=i.Deferred(),d=0;return a=D(t),n(),c}function E(e,t){var n=e.filter();return e.store()instanceof c&&n?(n=R(n,t),s(e.items()).filter(n).toArray()):e.items()}function A(e,t,n){var a=i.Deferred(),s=function(n){e.store()instanceof g&&(n.storeLoadOptions.filter=R(n.storeLoadOptions.filter,t))};if(e.on("customizeStoreLoadOptions",s),!e.isLoaded()||n){var r=n?e.load():e.reload();o(r).done(function(){A(e,t).done(function(){a.resolve(E(e,t))}).fail(a.reject)}).fail(a.reject)}else a.resolve(E(e,t));return a.always(function(){e.off("customizeStoreLoadOptions",s)})}function B(n,i){i.forEach(function(i){if(i.dataField&&"date"===i.dataType){var o=t(e(i.dataField));n[i.dataField]=function(e){return o(e)}}})}function M(e){var t={};return Array.isArray(e)?B(t,e):e&&["rows","columns","filters"].forEach(function(n){e[n]&&B(t,e[n])}),t}function R(e,t){if(!Array.isArray(e))return e;e=e.slice(0),h.isString(e[0])&&(e[1]instanceof Date||e[2]instanceof Date)&&(e[0]=t[e[0]]);for(var n=0;n<e.length;n++)e[n]=R(e[n],t);return e}var O={year:function(e){return e&&e.getFullYear();

},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},dayOfWeek:function(e){return e&&e.getDay()}},P=function(e,t,n,i){var o=i[n];return o||(o={value:e,index:i.length++},i[n]=o,t.push(o)),o};return{ctor:function(e){this._dataSource=new l.DataSource(e),this._dataSource.paginate(!1)},getFields:function(e){var t=this,n=t._dataSource,o=i.Deferred();return A(n,M(e)).done(function(t){o.resolve(p.discoverObjectFields(t,e))}).fail(o.reject),o},key:function(){return this._dataSource.key()},load:function(e){var t=this,n=t._dataSource,a=i.Deferred();return x(e),A(n,M(e),e.reload).done(function(t){o(T(t,e)).progress(a.notify).done(a.resolve)}).fail(a.reject),a},filter:function(){var e=this._dataSource;return e.filter.apply(e,arguments)},supportSorting:function(){return!1},getDrillDownItems:function(e,t){e=e||{},t=t||{},x(e);for(var n,i=[],o=this._dataSource.items(),a=t.maxRowCount,s=t.customColumns,r=D(e),l=D({rows:f(e.rows,t.rowPath),columns:f(e.columns,t.columnPath),filters:[]}),c=0;c<o.length;c++){if(l(o[c])&&r(o[c])){if(s){n={};for(var d=0;d<s.length;d++)n[s[d]]=o[c][s[d]]}else n=o[c];i.push(n)}if(a>0&&i.length===a)break}return i}}}()).include(p.storeDrillDownMixin)},function(e,t,n){function i(e){var t=[];return b.each(e,function(n,i){t.push({selector:i.dataField,groupInterval:i.groupInterval,isExpanded:n<e.length-1})}),t}function o(e){var t=e.dataField,n=e.groupInterval;return"date"===e.dataType&&"string"==typeof n&&("quarter"===n.toLowerCase()&&(n="Month"),t=t+"."+T.capitalizeFirstLetter(n)),t}function a(e,t,n,i){var o=[e,i?"<":">=",n],a=[e,i?">=":"<",n+t];return[o,i?"or":"and",a]}function s(e,t){var n=o(e),i="exclude"===e.filterType,s=[n,i?"<>":"=",t];return E(e.groupInterval)&&("string"==typeof e.groupInterval&&"quarter"===e.groupInterval.toLowerCase()?s=a(n,3,3*(t-1)+1,i):"number"==typeof e.groupInterval&&"date"!==e.dataType&&(s=a(n,e.groupInterval,t,i))),s}function r(e,t){var n=[];return t="exclude"===e.filterType?t||"and":t||"or",b.each(e.filterValues,function(i,o){var a=[],l=e.levels?e.levels[i]:e;if(Array.isArray(o)){var c=e.levels&&e.levels.length;c&&(a=r({filterValues:o,filterType:l.filterType,levels:e.levels},"and"))}else a=s(l,o);a.length&&(n.length&&n.push(t),n.push(a))}),n}function l(e){var t=[];return b.each(e,function(e,n){var i=r(n);return i.length?(t.length&&t.push("and"),void t.push(i)):[]}),1===t.length&&(t=t[0]),t}function c(e,t){var n,i=function(e){return e&&e.length};return n=i(e)&&i(t)?[e,"and",t]:i(e)?e:t}function d(e,t){var n=l(e.filters),o=i(e.rows).concat(i(e.columns)),a={groupSummary:[],totalSummary:[],group:o.length?o:void 0,take:o.length?void 0:1};return t&&(n=c(n,t)),n.length&&(a.filter=n),b.each(e.values,function(t,n){var i={selector:n.dataField,summaryType:n.summaryType||"count"};a.groupSummary.push(i),e.includeTotalSummary&&a.totalSummary.push(i)}),a}function u(e,t,n){e=e||[],n=n||0,b.each(e,function(e,i){t(i,n),i.items&&i.items.length&&u(i.items,t,n+1)})}function h(e,t,n,i,o){e[n]=e[n]||[],e[n][i]=e[n][i]||[],E(e[n][i][o])||(e[n][i][o]=t)}function p(e,t,n,i){function o(e,t,n,o){var a,s,r,l,c=i[t+"Hash"],d=n.slice(0,o+1).join("/");return void 0!==c[d]?r=c[d]:(r={value:e.key,index:i[t+"Index"]++},l=n.slice(0,o).join("/"),o>0&&void 0!==c[l]?(a=c[l],s=a.children=a.children||[]):s=i[t+"s"],s.push(r),c[d]=r),r}var a=[],s=[],r=i.rowHash,l=i.columnHash;return t&&t.summary&&b.each(t.summary,function(e,t){h(i.values,t,i.grandTotalRowIndex,i.grandTotalColumnIndex,e)}),u(e,function(e,t){var c,d,u=t>=n.rows.length?n.rows.length:t,p=t>=n.rows.length?t-n.rows.length:0;if(!(t>=n.rows.length&&p>=n.columns.length)){t<n.rows.length&&(s=[]),t>=n.rows.length?(s[p]=e.key+"",c=o(e,"column",s,p),d=r[a.slice(0,u+1).join("/")]):(a[u]=e.key+"",d=o(e,"row",a,u),c=l[s.slice(0,p+1).join("/")]);var f=d&&d.index||i.grandTotalRowIndex,m=c&&c.index||i.grandTotalColumnIndex;b.each(e.summary||[],function(e,t){h(i.values,t,f,m,e)})}}),i}function f(e){return k.grep(e||[],function(e){return e.filterValues&&e.filterValues.length})}function m(e,t){return t===e.headerName?e.path.length:0}function g(e){return A(e[e.headerName],e.path)}function _(e,t,n,i){var o=[],a=n>i?0:i,s=e.headerName!==t?e[t].slice(a,n):[],r="rows"===t?e.rowExpandedPaths:e.columnExpandedPaths;return b.each(s,function(e,t){var i=[];b.each(r,function(t,o){o=o.slice(a,n),e<o.length&&i.push(o[e])}),i.length&&o.push(I({},t,{filterType:"include",filterValues:i}))}),o}function v(e,t,n,i,o,a){var s,r=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[],l="columns"===t?"rows":"columns",c=e[t],d=[];if(r.length)for(var u=n;u<i+1;u++)s={filters:o.concat(_(e,t,u,a))},s[t]=c.slice(n,u+1),s[l]=[],u===i&&(s.includeTotalSummary=!0),d.push(I({},e,s));else s={filters:o,includeTotalSummary:!0},s[t]=c.slice(n,i+1),s[l]=[],d.push(I({},e,s));return d}function w(e){var t=0;return b.each(e,function(e,n){if(!n.expanded)return t=e,!1}),t}function x(e){var t,n=T.getExpandedLevel(e,"rows"),i=T.getExpandedLevel(e,"columns"),o=e.filters||[],a=m(e,"columns"),s=w(e.columns),r=w(e.rows),l=m(e,"rows"),c=[];if(o=o.concat(f(e.rows)).concat(f(e.columns)).concat(g(e)),t=v(e,"columns",a,i,o,s),e.rows.length&&e.columns.length){c=c.concat(t);for(var d=l;d<n+1;d++)for(var u=e.rows.slice(l,d+1),h=_(e,"rows",d,r),p=a;p<i+1;p++){var x=I({},e,{columns:e.columns.slice(a,p+1),rows:u,filters:o.concat(_(e,"columns",p,s)).concat(h)});c.push(x)}}else c=e.columns.length?t:v(e,"rows",l,n,o,r);return c}function y(e){b.each(e||[],function(e,t){var n=t.levels;n&&y(n),T.setDefaultFieldValueFormatting(t)})}var b=n(9),C=n(25),k=n(14),I=n(11).extend,S=n(154),D=n(16).when,T=n(451),E=k.isDefined,A=T.getFiltersByPath;e.exports=C.inherit(function(){return{ctor:function(e){this._dataSource=new S.DataSource(e),this._store=this._dataSource.store()},getFields:function(e){var t=b.Deferred();return this._store.load({skip:0,take:20}).done(function(n){t.resolve(T.discoverObjectFields(n,e))}).fail(t.reject),t},key:function(){return this._store.key()},load:function(e){var t=this,n=b.Deferred(),i={rows:[],columns:[],values:[[[]]],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},o=x(e),a=[];return y(e.rows),y(e.columns),y(e.filters),b.each(o,function(e,n){a.push(t._store.load(d(n,t.filter())))}),D.apply(null,a).done(function(){var e=a.length>1?arguments:[arguments];b.each(e,function(e,t){p(t[0],t[1],o[e],i)}),n.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})}).fail(n.reject),n},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportSorting:function(){return!1},createDrillDownDataSource:function(e,t){e=e||{},t=t||{};var n=this._store,i=A(e.rows,t.rowPath).concat(A(e.columns,t.columnPath)).concat(f(e.rows)).concat(e.filters||[]).concat(f(e.columns)),o=l(i);return new S.DataSource({load:function(e){return n.load(I({},e,{filter:c(o,e.filter),select:t.customColumns}))}})}}}())},function(e,t,n){var i=n(9),o=n(25),a=n(18).format,s=n(156).errors,r=n(14),l=n(26).inArray,c=n(451),d=n(16).when,u=n(35).getLanguageId;t.XmlaStore=o.inherit(function(){function e(e,t){var n=i.Deferred(),o=e.beforeSend,a={url:e.url,dataType:"text",data:t,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return r.isFunction(o)&&o(a),c.sendRequest(a).fail(function(){n.reject(arguments)}).done(function(e){var t;try{t=i.parseXML(e)}catch(t){n.reject({statusText:t.message,stack:t.stack,responseText:e})}n.resolve(t)}),n}function t(){var e=u();return void 0!==e?a("<LocaleIdentifier>{0}</LocaleIdentifier>",e):""}function n(e,t,n){return t=t?"."+t:"","Descendants({"+e+t+"}, "+n+", SELF_AND_BEFORE)"}function o(e){return(e.hierarchyName||e.dataField)+".[All]"}function h(e){return e.dataField+".allMembers"}function p(e){var t=e.join(",");return e.length>1?a(ee,t):t}function f(e){var t=e.join(",");return e.length>1?"Union("+t+")":t}function m(e,t,i,s,r,l,c){var d,u,f,m,g,_,v,w,x,y,b,C,k=[],I=l[c],S=[];for(C=s;C<=t;C++)y=I[C],d=y.dataField,_=I[C-1]&&I[C-1].hierarchyName,f=y.hierarchyName,v=!f||!I[C+1]||I[C+1].hierarchyName!==f,x=e.length+i+s,m=null,S.push(y),C<e.length?v&&(m="("+d+"."+R(e[C])+")"):C<=x?0===C&&0===i?(u=o(I[s]),m=f?u+","+I[s].dataField:h(I[s])):f?(b=R(r[r.length-1]),(v||C===x)&&(_===f?(r.length&&(g=I[r.length-1]),g&&g.hierarchyName===f||(g=I[C-1],b=""),m=n(g.dataField,b,d)):m=h(y))):m=h(y):(w=!f||_!==f,w&&(m="("+o(y)+")")),m&&(m=a(te,m),k.push(m));return p(k)}function g(e,t,n,i,o,s,r,l){var c,d=-1,u=s[r];do d++,c=t.length+d+i,e.push(a(X,m(t,n,d,i,o,s,r),l));while(u[c]&&u[c+1]&&u[c].expanded)}function _(e,t,n,i){return n=n||"[DX_Set_"+t.length+"]",i=i||"set",t.push(a(Y,i,n,e)),n}function v(e,t,n,i,o){var s=e[t],r=[],l=[],d=[],u=0,h=0,m=[],v=a(te,n.join(","));if(s&&s.length){e.headerName===t?(l=e.path,u=l.length):d=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||d,h=c.getExpandedLevel(e,t),g(r,[],h,u,l,e,t,v),ne(d,function(n,i){g(r,i,h,u,i,e,t,v)});for(var w=h;w>=l.length;w--)s[w].hierarchyName&&(o.visibleLevels[s[w].hierarchyName]=o.visibleLevels[s[w].hierarchyName]||[],o.visibleLevels[s[w].hierarchyName].push(s[w].dataField))}return r.length&&m.push(_(f(r),i,"[DX_"+t+"]")),"columns"===t&&n.length&&m.push(v),a(J,p(m),t)}function w(e){var t=[];return ne(e,function(e,n){var i,o=n.dataField,s=[],l=n.filterValues||[];n.hierarchyName&&r.isNumeric(n.groupIndex)||(ne(l,function(e,t){var i=o+"."+R(Array.isArray(t)?t[t.length-1]:t);"exclude"===n.filterType&&(s.push(i+".parent"),i="Descendants("+i+")"),s.push(i)}),l.length&&(i=a(te,s.join(",")),"exclude"===n.filterType&&(i="Except("+h(n)+","+i+")"),t.push(i)))}),t.length?p(t):""}function x(e,t,n,i){var o="["+i+"]";return ne([e,t,n],function(e,t){t&&(o=a(Q,t+"on 0",o))}),o}function y(e,t,n,i,o,s,r){var l="",c=(t.length?"with "+t.join(" "):"")+" ";return e.length&&(l=c+a(U,x(w(n),w(i),w(o||[]),r),s.length?a(Z,s.join(",")):"",e.join(","))),l}function b(e,t){return i.map(t,function(t){return r.isString(t.expression)&&_(t.expression,e,t.dataField,"member"),t.dataField})}function C(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],s=[],r=[],l=[],c=b(r,a);return n.measureCount=a.length,n.visibleLevels={},e.headerName&&e.path&&ne(e.path,function(t,n){var i=e[e.headerName][t];i.hierarchyName&&i.hierarchyName===e[e.headerName][t+1].hierarchyName||s.push(i.dataField+"."+R(n))}),(i.length||c.length)&&l.push(v(e,"columns",c,r,n)),o.length&&l.push(v(e,"rows",c,r,n)),y(l,r,i,o,e.filters,s,t)}function k(e,t,n){ne(n,function(n,i){var o=t[n];o.hierarchyName&&(t[n+1]||{}).hierarchyName===o.hierarchyName||e.push(o.dataField+"."+R(i))})}function I(e,t,n){var i,o=e.columns||[],a=e.rows||[],s=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],l=[],c=[],d=b(l,s),u=n.maxRowCount,h=n.customColumns||[],p=h.length>0?" return "+h.join(","):"";return k(r,o,n.columnPath||[]),k(r,a,n.rowPath||[]),(o.length||o.length||d.length)&&c.push([(d[n.dataIndex]||d[0])+" on 0"]),i=y(c,l,o,a,e.filters,r,t),i?"drillthrough"+(u>0?" maxrows "+u:"")+i+p:i}function S(e){return parseInt(e,10)}function D(e){return r.isNumeric(e)?parseFloat(e):e}function T(e,t){return(e.getElementsByTagName(t)||[])[0]}function E(e,t){return B(T(e,t))}function A(e){var t=[];for(ne(e.getElementsByTagName("Axis"),function(e,n){var i=n.getAttribute("name"),o=[],a=0;0===i.indexOf("Axis")&&r.isNumeric(S(i.substr(4)))&&(t.push(o),ne(n.getElementsByTagName("Tuple"),function(e,n){var i,s,r,l=n.childNodes,c=0,d=[],u=l.length-1,h=1===t.length;for(h&&u--,o.push(d),r=u;r>=0;r--)i=l[r],s=S(E(i,"LNum")),d[r]={caption:E(i,"Caption"),value:D(E(i,"MEMBER_VALUE")),level:s,index:a++,hasValue:!(c||!s&&0!==r),name:E(i,"UName"),hierarchyName:l[r].getAttribute("Hierarchy"),parentName:E(i,"PARENT_UNIQUE_NAME"),levelName:E(i,"LName")},c+=s}))});t.length<2;)t.push([[{level:0}]]);return t}function B(e){return e&&e&&(e.textContent||e.text||e.innerHTML)||""}function M(e,t,n){for(var i,o,a=[],r=[],l=0,c=[],d=e.getElementsByTagName("Cell"),u={},h=0;h<d.length;h++){var p=d[h],f=p.getElementsByTagName("Value")[0],m=f&&f.getElementsByTagName("Error")||[],g=0===m.length?B(f):"#N/A",_=parseFloat(g),v=g-_+1>0,w=S(p.getAttribute("CellOrdinal"));m.length&&(u[B(m[0].getElementsByTagName("ErrorCode")[0])]=B(m[0].getElementsByTagName("Description")[0])),c[w]={value:v?_:g||null}}return ne(t[1],function(){o=[],a.push(o),ne(t[0],function(){i=l%n,0===i&&(r=[],o.push(r)),r.push(c[l]?c[l].value:null),l++})}),Object.keys(u).forEach(function(e){s.log("W4002",u[e])}),a}function R(e){if(e)return r.isString(e)&&e.indexOf("&[")!==-1?e:"["+e+"]"}function O(e,t,n,i){var o=e[t];return o||(o={},e[t]=o),!o.value&&n&&(o.text=n.caption,o.value=n.value,o.key=t?t.slice(t.indexOf("&[")):"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function P(e,t){var n=[],o=e.children&&(e.children.length?e.children:i.map(e.children.grandTotalHash||[],function(e){return e.children})),a=o&&o[0];if(a&&(t[a.hierarchyName]&&l(a.levelName,t[a.hierarchyName])!==-1||!t[a.hierarchyName]||0===a.level)){var s=i.map(o,function(e){return e.hierarchyName===a.hierarchyName?e:null});return s.grandTotalHash=o.grandTotalHash,s}if(a)for(var r=0;r<o.length;r++)o[r].hierarchyName===a.hierarchyName&&n.push.apply(n,P(o[r],t));return n}function V(e,t,n){var i,o=n.children=n.children||[],a=o.hash=o.hash||{},s=o.grandTotalHash=o.grandTotalHash||{};return t.parentName&&(n=O(a,t.parentName),o=n.children=n.children||[]),i=O(a,t.name,t,e),t.hasValue&&!i.added&&(i.index=e,i.added=!0,o.push(i)),n.value&&n.parentName||!t.parentName?s[n.name]&&delete s[t.parentName]:s[t.parentName]=n,i}function F(e,t){var n;if(1===e.children.length&&""===e.children[0].parentName){n=e.children[0].index;var i=e.children.grandTotalHash;e.children=e.children[0].children||[],e.children.grandTotalHash=i,e.children=P(e,t)}else 0===e.children.length&&(n=0);return n}function H(e,t,n,i){var o,a=[];ne(t,function(e,t){var i={children:a},o=r.isDefined(n)?Math.floor(e/n):e;ne(t,function(e,t){i=V(o,t,i)})});var s={children:a};return s.children=P(s,i),o=F(s,i),c.foreachTree(s.children,function(e){var t=e[0],n=P(t,i);n.length?t.children=n:delete t.children,delete t.levelName,delete t.hierarchyName,delete t.added,delete t.parentName,delete t.level},!0),ne(s.children||[],function(t,n){e.push(n)}),o}function L(e){var t,n,o=e.getElementsByTagName("soap:Fault"),a=e.getElementsByTagName("Fault"),r=i(a.length?a:o).find("Error");return r.length?(t=r.attr("Description"),n=new s.Error("E4000",t),s.log("E4000",t),n):null}function z(e,t){var n,i={columns:[],rows:[]},o=t.measureCount;return n=A(e),i.grandTotalColumnIndex=H(i.columns,n[0],o,t.visibleLevels),i.grandTotalRowIndex=H(i.rows,n[1],void 0,t.visibleLevels),i.values=M(e,n,o),i}function N(e,t,n){var i=[],o="MEASURE"===t,a=o?"MEASUREGROUP_NAME":t+"_DISPLAY_FOLDER";return ne(e.getElementsByTagName("row"),function(e,s){var r="LEVEL"===t?E(s,"HIERARCHY_UNIQUE_NAME"):void 0,l=E(s,"LEVEL_NUMBER");if(("0"!==l||"true"!==E(s,t+"_IS_VISIBLE"))&&E(s,"DIMENSION_TYPE")!==oe){var c=o?ie:E(s,"DIMENSION_UNIQUE_NAME"),d=E(s,t+"_UNIQUE_NAME");i.push({dimension:n.names[c]||c,groupIndex:l?S(l)-1:void 0,dataField:d,caption:E(s,t+"_CAPTION"),hierarchyName:r,groupName:r,displayFolder:E(s,a),isMeasure:o,isDefault:!!n.defaultHierarchies[d]})}}),i}function W(e){var t={names:{},defaultHierarchies:{}};return ne(i(e).find("row"),function(){var e=i(this),n=e.children("DIMENSION_TYPE").text(),o=n===oe?ie:e.children("DIMENSION_UNIQUE_NAME").text();t.names[o]=e.children("DIMENSION_CAPTION").text(),t.defaultHierarchies[e.children("DEFAULT_HIERARCHY").text()]=!0}),t}function $(e){e=e.replace(/_x(....)_/g,function(e,t){return String.fromCharCode(parseInt(t,16))});var t=e.match(/\[.+?\]/gi);return t&&t.length&&(e=t[t.length-1]),e.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function q(e){for(var t=e.getElementsByTagName("row"),n=[],i={},o=0;o<t.length;o++){for(var a=t[o].childNodes,s={},r=0;r<a.length;r++){var l=a[r].tagName,c=i[l]=i[l]||$(l);s[c]=B(a[r])}n.push(s)}return n}function G(n,o){return o=i("
").text(o).html(),e(n,a(K,o,n.catalog,t()))}var j='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',K='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',U="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",Q="(SELECT {0} FROM {1})",Y="{0} {1} as {2}",Z="WHERE ({0})",X="NonEmpty({0}, {1})",J="{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",ee="CrossJoin({0})",te="Template:0",ne=i.each,ie="DX_MEASURES",oe="2";return{ctor:function(e){this._options=e},getFields:function(){var n=this._options,o=n.catalog,s=n.cube,r=t(),l=e(n,a(j,o,s,"MDSCHEMA_DIMENSIONS",r)),c=e(n,a(j,o,s,"MDSCHEMA_MEASURES",r)),u=e(n,a(j,o,s,"MDSCHEMA_HIERARCHIES",r)),h=e(n,a(j,o,s,"MDSCHEMA_LEVELS",r)),p=i.Deferred();return d(l,c,u,h).done(function(e,t,n,i){var o=W(e),a=N(n,"HIERARCHY",o),s=N(i,"LEVEL",o),r=N(t,"MEASURE",o).concat(a),l={};ne(s,function(e,t){l[t.hierarchyName]=l[t.hierarchyName]||[],l[t.hierarchyName].push(t)}),ne(a,function(e,t){l[t.dataField]&&l[t.dataField].length>1&&(t.groupName=t.hierarchyName=t.dataField,r.push.apply(r,l[t.hierarchyName]))}),p.resolve(r)}).fail(p.reject),p},load:function(e){var t=i.Deferred(),n=this._options,o={},a=C(e,n.cube,o);return a?d(G(n,a)).done(function(e){var n=L(e);n?t.reject(n):t.resolve(z(e,o))}).fail(t.reject):t.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0}),t},supportSorting:function(){return!0},getDrillDownItems:function(e,t){var n=i.Deferred(),o=this._options,a=I(e,o.cube,t);return a?d(G(o,a)).done(function(e){var t=L(e);t?n.reject(t):n.resolve(q(e))}).fail(n.reject):n.resolve([]),n},key:r.noop,filter:r.noop}}()).include(c.storeDrillDownMixin)},function(e,t,n){function i(){return{fields:{},positions:{}}}function o(e,t,n){var i,o,a={index:-1};if(r.isObject(t)||(n.fields[t]?t=n[t]:(o=e.columns.concat(e.rows).concat(e.values),i=h(o,t),t=n[t]=o[i])),t){var s=t.area||"data";a=n.positions[t.index]=n.positions[t.index]||{area:s,index:c(t,e["data"===s?"values":s+"s"])}}return a}function a(e){return e===m?"_rowPath":"_columnPath"}function s(e){var t=e.summaryDisplayMode,n=e.allowCrossGroupCalculation,i=g;return r.isFunction(e.calculateSummaryValue)?i=e.calculateSummaryValue:t&&(i="absoluteVariation"===t?x(n):"percentVariation"===t?y(n):b[t],i&&!e.format&&t.indexOf("percent")!==-1&&u.setFieldProperty(e,"format","percent")),i}var r=n(14),l=n(11).extend,c=n(26).inArray,d=r.isDefined,u=n(451),h=u.findField,p=u.foreachTree,f="column",m="row",g=null,_=function(e,t){var n=e/t;return d(e)&&!isNaN(n)||(n=g),n},v=function(e,t){return _(e.value(),e.grandTotal(t).value())},w=function(e,t){var n=e.parent(t),i=n?n.value():e.value();return _(e.value(),i)},x=function(e){return function(t){var n=t.prev(f,e),i=n&&n.value();return d(i)&&d(t.value())?t.value()-i:g}},y=function(e){var t=x(e);return function(n){var i=t(n),o=n.prev(f,e),a=o&&o.value();return i!==g&&a?i/a:g}},b={percentOfColumnTotal:function(e){return w(e,m)},percentOfRowTotal:function(e){return w(e,f)},percentOfColumnGrandTotal:function(e){return v(e,m)},percentOfRowGrandTotal:function(e){return v(e,f)},percentOfGrandTotal:function(e){return v(e)}},C=function(e,t){if(e&&e.parent(t)){var n=e.prev(t);return n||(n=C(e.parent(t),t)),n}},k=function(e){if(e.runningTotal){var t=e.runningTotal===f?m:f;return function(n){var i=e.allowCrossGroupCalculation?C(n,t):n.prev(t,!1),o=n.value(!0),a=i&&i.value(!0);return d(a)&&d(o)?o=a+o:d(a)&&(o=a),o}}},I=function(e,t,n,o,a,s){this._columnPath=e,this._rowPath=t,this._fieldIndex=a,this._fieldsCache=s||i(),this._data=n,this._descriptions=o;var r=n.values&&n.values[t[0].index]&&n.values[t[0].index][e[0].index];r&&(r.originalCell=r.originalCell||r.slice(),this._cell=r)};I.prototype=l(I.prototype,{_getPath:function(e){return this[a(e)]},_getDimension:function(e){return e=e===m?"rows":"columns",this._descriptions[e]},_createCell:function(e){var t=this;return new I(e._columnPath||t._columnPath,e._rowPath||t._rowPath,t._data,t._descriptions,t._fieldIndex)},parent:function(e){var t=this._getPath(e).slice(),n={};return t.shift(),t.length?(n[a(e)]=t,this._createCell(n)):g},children:function(e){var t=this._getPath(e).slice(),n=t[0],i=[],o={};if(n.children)for(var s=0;s<n.children.length;s++)o[a(e)]=[n.children[s]].concat(t.slice()),i.push(this._createCell(o));return i},grandTotal:function(e){var t={},n=this._rowPath,i=this._columnPath,o=this._getPath(e),s=a(e);return e?t[s]=[o[o.length-1]]:(t._rowPath=[n[n.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(e,t){var n,i,o=this._getPath(e),a=o[0],s=this.parent(e);if(s&&(i=c(a,o[1].children),n=s.children(e),n[i+1]))return n[i+1];if(t&&s){do s=s.next(e,t),n=s?s.children(e):[];while(s&&!n.length);return n[0]||g}return g},prev:function(e,t){var n,i,o=this._getPath(e),a=o[0],s=this.parent(e);if(s&&(i=c(a,o[1].children),n=s.children(e),n[i-1]))return n[i-1];if(t&&s){do s=s.prev(e,t),n=s?s.children(e):[];while(s&&!n.length);return n[n.length-1]||g}return g},cell:function(){return this._cell},field:function(e){var t=this._getPath(e),n=this._getDimension(e),i=n[t.length-2];return i||g},child:function(e,t){for(var n,i=this.children(e),o=0;o<i.length;o++)if(n=n||i[o].field(e),i[o].value(n)===t)return i[o];return g},slice:function(e,t){var n,i,s,r,l=this,c={},d=o(this._descriptions,e,this._fieldsCache),u=d.area,h=d.index,p=g,_=[];if((u===m||u===f)&&(i=this._getPath(u).slice(),r=h!==-1&&i.length-2-h,i[r])){_[i.length-1]=i[i.length-1];for(var v=r;v>=0;v--){if(i[v+1]){n=i[v+1].children||[],s=v===r?t:i[v].value,i[v]=void 0;for(var w=0;w<n.length;w++)if(n[w].value===s){i[v]=n[w];break}}if(void 0===i[v])return p}c[a(u)]=i,p=l._createCell(c)}return p},value:function(e,t){var n,i,a=this._cell,s=this._fieldIndex,r=e===!0||e===!1,l=r?g:e,c=r&&e||t;if(d(l)){var u=o(this._descriptions,l,this._fieldsCache);if(s=u.index,"data"!==u.area)return n=this._getPath(u.area),i=s!==-1&&n.length-2-s,n[i]&&n[i].value}return a&&a.originalCell?c?a[s]:a.originalCell[s]:g}}),t.applyDisplaySummaryMode=function(e,t){var n=[],o=[{index:t.grandTotalColumnIndex,children:t.columns}],a=[{index:t.grandTotalRowIndex,children:t.rows}],r=e.values,l=i();t.values=t.values||[],p(a,function(i){var a=i[0];a.isEmpty=!0,t.values[a.index]=t.values[a.index]||[],p(o,function(o){var c,d,u,h,p,f,m=o[0];m.isEmpty=m.isEmpty||[],t.values[a.index][m.index]=t.values[a.index][m.index]||[];for(var g=0;g<r.length;g++)h=r[g],c=n[g]=void 0===n[g]?s(h):n[g],p=!1,c&&(d=new I(o,i,t,e,g,l),u=d.cell(),f=u[g]=c(d),p=null===f||void 0===f),void 0===m.isEmpty[g]&&(m.isEmpty[g]=!0),p||(m.isEmpty[g]=!1,a.isEmpty=!1)},!1)},!1),t.isEmptyGrandTotalRow=a[0].isEmpty,t.isEmptyGrandTotalColumn=o[0].isEmpty},t.applyRunningTotal=function(e,t){var n=[],o=[{index:t.grandTotalColumnIndex,children:t.columns}],a=[{index:t.grandTotalRowIndex,children:t.rows}],s=e.values,r=i();t.values=t.values||[],p(a,function(i){var a=i[0];t.values[a.index]=t.values[a.index]||[],p(o,function(o){var l,c,d,u,h,p=o[0];t.values[a.index][p.index]=t.values[a.index][p.index]||[];for(var f=0;f<s.length;f++)u=s[f],l=n[f]=void 0===n[f]?k(u):n[f],l&&(c=new I(o,i,t,e,f,r),d=c.cell(),h=d[f]=l(c))},!1)},!1)},t.createMockSummaryCell=function(e,t,n){var i=new I([],[],{},e,0);return i.value=function(i){if(r.isDefined(i)){var o=h(t,i),a=t[o];n[o]||!a||r.isDefined(a.area)||(e.values.push(a),n[o]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i}},function(e,t,n){var i=n(9),o=n(459),a="dx-pivotgrid-area",s="dx-pivotgrid-area-data",r="dx-total",l="dx-grandtotal",c="dx-row-total";t.DataArea=o.AreaItem.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return i("
").addClass(a).addClass(s)},_applyCustomStyles:function(e){var t=e.cell,n=e.classArray;"T"!==t.rowType&&"T"!==t.columnType||n.push(r),"GT"!==t.rowType&&"GT"!==t.columnType||n.push(l),"T"!==t.rowType&&"GT"!==t.rowType||n.push(c),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),this.callBase(e)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e.x),this._moveFakeTableTop(e.y),this.callBase()},processScroll:function(e){this._groupElement.css("border-top-width",0).dxScrollable({useNative:!!e,useSimulatedScrollbar:!e,direction:"both",bounceEnabled:!1,updateManually:!0})},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(e){this.callBase(e),this._virtualContent.parent().css("height",e.height),this._setTableCss({top:e.top,left:e.left})}})},function(e,t,n){function i(e,t,n,i){var o=0,a=0,s=n/2;return e+i-(t+n)>1?(e>=t+n+s&&(a=parseInt((e-(t+n))/s,10)),o=t+n+s*a):e<t?(e<=t-s&&(a=parseInt((e-(t-s))/s,10)),o=t-(n-s*a)):o=t,o}var o=n(9),a=n(25),s=n(11).extend,r=n(14),l="dx-expand",c=function(e){var t,n=0;return e.getBoundingClientRect&&(t=e.getBoundingClientRect(),n=t.width,n||(n=t.right-t.left)),n>0?n:e.offsetWidth};t.AreaItem=a.inherit({_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return o("
")},_createTableElement:function(){return o("")},_getCellText:function(e,t){var n=e.isWhiteSpace?"":e.text||"";return!t||n.indexOf("<")===-1&&n.indexOf(">")===-1||(n=o("
").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(e,t){var n,i,o,a,s,c,d,u,h=this,p=t.length,f=h.option("rtlEnabled"),m=[],g=h.option("encodeHtml"),_="colspan='",v="rowspan='";for(e.data("area",h._getAreaName()),e.data("data",t),e.css("width",""),m.push(h._getMainElementMarkup()),o=0;o<p;o++){n=t[o];var w=[];for(u=[],m.push("<tr "),a=0;a<n.length;a++){if(i=n[a],this._getRowClassNames(o,i,u),w.push("
")}u.length&&(m.push("class='"),m.push(u.join(" ")),m.push("'")),m.push(">"),m.push(w.join("")),m.push("</tr>")}m.push(this._getCloseMainElementMarkup()),e.append(m.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,r,l,c,d=this,u=e.find("tr"),h=d._getAreaName(),p=d.option("onCellPrepared"),f=d.component.hasEvent("cellPrepared"),m=this.component._defaultActionArgs();if(p||f)for(l=0;l<t.length;l++)for(a=t[l],n=u.eq(l),c=0;c<a.length;c++)r=a[c],i=n.children().eq(c),o={area:h,rowIndex:l,columnIndex:c,cellElement:i,cell:r},f?d.component._trigger("onCellPrepared",o):p(s(o,m))},_getRowHeight:function(e){var t,n=this._getRowElement(e),i=0;return n&&n.lastChild?(n.getBoundingClientRect&&(t=n.getBoundingClientRect(),i=t.height),i>0?i:n.offsetHeight):0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=this,n=[],i=t.getRowsLength();for(e=0;e<i;e++)n.push(t._getRowHeight(e));return n},setRowsHeight:function(e){var t,n=this,i=0,o=e.length;for(t=0;t<o;t++)i+=e[t],n._setRowHeight(t,e[t]);this._tableHeight=i,this._tableElement[0].style.height=i+"px"},getColumnsWidth:function(){var e,t,n,i,o=this.getRowsLength(),a=[],s=[],r=function(e,t,n,i,o){var a,s;for(a=0;a<i;a++)for(s=0;s<o;s++)e[t+a]=e[t+a]||[],e[t+a][n+s]=!0};if(o)for(e=0;e<o;e++)for(a[e]=a[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;a[e][i];i++);r(a,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(s[i]=s[i]||c(t.cells[n]))}return s},setColumnsWidth:function(e){var t,n=0,i=this._tableElement[0],o="",a=this.getColumnsCount(),s=[];for(t=0;t<a;t++)s.push(e[t]||0);for(t=a;t<e.length&&e;t++)s[a-1]+=e[t];for(t=0;t<a;t++)n+=s[t],o+='<col style="width: '+s[t]+'px">';this._colgroupElement.html(o),this._tableWidth=n,i.style.width=n+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},groupWidth:function(e){return void 0===e?this._groupElement.width():e>=0?(this._groupWidth=e,this._groupElement[0].style.width=e+"px"):this._groupElement[0].style.width=e},groupHeight:function(e){return void 0===e?this._groupElement.height():(this._groupHeight=null,void(e>=0?(this._groupHeight=e,this._groupElement[0].style.height=e+"px"):this._groupElement[0].style.height=e))},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=o("
").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.groupWidth("100%"),e.groupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled"),o=n?"right":"left",a=parseFloat(t.tableElement()[0].style[o]),s=i(e,a,t._tableWidth,t._groupWidth);parseFloat(t._fakeTable[0].style[o])!==s&&(t._fakeTable[0].style[o]=s+"px")},_moveFakeTableTop:function(e){var t=this,n=parseFloat(t.tableElement()[0].style.top),o=i(e,n,t._tableHeight,t._groupHeight); parseFloat(t._fakeTable[0].style.top)!==o&&(t._fakeTable[0].style.top=o+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=o("<colgroup>").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,function(e){n.option("rtlEnabled")&&(e.scrollOffset.left=i.content().width()-i._container().width()-e.scrollOffset.left),t(e)}),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n){e=n.cells;for(var i=0,o=e.length;i<o;++i)t+=e[i].colSpan}return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}})},function(e,t,n){function i(e,t){if(t){var n=e.data().data,i=t.parentNode.rowIndex,o=t.cellIndex;return n[i]&&n[i][o]&&n[i][o].path}}var o=n(9),a=n(14),s=n(26).inArray,r=n(459),l="dx-pivotgrid-area",c="dx-pivotgrid-horizontal-headers",d="dx-pivotgrid-vertical-headers",u="dx-total",h="dx-grandtotal",p="dx-row-total",f="dx-pivotgrid-expanded",m="dx-pivotgrid-collapsed",g="dx-last-cell",_="dx-vertical-scroll",v="dx-expand-border";t.HorizontalHeadersArea=r.AreaItem.inherit({_getAreaName:function(){return"column"},_getAreaClassName:function(){return c},_createGroupElement:function(){return o("
").addClass(this._getAreaClassName()).addClass(l)},_applyCustomStyles:function(e){var t=e.cssArray,n=e.cell,i=e.rowsCount,o=e.classArray;e.cellIndex===e.cellsCount-1&&t.push((e.rtlEnabled?"border-left:":"border-right:")+"0px"),n.rowspan!==i-e.rowIndex&&e.rowIndex+1!==i||t.push("border-bottom-width:0px"),"T"!==n.type&&"GT"!==n.type||o.push(p),"T"===e.cell.type&&o.push(u),"GT"===e.cell.type&&o.push(h),a.isDefined(n.expanded)&&o.push(n.expanded?f:m),this.callBase(e)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({left:e.left,top:0}),this._virtualContentWidth=e.width},hasScroll:function(){var e=this._virtualContent?this._virtualContentWidth:this._tableWidth;return!(!this._groupWidth||!e)&&e-this._groupWidth>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"horizontal",updateManually:!0})},processScrollBarSpacing:function(e){var t=this,n=t.option("rtlEnabled")?"right":"left";t._groupWidth&&t.groupWidth(t._groupWidth-e),t._scrollBarWidth&&t._groupElement.next().remove(),t._groupElement.toggleClass(_,e>0),t._groupElement.css("float",n).width(t._groupHeight),t._scrollBarWidth=e},ctor:function(e){this.callBase(e),this._scrollBarWidth=0},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.left,10)||0,o.each(n.find("td"),function(n,i){if(1===i.colSpan&&i.offsetLeft<e&&i.offsetWidth+i.offsetLeft>e)return t=i,!1}),i(n,t)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e),this.callBase()}}),t.VerticalHeadersArea=t.HorizontalHeadersArea.inherit({_getAreaClassName:function(){return d},_applyCustomStyles:function(e){this.callBase(e),e.cellIndex===e.cellsCount-1&&e.classArray.push(g),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),e.cell.isWhiteSpace&&e.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({top:e.top,left:0}),this._virtualContentHeight=e.height},hasScroll:function(){var e=this._virtualContent?this._virtualContentHeight:this._tableHeight;return!(!this._groupHeight||!e)&&e-this._groupHeight>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(e){var t=this;t._groupHeight&&t.groupHeight(t._groupHeight-e),t._scrollBarWidth&&t._groupElement.next().remove(),e&&t._groupElement.after(o("
").width("100%").height(e-1)),t._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.top,10)||0,o.each(n.find("tr"),function(n,i){var o=i.childNodes[i.childNodes.length-1];if(o&&1===o.rowSpan&&o.offsetTop<e&&o.offsetHeight+o.offsetTop>e)return t=o,!1}),i(n,t)},_moveFakeTable:function(e){this._moveFakeTableTop(e),this.callBase()},_getRowClassNames:function(e,t,n){0!==e&t.expanded&&s(v,n)===-1&&n.push(v)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(e){var t,n,i,o=this.tableElement()[0].rows,a=0,s=[];if(!(this.getColumnsCount()-e>0))for(n=0;n<o.length;n++)for(i=0;i<o[n].cells.length;i++){var r=o[n].cells[i],l=r.rowSpan;s[n]&&(a-=s[n],s[n]=0),t=e-(a+r.colSpan),i===o[n].cells.length-1&&t>0&&(r.colSpan=r.colSpan+t),s[n+l]=(s[n+l]||0)+r.colSpan,a+=r.colSpan}}})},function(e,t,n){function i(e,t,n,i){n&&n.groupName&&n.groupName===e.groupName&&o(d).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(i),t&&t.groupName&&t.groupName===e.groupName&&o(d).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(i)}var o=n(9),a=n(14).noop,s=n(459),r=n(451),l=n(201),c=n(202),d="
";n(462),t.FieldsArea=s.AreaItem.inherit({ctor:function(e,t){this.callBase(e),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return o(d).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+r.capitalizeFirstLetter(this._area)+"Fields")},_renderButton:function(e){var t=this,n=o("
").appendTo(e)),i=t.component._createComponent(o(d).appendTo(n),c,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var e=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");e.option("visible")||e.show()}});i.element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(e,t){return{contentTemplate:function(){return o("
"),r.isDefined(i.expanded)&&w.push("
"),d=this._getCellText(i,g)}else d="";w.push(""+d+""),i.sorted&&w.push(""),w.push("
").appendTo(o("
").addClass("dx-area-field-container").append(o("<thead>").addClass("dx-pivotgrid-fields-area-head").append(e))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,closeOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(e,t){var n=this,i=e.find(".dx-button"),a=n._getPopupOptions(t,i),s=n.component.element().dxPivotGridFieldChooserBase("instance");n._rowPopup&&n._rowPopup.element().remove(),n._rowPopup=n.component._createComponent(o(d).appendTo(e),l,a),n._rowPopup.element().addClass("dx-fields-area-popup"),n._rowPopup.content().addClass("dx-pivotgrid-fields-container"),n._rowPopup.content().parent().attr("group","row"),s.subscribeToEvents(n._rowPopup.content()),s.renderSortable(n._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(e,t){var n=this,a=this.groupElement(),s=this.isVisible(),r=n.component.element().dxPivotGridFieldChooserBase("instance"),l=o("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(e),c=n._area,u=o("");a.toggleClass("dx-hidden",!s),e.addClass("dx-area-field-container"),s&&(o.each(t,function(e,a){if(a.area===c&&a.visible!==!1){var s=o("
").append(r.renderField(a,"row"===a.area)),l=s.find(".dx-column-indicators");l.length&&n._shouldCreateButton()&&l.insertAfter(l.next()),s.appendTo(u),i(a,t[e+1],t[e-1],s)}}),u.children().length||o("").append(o(d).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+c+"FieldArea"))).appendTo(u),n._shouldCreateButton()?(n._renderButton(l),n._renderPopup(e,u)):l.append(u))},_renderVirtualContent:a})},function(e,t,n){function i(e,t){var n=t;return r.isDefined(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}var o=n(9),a=n(159),s=n(76),r=n(14),l=n(26).inArray,c=n(11).extend,d=n(90),u=n(57),h=n(96),p=n(404),f=n(355),m=n(364),g=n(451),_=n(463),l=l,v=o.each,w=1,x="
",y=p.HeaderFilterView,b=function(e,t){var n=[],i=!!t.groupName,a="exclude"===t.filterType;t.filterValues&&v(t.filterValues,function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())}),g.foreachTree(e,function(e){var t,s=e[0],r=g.createPath(e),c=i?o.map(e,function(e){return e.text}).reverse().join("/"):s.text;s.value=i?r.slice(0):s.key||s.value,t=i?r.join("/"):s.value&&s.value.valueOf(),s.children&&(s.items=s.children,s.children=null),p.updateHeaderFilterItemSelectionState(s,s.key&&l(c,n)>-1||l(t,n)>-1,a)})},C=h.inherit(f).inherit(m).inherit(p.headerFilterMixin).inherit({_getDefaultOptions:function(){return c(this.callBase(),{allowFieldDragging:!0,headerFilter:{width:252,height:325,texts:{emptyValue:d.format("dxDataGrid-headerFilterEmptyValue"),ok:d.format("dxDataGrid-headerFilterOK"),cancel:d.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new y(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,a=o(x).addClass("dx-area-field-content").text(e.caption||e.dataField),s=o(x).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(a),r=i(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:s,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:s,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!e.groupIndex},showColumnLines:t})),e.groupName&&s.attr("item-group",e.groupName),s},_clean:function(){},_renderContentImpl:function(){this._headerFilterView.render(this.element())},renderSortable:function(){var e=this;e._createComponent(e.element(),_,c({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=o(this).closest(".dx-sortable"),i=n.data("dxPivotGrid"),a=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!a&&a.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&o.each(e,function(e,t){n.eq(e).css("width",parseInt(o(t).css("width"),10)+w)})):n=o(x).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=o(x);return o.each(n,function(e,t){var n=o("
").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append(o(t));i.append(n)}),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,t.isMeasure===!0?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):t.isMeasure===!1&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,o=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),o&&(n.field(i(n,o).index,{area:t.targetGroup,areaIndex:t.targetIndex}),n.load())}},e._getSortableOptions()))},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=o(e.currentTarget).data("field"),s=c(!0,{},i(t._dataSource,n)),r=o(e.target).hasClass("dx-header-filter"),l=t._dataSource;r?t._headerFilterView.showHeaderFilterMenu(o(e.currentTarget),c(s,{type:s.groupName?"tree":"list",dataSource:{load:function(e){var t=e.userData;if(t.store)return t.store.load(e);var n=o.Deferred();return l.getFieldValues(s.index).done(function(i){t.store=new a(i),t.store.load(e).done(n.resolve).fail(n.reject)}).fail(n.reject),n},postProcess:function(e){return b(e,s),e}},apply:function(){l.field(s.index,{filterValues:this.filterValues,filterType:this.filterType}),l.load()}})):n.allowSorting&&"data"!==n.area&&(l.field(n.index,{sortOrder:"desc"===n.sortOrder?"asc":"desc"}),l.load())};return e?void e.on(s.name,".dx-area-field.dx-area-box",n):void t.element().on(s.name,".dx-area-field.dx-area-box",n)},_initTemplates:r.noop,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});u("dxPivotGridFieldChooserBase",C),e.exports=C},function(e,t,n){function i(e,t,n){var i=c(e),o=i.offset();if(t>=o.left&&t<=o.left+i.outerWidth(!0)&&n>=o.top&&n<=o.top+i.outerHeight(!0))return!0}function o(e,t,n){return!d.isDefined(t.posHorizontal)||(n?e>t.posHorizontal:e<t.posHorizontal)}function a(e,t){var n=-1,i=t.get(0);return c.each(e,function(t,o){var a=c(o);if(a.attr("item-group")&&a.attr("item-group")===e.eq(t-1).attr("item-group")||n++,o===i)return!1}),n===e.length?-1:n}function s(e,t){var n;return c.each(t,function(){i(this,e.pageX,e.pageY)&&(n=c(this))}),n}function r(e,t,n){for(var i=[],o=[],a=0;a<e.length;a+=o.length)if(o=e.eq(a),o.attr("item-group")&&(o=n.find("[item-group='"+o.attr("item-group")+"']")),o.is(":visible")){var s={item:o,index:i.length,posHorizontal:t?void 0:(o.last().outerWidth(!0)+o.last().offset().left+o.offset().left)/2};t?s.posVertical=(o.last().offset().top+o.offset().top+o.last().outerHeight(!0))/2:s.posVertical=o.last().outerHeight(!0)+o.last().offset().top,i.push(s)}return i}function l(e){function t(e){s=e.scrollOffset.top}function n(){i(),e.scrollTo(s+=d),a=setTimeout(n,y)}function i(){clearTimeout(a)}function o(e){if(e.pageY<=l+x)d=-w;else{if(!(e.pageY>=l+c-x))return d=0,void i();d=w}n()}var a=null,s=e.scrollTop(),r=e.element(),l=r.offset().top,c=r.height(),d=0;return e.on("scroll",t),{moveIfNeed:o,element:function(){return r},dispose:function(){i(),e.off("scroll",t)}}}var c=n(9),d=n(14),u=n(11).extend,h=n(72),p=h.addNamespace,f=n(57),m=n(43),g=n(111),_="dxSortable",v="dx-sortable",w=2,x=20,y=10,b=m.inherit({_getDefaultOptions:function(){return u(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(e,t){var n,i=this.option("itemRender");return i?n=i(e,t):(n=e.clone(),n.css({width:e.width(),height:e.height()})),n},_renderIndicator:function(e,t,n,i){var o=e.outerHeight(!0),a=e.outerWidth(!0),s=e.offset().top-n.offset().top,r=e.offset().left-n.offset().left;this._indicator.css({position:"absolute",top:i&&t?s+o:s,left:i&&!t?r+a:r}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!i).height("").width("").appendTo(n),t?this._indicator.width(a):this._indicator.height(o)},_renderDraggable:function(e){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(e,"drag").addClass(this.option("dragClass")).appendTo("body").css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){this._getEventListener().off(p([g.move,g.start,g.end,g.enter,g.leave,g.drop].join(" "),_))},_getItemOffset:function(e,t,n){for(var i=0;i<t.length;i++){var a=e?n.pageY<t[i].posVertical:o(n.pageX,t[i],this.option("rtlEnabled"));if(a)return t[i]}},_getEventListener:function(){var e=this.option("groupSelector"),t=this.element();return e?t.find(e):t},_attachEventHandlers:function(){var e,t,n,i,o,d,u,h=this,f=h.option("itemSelector"),m=h.option("itemContainerSelector"),w=h.option("groupSelector"),x=h.option("sourceClass"),y=h.option("targetClass"),b=h.option("onDragging"),C=h.option("groupFilter"),k=h.element(),I=null,S=-1,D=function(){o=[],c.each(e,function(e,t){o.push(c(t).offset())})},T=function(){return w?C?c(w).filter(C):k.find(w):k},E=function(){I&&I.dispose(),I=null},A=function(){var o={sourceGroup:d,sourceIndex:t,sourceElement:e,targetGroup:i.attr("group"),targetIndex:i.find(f).index(n)};b&&b(o),o.cancel&&(i=void 0)};h._detachEventHandlers(),h.option("allowDragging")&&h._getEventListener().on(p(g.start,_),f,function(i){e=c(i.currentTarget);var o=e.closest(w);d=o.attr("group"),t=a((w?o:k).find(f),e),e.attr("item-group")&&(e=o.find("[item-group='"+e.attr("item-group")+"']")),h._renderDraggable(e),n=h._renderItem(e,"target").addClass(y),e.addClass(x),D(),u=T(),h._indicator=c("
").addClass("dx-position-indicator")}).on(p(g.move,_),function(a){var p,g,_,w,b,C,k,D=[];if(e){if(S=-1,h._indicator.detach(),c.each(h._$draggable,function(e,t){c(t).css({top:o[e].top+a.offset.y,left:o[e].left+a.offset.x})}),i&&i.removeClass(y),i=s(a,u),i&&A(),i&&I&&i.get(0)!==I.element().get(0)&&E(),I&&I.moveIfNeed(a),!i)return void n.detach();!I&&i.attr("allow-scrolling")&&(I=l(i.dxScrollable("instance"))),i.addClass(y),g=i.find(m),_=g.find(f);var T=i.closest("."+v).data("dxSortable"),B=T.option("useIndicator");if(b="vertical"===(T||h).option("direction"),D=r(_,b,g),C=h._getItemOffset(b,D,a)){if(p=C.item,k=D[C.index-1]&&D[C.index-1].item,p.hasClass(x)||k&&k.hasClass(x)&&k.is(":visible"))return void n.detach();if(S=C.index,!B)return void n.insertBefore(p);var M=i.attr("group")!==d,R=S===t,O=S===t+1;if(M)return void h._renderIndicator(p,b,i,h.option("rtlEnabled")&&!b);R||O||h._renderIndicator(p,b,i,h.option("rtlEnabled")&&!b)}else{if(w=_.last(),w.is(":visible")&&w.hasClass(x))return;g.length&&(S=D.length?D[D.length-1].index+1:0),B?_.length&&h._renderIndicator(w,b,i,!h.option("rtlEnabled")||b):n.appendTo(g)}}}).on(p(g.end,_),function(){if(E(),e){var o=h.option("onChanged"),a={sourceIndex:t,sourceElement:e,sourceGroup:d,targetIndex:S,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};i&&(i.removeClass(y),a.targetGroup=i.attr("group"),(d!==a.targetGroup||S>-1)&&(o&&o(a),a.removeSourceElement&&e.remove())),h._indicator.detach(),a.removeSourceClass&&e.removeClass(x),e=null,h._$draggable.remove(),h._$draggable=null,a.removeTargetElement&&n.remove(),n.removeClass(y),n=null}})},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.element().addClass(v)},_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._$draggable&&e._$draggable.detach(),e._indicator&&e._indicator.detach()},_optionChanged:function(e){var t=this;switch(e.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":t._attachEventHandlers();break;case"direction":break;default:t.callBase(e)}}});f("dxSortable",b),e.exports=b},function(e,t,n){function i(e,t){var n=[];if(e.items)for(var o=0;o<e.items.length;o++)n.push.apply(n,i(e.items[o],t));else c.isDefined(e.index)&&n.push(t[e.index]);return n}function o(e,t){if(e.items)for(var n=0;n<e.items.length;n++){var i=o(e.items[n],t);if(i)return i}if(t(e))return e}function a(e,t){for(var n=0,i=0;!n&&C[i];)n=C[i++](e,t);return n}function s(e){return e.find(".dx-scrollable").dxScrollable("instance")}var r=n(9),l=n(116),c=n(14),d=n(11).extend,u=n(26).inArray,h=n(90),p=n(57),f=n(451),m=n(381),g=n(339),_=n(462),u=u,v=r.each,w="
";n(453);var x="dx-pivotgridfieldchooser",y="dx-pivotgridfieldchooser-container",b="dx-pivotgrid-fields-container",C=[function(e,t){var n=-!!e.isMeasure,i=+!!t.isMeasure;return n+i},function(e,t){var n=-!(!e.items||!e.items.length),i=+!(!t.items||!t.items.length);return n+i},function(e,t){var n=+!!(e.field&&e.field.levels&&e.field.levels.length),i=-!!(t.field&&t.field.levels&&t.field.levels.length);return n+i},f.getCompareFunction(function(e){return e.text})],k=_.inherit({_getDefaultOptions:function(){return d(this.callBase(),{height:400,layout:0,dataSource:null,onContextMenuPreparing:null,texts:{columnFields:h.format("dxPivotGrid-columnFields"),rowFields:h.format("dxPivotGrid-rowFields"),dataFields:h.format("dxPivotGrid-dataFields"),filterFields:h.format("dxPivotGrid-filterFields"),allFields:h.format("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var e=this;e._expandedPaths=[],e._changedHandler=e._changedHandler||function(){v(e._dataChangedHandlers,function(e,t){t()}),e._fireContentReadyAction()},e._dataSource&&(e._dataSource.off("changed",e._changedHandler),e._dataSource=void 0),e.callBase(),e._dataSource&&e._dataSource.on("changed",e._changedHandler)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(e,t){this._actions[e](t)},_setOptionsByReference:function(){this.callBase(),d(this._optionsByReference,{dataSource:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":t._refreshDataSource(),t._invalidate();break;case"layout":case"texts":t._invalidate();break;case"onContextMenuPreparing":t._actions[e.name]=t._createActionByOption(e.name);break;default:t.callBase(e)}},_clean:function(){this.element().children("."+y).remove()},_renderContentImpl:function(){var e,t,n=this,i=this.element(),o=r(w).addClass(y).appendTo(i),a=n.option("layout");i.addClass(x).addClass(b),n._dataChangedHandlers=[],n.callBase(),0===a?(e=r(w).addClass("dx-col").appendTo(o),t=r(w).addClass("dx-col").appendTo(o),n._renderArea(e,"all"),n._renderArea(e,"filter"),n._renderArea(t,"row"),n._renderArea(t,"column"),n._renderArea(t,"data")):1===a?(e=r(w).addClass("dx-col").appendTo(o),t=r(w).addClass("dx-col").appendTo(o),n._renderArea(e,"all"),n._renderArea(t,"filter"),n._renderArea(t,"row"),n._renderArea(t,"column"),n._renderArea(t,"data")):(this._renderArea(o,"all"),e=r(w).addClass("dx-col").appendTo(o),t=r(w).addClass("dx-col").appendTo(o),n._renderArea(e,"filter"),n._renderArea(e,"row"),n._renderArea(t,"column"),n._renderArea(t,"data")),n.renderSortable(),n.updateDimensions(),n._renderContextMenu()},_fireContentReadyAction:function(){this._dataSource&&this._dataSource.isLoading()||this.callBase()},_getContextMenuArgs:function(e){var t,n,i=r(e.target).closest(".dx-area-field"),o=r(e.target).closest(".dx-area-fields");return i.length&&(t=i.data("field")),o.length&&(n=o.attr("group")),{jQueryEvent:e,field:t,area:n,items:[]}},_renderContextMenu:function(){var e=this,t=e.element();e._contextMenu&&e._contextMenu.element().remove(),e._contextMenu=e._createComponent(r(w).appendTo(t),g,{onPositioning:function(t){var n,i=t.jQueryEvent;i&&(n=e._getContextMenuArgs(i),e._trigger("onContextMenuPreparing",n),n.items&&n.items.length?t.component.option("items",n.items):t.cancel=!0)},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(e,t,n){var i,o=this,a=[],s=[],r=t[0],l={};return r?(v(e,function(e,t){var n=t[r]||"";l[n]=l[n]||[],l[n].push(t),void 0===i&&(i=!0),i=i&&t.isMeasure===!0}),v(l,function(e,i){var r=n?n+"."+e:e,l=o._createTreeItems(i,t.slice(1),r);e?s.push({key:e,text:e,path:r,isMeasure:l.isMeasure,expanded:u(r,o._expandedPaths)>=0,items:l}):a=l}),a=s.concat(a),a.isMeasure=i):v(e,function(e,t){var n;t.isMeasure===!0&&(n="measure"),t.isMeasure===!1&&(n=t.groupName?"hierarchy":"dimension"),a.push({index:t.index,field:t,key:t.dataField,selected:c.isDefined(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})}),a},_createFieldsDataSource:function(e){var t,n=e&&e.fields()||[];return n=r.map(n,function(e){return e.visible===!1||c.isDefined(e.groupIndex)?null:e}),t=this._createTreeItems(n,["dimension","displayFolder"]),f.foreachDataLevel(t,function(e){e.sort(a)},0,"items"),t},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,a=t._createComponent(e,m,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",itemTemplate:function(e,t,n){e.icon&&l.getImageContainer(e.icon).appendTo(n),r("").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=u(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){var n=u(e.itemData.path,t._expandedPaths);n<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var t,s,r,l=e.itemData,d=!0;if(l.items){if(l.selected)return void a.unselectItem(l);s=i(l,n.fields());for(var u=0;u<s.length;u++)if(s[u].area){d=!1;break}if(d){var h=o(l,function(e){return e.isDefault})||o(l,function(e){return c.isDefined(e.index)});return void(h&&a.selectItem(h))}}else t=n.fields()[l.index],l.selected&&(r=t.isMeasure?"data":"column"),t&&(s=[t]);v(s,function(e,t){n.field(t.index,{area:r,areaIndex:void 0})}),n.load()}}),d=function(){var i=s(e),o=i?i.scrollTop():0;a.option({dataSource:t._createFieldsDataSource(n)}),i=s(e),i&&(i.scrollTo({y:o}),i.update())};t._dataChangedHandlers.push(d)},_renderAreaFields:function(e,t){var n=this,i=n._dataSource,o=i?i.getAreaFields(t,!0):[];e.empty(),v(o,function(t,i){i.visible!==!1&&n.renderField(i,!0).appendTo(e)})},_renderArea:function(e,t){var n,i,o,a=this,s=r(w).addClass("dx-area").appendTo(e),l=a.option("texts."+t+"Fields");r("").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(s),r("").html(" ").appendTo(s),r("").addClass("dx-area-caption").text(l).appendTo(s),n=r(w).addClass("dx-area-fields").height(0).appendTo(s),"all"!==t?(i=r(w).addClass("dx-area-field-container").appendTo(n),o=function(){a._renderAreaFields(i,t)},a._dataChangedHandlers.push(o),o(),n.attr("group",t).attr("allow-scrolling",!0).dxScrollable()):(n.addClass("dx-treeview-border-visible"),a._renderFieldsTreeView(n))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},getDataSource:function(){return this._dataSource},updateDimensions:function(){var e,t=this.element(),n=t.children(".dx-pivotgridfieldchooser-container"),i=t.find(".dx-col"),o=t.find(".dx-area-fields"),a=t.find(".dx-area .dx-scrollable");o.height(0),0===this.option("layout")?(e=Math.floor((t.height()-n.height())/3),o.height(e),o.eq(0).height(i.eq(1).height()-i.eq(0).height()+e)):1===this.option("layout")?(e=Math.floor((t.height()-n.height())/4),o.height(e),o.eq(0).height(i.eq(1).height()-i.eq(0).height()+e)):(e=Math.floor((t.height()-n.height())/4),o.height(e),o.eq(0).height(2*e)),a.dxScrollable("update")},_visibilityChanged:function(e){e&&this.updateDimensions()}});p("dxPivotGridFieldChooser",k),e.exports=k},function(e,t,n){function i(e){if(e&&e.customizeText)return"string";if(e.dataType)return e.dataType;if(e.format){if(l.format(1,e.format))return"number";if(l.format(new Date,e.format))return"date"}return u}var o=n(9),a=n(25),s=n(14),r=n(11).extend,l=n(67),c=n(20),d=c.excel,u="string",h=n(420),p=n(16).when,f=0,m=1,g=2,_=100;t.ExportMixin=r({},h,{exportToExcel:function(){var e=this;c.export(e.getDataProvider(),{fileName:e.option("export.fileName"),proxyUrl:e.option("export.proxyUrl"),format:"EXCEL",rtlEnabled:e.option("rtlEnabled"),exportingAction:e._actions.onExporting,exportedAction:e._actions.onExported,fileSavingAction:e._actions.onFileSaving},d.getData)},_getLength:function(e){var t,n=e[0].length,i=0;for(t=0;t<n;t++)i+=e[0][t].colspan||1;return i},_getAllItems:function(e,t,n){var i,o,a=e.concat(n),l=this._getLength(t),c=this._getLength(e),d=e.length;for(o=0;o<t.length;o++)for(i=t[o].length-1;i>=0;i--)s.isDefined(a[o+d])||(a[o+d]=[]),a[o+d].splice(0,0,r({},t[o][i]));return a[0].splice(0,0,r({},this._getEmptyCell(),{alignment:this._options.rtlEnabled?"right":"left",colspan:l,rowspan:d})),this._prepareItems(l+c,a)},getDataProvider:function(){var e=this,n=this._dataController,i=o.Deferred();return n.beginLoading(),setTimeout(function(){var t=r(!0,[],n.getColumnsInfo(!0)),o=r(!0,[],n.getRowsInfo(!0)),a=n.getCellsInfo(!0);i.resolve(e._getAllItems(t,o,a)),n.endLoading()}),new t.DataProvider({items:i,rtlEnabled:this.option("rtlEnabled"),dataFields:this.getDataSource().getAreaFields("data")})}}),t.DataProvider=a.inherit({ctor:function(e){this._options=e,this._styles=[]},ready:function(){var e=this,t=e._options,n=t.dataFields;return p(t.items).done(function(a){var s=a[0][0].rowspan,l=a[s-1],c={alignment:t.rtlEnabled?"left":"right"};e._styles=[{alignment:"center",dataType:"string"},{alignment:t.rtlEnabled?"right":"left",dataType:"string"}],n.length?n.forEach(function(t){e._styles.push(r({},c,{format:t.format,precision:t.precision,dataType:i(t)}))}):e._styles.push(c),o.each(l,function(e,t){t.width=_}),t.columns=l,t.items=a})},getColumns:function(){return this._options.columns},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(e,t){var n=this._options.items,i=n[e]&&n[e][t];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var e=this._options.items;return{x:e[0][0].colspan,y:e[0][0].rowspan}},getCellType:function(e,t){var n=this._styles[this.getStyleId(e,t)];return n&&n.dataType||"string"},getCellValue:function(e,t){var n=this._options.items,i=n[e]&&n[e][t]||{};return"string"===this.getCellType(e,t)?i.text:i.value},getStyles:function(){return this._styles},getStyleId:function(e,t){var n=this._options.items,i=n[0][0].rowspan,o=n[0][0].colspan,a=n[e]&&n[e][t]||{};return 0===t&&0===e?f:t>=o&&e<i?f:e>=i&&t<o?m:g+(a.dataIndex||0)}})},function(e,t,n){function i(e,t){var n=[],i=t.length-1;return h.each(e,function(e,o){n.push(o.text||f.formatValue(o.value,t[i-e]))}),n.reverse()}function o(e){var t=0;return m(e,function(e){t=Math.max(t,e.length-1)}),t}function a(e,t){var n=e.chartDataItem,i=t&&t(e);return i?(n=p({},n,i.chartDataItem),i=p({},e,i,{chartDataItem:n})):e}function s(e,t,n){function s(){var e,i=(b.values[u]||[])[v]||[],o=i[c],s={rowPath:_,maxRowLevel:E,rowPathFormatted:g,rowFields:I,columnPathFormatted:y,maxColumnLevel:A,columnPath:x,columnFields:S,dataFields:k,dataIndex:c,dataValues:i,visible:w&&p},r=(t.inverted?y:g).join(" - "),l=(t.inverted?g:y).join("/");k.length>1&&("args"!==t.putDataFieldsInto&&"both"!==t.putDataFieldsInto||(l+=" | "+d.caption),"args"!==t.putDataFieldsInto&&(r+=" | "+d.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(e=d.caption))),s.chartDataItem={val:void 0===o?null:o,series:r,arg:l},s=a(s,t.processCell),s.visible&&(n[s.chartDataItem.series]=n[s.chartDataItem.series]||e,C.push(s.chartDataItem))}function r(e){m(T,function(n){u=n[0].index,n=n.slice(0,n.length-1),p=E===n.length,_=f.createPath(n),g=i(n,I),0===_.length&&(g=[t.grandTotalText]),m(D,function(n){v=n[0].index,n=n.slice(0,n.length-1),w=A===n.length,x=f.createPath(n),y=i(n,S),0===x.length&&(y=[t.grandTotalText]),e()})})}function l(e){h.each(k,function(t,n){d=n,c=t, e()})}var c,d,u,p,g,_,v,w,x,y,b=e.getData(),C=[],k=e.getAreaFields("data"),I=e.getAreaFields("row"),S=e.getAreaFields("column"),D=[{index:b.grandTotalColumnIndex,children:b.columns}],T=[{index:b.grandTotalRowIndex,children:b.rows}],E=o(T),A=o(D);return t.alternateDataFields===!1?l(function(){r(s)}):r(function(){l(s)}),C}function r(e,t){var n=e.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===n.length){var i=[];return h.each(n,function(e,n){var o={name:n.caption,title:n.caption,valueType:g[n.dataType]||n.dataType,label:{format:n.format,precision:n.precision}};n.customizeText&&(o.label.customizeText=function(e){return n.customizeText.call(n,e)}),"splitPanes"===t.dataFieldsDisplayMode&&(o.pane=n.caption),i.push(o)}),i}return[{}]}function l(e,t){var n=[],i=e.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&h.each(i,function(e,t){n.push({name:t.caption})}),n.length||n.push({}),n}function c(e,t){var n=t.customizeSeries,i=t.customizeChart,o={valueAxis:r(e,t),panes:l(e,t)},a={};return i&&(o=p(!0,{},o,i(o))),o.dataSource=s(e,t,a),o.seriesTemplate={nameField:"series",customizeSeries:function(e){var i={};return"splitPanes"===t.dataFieldsDisplayMode?i.pane=a[e]:"singleAxis"!==t.dataFieldsDisplayMode&&(i.axis=a[e]),n&&(i=p(i,n(e,i))),i}},o}function d(e){if(!e)return!1;if(e.NAME)return"dxChart"===e.NAME&&e;var t=h(e);return t.data("dxChart")&&t.dxChart("instance")}function u(e){var t=e.element().data(_);t&&t()}var h=n(9),p=n(11).extend,f=n(451),m=f.foreachTree,g={number:"numeric",date:"datetime"},_="dxPivotGridUnbinding";e.exports={bindChart:function(e,t){t=p({},t);var n,i=this,o=function(){t.grandTotalText=i.option("texts.grandTotal");var n=c(i.getDataSource(),t);e.option(n)};return(e=d(e))?(u(e),i.on("changed",o),o(),n=function(){e.element().removeData(_),i.off("changed",o)},e.on("disposing",n),this.on("disposing",n),e.element().data(_,n),n):null}}},function(e,t,n){e.exports=n(464)},function(e,t,n){e.exports=n(456).XmlaStore},function(e,t,n){e.exports=n(470)},function(e,t,n){var i=n(9),o=n(70),a=n(22),s=n(200),r=n(471),l=n(62),c=n(64),d=n(11).extend,u=n(26).inArray,h=n(260),p=n(14),f=n(53),m=n(15),g=n(57),_=n(90),h=n(260),v=n(96),w=n(472),x=n(99),y=n(475),b=n(476),C=n(479),k=n(482),I=n(483),S=n(484),D=n(485),T=n(487),E=n(488),A=n(489),B=n(490),M=n(491),R=n(492),O=n(493),P=n(495),V=n(502),F=n(473),H=n(153),L=n(503),z=n(504),N=n(201),W=n(16).when,$=n(100),q=n(167),G="dx-scheduler",j="dx-scheduler-small",K="dx-scheduler-readonly",U="dx-scheduler-appointment-popup",Q="dx-scheduler-recurrence-rule-item",Y="dx-scheduler-recurrence-rule-item-opened",Z=400,X=610,J={day:{workSpace:C,renderingStrategy:"vertical"},week:{workSpace:k,renderingStrategy:"vertical"},workWeek:{workSpace:I,renderingStrategy:"vertical"},month:{workSpace:S,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:D,renderingStrategy:"horizontal"},timelineWeek:{workSpace:T,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:E,renderingStrategy:"horizontal"},timelineMonth:{workSpace:A,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:B,renderingStrategy:"agenda"}},ee=v.inherit({_getDefaultOptions:function(){return d(this.callBase(),{views:["day","week"],currentView:"day",currentDate:c.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],dataSource:null,appointmentTemplate:"item",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0},showAllDayPanel:!0,recurrenceEditMode:"dialog",cellDuration:30,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onCellClick:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormCreated:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:_.format("dxCollectionWidget-noDataText"),allowMultipleCellSelection:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===f.real().deviceType&&!f.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!f.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}}])},_setDeprecatedOptions:function(){this.callBase(),d(this._deprecatedOptions,{horizontalScrollingEnabled:{since:"16.1",alias:"crossScrollingEnabled"}})},_optionChanged:function(e){var t=e.value,n=e.name;switch(e.name){case"firstDayOfWeek":this._updateOption("workSpace",n,t),this._updateOption("header",n,t);break;case"currentDate":t=this._dateOption(n),t=c.trimTime(new Date(t)),this._workSpace.option(n,t),this._header.option(n,t),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._reloadDataSource();break;case"dataSource":this._initDataSource(),this._customizeStoreLoadOptions(),this._appointmentModel.setDataSource(this._dataSource),this._loadResources().done(function(){this._filterAppointmentsByDate(),this._updateOption("workSpace","showAllDayPanel",this.option("showAllDayPanel")),this._reloadDataSource()}.bind(this));break;case"min":case"max":t=this._dateOption(n),this._updateOption("header",n,new Date(t)),this._updateOption("workSpace",n,new Date(t));break;case"views":this._getCurrentViewOptions()?this.repaint():this._header.option(n,t);break;case"useDropDownViewSwitcher":this._header.option(n,t);break;case"currentView":this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),appointmentDurationInMinutes:this._getCurrentViewOption("cellDuration")}),this._header.option("min",this._dateOption("min")),this._header.option("max",this._dateOption("max")),this._header.option("currentDate",this._dateOption("currentDate")),this._header.option("firstDayOfWeek",this._getCurrentViewOption("firstDayOfWeek")),this._header.option(n,t),this._loadResources().done(function(e){this.getLayoutManager().initRenderingStrategy(this._getAppointmentsRenderingStrategy()),this._refreshWorkSpace(e),this._filterAppointmentsByDate(),this._appointments.option("allowAllDayResize","day"!==t),this._reloadDataSource()}.bind(this));break;case"appointmentTemplate":this._appointments.option("itemTemplate",t);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this._updateOption("workSpace",n,t),this.repaint();break;case"groups":this._loadResources().done(function(e){this._workSpace.option(n,e),this._filterAppointmentsByDate(),this._reloadDataSource()}.bind(this));break;case"resources":this._resourcesManager.setResources(this.option("resources")),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._loadResources().done(function(e){this._workSpace.option("groups",e),this._filterAppointmentsByDate(),this._reloadDataSource()}.bind(this));break;case"startDayHour":case"endDayHour":this._appointments.option("items",[]),this._updateOption("workSpace",n,t),this._appointments.repaint(),this._filterAppointmentsByDate(),this._reloadDataSource();break;case"onAppointmentAdding":case"onAppointmentAdded":case"onAppointmentUpdating":case"onAppointmentUpdated":case"onAppointmentDeleting":case"onAppointmentDeleted":case"onAppointmentFormCreated":this._actions[n]=this._createActionByOption(n);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(n));break;case"onAppointmentDblClick":this._appointments.option(n,this._createActionByOption(n));break;case"noDataText":case"allowMultipleCellSelection":case"accessKey":case"onCellClick":this._workSpace.option(n,t);break;case"crossScrollingEnabled":this._loadResources().done(function(e){this._refreshWorkSpace(e),this._appointments.repaint()}.bind(this));break;case"cellDuration":this._updateOption("workSpace","hoursInterval",t/60),this._appointments.option("appointmentDurationInMinutes",t);break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",n,t),this._updateOption("workSpace",n,t),this._appointments.option(n,t),this.callBase(e);break;case"width":this._updateOption("header",n,t),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",t),this.callBase(e),this._dimensionChanged();break;case"height":this.callBase(e),this._dimensionChanged();break;case"editing":this._initEditing();var i=this._editing;this._bringEditingModeToAppointments(i),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this._loadResources().done(function(){this._filterAppointmentsByDate(),this._updateOption("workSpace","allDayExpanded",t),this._updateOption("workSpace",n,t),this._reloadDataSource()}.bind(this));break;case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":this.repaint();break;case"dateSerializationFormat":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":this._updateExpression(n,t),this._initAppointmentTemplate(),this.repaint();break;default:this.callBase(e)}},_dateOption:function(e){var t=this._getCurrentViewOption(e);return h.deserializeDate(t)},_getSerializationFormat:function(e){var t=this._getCurrentViewOption(e);if("number"==typeof t)return"number";if(p.isString(t))return h.getDateSerializationFormat(t)},_bringEditingModeToAppointments:function(e){var t=this.option("currentView"),n={allowDelete:e.allowUpdating&&e.allowDeleting};"agenda"!==t&&(n.allowDrag=e.allowDragging,n.allowResize=e.allowResizing,n.allowAllDayResize=e.allowResizing&&"day"!==t),this._appointments.option(n),this._dropDownAppointments.repaintExisting(this.element())},_allowDragging:function(){return this._editing.allowDragging&&"agenda"!==this.option("currentView")},_allowResizing:function(){return this._editing.allowResizing&&"agenda"!==this.option("currentView")},_allowAllDayResizing:function(){return this._editing.allowResizing&&"day"!==this.option("currentView")},_isAllDayExpanded:function(e){return this.option("showAllDayPanel")&&this._appointmentModel.hasAllDayAppointments(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getTimezoneOffsetByOption:function(e){return this._calculateTimezoneByValue(this.option("timeZone"),e)},_calculateTimezoneByValue:function(e,t){var n=e;return"string"==typeof e&&(t=t||new Date,n=F.getTimezoneOffsetById(e,Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()))),n},_filterAppointmentsByDate:function(){var e=this._workSpace.getDateRange();this._appointmentModel.filterByDate(e[0],e[1],this.option("remoteFiltering"),this.option("dateSerializationFormat"))},_loadResources:function(){var e=this._getCurrentViewOption("groups"),t=i.Deferred();return this._resourcesManager.loadResources(e).done(function(e){this._loadedResources=e,t.resolve(e)}.bind(this)),t.promise()},_dataSourceLoadedCallback:i.Callbacks(),_reloadDataSource:function(){this._dataSource&&(this._dataSource.load().done(function(){L.hide(),this._fireContentReadyAction()}.bind(this)).fail(function(){L.hide()}),this._dataSource.isLoading()&&L.show({container:this.element(),position:{of:this.element()}}))},_dimensionChanged:function(){var e=this.getFilteredItems();if(this._toggleSmallClass(),"agenda"!==this.option("currentView")&&e&&this._isVisible()){this._workSpace._cleanAllowedPositions(),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(e));var t=this._layoutManager.createAppointmentsMap(e);this._appointments.option("items",t)}this.hideAppointmentTooltip()},_clean:function(){this._cleanPopup(),this.callBase()},_toggleSmallClass:function(){var e=this.element().outerWidth();this.element().toggleClass(j,e<Z)},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr")}),this.callBase(),this._initDataSource(),this._loadedResources=[],this._proxiedCustomizeStoreLoadOptionsHandler=this._customizeStoreLoadOptionsHandler.bind(this),this._customizeStoreLoadOptions(),this.element().addClass(G),this._initEditing(),this._resourcesManager=new M(this.option("resources"));var e=this._combineDataAccessors();this._appointmentModel=new R(this._dataSource,{startDateExpr:this.option("startDateExpr"),endDateExpr:this.option("endDateExpr"),allDayExpr:this.option("allDayExpr"),recurrenceRuleExpr:this.option("recurrenceRuleExpr"),recurrenceExceptionExpr:this.option("recurrenceExceptionExpr")},e),this._initActions(),this._dropDownAppointments=new V,this._subscribes=w},_initTemplates:function(){this.callBase(),this._initAppointmentTemplate(),this._defaultTemplates.appointmentTooltip=new $(this),this._defaultTemplates.appointmentPopup=new $(this)},_initAppointmentTemplate:function(){var e=this;this._defaultTemplates.item=new q(function(t,n,i){var o=e.getAppointmentsInstance();o._renderAppointmentTemplate.call(o,t,n,i)},["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:this._dataAccessors.getter.text,startDate:this._dataAccessors.getter.startDate,endDate:this._dataAccessors.getter.endDate,startDateTimeZone:this._dataAccessors.getter.startDateTimeZone,endDateTimeZone:this._dataAccessors.getter.endDateTimeZone,allDay:this._dataAccessors.getter.allDay,recurrenceRule:this._dataAccessors.getter.recurrenceRule})},_combineDataAccessors:function(){var e=this._resourcesManager._dataAccessors,t=d(!0,{},this._dataAccessors);return i.each(e,function(e,n){t[e].resources=n}.bind(this)),t},_renderContent:function(){this._renderContentImpl()},_dataSourceChangedHandler:function(e){this._workSpaceRecalculation.done(function(){var t="agenda"===this._getAppointmentsRenderingStrategy(),n=e;if(this._filteredItems=this.fire("prerenderFilter"),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(this._filteredItems)),t&&this.getRenderingStrategyInstance().calculateRows(this._filteredItems,7,this.option("currentDate"),!0),this._filteredItems.length&&this._isVisible()){var i=this._layoutManager.createAppointmentsMap(this._filteredItems);n=this._layoutManager.markRepaintedAppointments(i,this.getAppointmentsInstance().option("items")),this._appointments.option("items",n),delete this.instance._updatedAppointment}else this._appointments.option("items",[]);t&&(this._workSpace._renderView(),this._dataSourceLoadedCallback.fireWith(this,[e]))}.bind(this))},_initExpressions:function(e){var t=n(50),o=function(e){return"startDate"===e||"endDate"===e};this._dataAccessors||(this._dataAccessors={getter:{},setter:{}}),i.each(e,function(e,n){if(n){var i,a,s=t.compileGetter(n),r=t.compileSetter(n);if(o(e)){var l=this;i=function(){var e=s.apply(this,arguments);return m().forceIsoDateParsing&&(l.option("dateSerializationFormat")||l.option("dateSerializationFormat",h.getDateSerializationFormat(e)),e=h.deserializeDate(e)),e},a=function(e,t){(m().forceIsoDateParsing||l.option("dateSerializationFormat"))&&(t=h.serializeDate(t,l.option("dateSerializationFormat"))),r.call(this,e,t)}}this._dataAccessors.getter[e]=i||s,this._dataAccessors.setter[e]=a||r}else delete this._dataAccessors.getter[e],delete this._dataAccessors.setter[e]}.bind(this))},_updateExpression:function(e,t){var n={};n[e.replace("Expr","")]=t,this._initExpressions(n)},_initEditing:function(){var e=this.option("editing");this._editing={allowAdding:!!e,allowUpdating:!!e,allowDeleting:!!e,allowResizing:!!e,allowDragging:!!e},p.isObject(e)&&(this._editing=d(this._editing,e)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.element().toggleClass(K,this._isReadOnly())},_isReadOnly:function(){var e=!0,t=this._editing;for(var n in t)t.hasOwnProperty(n)&&(e=e&&!t[n]);return e},_customizeStoreLoadOptions:function(){this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler)},_dispose:function(){this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._recalculateTimeout),clearTimeout(this._repaintTimer),this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler),this.callBase()},_customizeStoreLoadOptionsHandler:function(e){e.storeLoadOptions.dxScheduler={startDate:this.getStartViewDate(),endDate:this.getEndViewDate(),resources:this.option("resources")}},_initActions:function(){this._actions={onAppointmentAdding:this._createActionByOption("onAppointmentAdding"),onAppointmentAdded:this._createActionByOption("onAppointmentAdded"),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption("onAppointmentUpdated"),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption("onAppointmentDeleted"),onAppointmentFormCreated:this._createActionByOption("onAppointmentFormCreated")}},_getAppointmentRenderedAction:function(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["designMode","disabled","readOnly"]})},_renderFocusTarget:p.noop,_render:function(){this.callBase(),this._renderHeader(),this._layoutManager=new P(this,this._getAppointmentsRenderingStrategy()),this._appointments=this._createComponent("
",O,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._toggleSmallClass(),this._loadResources().done(function(e){this._renderWorkSpace(e);var t=this._workSpace.getFixedContainer(),n=this._workSpace.getAllDayContainer();this._appointments.option({fixedContainer:t,allDayContainer:n}),this._filterAppointmentsByDate(),this._reloadDataSource()}.bind(this))},_renderHeader:function(){var e=i("
").appendTo(this.element());this._header=this._createComponent(e,b,this._headerConfig())},_headerConfig:function(){var e,t=this._getCurrentViewOptions(),n=i.map(this.option("views"),function(e){return p.isObject(e)?e.type:e});return e=d({firstDayOfWeek:this.option("firstDayOfWeek"),currentView:this.option("currentView"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),width:this.option("width"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher")},t),e.observer=this,e.views=n,e.min=new Date(this._dateOption("min")),e.max=new Date(this._dateOption("max")),e.currentDate=c.trimTime(new Date(this._dateOption("currentDate"))),e},_appointmentsConfig:function(){var e=this,t={observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),appointmentDurationInMinutes:this._getCurrentViewOption("cellDuration"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),onContentReady:function(){e._workSpace&&e._workSpace.option("allDayExpanded",e._isAllDayExpanded(e.getFilteredItems()))}};return t},getAppointmentDurationInMinutes:function(){return this._getCurrentViewOption("cellDuration")},_getAppointmentsRenderingStrategy:function(){return J[this.option("currentView")].renderingStrategy},_getDayDuration:function(){return this._getCurrentViewOption("endDayHour")-this._getCurrentViewOption("startDayHour")},_renderWorkSpace:function(e){var t=i("
").appendTo(this.element());this._workSpace=this._createComponent(t,J[this.option("currentView")].workSpace,this._workSpaceConfig(e)),this._workSpace.getWorkArea().append(this._appointments.element()),this._recalculateWorkspace()},_recalculateWorkspace:function(){this._workSpaceRecalculation=i.Deferred();var e=function(){l.triggerResizeEvent(this._workSpace.element()),this._workSpaceRecalculation.resolve()}.bind(this);this.option("templatesRenderAsynchronously")?this._recalculateTimeout=setTimeout(e):e()},_workSpaceConfig:function(e){var t,n=this._getCurrentViewOptions();return t=d({noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:this.option("crossScrollingEnabled"),dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection")},n),t.observer=this,t.groups=e,t.onCellClick=this._createActionByOption("onCellClick"),t.min=new Date(this._dateOption("min")),t.max=new Date(this._dateOption("max")),t.currentDate=c.trimTime(new Date(this._dateOption("currentDate"))),t.hoursInterval=t.cellDuration/60,t.allDayExpanded=this._isAllDayExpanded(this.getFilteredItems()),t.dataCellTemplate=t.dataCellTemplate?this._getTemplate(t.dataCellTemplate):null,t.timeCellTemplate=t.timeCellTemplate?this._getTemplate(t.timeCellTemplate):null,t.resourceCellTemplate=t.resourceCellTemplate?this._getTemplate(t.resourceCellTemplate):null,t.dateCellTemplate=t.dateCellTemplate?this._getTemplate(t.dateCellTemplate):null,t},_getCurrentViewOptions:function(){var e,t=this.option("currentView");return i.each(this.option("views"),function(n,i){if(p.isObject(i)&&i.type===t)return e=i,!1}),e},_getCurrentViewOption:function(e){var t=this._getCurrentViewOptions();return t&&t[e]?t[e]:this.option(e)},_getAppointmentTemplate:function(e){var t=this._getCurrentViewOptions();return t&&t[e]?this._getTemplate(t[e]):this._getTemplateByOption(e)},_updateOption:function(e,t,n){var i=this._getCurrentViewOptions();i&&p.isDefined(i[t])||this["_"+e].option(t,n)},_refreshWorkSpace:function(e){this._appointments.element().detach(),this._workSpace._dispose(),this._workSpace.element().remove(),delete this._workSpace,this._renderWorkSpace(e),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()})},getWorkSpaceScrollable:function(){return this._workSpace.getScrollable()},getWorkSpaceScrollableScrollTop:function(){return this._workSpace.getScrollableScrollTop()},getWorkSpaceScrollableScrollLeft:function(){return this._workSpace.getScrollableScrollLeft()},getWorkSpaceScrollableContainer:function(){return this._workSpace.getScrollableContainer()},getWorkSpaceAllDayHeight:function(){return this._workSpace.getAllDayHeight()},getWorkSpaceHeaderPanelHeight:function(){return this._workSpace.getHeaderPanelHeight()},getWorkSpaceDateTableOffset:function(){return!this.option("crossScrollingEnabled")||this.option("rtlEnabled")?this._workSpace.getTimePanelWidth():0},getWorkSpace:function(){return this._workSpace},getHeader:function(){return this._header},_createPopup:function(e,t){this._$popup=i("
").addClass(U).appendTo(this.element()),this._initDynamicPopupTemplate(e,t),this._popup=this._createComponent(this._$popup,N,this._popupConfig(e))},_popupContent:function(e,t){var n=this._popup.content();return this._createAppointmentForm(e,n,t),n},_createAppointmentForm:function(e,t,n){var o=this.fire("getField","allDay",e),a=this.option("resources"),s=this.fire("getField","startDate",e),r=this.fire("getField","endDate",e);i.each(this._resourcesManager.getResourcesFromItem(e,!0)||{},function(t,n){e[t]=n});var l=d(!0,{},e);if(n&&(s=this.fire("convertDateByTimezone",s),r=this.fire("convertDateByTimezone",r),this.fire("setField","startDate",l,s),this.fire("setField","endDate",l,r)),this._appointmentForm){var c=this.option("startDateExpr"),u=this.option("endDateExpr");this._appointmentForm.option("formData",l),this._appointmentForm.option("readOnly",!!this._editAppointmentData&&!this._editing.allowUpdating);var h=this._appointmentForm.itemOption(c),p=this._appointmentForm.itemOption(u);if(h&&p){var f=h.editorOptions,m=p.editorOptions;o?f.type=m.type="date":f.type=m.type="datetime",this._appointmentForm.itemOption(c,"editorOptions",f),this._appointmentForm.itemOption(u,"editorOptions",m)}}else z.prepareAppointmentFormEditors(o,{textExpr:this.option("textExpr"),allDayExpr:this.option("allDayExpr"),startDateExpr:this.option("startDateExpr"),endDateExpr:this.option("endDateExpr"),descriptionExpr:this.option("descriptionExpr"),recurrenceRuleExpr:this.option("recurrenceRuleExpr"),startDateTimeZoneExpr:this.option("startDateTimeZoneExpr"),endDateTimeZoneExpr:this.option("endDateTimeZoneExpr")},this),a&&a.length&&(this._resourcesManager.setResources(this.option("resources")),z.concatResources(this._resourcesManager.getEditors())),this._appointmentForm=z.create(this._createComponent.bind(this),t,!!this._editAppointmentData&&!this._editing.allowUpdating,l);var g=this.option("recurrenceRuleExpr"),_=g?this._appointmentForm.itemOption(g):null;if(_){var v=_.editorOptions||{};v.startDate=s,this._appointmentForm.itemOption(g,"editorOptions",v)}this._actions.onAppointmentFormCreated({form:this._appointmentForm,appointmentData:e})},_initDynamicPopupTemplate:function(e,t){var n=this;this._defaultTemplates.appointmentPopup=new x(function(i){var o=n._popupContent(e,t);return i.container.append(o),i.container})},_popupConfig:function(e){var t=this._getTemplateByOption("appointmentPopupTemplate");return{maxWidth:X,onHiding:function(){this.focus()}.bind(this),contentTemplate:new x(function(n){return t.render({model:e,container:n.container})}),defaultOptionsRules:[{device:function(){return!f.current().generic},options:{fullScreen:!0}}]}},_getPopupToolbarItems:function(){return[{shortcut:"done",location:"after",onClick:this._doneButtonClickHandler.bind(this)},{shortcut:"cancel",location:"after"}]},_cleanPopup:function(){this._$popup&&(this._popup.element().remove(),delete this._$popup,delete this._popup,delete this._appointmentForm)},_doneButtonClickHandler:function(e){e.cancel=!0,this._saveChanges(!0);var t=this.fire("getField","startDate",this._appointmentForm.option("formData"));this._workSpace.updateScrollPosition(t)},_saveChanges:function(e){function t(e,t){var n=new Date(this.fire("getField",t,e)),i=36e5*this._getTimezoneOffsetByOption()+this.fire("getClientTimezoneOffset",n);return new Date(n.getTime()+i)}var n=this._appointmentForm.validate();if(n&&!n.isValid)return!1;e&&this._disableDoneButton();var i=this._appointmentForm.option("formData"),o=this._editAppointmentData,a=this._updatedRecAppointment;if(o){var s=this.fire("convertDateByTimezoneBack",this.fire("getField","startDate",i)),r=this.fire("convertDateByTimezoneBack",this.fire("getField","endDate",i));this.fire("setField","startDate",i,s),this.fire("setField","endDate",i,r)}return o&&!a?this.updateAppointment(o,i):(a&&this.updateAppointment(o,a),delete this._updatedRecAppointment,"number"==typeof this._getTimezoneOffsetByOption()&&(this.fire("setField","startDate",i,t.call(this,i,"startDate")),this.fire("setField","endDate",i,t.call(this,i,"endDate"))),this.addAppointment(i)),!0},_disableDoneButton:function(){var e=this._popup.option("toolbarItems");e[0].options={disabled:!0},this._popup.option("toolbarItems",e)},_checkRecurringAppointment:function(e,t,n,i,o,a){delete this._updatedRecAppointment;var s=this.fire("getField","recurrenceRule",e);if(!r.getRecurrenceRule(s).isValid||!this._editing.allowUpdating)return void i();var l=this.option("recurrenceEditMode");switch(l){case"series":i();break;case"occurrence":this._singleAppointmentChangesHandler(e,t,n,o,a);break;default:this._showRecurrenceChangeConfirm(o).done(function(s){s&&i(),!s&&this._singleAppointmentChangesHandler(e,t,n,o,a)}.bind(this)).fail(function(){this._appointments.moveAppointmentBack()}.bind(this))}},_singleAppointmentChangesHandler:function(e,t,n,i,o){function a(e,t){var n=this.fire("getField","startDate",e),i=this.fire("convertDateByTimezoneBack",n,this.fire("getField","startDateTimeZone",e)),o=this.fire("getField","endDate",e),a=this.fire("convertDateByTimezoneBack",o,this.fire("getField","endDateTimeZone",e));if("number"==typeof t&&!isNaN(t)){var s=-(this._subscribes.getClientTimezoneOffset(n)/36e5),r=-(this._subscribes.getClientTimezoneOffset(o)/36e5),l=i.getTime()-36e5*s,c=a.getTime()-36e5*r;i=new Date(l+36e5*t),a=new Date(c+36e5*t)}this.fire("setField","startDate",e,i),this.fire("setField","endDate",e,a)}n=new Date(n),this.fire("setField","recurrenceRule",t,""),this.fire("setField","recurrenceException",t,""),i||o||(a.call(this,t,this._getTimezoneOffsetByOption()),this.addAppointment(t));var s=this._getRecurrenceException(n,e),r=d({},e,{recurrenceException:s});o?(this._updatedRecAppointment=r,a.call(this,t),this._showAppointmentPopup(t,!0,!0),this._editAppointmentData=e):this._updateAppointment(e,r)},_getRecurrenceException:function(e,t){var n=this._getStartDate(t,!0),i=this._getRecurrenceExceptionDate(e,n),o=this.fire("getField","recurrenceException",t);return o?o+","+i:i},_getRecurrenceExceptionDate:function(e,t){return e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),h.serializeDate(e,"yyyyMMddTHHmmss")},_showRecurrenceChangeConfirm:function(e){var t=_.format(e?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),n=_.format(e?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),i=_.format(e?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return s.custom({message:t,showCloseButton:!0,showTitle:!0,buttons:[{text:n,onClick:function(){return!0}},{text:i,onClick:function(){return!1}}]}).show()},_getUpdatedData:function(e){var t=e.data||e,n=this.getTargetCellData(),i=this.fire("getField","allDay",t),o=new Date(this.fire("getField","startDate",t)),a=new Date(this.fire("getField","endDate",t)),s=n.date||o,r=a.getTime()-o.getTime();if(this._workSpace.keepOriginalHours()){var l=o.getTime()-c.trimTime(o).getTime();s=new Date(c.trimTime(s).getTime()+l)}var d={},u=n.allDay;this.fire("setField","allDay",d,u),this.fire("setField","startDate",d,s);var h=new Date(s.getTime()+r);if(this.appointmentTakesAllDay(t)&&!d.allDay&&this._workSpace.supportAllDayRow()&&(h=this._workSpace.calculateEndDate(s)),i&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var p=new Date(s);p.setHours(0),

h=new Date(p.getTime()+r),0!==h.getHours()&&h.setHours(this._getCurrentViewOption("endDayHour"))}this.fire("setField","endDate",d,h);var f=n.groups,m=this._resourcesManager._dataAccessors.setter;for(var g in f)f.hasOwnProperty(g)&&m[g](t,f[g]);return d},_getCoordinates:function(e,t,n){for(var i=[],o=0;o<e.length;o++){for(var a=this._workSpace.getCoordinatesByDateInGroup(e[o],t,n),s=0;s<a.length;s++)d(a[s],{startDate:e[o]});i=i.concat(a)}return i},_getSingleAppointmentData:function(e,t){t=t||{};var n,i=t.$appointment,a=t.skipDateCalculation?{}:this._getUpdatedData(t),s=d({},e,a),r=this.fire("getField","allDay",e),l=this._workSpace.supportAllDayRow()&&r,c=new Date(this.fire("getField","startDate",s)),u=new Date(this.fire("getField","endDate",s)),h=u.getTime()-c.getTime();if(p.isDefined(i)){var f=this.getRenderingStrategyInstance().getAppointmentDataCalculator();if(p.isFunction(f))n=f(i,c).startDate;else if(this._needUpdateAppointmentData(i)){var m=o.locate(i);if(n=new Date(this._workSpace.getCellDataByCoordinates(m,l).startDate),i.hasClass("dx-scheduler-appointment-reduced")){var g=i.data("dxAppointmentStartDate");g&&(n=g)}t.skipHoursProcessing||(n.setHours(c.getHours()),n.setMinutes(c.getMinutes()))}}return n&&(this.fire("setField","startDate",s,n),this.fire("setField","endDate",s,new Date(n.getTime()+h))),s},_needUpdateAppointmentData:function(e){return e.hasClass("dx-scheduler-appointment-compact")||e.hasClass("dx-scheduler-appointment-recurrence")},subscribe:function(e,t){this._subscribes[e]=w[e]=t},fire:function(e){var t=this._subscribes[e],n=Array.prototype.slice.call(arguments);if(!p.isFunction(t))throw a.Error("E1031",e);return t.apply(this,n.slice(1))},getTargetCellData:function(){return this._workSpace.getDataByDroppableCell()},_updateAppointment:function(e,t,n){var i={newData:t,oldData:e,cancel:!1},o=function(e){if(p.isFunction(n)&&n.call(this),e&&"Error"===e.name)throw e}.bind(this);this._actions.onAppointmentUpdating(i),this._processActionResult(i,function(n){if(n)o();else{this._expandAllDayPanel(t);try{this._updatedAppointment=t,this._appointmentModel.update(e,t).always(function(e){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentUpdated,t,e)}.bind(this)).fail(function(){o()})}catch(e){o(e)}}})},_processActionResult:function(e,t){W(e.cancel).done(t.bind(this))},_expandAllDayPanel:function(e){!this._isAllDayExpanded(this.getFilteredItems())&&this.appointmentTakesAllDay(e)&&this._workSpace.option("allDayExpanded",!0)},_executeActionWhenOperationIsCompleted:function(e,t,n){var i={appointmentData:t},o=n&&"Error"===n.name;o?i.error=n:this._popup&&this._popup.option("visible")&&this._popup.hide(),e(i),this._fireContentReadyAction()},_showAppointmentPopup:function(e,t,n){this._popup||this._createPopup(e,n);var i=[],o=!0;p.isDefined(t)&&!t||(i=this._getPopupToolbarItems(),o=this._popup.initialOption("showCloseButton")),this._popup.option({toolbarItems:i,showCloseButton:o}),this._initDynamicPopupTemplate(e,n),this._popup.option(this._popupConfig(e)),this._popup.show()},getAppointmentPopup:function(){return this._popup},getAppointmentDetailsForm:function(){return this._appointmentForm},getUpdatedAppointment:function(){return this._updatedAppointment},getAppointmentsInstance:function(){return this._appointments},getResourceManager:function(){return this._resourcesManager},getLayoutManager:function(){return this._layoutManager},getRenderingStrategyInstance:function(){return this._layoutManager.getRenderingStrategyInstance()},getFilteredItems:function(){return this._filteredItems},getActions:function(){return this._actions},appointmentTakesAllDay:function(e){return this._appointmentModel.appointmentTakesAllDay(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getStartDate:function(e,t){var n=this.fire("getField","startDate",e),i=this.fire("getField","startDateTimeZone",e);return n=c.makeDate(n),n=this.fire("convertDateByTimezone",n,i),!t&&this.fire("updateAppointmentStartDate",{startDate:n,appointment:e,callback:function(e){n=e}}),n},_getEndDate:function(e){var t=this.fire("getField","endDate",e);if(t){var n=this.fire("getField","endDateTimeZone",e);t=c.makeDate(t),t=this.fire("convertDateByTimezone",t,n),this.fire("updateAppointmentEndDate",{endDate:t,callback:function(e){t=e}})}return t},recurrenceEditorVisibilityChanged:function(e){this._appointmentForm&&this._appointmentForm.element().find("."+Q).toggleClass(Y,e)},dayHasAppointment:function(e,t,n){var i=new Date(this.fire("getField","startDate",t)),o=new Date(this.fire("getField","endDate",t)),a=this.fire("getField","startDateTimeZone",t),s=this.fire("getField","endDateTimeZone",t);if(i=this.fire("convertDateByTimezone",i,a),o=this.fire("convertDateByTimezone",o,s),e.getTime()===o.getTime())return i.getTime()===o.getTime();n&&(e=c.trimTime(e),i=c.trimTime(i),o=c.trimTime(o));var r=e.getTime(),l=i.getTime(),d=o.getTime();return u(r,[l,d])>-1||l<r&&d>r},setTargetedAppointmentResources:function(e,t,n){var o=this._getCurrentViewOption("groups");if(o&&o.length){var a,s,r=this._resourcesManager._dataAccessors.setter,l=this._workSpace;"agenda"===this.option("currentView")?(a=function(){var e=this.getLayoutManager()._positionMap[n];return l._getCellGroups(e[0].groupIndex)},s=function(t,n){r[n.name](e,n.id)}):(a=function(){var e=t.position();return l.getCellDataByCoordinates(e).groups},s=function(t,n){r[t](e,n)}),i.each(a.call(this),s)}},getStartViewDate:function(){return this._workSpace.getStartViewDate()},getEndViewDate:function(){return this._workSpace.getEndViewDate()},showAppointmentPopup:function(e,t,n){var i,o=!n&&e.length?this._getSingleAppointmentData(e):n;i=n?this.fire("getField","startDate",n):this.fire("getField","startDate",e),this._checkRecurringAppointment(e,o,i,function(){var n=this._editing;t?(delete this._editAppointmentData,n.allowAdding&&this._showAppointmentPopup(e,!0,!1)):(this._editAppointmentData=e,this._showAppointmentPopup(e,n.allowUpdating,!0))}.bind(this),!1,!0)},hideAppointmentPopup:function(e){this._popup&&this._popup.option("visible")&&(e&&this._saveChanges(),this._popup.hide())},showAppointmentTooltip:function(e,t,n){e&&(n=n||e,y.show(e,n,t,this))},hideAppointmentTooltip:function(){y.hide()},scrollToTime:function(e,t,n){this._workSpace.scrollToTime(e,t,n)},addAppointment:function(e){var t=this.fire("getField","text",e);t||this.fire("setField","text",e,"");var n={appointmentData:e,cancel:!1};this._actions.onAppointmentAdding(n),this._processActionResult(n,function(t){t||(this._expandAllDayPanel(e),this._appointmentModel.add(e,{value:this._getTimezoneOffsetByOption(),clientOffset:this.fire("getClientTimezoneOffset")}).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentAdded,e,t)}.bind(this)))})},updateAppointment:function(e,t){this._updateAppointment(e,t)},deleteAppointment:function(e){var t={appointmentData:e,cancel:!1};this._actions.onAppointmentDeleting(t),this._processActionResult(t,function(t){t||this._appointmentModel.remove(e).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentDeleted,e,t)}.bind(this))})},focus:function(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()}}).include(H);g("dxScheduler",ee),e.exports=ee},function(e,t,n){var i=n(9),o=n(7),a=n(11).extend,s=n(26).inArray,r=n(64),l=r.dateToMilliseconds,c=4,d={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},u={bysecond:function(e,t){e.setSeconds(t)},byminute:function(e,t){e.setMinutes(t)},byhour:function(e,t){e.setHours(t)},bymonth:function(e,t){e.setMonth(t)},bymonthday:function(e,t){if(t<0){var n=new Date(e);h(n,1,-1);var i=n.getDate();i>=Math.abs(t)?h(e,1,t):h(e,2,t)}else e.setDate(t),D(e,t)},byday:function(e,t,n,i){var o=t;"DAILY"===i&&0===t&&(o=7),t+=g[n]>o?7:0,e.setDate(e.getDate()-e.getDay()+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-g[n],s=o.getTime()-a*l("day"),r=a+1;r>c?e.setTime(s+7*t*l("day")):e.setTime(s+7*(t-1)*l("day"));var d=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");d&&e.setTime(e.getTime()+d)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},h=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},p={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n,i=new Date(e),o=c-i.getDay()+g[t]-1,a=l("day");return e.getDay()<g[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o),n=1+(i-new Date(i.getFullYear(),0,1))/a,Math.ceil(n/7)},byyearday:function(e){var t=new Date(e.getFullYear(),0,0),n=e.getTimezoneOffset()-t.getTimezoneOffset(),i=e-t-n*l("minute"),o=l("day");return Math.floor(i/o)}},f=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],m=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],g={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},_=function(){return(new Date).getTimezoneOffset()},v=function(e){var t=[];return e.rule&&(t=C(e)),!!t.length},w=function(e,t){var n={},i=d[e.toLowerCase()];return n[i]=t,n},x=function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=W(e[n]);return t},y=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=x(i),a=/\d{8}$/,s=0,r=o.length;s<r;s++)if(i[s].match(a)){var l=E(e,o[s]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[s].getTime()&&(n=!0);return n},b=function(e,t,n,i,o){var a,s=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(s=!1),a=e.getTime()<=n,a&&s},C=function(e){var t,n=[],o=A(e.rule),a={},s=o.rule,r=e.start;if(!o.isValid||!s.freq)return n;s.interval=w(s.freq,s.interval),t=j(s);var c=e.end?e.end.getTime()-e.start.getTime():l("day"),d={exception:e.exception,min:e.min,dateRules:t,rule:s,recurrenceStartDate:r,recurrenceEndDate:e.end,duration:c};if(t.length&&s.count){var u=0;Z(t,new Date(r),new Date(r),s).forEach(function(t,n){t<e.max&&(u++,a=k(u,a,t,n,d,!0))})}else Y(t,new Date(r),s).forEach(function(t,n){for(var i=0;b(t,r,e.max,s,i);)i++,a=k(i,a,t,n,d),t=T(t,r,s,n)});return s.bysetpos&&i.each(a,function(e,t){a[e]=S(t,s.bysetpos)}),i.each(a,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},k=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),I(n,i,o,a)&&t[e].push(n),t},I=function(e,t,n,i){if(!y(e,n.exception)){var o=r.sameDate(e,n.recurrenceEndDate)?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||X(e,[n.dateRules[t]],n.rule.wkst)}return!1},S=function(e,t){var n=[];return t.split(",").forEach(function(t){t=Number(t);var i=t>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},D=function(e,t){e.getDate()!==t&&e.setDate(t)},T=function(e,t,n,i){var o=new Date(e),a=!0;if(e=r.addInterval(e,n.interval),"MONTHLY"===n.freq){var s=t.getDate();n.bymonthday&&(s=Number(n.bymonthday.split(",")[i]),s<0&&(o.setMonth(o.getMonth()+1,1),u.bymonthday(o,s),e=o,a=!1)),a&&D(e,s)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);u.byyearday(e,l)}var c=j(n);for(var d in c[i])u[d]&&u[d](e,c[i][d],n.wkst)}return e},E=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()}},A=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=N(e),t.isValid=M(t.rule,e)),t},B=[],M=function(e,t){return!(L(e)||s(e.freq,m)===-1||O(e)||F(e)||H(e)||P(e)||V(e)||R(e))||(z(t),!1)},R=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},O=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},P=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},V=function(e){var t=!1,n=e.bymonth;return n&&isNaN(parseInt(n))&&(t=!0),t},F=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},H=function(e){var t=q(e),n=!1;return i.each(t,function(e,t){if(!g.hasOwnProperty(t))return n=!0,!1}),n},L=function(e){var t=!1;return i.each(e,function(e){if(s(e,f)===-1)return t=!0,!1}),t},z=function(e){s(e,B)===-1&&(o.log("W0006",e),B.push(e))},N=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),s=a[0].toLowerCase(),r=a[1];t[s]=r}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=W(t.until)),t},W=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}))?(Z)?/);if(!t)return null;var n=void 0!==t[8],i=6e4*ee.getTimeZoneOffset(),o=new(Function.prototype.bind.apply(Date,$(t)));return n&&(o=new Date(o.getTime()-i)),o},$=function(e){return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),e},q=function(e){var t=[];return e.byday&&(t=e.byday.split(",")),t},G=function(e){var t=6e4*ee.getTimeZoneOffset();return e=new Date(e.getTime()+t),e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},j=function(e){var t=[];if(e.wkst||(e.wkst="MO"),e.byweekno&&!e.byday){for(var n=Object.keys(g),i=0;i<g[e.wkst];i++)n.push(n.shift());e.byday=n.join(",")}for(var o in u)if(e[o]){var a=e[o].split(","),s=K(o,a);t=t.length?Q(s,t):s}return t},K=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=U(e,t[i]),n.push(a)}return n},U=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=g[t]),n},Q=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)for(var s=0,r=t.length;s<r;s++)n.push(a({},e[i],t[s]));return n},Y=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var s=e[o],r=new Date(t);for(var l in s)u[l]&&u[l](r,s[l],n.wkst,n.freq);Array.isArray(r)?i=i.concat(r):i.push(new Date(r))}return i.length||i.push(t),i},Z=function(e,t,n,i){for(var o=[],a=i.count,s=0,l=new Date(t);s<a;){for(var c=Y(e,l,i),d=[],u=0;u<c.length;u++)c[u].getTime()>=n.getTime()&&d.push(c[u]);var h=d.length;s+=h;var p=s-a;for(s>a&&d.splice(h-p,p),u=0;u<d.length;u++)o.push(d[u]);l=r.addInterval(l,i.interval)}return o},X=function(e,t,n){for(var i=!1,o=0;o<t.length;o++){var a=t[o],s=!0;for(var r in a){var l="bymonthday"===r&&a[r]<0;p[r]&&!l&&a[r]!==p[r](e,n)&&(s=!1)}i=i||s}return i||!t.length},J=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=G(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}},ee={getRecurrenceString:J,getRecurrenceRule:A,getAsciiStringByDate:G,getDatesByRecurrence:C,dateInRecurrenceRange:v,getDateByAsciiString:W,daysFromByDayRule:q,getTimeZoneOffset:_};e.exports=ee},function(e,t,n){var i=n(9),o=n(26),a=n(471),s=n(64),r=n(70),l=n(14),c=n(12),d=n(11).extend,u=n(26).inArray,h=n(33),p=n(473),f=s.dateToMilliseconds,m={currentViewUpdated:function(e){this.option("currentView",e)},currentDateUpdated:function(e){this.option("currentDate",e)},setCellDataCacheAlias:function(e,t){this._workSpace.setCellDataCacheAlias(e,t)},needCoordinates:function(e){var t=e.appointmentData,n=e.startDate,i=this._getEndDate(t),o=this.fire("getField","recurrenceRule",t),r=this.fire("getField","recurrenceException",t),l=this._workSpace.getDateRange(),c=this.appointmentTakesAllDay(t)?s.trimTime(new Date(l[0])):l[0],d=e.originalStartDate||n,u={rule:o,exception:r,start:d,end:i,min:c,max:l[1]},h=a.getDatesByRecurrence(u);h.length||h.push(n);var p=this._resourcesManager.getResourcesFromItem(t),f=this.appointmentTakesAllDay(t)&&this._workSpace.supportAllDayRow();e.callback(this._getCoordinates(h,p,f))},showAppointmentTooltip:function(e){e.skipDateCalculation=!0,e.$appointment=i(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e);this.showAppointmentTooltip(t,e.target,n)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showAddAppointmentPopup:function(e){var t={};i.each(["startDate","endDate","allDay"],function(n,i){void 0!==e[i]&&(this.fire("setField",i,t,e[i]),delete e[i])}.bind(this)),this.showAppointmentPopup(d(t,e),!0)},showEditAppointmentPopup:function(e){var t=e.data;e.$appointment=i(e.target),e.skipHoursProcessing=!0;var n=this._getSingleAppointmentData(t,e),o=this.fire("getField","startDate",n);this.showAppointmentPopup(t,!1,n,o)},updateAppointmentAfterResize:function(e){var t=e.target,n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n),o=d(!0,{},e.data),a=this.fire("convertDateByTimezoneBack",this.fire("getField","startDate",o),this.fire("getField","startDateTimeZone",o)),s=this.fire("convertDateByTimezoneBack",this.fire("getField","endDate",o),this.fire("getField","endDateTimeZone",o));this.fire("setField","startDate",o,a),this.fire("setField","endDate",o,s),this._checkRecurringAppointment(t,n,i,function(){this._updateAppointment(t,o,function(){this._appointments.moveAppointmentBack()})}.bind(this))},updateAppointmentAfterDrag:function(e){var t=e.data,n=this._getUpdatedData(e),i=this._workSpace.getDroppableCellIndex(),o=this._workSpace.getCellIndexByCoordinates(e.coordinates),a=this.fire("getField","allDay",n),s=this.fire("getField","allDay",t),r=d({},t,n),l=this._workSpace.supportAllDayRow()&&a,c=this._workSpace.getCellDataByCoordinates(e.coordinates,l),u=this._workSpace.supportAllDayRow()&&(s&&!a||!s&&a);i!==o||u?this._checkRecurringAppointment(t,r,c.startDate,function(){var e=this.fire("convertDateByTimezoneBack",this.fire("getField","startDate",n),this.fire("getField","startDateTimeZone",n)),i=this.fire("convertDateByTimezoneBack",this.fire("getField","endDate",n),this.fire("getField","endDateTimeZone",n));this.fire("setField","startDate",r,e),this.fire("setField","endDate",r,i),this._updateAppointment(t,r,function(){this._appointments.moveAppointmentBack()})}.bind(this)):this._appointments.moveAppointmentBack()},deleteAppointment:function(e){e.$appointment=i(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e),o=this.fire("getField","startDate",n);this._checkRecurringAppointment(t,n,o,function(){this.deleteAppointment(t)}.bind(this),!0)},getResourceForPainting:function(){return this._resourcesManager.getResourceForPainting(this._getCurrentViewOption("groups"))},getAppointmentColor:function(e){var t=this._resourcesManager,n=t.getResourceForPainting(this._getCurrentViewOption("groups")),a=i.Deferred().resolve().promise();if(n){for(var s=t.getField(n),r=e.groupIndex,l=this._workSpace._getCellGroups(r),c=o.wrapToArray(t.getDataAccessors(s,"getter")(e.itemData)),d=c.length?c[0]:void 0,u=0;u<l.length;u++)if(l[u].name===s){d=l[u].id;break}a=t.getResourceColor(s,d)}e.callback(a)},getHeaderHeight:function(){return this._header._$element&&parseInt(this._header._$element.css("height"),10)},getResourcesFromItem:function(e){e.callback(this._resourcesManager.getResourcesFromItem(e.itemData))},getBoundOffset:function(e){e.callback({top:-this.getWorkSpaceAllDayHeight()})},appointmentTakesAllDay:function(e){e.callback(this.appointmentTakesAllDay(e.appointment))},appointmentTakesSeveralDays:function(e){return this._appointmentModel.appointmentTakesSeveralDays(e)},appointmentFocused:function(){this._workSpace.restoreScrollTop()},getResizableAppointmentArea:function(e){var t,n=e.allDay,i=this._getCurrentViewOption("groups");if(i&&i.length&&(n||"month"===this.option("currentView"))){var o=this._workSpace.getGroupBounds(e.coordinates);t={left:o.left,right:o.right,top:0,bottom:0}}e.callback(t)},getDraggableAppointmentArea:function(e){e.callback(this.getWorkSpaceScrollableContainer())},getDragEventTargetElements:function(e){e.callback(this.element)},getAppointmentGeometry:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(e)},isAllDay:function(e){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(e)},getDeltaTime:function(e,t,n){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(e,t,n)},getCompactAppointmentGroupMaxWidth:function(){return this.getLayoutManager().getRenderingStrategyInstance().getCompactAppointmentGroupMaxWidth()},getStartDate:function(e,t){return this._getStartDate(e,t)},getCellWidth:function(){return this._cellWidth},getCellHeight:function(){return this._cellHeight},getEndDate:function(e){return this._getEndDate(e)},getRenderingStrategy:function(){return this._getAppointmentsRenderingStrategy()},correctAppointmentCoordinates:function(e){var t=e.allDay,n=e.isFixedContainer?-1:1,i=t?0:this.getWorkSpaceScrollableScrollTop(),o=t?0:this.getWorkSpaceAllDayHeight(),a=this.getWorkSpaceHeaderPanelHeight(),s=this.getWorkSpaceScrollableScrollLeft(),r=this.getWorkSpaceDateTableOffset(),l=-i+o+a,c=-s-r;e.callback({top:e.coordinates.top+n*l,left:e.coordinates.left+n*c})},allDayPanelToggled:function(){this._appointments.updateDraggablesBoundOffsets()},formatDates:function(e){var t=e.startDate,n=e.endDate,i=e.formatType,o={DATETIME:function(){var e="mediumdatemediumtime",i=h.format(t,e)+" - ",o=t.getDate()===n.getDate()?h.format(n,"shorttime"):h.format(n,e);return i+o},TIME:function(){return h.format(t,"shorttime")+" - "+h.format(n,"shorttime")},DATE:function(){var e="monthAndDay",i=h.format(t,e),o=n.getTime()-t.getTime()>864e5,a=o||n.getDate()!==t.getDate()?" - "+h.format(n,e):"";return i+a}};e.callback(o[i]())},getFullWeekAppointmentWidth:function(e){var t=e.groupIndex,n=this._workSpace.getGroupWidth(t);e.callback(n)},getMaxAppointmentWidth:function(e){var t=this._workSpace.getCellCountToLastViewDate(e.date);e.callback(t*this._workSpace.getCellWidth())},updateAppointmentStartDate:function(e){var t,n=e.appointment,i=this._workSpace.getStartViewDate(),o=new Date(e.startDate),a=this._getCurrentViewOption("startDayHour");this.appointmentTakesAllDay(n)?t=s.normalizeDate(o,i):(o<i&&(o=i),t=s.normalizeDate(e.startDate,new Date(o))),t.getHours()<a&&(t.setHours(a),t.setMinutes(0)),e.callback(t)},updateAppointmentEndDate:function(e){var t=new Date(e.endDate),n=this._getCurrentViewOption("endDayHour"),i=t;t.getHours()>=n&&(i.setHours(n),i.setMinutes(0)),e.callback(i)},renderDropDownAppointments:function(e){this._dropDownAppointments.render(e,this)},getGroupCount:function(e){var t=this._workSpace._getGroupCount();e.callback(t)},updateResizableArea:function(){var e=this.element().find(".dx-scheduler-appointment.dx-resizable"),t=l.grep(e,function(e){var t=i(e),n=t.dxResizable("instance"),o=n.option("area");return u(n.option("handles"),["right left","left right"])>-1&&c.isPlainObject(o)});i.each(t,function(e,t){var n=i(t),o=r.locate(n),a=this._appointments._getItemData(n),s=this._appointments._calculateResizableArea({left:o.left},a);n.dxResizable("instance").option("area",s)}.bind(this))},recurrenceEditorVisibilityChanged:function(e){this.recurrenceEditorVisibilityChanged(e.visible)},getField:function(e,t){if(l.isDefined(this._dataAccessors.getter[e]))return this._dataAccessors.getter[e](t)},setField:function(e,t,n){if(l.isDefined(this._dataAccessors.setter[e])){var i=this.option(e+"Expr").split("."),o=i[0];if(void 0===t[o]&&i.length>1){var a=function(e){for(var t={},n=t,i=e.length-1,o=1;o<i;o++)n=n[e[o]]={};return t}(i);t[o]=a}return this._dataAccessors.setter[e](t,n),t}},prerenderFilter:function(){var e,t=this.getWorkSpace().getDateRange(),n=this._resourcesManager.getResourcesData();return!this.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(e=!1),this._appointmentModel.filterLoadedAppointments({startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),min:t[0],max:t[1],resources:n,allDay:e},this._subscribes.convertDateByTimezone.bind(this))},dayHasAppointment:function(e,t,n){return this.dayHasAppointment(e,t,n)},createResourcesTree:function(){return this._resourcesManager.createResourcesTree(this._loadedResources)},getResourceTreeLeaves:function(e,t){return this._resourcesManager.getResourceTreeLeaves(e,t)},createReducedResourcesTree:function(){var e=this._resourcesManager.createResourcesTree(this._loadedResources);return this._resourcesManager.reduceResourcesTree(e,this.getFilteredItems())},groupAppointmentsByResources:function(e){var t={0:e},n=this._getCurrentViewOption("groups");n&&n.length&&this._resourcesManager.getResourcesData().length&&(t=this._resourcesManager.groupAppointmentsByResources(e,this._loadedResources));var o=0;i.each(this._loadedResources,function(e,t){e?o*=t.items.length:o=t.items.length});for(var a=0;a<o;a++){var s=a.toString();t[s]||(t[s]=[])}return t},getAgendaRows:function(e){function t(n){var i=o(n,e.agendaDuration,e.currentDate);this._dataSourceLoadedCallback.remove(t),a.resolve(i)}var n=this._layoutManager.getRenderingStrategyInstance(),o=n.calculateRows.bind(n),a=i.Deferred();return this._dataSourceLoadedCallback.add(t),a.promise()},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},agendaIsReady:function(e,t,n){var o=this.getAppointmentsInstance()._itemElements(),a=0;o.css("margin-bottom",t);for(var s=function(e,t){var i=t+a-1;o.eq(i).css("margin-bottom",n),a+=t},r=0;r<e.length;r++)i.each(e[r],s)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getClientTimezoneOffset:function(e){return e=e||new Date,p.getClientTimezoneOffset(e)},convertDateByTimezone:function(e,t){e=new Date(e);var n=-(this._subscribes.getClientTimezoneOffset(e)/36e5),i=this._getTimezoneOffsetByOption(e),o=this._calculateTimezoneByValue(t,e);"number"!=typeof o&&(o=n);var a=e.getTime()-36e5*n;return e=new Date(a+36e5*o),"number"==typeof i&&(e=new Date(e.getTime()+36e5*(i-o))),e},convertDateByTimezoneBack:function(e,t){e=new Date(e);var n=-(this._subscribes.getClientTimezoneOffset(e)/36e5),i=this._getTimezoneOffsetByOption(e),o=this._calculateTimezoneByValue(t,e);"number"!=typeof o&&(o=n);var a=e.getTime()+36e5*n;return e=new Date(a-36e5*o),"number"==typeof i&&(e=new Date(e.getTime()-36e5*(i-o))),e},getTimezonesDisplayName:function(){return p.getTimezonesDisplayName()},getTimezoneDisplayNameById:function(e){return p.getTimezoneDisplayNameById(e)},getSimilarTimezones:function(e){return p.getSimilarTimezones(e)},getTimezonesIdsByDisplayName:function(e){return p.getTimezonesIdsByDisplayName(e)},getTargetedAppointmentData:function(e,t,n){var i=this._getSingleAppointmentData(e,{skipDateCalculation:!0,$appointment:t}),o={};return d(!0,o,e,i),this.setTargetedAppointmentResources(o,t,n),o},getAppointmentDurationInMs:function(e){var t=e.startDate,n=e.endDate,i=e.allDay,o=n.getTime()-t.getTime(),a=f("day"),r=this._getDayDuration()*f("hour"),l=0;if(i){var c=Math.ceil(o/a);l=c*r}else{var d,u=!s.sameDate(t,new Date(n.getTime()-1)),h=Math.floor(o/a);if(u){var p=a-r;d=o-(h?h*a:p);var m=this.option("startDayHour")*f("hour"),g=n-s.trimTime(n);g<m&&(h&&(d-=p),d+=m-g)}else d=o%a;d>r&&(d=r),l=h*r+d}e.callback(l)},getEndDayHour:function(){return this.option("endDayHour")},getStartDayHour:function(){return this.option("startDayHour")}};e.exports=m},function(e,t,n){var i=n(160),o=n(7),a=n(474),s={_displayNames:a.displayNames,_list:a.timezones,getTimezones:function(){return this._list},getDisplayNames:function(){return this._displayNames},queryableTimezones:function(){return i(this.getTimezones())},getTimezoneById:function(e){var t,n=0,i=this.getTimezones();if(e)for(;!t;){if(!i[n])return void o.log("W0009",e);var a=i[n].id;a===e&&(t=i[n]),n++}return t},getTimezoneOffsetById:function(e,t){var n,i,o,a,s=this.getTimezoneById(e);if(s){if(s.link){var r=this.getTimezones()[s.link];n=r.offsets,o=r.untils,i=r.offsetIndices}else n=s.offsets,o=s.untils,i=s.offsetIndices;a=this.getUtcOffset(n,i,o,t)}return a},getUtcOffset:function(e,t,n,i){for(var o=0,a=t.split(""),s=n.split("|").map(function(e){return"Infinity"===e?null:1e3*parseInt(e,36)}),r=0,l=0,c=s.length;l<c;l++){r+=s[l];{if(!(i>=r))break;o=l}}return s[o+1]&&o++,e[Number(a[o])]},getTimezoneShortDisplayNameById:function(e){var t,n=this.getTimezoneById(e);return n&&(t=n.DisplayName.substring(0,11)),t},getTimezonesDisplayName:function(){return i(this.getDisplayNames()).sortBy().toArray()},getTimezoneDisplayNameById:function(e){var t=this.getTimezoneById(e);return t?this.getDisplayNames()[t.winIndex]:""},getSimilarTimezones:function(e){if(!e)return[];var t=this.getTimezoneById(e);return this.getTimezonesIdsByWinIndex(t.winIndex)},getTimezonesIdsByWinIndex:function(e){return this.queryableTimezones().filter(["winIndex",e]).sortBy("title").toArray().map(function(e){return{id:e.id,displayName:e.title}})},getTimezonesIdsByDisplayName:function(e){var t=this.getDisplayNames().indexOf(e);return this.getTimezonesIdsByWinIndex(t)},getClientTimezoneOffset:function(e){return 6e4*e.getTimezoneOffset()},processDateDependOnTimezone:function(e,t){var n=new Date(e);if(t){var i=t+this.getClientTimezoneOffset(e)/36e5;n=new Date(n.setHours(n.getHours()+i))}return n}};e.exports=s},function(e,t){var n=["(UTC) Monrovia, Reykjavik","(UTC+03:00) Nairobi","(UTC+02:00) Harare, Pretoria","(UTC+01:00) West Central Africa","(UTC+02:00) Athens, Bucharest","(UTC+03:00) Kuwait, Riyadh","(UTC+07:00) Bangkok, Hanoi, Jakarta","(UTC+04:00) Abu Dhabi, Muscat","(UTC+12:00) Auckland, Wellington","(UTC-03:00) City of Buenos Aires","(UTC-05:00) Bogota, Lima, Quito, Rio Branco","(UTC-08:00) Pacific Time (US & Canada)","(UTC-05:00) Indiana (East)","(UTC-06:00) Central Time (US & Canada)","(UTC-05:00) Eastern Time (US & Canada)","(UTC-07:00) Mountain Time (US & Canada)","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan","(UTC+05:00) Ashgabat, Tashkent","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi","(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi","(UTC+06:00) Dhaka","(UTC+06:00) Astana","(UTC+05:45) Kathmandu","(UTC+02:00) Jerusalem","(UTC+08:00) Kuala Lumpur, Singapore","(UTC+08:00) Ulaanbaatar","(UTC) Dublin, Edinburgh, Lisbon, London","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","(UTC+10:00) Canberra, Melbourne, Sydney","(UTC+09:30) Darwin","(UTC+10:00) Brisbane","(UTC+09:30) Adelaide","(UTC+10:00) Hobart","(UTC+08:00) Perth","(UTC-02:00) Coordinated Universal Time-02","(UTC-03:00) Brasilia","(UTC-04:00) Atlantic Time (Canada)","(UTC-06:00) Saskatchewan","(UTC-03:30) Newfoundland","(UTC-03:00) Santiago","(UTC+02:00) Cairo","UTC","(UTC+03:30) Tehran","(UTC+09:00) Osaka, Sapporo, Tokyo","(UTC+12:00) Coordinated Universal Time+12","(UTC+02:00) Tripoli","(UTC-07:00) Chihuahua, La Paz, Mazatlan","(UTC-06:00) Guadalajara, Mexico City, Monterrey","(UTC+11:00) Solomon Is., New Caledonia","(UTC-11:00) Coordinated Universal Time-11","(UTC+10:00) Guam, Port Moresby","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb","(UTC+08:00) Taipei","(UTC+09:00) Seoul","(UTC+02:00) Istanbul","(UTC-09:00) Alaska","(UTC-07:00) Arizona","(UTC-10:00) Hawaii","(UTC+03:00) Moscow, St. Petersburg, Volgograd","(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","(UTC) Casablanca","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","(UTC+01:00) Windhoek","(UTC-03:00) Cayenne, Fortaleza","(UTC-04:00) Asuncion","(UTC-03:00) Salvador","(UTC-06:00) Central America","(UTC-04:00) Cuiaba","(UTC-04:30) Caracas","(UTC-03:00) Greenland","(UTC-03:00) Montevideo","(UTC-08:00) Baja California","(UTC-01:00) Azores","(UTC+02:00) Amman","(UTC+10:00) Magadan","(UTC+03:00) Baghdad","(UTC+04:00) Baku","(UTC+02:00) Beirut","(UTC+09:00) Yakutsk","(UTC+05:30) Sri Jayawardenepura","(UTC+02:00) Damascus","(UTC+08:00) Irkutsk","(UTC+04:30) Kabul","(UTC+05:00) Islamabad, Karachi","(UTC+07:00) Krasnoyarsk","(UTC+06:00) Novosibirsk","(UTC+06:30) Yangon (Rangoon)","(UTC+10:00) Vladivostok","(UTC+04:00) Tbilisi","(UTC+05:00) Ekaterinburg","(UTC+04:00) Yerevan","(UTC-01:00) Cabo Verde Is.","(UTC-12:00) International Date Line West","(UTC+13:00) Nuku'alofa","(UTC+14:00) Kiritimati Island","(UTC+02:00) Kaliningrad","(UTC+04:00) Port Louis","(UTC+13:00) Samoa","(UTC+12:00) Fiji"],i=[{ id:"Africa/Bamako",title:"Bamako",winIndex:0,link:185},{id:"Africa/Banjul",title:"Banjul",winIndex:0,link:185},{id:"Africa/Conakry",title:"Conakry",winIndex:0,link:185},{id:"Africa/Dakar",title:"Dakar",winIndex:0,link:185},{id:"Africa/Freetown",title:"Freetown",winIndex:0,link:185},{id:"Africa/Lome",title:"Lome",winIndex:0,link:185},{id:"Africa/Nouakchott",title:"Nouakchott",winIndex:0,link:185},{id:"Africa/Ouagadougou",title:"Ouagadougou",winIndex:0,link:185},{id:"Africa/Sao_Tome",title:"Sao Tome",winIndex:0,link:185},{id:"Atlantic/St_Helena",title:"St Helena",winIndex:0,link:185},{id:"Africa/Addis_Ababa",title:"Addis Ababa",winIndex:1,link:198},{id:"Africa/Asmara",title:"Asmara",winIndex:1,link:198},{id:"Africa/Dar_es_Salaam",title:"Dar es Salaam",winIndex:1,link:198},{id:"Africa/Djibouti",title:"Djibouti",winIndex:1,link:198},{id:"Africa/Kampala",title:"Kampala",winIndex:1,link:198},{id:"Africa/Mogadishu",title:"Mogadishu",winIndex:1,link:198},{id:"Indian/Antananarivo",title:"Antananarivo",winIndex:1,link:198},{id:"Indian/Comoro",title:"Comoro",winIndex:1,link:198},{id:"Indian/Mayotte",title:"Mayotte",winIndex:1,link:198},{id:"Africa/Blantyre",title:"Blantyre",winIndex:2,link:196},{id:"Africa/Bujumbura",title:"Bujumbura",winIndex:2,link:196},{id:"Africa/Gaborone",title:"Gaborone",winIndex:2,link:196},{id:"Africa/Harare",title:"Harare",winIndex:2,link:196},{id:"Africa/Kigali",title:"Kigali",winIndex:2,link:196},{id:"Africa/Lubumbashi",title:"Lubumbashi",winIndex:2,link:196},{id:"Africa/Lusaka",title:"Lusaka",winIndex:2,link:196},{id:"Africa/Bangui",title:"Bangui",winIndex:3,link:195},{id:"Africa/Brazzaville",title:"Brazzaville",winIndex:3,link:195},{id:"Africa/Douala",title:"Douala",winIndex:3,link:195},{id:"Africa/Kinshasa",title:"Kinshasa",winIndex:3,link:195},{id:"Africa/Libreville",title:"Libreville",winIndex:3,link:195},{id:"Africa/Luanda",title:"Luanda",winIndex:3,link:195},{id:"Africa/Malabo",title:"Malabo",winIndex:3,link:195},{id:"Africa/Niamey",title:"Niamey",winIndex:3,link:195},{id:"Africa/Porto-Novo",title:"Porto-Novo",winIndex:3,link:195},{id:"Africa/Maseru",title:"Maseru",winIndex:2,link:193},{id:"Africa/Mbabane",title:"Mbabane",winIndex:2,link:193},{id:"Africa/Juba",title:"Juba",winIndex:1,link:194},{id:"Europe/Nicosia",title:"Nicosia",winIndex:4,link:381},{id:"Asia/Bahrain",title:"Bahrain",winIndex:5,link:388},{id:"Asia/Aden",title:"Aden",winIndex:5,link:391},{id:"Asia/Kuwait",title:"Kuwait",winIndex:5,link:391},{id:"Asia/Phnom_Penh",title:"Phnom Penh",winIndex:6,link:349},{id:"Asia/Vientiane",title:"Vientiane",winIndex:6,link:349},{id:"Asia/Muscat",title:"Muscat",winIndex:7,link:359},{id:"Antarctica/McMurdo",title:"McMurdo",winIndex:8,link:511},{id:"Africa/Asmera",title:"Asmera",winIndex:1,link:198},{id:"Africa/Timbuktu",title:"Timbuktu",winIndex:0,link:185},{id:"America/Buenos_Aires",title:"Buenos Aires",winIndex:9,link:206},{id:"America/Catamarca",title:"Catamarca",winIndex:9,link:207},{id:"America/Coral_Harbour",title:"Coral Harbour",winIndex:10,link:219},{id:"America/Cordoba",title:"Cordoba",winIndex:9,link:208},{id:"America/Ensenada",title:"Ensenada",winIndex:11,link:325},{id:"America/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Jujuy",title:"Jujuy",winIndex:9,link:209},{id:"America/Knox_IN",title:"Knox IN",winIndex:13,link:261},{id:"America/Louisville",title:"Louisville",winIndex:14,link:272},{id:"America/Mendoza",title:"Mendoza",winIndex:9,link:211},{id:"America/Porto_Acre",title:"Porto Acre",winIndex:10,link:312},{id:"America/Shiprock",title:"Shiprock",winIndex:15,link:244},{id:"America/Virgin",title:"Virgin",winIndex:16,link:303},{id:"Antarctica/South_Pole",title:"South Pole",winIndex:8,link:511},{id:"Asia/Ashkhabad",title:"Ashkhabad",winIndex:17,link:346},{id:"Asia/Calcutta",title:"Calcutta",winIndex:18,link:373},{id:"Asia/Chongqing",title:"Chongqing",winIndex:19,link:395},{id:"Asia/Chungking",title:"Chungking",winIndex:19,link:395},{id:"Asia/Dacca",title:"Dacca",winIndex:20,link:357},{id:"Asia/Harbin",title:"Harbin",winIndex:19,link:395},{id:"Asia/Kashgar",title:"Kashgar",winIndex:21,link:405},{id:"Asia/Katmandu",title:"Katmandu",winIndex:22,link:371},{id:"Asia/Macao",title:"Macao",winIndex:19,link:377},{id:"Asia/Saigon",title:"Saigon",winIndex:6,link:361},{id:"Asia/Tel_Aviv",title:"Tel Aviv",winIndex:23,link:367},{id:"Asia/Thimbu",title:"Thimbu",winIndex:20,link:402},{id:"Asia/Ujung_Pandang",title:"Ujung Pandang",winIndex:24,link:379},{id:"Asia/Ulan_Bator",title:"Ulan Bator",winIndex:25,link:404},{id:"Atlantic/Faeroe",title:"Faeroe",winIndex:26,link:415},{id:"Atlantic/Jan_Mayen",title:"Jan Mayen",winIndex:27,link:483},{id:"Australia/ACT",title:"ACT",winIndex:28,link:429},{id:"Australia/Canberra",title:"Canberra",winIndex:28,link:429},{id:"Australia/NSW",title:"NSW",winIndex:28,link:429},{id:"Australia/North",title:"North",winIndex:29,link:424},{id:"Australia/Queensland",title:"Queensland",winIndex:30,link:421},{id:"Australia/South",title:"South",winIndex:31,link:420},{id:"Australia/Tasmania",title:"Tasmania",winIndex:32,link:425},{id:"Australia/Victoria",title:"Victoria",winIndex:28,link:427},{id:"Australia/West",title:"West",winIndex:33,link:428},{id:"Australia/Yancowinna",title:"Yancowinna",winIndex:31,link:422},{id:"Brazil/Acre",title:"Acre",winIndex:10,link:312},{id:"Brazil/DeNoronha",title:"DeNoronha",winIndex:34,link:294},{id:"Brazil/East",title:"East",winIndex:35,link:317},{id:"Brazil/West",title:"West",winIndex:16,link:279},{id:"Canada/Atlantic",title:"Atlantic",winIndex:36,link:257},{id:"Canada/Central",title:"Central",winIndex:13,link:329},{id:"Canada/East-Saskatchewan",title:"East-Saskatchewan",winIndex:37,link:310},{id:"Canada/Eastern",title:"Eastern",winIndex:14,link:326},{id:"Canada/Mountain",title:"Mountain",winIndex:15,link:246},{id:"Canada/Newfoundland",title:"Newfoundland",winIndex:38,link:320},{id:"Canada/Pacific",title:"Pacific",winIndex:11,link:327},{id:"Canada/Saskatchewan",title:"Saskatchewan",winIndex:37,link:310},{id:"Canada/Yukon",title:"Yukon",winIndex:11,link:328},{id:"Chile/Continental",title:"Continental",winIndex:39,link:315},{id:"Cuba",title:"Cuba",winIndex:14,link:258},{id:"Egypt",title:"Egypt",winIndex:40,link:189},{id:"Eire",title:"Eire",winIndex:26,link:469},{id:"Europe/Belfast",title:"Belfast",winIndex:26,link:476},{id:"Europe/Tiraspol",title:"Tiraspol",winIndex:4,link:467},{id:"GB",title:"GB",winIndex:26,link:476},{id:"GB-Eire",title:"GB-Eire",winIndex:26,link:476},{id:"GMT+0",title:"GMT+0",winIndex:41,link:150},{id:"GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"GMT0",title:"GMT0",winIndex:41,link:150},{id:"Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Hongkong",title:"Hongkong",winIndex:19,link:362},{id:"Iceland",title:"Iceland",winIndex:0,link:417},{id:"Iran",title:"Iran",winIndex:42,link:401},{id:"Israel",title:"Israel",winIndex:23,link:367},{id:"Jamaica",title:"Jamaica",winIndex:10,link:270},{id:"Japan",title:"Japan",winIndex:43,link:403},{id:"Kwajalein",title:"Kwajalein",winIndex:44,link:524},{id:"Libya",title:"Libya",winIndex:45,link:200},{id:"Mexico/BajaNorte",title:"BajaNorte",winIndex:11,link:325},{id:"Mexico/BajaSur",title:"BajaSur",winIndex:46,link:282},{id:"Mexico/General",title:"General",winIndex:47,link:285},{id:"NZ",title:"NZ",winIndex:8,link:511},{id:"Navajo",title:"Navajo",winIndex:15,link:244},{id:"PRC",title:"PRC",winIndex:19,link:395},{id:"Pacific/Ponape",title:"Ponape",winIndex:48,link:532},{id:"Pacific/Samoa",title:"Samoa",winIndex:49,link:530},{id:"Pacific/Truk",title:"Truk",winIndex:50,link:512},{id:"Poland",title:"Poland",winIndex:51,link:498},{id:"Portugal",title:"Portugal",winIndex:26,link:475},{id:"ROC",title:"ROC",winIndex:52,link:398},{id:"ROK",title:"ROK",winIndex:53,link:394},{id:"Singapore",title:"Singapore",winIndex:24,link:396},{id:"Turkey",title:"Turkey",winIndex:54,link:472},{id:"US/Alaska",title:"Alaska",winIndex:55,link:203},{id:"US/Arizona",title:"Arizona",winIndex:56,link:302},{id:"US/Central",title:"Central",winIndex:13,link:235},{id:"US/Eastern",title:"Eastern",winIndex:14,link:291},{id:"US/Hawaii",title:"Hawaii",winIndex:57,link:521},{id:"US/Indiana-Starke",title:"Indiana-Starke",winIndex:13,link:261},{id:"US/Michigan",title:"Michigan",winIndex:14,link:245},{id:"US/Mountain",title:"Mountain",winIndex:15,link:244},{id:"US/Pacific",title:"Pacific",winIndex:11,link:276},{id:"US/Samoa",title:"Samoa",winIndex:49,link:530},{id:"W-SU",title:"W-SU",winIndex:58,link:482},{id:"GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Etc/GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"Etc/GMT+0",title:"GMT+0",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT0",title:"GMT0",winIndex:41,link:150},{id:"Europe/Jersey",title:"Jersey",winIndex:26,link:476},{id:"Europe/Guernsey",title:"Guernsey",winIndex:26,link:476},{id:"Europe/Isle_of_Man",title:"Isle of Man",winIndex:26,link:476},{id:"Europe/Mariehamn",title:"Mariehamn",winIndex:59,link:471},{id:"Europe/Busingen",title:"Busingen",winIndex:27,link:500},{id:"Europe/Vatican",title:"Vatican",winIndex:27,link:487},{id:"Europe/San_Marino",title:"San Marino",winIndex:27,link:487},{id:"Europe/Vaduz",title:"Vaduz",winIndex:27,link:500},{id:"Arctic/Longyearbyen",title:"Longyearbyen",winIndex:27,link:483},{id:"Europe/Ljubljana",title:"Ljubljana",winIndex:60,link:462},{id:"Europe/Podgorica",title:"Podgorica",winIndex:60,link:462},{id:"Europe/Sarajevo",title:"Sarajevo",winIndex:60,link:462},{id:"Europe/Skopje",title:"Skopje",winIndex:60,link:462},{id:"Europe/Zagreb",title:"Zagreb",winIndex:60,link:462},{id:"Europe/Bratislava",title:"Bratislava",winIndex:60,link:485},{id:"Asia/Istanbul",title:"Istanbul",winIndex:54,link:472},{id:"Pacific/Johnston",title:"Johnston",winIndex:57,link:521},{id:"US/Pacific-New",title:"Pacific-New",winIndex:11,link:276},{id:"America/Aruba",title:"Aruba",winIndex:16,link:240},{id:"America/Lower_Princes",title:"Lower Princes",winIndex:16,link:240},{id:"America/Kralendijk",title:"Kralendijk",winIndex:16,link:240},{id:"America/Anguilla",title:"Anguilla",winIndex:16,link:303},{id:"America/Dominica",title:"Dominica",winIndex:16,link:303},{id:"America/Grenada",title:"Grenada",winIndex:16,link:303},{id:"America/Guadeloupe",title:"Guadeloupe",winIndex:16,link:303},{id:"America/Marigot",title:"Marigot",winIndex:16,link:303},{id:"America/Montserrat",title:"Montserrat",winIndex:16,link:303},{id:"America/St_Barthelemy",title:"St Barthelemy",winIndex:16,link:303},{id:"America/St_Kitts",title:"St Kitts",winIndex:16,link:303},{id:"America/St_Lucia",title:"St Lucia",winIndex:16,link:303},{id:"America/St_Thomas",title:"St Thomas",winIndex:16,link:303},{id:"America/St_Vincent",title:"St Vincent",winIndex:16,link:303},{id:"America/Tortola",title:"Tortola",winIndex:16,link:303},{id:"Africa/Abidjan",title:"Abidjan",winIndex:0,offsets:[-.2688888888888889,0],offsetIndices:"01",untils:"-u9rgl4|Infinity"},{id:"Africa/Accra",title:"Accra",winIndex:0,offsets:[-.014444444444444446,0,.3333333333333333],offsetIndices:"012121212121212121212121212121212121212121212121",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity"},{id:"Africa/Algiers",title:"Algiers",winIndex:3,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121232321212122321212",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity"},{id:"Africa/Bissau",title:"Bissau",winIndex:0,offsets:[-1.038888888888889,-1,0],offsetIndices:"012",untils:"-u9reg4|wvoyk4|Infinity"},{id:"Africa/Cairo",title:"Cairo",winIndex:40,offsets:[2,3],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity"},{id:"Africa/Casablanca",title:"Casablanca",winIndex:61,offsets:[-.5055555555555555,0,1],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Ceuta",title:"Ceuta",winIndex:62,offsets:[0,1,2],offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qyiys0|7x3w0|2vt440|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|k69g40|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Africa/El_Aaiun",title:"El Aaiun",winIndex:61,offsets:[-.88,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Johannesburg",title:"Johannesburg",winIndex:2,offsets:[1.5,2,3],offsetIndices:"012121",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity"},{id:"Africa/Khartoum",title:"Khartoum",winIndex:1,offsets:[2.1688888888888886,2,3],offsetIndices:"01212121212121212121212121212121212",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity"},{id:"Africa/Lagos",title:"Lagos",winIndex:3,offsets:[.22666666666666666,1],offsetIndices:"01",untils:"-q9qbao|Infinity"},{id:"Africa/Maputo",title:"Maputo",winIndex:2,offsets:[2.1722222222222225,2],offsetIndices:"01",untils:"-yvtfd8|Infinity"},{id:"Africa/Monrovia",title:"Monrovia",winIndex:0,offsets:[-.7188888888888889,-.7416666666666667,0],offsetIndices:"012",untils:"-qj6zc4|rqyyqa|Infinity"},{id:"Africa/Nairobi",title:"Nairobi",winIndex:1,offsets:[2.454444444444445,3,2.5,2.75],offsetIndices:"01231",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity"},{id:"Africa/Ndjamena",title:"Ndjamena",winIndex:3,offsets:[1.0033333333333334,1,2],offsetIndices:"0121",untils:"-u9rk4c|zdk5cc|7iak0|Infinity"},{id:"Africa/Tripoli",title:"Tripoli",winIndex:45,offsets:[.8788888888888889,1,2],offsetIndices:"012121212121212121212121212122122",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity"},{id:"Africa/Tunis",title:"Tunis",winIndex:3,offsets:[.15583333333333332,1,2],offsetIndices:"0121212121212121212121212121212121",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity"},{id:"Africa/Windhoek",title:"Windhoek",winIndex:63,offsets:[1.5,2,3,1],offsetIndices:"012113131313131313131313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|23tmo0|7xf00|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|Infinity"},{id:"America/Anchorage",title:"Anchorage",winIndex:55,offsets:[-10,-9,-8],offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Antigua",title:"Antigua",winIndex:16,link:303},{id:"America/Araguaina",title:"Araguaina",winIndex:64,offsets:[-3.2133333333333334,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity"},{id:"America/Argentina/Buenos_Aires",title:"Buenos Aires",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Catamarca",title:"Catamarca",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Cordoba",title:"Cordoba",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Jujuy",title:"Jujuy",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/La_Rioja",title:"La Rioja",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Mendoza",title:"Mendoza",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323231212132221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|3fidg0|7thc0|27bk00|6hes0|1p7mk0|3yik0|Infinity"},{id:"America/Argentina/Rio_Gallegos",title:"Rio Gallegos",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Salta",title:"Salta",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/San_Juan",title:"San Juan",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27qdc0|2txg0|1sgak0|3yik0|Infinity"},{id:"America/Argentina/San_Luis",title:"San Luis",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312122212321212",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|4conw0|7thc0|27qdc0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity"},{id:"America/Argentina/Tucuman",title:"Tucuman",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"012121212121212121212121212121212121212121232323231323222123232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Ushuaia",title:"Ushuaia",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27oio0|12ys0|1u93w0|3yik0|Infinity"},{id:"America/Asuncion",title:"Asuncion",winIndex:65,offsets:[-3.844444444444444,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity"},{id:"America/Atikokan",title:"Atikokan",winIndex:10,offsets:[-6,-5],offsetIndices:"0101111",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity"},{id:"America/Bahia",title:"Bahia",winIndex:66,offsets:[-2.5677777777777777,-3,-2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity"},{id:"America/Bahia_Banderas",title:"Bahia Banderas",winIndex:47,offsets:[-7.016666666666667,-7,-6,-8,-5],offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Barbados",title:"Barbados",winIndex:16,offsets:[-3.974722222222222,-4,-3],offsetIndices:"00121212121",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity"},{id:"America/Belem",title:"Belem",winIndex:64,offsets:[-3.232222222222222,-3,-2],offsetIndices:"012121212121212121212121212121",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Belize",title:"Belize",winIndex:67,offsets:[-5.88,-6,-5.5,-5],offsetIndices:"01212121212121212121212121212121212121212121212121213131",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity"},{id:"America/Blanc-Sablon",title:"Blanc-Sablon",winIndex:16,offsets:[-4,-3],offsetIndices:"010110",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity"},{id:"America/Boa_Vista",title:"Boa Vista",winIndex:16,offsets:[-4.044444444444444,-4,-3],offsetIndices:"0121212121212121212121212121212121",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity"},{id:"America/Bogota",title:"Bogota",winIndex:10,offsets:[-4.937777777777778,-5,-4],offsetIndices:"0121",untils:"-srdoy8|14f1hi8|ha580|Infinity"},{id:"America/Boise",title:"Boise",winIndex:15,offsets:[-8,-7,-6],offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Cambridge_Bay",title:"Cambridge Bay",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity" },{id:"America/Campo_Grande",title:"Campo Grande",winIndex:68,offsets:[-3.641111111111111,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Cancun",title:"Cancun",winIndex:47,offsets:[-5.7844444444444445,-6,-5,-4],offsetIndices:"0123232321212121212121212121212121212121212",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity"},{id:"America/Caracas",title:"Caracas",winIndex:69,offsets:[-4.461111111111111,-4.5,-4],offsetIndices:"01212",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity"},{id:"America/Cayenne",title:"Cayenne",winIndex:64,offsets:[-3.488888888888889,-4,-3],offsetIndices:"012",untils:"-uj7yb4|tcw6r4|Infinity"},{id:"America/Cayman",title:"Cayman",winIndex:10,link:299},{id:"America/Chicago",title:"Chicago",winIndex:13,offsets:[-6,-5],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Chihuahua",title:"Chihuahua",winIndex:46,offsets:[-7.072222222222222,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Costa_Rica",title:"Costa Rica",winIndex:67,offsets:[-5.60361111111111,-6,-5],offsetIndices:"0121212121",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity"},{id:"America/Creston",title:"Creston",winIndex:56,offsets:[-7,-8],offsetIndices:"010",untils:"-rshz80|vbus0|Infinity"},{id:"America/Cuiaba",title:"Cuiaba",winIndex:68,offsets:[-3.738888888888889,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Curacao",title:"Curacao",winIndex:16,offsets:[-4.59638888888889,-4.5,-4],offsetIndices:"012",untils:"-u7lckd|rlo7qd|Infinity"},{id:"America/Danmarkshavn",title:"Danmarkshavn",winIndex:41,offsets:[-1.2444444444444445,-3,-2,0],offsetIndices:"01212121212121212121212121212121213",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity"},{id:"America/Dawson",title:"Dawson",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Dawson_Creek",title:"Dawson Creek",winIndex:56,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101011",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity"},{id:"America/Denver",title:"Denver",winIndex:15,offsets:[-7,-6],offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Detroit",title:"Detroit",winIndex:14,offsets:[-5.536388888888889,-6,-5,-4],offsetIndices:"01233232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlhg0|71mk0|2vcg40|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Edmonton",title:"Edmonton",winIndex:15,offsets:[-7.564444444444445,-7,-6],offsetIndices:"01212121212121221212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|a80840|9cyk0|s36s0|9cyk0|1b6840|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Eirunepe",title:"Eirunepe",winIndex:10,offsets:[-4.657777777777778,-5,-4],offsetIndices:"0121212121212121212121212121212121",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity"},{id:"America/El_Salvador",title:"El Salvador",winIndex:67,offsets:[-5.946666666666667,-6,-5],offsetIndices:"012121",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity"},{id:"America/Fortaleza",title:"Fortaleza",winIndex:64,offsets:[-2.566666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Glace_Bay",title:"Glace Bay",winIndex:36,offsets:[-3.996666666666667,-4,-3],offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Godthab",title:"Godthab",winIndex:70,offsets:[-3.448888888888889,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Goose_Bay",title:"Goose Bay",winIndex:36,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-4,-3,-2],offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Grand_Turk",title:"Grand Turk",winIndex:16,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212122",untils:"-u85og1|z3brw1|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Guatemala",title:"Guatemala",winIndex:67,offsets:[-6.0344444444444445,-6,-5],offsetIndices:"0121212121",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity"},{id:"America/Guayaquil",title:"Guayaquil",winIndex:10,offsets:[-5.233333333333333,-5],offsetIndices:"01",untils:"-kcr84o|Infinity"},{id:"America/Guyana",title:"Guyana",winIndex:16,offsets:[-3.8777777777777778,-3.75,-3,-4],offsetIndices:"01123",untils:"-smcak8|qqnjn8|4sh9c0|81rf90|Infinity"},{id:"America/Halifax",title:"Halifax",winIndex:36,offsets:[-4.24,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Havana",title:"Havana",winIndex:14,offsets:[-5.493333333333334,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity"},{id:"America/Hermosillo",title:"Hermosillo",winIndex:56,offsets:[-7.397777777777778,-7,-6,-8],offsetIndices:"0121212131212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Indiana/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Indiana/Knox",title:"Knox",winIndex:13,offsets:[-6,-5],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Marengo",title:"Marengo",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Petersburg",title:"Petersburg",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Tell_City",title:"Tell City",winIndex:13,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vevay",title:"Vevay",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vincennes",title:"Vincennes",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Winamac",title:"Winamac",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Inuvik",title:"Inuvik",winIndex:15,offsets:[0,-8,-6,-7],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Iqaluit",title:"Iqaluit",winIndex:14,offsets:[0,-4,-5,-3,-6],offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Jamaica",title:"Jamaica",winIndex:10,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121",untils:"-u85og1|wbl181|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity"},{id:"America/Juneau",title:"Juneau",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Louisville",title:"Louisville",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|4s580|7tk40|gxc40|1s3bw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Monticello",title:"Monticello",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity" },{id:"America/La_Paz",title:"La Paz",winIndex:16,offsets:[-4.543333333333334,-3.5433333333333334,-4],offsetIndices:"012",untils:"-jxzspo|84ik0|Infinity"},{id:"America/Lima",title:"Lima",winIndex:10,offsets:[-5.1433333333333335,-5,-4],offsetIndices:"0121212121212121",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity"},{id:"America/Los_Angeles",title:"Los Angeles",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c40|f2ik0|owdg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Maceio",title:"Maceio",winIndex:64,offsets:[-2.381111111111111,-3,-2],offsetIndices:"012121212121212121212121212121212121212121",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Managua",title:"Managua",winIndex:67,offsets:[-5.753333333333333,-6,-5],offsetIndices:"0121212121212121",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity"},{id:"America/Manaus",title:"Manaus",winIndex:16,offsets:[-4.001111111111111,-4,-3],offsetIndices:"01212121212121212121212121212121",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity"},{id:"America/Martinique",title:"Martinique",winIndex:16,offsets:[-4.072222222222222,-4,-3],offsetIndices:"0121",untils:"-umcvcs|zz5x4s|8zzw0|Infinity"},{id:"America/Matamoros",title:"Matamoros",winIndex:13,offsets:[-6.666666666666667,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Mazatlan",title:"Mazatlan",winIndex:46,offsets:[-7.094444444444445,-7,-6,-8],offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Menominee",title:"Menominee",winIndex:13,offsets:[-6,-5],offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Merida",title:"Merida",winIndex:47,offsets:[-5.974444444444444,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Mexico_City",title:"Mexico City",winIndex:47,offsets:[-6.61,-7,-6,-5],offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Moncton",title:"Moncton",winIndex:36,offsets:[-5,-4,-3],offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Monterrey",title:"Monterrey",winIndex:47,offsets:[-6.687777777777778,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Montevideo",title:"Montevideo",winIndex:71,offsets:[-3.7455555555555553,-3.5,-3,-2,-2.5],offsetIndices:"012121212121212121212121213232323232324242423243232323232323232323232323232323232323232",untils:"-px809g|1s8xzg|9czy0|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7x5a0|6do20|7vam0|humq0|4mju0|8g9s40|8zzw0|38qs0|2inw0|2nf9g0|8zzw0|9q2s0|aunw0|7ves0|awik0|ar440|9pym0|91yq0|9pym0|91yq0|9pym0|q6mq0|5t6k0|tfc40|erfy0|xdta0|m2is0|62fw0|s6w40|ayd80|3z5s40|4ofw0|dzs40|4ofw0|bvus0|6h980|bvus0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"America/Montreal",title:"Montreal",winIndex:14,link:326},{id:"America/Nassau",title:"Nassau",winIndex:14,offsets:[-5.158333333333333,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/New_York",title:"New York",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nipigon",title:"Nipigon",winIndex:14,offsets:[-5,-4],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nome",title:"Nome",winIndex:55,offsets:[-11,-10,-9,-8],offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Noronha",title:"Noronha",winIndex:34,offsets:[-2.161111111111111,-2,-1],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/North_Dakota/Beulah",title:"Beulah",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/Center",title:"Center",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/New_Salem",title:"New Salem",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Ojinaga",title:"Ojinaga",winIndex:15,offsets:[-6.961111111111111,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Panama",title:"Panama",winIndex:10,offsets:[-5.326666666666667,-5],offsetIndices:"01",untils:"-w757vc|Infinity"},{id:"America/Pangnirtung",title:"Pangnirtung",winIndex:14,offsets:[0,-4,-3,-2,-5,-6],offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Paramaribo",title:"Paramaribo",winIndex:64,offsets:[-3.6777777777777776,-3.6811111111111114,-3.6766666666666667,-3.5,-3],offsetIndices:"012334",untils:"-usj4g8|cixc0c|5lydbk|fq7bic|4mkao0|Infinity"},{id:"America/Phoenix",title:"Phoenix",winIndex:56,offsets:[-7,-6],offsetIndices:"01010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity"},{id:"America/Port_of_Spain",title:"Port of Spain",winIndex:16,offsets:[-4.101111111111111,-4],offsetIndices:"01",untils:"-u6m79w|Infinity"},{id:"America/Port-au-Prince",title:"Port-au-Prince",winIndex:14,offsets:[-4.816666666666666,-5,-4],offsetIndices:"01212121212121212121212121212121212121212121",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Porto_Velho",title:"Porto Velho",winIndex:16,offsets:[-4.26,-4,-3],offsetIndices:"012121212121212121212121212121",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Puerto_Rico",title:"Puerto Rico",winIndex:16,offsets:[-4,-3],offsetIndices:"0110",untils:"-efsnk0|1ppu40|2dnc0|Infinity"},{id:"America/Rainy_River",title:"Rainy River",winIndex:13,offsets:[-6,-5],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rankin_Inlet",title:"Rankin Inlet",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Recife",title:"Recife",winIndex:64,offsets:[-2.3266666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/Regina",title:"Regina",winIndex:37,offsets:[-6.9766666666666675,-7,-6],offsetIndices:"012121212121212121212121221212121212121212121212121212",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity"},{id:"America/Resolute",title:"Resolute",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rio_Branco",title:"Rio Branco",winIndex:10,offsets:[-4.52,-5,-4],offsetIndices:"01212121212121212121212121212121",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity"},{id:"America/Santa_Isabel",title:"Santa Isabel",winIndex:72,link:325},{id:"America/Santarem",title:"Santarem",winIndex:64,offsets:[-3.646666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity"},{id:"America/Santiago",title:"Santiago",winIndex:39,offsets:[-4.712777777777777,-5,-4,-3],offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"America/Santo_Domingo",title:"Santo Domingo",winIndex:16,offsets:[-4.666666666666667,-5,-4,-4.5],offsetIndices:"01213131313131212",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity"},{id:"America/Sao_Paulo",title:"Sao Paulo",winIndex:35,offsets:[-3.1077777777777778,-3,-2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Scoresbysund",title:"Scoresbysund",winIndex:73,offsets:[-1.4644444444444444,-2,-1,0],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Sitka",title:"Sitka",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/St_Johns",title:"St Johns",winIndex:38,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-1.5],offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232", untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Swift_Current",title:"Swift Current",winIndex:37,offsets:[-7.188888888888888,-7,-6],offsetIndices:"012122121212121212121212",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity"},{id:"America/Tegucigalpa",title:"Tegucigalpa",winIndex:67,offsets:[-5.814444444444445,-6,-5],offsetIndices:"01212121",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity"},{id:"America/Thule",title:"Thule",winIndex:36,offsets:[-4.585555555555556,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Thunder_Bay",title:"Thunder Bay",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Tijuana",title:"Tijuana",winIndex:11,offsets:[-7.801111111111111,-7,-8],offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4r00|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Toronto",title:"Toronto",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Vancouver",title:"Vancouver",winIndex:11,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Whitehorse",title:"Whitehorse",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Winnipeg",title:"Winnipeg",winIndex:13,offsets:[-6,-5],offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yakutat",title:"Yakutat",winIndex:55,offsets:[-9,-8],offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yellowknife",title:"Yellowknife",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Antarctica/Casey",title:"Casey",winIndex:33,offsets:[0,8,11],offsetIndices:"012121",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|Infinity"},{id:"Antarctica/Davis",title:"Davis",winIndex:6,offsets:[0,7,5],offsetIndices:"01012121",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity"},{id:"Antarctica/DumontDUrville",title:"DumontDUrville",winIndex:50,offsets:[0,10],offsetIndices:"0101",untils:"-c05eo0|2mks80|2i72g0|Infinity"},{id:"Antarctica/Macquarie",title:"Macquarie",winIndex:48,offsets:[10,11,0],offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Antarctica/Mawson",title:"Mawson",winIndex:17,offsets:[0,6,5],offsetIndices:"012",untils:"-8aelc0|t22y80|Infinity"},{id:"Antarctica/Palmer",title:"Palmer",winIndex:39,offsets:[0,-3,-4,-2],offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"Antarctica/Rothera",title:"Rothera",winIndex:64,offsets:[0,-3],offsetIndices:"01",untils:"3lxs00|Infinity"},{id:"Antarctica/Syowa",title:"Syowa",winIndex:1,offsets:[0,3],offsetIndices:"01",untils:"-6qsqo0|Infinity"},{id:"Antarctica/Vostok",title:"Vostok",winIndex:21,offsets:[0,6],offsetIndices:"01",untils:"-6aaao0|Infinity"},{id:"Asia/Almaty",title:"Almaty",winIndex:21,offsets:[5.13,5,6,7],offsetIndices:"012323232323232323232321232323232323232323232323232",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Amman",title:"Amman",winIndex:74,offsets:[2.395555555555555,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Asia/Anadyr",title:"Anadyr",winIndex:75,offsets:[11.83222222222222,12,13,14,11],offsetIndices:"01232212121212121212121141212121212121212121212121212121212121141",untils:"-nu1sv8|379zj8|qi27w0|9et80|9d440|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Aqtau",title:"Aqtau",winIndex:17,offsets:[3.351111111111111,4,5,6],offsetIndices:"012323232323232323232123232312121212121212121212",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Aqtobe",title:"Aqtobe",winIndex:17,offsets:[3.811111111111111,4,5,6],offsetIndices:"0123232323232323232321232323232323232323232323232",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Ashgabat",title:"Ashgabat",winIndex:17,offsets:[3.8922222222222222,4,5,6],offsetIndices:"012323232323232323232322112",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|1fp40|4bpk0|Infinity"},{id:"Asia/Baghdad",title:"Baghdad",winIndex:76,offsets:[2.96,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity"},{id:"Asia/Baku",title:"Baku",winIndex:77,offsets:[3.3233333333333333,3,4,5],offsetIndices:"01232323232323232323232221223232323232323232323232323232323232323232",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7tbs0|1jsc0|9d1c0|9cq80|1twoo0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Bangkok",title:"Bangkok",winIndex:6,offsets:[6.7011111111111115,7],offsetIndices:"01",untils:"-pysda4|Infinity"},{id:"Asia/Beirut",title:"Beirut",winIndex:78,offsets:[2,3],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity"},{id:"Asia/Bishkek",title:"Bishkek",winIndex:21,offsets:[4.973333333333333,5,6,7],offsetIndices:"01232323232323232323232212121212121212121212121212122",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7vc00|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|73aa0|Infinity"},{id:"Asia/Brunei",title:"Brunei",winIndex:24,offsets:[7.661111111111111,7.5,8],offsetIndices:"012",untils:"-mvofy4|3khxs4|Infinity"},{id:"Asia/Chita",title:"Chita",winIndex:79,offsets:[7.564444444444445,8,9,10],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity"},{id:"Asia/Choibalsan",title:"Choibalsan",winIndex:25,offsets:[7.633333333333334,7,8,10,9],offsetIndices:"0123434343434343434343434343434343434343434343424242424242424242424242424242424242424242424242",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Colombo",title:"Colombo",winIndex:80,offsets:[5.325555555555556,5.5,6,6.5],offsetIndices:"01231321",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity"},{id:"Asia/Damascus",title:"Damascus",winIndex:81,offsets:[2.42,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity"},{id:"Asia/Dhaka",title:"Dhaka",winIndex:20,offsets:[5.888888888888888,6.5,5.5,6,7],offsetIndices:"01213343",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|a63o20|jyevw0|a1400|Infinity"},{id:"Asia/Dili",title:"Dili",winIndex:43,offsets:[8.372222222222222,8,9],offsetIndices:"012212",untils:"-u9s4l8|fqcu98|1vc2o0|fz3pc0|cpz440|Infinity"},{id:"Asia/Dubai",title:"Dubai",winIndex:7,offsets:[3.6866666666666665,4],offsetIndices:"01",untils:"-q3gnko|Infinity"},{id:"Asia/Dushanbe",title:"Dushanbe",winIndex:17,offsets:[4.586666666666667,5,6,7],offsetIndices:"0123232323232323232323221",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|8c2s0|Infinity"},{id:"Asia/Ho_Chi_Minh",title:"Ho Chi Minh",winIndex:6,offsets:[7.111111111111112,7.108333333333333,7,8,9],offsetIndices:"0123423232",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity"},{id:"Asia/Hong_Kong",title:"Hong Kong",winIndex:19,offsets:[7.611666666666666,8,9],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y0i2h6|j09kn6|9cyk0|4f2e0|1xyfw0|b6760|bkl80|6udg0|df980|6dpg0|9cyk0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|adzw0|8c2s0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity"},{id:"Asia/Hovd",title:"Hovd",winIndex:6,offsets:[6.11,6,7,8],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Irkutsk",title:"Irkutsk",winIndex:82,offsets:[6.951388888888888,7,8,9],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Jakarta",title:"Jakarta",winIndex:6,offsets:[7.12,7.333333333333333,7.5,9,8,7],offsetIndices:"01232425",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity"},{id:"Asia/Jayapura",title:"Jayapura",winIndex:43,offsets:[9.379999999999999,9,9.5],offsetIndices:"0121",untils:"-jebm20|66bqe0|a37vy0|Infinity"},{id:"Asia/Jerusalem",title:"Jerusalem",winIndex:23,offsets:[2.344444444444444,2,3,4],offsetIndices:"01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|50rhg0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity"},{id:"Asia/Kabul",title:"Kabul",winIndex:83,offsets:[4,4.5],offsetIndices:"01",untils:"-d1pkg0|Infinity"},{id:"Asia/Kamchatka",title:"Kamchatka",winIndex:75,offsets:[10.576666666666666,11,12,13],offsetIndices:"01232323232323232323232212323232323232323232323232323232323232212",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Karachi",title:"Karachi",winIndex:84,offsets:[4.47,5.5,6.5,5,6],offsetIndices:"012133434343",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity"},{id:"Asia/Kathmandu",title:"Kathmandu",winIndex:22,offsets:[5.687777777777778,5.5,5.75],offsetIndices:"012",untils:"-q3gt4s|yg2lus|Infinity"},{id:"Asia/Khandyga",title:"Khandyga",winIndex:79,offsets:[9.036944444444446,8,9,10,11],offsetIndices:"01232323232323232323232212323232323232323232323232343434343434343432",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Kolkata",title:"Kolkata",winIndex:18,offsets:[5.888888888888888,6.5,5.5],offsetIndices:"01212",untils:"-eqtpow|bmgyw|5lxg0|1mn180|Infinity"},{id:"Asia/Krasnoyarsk",title:"Krasnoyarsk",winIndex:85,offsets:[6.190555555555556,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Kuala_Lumpur",title:"Kuala Lumpur",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"01223435",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|iy3o60|Infinity"},{id:"Asia/Kuching",title:"Kuching",winIndex:24,offsets:[7.355555555555555,7.5,8,8.333333333333334,9],offsetIndices:"01232323232323232422",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|iy3ms0|Infinity"},{id:"Asia/Macau",title:"Macau",winIndex:19,offsets:[7.572222222222222,8,9],offsetIndices:"0121212121212121212121212121212121212121211",untils:"-u9s2d8|pon9v8|bvp80|6udg0|bvp80|6u3q0|bvyy0|77c40|biqk0|772e0|biqk0|8ngi0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9d8a0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9cyk0|a04w40|Infinity"},{id:"Asia/Magadan",title:"Magadan",winIndex:75,offsets:[10.053333333333335,10,11,12],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity" },{id:"Asia/Makassar",title:"Makassar",winIndex:24,offsets:[7.96,8,9],offsetIndices:"00121",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity"},{id:"Asia/Manila",title:"Manila",winIndex:24,offsets:[8,9],offsetIndices:"010101010",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity"},{id:"Asia/Nicosia",title:"Nicosia",winIndex:4,offsets:[2.2244444444444444,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Novokuznetsk",title:"Novokuznetsk",winIndex:86,offsets:[5.8133333333333335,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232322122",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|1vbzw0|Infinity"},{id:"Asia/Novosibirsk",title:"Novosibirsk",winIndex:86,offsets:[5.527777777777778,6,7,8],offsetIndices:"0123232323232323232323221232321212121212121212121212121212121212121",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Omsk",title:"Omsk",winIndex:86,offsets:[4.891666666666667,5,6,7],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Oral",title:"Oral",winIndex:17,offsets:[3.4233333333333333,4,5,6],offsetIndices:"01232323232323232121212121212121212121212121212",untils:"-nu15ic|379yec|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Pontianak",title:"Pontianak",winIndex:6,offsets:[7.288888888888889,7.5,9,8,7],offsetIndices:"001213134",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity"},{id:"Asia/Pyongyang",title:"Pyongyang",winIndex:53,offsets:[8.383333333333333,8.5,9],offsetIndices:"012221",untils:"-w895yc|1yh10c|dfsmm0|44cqo0|10ipmo0|Infinity"},{id:"Asia/Qatar",title:"Qatar",winIndex:5,offsets:[3.4355555555555553,4,3],offsetIndices:"012",untils:"-q3gmvk|rctnrk|Infinity"},{id:"Asia/Qyzylorda",title:"Qyzylorda",winIndex:21,offsets:[4.364444444444445,4,5,6],offsetIndices:"0123232323232323232323232323232323232323232323",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Rangoon",title:"Rangoon",winIndex:87,offsets:[6.411111111111111,6.5,9],offsetIndices:"0121",untils:"-q3gv54|bnjp34|1kh520|Infinity"},{id:"Asia/Riyadh",title:"Riyadh",winIndex:5,offsets:[3.1144444444444446,3],offsetIndices:"01",untils:"-bwgbbg|Infinity"},{id:"Asia/Sakhalin",title:"Sakhalin",winIndex:88,offsets:[9.513333333333332,9,11,12,10],offsetIndices:"01123232323232323232323224232323232322424242424242424242424242424242",untils:"-xl87rc|gr8pfc|44elc0|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asys0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity"},{id:"Asia/Samarkand",title:"Samarkand",winIndex:17,offsets:[4.464722222222222,4,5,6],offsetIndices:"01233323232323232323232332",untils:"-nu18eh|37a1ah|qi27w0|9et80|9d1c0|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7wyc0|1g300|Infinity"},{id:"Asia/Seoul",title:"Seoul",winIndex:53,offsets:[8.464444444444444,8.5,9,9.5,10],offsetIndices:"01222131313131313124242",untils:"-w8966g|1yh18g|dfsmm0|454io0|4gadc0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Shanghai",title:"Shanghai",winIndex:19,offsets:[8,9],offsetIndices:"01010101010101010",untils:"-ffs0w0|66580|8jhg0|a8fw0|n9rc40|6u7w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"Asia/Singapore",title:"Singapore",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"012234335",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|ae0xi0|8k2qo0|Infinity"},{id:"Asia/Srednekolymsk",title:"Srednekolymsk",winIndex:75,offsets:[10.247777777777777,10,11,12],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Taipei",title:"Taipei",winIndex:52,offsets:[8,9],offsetIndices:"01010101010101010101010101010101010101010",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity"},{id:"Asia/Tashkent",title:"Tashkent",winIndex:17,offsets:[4.619722222222222,5,6,7],offsetIndices:"01232323232323232323232221",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7x140|1g300|Infinity"},{id:"Asia/Tbilisi",title:"Tbilisi",winIndex:89,offsets:[2.986388888888889,3,4,5],offsetIndices:"0123232323232323232323222121212232323232323232323212",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|gig0|8wlo0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d1c0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity"},{id:"Asia/Tehran",title:"Tehran",winIndex:42,offsets:[3.428888888888889,3.5,4,5,4.5],offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity"},{id:"Asia/Thimphu",title:"Thimphu",winIndex:20,offsets:[5.9766666666666675,5.5,6],offsetIndices:"012",untils:"-bojclo|kxymno|Infinity"},{id:"Asia/Tokyo",title:"Tokyo",winIndex:43,offsets:[9,10],offsetIndices:"0010101010",untils:"-gtzic0|5ivew0|6sd80|ahus0|887w0|cao40|6fek0|cao40|6fek0|Infinity"},{id:"Asia/Ulaanbaatar",title:"Ulaanbaatar",winIndex:25,offsets:[7.125555555555556,7,8,9],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Urumqi",title:"Urumqi",winIndex:21,offsets:[5.838888888888889,6],offsetIndices:"01",untils:"-lx5pjw|Infinity"},{id:"Asia/Ust-Nera",title:"Ust-Nera",winIndex:88,offsets:[9.548333333333334,8,9,12,11,10],offsetIndices:"0123434343434343434343445434343434343434343434343434343434343434345",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Vladivostok",title:"Vladivostok",winIndex:88,offsets:[8.791944444444445,9,10,11],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yakutsk",title:"Yakutsk",winIndex:79,offsets:[8.649444444444445,8,9,10],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yekaterinburg",title:"Yekaterinburg",winIndex:90,offsets:[4.0425,3.751388888888889,4,5,6],offsetIndices:"0123434343434343434343433234343434343434343434343434343434343434343",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yerevan",title:"Yerevan",winIndex:91,offsets:[2.966666666666667,3,4,5],offsetIndices:"0123232323232323232323222121212122323232323232323232323232323232",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|91rs0|bcc0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sfzw0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Atlantic/Azores",title:"Azores",winIndex:73,offsets:[-1.9088888888888889,-2,-1,0],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9rc14|2bug54|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Bermuda",title:"Bermuda",winIndex:36,offsets:[-4.321666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Atlantic/Canary",title:"Canary",winIndex:26,offsets:[-1.0266666666666666,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Cape_Verde",title:"Cape Verde",winIndex:92,offsets:[-1.5677777777777777,-2,-1],offsetIndices:"01212",untils:"-wvoub8|im43v8|1mn180|fpqwc0|Infinity"},{id:"Atlantic/Faroe",title:"Faroe",winIndex:26,offsets:[-.45111111111111113,0,1],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Madeira",title:"Madeira",winIndex:26,offsets:[-1.1266666666666665,-1,0,1],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9re7c|2bufjc|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Reykjavik",title:"Reykjavik",winIndex:0,offsets:[-1.4666666666666666,-1,0],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity"},{id:"Atlantic/South_Georgia",title:"South Georgia",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Atlantic/Stanley",title:"Stanley",winIndex:64,offsets:[-3.856666666666667,-4,-3,-2],offsetIndices:"0121212121212123232212121212121212121212121212121212121212121212121212",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|77c40|b5uo0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity"},{id:"Australia/Adelaide",title:"Adelaide",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Brisbane",title:"Brisbane",winIndex:30,offsets:[10,11],offsetIndices:"01010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity"},{id:"Australia/Broken_Hill",title:"Broken Hill",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Currie",title:"Currie",winIndex:32,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Darwin",title:"Darwin",winIndex:29,offsets:[9.5,10.5],offsetIndices:"010101010",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity"},{id:"Australia/Hobart",title:"Hobart",winIndex:32,offsets:[10,11],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Lindeman",title:"Lindeman",winIndex:30,offsets:[10,11],offsetIndices:"010101010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity"},{id:"Australia/Melbourne",title:"Melbourne",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Perth",title:"Perth",winIndex:33,offsets:[8,9],offsetIndices:"0101010101010101010",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Sydney",title:"Sydney",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"CST6CDT",title:"CST6CDT",winIndex:13,offsets:[-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"EST5EDT",title:"EST5EDT",winIndex:14,offsets:[-5,-4],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Etc/GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/GMT+1",title:"GMT+1",winIndex:92,offsets:[-1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+10",title:"GMT+10",winIndex:57,offsets:[-10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+11",title:"GMT+11",winIndex:49,offsets:[-11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+12",title:"GMT+12",winIndex:93,offsets:[-12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+2",title:"GMT+2",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+3",title:"GMT+3",winIndex:64,offsets:[-3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+4",title:"GMT+4",winIndex:16,offsets:[-4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+5",title:"GMT+5",winIndex:10,offsets:[-5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+6",title:"GMT+6",winIndex:67,offsets:[-6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+7",title:"GMT+7",winIndex:56,offsets:[-7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-1",title:"GMT-1",winIndex:3,offsets:[1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-10",title:"GMT-10",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-11",title:"GMT-11",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-12",title:"GMT-12",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-13",title:"GMT-13",winIndex:94,offsets:[13],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-14", title:"GMT-14",winIndex:95,offsets:[14],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-2",title:"GMT-2",winIndex:2,offsets:[2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-3",title:"GMT-3",winIndex:1,offsets:[3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-4",title:"GMT-4",winIndex:7,offsets:[4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-5",title:"GMT-5",winIndex:17,offsets:[5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-6",title:"GMT-6",winIndex:21,offsets:[6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-7",title:"GMT-7",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-8",title:"GMT-8",winIndex:24,offsets:[8],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-9",title:"GMT-9",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UCT",title:"UCT",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UTC",title:"UTC",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Europe/Amsterdam",title:"Amsterdam",winIndex:27,offsets:[.3255555555555556,1.3255555555555556,1.3333333333333333,.3333333333333333,2,1],offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Andorra",title:"Andorra",winIndex:27,offsets:[0,1,2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Athens",title:"Athens",winIndex:4,offsets:[1.581111111111111,2,3,1],offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Belgrade",title:"Belgrade",winIndex:60,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Berlin",title:"Berlin",winIndex:27,offsets:[1,2,3],offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Brussels",title:"Brussels",winIndex:62,offsets:[0,1,2],offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Bucharest",title:"Bucharest",winIndex:4,offsets:[1.74,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Budapest",title:"Budapest",winIndex:60,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Chisinau",title:"Chisinau",winIndex:4,offsets:[1.9166666666666667,1.74,2,3,1,4],offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Copenhagen",title:"Copenhagen",winIndex:62,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Dublin",title:"Dublin",winIndex:26,offsets:[-.42250000000000004,.5775,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8580|8a840|bvp80|8n6s0|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Gibraltar",title:"Gibraltar",winIndex:27,offsets:[0,1,2],offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Helsinki",title:"Helsinki",winIndex:59,offsets:[1.6636111111111112,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Istanbul",title:"Istanbul",winIndex:54,offsets:[1.948888888888889,2,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121232323232322121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p25g0|4zjw0|2xms0|f4d80|9vms0|b07w0|19f9g0|9px80|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a8lg0|8ufw0|a31g0|8ovw0|5mbes0|4dbw0|u3es0|75bw0|2wxus0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|c8w80|7x9g0|7k800|b6080|7jww0|ast80|b9ms0|7tek0|7x9g0|a2vw0|8n6s0|a2vw0|iruk0|8yj40|9rjk0|8lkg0|a4i80|8lkg0|a4i80|f2o40|38l80|t4840|8a5c0|9f4c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Kaliningrad",title:"Kaliningrad",winIndex:96,offsets:[1,2,3,4],offsetIndices:"0101010101010121232323232323232322121212121212121212121212121212121212121212121",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|4od40|62fw0|9kd80|351g0|ie8nw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Kiev",title:"Kiev",winIndex:59,offsets:[2.0344444444444445,2,3,1,4],offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Lisbon",title:"Lisbon",winIndex:26,offsets:[-.6125,0,1,2],offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u9rfmr|2bue6r|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/London",title:"London",winIndex:26,offsets:[0,1,2],offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Luxembourg",title:"Luxembourg",winIndex:27,offsets:[.41000000000000003,1,2,0],offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Madrid",title:"Madrid",winIndex:62,offsets:[0,1,2],offsetIndices:"01010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rhcqs0|7x6o0|9tpc0|8y800|9b6o0|9gqo0|2d2yo0|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|3zb9c0|6uao0|8so00|9xeo0|a2yo0|902o0|8a5c0|13yt80|69xc0|bq800|8oyo0|a1400|95mo0|9kg00|8n6s0|a2vw0|8oyo0|1ck5c0|7tk40|ct07w0|905g0|a2vw0|8n6s0|8zzw0|9d440|9px80|905g0|9rrw0|9b9g0|9d6w0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Malta",title:"Malta",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|9d1c0|9d1c0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|9b9g0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Minsk",title:"Minsk",winIndex:96,offsets:[1.8333333333333333,2,3,1,4],offsetIndices:"012131312424242424242424242212121212121212121212121212121212121212122",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9cvs0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbx40|Infinity"},{id:"Europe/Monaco",title:"Monaco",winIndex:27,offsets:[.15583333333333332,0,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Moscow",title:"Moscow",winIndex:58,offsets:[2.504722222222222,2.5219444444444443,3.5219444444444443,4.521944444444444,4,3,5,2],offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jpk0|2d2k7|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Oslo",title:"Oslo",winIndex:27,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Paris",title:"Paris",winIndex:62,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Prague",title:"Prague",winIndex:60,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",

untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|8l9c0|afxc0|bitc0|8oyo0|7vc00|a2yo0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Riga",title:"Riga",winIndex:59,offsets:[1.6094444444444445,2.6094444444444442,2,3,1,4],offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Rome",title:"Rome",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|8l3s0|a4yw0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|cls40|64ak0|c8tg0|6h980|cls40|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Samara",title:"Samara",winIndex:58,offsets:[3.338888888888889,3,4,5],offsetIndices:"012232323232323232322121112323232323232323232323232323232323232212",untils:"-qcx7pw|5q63dw|2egvw0|o3lc00|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d440|12w00|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Europe/Simferopol",title:"Simferopol",winIndex:58,offsets:[2.2666666666666666,2,3,1,4],offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity"},{id:"Europe/Sofia",title:"Sofia",winIndex:59,offsets:[2,1,3],offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Stockholm",title:"Stockholm",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tallinn",title:"Tallinn",winIndex:59,offsets:[1.65,1,2,3,4],offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tirane",title:"Tirane",winIndex:60,offsets:[1.3222222222222222,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Uzhgorod",title:"Uzhgorod",winIndex:59,offsets:[1,2,3,4],offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vienna",title:"Vienna",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|902o0|9d1c0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vilnius",title:"Vilnius",winIndex:59,offsets:[1.4,1.5933333333333333,1,2,3,4],offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Volgograd",title:"Volgograd",winIndex:58,offsets:[2.961111111111111,3,4,5],offsetIndices:"011223232323232323221212122121212121212121212121212121212121212121",untils:"-q3cw84|2qrjw4|2pu800|gdt980|a48yo0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9q000|9d1c0|ipzw0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Warsaw",title:"Warsaw",winIndex:51,offsets:[1.4,1,2,3],offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zaporozhye",title:"Zaporozhye",winIndex:59,offsets:[2.3333333333333335,2,3,1,4],offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zurich",title:"Zurich",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Indian/Chagos",title:"Chagos",winIndex:21,offsets:[4.827777777777778,5,6],offsetIndices:"012",untils:"-wvpc2s|1ag64us|Infinity"},{id:"Indian/Christmas",title:"Christmas",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Cocos",title:"Cocos",winIndex:87,offsets:[6.5],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Kerguelen",title:"Kerguelen",winIndex:17,offsets:[0,5],offsetIndices:"01",untils:"-afrs00|Infinity"},{id:"Indian/Mahe",title:"Mahe",winIndex:97,offsets:[3.6966666666666668,4],offsetIndices:"01",untils:"-x6pjlo|Infinity"},{id:"Indian/Maldives",title:"Maldives",winIndex:17,offsets:[4.9,5],offsetIndices:"01",untils:"-57x6y0|Infinity"},{id:"Indian/Mauritius",title:"Mauritius",winIndex:97,offsets:[3.8333333333333335,4,5],offsetIndices:"012121",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity"},{id:"Indian/Reunion",title:"Reunion",winIndex:97,offsets:[3.697777777777778,4],offsetIndices:"01",untils:"-uks29s|Infinity"},{id:"MST7MDT",title:"MST7MDT",winIndex:15,offsets:[-7,-6],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Pacific/Apia",title:"Apia",winIndex:98,offsets:[-11.448888888888888,-11.5,-11,-10,14,13],offsetIndices:"01232345454545454545454545454545454545454545454545454545454",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Auckland",title:"Auckland",winIndex:8,offsets:[11.5,12.5,12,13],offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Chuuk",title:"Chuuk",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Efate",title:"Efate",winIndex:48,offsets:[11.22111111111111,11,12],offsetIndices:"0121212121212121212121",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity"},{id:"Pacific/Enderbury",title:"Enderbury",winIndex:94,offsets:[-12,-11,13],offsetIndices:"012",untils:"535io0|7ykl80|Infinity"},{id:"Pacific/Fakaofo",title:"Fakaofo",winIndex:94,offsets:[-11,13],offsetIndices:"01",untils:"lx0jw0|Infinity"},{id:"Pacific/Fiji",title:"Fiji",winIndex:99,offsets:[11.928888888888888,12,13],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|Infinity"},{id:"Pacific/Funafuti",title:"Funafuti",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Galapagos",title:"Galapagos",winIndex:67,offsets:[-5.973333333333333,-5,-6],offsetIndices:"012",untils:"-kcr62o|spdryo|Infinity"},{id:"Pacific/Guadalcanal",title:"Guadalcanal",winIndex:48,offsets:[10.663333333333332,11],offsetIndices:"01",untils:"-tvowac|Infinity"},{id:"Pacific/Guam",title:"Guam",winIndex:50,offsets:[10],offsetIndices:"00",untils:"g5z2w0|Infinity"},{id:"Pacific/Honolulu",title:"Honolulu",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"010102",untils:"-j50la0|13l00|4jvb00|1wd180|votg0|Infinity"},{id:"Pacific/Kiritimati",title:"Kiritimati",winIndex:95,offsets:[-10.666666666666666,-10,14],offsetIndices:"012",untils:"535eyo|7ykm5c|Infinity"},{id:"Pacific/Kosrae",title:"Kosrae",winIndex:48,offsets:[11,12],offsetIndices:"010",untils:"-4r7w0|f9l3w0|Infinity"},{id:"Pacific/Kwajalein",title:"Kwajalein",winIndex:44,offsets:[11,-12,12],offsetIndices:"012",untils:"-4r7w0|cgtbw0|Infinity"},{id:"Pacific/Majuro",title:"Majuro",winIndex:44,offsets:[11,12],offsetIndices:"01",untils:"-4r7w0|Infinity"},{id:"Pacific/Midway",title:"Midway",winIndex:49,link:530},{id:"Pacific/Nauru",title:"Nauru",winIndex:44,offsets:[11.127777777777776,11.5,9,12],offsetIndices:"01213",untils:"-pjxiws|b1kxms|19h8a0|i43qe0|Infinity"},{id:"Pacific/Niue",title:"Niue",winIndex:49,offsets:[-11.333333333333334,-11.5,-11],offsetIndices:"012",untils:"-9wyz6o|ehcj4o|Infinity"},{id:"Pacific/Noumea",title:"Noumea",winIndex:48,offsets:[11.096666666666666,11,12],offsetIndices:"01212121",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity"},{id:"Pacific/Pago_Pago",title:"Pago Pago",winIndex:49,offsets:[-11.379999999999999,-11],offsetIndices:"0111",untils:"-usij20|tcsey0|8p4800|Infinity"},{id:"Pacific/Palau",title:"Palau",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Pohnpei",title:"Pohnpei",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Port_Moresby",title:"Port Moresby",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Rarotonga",title:"Rarotonga",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"012121212121212121212121212",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity"},{id:"Pacific/Saipan",title:"Saipan",winIndex:50,link:520},{id:"Pacific/Tahiti",title:"Tahiti",winIndex:57,offsets:[-9.97111111111111,-10],offsetIndices:"01",untils:"-tvnayw|Infinity"},{id:"Pacific/Tarawa",title:"Tarawa",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Tongatapu",title:"Tongatapu",winIndex:94,offsets:[12.333333333333334,13,14],offsetIndices:"01212121",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|Infinity"},{id:"Pacific/Wake",title:"Wake",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Wallis",title:"Wallis",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"PST8PDT",title:"PST8PDT",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"}];e.exports={displayNames:n,timezones:i}},function(e,t,n){var i=n(9),o=n(315),a=n(317),s=n(202),r=n(99),l=n(90),c=n(64),d="dx-scheduler-appointment-tooltip",u="dx-scheduler-appointment-tooltip-title",h="dx-scheduler-appointment-tooltip-date",p="dx-scheduler-appointment-tooltip-buttons",f={show:function(e,t,n,a){if(!this._tooltip||!this._tooltip.option("visible")||i(this._tooltip.option("target")).get(0)!==i(n).get(0)){this.instance=a;var s=a.appointmentTakesAllDay(e);this._initDynamicTemplate(e,t);var l=a._getAppointmentTemplate("appointmentTooltipTemplate");this.hide(),this._$tooltip=i("
").appendTo(a.element()),this._tooltip=a._createComponent(this._$tooltip,o,{visible:!0,target:n,rtlEnabled:a.option("rtlEnabled"),contentTemplate:new r(function(t){return l.render({model:e,container:t.container})}),position:{my:"bottom",at:"top",of:n,boundary:s?a.element():a.getWorkSpaceScrollableContainer(),collision:"fit flipfit"}})}},hide:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip,a.hide())},_initDynamicTemplate:function(e,t){var n=this;this.instance._defaultTemplates.appointmentTooltip=new r(function(i){var o=i.container,a=n._tooltipContent(e,t);return a.addClass(o.attr("class")),o.replaceWith(a),o})},_tooltipContent:function(e,t){var n=i("
").addClass(d),o=this.instance.fire("getField","allDay",e),a=this.instance.fire("getField","startDate",t),s=this.instance.fire("getField","endDate",t),r=this.instance.fire("getField","text",e),l=this.instance.fire("getField","startDateTimeZone",e),c=this.instance.fire("getField","endDateTimeZone",e);a=this.instance.fire("convertDateByTimezone",a,l),s=this.instance.fire("convertDateByTimezone",s,c),i("
").text(r).addClass(u).appendTo(n),i("
").addClass(h).text(this._formatTooltipDate(a,s,o)).appendTo(n);var f=i("
").addClass(p).appendTo(n);return this.instance._editing.allowDeleting&&this._getDeleteButton(e,t).appendTo(f),this._getOpenButton(e,t).appendTo(f),n},_formatTooltipDate:function(e,t,n){var i="month"!==this.instance.option("currentView")&&c.sameDate(e,t)?"TIME":"DATETIME",o="";return n&&(i="DATE"),this.instance.fire("formatDates",{startDate:e,endDate:t,formatType:i,callback:function(e){o=e}}),o},_getDeleteButton:function(e,t){var n=this;return new s(i("
"),{icon:"trash",onClick:function(){var i=n.instance.fire("getField","startDate",t);n.instance._checkRecurringAppointment(e,t,i,function(){n.instance.deleteAppointment(e)},!0),n.hide()}}).element()},_getOpenButton:function(e,t){var n=this,o=n.instance._editing.allowUpdating;return new s(i("
"),{icon:o?"edit":"",text:l.format("dxScheduler-openAppointment"),onClick:function(){n.instance.showAppointmentPopup(e,!1,t),n.hide()}}).element()}};e.exports=f},function(e,t,n){var i=n(9),o=n(14),a=n(11).extend,s=n(26).inArray,r=n(39).camelize,l=n(57),c=n(96),d=n(477),u=n(478),h=n(282),p=n(294),f=n(7),m=n(90),g="dx-scheduler-header",_="dx-scheduler-view-switcher",v="dx-scheduler-view-switcher-label",w={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},x=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],y=c.inherit({_getDefaultOptions:function(){return a(this.callBase(),{views:[],currentView:"day",firstDayOfWeek:void 0,currentDate:new Date,min:void 0,max:void 0,useDropDownViewSwitcher:!1})},_optionChanged:function(e){var t=e.value;switch(e.name){case"views":var n=this.option("currentView");this._viewSwitcher.option({items:t,selectedItem:n});break;case"currentView":this._viewSwitcher.option("selectedItem",t),this._navigator.option("step",w[t]),this._changeViewSwitcherLabelText();break;case"currentDate":this._navigator.option("date",t);break;case"min":case"max":case"firstDayOfWeek":this._navigator.option(e.name,t);break;case"tabIndex":case"focusStateEnabled":this._viewSwitcher.option(e.name,t),this._navigator.option(e.name,t),this.callBase(e);break;case"useDropDownViewSwitcher":this._refreshViewSwitcher();break;default:this.callBase(e)}},_init:function(){this.callBase(),this.element().addClass(g)},_render:function(){this.callBase(),this._renderNavigator(),this._renderViewSwitcher()},_renderNavigator:function(){this._navigator=this._createComponent("
",u,{min:this.option("min"),max:this.option("max"),date:this.option("currentDate"),step:w[this.option("currentView")],firstDayOfWeek:this.option("firstDayOfWeek"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),observer:this.option("observer")}),this._navigator.element().appendTo(this.element())},_renderViewSwitcher:function(){this._validateViews();var e=i("
").addClass(_).appendTo(this.element());this.option("useDropDownViewSwitcher")?this._renderViewSwitcherDropDownMenu(e):this._renderViewSwitcherTabs(e)},_validateViews:function(){var e=this.option("views");i.each(e,function(e,t){s(t,x)===-1&&f.log("W0008",t)})},_renderViewSwitcherTabs:function(e){this._viewSwitcher=this._createComponent(e,p,{selectionRequired:!0,scrollingEnabled:!0,onSelectionChanged:this._updateCurrentView.bind(this),items:this.option("views"),itemTemplate:function(e){return i("").addClass("dx-tab-text").text(m.format("dxScheduler-switcher"+r(e,!0)))},selectedItem:this.option("currentView"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled")})},_refreshViewSwitcher:function(){this._viewSwitcher._dispose(),this._viewSwitcher.element().remove(),delete this._viewSwitcher,this._removeViewSwitcherLabel(),this._renderViewSwitcher()},_removeViewSwitcherLabel:function(){o.isDefined(this._$viewSwitcherLabel)&&(this._$viewSwitcherLabel.detach(),this._$viewSwitcherLabel.remove(),delete this._$viewSwitcherLabel)},_renderViewSwitcherDropDownMenu:function(e){this._$viewSwitcherLabel=i("
").addClass(v).appendTo(this.element()),this._changeViewSwitcherLabelText(),this._viewSwitcher=this._createComponent(e,h,{onItemClick:this._updateCurrentView.bind(this),items:this.option("views"),itemTemplate:function(e){return i("").addClass("dx-dropdownmenu-item-text").text(m.format("dxScheduler-switcher"+r(e,!0)))}})},_changeViewSwitcherLabelText:function(){if(o.isDefined(this._$viewSwitcherLabel)){var e=m.format("dxScheduler-switcher"+r(this.option("currentView"),!0));this._$viewSwitcherLabel.text(e)}},_updateCurrentView:function(e){var t=e.itemData||e.component.option("selectedItem");this.notifyObserver("currentViewUpdated",t)},_renderFocusTarget:o.noop}).include(d);l("dxSchedulerHeader",y),e.exports=y},function(e,t){var n={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}};e.exports=n},function(e,t,n){var i=n(9),o=n(14),a=n(22),s=n(64),r=n(11).extend,l=n(57),c=n(53),d=n(96),u=n(202),h=n(254),p=n(208),f=n(201),m=n(477),g=n(33),_=o.isNumeric,v=o.noop,w="dx-scheduler-navigator",x="dx-scheduler-navigator-calendar",y="dx-scheduler-navigator-next",b="dx-scheduler-navigator-caption",C="dx-scheduler-navigator-previous",k=1,I=function(e){return e?k:g.firstDayOfWeekIndex()},S=function(e){return function(t){var n=g.getMonthNames(e?"abbreviated":"wide")[t.getMonth()];return[g.format(t,"day"),n].join(" ")}},D=function(e){var t=S(e);return function(e){return[t(e),g.format(e,"year")].join(" ")}},T=function(e,t,n){var i=s.getFirstWeekDate(e,this.option("firstDayOfWeek")||I(t)),o=2;n&&(i=s.normalizeDateByWeek(i,e)),this.option("firstDayOfWeek")>=6&&n&&i.setDate(i.getDate()+(7-this.option("firstDayOfWeek")+1));var a=new Date(i);t=t||6,a=new Date(a.setDate(a.getDate()+t)),a.getDay()%6===0&&n&&a.setDate(a.getDate()+o);var r=i.getMonth()!==a.getMonth(),l=r||this.option("_useShortDateFormat"),c=g.format(i,r?S(l):"d"),d=g.format(a,D(l)); return c+"-"+d},E=function(e,t){return new Date(e[this.setter](e[this.getter]()+t))},A=function(e){var t;switch(e){case"day":return{duration:1,setter:"setDate",getter:"getDate",getDate:E,getCaption:D()};case"week":return{duration:7,setter:"setDate",getter:"getDate",getDate:E,getCaption:T};case"workWeek":return{duration:7,setter:"setDate",getter:"getDate",getDate:E,getCaption:function(e){return T.call(this,e,4,!0)}};case"month":return{duration:1,setter:"setMonth",getter:"getMonth",getDate:function(e,t){var n=e.getDate();e.setDate(1),e=E.call(this,e,t);var i=s.getLastMonthDay(e);return e.setDate(n<i?n:i),e},getCaption:function(e){return g.format(e,"monthandyear")}};case"agenda":return t=this.invoke("getAgendaDuration"),t=_(t)&&t>0?t:7,{duration:t,setter:"setDate",getter:"getDate",getDate:E,getCaption:function(e){var n=D(this.option("_useShortDateFormat"));if(t>1){var i=new Date(e);return i.setDate(i.getDate()+t-1),g.format(e,"d")+"-"+g.format(i,n)}return g.format(e,n)}}}},B=d.inherit({_getDefaultOptions:function(){return r(this.callBase(),{date:new Date,step:"day",min:void 0,max:void 0,firstDayOfWeek:void 0,_useShortDateFormat:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!c.real().generic||c.isSimulator()},options:{_useShortDateFormat:!0}}])},_optionChanged:function(e){switch(e.name){case"step":case"date":this._updateButtonsState(),this._renderCaption(),this._setCalendarOption("value",this.option("date"));break;case"min":case"max":this._updateButtonsState(),this._setCalendarOption(e.name,e.value);break;case"firstDayOfWeek":this._setCalendarOption(e.name,e.value);break;case"tabIndex":case"focusStateEnabled":this._next.option(e.name,e.value),this._caption.option(e.name,e.value),this._prev.option(e.name,e.value),this._setCalendarOption(e.name,e.value),this.callBase(e);break;case"_useShortDateFormat":break;default:this.callBase(e)}},_init:function(){this.callBase(),this.element().addClass(w),this._initButtons()},_initButtons:function(){var e=i("
").addClass(y);this._next=this._createComponent(e,u,{icon:"chevronnext",onClick:this._updateCurrentDate.bind(this,1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var t=i("
").addClass(b);this._caption=this._createComponent(t,u,{focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var n=i("
").addClass(C);this._prev=this._createComponent(n,u,{icon:"chevronprev",onClick:this._updateCurrentDate.bind(this,-1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}}),this.setAria("label","Next period",e),this.setAria("label","Previous period",n),this._updateButtonsState(),this.element().append(n,t,e)},_updateButtonsState:function(){var e=this.option("min"),t=this.option("max");this._prev.option("disabled",e&&this._getNextDate(-1)<=e),this._next.option("disabled",t&&this._getNextDate(1)>=t)},_updateCurrentDate:function(e){var t=this._getNextDate(e);s.normalizeDate(t,this.option("min"),this.option("max")),this.notifyObserver("currentDateUpdated",t)},_getNextDate:function(e){var t=this._getConfig(),n=t.duration*e,i=t.getDate(new Date(this.option("date")),n);return i},_renderFocusTarget:v,_render:function(){this.callBase(),this._renderPopover(),this._renderCaption(),this._renderCaptionKeys()},_renderPopover:function(){var e=c.current().generic?p:f;this._popover=this._createComponent("
",e,{onContentReady:this._popoverContentReadyHandler.bind(this),defaultOptionsRules:[{device:function(){return!c.current().generic},options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}},{device:function(){return c.current().generic},options:{target:this._caption.element()}}]}),this._popover.element().appendTo(this.element())},_popoverContentReadyHandler:function(){this._calendar=this._createComponent(i("
"),h,this._calendarOptions()),this._calendar.element().addClass(x),this._popover.content().append(this._calendar.element())},_calendarOptions:function(){return{min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),value:this.option("date"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:function(e){this.option("visible")&&(this.notifyObserver("currentDateUpdated",e.value),this._popover.hide())}.bind(this),hasFocus:function(){return!0},tabIndex:null,_keyboardProcessor:this._calendarKeyboardProcessor}},_renderCaption:function(){var e=this.option("date"),t=this._getConfig().getCaption.call(this,e);this._caption.option({text:t,onClick:function(){this._popover.toggle()}.bind(this)})},_renderCaptionKeys:function(){if(this.option("focusStateEnabled")&&!this.option("disabled")){this._calendarKeyboardProcessor=this._caption._keyboardProcessor.attachChildProcessor(),this._setCalendarOption("_keyboardProcessor",this._calendarKeyboardProcessor);var e=this,t=function(){return!e._popover.content().is(":hidden")||void e._popover.show()},n=function(){e._popover.hide()};this._caption.registerKeyHandler("enter",t),this._caption.registerKeyHandler("space",t),this._caption.registerKeyHandler("tab",n)}},_setCalendarOption:function(e,t){this._calendar&&this._calendar.option(e,t)},_getConfig:function(){var e=this.option("step"),t=A.call(this,e);if(!t)throw a.Error("E1033",e);return t}}).include(m);l("dxSchedulerNavigator",B),e.exports=B},function(e,t,n){var i=n(14).noop,o=n(57),a=n(480),s="dx-scheduler-work-space-day",r=a.inherit({_getElementClass:function(){return s},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return 1},_setFirstViewDate:function(){this._firstViewDate=this.option("currentDate"),this._setStartDayHour(this._firstViewDate)},_getDateByIndex:function(){return this._firstViewDate},_getFormat:function(){return"longdate"},_renderDateHeader:i,_getRightCell:function(e){return e?this._$focusedCell:this.callBase(e)},_getLeftCell:function(e){return e?this._$focusedCell:this.callBase(e)}});o("dxSchedulerWorkSpaceDay",r),e.exports=r},function(e,t,n){var i=n(9),o=n(64),a=n(11).extend,s=n(90),r=n(33),l=o.dateToMilliseconds,c=n(96),d=c.abstract,u=n(14),h=n(57),p=n(477),f=n(72),m=n(77),g=n(22),_=n(76),v=n(111),w=n(245),x=n(481),y="dx-scheduler-work-space",b="dx-scheduler-work-space-grouped",C="dx-scheduler-work-space-both-scrollbar",k="dx-group-row-count",I="dx-scheduler-work-space-odd-cells",S="dx-scheduler-time-panel",D="dx-scheduler-time-panel-cell",T="dx-scheduler-time-panel-row",E="dx-scheduler-time-panel-odd-row-count",A="dx-scheduler-all-day-panel",B="dx-scheduler-all-day-table",M="dx-scheduler-fixed-appointments",R="dx-scheduler-all-day-appointments",O="dx-scheduler-all-day-title",P="dx-scheduler-all-day-title-hidden",V="dx-scheduler-all-day-table-cell",F="dx-scheduler-all-day-table-row",H="dx-scheduler-work-space-all-day",L="dx-scheduler-work-space-all-day-collapsed",z="dx-scheduler-work-space-mouse-selection",N="dx-scheduler-header-panel",W="dx-scheduler-header-panel-cell",$="dx-scheduler-header-row",q="dx-scheduler-group-row",G="dx-scheduler-group-header",j="dx-scheduler-group-header-content",K="dx-scheduler-date-table",U="dx-scheduler-date-table-cell",Q="dx-scheduler-date-table-row",Y="dx-scheduler-focused-cell",Z="dx-scheduler-date-table-droppable-cell",X="dx-scheduler-header-scrollable",J="dx-scheduler-sidebar-scrollable",ee="dx-scheduler-date-table-scrollable",te=f.addNamespace(m.down,"dxSchedulerWorkSpace"),ne=f.addNamespace(v.enter,"dxSchedulerDateTable"),ie=f.addNamespace(v.drop,"dxSchedulerDateTable"),oe=f.addNamespace(_.name,"dxSchedulerDateTable"),ae=f.addNamespace(m.down,"dxSchedulerDateTable"),se=f.addNamespace(m.up,"dxSchedulerDateTable"),re=f.addNamespace(m.move,"dxSchedulerDateTable"),le="dxCellData",ce=75,de=l("day"),ue=l("hour"),he=function(e){return r.getDayNames("abbreviated")[e.getDay()]},pe=c.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),e.stopPropagation(),this._focusedCells&&this._focusedCells.length&&this._showAddAppointmentPopup(i(this._focusedCells))},t=function(e,t){e.preventDefault(),e.stopPropagation(),this._moveToCell(t,e.shiftKey)};return a(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){var t=this._$focusedCell,n=t.index(),i=t.parent(),o=i[e]().children().eq(n);return o=this._checkForViewBounds(o)},_checkForViewBounds:function(e){return e.length||(e=this._$focusedCell),e},_getRightCell:function(e){var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=o-1,s=this._isRTL()?0:a,r=n.index(),l=this._isRTL()?"prev":"next";if(r===s||e&&this._isGroupEndCell(n)){var c=n.parent(),d=this._isRTL()?1:-1;t=c[l]().children().eq(r+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,s=this._isRTL()?a:0,r=n.index(),l=this._isRTL()?"next":"prev";if(r===s||e&&this._isGroupStartCell(n)){var c=n.parent(),d=this._isRTL()?-1:1;t=c[l]().children().eq(r+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 o=i(this._focusedCells);this._toggleFocusClass(!0,o),this.setAria("label","Add appointment",o),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),o=this._getCells(n),a=o.index(e),s=o.index(t);if(a>s){var r=a;a=s,s=r}if(o=o.slice(a,s+1),this._getGroupCount()>1){var l=[],c=this._getGroupIndexByCell(e);i.each(o,function(e,t){var n=this._getGroupIndexByCell(i(t));c===n&&l.push(t)}.bind(this)),o=i(l)}return o},_hasAllDayClass:function(e){return e.hasClass(V)},_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(Y,e)},_releaseFocusedCell:function(e){e=e||i(this._focusedCells),u.isDefined(e)&&(this._toggleFocusClass(!1,e),this._toggleFocusedCellClass(!1,e),this.setAria("label",void 0,e))},_focusInHandler:function(e){if(i(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(){this.callBase.apply(this,arguments),this._releaseFocusedCell()},_focusTarget:function(){return this.element()},_activeStateUnit:"."+U+", ."+V,_getDefaultOptions:function(){return a(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,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0})},_optionChanged:function(e){switch(e.name){case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"startDayHour":case"endDayHour":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"groups":this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this._renderView();break;case"showAllDayPanel":this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this.notifyObserver("allDayPanelToggled"),this._attachTablesEvents(),this.headerPanelOffsetRecalculate();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._toggleWorkSpaceWithOddCells(),this.element().addClass(y).addClass(this._getElementClass()),this._initWorkSpaceUnits(),this._initDateTableScrollable(),this._createWorkSpaceElements()},_toggleHorizontalScrollClass:function(){this.element().toggleClass(C,this.option("crossScrollingEnabled"))},_toggleWorkSpaceWithOddCells:function(){this.element().toggleClass(I,this._isWorkspaceWithOddCells())},_isWorkspaceWithOddCells:function(){return.5===this.option("hoursInterval")},_getTimePanelClass:function(){return S},_getDateTableClass:function(){return K},_getDateTableRowClass:function(){return Q},_getDateTableCellClass:function(){return U},_getGroupRowClass:function(){return q},_getGroupHeaderClass:function(){return G},_getGroupHeaderContentClass:function(){return j},_initWorkSpaceUnits:function(){this._$headerPanel=i(""),this._$thead=i("<thead>").appendTo(this._$headerPanel),this._$fixedContainer=i("
").addClass(M),this._$allDayContainer=i("
").addClass(R),this._$allDayTitle=i("
").addClass(O).text(s.format("dxScheduler-allDay")).appendTo(this.element()),this._$allDayTable=i("
"),this._$allDayPanel=i("
").addClass(A).append(this._$allDayTable),this._$timePanel=i("
").addClass(this._getTimePanelClass()),this._$dateTable=i("
")},_initDateTableScrollable:function(){var e=i("
").addClass(ee);this._dateTableScrollable=this._createComponent(e,w,this._dateTableScrollableConfig())},_dateTableScrollableConfig:function(){var e={useKeyboard:!1,useNative:!1,bounceEnabled:!1,updateManually:!0,pushBackValue:0};return this.option("crossScrollingEnabled")&&(e=a(e,this._createCrossScrollingConfig())),e},_createCrossScrollingConfig:function(){var e={};return e.direction="both",e.onScroll=function(e){this._dateTableScrollWasHandled?this._dateTableScrollWasHandled=!1:(this._headerScrollWasHandled=!0,this._sideBarScrollWasHandled=!0,this._sidebarScrollable.scrollTo({top:e.scrollOffset.top}),this._headerScrollable.scrollTo({left:e.scrollOffset.left}))}.bind(this),e.onEnd=function(){this.notifyObserver("updateResizableArea",{})}.bind(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=i("
").addClass(X).appendTo(this.element());this._headerScrollable=this._createComponent(e,w,{useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(e){this._headerScrollWasHandled?this._headerScrollWasHandled=!1:(this._dateTableScrollWasHandled=!0,this._dateTableScrollable.scrollTo({left:e.scrollOffset.left}))}.bind(this)})},_createSidebarScrollable:function(){var e=i("
").addClass(J).appendTo(this.element());this._sidebarScrollable=this._createComponent(e,w,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(e){this._sideBarScrollWasHandled?this._sideBarScrollWasHandled=!1:(this._dateTableScrollWasHandled=!0,this._dateTableScrollable.scrollTo({top:e.scrollOffset.top}))}.bind(this)})},_visibilityChanged:function(e){e&&this.option("crossScrollingEnabled")&&this._setTableSizes()},_attachTableClasses:function(){function e(e,t){e&&!e.hasClass(t)&&e.addClass(t)}e(this._$headerPanel,N),e(this._$dateTable,this._getDateTableClass()),e(this._$allDayTable,B)},_setTableSizes:function(){var e=ce,t=this._getWorkSpaceMinWidth(),n=this._$headerPanel.find("tr").last().find("th"),i=e*n.length;i<t&&(i=t),this._$headerPanel.width(i),this._$dateTable.width(i),this._$allDayTable.width(i),this.option("crossScrollingEnabled")&&this._attachTableClasses()},_getWorkSpaceMinWidth:function(){var e=this._getWorkSpaceWidth(),t=this.element().outerWidth()-this.getTimePanelWidth();return e<t&&(e=t),e},_dimensionChanged:function(){this.option("crossScrollingEnabled")&&this._setTableSizes(),this.headerPanelOffsetRecalculate(),this._cleanCellDataCache(),this._cleanAllowedPositions()},_getElementClass:u.noop,_getRowCount:u.noop,_getCellCount:u.noop,_render:function(){this.callBase(),this.option("crossScrollingEnabled")||this._attachTableClasses(),this._toggleGroupedClass(),this._renderView(),this._attachEvents()},_toggleGroupedClass:function(){this.element().toggleClass(b,this._getGroupCount()>0)},_renderView:function(){this._setFirstViewDate(),this._applyCellTemplates(this._renderGroupHeader()),this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable()},_setFirstViewDate:function(){this._firstViewDate=o.getFirstWeekDate(this.option("currentDate"),this._firstDayOfWeek()||r.firstDayOfWeekIndex()),this._setStartDayHour(this._firstViewDate)},_setStartDayHour:function(e){var t=this.option("startDayHour");u.isDefined(t)&&e.setHours(t,t%1*60,0,0)},_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()+",."+V;this.element().off(te).off(oe).on(te,function(e){return f.isMouseEvent(e)&&e.which>1?void e.preventDefault():void t({jQueryEvent:e})}).on(oe,n,function(t){var n=i(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=i(e.target);this._showPopup&&this._hasFocusClass(t)&&(delete this._showPopup,this._showAddAppointmentPopup(t))},_pointerDownHandler:function(e){var t=i(e.target);return t.hasClass(this._getDateTableCellClass())||t.hasClass(V)?(this._isCellClick=!0,void(t.hasClass(Y)?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),a(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(),n=[];if(t){var i=this._makeGroupRows(this.option("groups"));this._attachGroupCountAttr(i.elements.length),e.append(i.elements),n=i.cellTemplates}else this._detachGroupCountAttr();return n},_applyCellTemplates:function(e){e.forEach(function(e){e()})},_detachGroupCountAttr:function(){this.element().removeAttr(k)},_attachGroupCountAttr:function(e){this.element().attr(k,e)},headerPanelOffsetRecalculate:function(){if(this.option("resourceCellTemplate")||this.option("dateCellTemplate")){var e=this.getHeaderPanelHeight(),t=this.invoke("getHeaderHeight"),n=this.supportAllDayRow()&&this.option("showAllDayPanel")?this.getAllDayHeight():0;e&&this._headerScrollable&&this._headerScrollable.element().height(e+n),e&&this._dateTableScrollable.element().css({"padding-bottom":n+e+"px","margin-bottom":-1*(parseInt(e,10)+n)+"px"}),e&&this._sidebarScrollable&&this._sidebarScrollable.element().css({"padding-bottom":n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),this._$allDayTitle&&this._$allDayTitle.css("top",t+e+"px")}},_makeGroupRows:function(e){return x.makeGroupedTable(x.HORIZONTAL,e,{groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass(),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"))},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_renderDateHeader:function(){for(var e=this._getDateHeaderContainer(),t=i("
").addClass($),n=this._getCellCount(),o=this._getDateHeaderTemplate(),a=this._calculateHeaderCellRepeatCount(),s=[],r=0;r<a;r++)for(var l=0;l<n;l++){var c=this._getHeaderText(l),d=i("").addClass(t.groupHeaderRowClass));for(o=u-1;o>=0;o--)for(var p=r[o].length,f=h/p,m=0;m<p;m++){var g=m*f,_=d[g];_.prepend(r[o][m].element.attr("rowspan",f))}return{elements:d,cellTemplates:a}},_makeHorizontalGroupedRows:function(e,t,n,o){for(var a=1,s=e.length,r=[],l=[],c=function(e){return e.template&&l.push(e.template),e.element},d=0;d<s;d++){d>0&&(a=e[d-1].items.length*a);var u=this._makeGroupedRowCells(e[d],a,t,o);r.push(i("").addClass(t.groupRowClass).append(u.map(c)))}for(var h=r[s-1].find("th").length,p=0;p<s;p++){var f=r[p].find("th"),m=h/f.length*n;m>1&&f.attr("colspan",m)}return{elements:r,cellTemplates:l}},_makeGroupedRowCells:function(e,t,n,o){for(var a=[],s=e.items,r=s.length,l=0;l<t;l++)for(var c=0;c<r;c++){var d=i("<div/>"),u={};if(o&&o.render){var h={model:s[c],container:d,index:l*r+c};e.data&&(h.model.data=e.data[c]),u.template=o.render.bind(o,h)}else d.text(s[c].text),d=i("<div/>").append(d);d.addClass(n.groupHeaderContentClass),u.element=i("
").addClass(W).attr("title",c);o&&o.render?s.push(o.render.bind(o,{model:{text:c,date:this._getDateByIndex(l)},index:r*a+l,container:d})):d.text(c),t.append(d)}return e.append(t),this._applyCellTemplates(s),t},_calculateHeaderCellRepeatCount:function(){return this._getGroupCount()||1},_renderAllDayPanel:function(){var e=this._getCellCount()*(this._getGroupCount()||1),t=this._renderTableBody({container:this._$allDayTable,rowCount:1,cellCount:e,cellClass:V,rowClass:F,cellTemplate:this.option("dataCellTemplate"),getCellData:this._getAllDayCellData.bind(this)},!0);this._toggleAllDayVisibility(),this._applyCellTemplates(t)},_getAllDayCellData:function(e,t,n){var i=this._getDateByCellIndexes(t,n);i=o.trimTime(i);var a={startDate:i,endDate:new Date(i.getTime()+de),allDay:!0},s=this._getCellGroups(this._getGroupIndex(t,n));s.length&&(a.groups={});for(var r=0;r<s.length;r++)a.groups[s[r].name]=s[r].id;return{key:le,value:a}},_toggleAllDayVisibility:function(){var e=this.option("showAllDayPanel");this._$allDayPanel.toggle(e),this._$allDayTitle.toggleClass(P,!e),this.element().toggleClass(H,e),this._changeAllDayVisibility()},_changeAllDayVisibility:function(){this.element().toggleClass(L,!this.option("allDayExpanded")&&this.option("showAllDayPanel"))},_renderTimePanel:function(){var e=this._getTimePanelRowCount();this._$timePanel.toggleClass(E,e%1>0),this._renderTableBody({container:this._$timePanel,rowCount:e,cellCount:1,cellClass:D,rowClass:T,cellTemplate:this.option("timeCellTemplate"),getCellText:this._getTimeText.bind(this)})},_getTimePanelRowCount:function(){return.5*this._getCellCountInDay()},_getCellCountInDay:function(){return Math.floor(this._calculateDayDuration()/this.option("hoursInterval"))},_calculateDayDuration:function(){return this.option("endDayHour")-this.option("startDayHour")},_getTimeText:function(e){var t=new Date(this.getStartViewDate()),n=2*this.getCellDuration();return t.setMilliseconds(t.getMilliseconds()+n*e),r.format(t,"shorttime")},_renderDateTable:function(){var e=this._getGroupCount();this._renderTableBody({container:this._$dateTable,rowCount:this._getTotalRowCount(e),cellCount:this._getTotalCellCount(e),cellClass:this._getDateTableCellClass(),rowClass:this._getDateTableRowClass(),cellTemplate:this.option("dataCellTemplate"),getCellData:this._getCellData.bind(this)}),this._attachTablesEvents()},_getTotalCellCount:function(e){return e=e||1,this._getCellCount()*e},_getTotalRowCount:function(){return this._getRowCount()},_getCellData:function(e,t,n){var i=this._prepareCellData(t,n,e);return{key:le,value:i}},_prepareCellData:function(e,t){var n=this._getDateByCellIndexes(e,t),i=this.calculateEndDate(n),o={startDate:n,endDate:i,allDay:this._getTableAllDay()},a=this._getCellGroups(this._getGroupIndex(e,t));a.length&&(o.groups={});for(var s=0;s<a.length;s++)o.groups[a[s].name]=a[s].id;return o},_getGroupIndex:function(e,t){return Math.floor(t/this._getCellCount())},_getTableAllDay:function(){return!1},calculateEndDate:function(e){var t=new Date(e);return t.setMilliseconds(t.getMilliseconds()+this._getInterval()),t},_getGroupCount:function(){for(var e=this.option("groups"),t=0,n=0,i=e.length;n<i;n++)n?t*=e[n].items.length:t=e[n].items.length;return t},_getPathToLeaf:function(e){function t(e,n){for(var i=0;i<e.length;i++){if(e[i].leafIndex===n)return e[i];var o=t(e[i].children,n);if(o)return o}}function n(e,t){return t=t||[],t.push(e.value),e.parent&&n(e.parent,t),t}var i=this.invoke("createResourcesTree",this.option("groups")),o=t(i,e);return n(o).reverse()},_getCellGroups:function(e){var t=[];if(this._getGroupCount()){var n=this.option("groups");if(e<0)return;for(var i=this._getPathToLeaf(e),o=0;o<n.length;o++)t.push({name:n[o].name,id:i[o]})}return t},_attachTablesEvents:function(){this._attachTableEvents(this._getDateTable()),this._attachTableEvents(this._getAllDayTable())},_attachTableEvents:function(e){var t,n,o=this,a=!1;e.off(ne).off(ie).off(re).off(ae).on(ne,"td",{itemSizeFunc:function(e){return t||(t=e.height()),n||(n=e.width()),{width:n,height:t}}},function(e){o._$currentTableTarget&&o._$currentTableTarget.removeClass(Z),o._$currentTableTarget=i(e.target),o._$currentTableTarget.addClass(Z)}).on(ie,"td",function(e){i(e.target).removeClass(Z),t=0,n=0}).on(ae,"td",function(e){f.isMouseEvent(e)&&1===e.which&&(a=!0,o.element().addClass(z),i(document).off(se).on(se,function(){a=!1,o.element().removeClass(z)}))}).on(re,"td",function(e){a&&(e.preventDefault(),e.stopPropagation(),o._moveToCell(i(e.target),!0))})},_getDateTables:function(){return this._$dateTable.add(this._$allDayTable)},_getDateTable:function(){return this._$dateTable},_getAllDayTable:function(){return this._$allDayTable},_getInterval:function(){return void 0===this._interval&&(this._interval=this.option("hoursInterval")*ue),this._interval},_getHeaderText:function(e){return r.format(this._getDateByIndex(e),this._getFormat())},_getDateByIndex:d,_getFormat:d,_calculateCellIndex:function(e,t){return t%=this._getCellCount(),this._getRowCount()*t+e},_renderTableBody:function(e,t){var n=[];return t?n=x.makeTable(e):this._applyCellTemplates(x.makeTable(e)),n},_cleanView:function(){this._cleanCellDataCache(),this._cleanAllowedPositions(),this._$thead.empty(),this._$dateTable.empty(),this._$timePanel.empty(),this._$allDayTable.empty(),delete this._hiddenInterval,delete this._interval},getWorkArea:function(){return this._dateTableScrollable.content()},getScrollable:function(){return this._dateTableScrollable},getScrollableScrollTop:function(){return this._dateTableScrollable.scrollTop()},getScrollableScrollLeft:function(){return this._dateTableScrollable.scrollLeft()},getScrollableOuterWidth:function(){return this._dateTableScrollable.scrollWidth()},getScrollableContainer:function(){return this._dateTableScrollable._container()},getHeaderPanelHeight:function(){return this._$headerPanel&&this._$headerPanel.outerHeight(!0)},getTimePanelWidth:function(){return this._$timePanel.outerWidth()},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getRowCount()),n=e-this._getRowCount()*t;return{cellIndex:t,rowIndex:n}},_getDateByCellIndexes:function(e,t){var n=this.getStartViewDate(),i=new Date(n.getTime()+this._getMillisecondsOffset(e,t));return i.setTime(i.getTime()+o.getTimezonesDifference(n,i)),i},_getMillisecondsOffset:function(e,t){return this._getInterval()*this._calculateCellIndex(e,t)+this._calculateHiddenInterval(e,t)},_calculateHiddenInterval:function(e,t){var n=t%this._getCellCount();return n*this._getHiddenInterval()},_getHiddenInterval:function(){return void 0===this._hiddenInterval&&(this._hiddenInterval=de-this.option("hoursInterval")*this._getCellCountInDay()*ue),this._hiddenInterval},_getIntervalBetween:function(e,t){var n=this.option("startDayHour")*ue,i=this.getStartViewDate(),a=o.getTimezonesDifference(i,e),s=e.getTime()-i.getTime()-a,r=Math.floor((s+n)/de),l=r*de;return t||(l=s-r*this._getHiddenInterval()),l},_getGroupIndexes:function(e){var t=[];if(e&&this.option("groups").length){var n=this.invoke("createResourcesTree",this.option("groups"));t=this.invoke("getResourceTreeLeaves",n,e)}return t},_updateIndex:function(e){return e*this._getRowCount()},_getDroppableCell:function(){return this._getDateTables().find("."+Z)},_getWorkSpaceWidth:function(){return this.option("crossScrollingEnabled")?this._$dateTable.outerWidth():this.element().outerWidth()-this.getTimePanelWidth()},_getCellPositionByIndex:function(e,t){var n=this._getCellCoordinatesByIndex(e),i=this._getCellByCoordinates(n,t),o=this._getCellPosition(i);return this.setCellDataCache(n,t,i),o&&(o.rowIndex=n.rowIndex,o.cellIndex=n.cellIndex),o},_getCellPosition:function(e){var t=this.option("rtlEnabled"),n=e.position();return t&&(n.left+=e.outerWidth()),n},_getCellByCoordinates:function(e,t){return this._$dateTable.find("tr").eq(e.rowIndex).find("td").eq(e.cellIndex+t*this._getCellCount())},_getCells:function(e){var t=e?V:this._getDateTableCellClass();return this.element().find("."+t)},_getGroupHeaderCellsContent:function(){return this.element().find("."+j)},_getGroupHeaderCells:function(){return this.element().find("."+G)},_getScrollCoordinates:function(e,t,n){var i=n||new Date(this.option("currentDate")),o=this.option("startDayHour"),a=this.option("endDayHour");return e<o&&(e=o),e>=a&&(e=a-1),i.setHours(e),i.setMinutes(t),this.getCoordinatesByDate(i)},setCellDataCache:function(e,t,n){var i=this.getCellDataCache(),o=this.getCellData(n),a=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:t});i[a]=o},setCellDataCacheAlias:function(e,t){var n=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:e.groupIndex}),i=JSON.stringify({top:t.top,left:t.left}),o=this.getCellDataCache();o[n]&&(o[i]=o[n])},getCellDataCache:function(e){return this._cache||(this._cache={}),e?this._cache[e]:this._cache},_cleanCellDataCache:function(){delete this._cache},_cleanAllowedPositions:function(){delete this._maxAllowedVerticalPosition,delete this._maxAllowedPosition},supportAllDayRow:function(){return!0},keepOriginalHours:function(){return!1},getCellData:function(e){var t=e[0]?i.data(e[0],le):void 0;return a(!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("E1039");return{top:o.top+a.top,left:o.left+a.left,rowIndex:o.rowIndex,cellIndex:o.cellIndex,hMax:this.getMaxAllowedPosition()[t],vMax:this.getMaxAllowedVerticalPosition(),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)),o<0&&(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,0,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;a<i.length;a++)o.push(this.getCoordinatesByDate(e,i[a],n));else o.push(this.getCoordinatesByDate(e,0,n));return o},getDroppableCellIndex:function(){ var e=this._getDroppableCell(),t=e.parent(),n=t.index();return n*t.find("td").length+e.index()},getDataByDroppableCell:function(){var e=this.getCellData(this._getDroppableCell());return{date:e.startDate,allDay:e.allDay,groups:e.groups}},getDateRange:function(){return[this.getStartViewDate(),this.getEndViewDate()]},getCellWidth:function(){return this._getCells().first().outerWidth()},getCellHeight:function(){return this._getCells().first().outerHeight()},getAllDayHeight:function(){return this.option("showAllDayPanel")?this._getCells(!0).first().outerHeight()||0:0},getMaxAllowedPosition:function(){if(!this._maxAllowedPosition){var e=this.option("rtlEnabled"),t=this;this._maxAllowedPosition=[],this._$dateTable.find("tr").first().find("td:nth-child("+this._getCellCount()+"n)").each(function(n,o){var a=i(o).position().left;e||(a+=i(o).outerWidth()),t._maxAllowedPosition.push(Math.round(a))})}return this._maxAllowedPosition},getMaxAllowedVerticalPosition:function(){if(!this._maxAllowedVerticalPosition){var e=this._getRowCount(),t=this._$dateTable.find("tr:nth-child("+e+"n)"),n=i(t).position().top+i(t).outerHeight();this._maxAllowedVerticalPosition=Math.round(n)}return this._maxAllowedVerticalPosition},getFixedContainer:function(){return this._$fixedContainer},getAllDayContainer:function(){return this._$allDayContainer},getCellIndexByCoordinates:function(e,t){var n=this._getTotalCellCount(this._getGroupCount()),i=this.getTimePanelWidth(),o=Math.floor(this._getWorkSpaceWidth()/n),a=this._isRTL()||this.option("crossScrollingEnabled")?0:i,s=Math.floor(e.top/(t?this.getAllDayHeight():this.getCellHeight())),r=Math.floor((e.left+5-a)/o);return this._isRTL()&&(r=n-r-1),n*s+r},getStartViewDate:function(){return this._firstViewDate},getEndViewDate:function(){var e=this._getDateByCellIndexes(this._getRowCount()-1,this._getCellCount()-1);return new Date(e.getTime()+this.getCellDuration()-6e4)},getCellDuration:function(){return 36e5*this.option("hoursInterval")},getGroupBounds:function(e){var t=this.getCellIndexByCoordinates(e),n=this._getCellCount(),i=Math.floor(t/n),o=this._getCells(),a=this.getCellWidth(),s=i*n,r=o.eq(s).offset().left-a/2,l=o.eq(s+n-1).offset().left+a+a/2,c={left:r,right:l};return this._isRTL()&&(c.left=l-2*a,c.right=r+2*a),c},getCellDataByCoordinates:function(e,t){var n=JSON.stringify({top:e.top,left:e.left}),i=this.getCellDataCache(n);if(i)return i;var o=this._getCells(t),a=this.getCellIndexByCoordinates(e,t),s=o.eq(a);return this.getCellData(s)},getVisibleBounds:function(){var e={},t=this.getScrollable().element(),n=this.getCellHeight(),i=this.getScrollableScrollTop()/n,o=i+t.height()/n;return e.top={hours:Math.floor(i*this.option("hoursInterval"))+this.option("startDayHour"),minutes:i%2?30:0},e.bottom={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(o)%2?30:0},e},updateScrollPosition:function(e){e=this.invoke("convertDateByTimezone",e);var t=this.getVisibleBounds(),n=e.getHours(),i=e.getMinutes();this.needUpdateScrollPosition(n,i,t,e)&&this.scrollToTime(n,i,e)},needUpdateScrollPosition:function(e,t,n){var i=!1;return(e<n.top.hours||e>n.bottom.hours)&&(i=!0),e===n.top.hours&&t<n.top.minutes&&(i=!0),e===n.bottom.hours&&t>n.top.minutes&&(i=!0),i},getGroupWidth:function(e){var t=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[e];return n.length&&i&&(t=this._isRTL()?i-n[e+1]:0===e?i:i-n[e-1]),t},restoreScrollTop:function(){this.element().scrollTop(0)},scrollToTime:function(e,t,n){var i=this.getStartViewDate(),o=this.getEndViewDate();if(n<i||n>o)return void g.log("W1008",n);var a=this._getScrollCoordinates(e,t,n),s=this.getScrollable();s.scrollBy({top:a.top-s.scrollTop(),left:0})},getDistanceBetweenCells:function(e,t){var n=0;return this.element().find("."+this._getDateTableRowClass()).first().find("."+this._getDateTableCellClass()).each(function(o){return o<e||o>t||void(n+=i(this).outerWidth())}),n},_formatWeekday:function(e){return he(e)},_formatWeekdayAndDay:function(e){return he(e)+" "+r.format(e,"day")}}).include(p);h("dxSchedulerWorkSpace",pe),e.exports=pe},function(e,t,n){var i=n(9),o={VERTICAL:"vertical",HORIZONTAL:"horizontal",makeTable:function(e){var t=document.createElement("tbody"),n=[];e.container.append(t);for(var o=0;o<e.rowCount;o++){var a=document.createElement("tr");t.appendChild(a),e.rowClass&&(a.className=e.rowClass);for(var s=0;s<e.cellCount;s++){var r=document.createElement("td");a.appendChild(r),e.cellClass&&(r.className=e.cellClass);var l,c,d;if(e.getCellData&&(l=e.getCellData(r,o,s),c=l.key,d=l.value,c&&i.data(r,c,d)),e.cellTemplate&&e.cellTemplate.render){var u={model:{text:e.getCellText?e.getCellText(o,s,r):""},container:i(r),index:o*e.cellCount+s};d&&(d.startDate&&(u.model.startDate=d.startDate),d.endDate&&(u.model.endDate=d.endDate),d.groups&&(u.model.groups=d.groups),d.allDay&&(u.model.allDay=d.allDay)),n.push(e.cellTemplate.render.bind(e.cellTemplate,u))}else e.getCellText&&(r.innerHTML="
"+e.getCellText(o,s)+"
")}}return n},makeGroupedTable:function(e,t,n,i,o){var a=[];return a=e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o):this._makeHorizontalGroupedRows(t,n,i,o)},makeGroupedTableFromJSON:function(e,t,n){function i(){l=document.createElement("table"),f&&(l.className=f)}function o(e){return e[h]?e[h].length:0}function a(e,t,n,i){var o={element:document.createElement(u),childCount:t};g&&(o.element.className=g);var a=document.createTextNode(e);return"function"==typeof _?_(o.element,a,n,i):o.element.appendChild(a),o}function s(e){for(var t=0;t<e.length;t++){var n=o(e[t]),i=a(e[t][p],n,t,e[t]);c[d]||(c[d]=[]),c[d].push(i),n?s(e[t][h]):d++}}function r(){c.forEach(function(e){var t=document.createElement("tr");m&&(t.className=m);for(var n=[],i=e.length-1;i>=0;i--){var o=e[i+1],a=e[i].childCount;o&&o.childCount&&(a*=o.childCount),n.push(a)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowspan",n[i]),t.appendChild(e.element)}),l.appendChild(t)})}var l,c=[],d=0;n=n||{};var u=n.cellTag||"td",h=n.childrenField||"children",p=n.titleField||"title",f=n.groupTableClass,m=n.groupRowClass,g=n.groupCellClass,_=n.groupCellCustomContent;return i(),s(t),r(),l},_makeVerticalGroupedRows:function(e,t,n){var o,a=[],s=1,r=[],l=function(e){e.template&&a.push(e.template)};for(o=0;o<e.length;o++){o>0&&(s=e[o-1].items.length*s);var c=this._makeGroupedRowCells(e[o],s,t,n);c.forEach(l),r.push(c)}var d=[],u=r.length,h=r[u-1].length;for(o=0;o<h;o++)d.push(i("
").addClass(n.groupHeaderClass).append(d),a.push(u)}return a}};e.exports=o},function(e,t,n){var i=n(9),o=n(57),a=n(480),s="dx-scheduler-work-space-week",r=a.inherit({_getElementClass:function(){return s},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return 7},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_getCellsBetween:function(e,t){if(this._hasAllDayClass(t))return this.callBase(e,t);for(var n=this._getCells(),o=e.index(),a=e.parent().index(),s=t.index(),r=t.parent().index(),l=this._getGroupCount(),c=l>0?this._getTotalCellCount(l):this._getCellCount(),d=this._getTotalRowCount(l),u=[],h=0;h<c;h++)for(var p=0;p<d;p++){var f=n.get(c*p+h);u.push(f)}var m=d*o+a,g=d*s+r;if(m>g){var _=m;m=g,g=_}if(n=i(u).slice(m,g+1),this._getGroupCount()){var v=[],w=this._getGroupIndexByCell(e);i.each(n,function(e,t){var n=this._getGroupIndexByCell(i(t));w===n&&v.push(t)}.bind(this)),n=i(v)}return n},_getRightCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?0:o-1,s=this._isRTL()?"prev":"next";return n.index()===a||this._isGroupEndCell(n)?t=n:(t=n[s](),t=this._checkForViewBounds(t)),t},_getLeftCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?o-1:0,s=this._isRTL()?"next":"prev";return n.index()===a||this._isGroupStartCell(n)?t=n:(t=n[s](),t=this._checkForViewBounds(t)),t}});o("dxSchedulerWorkSpaceWeek",r),e.exports=r},function(e,t,n){var i=n(57),o=n(482),a=n(64),s=n(33),r="dx-scheduler-work-space-work-week",l=0,c=o.inherit({_getElementClass:function(){return r},_getCellCount:function(){return 5},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||1},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);t.setDate(this._firstViewDate.getDate()+e+l);var n=t.getDay();return n%6===0&&(l=Math.floor(n/6+1),t.setDate(t.getDate()+l)),t},_renderView:function(){l=0,this.callBase()},_setFirstViewDate:function(){this._firstViewDate=a.getFirstWeekDate(this.option("currentDate"),this._firstDayOfWeek()||s.firstDayOfWeekIndex()),this._firstViewDate=a.normalizeDateByWeek(this._firstViewDate,this.option("currentDate")),this._setStartDayHour(this._firstViewDate)}});i("dxSchedulerWorkSpaceWorkWeek",c),e.exports=c},function(e,t,n){var i=n(9),o=n(14).noop,a=n(57),s=n(480),r=n(64),l=n(33),c="dx-scheduler-work-space-month",d="dx-scheduler-date-table-current-date",u="dx-scheduler-date-table-other-month",h=7,p=864e5,f=s.inherit({_getElementClass:function(){return c},_getRowCount:function(){return 6},_getCellCount:function(){return h},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekday},_calculateCellIndex:function(e,t){return t%=this._getCellCount(),e*this._getCellCount()+t},_getInterval:function(){return p},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=r.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},_calculateHiddenInterval:function(){return 0},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getCellCount()),n=e-this._getCellCount()*t;return{rowIndex:t,cellIndex:n}},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:o,_toggleAllDayVisibility:o,_changeAllDayVisibility:o,_setFirstViewDate:function(){var e=r.getFirstMonthDate(this.option("currentDate"));this._firstViewDate=r.getFirstWeekDate(e,this.option("firstDayOfWeek")||l.firstDayOfWeekIndex()),this._setStartDayHour(this._firstViewDate)},_renderTableBody:function(e){e.getCellText=this._getCellText.bind(this),this.callBase(e)},_getCellText:function(e,t){t%=this._getCellCount();var n=this._getDate(e,t);return l.format(n,"dd")},_getDate:function(e,t){var n=new Date(this._firstViewDate);return n.setDate(n.getDate()+e*h+t),n},_updateIndex:function(e){return e},_prepareCellData:function(e,t,n){var o=this.callBase(e,t,n),a=i(n);return a.toggleClass(d,this._isCurrentDate(o.startDate)).toggleClass(u,this._isOtherMonth(o.startDate)),o},_isCurrentDate:function(e){var t=new Date;return r.sameDate(e,t)},_isOtherMonth:function(e){return e.getMonth()!==this.option("currentDate").getMonth()},getCellDuration:function(){return 36e5*this._calculateDayDuration()},getTimePanelWidth:function(){return 0},getPositionShift:function(){return{top:0,left:0}},getCoordinatesByDates:function(e,t){for(var n=[],i=new Date(e);i<=t;)n.push(this.getCoordinatesByDate(i)),i.setDate(i.getDate()+7),i=r.getFirstWeekDate(i,this.option("firstDayOfWeek")||l.firstDayOfWeekIndex());return n},getCellCountToLastViewDate:function(e){var t=e.getTime(),n=this.getEndViewDate().getTime(),i=this.getCellDuration();return Math.ceil((n-t)/i)},supportAllDayRow:function(){return!1},keepOriginalHours:function(){return!0},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},_getCellPositionByIndex:function(e,t){var n=this.callBase(e,t),i=this._getCellCoordinatesByIndex(e).rowIndex,o=this.getCellHeight()*i;return o&&(n.top=o),n},scrollToTime:o});a("dxSchedulerWorkSpaceMonth",f),e.exports=f},function(e,t,n){var i=n(57),o=n(486),a="dx-scheduler-timeline-day",s=o.inherit({_getElementClass:function(){return a},_setFirstViewDate:function(){this._firstViewDate=this.option("currentDate"),this._setStartDayHour(this._firstViewDate)}});i("dxSchedulerTimelineDay",s),e.exports=s},function(e,t,n){var i=n(9),o=n(14).noop,a=n(11).extend,s=n(57),r=n(480),l=n(64),c=n(481),d="dx-scheduler-timeline",u="dx-scheduler-group-table",h="dx-group-column-count",p="horizontal",f=75,m=1,g=l.dateToMilliseconds,_=r.inherit({_init:function(){this.callBase(),this.element().addClass(d),this._$sidebarTable=i("").addClass(u)},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getRightCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?0:n-1,o=this._isRTL()?"prev":"next";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getLeftCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?n-1:0,o=this._isRTL()?"next":"prev";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getRowCount:function(){return 1},_getCellCount:function(){return this._getCellCountInDay()},_getTotalCellCount:function(){return this._getCellCount()},_getTotalRowCount:function(e){return e=e||1,this._getRowCount()*e},_getDateByIndex:function(e){var t=new Date(this._firstViewDate),n=Math.floor(e/this._getCellCountInDay());return t.setTime(this._firstViewDate.getTime()+this._calculateCellIndex(0,e)*this._getInterval()+n*this._getHiddenInterval()),t},_getFormat:function(){return"shorttime"},_calculateHiddenInterval:function(e,t){var n=Math.floor(t/this._getCellCountInDay());return n*this._getHiddenInterval()},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?this._$dateTable.outerHeight():this.element().outerHeight()},_dateTableScrollableConfig:function(){var e=this,t=this.callBase(),n={direction:p,onScroll:function(t){e._dateTableScrollWasHandled?e._dateTableScrollWasHandled=!1:(e._headerScrollWasHandled=!0,e._headerScrollable.scrollTo({left:t.scrollOffset.left}))}};return this.option("crossScrollingEnabled")?t:a(t,n)},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_getGroupHeaderContainer:function(){return this._$sidebarTable},_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._$sidebarTable.appendTo(this._sidebarScrollable.content()),this._setGroupHeaderCellsHeight(),this._applyCellTemplates(e)},_cleanView:function(){this.callBase(),this._$sidebarTable.empty()},_visibilityChanged:function(e){this._setGroupHeaderCellsHeight(),this.callBase(e)},_setTableSizes:function(){this.callBase();var e=f,t=this._getWorkSpaceMinHeight(),n=this._$sidebarTable.find("tr"),i=e*n.length;i<t&&(i=t),this._$sidebarTable.height(i),this._$dateTable.height(i)},_getWorkSpaceMinHeight:function(){var e=this._getWorkSpaceHeight(),t=this.element().outerHeight(!0)-this.getHeaderPanelHeight();return e<t&&(e=t),e},_makeGroupRows:function(e){return c.makeGroupedTable(c.VERTICAL,e,{groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass(),groupHeaderContentClass:this._getGroupHeaderContentClass()},void 0,this.option("resourceCellTemplate"))},_setGroupHeaderCellsHeight:function(){var e=this.getCellHeight()-2*m;e=this._ensureGroupHeaderCellsHeight(e),this._getGroupHeaderCellsContent().css("height",e)},_ensureGroupHeaderCellsHeight:function(e){var t=this._calculateMinCellHeight();return e<t?t:e},_calculateMinCellHeight:function(){var e=this._getDateTable(),t="."+this._getDateTableRowClass();return e.outerHeight()/e.find(t).length-2*m},_detachGroupCountAttr:function(){this.element().removeAttr(h)},_attachGroupCountAttr:function(){this.element().attr(h,this.option("groups").length)},_getCellCoordinatesByIndex:function(e){return{cellIndex:e%this._getCellCount(),rowIndex:0}},_getCellByCoordinates:function(e,t){return this._$dateTable.find("tr").eq(e.rowIndex+t).find("td").eq(e.cellIndex)},_calculateCellIndex:function(e,t){return t},_getGroupIndex:function(e){return e},_getWorkSpaceWidth:function(){return this._$dateTable.outerWidth(!0)},_calculateHeaderCellRepeatCount:function(){return 1},_getGroupIndexByCell:function(e){return e.parent().index()},_getIntervalBetween:function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),s=(24-i+n)*g("hour"),r=l.getTimezonesDifference(o,e),c=e.getTime(),d=c-a-r,u=Math.floor(d/g("day")),h=d-u*g("day"),p=0,f=this._getCellCountInDay()*u,m=c-l.trimTime(new Date(e)).getTime(),_=f*this.option("hoursInterval")*g("hour");return t||(e.getHours()<n?p=h-s+m:e.getHours()>=n&&e.getHours()<i?p=h:e.getHours()>=n&&e.getHours()>=i?p=h-(m-i*g("hour")):u||(_=d),_+=p),_},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(e){var t=this.callBase(e),n=this.getCellWidth()*e;return this.option("rtlEnabled")&&(n*=-1),n+=t.left,{top:0,left:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().element(),i=this.getCellWidth(),o=e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft(),a=o/i,s=n.width()/i,r=e?a-s:a+s,c=this._getDateByIndex(a),d=this._getDateByIndex(r);return e&&(c=this._getDateByIndex(r),d=this._getDateByIndex(a)),t.left={hours:c.getHours(),minutes:c.getMinutes()>=30?30:0,date:l.trimTime(c)},t.right={hours:d.getHours(),minutes:d.getMinutes()>=30?30:0,date:l.trimTime(d)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(e<n.left.hours||e>n.right.hours)&&(o=!0),e===n.left.hours&&t<n.left.minutes&&(o=!0),e===n.right.hours&&t>n.right.minutes&&(o=!0),o},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(n<e.left.date||n>e.right.date)&&(i=!0),i},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?this.getScrollableContainer().outerWidth():0;o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}});s("dxSchedulerTimeline",_),e.exports=_},function(e,t,n){var i=n(9),o=n(57),a=n(486),s="dx-scheduler-timeline-week",r="dx-scheduler-header-panel-cell",l="dx-scheduler-header-row",c=200,d=a.inherit({_getElementClass:function(){return s},_getCellCount:function(){return this.callBase()*this._getWeekDuration()},_renderDateHeader:function(){for(var e=this.callBase(),t=new Date(this._firstViewDate),n=[],o=this._getCellCountInDay(),a=this.option("dateCellTemplate"),s=o*c,d=0;d<this._getWeekDuration();d++){var u=i("").addClass(l).append(n);e.before(f)},_getWeekDuration:function(){return 7}});o("dxSchedulerTimelineWeek",d),e.exports=d},function(e,t,n){var i=n(57),o=n(487),a=n(64),s="dx-scheduler-timeline-work-week",r=1,l=o.inherit({_getElementClass:function(){return s},_getWeekDuration:function(){return 5},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||r},_setFirstViewDate:function(){this._firstViewDate=a.getFirstWeekDate(this.option("currentDate"),this._firstDayOfWeek()),this._firstViewDate=a.normalizeDateByWeek(this._firstViewDate,this.option("currentDate")),this._setStartDayHour(this._firstViewDate)}});i("dxSchedulerTimelineWorkWeek",l),e.exports=l},function(e,t,n){var i=n(57),o=n(486),a=n(64),s="dx-scheduler-timeline-month",r=864e5,l=o.inherit({_renderView:function(){this.callBase(),this._updateScrollable()},_updateScrollable:function(){this._dateTableScrollable.update(),this._headerScrollable.update(),this._sidebarScrollable.update()},_getElementClass:function(){return s},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_getCellCount:function(){var e=this.option("currentDate");return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()},_setFirstViewDate:function(){this._firstViewDate=a.getFirstMonthDate(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getFormat:function(){return this._formatWeekdayAndDay},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getInterval:function(){return r},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=a.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},_calculateHiddenInterval:function(){return 0},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},needUpdateScrollPosition:function(e,t,n,i){return this._dateWithinBounds(n,i)},getPositionShift:function(){return{top:0,left:0}}});i("dxSchedulerTimelineMonth",l),e.exports=l},function(e,t,n){var i=n(9),o=n(14).noop,a=n(57),s=n(480),r=n(11).extend,l=n(33),c=n(481),d="dx-scheduler-agenda",u="dx-scheduler-agenda-date",h="dx-scheduler-agenda-week-day",p="dx-scheduler-group-table",f="dx-group-column-count",m="dx-scheduler-time-panel-row",g="dx-scheduler-time-panel-cell",_="dx-scheduler-agenda-nodata",v="dx-scheduler-date-table-last-row",w=5,x=20,y=s.inherit({_activeStateUnit:void 0,_getDefaultOptions:function(){return r(this.callBase(),{agendaDuration:7,rowHeight:60,noDataText:""})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"agendaDuration":break;case"noDataText":case"rowHeight":this._cleanView(),this._renderView();break;case"groups":n&&n.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountAttr()),this.callBase(e);break;default:this.callBase(e)}},_renderFocusState:o,_cleanFocusState:o,_getElementClass:function(){return d},_setFirstViewDate:function(){this._firstViewDate=new Date(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getRowCount:function(){return this.option("agendaDuration")},_getCellCount:function(){return 1},_getTimePanelRowCount:function(){return this.option("agendaDuration")},_getDateByIndex:o,_getFormat:function(){return"d ddd"},_renderAllDayPanel:o,_toggleAllDayVisibility:o,_initWorkSpaceUnits:function(){this._initGroupTable(),this._$timePanel=i("
"),h=this._formatWeekdayAndDay(t);if(a){var p={model:{text:h,date:t},container:u,index:d};a.render(p)}else u.text(h);u.addClass(r).attr("colspan",o).width(s),n.push(u),t.setDate(t.getDate()+1)}var f=i("
").addClass(this._getTimePanelClass()),this._$dateTable=i("
").addClass(this._getDateTableClass())},_initGroupTable:function(){var e=this.option("groups");e&&e.length&&(this._$groupTable=i("
").addClass(p))},_renderView:function(){var e=[];this._setFirstViewDate(),this._rows=[],this.invoke("getAgendaRows",{agendaDuration:this.option("agendaDuration"),currentDate:new Date(this.option("currentDate"))}).done(function(t){return this._cleanView(),this._rowsIsEmpty(t)?void this._renderNoData():(this._rows=t,this._$groupTable&&(e=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("agendaIsReady",t,w,x),this._applyCellTemplates(e),void this._dateTableScrollable.update())}.bind(this))},_renderNoData:function(){this._$noDataContainer=i("
").addClass(_).html(this.option("noDataText")),this._dateTableScrollable.content().append(this._$noDataContainer)},_setTableSizes:o,_toggleHorizontalScrollClass:o,_createCrossScrollingConfig:o,_setGroupHeaderCellsHeight:function(){var e=this._getGroupHeaderCells().filter(function(e,t){return!t.getAttribute("rowspan")}),t=this._removeEmptyRows(this._rows);if(t.length)for(var n=0;n<e.length;n++){var i=e.eq(n).find(".dx-scheduler-group-header-content");i.outerHeight(this._getGroupRowHeight(t[n]))}},_rowsIsEmpty:function(e){for(var t=!0,n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;o++)if(i[o]){t=!1;break}return t},_detachGroupCountAttr:function(){this.element().removeAttr(f)},_attachGroupCountAttr:function(){this.element().attr(f,this.option("groups").length)},_removeEmptyRows:function(e){for(var t=[],n=function(e){return!e.some(function(e){return e>0})},i=0;i<e.length;i++)e[i].length&&!n(e[i])&&t.push(e[i]);return t},_getGroupHeaderContainer:function(){return this._$groupTable},_makeGroupRows:function(){var e=this.invoke("createReducedResourcesTree"),t=this.option("resourceCellTemplate"),n=this._getGroupHeaderContentClass(),o=[],a=c.makeGroupedTableFromJSON(c.VERTICAL,e,{cellTag:"th",groupTableClass:p,groupRowClass:this._getGroupRowClass(),groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent:function(e,a,s,r){var l=document.createElement("div"),c=document.createElement("div");l.className=n,c.appendChild(a),l.appendChild(c),l.className=n,t&&t.render?o.push(t.render.bind(t,{model:{data:r.data,id:r.value,color:r.color,text:a.textContent},container:i(l),index:s})):(c.appendChild(a),l.appendChild(c)),e.appendChild(l)},cellTemplate:t});return{elements:i(a).find("."+this._getGroupRowClass()),cellTemplates:o}},_cleanView:function(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)},_createWorkSpaceElements:function(){this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._$groupTable&&this._dateTableScrollable.content().prepend(this._$groupTable),this._dateTableScrollable.content().append(this._$timePanel,this._$dateTable),this.element().append(this._dateTableScrollable.element())},_renderDateTable:function(){this._renderTableBody({container:this._$dateTable,rowClass:this._getDateTableRowClass(),cellClass:this._getDateTableCellClass()})},_attachTablesEvents:o,_attachEvents:o,_cleanCellDataCache:o,_prepareCellTemplateOptions:function(e,t,n,i){var o=this.option("groups"),a={},s=o.length&&this._getPathToLeaf(n)||[];return s.forEach(function(e,t){var n=o[t].name;a[n]=e}),{model:{text:e,date:t,groups:a},container:i,index:n}},_renderTableBody:function(e){var t=[],n=e.cellTemplate;this._$rows=[];for(var o=function(o,s){if(s){var r,c,d,p=i("
"),f=i("
").height(this._getRowHeight(s));if(e.getStartDate&&(r=e.getStartDate&&e.getStartDate(o),c=l.format(r,"d"),d=l.format(r,this._formatWeekday)),n&&n.render){var m=this._prepareCellTemplateOptions(c+" "+d,r,a,f);t.push(n.render.bind(n,m))}else c&&d&&f.append([i("<span />").addClass(u).text(c),i("<span />").addClass(h).text(d)]);e.rowClass&&p.addClass(e.rowClass),e.cellClass&&f.addClass(e.cellClass),p.append(f),this._$rows.push(p)}}.bind(this),a=0;a<this._rows.length;a++)i.each(this._rows[a],o),this._setLastRowClass();e.container.append(i("<tbody>").append(this._$rows)),this._applyCellTemplates(t)},_setLastRowClass:function(){if(this._rows.length>1&&this._$rows.length){var e=this._$rows[this._$rows.length-1];e.addClass(v)}},_renderTimePanel:function(){this._renderTableBody({container:this._$timePanel,rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:m,cellClass:g,cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})},_getTimePanelStartDate:function(e){var t=new Date(this.option("currentDate")),n=new Date(t.setDate(t.getDate()+e));return n},_getRowHeight:function(e){var t=this.option("rowHeight"),n=(e-1)*w;return e?t*e+n+x:0},_getGroupRowHeight:function(e){if(e){for(var t=0,n=0;n<e.length;n++)t+=this._getRowHeight(e[n]);return t}},getAgendaVerticalStepHeight:function(){return this.option("rowHeight")},getEndViewDate:function(){var e=new Date(this.option("currentDate")),t=this.option("agendaDuration");e.setHours(this.option("endDayHour"));var n=e.setDate(e.getDate()+t-1)-6e4;return new Date(n)},getCoordinatesByDate:function(){return{top:0,left:0,max:0,groupIndex:0}},getCellDataByCoordinates:function(){return{startDate:null,endDate:null}}});a("dxSchedulerAgenda",y),e.exports=y},function(e,t,n){var i=n(9),o=n(25),a=n(26),s=n(14),r=n(27),l=n(11).extend,c=n(26).inArray,d=n(160),u=n(50),h=n(154),p=n(16).when,f=function(e){return e.valueExpr||"id"},m=function(e){return e.displayExpr||"text"},g=o.inherit({_wrapDataSource:function(e){return e instanceof h.DataSource?e:new h.DataSource({store:h.normalizeDataSourceOptions(e).store,pageSize:0})},_mapResourceData:function(e,t){var n=u.compileGetter(f(e)),o=u.compileGetter(m(e));return i.map(t,function(e){var t={id:n(e),text:o(e)};return e.color&&(t.color=e.color),t})},_isMultipleResource:function(e){var t=!1;return i.each(this.getResources(),function(n,i){var o=this.getField(i);if(o===e)return t=i.allowMultiple,!1}.bind(this)),t},ctor:function(e){this.setResources(e)},getDataAccessors:function(e,t){var n=null;return i.each(this._dataAccessors[t],function(t,i){if(e===t)return n=i,!1}),n},getField:function(e){return e.fieldExpr||e.field},setResources:function(e){this._resources=e,this._dataAccessors={getter:{},setter:{}},this._resourceFields=i.map(e||[],function(e){var t=this.getField(e);return this._dataAccessors.getter[t]=u.compileGetter(t),this._dataAccessors.setter[t]=u.compileSetter(t),t}.bind(this))},getResources:function(){return this._resources||[]},getResourcesData:function(){return this._resourcesData||[]},getEditors:function(){var e=[],t=this;return i.each(this.getResources(),function(n,i){var o=t.getField(i),a=t._getResourceDataByField(o);e.push({editorOptions:{dataSource:a.length?a:t._wrapDataSource(i.dataSource),displayExpr:m(i),valueExpr:f(i)},dataField:o,editorType:i.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:i.label||o}})}),e},_resourceLoader:{},getResourceDataByValue:function(e,t){var n=this,o=i.Deferred();return i.each(this.getResources(),function(i,a){var s=n.getField(a);if(s===e){var r=n._wrapDataSource(a.dataSource),l=f(a);return n._resourceLoader[e]||(n._resourceLoader[e]=r.load()),n._resourceLoader[e].done(function(i){var a=d(i).filter(l,t).toArray();delete n._resourceLoader[e],o.resolve(a[0])}).fail(function(){delete n._resourceLoader[e],o.reject()}),!1}}),o.promise()},getResourcesFromItem:function(e,t){var n=this,o=null;return s.isDefined(t)||(t=!1),i.each(n._resourceFields,function(s,r){i.each(e,function(e,i){var s={};s[e]=i;var c=n.getDataAccessors(r,"getter")(s);if(c)return o||(o={}),1===c.length&&(c=c[0]),!t||t&&n._isMultipleResource(r)?n.getDataAccessors(r,"setter")(s,a.wrapToArray(c)):n.getDataAccessors(r,"setter")(s,c),l(o,s),!0})}),o},loadResources:function(e){var t=i.Deferred(),n=this,o=[];return i.each(this.getResourcesByFields(e),function(e,t){var a=i.Deferred(),s=n.getField(t);o.push(a),n._wrapDataSource(t.dataSource).load().done(function(e){a.resolve({name:s,items:n._mapResourceData(t,e),data:e})}).fail(function(){ a.reject()})}),o.length?(p.apply(null,o).done(function(){var e=Array.prototype.slice.call(arguments),i=function(e){return{name:e.name,items:e.items,data:e.data}};n._resourcesData=e,t.resolve(e.map(i))}).fail(function(){t.reject()}),t.promise()):t.resolve([])},getResourcesByFields:function(e){return s.grep(this.getResources(),function(t){var n=this.getField(t);return c(n,e)>-1}.bind(this))},getResourceByField:function(e){return this.getResourcesByFields([e])[0]||{}},getResourceColor:function(e,t){var n,o=this.getResourceByField(e).valueExpr||"id",a=u.compileGetter(o),s=this.getResourceByField(e).colorExpr||"color",r=u.compileGetter(s),l=i.Deferred(),c=this._getResourceDataByField(e),d=c.length;if(d){for(var h=0;h<d;h++)if(a(c[h])===t){n=r(c[h]);break}l.resolve(n)}else this.getResourceDataByValue(e,t).done(function(e){e&&(n=r(e)),l.resolve(n)}).fail(function(){l.reject()});return l.promise()},getResourceForPainting:function(e){var t,n=this.getResources();return i.each(n,function(e,n){if(n.useColorAsDefault||n.mainColor)return t=n,!1}),t||(Array.isArray(e)&&e.length&&(n=this.getResourcesByFields(e)),t=n[n.length-1]),t},createResourcesTree:function(e){function t(i,o,a,s){a=a||[];for(var r=0;r<i.items.length;r++){var l=i.items[r],c={name:i.name,value:l.id,title:l.text,data:i.data&&i.data[r],children:[],parent:s?s:null};a.push(c);var d=o+1;e[d]&&t.call(this,e[d],d,c.children,c),c.children.length||(c.leafIndex=n,n++)}return a}var n=0,i=i||0;return t.call(this,e[0],0)},_hasGroupItem:function(e,t,n){var i=this.getDataAccessors(t,"getter")(e);return!!(i&&c(n,i)>-1)},_getResourceDataByField:function(e){for(var t=this.getResourcesData(),n=[],i=0,o=t.length;i<o;i++)if(t[i].name===e){n=t[i].data;break}return n},getResourceTreeLeaves:function(e,t,n){n=n||[];for(var i=0;i<e.length;i++)this._hasGroupItem(t,e[i].name,e[i].value)&&(s.isDefined(e[i].leafIndex)&&n.push(e[i].leafIndex),e[i].children&&this.getResourceTreeLeaves(e[i].children,t,n));return n},groupAppointmentsByResources:function(e,t){var n=this.createResourcesTree(t),o={};return i.each(e,function(e,t){for(var i=this.getResourcesFromItem(t),a=this.getResourceTreeLeaves(n,i),s=0;s<a.length;s++)o[a[s]]||(o[a[s]]=[]),o[a[s]].push(r.deepExtendArraySafe({},t,!0))}.bind(this)),o},reduceResourcesTree:function(e,t,n){n=n?n.children:[];var i=this;return e.forEach(function(e,o){var a=!1,s=e.name,r=e.value,l=e.title,c=e.data,d=i.getDataAccessors(s,"getter");t.forEach(function(e){if(!a){var t=d(e);Array.isArray(t)?t.indexOf(r)>-1&&(n.push({name:s,value:r,title:l,data:c,children:[]}),a=!0):t===r&&(n.push({name:s,value:r,title:l,data:c,children:[]}),a=!0)}}),a&&e.children&&e.children.length&&i.reduceResourcesTree(e.children,t,n[o])}),n}});e.exports=g},function(e,t,n){var i=n(9),o=n(25),a=n(15),s=n(260),r=n(471),l=n(64),c=n(14),d=n(26).inArray,u=n(11).extend,h=n(26),p=n(160),f=0,m=1,g=o.inherit({ctor:function(e,t){this._filterRegistry=null,this._dataAccessors=t,this._dataExpressions=e},isRegistered:function(){return!!this._filterRegistry},clearRegistry:function(){delete this._filterRegistry},make:function(e,t){this._filterRegistry||(this._filterRegistry={}),this._make[e].apply(this,t)},_make:{date:function(e,t,n){var i=n?this._dataAccessors.getter.startDate:this._dataExpressions.startDateExpr,o=n?this._dataAccessors.getter.endDate:this._dataExpressions.endDateExpr,a=this._dataExpressions.recurrenceRuleExpr;this._filterRegistry.date=[[[o,">",e],[i,"<",t]],"or",[a,"startswith","freq"],"or",[[o,e],[i,e]]],a||this._filterRegistry.date.splice(1,2)},user:function(e){this._filterRegistry.user=e}},combine:function(){var e=[];return this._filterRegistry.date&&e.push(this._filterRegistry.date),this._filterRegistry.user&&e.push(this._filterRegistry.user),e},dateFilter:function(){return this._filterRegistry.date}}),_=o.inherit({_createFilter:function(e,t,n,i){this._filterMaker.make("date",[e,t]);var o=this._excessFiltering()?this._dataSource.filter()[m]:this._dataSource.filter();this._filterMaker.make("user",[o]),n&&this._dataSource.filter(this._combineRemoteFilter(i))},_excessFiltering:function(){var e=this._filterMaker.dateFilter(),t=this._dataSource.filter();return t&&(c.equalByValue(t,e)||t.length&&c.equalByValue(t[f],e))},_combineFilter:function(){return this._filterMaker.combine()},_getStoreKey:function(e){var t=this._dataSource.store();return t.keyOf(e)},_filterAppointmentByResources:function(e,t){function n(){var n,o=this._dataAccessors.getter.resources[r];c.isFunction(o)&&(n=o(e));for(var s=h.wrapToArray(n),l=i.map(t[a].items,function(e){return e.id}),u=0,p=s.length;u<p;u++)if(d(s[u],l)>-1)return!0;return!1}for(var o=!1,a=0,s=t.length;a<s;a++){var r=t[a].name;if(o=n.call(this),!o)return!1}return o},_filterAppointmentByRRule:function(e,t,n,i,o){var a=e.recurrenceRule,s=e.recurrenceException,l=e.allDay,c=!0,d=e.startDate,u=e.endDate;if(l||this._appointmentPartInInterval(d,u,i,o)){var h=this._trimDates(t,n);t=h.min,n=new Date(h.max.getTime()-6e4)}return a&&!r.getRecurrenceRule(a).isValid&&(c=u>t&&d<=n),c&&r.getRecurrenceRule(a).isValid&&(c=r.dateInRecurrenceRange({rule:a,exception:s,start:d,end:u,min:t,max:n})),c},_appointmentPartInInterval:function(e,t,n,i){var o=e.getHours(),a=t.getHours();return o<=n&&a<=i&&a>=n||a>=i&&o<=i&&o>=n},_createCombinedFilter:function(e,t){var n=this._dataAccessors,i=e.startDayHour,o=e.endDayHour,a=new Date(e.min),s=new Date(e.max),r=e.resources,l=this;return[[function(d){var u,h=!0,p=new Date(n.getter.startDate(d)),f=new Date(n.getter.endDate(d)),m=l.appointmentTakesAllDay(d,i,o),g=n.getter.allDay(d),_=p.getHours(),v=36e5*(24-o+i),w=f.getTime()-p.getTime(),x=(v-w)/36e5,y=c.isDefined(n.getter.recurrenceRule);y&&(u=n.getter.recurrenceRule(d)),r&&r.length&&(h=l._filterAppointmentByResources(d,r)),m&&e.allDay===!1&&(h=!1),h&&y&&(h=l._filterAppointmentByRRule({startDate:p,endDate:f,recurrenceRule:u,recurrenceException:n.getter.recurrenceException(d),allDay:m},a,s,i,o));var b=n.getter.startDateTimeZone(d),C=n.getter.endDateTimeZone(d),k=t(p,b),I=t(f,C);return h&&void 0!==i&&(h=k.getHours()>=i||I.getHours()>=i||m),h&&void 0!==o&&(h=k.getHours()<o||m&&k<=s,w<v&&_>o&&x<=_-o&&(h=!1)),h&&y&&!u&&I<a&&!g&&(h=!1),h}]]},ctor:function(e,t,n){this._dataExpressions=t,this.setDataSource(e),this._filterMaker=new g(t,n),this.setDataAccessors(n)},setDataSource:function(e){this._dataSource=e,this._filterMaker&&this._filterMaker.clearRegistry()},setDataAccessors:function(e){this._dataAccessors=e},filterByDate:function(e,t,n,i){if(this._dataSource){var o=this._trimDates(e,t);this._filterMaker.isRegistered()?(this._filterMaker.make("date",[o.min,o.max]),this._dataSource.filter()&&this._dataSource.filter().length>1&&this._filterMaker.make("user",[this._dataSource.filter()[1]]),n&&this._dataSource.filter(this._combineRemoteFilter(i))):this._createFilter(o.min,o.max,n,i)}},_combineRemoteFilter:function(e){var t=this._filterMaker.combine();return this._serializeRemoteFilter(t,e)},_serializeRemoteFilter:function(e,t){var n=this;if(!Array.isArray(e))return e;e=u([],e);var i=n._dataExpressions.startDateExpr,o=n._dataExpressions.endDateExpr;c.isString(e[0])&&a().forceIsoDateParsing&&e.length>1&&(e[0]!==i&&e[0]!==o||(e[e.length-1]=s.serializeDate(e[e.length-1],t)));for(var r=0;r<e.length;r++)e[r]=n._serializeRemoteFilter(e[r],t);return e},filterLoadedAppointments:function(e,t){c.isFunction(t)||(t=function(e){return e});var n=this._createCombinedFilter(e,t);if(this._filterMaker.isRegistered()){var i=this._trimDates(e.min,e.max);this._filterMaker.make("date",[i.min,i.max,!0]);var o=this.customizeDateFilter(this._filterMaker.combine(),t);n.push([o])}return p(this._dataSource.items()).filter(n).toArray()},_trimDates:function(e,t){var n=l.trimTime(new Date(e)),i=l.trimTime(new Date(t));return i.setDate(i.getDate()+1),{min:n,max:i}},hasAllDayAppointments:function(e,t,n){if(!e)return!1;var o=this,a=!1;return i.each(e,function(e,i){if(o.appointmentTakesAllDay(i,t,n))return a=!0,!1}),a},appointmentTakesAllDay:function(e,t,n){var i=this._dataAccessors,o=i.getter.startDate(e),a=i.getter.endDate(e),s=i.getter.allDay(e);return s||this._appointmentHasAllDayDuration(o,a,t,n)},_appointmentHasAllDayDuration:function(e,t,n,i){e=new Date(e),t=new Date(t);var o=i-n,a=(t.getTime()-e.getTime())/36e5;return a>=o},appointmentTakesSeveralDays:function(e){var t=this._dataAccessors,n=t.getter.startDate(e),i=t.getter.endDate(e),o=l.trimTime(new Date(n)),a=l.trimTime(new Date(i));return o.getTime()!==a.getTime()},_mapDateFieldsDependOnTZ:function(e,t){function n(e){e=l.makeDate(e);var n=36e5*t.value+t.clientOffset;return new Date(e.getTime()-n)}var i=this._dataAccessors.getter.startDate(e),o=this._dataAccessors.getter.endDate(e);this._dataAccessors.setter.startDate(e,n(i)),this._dataAccessors.setter.endDate(e,n(o))},customizeDateFilter:function(e,t){var n=u(!0,[],e);return function(e){e=u(!0,{},e);var i=this._dataAccessors.getter.startDate(e),o=this._dataAccessors.getter.endDate(e),a=this._dataAccessors.getter.startDateTimeZone(e),s=this._dataAccessors.getter.endDateTimeZone(e),r=t(i,a),l=t(o,s);return this._dataAccessors.setter.startDate(e,r),this._dataAccessors.setter.endDate(e,l),p([e]).filter(n).toArray().length>0}.bind(this)},add:function(e,t){return t&&void 0!==t.value&&this._mapDateFieldsDependOnTZ(e,t),this._dataSource.store().insert(e).done(function(){this._dataSource.load()}.bind(this))},update:function(e,t){var n=this._getStoreKey(e);return this._dataSource.store().update(n,t).done(function(){this._dataSource.load()}.bind(this))},remove:function(e){var t=this._getStoreKey(e);return this._dataSource.store().remove(t).done(function(){this._dataSource.load()}.bind(this))}});e.exports=_},function(e,t,n){var i=n(9),o=n(70),a=n(64),s=n(14),r=n(12),l=n(27),c=n(11).extend,d=n(471),u=n(57),h=n(477),p=n(494),f=n(72),m=n(183),g=n(33),_=n(90),v=n(150),w=n(267),x="dx-scheduler-scrollable-appointments",y="dx-scheduler-appointment",b="dx-scheduler-appointment-title",C="dx-scheduler-appointment-content-details",k="dx-scheduler-appointment-content-date",I="dx-scheduler-appointment-recurrence-icon",S="dx-scheduler-appointment-content-allday",D=f.addNamespace(m.name,"dxSchedulerAppointment"),T=a.dateToMilliseconds,E=v.inherit({_supportedKeys:function(){var e=this.callBase(),t=function(e){var t=this._getAccessAppointments(),n=t.filter(".dx-state-focused"),i=n.data("dxAppointmentSettings").sortedIndex,o=t.length-1;if(i>0&&e.shiftKey||i<o&&!e.shiftKey){e.preventDefault(),e.shiftKey?i--:i++;var a=this._getAppointmentByIndex(i);this._resetTabIndex(a),a.focus()}};return c(e,{escape:function(){this.moveAppointmentBack(),this._escPressed=!0}.bind(this),del:function(e){if(this.option("allowDelete")){e.preventDefault();var t=this._getItemData(e.target);this.notifyObserver("deleteAppointment",{data:t,target:e.target}),this.notifyObserver("hideAppointmentTooltip")}}.bind(this),tab:t})},_getAppointmentByIndex:function(e){var t=this._getAccessAppointments();return t.filter(function(t,n){return i.data(n,"dxAppointmentSettings").sortedIndex===e}).eq(0)},_getAccessAppointments:function(){return this._itemElements().filter(":visible").not(".dx-state-disabled")},_resetTabIndex:function(e){this._focusTarget().attr("tabindex",-1),e.attr("tabindex",this.option("tabIndex"))},_moveFocus:s.noop,_focusTarget:function(){return this._itemElements()},_renderFocusTarget:function(){var e=this._getAppointmentByIndex(0);this._resetTabIndex(e)},_focusInHandler:function(e){if(this._targetIsDisabled(e))return void e.stopPropagation();clearTimeout(this._appointmentFocusedTimeout),this.callBase.apply(this,arguments),this._$currentAppointment=i(e.target),this.option("focusedElement",i(e.target));var t=this;this._appointmentFocusedTimeout=setTimeout(function(){t.notifyObserver("appointmentFocused")})},_targetIsDisabled:function(e){return i(e.currentTarget).is(".dx-state-disabled, .dx-state-disabled *")},_focusOutHandler:function(){var e=this._getAppointmentByIndex(0);this.option("focusedElement",e),this.callBase.apply(this,arguments)},_eventBindingTarget:function(){return this._itemContainer()},_getDefaultOptions:function(){return c(this.callBase(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,appointmentDurationInMinutes:30,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null})},_optionChanged:function(e){switch(e.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._repaintAppointments(e.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":break;case"allowDrag":case"allowResize":case"allowAllDayResize":case"appointmentDurationInMinutes":this._invalidate();break;case"focusedElement":this._resetTabIndex(i(e.value)),this.callBase(e);break;case"allowDelete":break;default:this.callBase(e)}},_repaintAppointments:function(e){var t=e.length;t||this._cleanItemContainer();for(var n=0;n<t;n++){var i=e[n];i&&i.needRemove===!0?(this._clearItem(i),e.splice(n,1),n--):(i&&i.needRepaint===!1&&this._processRenderedAppointment(i),!i||s.isDefined(i.needRepaint)&&i.needRepaint!==!0||(i.needRepaint=!1,this._clearItem(i),this._renderItem(n,i)))}},_attachAppointmentsEvents:function(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_processRenderedAppointment:function(e){var t=this.invoke("getResourceForPainting");if(t){var n=this._findItemElementByItem(e.itemData),o=this;n.length&&i.each(n,function(t,n){o._applyAppointmentColor(n,e.itemData,e.settings[t])})}},_clearItem:function(e){var t=this._findItemElementByItem(e.itemData);t.length&&i.each(t,function(e,t){t.detach(),t.remove()})},_clearDropDownItems:function(){this._virtualAppointments={};var e=this._itemContainer().find(".dx-scheduler-dropdown-appointments");e.length&&i.each(e,function(e,t){i(t).detach(),i(t).remove()})},_findItemElementByItem:function(e){var t=[],n=this;return this.itemElements().each(function(){var o=i(this);o.data(n._itemDataKey())===e&&t.push(o)}),t},_itemClass:function(){return y},_itemContainer:function(){var e=this.callBase(),t=e,n=this.option("allDayContainer");return n&&(t=e.add(n)),t},_cleanItemContainer:function(){this.callBase();var e=this.option("allDayContainer");e&&e.empty(),this._virtualAppointments={}},_clean:function(){this.callBase(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates},_init:function(){this.callBase(),this.element().addClass(x),this._preventSingleAppointmentClick=!1},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_renderAppointmentTemplate:function(e,t,n){var o=n.settings?new Date(this.invoke("getField","startDate",n.settings)):t.startDate,a=n.settings?new Date(this.invoke("getField","endDate",n.settings)):t.endDate;i("
").text(this._createAppointmentTitle(t)).addClass(b).appendTo(e),r.isPlainObject(t)&&t.html&&e.html(t.html);var s=t.recurrenceRule,l=t.allDay,c=i("
").addClass(C),d=t.startDateTimeZone,u=t.endDateTimeZone;o=this.invoke("convertDateByTimezone",o,d),a=this.invoke("convertDateByTimezone",a,u),i("
").addClass(k).text(g.format(o,"shorttime")).appendTo(c),i("
").addClass(k).text(" - ").appendTo(c),i("
").addClass(k).text(g.format(a,"shorttime")).appendTo(c),c.appendTo(e),s&&i("").addClass(I+" dx-icon-repeat").appendTo(e),l&&i("
").text(" "+_.format("dxScheduler-allDay")+": ").addClass(S).prependTo(c)},_createAppointmentTitle:function(e){return r.isPlainObject(e)?e.text:String(e)},_executeItemRenderAction:function(e,t,n){var i=this._getItemRenderAction();i&&i({appointmentElement:n,appointmentData:t,targetedAppointmentData:this.invoke("getTargetedAppointmentData",t,n,e)}),delete this._currentAppointmentSettings},_itemClickHandler:function(e){this.callBase(e,{},{afterExecute:function(e){this._processItemClick(e.args[0].jQueryEvent)}.bind(this)})},_processItemClick:function(e){var t=i(e.currentTarget),n=this._getItemData(t);return this._targetIsDisabled(e)?void e.stopPropagation():"keydown"===e.type||f.isFakeClickEvent(e)?void this.notifyObserver("showEditAppointmentPopup",{data:n,target:t}):void(this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&i.contains(document,t[0])&&this.notifyObserver("showAppointmentTooltip",{data:n,target:t}),this._preventSingleAppointmentClick=!1}.bind(this),300))},_extendActionArgs:function(){var e=this.callBase.apply(this,arguments);return this._mapAppointmentFields(e)},_mapAppointmentFields:function(e){var t={appointmentData:e.itemData,appointmentElement:e.itemElement};return e.itemData&&(t.targetedAppointmentData=this.invoke("getTargetedAppointmentData",e.itemData,e.itemElement,e.itemIndex)),t},_render:function(){this.callBase.apply(this,arguments),this._attachAppointmentDblClick()},_attachAppointmentDblClick:function(){var e=this,t=e._itemSelector();this._itemContainer().off(D,t).on(D,t,function(t){e._itemJQueryEventHandler(t,"onAppointmentDblClick",{},{afterExecute:function(t){e._dblClickHandler(t.args[0].jQueryEvent)}})})},_dblClickHandler:function(e){var t=i(e.currentTarget),n=this._getItemData(t);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:n,target:t})},_renderItem:function(e,t){for(var n=t.settings.length&&t.settings[0].allDay,i=this._getAppointmentContainer(n),o=t.settings.length,a=0;a<o;a++){this._currentAppointmentSettings=t.settings[a];var s=this.callBase(e,t.itemData,i);s.data("dxAppointmentSettings",t.settings[a])}},_getAppointmentContainer:function(e){var t=this.option("allDayContainer"),n=this.itemsContainer().not(t);return e&&t&&(n=t),n},_postprocessRenderItem:function(e){this._renderAppointment(e.itemElement,this._currentAppointmentSettings)},_renderAppointment:function(e,t){this._applyResourceDataAttr(e);var n=this._getItemData(e),i=this.invoke("getAppointmentGeometry",t),o=!t.isCompact&&this.option("allowResize")&&(!s.isDefined(t.skipResizing)||s.isString(t.skipResizing)),a=this.option("allowDrag"),r=t.allDay;this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,i),this._createComponent(e,p,{observer:this.option("observer"),data:n,geometry:i,direction:t.direction||"vertical",allowResize:o,allowDrag:a,allDay:r,reduced:t.appointmentReduced,isCompact:t.isCompact,startDate:t.startDate,cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(n,t)}),this._applyAppointmentColor(e,n,t),this._renderDraggable(e,r)},_applyAppointmentColor:function(e,t,n){var i=this._paintAppointment(e,n.groupIndex);n.virtual&&i.done(function(i){this._processVirtualAppointment(n,e,t,i)}.bind(this))},_applyResourceDataAttr:function(e){this.notifyObserver("getResourcesFromItem",{itemData:this._getItemData(e),callback:function(t){t&&i.each(t,function(t,n){for(var i="data-"+s.normalizeKey(t.toLowerCase())+"-",o=0;o<n.length;o++)e.attr(i+s.normalizeKey(n[o]),!0)})}})},_resizableConfig:function(e,t){return{area:this._calculateResizableArea(t,e),onResizeStart:function(e){this._$currentAppointment=i(e.element),this._initialSize={width:e.width,height:e.height},this._initialCoordinates=o.locate(e.element)}.bind(this),onResizeEnd:function(e){return this._escPressed?void(e.jQueryEvent.cancel=!0):void this._resizeEndHandler(e)}.bind(this)}},_calculateResizableArea:function(e,t){var n=this.element().closest(".dx-scrollable-content"),i=e.allDay;return this.notifyObserver("getResizableAppointmentArea",{coordinates:{left:e.left,top:0},allDay:i,callback:function(e){e&&(n=e)}}),n},_resizeEndHandler:function(e){var t=this._getItemData(e.element),n=this.invoke("getStartDate",t,!0),i=this.invoke("getEndDate",t),o=this._getDateRange(e,n,i),a={};this.invoke("setField","startDate",a,new Date(o[0])),this.invoke("setField","endDate",a,new Date(o[1]));var s=c({},t,a);this.notifyObserver("updateAppointmentAfterResize",{target:t,data:s,$appointment:e.element})},_getDateRange:function(e,t,n){var i,o,a=this._getItemData(e.element),s=this.invoke("getDeltaTime",e,this._initialSize,a),r=this.invoke("getRenderingStrategy"),l=!1,c=this.invoke("isAllDay",a),d="horizontalMonth"!==r&&!c;return l="vertical"!==r||c?this.option("rtlEnabled")?e.handles.right:e.handles.left:e.handles.top,l?(i=d?this._correctStartDateByDelta(t,s):t.getTime()-s,o=n.getTime()):(i=t.getTime(),o=d?this._correctEndDateByDelta(n,s):n.getTime()+s),[i,o]},_correctEndDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()+t,a=(n-i)*T("hour"),s=Math.ceil(t/a),r=new Date(e);if(r.setHours(n),o>r.getTime()){var l=r.getTime()-e.getTime(),c=t-l,d=new Date(e.setDate(e.getDate()+s));d.setHours(i),o=d.getTime()+c-a*(s-1)}return o},_correctStartDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()-t,a=(n-i)*T("hour"),s=Math.ceil(t/a),r=new Date(e);if(r.setHours(i),o<r.getTime()){var l=e.getTime()-r.getTime(),c=t-l,d=new Date(e.setDate(e.getDate()-s));d.setHours(n),o=d.getTime()-c+a*(s-1)}return o},_paintAppointment:function(e,t){var n=i.Deferred();return this.notifyObserver("getAppointmentColor",{itemData:this._getItemData(e),groupIndex:t,callback:function(t){t.done(function(t){t&&e.css("background-color",t),n.resolve(t)})}}),n.promise()},_renderDraggable:function(e,t){if(this.option("allowDrag")){var n,a=this,s=this.option("fixedContainer"),r=function(n,i){var s=o.locate(n);a.notifyObserver("correctAppointmentCoordinates",{coordinates:s,allDay:t,isFixedContainer:i,callback:function(e){e&&(s=e)}}),o.move(e,s)};this.notifyObserver("getDraggableAppointmentArea",{callback:function(e){e&&(n=e)}}),this._createComponent(e,w,{area:n,boundOffset:a._calculateBoundOffset(),immediate:!1,onDragStart:function(t){var n=t.jQueryEvent;a._skipDraggableRestriction(n),a.notifyObserver("hideAppointmentTooltip"),a.notifyObserver("getDragEventTargetElements",{callback:function(e){e&&(n.targetElements=e)}}),s.append(e),a._$currentAppointment=i(t.element),a._initialSize={width:t.width,height:t.height},a._initialCoordinates=o.locate(t.element)},onDrag:function(e){r(e.element)},onDragEnd:function(n){r(n.element,!0);var i=a._getAppointmentContainer(t);return i.append(e),this._escPressed?void(n.jQueryEvent.cancel=!0):void a._dragEndHandler(n)}})}},_calculateBoundOffset:function(){var e={top:0};return this.notifyObserver("getBoundOffset",{callback:function(t){e=t}}),e},_skipDraggableRestriction:function(e){this.option("rtlEnabled")?e.maxLeftOffset=null:e.maxRightOffset=null,e.maxBottomOffset=null},_dragEndHandler:function(e){var t=this._getItemData(e.element),n=this._initialCoordinates;this.notifyObserver("updateAppointmentAfterDrag",{data:t,$appointment:e.element,coordinates:n})},_virtualAppointments:{},_processVirtualAppointment:function(e,t,n,i){var o=e.virtual,a=o.index;s.isDefined(this._virtualAppointments[a])||(this._virtualAppointments[a]={coordinates:{top:o.top,left:o.left},items:{data:[],colors:[]},isAllDay:o.isAllDay,buttonColor:i}),this._virtualAppointments[a].items.data.push(n),this._virtualAppointments[a].items.colors.push(i),t.remove()},_renderContentImpl:function(){this.callBase(),this._renderDropDownAppointments()},_renderDropDownAppointments:function(){var e=this.invoke("getCompactAppointmentGroupMaxWidth"),t=0,n=this;this.option("rtlEnabled")&&(t=e),i.each(this._virtualAppointments,function(i){var o=this._virtualAppointments[i],a=o.items,s=o.coordinates,r=o.isAllDay?this.option("allDayContainer"):this.element(),l=s.left;this.notifyObserver("renderDropDownAppointments",{$container:r,coordinates:{top:s.top,left:l+t},items:a,buttonColor:o.buttonColor,itemTemplate:this.option("itemTemplate"),buttonWidth:e,onAppointmentClick:function(e){var t=n._mapAppointmentFields(e);n._itemJQueryEventHandler(e.jQueryEvent,"onItemClick",t)}})}.bind(this))},_sortAppointmentsByStartDate:function(e){e.sort(function(e,t){var n=0,i=new Date(this.invoke("getField","startDate",e.settings||e)).getTime(),o=new Date(this.invoke("getField","startDate",t.settings||t)).getTime();return i<o&&(n=-1),i>o&&(n=1),n}.bind(this))},_processRecurrenceAppointment:function(e,t,n){var i=this.invoke("getField","recurrenceRule",e),o={parts:[],indexes:[]};if(i){for(var a=e.settings||e,s=new Date(this.invoke("getField","startDate",a)),r=new Date(this.invoke("getField","endDate",a)),l=r.getTime()-s.getTime(),u=this.invoke("getField","recurrenceException",e),h=this.invoke("getStartViewDate"),p=this.invoke("getEndViewDate"),f=d.getDatesByRecurrence({rule:i,exception:u,start:s,end:r,min:h,max:p}),m=e.settings?1:f.length,g=0;g<m;g++){var _=c({},e,!0);if(f[g]){var v=this._applyStartDateToObj(f[g],{});this._applyEndDateToObj(new Date(f[g].getTime()+l),v),_.settings=v}else _.settings=a;o.parts.push(_),n||this._processLongAppointment(_,o)}o.indexes.push(t)}return o},_processLongAppointment:function(e,t){var n=this.splitAppointmentByDay(e),i=n.length,o=this.invoke("getEndViewDate").getTime(),a=this.invoke("getStartViewDate").getTime(),s=this.invoke("getField","startDateTimeZone",e);if(t=t||{parts:[]},i>1){c(e,n[0]);for(var r=1;r<i;r++){var l=this.invoke("getField","startDate",n[r].settings).getTime();l=this.invoke("convertDateByTimezone",l,s),l<o&&l>a&&t.parts.push(n[r])}}return t},_reduceRecurrenceAppointments:function(e,t){i.each(e,function(e,n){t.splice(n-e,1)})},_combineAppointments:function(e,t){t.length&&i.merge(e,t),this._sortAppointmentsByStartDate(e)},_applyStartDateToObj:function(e,t){return this.invoke("setField","startDate",t,e),t},_applyEndDateToObj:function(e,t){return this.invoke("setField","endDate",t,e),t},updateDraggablesBoundOffsets:function(){this.option("allowDrag")&&this.element().find("."+y).each(function(e,t){var n=i(t),o=this._getItemData(n);this.invoke("isAllDay",o)||w.getInstance(n).option("boundOffset",this._calculateBoundOffset())}.bind(this))},moveAppointmentBack:function(){var e=this._$currentAppointment,t=this._initialSize,n=this._initialCoordinates;e&&(n&&(o.move(e,n),delete this._initialSize),t&&(e.outerWidth(t.width),e.outerHeight(t.height),delete this._initialCoordinates))},focus:function(){var e=this._$currentAppointment;e&&(this.option("focusedElement",e),this.option("focusedElement").focus())},splitAppointmentByDay:function(e){var t=e.settings||e,n=new Date(this.invoke("getField","startDate",t)),i=a.makeDate(n),o=a.makeDate(this.invoke("getField","endDate",t)),s=this.invoke("getField","startDateTimeZone",e),r=this.invoke("getField","endDateTimeZone",e),c=this.invoke("getEndViewDate"),d=this.invoke("getStartDayHour"),u=this.invoke("getEndDayHour"),h=this.invoke("appointmentTakesSeveralDays",e),p=[];for(i=this.invoke("convertDateByTimezone",i,s),o=this.invoke("convertDateByTimezone",o,r),i.getHours()<=u&&i.getHours()>=d&&!h&&(p.push(this._applyStartDateToObj(new Date(i),{appointmentData:e})),i.setDate(i.getDate()+1));h&&i.getTime()<o.getTime()-1&&i<c;){var f=new Date(i),m=new Date(i);this._checkStartDate(f,n,d),this._checkEndDate(m,o,u);var g=l.deepExtendArraySafe({},e,!0),_={};this._applyStartDateToObj(f,_),this._applyEndDateToObj(m,_),g.settings=_,p.push(g),i.setDate(i.getDate()+1),i.setHours(d)}return p},_checkStartDate:function(e,t,n){!a.sameDate(e,t)||e.getHours()<=n?(e.setHours(n),e.setMinutes(0)):(e.setHours(t.getHours()),e.setMinutes(t.getMinutes()))},_checkEndDate:function(e,t,n){!a.sameDate(e,t)||e.getHours()>n?(e.setHours(n),e.setMinutes(0)):(e.setHours(t.getHours()),e.setMinutes(t.getMinutes()))}}).include(h);u("dxSchedulerAppointments",E),e.exports=E},function(e,t,n){var i=n(9),o=n(70),a=n(471),s=n(11).extend,r=n(57),l=n(317),c=n(477),d=n(72),u=n(77),h=n(43),p=n(112),f=n(90),m=n(33),g=d.addNamespace(u.enter,"dxSchedulerAppointment"),_=d.addNamespace(u.leave,"dxSchedulerAppointment"),v="dx-scheduler-appointment-empty",w=40,x=15,y="dx-scheduler-all-day-appointment",b={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},C="dx-scheduler-appointment-recurrence",k="dx-scheduler-appointment-compact",I="dx-scheduler-appointment-reduced",S="dx-scheduler-appointment-reduced-icon",D={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},T=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{data:{},geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{},cellHeight:0,cellWidth:0})},_optionChanged:function(e){switch(e.name){case"data":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;default:this.callBase(e)}},_resizingRules:{horizontal:function(){var e=this.invoke("getCellWidth"),t=this.option("rtlEnabled"),n={head:t?"right":"left",body:"",tail:t?"left":"right"},i="left right",o=this.option("reduced");return o&&(i=n[o]),{handles:i,minHeight:0,minWidth:e,step:e}},vertical:function(){var e=this.invoke("getCellHeight");return{handles:"top bottom",minWidth:0,minHeight:e,step:e}}},_render:function(){this.callBase(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderCompactClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDirection(),this.element().data("dxAppointmentStartDate",this.option("startDate")),this.element().attr("title",this.invoke("getField","text",this.option("data"))),this.element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable()},_renderAppointmentGeometry:function(){var e=this.option("geometry"),t=this.element();o.move(t,{top:e.top,left:e.left}),t.css({width:e.width,height:e.height})},_renderEmptyClass:function(){var e=this.option("geometry");(e.width<w||e.height<x)&&this.element().addClass(v)},_renderReducedAppointment:function(){var e=this.option("reduced");e&&(this.element().toggleClass(I,!0).toggleClass(D[e],!0),this._renderAppointmentReducedIcon())},_renderAppointmentReducedIcon:function(){var e=i("
").addClass(S).appendTo(this.element()),t=this._getEndDate(),n=f.format("dxScheduler-editorLabelEndDate"),o=[n,": ",m.format(t,"monthAndDay"),", ",m.format(t,"year")].join("");e.off(g).on(g,function(){l.show({target:e,content:o})}).off(_).on(_,function(){l.hide()})},_getEndDate:function(){var e=this.invoke("getField","endDate",this.option("data"));return e?new Date(e):e},_renderAllDayClass:function(){this.element().toggleClass(y,!!this.option("allDay"))},_renderRecurrenceClass:function(){var e=this.invoke("getField","recurrenceRule",this.option("data"));a.getRecurrenceRule(e).isValid&&this.element().addClass(C)},_renderCompactClass:function(){this.element().toggleClass(k,!!this.option("isCompact"))},_renderDirection:function(){this.element().addClass(b[this.option("direction")])},_renderResizable:function(){if(this.option("allowResize")&&!this.option("isCompact")){var e=this._resizingRules[this.option("direction")].apply(this);e.stepPrecision="strict",this._createComponent(this.element(),p,s(e,this.option("resizableConfig")))}}}).include(c);r("dxSchedulerAppointment",T),e.exports=T},function(e,t,n){var i=n(9),o=n(25),a=n(14),s=n(496),r=n(498),l=n(499),c=n(500),d=n(501),u={horizontal:r,horizontalMonth:c,horizontalMonthLine:l,vertical:s,agenda:d},h=o.inherit({ctor:function(e,t){this.instance=e,t&&this.initRenderingStrategy(t)},getCellDimensions:function(e){this.instance._workSpace&&e.callback(this.instance._workSpace.getCellWidth(),this.instance._workSpace.getCellHeight(),this.instance._workSpace.getAllDayHeight())},initRenderingStrategy:function(e){var t=u[e];this._renderingStrategyInstance=new t(this.instance),this.renderingStrategy=e},createAppointmentsMap:function(e){var t=[];return this.getCellDimensions({callback:function(e,t,n){this.instance._cellWidth=e, this.instance._cellHeight=t,this.instance._allDayCellHeight=n}.bind(this)}),this._positionMap=this._renderingStrategyInstance.createTaskPositionMap(e),i.each(e,function(e,n){var o=this._positionMap[e];i.each(o,function(e,t){t.direction="vertical"!==this.renderingStrategy||t.allDay?"horizontal":"vertical"}.bind(this)),t.push({itemData:n,settings:o})}.bind(this)),t},_markDeletedAppointments:function(e,t){var n,o=[];return i.each(e,function(e,a){n=!1,i.each(t,function(e,t){a.itemData===t.itemData&&(n=!0)}.bind(this)),n||(a.needRemove=!0,a.needRepaint=!1,o.push(a))}.bind(this)),o},markRepaintedAppointments:function(e,t){var n,o,s="agenda"===this.renderingStrategy,r=this.instance.getUpdatedAppointment(),l=this._markDeletedAppointments(t,e),c=!1;return i.each(e,function(e,d){n=!1,o=!1,d.needRepaint=!1,i.each(t,function(e,t){d.itemData===t.itemData&&(t.needRepaint=!1,n=!0,r&&a.equalByValue(t.itemData,r)&&(t.needRepaint=!0,s&&(c=!0)),o=this._compareSettings(d,t,s),(o||c)&&(t.settings=d.settings,t.needRepaint=!0,t.needRemove=!1,s&&(l.push(t),c=!0)))}.bind(this)),n||(d.needRepaint=!0,d.needRemove=!1,t.push(d),s&&l.push(d))}.bind(this)),s&&l.length?l:t},_compareSettings:function(e,t,n){var i=e.settings.length,o=t.settings.length,s=!1;if(i===o)for(var r=0;r<i;r++){var l=e.settings[r],c=t.settings[r];if(!n&&c&&(c.sortedIndex=l.sortedIndex),!a.equalByValue(l,c)){s=!0;break}}else s=!0;return s},getRenderingStrategyInstance:function(){return this._renderingStrategyInstance}});e.exports=h},function(e,t,n){var i=n(497),o=n(11).extend,a=n(64),s=25,r=i.inherit({getDeltaTime:function(e,t,n){var i=0;if(this.isAllDay(n))i=24*this._getDeltaWidth(e,t)*60*6e4;else{var o=e.height-t.height;o<0&&(o=this._correctOnePxGap(o)),i=6e4*Math.round(o/this._defaultHeight*this.instance.getAppointmentDurationInMinutes())}return i},getAppointmentGeometry:function(e){var t,n=e.allDay;return t=n?this._getAllDayAppointmentGeometry(e):this._getSimpleAppointmentGeometry(e),this.callBase(t)},_getItemPosition:function(e){var t=this.isAllDay(e);if(t)return this.callBase(e);for(var n=this._getAppointmentCoordinates(e),i=[],a=0;a<n.length;a++){var s=this.calculateAppointmentHeight(e,n[a]),r=this.calculateAppointmentWidth(e,n[a]),l=s,c=null,d=[],u=n[a].vMax;this._isMultiDayAppointment(n[a],s)&&(c="head",l=this._reduceMultiDayAppointment(s,{top:n[a].top,bottom:u}),d=this._getAppointmentParts({sourceAppointmentHeight:s,reducedHeight:l,width:r},n[a])),o(n[a],{height:l,width:r,allDay:t,appointmentReduced:c}),i=this._getAppointmentPartsPosition(d,n[a],i)}return i},_isMultiDayAppointment:function(e,t){var n=e.vMax,i=t>n-e.top;return i},_reduceMultiDayAppointment:function(e,t){return e=t.bottom-Math.floor(t.top)},_getAppointmentParts:function(e,t){var n=e.sourceAppointmentHeight-e.reducedHeight,i=e.width,a=[],s=0,r=t.left+this._defaultWidth;return n&&a.push(o(!0,{},t,{top:s,left:r,height:n,width:i,appointmentReduced:"tail",rowIndex:++t.rowIndex})),a},_correctOnePxGap:function(e){return Math.abs(e)%this._defaultHeight&&e--,e},_getMinuteHeight:function(){return this._defaultHeight/this.instance.getAppointmentDurationInMinutes()},_getCompactLeftCoordinate:function(e,t){var n=1,i=this._defaultWidth||this.getAppointmentMinSize();return e+(n+i)*t},_checkLongCompactAppointment:function(e,t){return e.allDay&&this._splitLongCompactAppointment(e,t),t},_getAllDayAppointmentGeometry:function(e){var t=this._allDayHeight||this.getAppointmentMinSize(),n=e.index,i=e.count,o=t/(i>3?3:i),a=e.width,s=e.top+n*o,r=e.left,l=this.getCompactAppointmentDefaultSize(),c=this.getCompactAppointmentDefaultOffset();return this.instance._allowResizing()&&this.instance._allowAllDayResizing()||(e.skipResizing=!0),i>2&&(e.isCompact?(s=e.top+c,r=e.left+(n-2)*(l+c)+c,o=l,a=l,this._markAppointmentAsVirtual(e,!0)):s+=o),{height:o,width:a,top:s,left:r}},_getSimpleAppointmentGeometry:function(e){var t=this._getAppointmentMaxWidth()/e.count,n=e.height,i=e.top,o=e.left+e.index*t;return{height:n,width:t,top:i,left:o}},isAllDay:function(e){var t=this.instance.fire("getField","allDay",e);return!!t||this.instance.appointmentTakesAllDay(e)},_getAppointmentMaxWidth:function(){return this._defaultWidth-s||this.getAppointmentMinSize()},calculateAppointmentWidth:function(e,t){if(!this.isAllDay(e))return 0;var n=new Date(this._startDate(e,!1,t)),i=this._endDate(e,t),o=this._defaultWidth||this.getAppointmentMinSize();n=a.trimTime(n);var s=(i.getTime()-n.getTime())/36e5,r=Math.ceil(s/24)*o;return r},calculateAppointmentHeight:function(e,t){var n=this._endDate(e,t),i=this._startDate(e,!1,t),o=this.instance.fire("getField","allDay",e);if(this.isAllDay(e))return 0;var a=this._getAppointmentDurationInMs(i,n,o)/6e4,s=this.getAppointmentMinSize(),r=Math.round(a*this._getMinuteHeight());return r<s&&(r=s),r},_sortCondition:function(e,t){var n=e.allDay-t.allDay,i=n?n:this._rowCondition(e,t);return this._fixUnstableSorting(i,e,t)}});e.exports=r},function(e,t,n){var i=n(14).noop,o=n(25),a=n(11).extend,s=n(22),r=n(64),l=o.abstract,c=2,d=15,u=3,h=o.inherit({ctor:function(e){this.instance=e},getAppointmentMinSize:function(){return c},getDeltaTime:l,getAppointmentGeometry:function(e){return e},createTaskPositionMap:function(e){var t=e.length;if(t){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<t;i++){var o=this._getItemPosition(e[i]);this._isRtl()&&(o=this._correctRtlCoordinates(o)),n.push(o)}var a=this._getSortedPositions(n),s=this._getResultPositions(a);return this._getExtendedPositionMap(n,s)}},_getDeltaWidth:function(e,t){var n=this._defaultWidth||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)},_correctRtlCoordinates:function(e){var t=e[0].width||this._getAppointmentMaxWidth();return e[0].appointmentReduced||(e[0].left-=t),this._correctRtlCoordinatesParts(e,t),e},_correctRtlCoordinatesParts:i,_getAppointmentMaxWidth:function(){return this._defaultWidth},_getItemPosition:function(e){for(var t=this._getAppointmentCoordinates(e),n=this.isAllDay(e),i=[],o=new Date(this.instance.fire("getField","startDate",e)),s=0;s<t.length;s++){var r=this.calculateAppointmentHeight(e,t[s]),l=this.calculateAppointmentWidth(e,t[s]),c=l,d=null,u=[],h=t[s].rowIndex,p=t[s].cellIndex;if(this._needVerifyItemSize()||n){var f=t[s].hMax;this.isAppointmentGreaterThan(f,{left:t[s].left,width:l})&&(d="head",h=t[s].rowIndex,p=t[s].cellIndex,c=this._reduceMultiWeekAppointment(l,{left:t[s].left,right:f}),u=this._getAppointmentParts({sourceAppointmentWidth:l,reducedWidth:c,height:r},t[s],o,s),this._isRtl()&&(t[s].left=f))}a(t[s],{height:r,width:c,allDay:n,rowIndex:h,cellIndex:p,appointmentReduced:d}),i=this._getAppointmentPartsPosition(u,t[s],i)}return i},_getAppointmentPartsPosition:function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n},_getAppointmentCoordinates:function(e){var t=[{top:0,left:0}];return this.instance.fire("needCoordinates",{startDate:this._startDate(e),originalStartDate:this._startDate(e,!0),appointmentData:e,callback:function(e){t=e}}),t},_needVerifyItemSize:function(){return!1},_isRtl:function(){return this.instance.option("rtlEnabled")},_getAppointmentParts:function(){return[]},_getCompactAppointmentParts:function(e){var t=this._defaultWidth||this.getAppointmentMinSize();return Math.round(e/t)},_reduceMultiWeekAppointment:function(e,t){return e=this._isRtl()?Math.floor(t.left-t.right):t.right-Math.floor(t.left)},calculateAppointmentHeight:function(){return 0},calculateAppointmentWidth:function(){return 0},isAppointmentGreaterThan:function(e,t){var n=t.left+t.width-e;return this._isRtl()&&(n=e+t.width-t.left),n>this._defaultWidth/2},isAllDay:function(){return!1},_getSortedPositions:function(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)for(var a=0,s=e[i].length;a<s;a++){var r=e[i][a],l={i:i,j:a,top:r.top,left:r.left,isStart:!0,allDay:r.allDay,__tmpIndex:n};n++;var c={i:i,j:a,top:r.top+r.height,left:r.left+r.width,isStart:!1,allDay:r.allDay,__tmpIndex:n};t.push(l,c),n++}return t.sort(function(e,t){return this._sortCondition(e,t)}.bind(this)),t},_fixUnstableSorting:function(e,t,n){if(0===e){if(t.__tmpIndex<n.__tmpIndex)return-1;if(t.__tmpIndex>n.__tmpIndex)return 1}return e},_sortCondition:l,_rowCondition:function(e,t){var n=this._normalizeCondition(e.left,t.left),i=this._normalizeCondition(e.top,t.top);return n?n:i?i:e.isStart-t.isStart},_columnCondition:function(e,t){var n=this._normalizeCondition(e.left,t.left),i=this._normalizeCondition(e.top,t.top);return i?i:n?n:e.isStart-t.isStart},_normalizeCondition:function(e,t){var n=e-t;return Math.abs(n)>1.001?n:0},_getResultPositions:function(e){for(var t,n=[],i=[],o=[],a=[],s=0,r=0,l=0;l<e.length;l++){var c,d=e[l];if(d.isStart){for(t=void 0,c=0;c<i.length;c++)if(!i[c]){t=c,i[c]=!0;break}if(void 0===t)for(t=i.length,i.push(!0),c=0;c<n.length;c++)n[c].count++;n.push({index:t,count:i.length,i:d.i,j:d.j,sortedIndex:r++}),s<i.length&&(s=i.length)}else{var u=this._findIndexByKey(n,"i","j",d.i,d.j),h=n[u];if(n.splice(u,1),i[h.index]=!1,a.push(h),!n.length){i=[];for(var p=0;p<a.length;p++)a[p].count=s;a=[],s=0}o.push(h)}}return o.sort(function(e,t){var n=e.j-t.j,i=e.i-t.i;return i?i:n})},_findIndexByKey:function(e,t,n,i,o){for(var a=0,s=0,r=e.length;s<r;s++)if(e[s][t]===i&&e[s][n]===o){a=s;break}return a},_getExtendedPositionMap:function(e,t){for(var n=0,i=[],o=0,a=e.length;o<a;o++){for(var s=[],r=0,l=e[o].length;r<l;r++)e[o][r].index=t[n].index,e[o][r].sortedIndex=t[n].sortedIndex,e[o][r].count=t[n++].count,s.push(e[o][r]),this._checkLongCompactAppointment(e[o][r],s);i.push(s)}return i},_checkLongCompactAppointment:i,_splitLongCompactAppointment:function(e,t){var n=0;if(e.index>1){e.isCompact=!0,n=this._getCompactAppointmentParts(e.width);for(var i=1;i<n;i++){var o=a(!0,{},e);o.left=this._getCompactLeftCoordinate(e.left,i),o.cellIndex=o.cellIndex+i,o.sortedIndex=null,t.push(o)}}return t},_startDate:function(e,t,n){var i=n&&n.startDate,o=this.instance._getStartDate(e,t),a=this.instance.fire("getField","text",e);if((i&&o>i||!i)&&(i=o),isNaN(i.getTime()))throw s.Error("E1032",a);return i},_endDate:function(e,t){var n=this.instance._getEndDate(e),i=this._startDate(e,!0),o=this._startDate(e,!1,t);if(n=this._checkWrongEndDate(e,i,n),o.getTime()>=n.getTime()){var a=t?t.startDate:i,s=n.getTime()-i.getTime();if(n=new Date((o.getTime()>=a.getTime()?a.getTime():o.getTime())+s),!r.sameDate(i,n)&&a.getTime()<o.getTime()){var l=r.trimTime(n).getTime()-a.getTime(),c=s-l||s;n=new Date(r.trimTime(o).getTime()+c)}}var d=r.roundToHour(this.instance.fire("getEndViewDate"));return n>d&&(n=d),n},_checkWrongEndDate:function(e,t,n){return(!n||t.getTime()>=n.getTime())&&(n=new Date(t.getTime()+6e4*this.instance.getAppointmentDurationInMinutes()),this.instance.fire("setField","endDate",e,n)),n},_getAppointmentDurationInMs:function(e,t,n){var i;return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n,callback:function(e){i=e}}),i},_getMaxNeighborAppointmentCount:function(){var e=this.getCompactAppointmentDefaultSize()+this.getCompactAppointmentDefaultOffset();return Math.floor(this.getCompactAppointmentGroupMaxWidth()/e)},_markAppointmentAsVirtual:function(e,t){var n=2;e.count-n>this._getMaxNeighborAppointmentCount()&&(e.virtual={top:e.top,left:e.left,index:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex,isAllDay:t})},getCompactAppointmentGroupMaxWidth:function(){var e=75;return e*this.getDefaultCellWidth()/100},getDefaultCellWidth:function(){return this._defaultWidth},getCompactAppointmentDefaultSize:function(){return d},getCompactAppointmentDefaultOffset:function(){return u},getAppointmentDataCalculator:i});e.exports=h},function(e,t,n){var i=n(497),o=n(64),a=100,s=20,r=o.dateToMilliseconds,l=i.inherit({_needVerifyItemSize:function(){return!0},calculateAppointmentWidth:function(e,t){var n,i=this._defaultWidth||this.getAppointmentMinSize(),o=this.instance.fire("getField","allDay",e),a=this.getAppointmentMinSize(),s=this._startDate(e,!1,t),l=this._endDate(e,t),c=this._getAppointmentDurationInMs(s,l,o),d=this.instance.getAppointmentDurationInMinutes()*r("minute"),u=c/d;return n=u*i,n<a&&(n=a),n},getAppointmentGeometry:function(e){var t=this._customizeAppointmentGeometry(e);return this.callBase(t)},_customizeAppointmentGeometry:function(e){var t=(this._defaultHeight||this.getAppointmentMinSize())-s,n=t/e.count;n>a&&(n=a);var i=e.top+e.index*n;return{height:n,width:e.width,top:i,left:e.left}},_correctRtlCoordinatesParts:function(e,t){for(var n=1;n<e.length;n++)e[n].left-=t;return e},_sortCondition:function(e,t){var n=this._columnCondition(e,t);return this._fixUnstableSorting(n,e,t)},_getMaxAppointmentWidth:function(e){var t;return this.instance.fire("getMaxAppointmentWidth",{date:e,callback:function(e){t=e}}),t},getDeltaTime:function(e,t){var n=0,i=e.width-t.width;return n=6e4*Math.round(i/this._defaultWidth*this.instance.getAppointmentDurationInMinutes())},isAllDay:function(e){return this.instance.fire("getField","allDay",e)}});e.exports=l},function(e,t,n){var i=n(498),o=n(64),a=n(160),s=i.inherit({calculateAppointmentWidth:function(e,t){var n=new Date(this._startDate(e,!1,t)),i=new Date(this._endDate(e,t)),a=this._defaultWidth||this.getAppointmentMinSize();n=o.trimTime(n);var s=(i.getTime()-n.getTime())/36e5;return Math.ceil(s/24)*a},getDeltaTime:function(e,t){var n=this._getDeltaWidth(e,t);return 864e5*n},isAllDay:function(){return!1},createTaskPositionMap:function(e,t){return t||this.instance.getAppointmentsInstance()._sortAppointmentsByStartDate(e),this.callBase(e)},_getSortedPositions:function(e,t){var n=this.callBase(e);return t||(n=a(n).sortBy("top").thenBy("left").thenBy("i").toArray()),n}});e.exports=s},function(e,t,n){var i=n(14).noop,o=n(11).extend,a=n(499),s=.6,r=a.inherit({_getAppointmentParts:function(e,t,n,i){for(var a=e.sourceAppointmentWidth-e.reducedWidth,s=e.height,r=this._getFullWeekAppointmentWidth(i),l=this._getMaxAppointmentWidth(n),c=Math.ceil(a/r)-1,d=Math.floor(a%r)||r,u=[],h=e.reducedWidth+d,p=t.top+this._defaultHeight,f=this._calculateMultiWeekAppointmentLeftOffset(t.hMax,r),m=0;m<c&&!(h>l);m++)u.push(o(!0,{},t,{top:p,left:f,height:s,width:r,appointmentReduced:"body",rowIndex:++t.rowIndex,cellIndex:0})),p+=this._defaultHeight,h+=r;return d&&(this._isRtl()&&(f+=r-d),u.push(o(!0,{},t,{top:p,left:f,height:s,width:d,appointmentReduced:"tail",rowIndex:++t.rowIndex,cellIndex:0}))),u},_calculateMultiWeekAppointmentLeftOffset:function(e,t){return this._isRtl()?e:e-t},_correctRtlCoordinatesParts:i,_getFullWeekAppointmentWidth:function(e){return this.instance.fire("getFullWeekAppointmentWidth",{groupIndex:e,callback:function(e){this._maxFullWeekAppointmentWidth=e}.bind(this)}),this._maxFullWeekAppointmentWidth},_getCompactLeftCoordinate:function(e,t){var n=this._defaultWidth||this.getAppointmentMinSize();return e+n*t},_checkLongCompactAppointment:function(e,t){return this._splitLongCompactAppointment(e,t),t},_customizeAppointmentGeometry:function(e){var t,n,i=this._defaultHeight||this.getAppointmentMinSize(),o=e.index,a=s*i/2,r=(1-s)*i+e.top+o*a,l=e.width,c=e.left;return e.isCompact&&(t=this.getCompactAppointmentDefaultSize(),n=this.getCompactAppointmentDefaultOffset(),r=e.top+n,c=e.left+(o-2)*(t+n)+n,a=t,l=t,this._markAppointmentAsVirtual(e)),{height:a,width:l,top:r,left:c}},createTaskPositionMap:function(e){return this.callBase(e,!0)},_getSortedPositions:function(e){return this.callBase(e,!0)}});e.exports=r},function(e,t,n){var i=n(9),o=n(14).noop,a=n(64),s=n(497),r=s.inherit({ctor:function(e){this.instance=e},getAppointmentMinSize:o,getDeltaTime:o,getAppointmentGeometry:function(e){return e},createTaskPositionMap:function(e){if(e.length){var t=this.instance.fire("getAgendaVerticalStepHeight"),n=this.instance.fire("groupAppointmentsByResources",e),o=[];i.each(n,function(e,t){var n=[],a=[];i.each(t,function(e,t){var i=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e),o=null;i.indexes.length||(o={parts:[]},o=this.instance.getAppointmentsInstance()._processLongAppointment(t),n=n.concat(o.parts)),n=n.concat(i.parts),a=a.concat(i.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(a,t),this.instance.getAppointmentsInstance()._combineAppointments(t,n),o=o.concat(t)}.bind(this)),Array.prototype.splice.apply(e,[0,e.length].concat(o))}var a=[],s=0;return e.forEach(function(e,i){a.push([{height:t,width:"100%",sortedIndex:s++,groupIndex:this._calculateGroupIndex(i,n),appointmentReduced:this._calculateIfApptReduced(e)}])}.bind(this)),a},_calculateIfApptReduced:function(e){var t=!!this.instance.fire("getField","recurrenceRule",e),n=!1;return this.instance.fire("appointmentTakesSeveralDays",e)&&!t&&(n="head"),n},_calculateGroupIndex:function(e,t){var n,i=0;for(var o in t){var a=t[o].length;if(e>=i&&e<i+a){n=Number(o);break}i+=a}return n},_getDeltaWidth:o,_correctRtlCoordinatesParts:o,_getAppointmentMaxWidth:function(){return this._defaultWidth},_needVerifyItemSize:function(){return!1},_isRtl:function(){return this.instance.option("rtlEnabled")},_getAppointmentParts:o,_reduceMultiWeekAppointment:o,calculateAppointmentHeight:function(){return 0},calculateAppointmentWidth:function(){return 0},isAppointmentGreaterThan:o,isAllDay:function(){return!1},_sortCondition:o,_rowCondition:o,_columnCondition:o,_findIndexByKey:o,_getMaxNeighborAppointmentCount:o,_markAppointmentAsVirtual:o,getCompactAppointmentGroupMaxWidth:o,getDefaultCellWidth:function(){return this._defaultWidth},getCompactAppointmentDefaultSize:o,getCompactAppointmentDefaultOffset:o,calculateRows:function(e,t,n,o){this._rows=[];var s={indexes:[],parts:[]},r=this.instance.fire("groupAppointmentsByResources",e);return n=a.trimTime(new Date(n)),i.each(r,function(e,a){var r=[];if(!a.length)return this._rows.push([]),!0;i.each(a,function(e,t){var n=this.instance.fire("getField","startDate",t),i=this.instance.fire("getField","endDate",t);this._checkWrongEndDate(t,n,i),o&&delete t.settings;var a=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e,!1);s.parts=s.parts.concat(a.parts),s.indexes=s.indexes.concat(a.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(s.indexes,a),i.merge(a,s.parts);for(var l=a.length,c=0;c<t;c++){var d=new Date(n);d.setMilliseconds(d.getMilliseconds()+864e5*c),void 0===r[c]&&(r[c]=0);for(var u=0;u<l;u++){var h=a[u].settings||a[u],p=this.instance.fire("appointmentTakesSeveralDays",a[u]);(this.instance.fire("dayHasAppointment",d,h,!0)||p&&this.instance.fire("dayHasAppointment",d,a[u],!0))&&(r[c]+=1)}}this._rows.push(r)}.bind(this)),this._rows},_iterateRow:function(e,t,n){for(var i=0;i<e.length;i++)if(t.counter=t.counter+e[i],t.counter>=n){t.indexInRow=i;break}},getDateByIndex:function(e,t,n){var i={counter:0,indexInRow:0};e++;for(var o=0;o<t.length&&(this._iterateRow(t[o],i,e),!i.indexInRow);o++);return new Date(new Date(n).setDate(n.getDate()+i.indexInRow))},getAppointmentDataCalculator:function(){return function(e,t){var n=e.index(),i=this.instance.getStartViewDate(),o=this.getDateByIndex(n,this._rows,i),a=new Date(t);return{startDate:new Date(o.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))}}.bind(this)}});e.exports=r},function(e,t,n){var i=n(9),o=n(25),a=n(70),s=n(14),r=n(202),l=n(282),c="dx-scheduler-dropdown-appointments",d="dx-scheduler-dropdown-appointments-content",u="dx-scheduler-dropdown-appointment",h="dx-scheduler-dropdown-appointment-title",p="dx-scheduler-dropdown-appointment-date",f="dx-scheduler-dropdown-appointment-remove-button",m="dx-scheduler-dropdown-appointment-edit-button",g="dx-scheduler-dropdown-appointment-info-block",_="dx-scheduler-dropdown-appointment-buttons-block",v=o.inherit({render:function(e,t){var n=e.coordinates,o=e.items;this.instance=t;var s=i("
").addClass(c).appendTo(e.$container);return this._createDropDownMenu({$element:s,items:o,itemTemplate:e.itemTemplate,buttonWidth:e.buttonWidth,onAppointmentClick:e.onAppointmentClick}),this._paintMenuButton(s,e.buttonColor,o),this._applyInnerShadow(s,e.buttonWidth),a.move(s,{top:n.top,left:n.left}),s},repaintExisting:function(e){var t=["",c,"dx-dropdownmenu"].join(".");e.find(t).each(function(){l.getInstance(this).repaint()})},_paintMenuButton:function(e,t,n){var i,o=!0,a=n.colors,s=a.length;if(s){i=a[0];for(var r=1;r<s;r++){if(i!==a[r]){o=!1;break}i=a[r]}}t&&o&&e.css("background-color",t)},_createButtonTemplate:function(e){return i("<div />").html([i("<span />").text(e),i("<span />").text("...")]).addClass(d)},_applyInnerShadow:function(e){e.css("box-shadow","inset "+e.outerWidth()+"px 0 0 0 rgba(0, 0, 0, 0.3)")},_createDropDownMenu:function(e){var t,n=e.$element,i=e.items,o=e.onAppointmentClick;if(!l.getInstance(n)){t=function(e,t,n){this._createDropDownAppointmentTemplate(e,n,i.colors[t])}.bind(this);var a=this.instance;this.instance._createComponent(n,l,{buttonIcon:null,usePopover:!0,popupHeight:200,items:i.data,buttonTemplate:this._createButtonTemplate(i.data.length),buttonWidth:e.buttonWidth,onItemClick:function(e){e.component.open(),s.isFunction(o)&&o.call(a._appointments,e)},activeStateEnabled:!1,focusStateEnabled:!1,itemTemplate:t})}},_createDropDownAppointmentTemplate:function(e,t,n){var o,a,s,r="",l=[],c="left",d=this.instance.fire("getField","text",e);t.addClass(u),this.instance.option("rtlEnabled")&&(c="right"),n&&t.css("border-"+c+"-color",n);var f=this.instance.fire("getField","startDate",e),m=this.instance.fire("getField","endDate",e);this.instance.fire("formatDates",{startDate:f,endDate:m,formatType:"DATETIME",callback:function(e){r=e}}),s=i("<div />").addClass(g),o=i("
").addClass(h).text(d),a=i("
").addClass(p).text(r),s.append([o,a]),l.push(s),l.push(this._createButtons(e)),t.append(l)},_createButtons:function(e){var t=this.instance.option("editing"),n=!1,o=!1;if(!t)return"";t===!0&&(n=!0,o=!0),s.isObject(t)&&(n=t.allowDeleting,o=t.allowUpdating);var a=i("<div />").addClass(_),l=i("
").addClass(f),c=i("
").addClass(m);return n&&(a.append(l),this.instance._createComponent(l,r,{icon:"trash",height:25,width:25,onClick:function(t){t.jQueryEvent.stopPropagation(),this.instance.deleteAppointment(e)}.bind(this)})),o&&(a.append(c),this.instance._createComponent(c,r,{icon:"edit",height:25,width:25,onClick:function(t){t.jQueryEvent.stopPropagation(),this.instance.fire("showEditAppointmentPopup",{data:e})}.bind(this)})),a}});e.exports=v},function(e,t,n){var i=n(9),o=n(55),a=n(247),s=null,r=function(e){return new a(i("
").appendTo(e&&e.container||o.value()),e)},l=function(){s&&(s.element().remove(),s=null)};t.show=function(e){return l(),s=r(e),s.show()},t.hide=function(){return s?s.hide().done(l).promise():i.Deferred().resolve()}},function(e,t,n){var i=n(286),o=n(260),a=n(90),s=n(76);n(505),n(506),n(321),n(320);var r="dx-scheduler-recurrence-rule-item",l={_appointmentForm:{},_validateAppointmentFormDate:function(e,t,n){var i=!!t;i||e.option("value",n)},_getAllDayStartDate:function(e){return e.setHours(0),e.setMinutes(0),e},_getAllDayEndDate:function(e){var t=new Date(e);return t.setDate(e.getDate()+1),t},create:function(e,t,n,o){return this._appointmentForm=e(t,i,{items:this._editors,readOnly:n,showValidationSummary:!0,scrollingEnabled:!0,formData:o}),this._appointmentForm},prepareAppointmentFormEditors:function(e,t,n){var i=this;return this._editors=[{dataField:t.textExpr,editorType:"dxTextBox",label:{text:a.format("dxScheduler-editorLabelTitle")}},{itemType:"empty"},{dataField:t.allDayExpr,editorType:"dxSwitch",label:{text:a.format("dxScheduler-allDay")},editorOptions:{onValueChanged:function(e){var a=e.value,s=i._appointmentForm.getEditor(t.startDateExpr),r=i._appointmentForm.getEditor(t.endDateExpr);if(s&&r){if(s.option("type",a?"date":"datetime"),r.option("type",a?"date":"datetime"),!s.option("value"))return;var l=o.deserializeDate(s.option("value"));a?(s.option("value",i._getAllDayStartDate(l)),r.option("value",i._getAllDayEndDate(l))):(l.setHours(n.option("startDayHour")),s.option("value",l),r.option("value",n._workSpace.calculateEndDate(o.deserializeDate(s.option("value")))))}}}},{dataField:t.startDateExpr,editorType:"dxDateBox",label:{text:a.format("dxScheduler-editorLabelStartDate")},validationRules:[{type:"required"}],editorOptions:{type:e?"date":"datetime",width:"100%",calendarOptions:{firstDayOfWeek:n.option("firstDayOfWeek")},onValueChanged:function(e){i._validateAppointmentFormDate(e.component,e.value,e.previousValue);var n=o.deserializeDate(e.value),a=o.deserializeDate(e.previousValue),s=i._appointmentForm.getEditor(t.endDateExpr),r=o.deserializeDate(s.option("value"));if(r<n){var l=r.getTime()-a.getTime();s.option("value",new Date(n.getTime()+l))}}}},{dataField:t.startDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",label:{text:" ",showColon:!1},editorOptions:{observer:n},visible:!1},{dataField:t.endDateExpr,editorType:"dxDateBox",label:{text:a.format("dxScheduler-editorLabelEndDate")},validationRules:[{type:"required"}],editorOptions:{type:e?"date":"datetime",width:"100%",calendarOptions:{firstDayOfWeek:n.option("firstDayOfWeek")},onValueChanged:function(e){i._validateAppointmentFormDate(e.component,e.value,e.previousValue);var n=o.deserializeDate(e.value),a=o.deserializeDate(e.previousValue),s=i._appointmentForm.getEditor(t.startDateExpr),r=o.deserializeDate(s.option("value"));if(n&&r>n){var l=a?a.getTime()-r.getTime():0;s.option("value",new Date(n.getTime()-l))}}}},{dataField:t.endDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",label:{text:" ",showColon:!1},editorOptions:{observer:n},visible:!1},{itemType:"empty"},{dataField:t.descriptionExpr,editorType:"dxTextArea",label:{text:a.format("dxScheduler-editorLabelDescription")}},{dataField:t.recurrenceRuleExpr,editorType:"dxSchedulerRecurrenceEditor",editorOptions:{observer:n,firstDayOfWeek:n.option("firstDayOfWeek"),onContentReady:function(e){var t=e.element.closest(".dx-field-item"),n=t.find(".dx-field-item-label");n.off(s.name).on(s.name,function(){e.component.toggle()})}},cssClass:r,label:{text:a.format("dxScheduler-editorLabelRecurrence")}}],t.recurrenceRuleExpr||this._editors.splice(9,1),this._editors},concatResources:function(e){this._editors=this._editors.concat(e)}};e.exports=l},function(e,t,n){var i=n(9),o=n(25),a=n(152),s=n(57),r=n(471),l=n(62),c=n(14),d=n(11).extend,u=n(26).inArray,h=n(107),p=n(249),f=n(309),m=n(319),g=n(264),_=n(318),v=n(268),w=n(477),x=n(90),y=n(33),b=n(64),C=n(76),k="dx-recurrence-editor",I="-label",S="dx-recurrence-editor-container",D="dx-recurrence-switch",T="dx-recurrence-switch-repeat-end",E="dx-recurrence-radiogroup-freq",A="dx-recurrence-numberbox-interval",B="dx-recurrence-interval-field",M="dx-recurrence-repeat-end",R="dx-recurrence-repeat-end-field",O="dx-recurrence-repeat-end-container",P="dx-recurrence-radiogroup-repeat-type",V="dx-recurrence-numberbox-repeat-count",F="dx-recurrence-datebox-until-date",H="dx-recurrence-repeat-on",L="dx-recurrence-repeat-on-week",z="dx-recurrence-checkbox-day-of-week",N="dx-recurrence-repeat-on-month",W="dx-recurrence-numberbox-day-of-month",$="dx-recurrence-repeat-on-year",q="dx-recurrence-selectbox-month-of-year",G="dx-field",j="dx-field-label",K="dx-field-value",U=[{text:function(){return x.format("dxScheduler-recurrenceDaily")},value:"DAILY"},{text:function(){return x.format("dxScheduler-recurrenceWeekly")},value:"WEEKLY"},{text:function(){return x.format("dxScheduler-recurrenceMonthly")},value:"MONTHLY"},{text:function(){return x.format("dxScheduler-recurrenceYearly")},value:"YEARLY"}],Q=[{text:function(){return x.format("dxScheduler-recurrenceRepeatCount")},value:"count"},{text:function(){return x.format("dxScheduler-recurrenceRepeatOnDate")},value:"until"}],Y=["SU","MO","TU","WE","TH","FR","SA"],Z=o.inherit({ctor:function(e){this._recurrenceRule=r.getRecurrenceRule(e).rule},makeRules:function(e){var t=this;t._recurrenceRule=r.getRecurrenceRule(e).rule},makeRule:function(e,t){return t?void(c.isDefined(e)&&("until"===e&&delete this._recurrenceRule.count,"count"===e&&delete this._recurrenceRule.until,this._recurrenceRule[e]=t)):void delete this._recurrenceRule[e]},repeatableRule:function(){var e=this._recurrenceRule;return"count"in e?"count":"until"in e?"until":null},recurrenceString:function(){return r.getRecurrenceString(this._recurrenceRule)},rules:function(){return this._recurrenceRule},daysFromByDayRule:function(){return r.daysFromByDayRule(this._recurrenceRule)}}),X=h.inherit({_getDefaultOptions:function(){return d(this.callBase(),{value:null,onValueChanged:null,startDate:new Date,firstDayOfWeek:void 0})},_getFirstDayOfWeek:function(){return this.option("firstDayOfWeek")||y.firstDayOfWeekIndex()},_createComponent:function(e,t,n){return n=n||{},this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this._recurrenceRule=new Z(this.option("value"))},_render:function(){this.callBase(),this.element().addClass(k),this._renderSwitch(),this._$container=i("
").addClass(S).appendTo(this.element()),this._renderEditors(),this._renderContainerVisibility(!!this.option("value"))},_renderSwitch:function(){var e=i("
").addClass(D).appendTo(this.element());this._switchEditor=this._createComponent(e,m,{value:!!this.option("value"),onValueChanged:this._switchValueChangeHandler.bind(this)})},_switchValueChangeHandler:function(e){var t=e.value;this._renderContainerVisibility(t),!this.option("value")&&t?this._handleDefaults():t||(this._recurrenceRule.makeRules(""),this.option("value",""))},_renderContainerVisibility:function(e){e?(this._$container.show(),this.notifyObserver("recurrenceEditorVisibilityChanged",{visible:!0}),l.triggerShownEvent(this._$container)):(this._$container.hide(),this.notifyObserver("recurrenceEditorVisibilityChanged",{visible:!1}))},_handleDefaults:function(){this._recurrenceRule.makeRule("freq","DAILY"),this._changeEditorValue()},_changeEditorValue:function(){this.option("value",this._recurrenceRule.recurrenceString()||"")},_renderEditors:function(){this._renderFreqEditor(),this._renderIntervalEditor(),this._renderRepeatOnEditor(),this._renderRepeatEndSwitch(),this._renderRepeatEndEditor(),this._renderRepeatEndVisibility(!!this._recurrenceRule.repeatableRule())},_renderFreqEditor:function(){var e=this._recurrenceRule.rules().freq||"DAILY",t=i("
").addClass(E).addClass(K);this._freqEditor=this._createComponent(t,f,{field:"freq",items:U,value:e,valueExpr:"value",displayExpr:"text",layout:"horizontal",onValueChanged:this._valueChangedHandler.bind(this)});var n=i("
").addClass(G).append(t);this._$container.append(n)},_renderIntervalEditor:function(){var e=this._recurrenceRule.rules().freq||"DAILY",t=i("
").addClass(A).addClass(K),n=i("
").text(x.format("dxScheduler-recurrenceEvery")+":").addClass(A+I).addClass(j);this._$intervalTypeLabel=i("
").text(x.format("dxScheduler-recurrenceRepeat"+e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())).addClass(P+I);var o=this._recurrenceRule.rules().interval||1;this._intervalEditor=this._createComponent(t,g,{field:"interval",min:1,value:o,showSpinButtons:!0,useLargeSpinButtons:!1,onValueChanged:this._valueChangedHandler.bind(this)});var a=i("
").addClass(G).addClass(B).append(n,t,this._$intervalTypeLabel);this._$container.append(a),this._setAriaDescribedBy(this._intervalEditor,n)},_renderRepeatOnEditor:function(){var e=this._recurrenceRule.rules().freq;return c.isDefined(this._$repeatOnEditor)||(this._$repeatOnEditor=i("
").addClass(H).addClass(G).appendTo(this._$container)),e&&"DAILY"!==e?(c.isDefined(this._$repeatOnLabel)||this._renderRepeatOnLabel(this._$repeatOnEditor),"WEEKLY"!==e||this._$repeatOnWeek?"MONTHLY"!==e||this._$repeatOnMonth?"YEARLY"!==e||this._$repeatOnYear?void 0:void this._renderRepeatOnYearEditor():void this._renderRepeatOnMonthEditor():void this._renderRepeatOnWeekEditor()):(this._clearRepeatOnEditor(),void this._clearRepeatOnLabel())},_renderRepeatOnLabel:function(e){this._$repeatOnLabel=i("
").text(x.format("dxScheduler-recurrenceOn")+":").addClass(H+I).addClass(j), e.append(this._$repeatOnLabel)},_clearRepeatOnEditor:function(){c.isDefined(this._$repeatOnWeek)&&(this._$repeatOnWeek.detach(),this._$repeatOnWeek.remove(),delete this._$repeatOnWeek),c.isDefined(this._$repeatOnMonth)&&(this._$repeatOnMonth.detach(),this._$repeatOnMonth.remove(),delete this._$repeatOnMonth),c.isDefined(this._$repeatOnYear)&&(this._$repeatOnYear.detach(),this._$repeatOnYear.remove(),delete this._$repeatOnYear)},_clearRepeatOnEditorValues:function(){this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday",""),this._recurrenceRule.makeRule("byday","")},_clearRepeatOnLabel:function(){c.isDefined(this._$repeatOnLabel)&&(this._$repeatOnLabel.detach(),this._$repeatOnLabel.remove(),delete this._$repeatOnLabel)},_renderRepeatOnWeekEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnWeek=i("
").addClass(L).addClass(K).appendTo(this._$repeatOnEditor);var e=y.getDayNames("short"),t=this._daysOfWeekByRules();this._daysOfWeek=[];for(var n=0;n<7;n++){var o=this._getFirstDayOfWeek()+n,a=o%7,s=e[a].toUpperCase(),r=Y[a],l=i("
").addClass(z),c=this._createComponent(l,p,{text:s,value:u(r,t)>-1,onValueChanged:this._repeatByDayValueChangeHandler.bind(this)});this._daysOfWeek[a]=c,this._$repeatOnWeek.append(l)}},_daysOfWeekByRules:function(){var e=this._recurrenceRule.daysFromByDayRule();return e.length||(e=[Y[this.option("startDate").getDay()]]),e},_repeatByDayValueChangeHandler:function(){var e="";i.each(this._daysOfWeek,function(t,n){if(n.option("value")){var i=Y[t];e=e?e+","+i:i}}),this._recurrenceRule.makeRule("byday",e),this._changeEditorValue()},_renderRepeatOnMonthEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnMonth=i("
").addClass(N).addClass(K).appendTo(this._$repeatOnEditor),this._renderDayOfMonthEditor(this._$repeatOnMonth)},_renderRepeatOnYearEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnYear=i("
").addClass($).addClass(K).appendTo(this._$repeatOnEditor);for(var e=[],t=y.getMonthNames("wide"),n=0;n<12;n++)e[n]={value:String(n+1),text:t[n]};var o=this._monthOfYearByRules(),a=i("
").addClass(q).appendTo(this._$repeatOnYear),s=function(e){this._valueChangedHandler.call(this,e);var t=parseInt(e.component.option("value"));if(this._dayEditor&&t){var n=new Date((new Date).getFullYear(),parseInt(t),0).getDate();2===t&&(n=29),this._dayEditor.option("max",n)}};this._monthEditor=this._createComponent(a,_,{field:"bymonth",items:e,value:o,displayExpr:"text",valueExpr:"value",onValueChanged:s.bind(this)}),this._renderDayOfMonthEditor(this._$repeatOnYear)},_monthOfYearByRules:function(){var e=this._recurrenceRule.rules().bymonth;return e||(e=this.option("startDate").getMonth()+1),e},_renderDayOfMonthEditor:function(e){var t=this._dayOfMonthByRules(),n=i("
").addClass(W);this._dayEditor=this._createComponent(n,g,{field:"bymonthday",min:1,max:31,showSpinButtons:!0,useLargeSpinButtons:!1,value:t,onValueChanged:this._valueChangedHandler.bind(this)}),e.append(n)},_dayOfMonthByRules:function(){var e=this._recurrenceRule.rules().bymonthday;return e||(e=this.option("startDate").getDate()),e},_setAriaDescribedBy:function(e,t){var n="label-"+new a;e.setAria("describedby",n),e.setAria("id",n,t)},_renderRepeatEndSwitch:function(){var e=this,t=i("
").addClass(T).addClass(K),n=i("
").text(x.format("dxScheduler-recurrenceEnd")+":").addClass(A+I).addClass(j);i("
").addClass(G).addClass(R).append(n,t).appendTo(this._$container),this._switchEndEditor=this._createComponent(t,m,{value:!!e._recurrenceRule.repeatableRule(),onValueChanged:this._repeatEndSwitchValueChangeHandler.bind(this)}),this._setAriaDescribedBy(this._switchEndEditor,n)},_repeatEndSwitchValueChangeHandler:function(e){var t=e.value;this._renderRepeatEndVisibility(t),this._recurrenceRule.rules().count||this._recurrenceRule.rules().until||!t?t||(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until",""),this._changeEditorValue()):this._handleRepeatEndDefaults()},_renderRepeatEndVisibility:function(e){e?this._$repeatEndEditor.show():this._$repeatEndEditor.hide()},_handleRepeatEndDefaults:function(){this._recurrenceRule.makeRule("count",1),this._changeEditorValue()},_renderRepeatEndEditor:function(e){e=c.isDefined(e)?e:this._recurrenceRule.repeatableRule(),e||(e="count"),c.isDefined(this._$repeatEndEditor)||(this._$repeatEndEditor=i("
").addClass(O).addClass(G).appendTo(this._$container),this._renderRepeatEndTypeEditor())},_renderRepeatEndTypeEditor:function(){var e=this._recurrenceRule.repeatableRule()||"count",t=this;this._$repeatTypeEditor=i("
").addClass(P).addClass(K).appendTo(this._$repeatEndEditor),this._repeatTypeEditor=this._createComponent(this._$repeatTypeEditor,f,{items:Q,value:e,displayExpr:"text",valueExpr:"value",itemTemplate:function(e){return"count"===e.value?t._renderRepeatCountEditor():t._renderRepeatUntilEditor()},layout:"vertical",onValueChanged:this._repeatTypeValueChangedHandler.bind(this)}),this._disableRepeatEndParts(e)},_repeatTypeValueChangedHandler:function(e){var t=e.value;this._disableRepeatEndParts(t),"until"===t?this._recurrenceRule.makeRule(t,this._getUntilValue()):"count"===t&&this._recurrenceRule.makeRule(t,this._repeatCountEditor.option("value")),this._changeEditorValue()},_disableRepeatEndParts:function(e){"until"===e?(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)):"count"===e&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0))},_renderRepeatCountEditor:function(){var e=this._recurrenceRule.rules().count||1,t=i("
");return i("
").text(x.format("dxScheduler-recurrenceAfter")+":").addClass(M+I).appendTo(t),this._$repeatCountEditor=i("
").addClass(V).addClass(K).appendTo(t),i("
").text(x.format("dxScheduler-recurrenceRepeatCount")).addClass(M+I).appendTo(t),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,g,{field:"count",min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:e,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),t},_repeatCountValueChangeHandler:function(e){if("count"===this._recurrenceRule.repeatableRule()){var t=e.value;this._recurrenceRule.makeRule("count",t),this._changeEditorValue()}},_formatUntilDate:function(e){var t=b.trimTime(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},_renderRepeatUntilEditor:function(){var e=this._recurrenceRule.rules().until||this._formatUntilDate(new Date),t=i("
");return i("
").text(x.format("dxScheduler-recurrenceOn")+":").addClass(M+I).appendTo(t),this._$repeatDateEditor=i("
").addClass(F).addClass(K).appendTo(t),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,v,{field:"until",value:e,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()}}),t},_repeatUntilValueChangeHandler:function(e){if("until"===this._recurrenceRule.repeatableRule()){var t=this._formatUntilDate(new Date(e.value));this._repeatUntilDate.option("value",t),this._recurrenceRule.makeRule("until",t),this._changeEditorValue()}},_valueChangedHandler:function(e){var t=e.component.option("value"),n=e.component.option("field");"freq"===n&&this._clearRepeatOnEditorValues(),this._recurrenceRule.makeRule(n,t),this._makeRepeatOnRule(n,t),this._changeEditorValue()},_makeRepeatOnRule:function(e,t){"freq"===e&&"DAILY"!==t&&("WEEKLY"===t&&this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),"MONTHLY"===t&&this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),"YEARLY"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules())))},_optionChanged:function(e){switch(e.name){case"value":this._recurrenceRule.makeRules(e.value),this._switchEditor.option("value",!!e.value),this._switchEndEditor.option("value",!!this._recurrenceRule.repeatableRule()),this._repeatTypeEditor.option("value",this._recurrenceRule.repeatableRule()||"count"),this._renderRepeatEndEditor(),this._renderRepeatOnEditor(),this._changeEditorsValues(this._recurrenceRule.rules()),this.callBase(e);break;case"startDate":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._makeRepeatOnRule("freq",this._recurrenceRule.rules().freq),c.isDefined(this._recurrenceRule.recurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;default:this.callBase(e)}},_changeEditorsValues:function(e){this._freqEditor.option("value",e.freq),this._changeRepeatTypeLabel(),this._intervalEditor.option("value",e.interval),this._changeRepeatCountValue(),this._changeRepeatUntilValue(),this._changeCheckBoxesValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue()},_changeRepeatTypeLabel:function(){var e=this.element().find("."+P+I);if(e.length){var t=this._recurrenceRule.rules().freq||"DAILY";i.each(e,function(e,n){i(n).text(x.format("dxScheduler-recurrenceRepeat"+t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()))})}},_changeRepeatCountValue:function(){if(this._$repeatCountEditor){var e=this._recurrenceRule.rules().count||1;this._repeatCountEditor.option("value",e)}},_changeRepeatUntilValue:function(){this._$repeatDateEditor&&this._repeatUntilDate.option("value",this._getUntilValue())},_getUntilValue:function(){return this._recurrenceRule.rules().until||this._formatUntilDate(new Date)},_changeCheckBoxesValue:function(){if(this._$repeatOnWeek){var e=this._daysOfWeekByRules();i.each(this._daysOfWeek,function(t,n){var i=Y[t];n.option("value",u(i,e)>-1)})}},_changeDayOfMonthValue:function(){if(this._$repeatOnMonth||this._$repeatOnYear){var e=this._dayOfMonthByRules()||1;this._dayEditor.option("value",e)}},_changeMonthOfYearValue:function(){if(this._$repeatOnYear){var e=this._monthOfYearByRules()||1;this._monthEditor.option("value",e)}},toggle:function(){this._switchEditor.element().trigger(C.name)},setAria:function(){this._switchEditor&&this._switchEditor.setAria(arguments[0],arguments[1])}}).include(w);s("dxSchedulerRecurrenceEditor",X),e.exports=X},function(e,t,n){var i=n(9),o=n(57),a=n(11).extend,s=n(477),r=n(90),l=n(107),c=n(318),d="dx-timezone-editor",u="dx-timezone-display-name",h="dx-timezone-iana-id",p=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:null})},_createComponent:function(e,t,n){return n=n||{},this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this.element().addClass(d)},_render:function(){this._renderDisplayNameEditor(),this._renderIanaIdEditor(),this.callBase()},_renderDisplayNameEditor:function(){var e=r.format("dxScheduler-noTimezoneTitle"),t=this.invoke("getTimezoneDisplayNameById",this.option("value"))||e;this._displayNameEditor=this._renderSelectBox(u,{items:[e].concat(this.invoke("getTimezonesDisplayName")),value:t,onOptionChanged:function(e){"value"===e.name&&this._processDisplayNameChanging(e.value)}.bind(this)})},_renderIanaIdEditor:function(){this._ianaIdEditor=this._renderSelectBox(h,{items:this._idsDataSource(),value:this.option("value"),onOptionChanged:function(e){"value"===e.name&&this.option("value",e.value)}.bind(this),valueExpr:"id",displayExpr:"displayName",disabled:this._calculateIanaIdEditorDisabledState()})},_renderSelectBox:function(e,t){t=t||{};var n=i("<div />").addClass(e),o=this._createComponent(n,c,t);return this.element().append(n),o},_idsDataSource:function(){return this.invoke("getSimilarTimezones",this.option("value"))},_calculateIanaIdEditorDisabledState:function(){return!this.option("value")},_processDisplayNameChanging:function(e){var t=this.invoke("getTimezonesIdsByDisplayName",e),n=t.length?t[0].id:null;this.option("value",n),this._ianaIdEditor.option({value:n,items:this._idsDataSource(t),disabled:this._calculateIanaIdEditorDisabledState()})},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._ianaIdEditor.option({value:t,items:this._idsDataSource()}),t?this._displayNameEditor.option("value",this.invoke("getTimezoneDisplayNameById",t)):this._displayNameEditor.option("value",r.format("dxScheduler-noTimezoneTitle")),this.callBase(e);break;case"readOnly":this._displayNameEditor&&this._displayNameEditor.option("readOnly",t),this._ianaIdEditor&&this._ianaIdEditor.option("readOnly",t);break;default:this.callBase(e)}}}).include(s);o("dxSchedulerTimezoneEditor",{},p),e.exports=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){n(337)}]);