|
|
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],"&").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"><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],"&").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"><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},"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.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},"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({ | | }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("<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), |
"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('
'),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(" "+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("