/*!
* DevExtreme (dx.viz.js)
* Version: 17.1.5
* Build date: Tue Aug 01 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(657)},,,,,function(e,t,n){var i=n(6);i.framework=n(91),n(144),n(92),n(176),n(178),n(179),n(180),n(181),n(75),n(165),n(182),n(110),n(164),n(103),n(76),n(183),n(184),e.exports=i},function(e,t,n){var i=window.DevExpress=window.DevExpress||{},r=i.errors=n(7);if(i._DEVEXTREME_BUNDLE_INITIALIZED)throw r.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),o=n(17).compare;if(o(a.fn.jquery,[1,10])<0)throw r.Error("E0012");var s=n(59);i.requestAnimationFrame=function(){return r.log("W0000","DevExpress.requestAnimationFrame","15.2","Use the 'DevExpress.utils.requestAnimationFrame' method instead."),s.requestAnimationFrame.apply(s,arguments)},i.cancelAnimationFrame=function(){return r.log("W0000","DevExpress.cancelAnimationFrame","15.2","Use the 'DevExpress.utils.cancelAnimationFrame' method instead."),s.cancelAnimationFrame.apply(s,arguments)},i.EventsMixin=n(51),i.utils={},i.utils.requestAnimationFrame=s.requestAnimationFrame,i.utils.cancelAnimationFrame=s.cancelAnimationFrame,i.utils.initMobileViewport=n(60).initMobileViewport,i.utils.extendFromObject=n(11).extendFromObject,i.utils.createComponents=n(56).createComponents,i.utils.triggerShownEvent=n(56).triggerShownEvent,i.utils.triggerHidingEvent=n(56).triggerHidingEvent,i.utils.resetActiveElement=n(56).resetActiveElement,i.utils.findBestMatches=n(14).findBestMatches,i.createQueue=n(62).create,i.utils.dom=n(56),i.utils.common=n(14),i.utils.date=n(63),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(64),i.viewPort=n(55).value,i.hideTopOverlay=n(65),i.formatHelper=n(66);var l=i.config=n(15);Object.defineProperty(i,"rtlEnabled",{get:function(){return r.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),l().rtlEnabled},set:function(e){r.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(67).presets,i.fx=n(68),i.TransitionExecutor=n(74).TransitionExecutor,i.AnimationPresetCollection=n(67).PresetCollection,e.exports=i.events={},i.events.click=n(75),i.events.utils=n(71),i.events.GestureEmitter=n(86),i.localization=n(88),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),r=n(11).extend,a=n(13),o=n(18),s=n(19),l="http://js.devexpress.com/error/"+s.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:r(t,e),Error:function(){return d(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:s(i.makeArray(arguments)))}},s=function(e){var t=e[0];return e=e.slice(1),u(t,c(t,e))},c=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),o.format.apply(this,t).replace(/\.*\s*?$/,"")},u=function(e,t){return o.format.apply(this,["{0} - {1}. See:\n{2}",e,t,l+e])},d=function(e){var t,n,i;return t=e[0],e=e.slice(1),n=c(t,e),i=u(t,n),r(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,r=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];i in e&&!n||(e[i]=r)}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 r=arguments[t];if(null!=r)for(var o in r){var s,l=e[o],c=r[o],u=!1;e!==c&&(n&&c&&(i(c)||(u=Array.isArray(c)))?(s=u?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},e[o]=a(n,s,c)):void 0!==c&&(e[o]=c))}}return e};t.extend=a,t.extendFromObject=r},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,r=function(){function e(e){r&&i(r.info)&&r.info(e)}function t(e){r&&i(r.warn)&&r.warn(e)}function n(e){r&&i(r.error)&&r.error(e)}var r=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=r,t.debug=a},function(e,t,n){var i,r=n(9),a=n(15),o=n(16),s=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},u=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},d=function(e){return"object"===s(e)},h=function(e){return"date"===s(e)},p=function(e){return"boolean"==typeof e},f=function(e){return"function"==typeof e},_=function(e){return["object","array","function"].indexOf(s(e))===-1},g=function(e){return u(e)&&e.toString().indexOf("e")!==-1},m=function(e){return null!=e&&e===e.window},v=function(e,t){return l(e)?e:t},y=function(e,t){var n,i=r.Deferred(),a=t||this,o={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(a)}},s=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)(s,"number"==typeof t?t:0),o},b=[],x=[],S=[],w=function(e,t,n){if(i&&i!==e)return b.push(t),x.push(e),n=n||r.Deferred(),S.push(n),n;var a=i,s=S.length;i=e;var l=t();return l||(S.length>s?l=o.when.apply(r,S.slice(s)):n&&n.resolve()),i=a,n&&l&&l.done&&l.done(n.resolve).fail(n.reject),!i&&b.length&&("render"===x.shift()?k:C)(b.shift(),S.shift()),l},k=function(e,t){return w("render",e,t)},C=function(e,t){return w("update",e,t)},T=function(e){return function(){var t=this;return w("render",function(){return e.call(t)})}},E=function(e){return function(){var t=this;return w("update",function(){return e.call(t)})}},A=function(e,t,n){var i=[],a=0;return r.each(t,function(t,o){var s=0,l=n?n(o):o;r.each(e,function(e,t){var n=l[e];if(void 0!==n)return I(n,t)?void s++:(s=-1,!1)}),s<a||(s>a&&(i.length=0,a=s),i.push(o))}),i},I=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return r.each(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},O=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}},D=function(e){var t=c(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&r.each(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},P=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},L=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!V(e[i],t[i],n+1))return!1;return!0},B=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!V(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},V=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(d(e)&&d(t)?B(e,t,n):Array.isArray(e)&&Array.isArray(t)?L(e,t,n):!(!h(e)||!h(t))&&e.getTime()===t.getTime())},R=function(e){if(d(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},F=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},z=function(e){var t=a().serverDecimalSeparator;return l(e)&&(e=e.toString().replace(".",t)),e},H=function(){},N=function(e,t,n){for(var i,r=[],a=!n,o=0;o<e.length;o++)i=!!t(e[o],o),i===a&&r.push(e[o]);return r};t.type=s,t.isDefined=l,t.isString=c,t.isNumeric=u,t.isObject=d,t.isDate=h,t.isBoolean=p,t.isFunction=f,t.isPrimitive=_,t.isExponential=g,t.isWindow=m,t.ensureDefined=v,t.executeAsync=y,t.deferRender=k,t.deferRenderer=T,t.deferUpdate=C,t.deferUpdater=E,t.splitPair=O,t.splitQuad=M,t.findBestMatches=A,t.normalizeKey=D,t.denormalizeKey=P,t.equalByValue=V,t.getKeyHash=R,t.escapeRegExp=F,t.applyServerDecimalSeparator=z,t.noop=H,t.grep=N},function(e,t,n){var i=n(11),r={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!1};e.exports=function(){return arguments.length?void i.extend(r,arguments[0]):r}},function(e,t,n){var i=n(9),r=n(14),a=n(17).compare;t.fromPromise=function(e,t){var n=e&&r.isFunction(e.done)&&r.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 r=Math.max(e.length,t.length);isFinite(n)&&(r=Math.min(r,n));for(var a=0;a<r;a++){var o=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(o<s)return-1;if(o>s)return 1}return 0}},function(e,t,n){var i=n(9),r=n(14),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),o=function(e){var t=r.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}},s=function(e){var t=r.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),o=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(o)||(o=i),{top:i,right:a,bottom:o,left:n}},l=function(){var e,t,n,a=arguments[0],o=i.makeArray(arguments).slice(1);if(r.isFunction(a))return a.apply(this,o);for(var s=0;s<o.length;s++)t=new RegExp("\\{"+s+"\\}","gm"),n=o[s],"string"===r.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)}}(),u=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=o,t.quadToObject=s,t.format=l,t.replaceAll=c,t.isEmpty=u},function(e,t){e.exports="17.1.5"},function(e,t,n){var i=n(21).fileSaver,r=n(14).isFunction;t.export=function(e,t,n){if(e){var a=t.exportingAction,o=t.exportedAction,s=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};r(a)&&a(l),l.cancel||n(e,t,function(e){r(o)&&o(),r(s)&&(l.data=e,s(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),r=n(22),a=n(23),o=n(14),s={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 r=document.createElement("a"),a={download:e,href:t};return document.body.appendChild(r),i(r).css({display:"none"}).text("load").attr(a)[0].click(),r},_formDownloader:function(e,t,n,r,a){var o={method:"post",action:e,enctype:"multipart/form-data"},s=i("<form>").css({display:"none"}).attr(o);s.append('<input type="hidden" name="fileName" value="'+t+'" />'),s.append('<input type="hidden" name="contentType" value="'+n+'" />'),s.append('<input type="hidden" name="data" value="'+r+'" />'),s.appendTo("body"),s.submit(),s.submit()&&s.remove()},_saveByProxy:function(e,t,n,i,r){return this._formDownloader(e,t,l[n],i,r)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(l[n],["."+s[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,r){if(this._blobSaved=!1,o.isDefined(navigator.msSaveOrOpenBlob))navigator.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(o.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(r=o.isDefined(r)?r:function(){var e=i("#dxExportLink");a.revokeObjectURL(e.attr("href")),e.remove()},o.isDefined(a))return this._linkDownloader(e,a.createObjectURL(n),r)}},saveAs:function(e,t,n,i,l){if(e+="."+s[t],o.isFunction(window.Blob))this._saveBlobAs(e,t,n);else if(o.isDefined(i)&&!o.isDefined(navigator.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(o.isDefined(navigator.userAgent.match(/iPad/i))||r.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),r=n(7);e.exports=i(r.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,r=/(webkit)[ \/]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,o=/(trident).*rv:(\d{1,2}\.\d)/,s=/(edge)\/((\d+)?[\w\.]+)/,l=/(safari)/i,c=/(mozilla)(?:.*? rv:([\w.]+))/,u=function(e){e=e.toLowerCase();var t={},n=a.exec(e)||o.exec(e)||s.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||r.exec(e)||[],i=n[1],u=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&l.exec(e)&&(i="safari",t.webkit=!0,u=/Version\/([0-9.]+)/i.exec(e),u=u&&u[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=u),t};e.exports=i({_fromUA:u},u(navigator.userAgent))},function(e,t,n){var i=n(25),r=n(14),a=n(11).extend,o=n(26).inArray,s=n(22),l=n(18),c=n(30),u=n(21),d=n(31),h='<?xml version="1.0" encoding="utf-8"?>',p='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',f="<sheetPr/>",_='<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",m="rels",v="xl",y="workbook.xml",b="[Content_Types].xml",x="sharedStrings.xml",S="styles.xml",w="worksheets",k="sheet1.xml",C={"boolean":"b",date:"d",number:"n",string:"s"},T=Date.UTC(1899,11,30),E=60,A=4,I=7,O=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,a,o="<"+e,s=t.length;for(i=0;i<s;i++)a=t[i],o=o+" "+a.name+'="'+a.value+'"';return r.isDefined(n)?o+">"+n+"</"+e+">":o+" />"},_getCellIndex:function(e,t){var n,i="",r=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>=r?t%r:Math.ceil(t)),i=String.fromCharCode(n)+i,!(t>=r))break;t=Math.floor(t/r)-1}return i+e},_getDataType:function(e){return C[e]||"s"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return r.isObject(e)?a(i,e,{format:e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,r=this._formatObjectConverter(e,t,n);if(e=r.format,t=r.precision,i=r.currency,n=r.dataType,e=d.convertFormat(e,t,n,i))return o(e,this._styleFormat)===-1&&this._styleFormat.push(e),o(e,this._styleFormat)+1},_appendString:function(e){if(r.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(r.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-T)/864e5),t<E&&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)),o=this._styleArray[this._dataProvider.getStyleId(e,t)].formatID,s=r.isNumeric(o)?this._styleFormat[o-1]:null;switch("d"!==a||r.isDate(i)||(a="s"),a){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,s),a="n"}return{value:i,type:a}},_getDataArray:function(){var e,t,n,i,r,a=this,o=[],s=a._dataProvider,l=s.getRowsCount(),c=s.getColumns();for(e=0;e<l;e++){for(n=[],r=c.length,t=0;t!==r;t++)i=a._prepareValue(e,t),n.push({style:s.getStyleId(e,t),value:i.value,type:i.type});!a._needSheetPr&&s.getGroupLevel(e)>0&&(a._needSheetPr=!0),o.push(n)}return o},_getBoldStyleID:function(e){for(var t=0;t<A-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)/I*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)+O},{name:"formatCode",value:t._styleFormat[e]}]);a=a+t._getXMLTag("numFmts",[{name:"count",value:t._styleFormat.length}],t._styleFormat.join(""))+_,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:r.isDefined(e.formatID)?1:0},{name:"numFmtId",value:r.isDefined(e.formatID)?Number(e.formatID)+O-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(S,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(x,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,o,s=0,l=[],c=this._cellsArray.length,u=this._colsArray.length,d="1:"+u,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,_=[['<?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<u;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(_.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<c;t++){for(i=[],o=this._cellsArray[t].length,e=0;e<o;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._getCellIndex(t+1,e)},{name:"s",value:n.style},{name:"t",value:n.type}],r.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));l.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:d},{name:"outlineLevel",value:t>=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s++>1e4&&(_.push(l.join("")),l=[],s=0)}_.push(l.join("")),l=[],a=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),_.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(w).file(k,_.join("")),this._colsArray=[],this._cellsArray=[],_=[]},_generateMergingXML:function(){var e,t,n,i,a,o,s=r.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],u=[],d="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!r.isDefined(c[i])||!r.isDefined(c[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(u.push({start:this._getCellIndex(i+1,n),end:this._getCellIndex(i+1+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)r.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(a=u.length,o=0;o<a;o++)d+=this._getXMLTag("mergeCell",[{name:"ref",value:u[o].start+":"+u[o].end}]);return d.length?this._getXMLTag("mergeCells",[{name:"count",value:a}],d):""},_generateCommonXML:function(){var e,t=h+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+y)),n=this._zip.folder(v),i=h;this._zip.folder("_"+m).file("."+m,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+k)+this._createXMLRelationship(2,"styles",S)+this._createXMLRelationship(3,"sharedStrings",x),i+=this._createXMLRelationships(e),n.folder("_"+m).file(y+".rels",i),n.file(y,this._getWorkbookContent()),this._zip.file(b,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,r.isDefined(c)?this._zip=new c:this._zip=null},_checkZipState:function(){if(!this._zip)throw s.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:u.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(r.isFunction(window.Blob)).then(i):i(a.getData(r.isFunction(window.Blob)))})}},function(e,t,n){var i=n(7),r=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},o=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?r(a.parent.prototype,n,i):i;return a},s=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")},u=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]}}}(),d=function(){};d.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,r=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<r.length;e++)r[e].call(t);for(n&&n.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=a(this),u(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=o,t.include=s,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},d.abstract=c,e.exports=d},function(e,t,n){var i=n(9),r=n(14),a=n(27),o=function(e){return Array.isArray(e)&&!e.length},s=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 r=d(i,t);r!==-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 r=d(i,t);r===-1&&n.push(i)}),n},u=function(e,t,n,o){var s={},l=0;return i.each(e,function(e,i){e=i[t],r.isDefined(e)&&(s[e]=s[e]||[],i===n?s[e].unshift(i):s[e].push(i),delete i[t])}),a.orderEach(s,function(e,n){i.each(n,function(){e>=0&&(this[t]=l++)})}),i.each(e,function(){r.isDefined(this[t])||o&&!o(this)||(this[t]=l++)}),l},d=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)};t.isEmpty=o,t.wrapToArray=s,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=u,t.inArray=d},function(e,t,n){var i=n(9),r=n(14),a=n(12),o=n(28),s=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=r.isNumeric(e),i=r.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&&o.isWrapped(e[t])?o.assign(e[t],n):e[t]=n},u=function(e,t,n,o){var s,l;for(var d in t)if(s=e[d],l=t[d],e!==l){if(a.isPlainObject(l)&&!(l instanceof i.Event)){var h=n?r.isObject(s):a.isPlainObject(s);l=u(h?s:{},l,n,o)}void 0!==l&&c(e,d,l,o)}return e};t.clone=s,t.orderEach=l,t.deepExtendArraySafe=u},function(e,t,n){var i=n(13).logger,r=n(29);e.exports=r({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,r=n(14).isFunction,a=n(25),o=a.inherit(e),s=o,l=new s(e),c={},u=function(n,i){t.each(n,function(t){r(l[t])?!i&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(i&&(c[t]=e[t]),e[t]=l[t])})};return u(e,!0),e.inject=function(e){s=s.inherit(e),l=new s,u(e)},e.resetInjection=function(){i(e,c),s=o,l=new o},e}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(14),r=n(18),a=n(32),o=n(33),s=n(35).getLanguageId,l={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},c=" .,:;/\\<>()-",u=1632,d={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "};n(36);var h=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_isDigit:function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=u&&t<u+10},_getDifference:function(e,t,n){var i,r=0,a=this,o=[],s=function(t){return e[r]!==t[r]};for(Array.isArray(t)||(t=[t]),r=0;r<e.length;r++)if(n.indexOf(r)<0&&t.filter(s).length){do{if(i=a._isDigit(e[r]),!o.length&&!i&&a._isDigit(t[0][r]))break;o.push(r),n.unshift(r),r++}while(e[r]&&c.indexOf(e[r])<0&&i===a._isDigit(e[r]));break}return 1!==o.length||"0"!==e[n[0]-1]&&"٠"!==e[n[0]-1]||n.unshift(n[0]-1),o},_replaceCharsCore:function(e,t,n,i){var r=t[0],a=r<i.length?i[r]:r;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 r,a,o;if(!this._isDigit(e[t[0]]||"0")){for(var s=Math.max(t.length<=3?3:4,n.length);t.length>s;){for(a=t.pop(),o=i[a],i[a]=-1,r=a+1;r<i.length;r++)i[r]--;e=e.substr(0,o)+e.substr(o+1)}for(a=t[t.length-1]+1,o=a<i.length?i[a]:a;t.length<s;){for(t.push(t[t.length-1]+1),r=a;r<i.length;r++)i[r]++;e=e.substr(0,o)+" "+e.substr(o)}}return e=this._replaceCharsCore(e,t,n,i)},_format:function(e,t){return Array.isArray(e)?e.map(function(e){return(o.format(e,t)||"").toString()}):(o.format(e,t)||"").toString()},_escapeChars:function(e,t,n,i){var r=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 r.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>=u&&t<u+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),r=i.split("").map(function(e,t){return t}),a=i,o=[{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 o.forEach(function(o){var s=t._getDifference(i,t._format(o.date,e),n);a=t._replaceChars(a,s,o.pattern,r)}),a=t._escapeChars(a,i,n,r),a=t._getLanguageInfo(i)+a},_getLanguageInfo:function(e){var t=s(),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):d[e.toLowerCase()];return a&&(i=r.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,r){if(i.isDefined(e)){if("date"===n)return h._convertDateFormat(e);if(i.isString(e)&&d[e.toLowerCase()])return h._convertNumberFormat(e,t,r)}}}},function(e,t,n){var i=n(9),r=n(29),a=n(26).inArray,o=n(12).isPlainObject,s=n(7),l=4,c=10,u=["currency","fixedpoint","exponential","percent","decimal"],d={1:"K",2:"M",3:"B",4:"T"},h={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},p=r({numericFormats:u,defaultLargeNumberFormatPostfixes:d,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.split(" "),i.each(t,function(e,t){a(t,u)>-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 r=Math.abs(e),a=0;if(r>1)for(;r&&r>=t&&(void 0===i||a<i);)a++,r/=t;else if(r>0&&r<1)for(;r<1&&(void 0===n||a>n);)a--,r*=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,r;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]||"",r=this._formatNumberCore(e,t.formatType,n),r=r.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,c),r=this._getNumberByPower(e,i,c);return void 0===t.precision&&(t.precision=1),r.toFixed(t.precision||0)>=c&&(i++,r/=c),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(r,"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:(o(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&&s.log("W0011"),parseFloat(e.replace(/^\D+|,+/g,"")))}});e.exports=p},function(e,t,n){var i=n(9),r=n(32),a=n(29),o=n(14).isString,s=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"},u=function(e){var t=new Date,n=e.split(" "),i=n[0].split(":"),r=Number(i[0]),a=Number(i[1]),o=Number(i[2])||0,s=/^pm$/i.test(n[1]),l=o<60&&a<60&&r>0&&r<13;return l?(s||12!==r||(r=0),s&&12!==r&&(r+=12),new Date(t.getFullYear(),t.getMonth(),t.getDate(),r,a,o)):null},d=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"},_=function(e){return e%12||12},g=function(e,t){return r.format(e,{type:"decimal",precision:t})},m={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(_(e.getHours()),1)},hh:function(e){return g(_(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 m.h(e)+":"+m.minute(e)+" "+f(e)},shortdate:function(e){return[m.M(e),m.day(e),m.year(e)].join("/")},shortdateshorttime:function(e){return[m.shortdate(e),m.shorttime(e)].join(", ")},mediumdatemediumtime:function(e){return[m.monthandday(e),m.shorttime(e)].join(", ")},monthandyear:function(e){return[m.month(e),m.year(e)].join(" ")},monthandday:function(e){return[m.month(e),m.day(e)].join(" ")},longdate:function(e){return m.dayofweek(e)+", "+m.month(e)+" "+m.day(e)+", "+m.year(e)},longtime:function(e){return[m.h(e),m.minute(e),m.second(e)].join(":")+" "+f(e)},longdatelongtime:function(e){return[m.longdate(e),m.longtime(e)].join(", ")},d:function(e){return g(e.getDate(),1)},dd:function(e){return g(e.getDate(),2)},"d MMMM":function(e){return m.day(e)+" "+m.month(e)},"yyyy/M/d":function(e){return[m.year(e),m.M(e),m.day(e)].join("/")},"yyyy/MM/dd":function(e){return[m.year(e),m.MM(e),m.dd(e)].join("/")},"dd.MM.yyyy":function(e){return[m.dd(e),m.MM(e),m.year(e)].join(".")},"HH:mm":function(e){return[m.hour(e),m.minute(e)].join(":")},"HH:mm:ss":function(e){return[m["HH:mm"](e),m.second(e)].join(":")},"h:mm:ss":function(e){return[m.h(e),m.minute(e),m.second(e)].join(":")},"h:mm:ss:SSS":function(e){return[m.h(e),m.minute(e),m.second(e),m.SSS(e)].join(":")},"yyyy/MM/dd HH:mm:ss":function(e){return[m["yyyy/MM/dd"](e),m["HH:mm:ss"](e)].join(" ")},"yyyy-MM-dd hh:mm:ss.SSS a":function(e){return[[m.year(e),m.MM(e),m.dd(e)].join("-"),[m.hh(e),m.minute(e),m.second(e)].join(":")+"."+m.SSS(e),f(e)].join(" ")},"yyyy-MM-dd":function(e){return[m.year(e),m.MM(e),m.dd(e)].join("-")},yyyyMMddTHHmmss:function(e){return[m.year(e),m.MM(e),m.dd(e),"T",m.hour(e),m.minute(e),m.second(e)].join("")},"datetime-local":function(e){return m["yyyy-MM-dd"](e)+"T"+m["HH:mm:ss"](e)},"yyyy-MM-ddTHH:mm:ssZ":function(e){return m["datetime-local"](e)+"Z"},"yyyy-MM-ddTHH:mmZ":function(e){return m["yyyy-MM-dd"](e)+"T"+m.hour(e)+":"+m.minute(e)+"Z"},"dd/MM/yyyy":function(e){return[m.dd(e),m.MM(e),m.year(e)].join("/")},"yyyy MMMM d":function(e){return[m.year(e),m.month(e),m.day(e)].join(" ")},"EEEE, d":function(e){return[m.dayofweek(e),m.d(e)].join(", ")},"EEEE MM yy":function(e){return[m.dayofweek(e),m.MM(e),m.shortyear(e)].join(" ")},"d MMMM yyyy":function(e){return[m.day(e),m.month(e),m.year(e)].join(" ")},E:function(e){return x([m.dayofweek(e)],"abbreviated")[0]},EEE:function(e){return m.E(e)},"EEE hh":function(e){return[m.EEE(e),m.hh(e)].join(" ")},"ss SSS":function(e){return[m.second(e),m.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 m.quarter(e)+" "+m.year(e)}},v=function(e){return"Z"!==e.slice(-1)&&(e+="Z"),d(new Date(e))},y={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(),s(e,h))},monthandday:function(e){var t=e.split(" "),n=y.month(t[0]);return n.setDate(Number(t[1])),n},monthandyear:function(e){var t=e.split(" "),n=y.month(t[0]);return n.setYear(Number(t[1])),n},year:function(e){var t=new Date(new Date(0));return t.setUTCFullYear(Number(e)),d(t)},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,y.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 u(e)},shorttime:function(e){return u(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]),s(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(" "),r=2===i.length?i.pop():void 0,a=y.month(n[0]);a.setDate(Number(n[1])),i=i[0].split(":");var o=Number(i[0]);switch(String(r).toLowerCase()){case"am":o=12===o?0:o;break;case"pm":o=12===o?12:o+12}return a.setHours(o),a.setMinutes(Number(i[1])),a}};i.each(c,function(e,t){t=t.replace(/'/g,""),m[t]=m[e],y[t]=y[e]});var b=function(e,t){return o(t)&&(e[t.toLowerCase()]||e[t.replace(/'/g,"")])},x=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})},S={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"]},w=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(S,function(e,i){s(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return x(h,e)},getDayNames:function(e){return x(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=b(m,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=b(y,t)),i?n=i(e):(l.log("W0012"),n=new Date(e)),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=w},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,r={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 r[i()]}},function(e,t,n){var i=n(11).extend,r=n(32);r.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=F("<canvas>")[0];return i.width=e+(n?0:2*re.x),i.height=t+(n?0:2*re.y),i}function r(e,t){var n=e.toDataURL(t,ne),i=atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,r,a,o,s){var l,c,u,d,h,p,f=(e+n)/2,_=(t+i)/2,g=q(t-i,e-n),m=a?1:-1;g+=90*(U/180)*(o?1:-1),l=$(X(n-e,2)+X(i-t,2))/2,c=$(K(X(r,2)-X(l,2))),u=f+m*(c*Z(g)),d=_+m*(c*Q(g)),h=q(t-d,e-u),p=q(i-d,n-u),s.arc(u,d,r,h,p,!o)}function o(e){var t,n=le(e.attributes||{}),i=e.style||{},r=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),r.translateX=te(t[0]),r.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),r.rotationAngle=te(t[0]),r.rotationX=t[1]&&te(t[1]),r.rotationY=t[2]&&te(t[2]))),u(i,r),r}function s(e,t){var n=t.x,i=t.y,r=t.width,a=t.height,o=t.rx;o?(o=Y(o,r/2,a/2),e.save(),e.translate(n,i),e.moveTo(r/2,0),e.arcTo(r,0,r,a,o),e.arcTo(r,a,0,a,o),e.arcTo(0,a,0,0,o),e.arcTo(0,0,o,0,o),e.lineTo(r/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)}function l(e,t){var n=F.Deferred(),i=new Image;i.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,S(e,t),w(e,t),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore(),n.resolve()},i.onerror=function(){n.resolve()},B.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function c(e,t){var n,i,r=t.split(" "),o=0;do switch(n=te(r[o+1]),i=te(r[o+2]),r[o]){case"M":e.moveTo(n,i),o+=3;break;case"L":e.lineTo(n,i),o+=3;break;case"C":e.bezierCurveTo(n,i,te(r[o+3]),te(r[o+4]),te(r[o+5]),te(r[o+6])),o+=7;break;case"A":a(te(r[o-2]),te(r[o-1]),te(r[o+6]),te(r[o+7]),n,te(r[o+4]),te(r[o+5]),e),o+=8;break;case"Z":e.closePath(),o+=1}while(o<r.length)}function u(e,t){J(e,function(n,i){""!==e[i]&&(t[G(i)]=e[i])}),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function d(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||oe,t.fill=t.fill||se,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),A(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,r=parseInt(t.fontSize,10),a=r*ie<1?1:r*ie,o=t.y;switch(t.textDecoration){case"line-through":o-=r/3+a/2;break;case"overline":o-=r-a;break;case"underline":o+=a}e.rect(n,o,i,a),O(e,t),A(e,t)}}function _(e){L[e.attributes.id.textContent]=e.childNodes[0]}function g(e){V[e.attributes.id.textContent]=e}function m(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 y(e,t,n){for(var i,r=[],a=0,s=0;s<e.length;s++){var l=e[s];if(void 0===l.tagName)b(l,t,n);else if("tspan"===l.tagName||"text"===l.tagName){var c=o(l),u=ee({},n,c);if("tspan"===l.tagName&&v(l))return void y(l.childNodes,t,u);u.textAlign="start",i&&void 0===c.x||(i={elements:[],options:[],widths:[],offsets:[]},r.push(i)),void 0!==c.dy&&(a+=Number(c.dy)),i.elements.push(l),i.options.push(u),i.offsets.push(a),h(t,u),i.widths.push(t.measureText(u.text).width)}}r.forEach(function(e){var i=e.widths.reduce(function(e,t){return e+t},0),r=0,a=0;"center"===n.textAlign&&(r=i/2),"end"===n.textAlign&&(r=i),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-r+a,t.y+=e.offsets[n],a+=i}),e.elements.forEach(function(n,i){y(n.childNodes,t,e.options[i])})})}function b(e,t,n){var i=e.tagName,r="text"===i||"tspan"===i||void 0===i,a="image"===i,u=ee({},n,o(e));if("hidden"!==u.visibility){switch(t.save(),!a&&S(t,u),w(t,u),m(u),t.beginPath(),e.tagName){case void 0:p(t,u);break;case"text":case"tspan":y(e.childNodes,t,u);break;case"image":l(t,u);break;case"path":c(t,u.d);break;case"rect":s(t,u),t.closePath();break;case"circle":t.arc(u.cx,u.cy,u.r,0,2*U,1)}x(t,u),r||(O(t,u),A(t,u)),t.restore()}}function x(e,t){var n,i=d(t.filter);i&&(n=R&&R[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 S(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*U/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),delete t.rotationAngle,delete t.rotationX,delete t.rotationY)}function w(e,t){t["clip-path"]&&(b(L[d(t["clip-path"])],e,{}),e.clip(),delete t["clip-path"])}function k(e,t){var n=new z(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function C(e){var t,n,i={};J(e.childNodes,function(e,r){var a=r.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)}}),R[e.id]=i}function T(e,t,n){var i;J(e,function(e,r){switch(r.tagName&&r.tagName.toLowerCase()){case"g":i=ee({},n,o(r)),t.save(),S(t,i),w(t,i),T(r.childNodes,t,i),t.restore();break;case"defs":L={},V={},R={},T(r.childNodes,t);break;case"clippath":_(r);break;case"pattern":g(r);break;case"filter":C(r);break;default:b(r,t,n)}})}function E(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&e.setLineDash&&(n=F.map(n,function(e){return te(e)}),e.setLineDash(n))}function A(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(E(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 I(e,t){var n=V[d(t)],r=o(n),a=i(r.width,r.height,!0),s=a.getContext("2d");return T(n.childNodes,s,r),e.createPattern(a,"repeat")}function O(e,t){var n=t.fill;n&&"none"!==n&&(e.fillStyle=n.search(/url/)===-1?n:I(e,n),e.globalAlpha=t.fillOpacity,e.fill())}function M(e,t,n,i){e.fillStyle=i||"#ffffff",e.fillRect(-re.x,-re.y,t+2*re.x,n+2*re.y)}function D(e,t,n,r){var a=i(t,n),o=a.getContext("2d"),s=new DOMParser,l=s.parseFromString(e,"image/svg+xml"),c=l.childNodes[0];return o.translate(re.x,re.y),B=[],document.body.appendChild(a),c.attributes.direction&&(a.dir=c.attributes.direction.textContent),M(o,t,n,r),T(c.childNodes,o,{}),document.body.removeChild(a),a}function P(e,t,n){j.apply(F,B).done(function(){var i=r(t,n);e.resolve(i)})}var L,B,V,R,F=n(9),z=n(38),H=n(14),N=n(11).extend,G=n(39).camelize,j=n(16).when,W=Math,U=W.PI,Y=W.min,K=W.abs,$=W.sqrt,X=W.pow,q=W.atan2,Z=W.cos,Q=W.sin,J=F.each,ee=N,te=Number,ne=1,ie=.05,re={x:30,y:20},ae="10px",oe="sans-serif",se="#000",le=function(e){var t,n={};return F.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=F.Deferred(),r=t.width,a=t.height,o=t.backgroundColor;return H.isFunction(t.__parseAttributesFn)&&(le=t.__parseAttributesFn),P(i,D(e,r,a,o),n),i},getData:function(e,n){var i=this,r=t.imageCreator.getImageData(e,n),a="image/"+n.format,o=F.Deferred();return j(r).done(function(e){r=H.isFunction(window.Blob)?i._getBlob(e,a):i._getBase64(e),o.resolve(r)}),o},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new 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=r(t[0]),this.g=r(t[1]),this.b=r(t[2]),this.a=r(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=o(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=m.length;n<i;++n)if(t=m[n].re.exec(e))return m[n].process(t);return null}function r(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 o(e,t,n){var i,r,a,o=Math.max(e,t,n),s=Math.min(e,t,n),l=o-s;if(a=o,r=0===o?0:1-s/o,o===s)i=0;else switch(o){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 r*=100,a*=100/255,{h:Math.round(i),s:Math.round(r),v:Math.round(a)}}function s(e,t,n){var i,r,a,o,s,l,c,u;switch(o=Math.floor(e%360/60),a=(100-t)*n/100,s=(n-a)*(e%60/60),r=a+s,i=n-s,o){case 0:l=n,c=r,u=a;break;case 1:l=i,c=n,u=a;break;case 2:l=a,c=n,u=r;break;case 3:l=a,c=i,u=n;break;case 4:l=r,c=a,u=n;break;case 5:l=n,c=a,u=i}return[Math.round(2.55*l),Math.round(2.55*c),Math.round(2.55*u)]}function l(e,t,n,i){var r=Math.max(e,t,n);switch(r){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,r,a=Math.max(e,t,n),o=Math.min(e,t,n),s=a+o,c=s/2;
if(a===o)i=r=0;else{var u=a-o;r=c>.5?u/(2-s):u/s,i=l(e,t,n,u),i/=6}return{h:v(360*i),s:v(100*r),l:v(100*c)}}function u(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function d(e){return e<0&&(e+=1),e>1&&(e-=1),e}function h(e,t,n){return n=d(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,r,a;if(e=f(e,360),t=f(t,100),n=f(n,100),0===t)i=r=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;i=h(s,o,u("r",e)),r=h(s,o,u("g",e)),a=h(s,o,u("b",e))}return[v(255*i),v(255*r),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 _(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"},m=[{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),r=s(t,n,i);return[r[0],r[1],r[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),r=p(t,n,i);return[r[0],r[1],r[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=r(this.r+e),t.g=r(this.g+e),t.b=r(this.b+e),t},blend:function(e,t){var i=e instanceof n?e:new n(e),a=new n;return a.r=r(v(this.r*(1-t)+i.r*t)),a.g=r(v(this.g*(1-t)+i.g*t)),a.b=r(v(this.b*(1-t)+i.b*t)),a},toHex:function(){return a(this.r,this.g,this.b)},getPureColor:function(){var e=s(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!!(_(e)&&_(t)&&_(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),r=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return r(e).charAt(0).toUpperCase()+e.substr(1)},o=function(e){return r(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i.map(o(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i.map(o(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},u=function(e){return a(s(e).replace(/-/g," "))},d=function(e){return i.map(o(e),function(e){return a(e.toLowerCase())}).join(" ")},h=function(e){var t,n,i=[],r=!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):!r&&a&&i.length>0&&i.push(" "),i.push(n),r=a;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=u,t.titleize=d,t.underscore=l,t.captionize=h},function(e,t,n){var i=n(9),r=n(19),a=n(37).imageCreator,o=n(14).isFunction,s=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",u="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",d="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",_="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,m=40,v=function(e,t){return e.length<t?v("0"+e,t):e},y=function(e,t,n){var i=t.width+g,a=t.height+m,o=(.75*i).toFixed(2),s=(.75*a).toFixed(2),l=c.replace("_width_",o).replace("_height_",s),_=u.replace("_width_",o).replace("_height_",s),v=d.replace("_date_",n).replace("_version_",r),y=h.replace("_width_",i).replace("_height_",a).replace("_length_",e.length)+e+p,x=b(l.length,_.length,v.length),S=l+_+v+y,w=f.replace("_length_",S.length);return S+x+w},b=function(e,t,n){return _.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},x=function(){return new Date},S=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"})},w=function(e){return window.btoa(e)};t.getData=function(e,t,n){var r=a.getImageData(e,s({},t,{format:"jpeg"})),c=i.Deferred();c.done(n),l(r).done(function(e){var n=y(e,t,x()),i=o(window.Blob)?S(n):w(n);c.resolve(i)})}},function(e,t,n){var i=n(9),r=n(14),a=n(42).getSvgMarkup,o=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 r,a="",o=new Uint8Array(i),s=o.byteLength;for(r=0;r<s;r++)a+=String.fromCharCode(o[r]);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(),o.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,s='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',l=i.Deferred(),c=new DOMParser,u=c.parseFromString(e,"image/svg+xml"),d=u.childNodes[0],h=i(d);return h.css("background-color",t.backgroundColor),n=s+a(h.get(0)),o._prepareImages(d).done(function(){i.each(o._imageArray,function(e,t){n=n.split(e).join(t)}),l.resolve(r.isFunction(window.Blob)?o._getBlob(n):o._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 r(e){return e.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}t.getSvgMarkup=function(e){return i(r(n(e)))}},function(e,t,n){var i=n(9),r=n(11).extend,a=n(15),o=n(7),s=n(44).resizeCallbacks,l=n(14),c=n(26).inArray,u=n(45),d=n(48),h=d.abstract,p="dx-rtl",f="dx-visibility-change-handler",_="VisibilityChange",g=d.inherit({_getDefaultOptions:function(){return r(this.callBase(),{width:void 0,height:void 0,rtlEnabled:a().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),u.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);s.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=r({},this.option("elementAttr")),t=e.class;delete e.class,this.element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&(this.element().addClass(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+_;e.element().off(t).on(t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){var e=this,t="dxhiding."+this.NAME+_,n="dxshown."+this.NAME+_;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 o.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._render()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&s.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.element().toggleClass(p,e)},_createComponent:function(e,t,n){var a=this;n=n||{};var o=l.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),s=a.option("nestedComponentOptions")||l.noop;a._extendConfig(n,r({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},s(this)));var u;if(l.isString(t)){var d=i(e)[t](n);u=d[t]("instance")}else e&&(u=t.getInstance(e),u?u.option(n):u=new t(e,n));if(u){var h=function(e){c(e.name,o)>=0&&u.option(e.name,e.value)};a.on("optionChanged",h),u.on("disposing",function(){a.off("optionChanged",h)})}return u},_extendConfig:function(e,t){i.each(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return r(this.callBase(),{context:this._modelByElement(this.element())})},_defaultActionArgs:function(){var e=this.element(),t=this._modelByElement(this.element());return r(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 u.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),r=function(){var e,t=i.Callbacks(),n=i(window),r=!1,a=t.add,o=t.remove,s=function(){return{width:n.width(),height:n.height()}},l=function(){var n=s();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=s(),t.add=function(){var e=a.apply(t,arguments);return!r&&t.has()&&(n.on("resize",l),r=!0),e},t.remove=function(){var e=o.apply(t,arguments);return!t.has()&&r&&(n.off("resize",l),r=!1),e},t}(),a=function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},o=function(e){var t=e||a;return t(i(window).width())};t.resizeCallbacks=r,t.defaultScreenFactorFunc=a,t.getCurrentScreenFactor=o},function(e,t,n){var i=n(9),r=n(46),a=n(14),o=n(47),s="dxComponents",l="dxPrivateComponent",c=new r,u=0,d=t.name=function(e,t){if(a.isDefined(t))return void c.set(e,t);if(!c.has(e)){var n=l+u++;return c.set(e,n),n}return c.get(e)};t.attachInstanceToElement=function(e,t,n){var r=i.data(e.get(0)),a=d(t.constructor);r[a]=t,n&&e.one(o,function(){n.call(t)}),r[s]||(r[s]=[]),r[s].push(a)},t.getInstanceByElement=function(e,t){var n=d(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(26).inArray,r=window.WeakMap;r||(r=function(){var e=[],t=[];this.set=function(n,r){var a=i(n,e);a===-1?(e.push(n),t.push(r)):t[a]=r},this.get=function(n){var r=i(n,e);if(r!==-1)return t[r]},this.has=function(t){var n=i(t,e);return n!==-1}}),e.exports=r},function(e,t,n){var i=n(9),r=n(10),a=r.cleanData,o=i.event.special,s="dxremove",l="dxRemoveEvent";r.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(s))}return a(e)},o[s]={noBubble:!0,setup:function(){i(this).prop(l,!0)}},e.exports=s},function(e,t,n){var i=n(9),r=n(15),a=n(11).extend,o=n(25),s=n(49),l=n(7),c=n(50),u=n(14),d=n(12),h=n(51),p=n(45),f=n(53),_=u.isFunction,g=u.noop,m={},v={},y=o.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(),r=function(e,t){return t=i.makeArray(t),1===t.length&&d.isEmptyObject(t[0])||u.findBestMatches(e,t).length>0},o=0;o<e.length;o++){var s,l=e[o],c=l.device||{};s=_(c)?c(n):r(n,c),s&&a(t,l.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=_(t)&&_(n)?t.toString()===n.toString():u.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,r=n!==n;return!(!i||!r)||(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 r=[e].concat(i._getOptionAliasesByName(e)),o=0;o<r.length;o++){var s=r[o],l={name:s.split(/[.\[]/)[0],fullName:s,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(r){return arguments.length||(r={}),d.isPlainObject(r)||(r={actionValue:r}),n=n||new s(e,a(t,i._defaultActionConfig())),n.execute.call(n,a(r,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,a,o=this,s=function(){if(!i){if(t=t||{},"string"!=typeof e)throw l.Error("E0008");0===e.indexOf("on")&&(i=o._getEventName(e)),a=o.option(e)}if(n||a||t.beforeExecute||t.afterExecute||o.hasEvent(i)){if(!n){var s=t.beforeExecute;t.beforeExecute=function(e){o.fireEvent(i,e.args),s&&s.apply(o,arguments)},o._suppressDeprecatedWarnings(),n=o._createAction(a,t),o._resumeDeprecatedWarnings()}if(r().wrapActionsBeforeExecute){var c=o.option("beforeActionExecute")||g;n=c(o,n,t)||n}return n.apply(o,arguments)}};if(!r().wrapActionsBeforeExecute){var c=o.option("onActionCreated")||g;s=c(o,s,t)||s}return s},_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 r=0;r<e._cachedDeprecateNames.length;r++)if(e._cachedDeprecateNames[r]===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=m[t];return i||(i=m[t]=c.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},r=function(e,r){delete e[r];var a=t(r),o=n(r),s=a?i(e,a,!1):e;s&&delete s[o]},a=function(e,r,a){var o,s="";do s&&(s="."+s),s=n(r)+s,r=t(r),o=r?i(e,r,!1):e;while(!o);o[s]=a},o=function(t,n,i,o){if(i){var s=e(t,i);s&&s!==i&&(a(n,s,o),r(n,i))}},s=function(e,t,n,i){if(d.isPlainObject(i))for(var r in i)s(e,t,n+"."+r,i[r]);o(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 r=i(e._options,t,!1);e._optionValuesEqual(t,r,n)||(e._initialized&&e._optionChanging(t,r,n),l(e,t,n),e._notifyOptionChanged(t,n,r))};return function(t,n){var r=this,a=t;if(arguments.length<2&&"object"!==u.type(a))return a=e(r,a),i(r._options,a);"string"==typeof a&&(t={},t[a]=n),r.beginUpdate();try{var o;for(o in t)s(r,t,o,t[o]);for(o in t)h(r,o,t[o])}finally{r.endUpdate()}}}()}).include(h);e.exports=y},function(e,t,n){var i=n(9),r=n(15),a=n(14),o=n(12),s=n(25),l=s.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),r=e.args[0];if(!r||!r.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 r=n[i];if(r.validate&&r.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=l.executors;for(var i in n){var r=n[i];if(r.execute&&r.execute(e),e.handled){t=e.result;break}}return t}});l.executors={},l.registerExecutor=function(e,t){return o.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){r().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),r=n(7),a=n(25),o=n(27),s=n(14),l=n(12),c=n(28),u=c.unwrap,d=c.isWrapped,h=c.assign,p=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},f=function(e,t){return"this"===t?e:e[t]},_=function(e,t,n,i){if("this"===t)throw new r.Error("E4016");var a=e[t];i.unwrapObservables&&d(a)?h(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},m=function(e,t){return t.unwrapObservables?u(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,r=m(e,n),a=0;a<t.length&&r;a++){var o=m(r[t[a]],n);!i&&s.isFunction(o)&&(o=o.call(r)),r=o}return r}}return Array.isArray(e)?y(e):s.isFunction(e)?e:void 0},y=function(e){for(var t={},n=0,r=e.length;n<r;n++){var a=e[n];t[a]=v(a)}return function(e,n){var r;return i.each(t,function(t){var i,a,o,s,l=this(e,n);if(void 0!==l){for(i=r||(r={}),a=t.split("."),o=a.length-1,s=0;s<o;s++)i=i[a[s]]={};i[a[s]]=l}}),r}},b=function(e){e=e||"this",e=p(e);var t=e.lastIndexOf("."),n=v(e.substr(0,t)),r=e.substr(1+t);return function(e,t,a){a=g(a);var c=n(e,{functionsAsIs:a.functionsAsIs,unwrapObservables:a.unwrapObservables}),u=f(c,r);a.functionsAsIs||!s.isFunction(u)||d(u)?(u=m(u,a),!a.merge||!l.isPlainObject(t)||void 0!==u&&!l.isPlainObject(u)||t instanceof i.Event?_(c,r,t,a):(u||_(c,r,{},a),c=m(f(c,r),a),o.deepExtendArraySafe(c,t,!1,!0))):c[r](t)}},x=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=b,t.toComparable=x},function(e,t,n){var i=n(9),r=n(52),a=n(12).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new r(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),r=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,r=this._events[e];r||(r=i.Callbacks(),this._events[e]=r),n=r.originalAdd||r.add,n.call(r,t)},off:function(e,t){var n=this._events[e];n&&(r(t)?n.remove(t):n.empty())},dispose:function(){i.each(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(9),r=n(11).extend,a=n(12).isPlainObject,o=n(25),s=n(7),l=n(44).resizeCallbacks,c=n(51),u=n(54).sessionStorage,d=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},_={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 r=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return r?a.push(parseInt(r[1],10),parseInt(r[2],10)):(r=e.match(/msapphost(\/(\d+).(\d+))?/i),r&&a.push(3===parseInt(r[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)]:[],r=480===window.screen.height,a=r?"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)]:[],r=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=r?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},g=o.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]&&s.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 r({},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]),m.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 s.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=u();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=r({},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 r(t,n)},_fromUA:function(e){var t;if(i.each(_,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),r=f;return r.mac=n,r},_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),m=new g;d.changeCallback.add(function(e,t){m.detachCssClasses(t),m.attachCssClasses(e)}),m.isForced()||"win"!==m.current().platform||m.current({version:[10]}),e.exports=m},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),r=n(56).ready,a=i.Callbacks(),o=i(),s=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);o=n;var r=!!n.length,l=s();e=r?n:i("body"),a.fire(r?s():i(),l)}}();r(function(){s(".dx-viewport")}),t.value=s,t.changeCallback=a,t.originalViewPort=function(){return o}},function(e,t,n){var i=n(9),r=n(7),a=n(26).inArray,o=n(14),s=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),r=i(t);if(n[0]===r[0])return n[0];for(var a=n.parents(),o=r.parents(),s=Math.min(a.length,o.length),l=-s;l<0;l++)if(a.get(l)===o.get(l))return a.get(l)},u=function(e){var t=".dx-visibility-change-handler";return function(n){for(var r=i(n||"body"),a=r.filter(t).add(r.find(t)),o=0;o<a.length;o++)i(a[o]).triggerHandler(e)}},d=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 r.Error("E3018",e,n)}return t},f=function(e,t){var n=[],r="["+h+"]",o=e.find(r).add(e.filter(r));return o.each(function(e,r){var o=i(r),s=p(r);for(var l in s)(!t||a(l,t)>-1)&&o[l]&&(o[l](s[l]),n.push(o[l]("instance")))}),n},_=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=o.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},m=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.ready=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)},t.resetActiveElement=s,t.createMarkupFromString=_,t.triggerShownEvent=u("dxshown"),t.triggerHidingEvent=u("dxhiding"),t.triggerResizeEvent=u("dxresize"),t.getElementOptions=p,t.createComponents=f,t.normalizeTemplateElement=g,t.clearSelection=l,t.uniqueId=d,t.closestCommonParent=c,t.clipboardText=v,t.toggleAttr=m},function(e,t,n){var i=n(9),r=n(10),a=n(7),o=n(58),s=n(45),l=new o,c=function(e,t,n){n?t[e]=n:n=t,s.name(n,e),l.fire(e,n)};c.callbacks=l;var u=function(e,t){i.fn[e]=r.fn[e]=function(n){var r,o="string"==typeof n;if(o){var s=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[s],o=i.apply(n,l);void 0===r&&(r=o)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),r=this;return r}};l.add(u),e.exports=c},function(e,t,n){var i=n(9),r=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=r},function(e,t){var n=1e3/60,i=function(e){return this.setTimeout(e,n)},r=function(e){this.clearTimeout(e)},a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,o=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;if(a&&o&&(i=a,r=o),a&&!o){var s={};i=function(e){var t=a.call(window,function(){try{if(t in s)return;e.apply(this,arguments)}finally{delete s[t]}});return t},r=function(e){s[e]=!0}}t.requestAnimationFrame=i.bind(window),t.cancelAnimationFrame=r.bind(window)},function(e,t,n){var i=n(9),r=n(11).extend,a=n(44).resizeCallbacks,o=n(61),s=n(53),l=function(e){e=r({},e);var t=s.real(),n=e.allowZoom,l=e.allowPan,c="allowSelection"in e?e.allowSelection:"generic"===t.platform,u="meta[name=viewport]";i(u).length||i("<meta />").attr("name","viewport").appendTo("head");var d=["width=device-width"],h=[];if(n?h.push("pinch-zoom"):d.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&&o.supportProp("user-select")&&i(".dx-viewport").css(o.styleProp("user-select"),"none"),i(u).attr("content",d.join()),i("html").css("-ms-touch-action",h.join(" ")||"none"),t=s.real(),!o.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,r=!n&&t>1,a=!l&&1===t&&!e.isScrollingEvent;i&&(r||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),r=n(26).inArray,a=n(53),o=i.camelize,s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=document.createElement("dx").style,u={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},d=function(e,t){e=o(e,!0);for(var n,i=0,r=s.length;i<r;i++){var a=s[i],l=a+e,c=o(l);if(n=t(c,a),void 0===n&&(n=t(l,a)),void 0!==n)break}return n},h=function(e){return d(e,function(e){if(e in c)return e})},p=function(e){return d(e,function(e,t){if(e in c)return l[t]})},f=function(e){return!!h(e)},_=function(){var e=a.real(),t=e.platform,n=e.version,i=n&&n[0]<4&&"android"===t,o=!i&&r(t,["ios","android","win"])>-1||e.mac;return o},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}},m="ontouchstart"in window&&!("callPhantom"in window),v=!!window.navigator.pointerEnabled||!!window.navigator.msPointerEnabled,y=!!window.navigator.maxTouchPoints||!!window.navigator.msMaxTouchPoints;t.touchEvents=m,t.pointerEvents=v,t.touch=m||v&&y,t.transition=f("transition"),t.transitionEndEventName=u[h("transition")],t.animation=f("animation"),t.nativeScrolling=_(),t.styleProp=h,t.stylePropPrefix=p,t.supportProp=f,t.hasKo=!!window.ko,t.inputType=g},function(e,t,n){function i(e){function t(){for(;o.length;){s=!0;var e=o.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw r.Error("E0015")}}s=!1}function n(n,i){e?(o[0]&&i&&i(o[0]),o=[n]):o.push(n),s||t()}function i(){return s}var o=[],s=!1;return{add:n,busy:i}}var r=n(7),a=n(16).when;t.create=i,t.enqueue=i().add},function(e,t,n){function i(e){return b[y(e)]||""}function r(e,t,n){var i=new Date(e.getTime()),r=c(t)?F(t.toLowerCase()):t;return r.years&&i.setFullYear(i.getFullYear()+r.years*n),r.quarters&&i.setMonth(i.getMonth()+3*r.quarters*n),r.months&&i.setMonth(i.getMonth()+r.months*n),r.weeks&&i.setDate(i.getDate()+7*r.weeks*n),r.days&&i.setDate(i.getDate()+r.days*n),r.hours&&i.setHours(i.getHours()+r.hours*n),r.minutes&&i.setMinutes(i.getMinutes()+r.minutes*n),r.seconds&&i.setSeconds(i.getSeconds()+r.seconds*n),r.milliseconds&&i.setMilliseconds(e.getMilliseconds()+r.milliseconds*n),i}var a=n(9),o=n(14),s=n(39).camelize,l=o.isObject,c=o.isString,u=o.isDate,d=o.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(),r=p(n)||1;return Math.floor(i/r)},_=function(e,t){var n=y(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},g=function(e){var t,n,i,r=["millisecond","second","minute","hour","day","month","year"],a={};for(t=r.length-1;t>=0;t--)i=r[t],n=Math.floor(e/p(i)),n>0&&(a[i+"s"]=n,e-=v(i,n));return a},m=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},y=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]):""},b={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},x=function(e){return Math.floor(e/3)},S=function(e){return 3*x(e)},w=function(e,t,n){e=new Date(e.getTime());var i,r=new Date(e.getTime()),a=y(t);switch(a){case"second":e.setMilliseconds(0);break;case"minute":e.setSeconds(0,0);break;case"hour":e.setMinutes(0,0,0);break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e.setDate(e.getDate()-e.getDay()),e.setHours(0,0,0,0);break;case"quarter":i=S(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(r,e),e},k=function(e){return ie.correctDateWithUnitBeginning(e,"day")},C=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},T=function(e,t,n){var i=n?-1:1;return u(e)?r(e,t,i):e+t*i},E=function(e,t,n){var i,r=[];for(r.push(u(e)?new Date(e.getTime()):e),i=e;i<t;)i=T(i,n),r.push(i);return r},A=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(U(t),t.getMonth(),t.getDate()):"century"===e?new Date(W(t),t.getMonth(),t.getDate()):void 0},I=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),D(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(U(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(W(t)+90,t.getMonth(),t.getDate()):void 0},O=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(U(t)),"century"===e&&n.setFullYear(W(t)),n))},M=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),D(t));return"month"===e?n:(n.setMonth(11),n.setDate(D(n)),"year"===e?n:("decade"===e&&n.setFullYear(U(t)+9),"century"===e&&n.setFullYear(W(t)+99),n))},D=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},P=function(e,t,n){return ie[s("same "+e)](t,n)},L=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},B=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},R=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},F=function(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.days=7;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t},z=function(e,t){return H(e,t)&&e.getDate()===t.getDate()},H=function(e,t){return N(e,t)&&e.getMonth()===t.getMonth()},N=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},G=function(e,t){if(d(e)&&d(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},j=function(e,t){if(d(e)&&d(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},W=function(e){return e&&e.getFullYear()-e.getFullYear()%100},U=function(e){return e&&e.getFullYear()-e.getFullYear()%10},Y=function(){return"yyyy/MM/dd"},K=function(e){if(d(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},$=function(e){if(d(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},X=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},q=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")),Q(e,t,n)===e},Q=function(e,t,n){var i=e;return d(e)?(d(t)&&e<t&&(i=t),d(n)&&e>n&&(i=n),i):e},J=function(e,t){if(d(e)){var n,i,r=t.getHours()-e.getHours();0!==r&&(n=1===r||r===-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:m,getNextDateUnit:_,convertDateUnitToMilliseconds:v,getDateUnitInterval:y,getDateFormatByTickInterval:i,getDatesDifferences:C,correctDateWithUnitBeginning:w,trimTime:k,addDateInterval:r,addInterval:T,getSequenceByInterval:E,getDateIntervalByString:F,sameDate:z,sameMonthAndYear:H,sameMonth:H,sameYear:N,sameDecade:G,sameCentury:j,sameView:P,getDifferenceInMonth:V,getDifferenceInMonthForCells:R,getFirstYearInDecade:U,getFirstDecadeInCentury:W,getShortDateFormat:Y,getViewFirstCellDate:A,getViewLastCellDate:I,getViewDown:B,getViewUp:L,getLastMonthDay:D,getLastMonthDate:$,getFirstMonthDate:K,getFirstWeekDate:X,normalizeDateByWeek:q,getQuarter:x,getFirstQuarterMonth:S,dateInRange:Z,roundToHour:ee,normalizeDate:Q,getViewMinBoundaryDate:O,getViewMaxBoundaryDate:M,fixTimezoneGap:J,getTimezonesDifference:te,makeDate:ne,getDatesInterval:f};e.exports=ie},function(e,t,n){var i=n(9),r=i.Callbacks();e.exports=function(){r.fire()},e.exports.processCallback=r},function(e,t,n){var i=n(26).inArray,r=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 r.fire()},e.exports.hideCallback=r},function(e,t,n){var i=n(14),r=n(12),a=n(63),o=n(32),s=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||r.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)?o.format(e,t):i.isDate(e)?s.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 s.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 s.format(e,"dayofweek")+", "+s.format(e,"day")};return t.unshift(n),this._normalizeFormat(t)}return this._normalizeFormat(t)},getDateFormatByTicks:function(e){var t,n,i,r;if(e.length>1)for(n=a.getDatesDifferences(e[0],e[1]),r=1;r<e.length-1;r++)i=a.getDatesDifferences(e[r],e[r+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 r,o,s,l={week:"day"},c=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},u=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,o=a.getDatesDifferences(e,t),e!==t&&u(o,e>t?t:e,e>t?e:t),s=a.getDateUnitInterval(o),c(o,s,!0),s=a.getDateUnitInterval(n||"second"),c(o,s,!1),o[l[s]||s]=!0,r=this.getDateFormatByDifferences(o)}})},function(e,t,n){var i=n(9),r=n(48),a=n(11).extend,o=n(53),s=n(68),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",u=r.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 o.current().android||o.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,r){var a=n.parent().width()*t,o=r.direction,l=i(r);return l.to={left:0,opacity:1},"forward"===o?l.from={left:a,opacity:e}:"backward"===o?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,r){var a=n.parent().width()*t,o=r.direction,l=i(r);return l.from={left:0,opacity:1},"forward"===o?l.to={left:-a,opacity:e}:"backward"===o?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,r=t(n);return r.delay="none"===i?r.delay:r.duration,r.from="dx-enter dx-opendoor-animation"+l[i],r.to="dx-enter-active",s.createAnimation(e,r)},leave:function(e,n){var i=n.direction,r=t(n);return r.from="dx-leave dx-opendoor-animation"+l[i],r.to="dx-leave-active",s.createAnimation(e,r)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var r=t,a=i.direction;return r.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,r.from="dx-enter dx-win-pop-animation"+l[a],r.to="dx-enter-active",s.createAnimation(n,r)},leave:function(n,i){var r=t,a=i.direction;return r.delay=e.option("defaultAnimationDelay"),r.from="dx-leave dx-win-pop-animation"+l[a],r.to="dx-leave-active",s.createAnimation(n,r)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];i.each(this._registeredPresets,function(i,r){e&&e!==r.name?n.push(r):t.option(t._getPresetOptionName(r.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 r={device:i.config.device,options:{}};r.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(r)}),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 o.current().android||o.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!o.current().android&&!o.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!o.current().android&&!o.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return o.current().android||o.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=u;var d=new u;t.presets=d},function(e,t,n){var i=n(9),r=n(7),a=n(11).extend,o=n(14),s=n(12),l=n(69),c=n(59),u=n(61),d=n(70),h=n(47),p=n(71),f=n(16).when,_=u.transitionEndEventName+".dxFX",g=p.addNamespace(h,"dxFX"),m=o.isFunction,v=s.isPlainObject,y=o.noop,b=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,x=/^([+-])=(.*)/i,S="dxAnimData",w="dxAnimQueue",k="transform",C={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):se(e,t.from);var n=this,r=i.Deferred(),a=t.cleanupWhen;t.transitionAnimation={deferred:r,finish:function(){n._finishTransition(e),a?f(r,a).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),r.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){r.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,r,a=this,o=i.now()+t.delay,s=i.Deferred(),l=i.Deferred(),c=i.Deferred();return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(r),e.off(_),e.off(g)},e.one(_,function(){i.now()-o>=t.duration&&l.reject()}).off(g).on(g,function(){a.stop(e,t),s.reject()}),r=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ce._simulatedTransitionEndDelay),f(l,c).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&se(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)))}},T={initAnimation:function(e,t){se(e,t.from)},animate:function(e,t){var n=i.Deferred(),r=this;return t?(i.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=r._normalizeValue(e.css(n)))}),t.to[k]&&(t.from[k]=r._parseTransform(t.from[k]),t.to[k]=r._parseTransform(t.to[k])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:M(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(){r._startAnimation(e,t)},t.delay)):r._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),r=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),r&&r[1]&&(t.scale=parseFloat(r[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 r=this;n.animationFrameId=c.requestAnimationFrame(function(){r._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function(r,a){var o=Array.isArray(a)?[]:{},s=function(n){var o=t/e.duration,s=t,l=1*r[n],c=a[n]-r[n],u=e.duration;return i.easing[e.easing](o,s,l,c,u)};return i.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(o[e]="object"==typeof t?n(r[e],t):s(e))}),o};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},E={initAnimation:function(){},animate:function(){return i.Deferred().resolve().promise()},stop:y,isSynchronous:!0},A={transition:u.transition?C:T,frame:T,noAnimation:E},I=function(e){e=e||{};var t=e.strategy||"transition";return"css"!==e.type||u.transition||(t="noAnimation"),A[t]},O={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)"},M=function(e){e=O[e]||e;var t=e.match(b);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(!m(i.easing[n])){var r=function(e,t,n,i){var r=3*e,a=3*(n-e)-r,o=1-r-a,s=3*t,l=3*(i-t)-s,c=1-s-l,u=function(e){return e*(r+e*(a+e*o))},d=function(e){return e*(s+e*(l+e*c))},h=function(e){for(var t,n=e,i=0;i<14&&(t=u(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return r+e*(2*a+3*e*o)};return function(e){return d(h(e))}};i.easing[n]=function(e,n,i,a,o){return a*r(t[0],t[1],t[2],t[3])(n/o)+i}}return n},D=function(e,t,n,a){i.each(["from","to"],function(){if(!n(e[this]))throw r.Error("E0010",t,this,a)})},P=function(e,t){return D(e,t,function(e){return v(e)},"a plain object")},L=function(e,t){return D(e,t,function(e){return"string"==typeof e},"a string")},B={setup:function(){}},V={validateConfig:function(e){L(e,"css")},setup:function(){}},R={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},F={validateConfig:function(e){P(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},R[t.direction]),oe(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=x.exec(e)))return parseInt(t[1]+"1")*t[2]}},z={setup:function(e,t){var n,i=t.from,r=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:r},t.to={opacity:n}}},H={validateConfig:function(e){P(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,r="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,o="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:r};var c=l.getTranslate(e);t.from[k]=this._getCssTransform(c,o),t.to={opacity:a},t.to[k]=this._getCssTransform(c,s)},_getCssTransform:function(e,t){return l.getTranslateCss(e)+"scale("+t+")"}},N={custom:B,slide:F,slideIn:F,slideOut:F,fade:z,fadeIn:z,fadeOut:z,pop:H,css:V},G=function(e){var t=N[e.type];if(!t)throw r.Error("E0011",e.type);return t},j={type:"custom",from:{},to:{},duration:400,start:y,complete:y,easing:"ease",delay:0},W={duration:400,easing:"ease",delay:0},U=function(){var e=this,t=e.element,n=e.config;oe(t,n.from),oe(t,n.to),e.configurator.setup(t,n),t.data(S,e),ce.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start&&n.start.apply(this,[t,n])},Y=function(e){var t=e.element,n=e.config;t.removeData(S),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(){Y(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},$=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},X=p.addNamespace(h,"dxFXStartAnimation"),q=function(e){e.element.off(X).on(X,function(){ce.stop(e.element)}),e.deferred.always(function(){e.element.off(X)})},Z=function(e,t){var n="css"===t.type?W:j,r=a(!0,{},n,t),o=G(r),s=I(r),l={element:i(e),config:r,configurator:o,strategy:s,isSynchronous:s.isSynchronous,setup:U,start:K,stop:$,deferred:i.Deferred()};return m(o.validateConfig)&&o.validateConfig(r),q(l),l},Q=function(e,t){var n=i(e);if(!n.length)return i.Deferred().resolve().promise();var r=Z(n,t);return J(n,r),r.deferred.promise()},J=function(e,t){var n=ee(e);te(e,n),n.push(t),ie(e)||re(e,n)},ee=function(e){return e.data(w)||[]},te=function(e,t){e.data(w,t)},ne=function(e){e.removeData(w)},ie=function(e){return!!e.data(S)},re=function(e,t){if(t=ee(e),t.length){var n=t.shift();0===t.length&&ne(e),ae(n).done(function(){ie(e)||re(e)})}},ae=function(e){return e.setup(),ce.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},oe=function(e,t){if(t&&t.position){var n=d.calculate(e,t.position),i=e.offset(),r=e.position();a(t,{left:n.h.location-i.left+r.left,top:n.v.location-i.top+r.top}),delete t.position}},se=function(e,t){i.each(t,function(t,n){try{e.css(t,n)}catch(e){}})},le=function(e,t){var n=i(e),r=ee(n);i.each(r,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ie(n)||re(n,r);var a=n.data(S);a&&a.stop(t),n.removeData(S),ne(n)},ce={off:!1,animationTypes:N,animate:Q,createAnimation:Z,isAnimating:ie,stop:le,_simulatedTransitionEndDelay:100};e.exports=ce},function(e,t,n){var i=n(9),r=n(14).type,a="dxTranslator",o=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=d(e);return{left:t.x,top:t.y}},c=function(e,t){var n,i=t.left,r=t.top;void 0===i?(n=d(e),n.y=r||0):void 0===r?(n=d(e),n.x=i||0):(n={x:i||0,y:r||0,z:0},h(e,n)),e.css({transform:g(n)}),(u(i)||u(r))&&p(e)},u=function(e){return"string"===r(e)&&"%"===e[e.length-1]},d=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}),r=n.match(o),s=r&&r[1];r?(r=r[2].split(","),"3d"===s?r=r.slice(12,15):(r.push(0),r=r.slice(4,7))):r=[0,0,0],t={x:parseFloat(r[0]),y:parseFloat(r[1]),z:parseFloat(r[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)},_=function(e){var t=e.match(s);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=u(e.x)?e.x:e.x+"px",n=u(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=c,t.locate=l,t.clearCache=p,t.parseTranslate=_,t.getTranslate=d,t.getTranslateCss=g,t.resetPosition=f},function(e,t,n){var i,r=n(9),a=n(14),o=n(18),s=n(11).extend,l=n(69),c=n(61),u=/left|right/,d=/top|bottom/,h=/fit|flip|none/,p=function(e){var t={h:"center",v:"center"},n=a.splitPair(e);return n&&r.each(n,function(){var e=String(this).toLowerCase();u.test(e)?t.h=e:d.test(e)&&(t.v=e)}),t},f=function(e){return o.pairToObject(e)},_=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}},m=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},v=function(e,t){var n=0;return e.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},y=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},b=function(e){e.myLocation=e.atLocation+g(e.atAlign)*e.atSize-g(e.myAlign)*e.mySize+e.offset},x={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=s({},e,{myAlign:m(e.myAlign),atAlign:m(e.atAlign),offset:-e.offset});b(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}},S=function(){var e=r("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(r("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},w={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},k=function(e,t){var n=r(e),o=n.offset(),l=s(!0,{},w,{h:{location:o.left},v:{location:o.top}});if(!t)return l;var u=p(t.my),d=p(t.at),h=t.of||window,g=f(t.offset),m=_(t.collision),k=t.boundary,C=f(t.boundaryOffset),T={mySize:n.outerWidth(),myAlign:u.h,atAlign:d.h,offset:g.h,collision:m.h,boundaryOffset:C.h},E={mySize:n.outerHeight(),myAlign:u.v,atAlign:d.v,offset:g.v,collision:m.v,boundaryOffset:C.v};if(h.preventDefault)T.atLocation=h.pageX,E.atLocation=h.pageY,T.atSize=0,E.atSize=0;else if(h=r(h),a.isWindow(h[0]))T.atLocation=h.scrollLeft(),E.atLocation=h.scrollTop(),T.atSize=h[0].innerWidth>h[0].outerWidth?h[0].innerWidth:h.width(),E.atSize=h[0].innerHeight>h[0].outerHeight?h[0].innerHeight:h.height();else if(9===h[0].nodeType)T.atLocation=0,E.atLocation=0,T.atSize=h.width(),E.atSize=h.height();else{var A=h.offset();T.atLocation=A.left,E.atLocation=A.top,T.atSize=h.outerWidth(),E.atSize=h.outerHeight()}b(T),b(E);var I=function(){var e=r(window),t=e.width(),n=e.height(),a=e.scrollLeft(),o=e.scrollTop(),s=document.width>document.documentElement.clientWidth,l=document.height>document.documentElement.clientHeight,u=c.touch?document.documentElement.clientWidth/(l?t-i:t):1,d=c.touch?document.documentElement.clientHeight/(s?n-i:n):1;void 0===i&&S();var h=t,p=n;if(k){var f=r(k),_=f.offset();a=_.left,o=_.top,h=f.width(),p=f.height()}return{h:{min:a+T.boundaryOffset,max:a+h/u-T.mySize-T.boundaryOffset},v:{min:o+E.boundaryOffset,max:o+p/d-E.mySize-E.boundaryOffset}}}();T.oversize=v(T,I.h),E.oversize=v(E,I.v),T.collisionSide=y("h",T,I.h),E.collisionSide=y("v",E,I.v),x[T.collision]&&x[T.collision](T,I.h),x[E.collision]&&x[E.collision](E,I.v);var O=function(e){return t.precise?e:Math.round(e)};return s(!0,l,{h:{location:O(T.myLocation),oversize:O(T.oversize),fit:T.fit,flip:T.flip,collisionSide:T.collisionSide},v:{location:O(E.myLocation),oversize:O(E.oversize),fit:E.fit,flip:E.flip,collisionSide:E.collisionSide},precise:t.precise}),l},C=function(e,t){var n=r(e);if(!t)return n.offset();l.resetPosition(n);var i=n.offset(),a=t.h&&t.v?t:k(n,t),o=function(e){return t.precise?e:Math.round(e)};return l.move(n,{left:a.h.location-o(i.left),top:a.v.location-o(i.top)}),a},T=function(e){return e=r(e).get(0),a.isWindow(e)?null:e instanceof r.Event?{top:e.pageY,left:e.pageX}:r(e).offset()};C.inverseAlign||(C.inverseAlign=m),C.normalizeAlign||(C.normalizeAlign=p),e.exports={calculateScrollbarWidth:S,calculate:k,setup:C,offset:T}},function(e,t,n){var i=n(9),r=n(7),a=n(11).extend,o=n(72).copy,s=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"===s(e)},c=function(e){return"mouse"===s(e)},u=function(e){return"touch"===s(e)},d=function(e){return"pointer"===s(e)},h=function(e){return c(e)||(d(e)||l(e))&&"mouse"===e.pointerType},p=function(e){return u(e)||(d(e)||l(e))&&"touch"===e.pointerType},f=function(e){return"keyboard"===s(e)},_=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},g=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},m=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},v=function(e){return u(e)?(e.originalEvent.touches||[]).length:l(e)?(e.pointers||[]).length:0},y=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)},b=function(e,t){var n=o(e);return t&&a(n,t),n},x=function(e){var t=b(e.originalEvent,e);return i.event.trigger(t,null,e.delegateTarget||t.target),t},S=function(e,t){if(!t)throw r.Error("E0017");return"string"==typeof e?e.indexOf(" ")===-1?e+"."+t:S(e.split(/\s+/g),t):(i.each(e,function(n,i){e[n]=i+"."+t}),e.join(" "))};e.exports={eventSource:s,isPointerEvent:d,isMouseEvent:h,isTouchEvent:p,isKeyboardEvent:f,isFakeClickEvent:_,hasTouches:v,eventData:g,eventDelta:m,needSkipEvent:y,createEvent:b,fireEvent:x,addNamespace:S}},function(e,t,n){var i=n(9),r=n(17).compare,a=n(14).isNumeric,o=n(73),s=["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(r(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(s,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 u={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};o.callbacks.add(function(e){i.event.fixHooks[e]=u});var d=function(e){for(var t=e.originalEvent,n=i.event.fixHooks[t.type]||i.event.mouseHooks,r=n.props?i.event.props.concat(n.props):i.event.props,a=r.length;a--;){var o=r[a];e[o]=t[o]}return n.filter?n.filter(e,t):e};t.copy=function(e){return d(i.Event(e))}}else i.each(s,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),r=n(58),a=new r,o=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,r){t[r]&&(n[r]=function(){var e=i.makeArray(arguments);return e.unshift(this),t[r].apply(t,e)})}),a.fire(e,n)};o.callbacks=a;var s=function(e,t){i.event.special[e]=t};a.add(s),e.exports=o},function(e,t,n){var i=n(9),r=n(25),a=n(11).extend,o=n(14),s=n(12),l=n(68),c=n(67),u=n(16).when,d={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},h="dx-animating",p=r.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,r){var a,o=this,s=[];return n=n||{},a=this._prepareElementAnimationConfig(t,n,r),a&&e.each(function(){var e=o._createAnimation(i(this),a,n);e&&(e.element.addClass(h),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var r=e;e=c.presets.getPreset(r)}if(e)if(o.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var s="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+d[i.direction];i.type="css",i.from=(i.from||s)+l,i.to=i.to||s+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=l.createAnimation(e,t):o.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=u.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),o.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),r=n(53),a=n(56),o=n(59),s=n(71),l=n(76),c=n(83),u=n(84),d=n(17).compare,h="dxclick",p=10,f=Math.abs,_=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},g={requestAnimationFrame:o.requestAnimationFrame,cancelAnimationFrame:o.cancelAnimationFrame},m=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=s.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===l.cancel?void this._cancel(e):(_(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,r=!i.contains(t,n)&&t!==n,a=s.eventDelta(s.eventData(e),this._startEventData),o=f(a.x)>p||f(a.y)>p;return r||o},_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=r.real(),n=t.generic||t.ios&&d(t.version,[9,3])>=0||t.android&&d(t.version,[5])>=0,a=function(t){return n||i(t).closest("."+e).length},o=null,l=null,c=function(e){var t=e.originalEvent,n=l!==t,i=!e.which||1===e.which;i&&!o&&a(e.target)&&n&&(l=t,s.fireEvent({type:h,originalEvent:e}))};m=m.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){o=null,a(e.target)||this.callBase(e)},end:function(e){a(e.target)||this.callBase(e)},cancel:function(){o=!0},dispose:function(){this.callBase(),this.getElement().off("click",c)}})}(),function(){var e=r.real().generic;if(!e){var t=null,n=!1,o=function(e){t=e.target,n=e.isDefaultPrevented()},c=function(e){var r=i(e.target);n||!t||r.is(t)||i(t).is("label")||!_(r)||a.resetActiveElement(),t=null,n=!1},u="NATIVE_CLICK_FIXER";i(document).on(s.addNamespace(l.down,u),o).on(s.addNamespace("click",u),c)}}(),u({emitter:m,bubble:!0,events:[h]}),t.name=h},function(e,t,n){var i=n(9),r=n(61),a=n(53),o=n(73),s=n(77),l=n(79),c=n(81),u=n(82),d=function(){if(r.pointerEvents)return l;var e=a.real();return!r.touch||e.tablet||e.phone?r.touch?s:c:u}();i.each(d.map,function(e,t){o(e,new d(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),r=n(53),a=n(11).extend,o=n(78),s={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"===r.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},u=o.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))}});u.map=s,u.normalize=l,e.exports=u},function(e,t,n){var i=n(9),r=n(23),a=n(25),o=n(71),s="dxPointerEvents",l=a.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=o.addNamespace(t,s),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||o.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:r.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return o.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!=="."+s&&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,r=n(78),a=n(80),o=n(11).extend,s=!window.PointerEvent&&window.MSPointerEvent,l={dxpointerdown:s?"MSPointerDown":"pointerdown",dxpointermove:s?"MSPointerMove":"pointermove",dxpointerup:s?"MSPointerUp":"pointerup",dxpointercancel:s?"MSPointerCancel":"pointercancel",dxpointerover:s?"MSPointerOver":"pointerover",dxpointerout:s?"MSPointerOut":"pointerout",dxpointerenter:s?"mouseenter":"pointerenter",dxpointerleave:s?"mouseleave":"pointerleave"},c=!1,u=function(){c||(i=new a(l,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),c=!0)},d=r.inherit({ctor:function(){this.callBase.apply(this,arguments),u()},_fireEvent:function(e){return this.callBase(o({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});d.map=l,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(9),r=function(e,t){e.split(" ").forEach(function(e){document.addEventListener(e,t,!0)})},a=function(e,t,n){n=n||function(){};var a=[],o=function(e){var n=-1;return i.each(a,function(i,r){return!t(e,r)||(n=i,!1)}),n},s=function(e){o(e)===-1&&(n(e),a.push(e))},l=function(e){var t=o(e);t>-1&&a.splice(t,1)},c=function(e){a[o(e)]=e};r(e.dxpointerdown,s),r(e.dxpointermove,c),r(e.dxpointerup,l),r(e.dxpointercancel,l),this.pointers=function(){return a},this.reset=function(){a=[]}};e.exports=a},function(e,t,n){var i,r=n(11).extend,a=n(78),o=n(80),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},c=!1,u=function(){c||(i=new o(s,function(){return!0}),c=!0)},d=a.inherit({ctor:function(){this.callBase.apply(this,arguments),u()},_fireEvent:function(e){return this.callBase(r(l(e.originalEvent),e))}});d.map=s,d.normalize=l,d.activate=u,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(11).extend,r=n(78),a=n(81),o=n(77),s=n(71),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c=!1,u=function(){c||(a.activate(),c=!0)},d=r.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),u()},_handler:function(e){var t=s.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=s.isMouseEvent(e.originalEvent),n=t?a.normalize:o.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});d.map=l,d.resetObserver=a.resetObserver,e.exports=d},function(e,t,n){var i=n(9),r=n(14).noop,a=n(25),o=n(11).extend,s=n(71),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===s.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){o(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:r,move:r,end:r,cancel:r,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=o({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=s.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:r});e.exports=l},function(e,t,n){var i=n(9),r=n(25),a=n(11).extend,o=n(26).inArray,s=n(73),l=n(71),c=n(76),u=n(85),d="dxEventManager",h="dxEmitter",p=r.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,d),this._pointerDownHandler.bind(this)).on(l.addNamespace(c.move,d),this._pointerMoveHandler.bind(this)).on(l.addNamespace([c.up,c.cancel].join(" "),d),this._pointerUpHandler.bind(this)).on(l.addNamespace(u.name,d),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||[],r=t.length!==n.length;return i.each(t,function(e,t){return r=r||n[e]!==t,!r}),this._emittersSet=t,r},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),r.push(i))}for(var n=this,r=[],a=i(e.target);a.length;){var o=i.data(a.get(0),h)||[];i.each(o,t),a=a.parent()}return r},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=o(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,r=i?"pageY":"pageX";e[r]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),f=new p,_="dxEmitterSubscription",g=function(e){var t=e.emitter,n=e.events[0],r=e.events;i.each(r,function(o,l){s(l,{noBubble:!e.bubble,setup:function(e){var r=i.data(e,_)||{},a=i.data(e,h)||{},o=a[n]||new t(e);r[l]=!0,a[n]=o,i.data(e,h,a),i.data(e,_,r)},add:function(e,t){var r=i.data(e,h),o=r[n];o.configure(a({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=i.data(e,_),a=i.data(e,h),o=a[n];delete t[l];var s=!0;i.each(r,function(e,n){return s=s&&!t[n]}),s&&(f.isActive(e)&&f.resetEmitter(o),o&&o.dispose(),delete a[n])}})})};e.exports=g},function(e,t,n){var i=n(9),r=n(73),a=n(71),o="dxmousewheel",s="dxWheel",l=void 0!==document.onwheel?"wheel":"mousewheel",c={setup:function(e){var t=i(e);t.on(a.addNamespace(l,s),c._wheelHandler.bind(c))},teardown:function(e){var t=i(e);t.off("."+s)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);a.fireEvent({type:o,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};r(o,c),t.name=o},function(e,t,n){var i=n(9),r=n(53),a=n(61),o=n(23),s=n(56),l=n(87),c=n(14),u=n(71),d=n(83),h=l.sign,p=Math.abs,f=0,_=1,g=2,m=10,v=0,y=180,b=function(e){return e&&"dxmousewheel"===e.type},x=function(){var e=a.styleProp("pointer-events"),t=o.msie&&parseInt(o.version,10)<11;return e&&!t},S=function(){var e="dx-gesture-cover",t="generic"===r.real().platform;if(!x()||!t)return c.noop;var n=i("<div>").addClass(e).css("pointerEvents","none");return n.on("dxmousewheel",function(e){e.preventDefault()}),s.ready(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}(),w=d.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==g},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=f},start:function(e){return u.needSkipEvent(e)?void this._cancel(e):(this._startEvent=u.createEvent(e),this._startEventData=u.eventData(e),this._stage=_,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),y))},move:function(e){if(this._stage===_&&this._directionConfirmed(e)){if(this._stage=g,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===f)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===g&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=u.eventDelta(this._startEventData,u.eventData(e)),i=p(n.x),r=p(n.y),a=this._validateMove(t,i,r),o=this._validateMove(t,r,i),s=this.getDirection(e),l="both"===s&&(a||o),c="horizontal"===s&&a,d="vertical"===s&&o;
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||b(e)?v:m},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=u.eventDelta(this._startEventData,u.eventData(e));this._startEvent.pageX+=h(n.x)*t,this._startEvent.pageY+=h(n.y)*t},_resetActiveElement:function(){"ios"===r.real().platform&&i(":focus",this.getElement()).length&&s.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===g;t&&S(e,this.getElement().css("cursor"))},_clearSelection:function(e){b(e)||u.isTouchEvent(e)||s.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===g?this._end(e):this._stage===_&&this._stop(e),this._stage=f},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:c.noop,_start:c.noop,_move:c.noop,_stop:c.noop,_end:c.noop});w.initialTouchBoundary=m,w.touchBoundary=function(e){return c.isDefined(e)?void(m=e):m},e.exports=w},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,r=!n&&0!==n;return i&&(t=r?e:Math.min(e,n)),r&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},r=function(e,t,n){return e>=t&&e<=n};t.sign=n,t.fitIntoRange=i,t.inRange=r},function(e,t,n){t.locale=n(34).locale,t.loadMessages=n(89).load,t.message=n(89),t.number=n(32),t.date=n(33),t.currency=n(36)},function(e,t,n){var i=n(9),r=n(29),a=n(11).extend,o=n(18).format,s=n(39).humanize,l=n(34);n(34);var c=a(!0,{},n(90)),u={},d=r({_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,r,a){var o,l=t._localizablePrefix+a;return r!==i&&(o=t.format(a)),o||(u[a]=s(a)),n+(o||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?u:a({},u,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),o.apply(this,e)}},format:function(e){var t=this.getFormatter(e);return t&&t()||""}});e.exports=d},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(92),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(121),DevExpress.framework.Router=n(123),DevExpress.framework.StateManager=n(124),DevExpress.framework.ViewCache=n(125),DevExpress.framework.NullViewCache=n(125).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(125).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(125).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(125).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(126),DevExpress.framework.dxView=n(128).dxView,DevExpress.framework.dxLayout=n(128).dxLayout,DevExpress.framework.dxViewPlaceholder=n(128).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(128).dxContentPlaceholder,DevExpress.framework.dxTransition=n(128).dxTransition,DevExpress.framework.dxContent=n(128).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(129),DevExpress.framework.Route=n(123).Route,DevExpress.framework.MemoryKeyValueStorage=n(124).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(134),DevExpress.framework.NavigationManager=n(133),DevExpress.framework.createActionExecutors=n(132).createActionExecutors,DevExpress.framework.Application=n(130).Application;var i=n(135);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(136),DevExpress.framework.HistoryBasedNavigationDevice=n(134).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(134).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(133).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(133).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(133).NavigationStack,DevExpress.framework.utils=n(131).utils,DevExpress.framework.templateProvider=n(131).templateProvider,DevExpress.framework.html.CommandManager=n(139),DevExpress.framework.html.HtmlApplication=n(129),DevExpress.framework.html.layoutSets=n(138).layoutSets,DevExpress.framework.html.animationSets=n(138).animationSets,DevExpress.framework.html.DefaultLayoutController=n(142).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(142).layoutSets,DevExpress.framework.html.MarkupComponent=n(127).MarkupComponent,DevExpress.framework.html.ViewEngine=n(141).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(128);var r=n(140);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:r.dxToolbar,dxList:r.dxList,dxNavBar:r.dxNavBar,dxPivot:r.dxPivot,dxSlideOut:r.dxSlideOut}},function(e,t,n){var i=n(93);if(i){var r=n(7),a=n(17).compare;if(a(i.version,[2,3])<0)throw r.Error("E0013");n(94),n(113),n(114),n(116),n(118),n(119),n(120)}},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(9),r=n(93),a=n(7),o=n(39),s=n(12).isPlainObject,l=n(57),c=n(95),u=n(105),d=n(106),h=n(112),p=n(15),f="dxKoLocks",_="dxKoCreation",g=[],m=function(e,t){t.subclassOf(d)&&g.push(e),r.bindingHandlers[e]={init:function(n,l){var d,g,m=i(n),v=i.Callbacks(),y={},b=p().knockout,x=b&&b.isBindingPropertyPredicateName,S={onInitializing:function(){y=this._getOptionsByReference(),r.computed(function(){var e=r.unwrap(l());d&&d.beginUpdate(),g=x&&e&&e[x],A(e),d&&d.endUpdate()},null,{disposeWhenNodeIsRemoved:n}),d=this},modelByElement:function(e){if(e.length)return r.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=r.computed(function(){var n=r.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=r.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=o.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var s=i('<div data-bind="'+t+': options">').get(0);e.container.append(s),r.applyBindings(e.model,s)}}}},createTemplate:function(e){return new u(e)}}},w={},k=function(e,t,n){var i=m.data(f),a=n?r.unwrap(t):t;if(r.isWriteableObservable(t)&&(w[e]=t),d){if(i.locked(e))return;i.obtain(e);try{r.ignoreDependencies?r.ignoreDependencies(d.option,d,[e,a]):d.option(e,a)}finally{i.release(e)}}else S[e]=a},C=function(e){var t=e.fullName,n=e.value;if(t in w){var i=this._$element,r=i.data(f);if(!r.locked(t)){r.obtain(t);try{w[t](n)}finally{r.release(t)}}}},T=function(){v.add(C),m.data(_,!0).data(f,new h)[e](S),S=null},E=function(e,t,i){if(i!==x)if(!g||g(i,t,e)){var a;r.computed(function(){var n=e[t];k(i,n,!0),a=r.unwrap(n)},null,{disposeWhenNodeIsRemoved:n}),s(a)&&(y[i]||A(a,i))}else k(i,e[t],!1)},A=function(e,t){for(var n in e)e.hasOwnProperty(n)&&E(e,n,t?[t,n].join("."):n)};return T(),{controlsDescendantBindings:t.subclassOf(c)}}},"dxValidator"===e&&(r.bindingHandlers.dxValidator.after=g)};l.callbacks.add(function(e,t){m(e,t)})},function(e,t,n){var i=n(9),r=n(22),a=n(49),o=n(11).extend,s=n(26).inArray,l=n(14),c=n(12),u=n(56),d=n(53),h=n(43),p=n(96),f=n(98),_=n(99),g=n(100),m=n(101),v=n(102),y=n(71),b=n(103),x=n(104),S=n(75),w=n(39),k="UIFeedback",C="dx-widget",T="dx-state-active",E="dx-state-disabled",A="dx-state-invisible",I="dx-state-hover",O="dx-state-focused",M=30,D=400,P="Focus",L="template",B=3,V="[data-options*='dxTemplate']",R="dx-template-wrapper",F=new f(function(e){var t=e.model.widget;if(t){var n=i("<div>"),a=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var o=t;t=w.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",o,"16.1","Use: '"+t+"' instead")}return n[t](a),n}return i()}),z=void 0!==document.onbeforeactivate,H=h.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return o(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":F},createTemplate:function(e){return new p(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:M,_feedbackHideTimeout:D,_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=u.getElementOptions(t).dxTemplate;if(a){if(!a.name)throw r.Error("E0023");i(t).addClass(R).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(d.current(),e,function(e){return u.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(),r=n.filter(function(e,t){var n=t.nodeType===B,r=i.trim(i(t).text()).length<1;return!(n&&r)}),a=r.length<1;e[t]||a||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return L},_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 _;var r=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||e.jquery&&!i(e).is("script")?new f(function(){return e}):(r=!0,this._createTemplate(e))}.bind(this)),o=a.render(t);return r&&a.dispose&&a.dispose(),o}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){if(null==e)return new _;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 r=this._defaultTemplates[e];return r?r: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?u.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(C),this.callBase(),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){u.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(A,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this.option("focusStateEnabled")&&!this.option("disabled")&&(this._renderFocusTarget(),this._attachFocusEvents(),this._attachKeyboardEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=y.addNamespace(S.name,k);e.off(t),this.option("accessKey")&&e.on(t,function(e){y.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("."+E)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabindex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+P,n=y.addNamespace("focusin",t);n=n+" "+y.addNamespace("focusout",t),z&&(n=n+" "+y.addNamespace("beforeactivate",t)),e.off(n)},_attachFocusEvents:function(){var e=this.NAME+P,t=y.addNamespace("focusin",e),n=y.addNamespace("focusout",e);if(this._focusTarget().on(t,this._focusInHandler.bind(this)).on(n,this._focusOutHandler.bind(this)),z){var r=y.addNamespace("beforeactivate",e);this._focusTarget().on(r,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;s(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(O,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(O)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor")||new m({element:this._keyboardEventBindingTarget(),focusTarget:this._focusTarget()});this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this)},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),r=i[n];if(void 0!==r){var a=r.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()},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=y.addNamespace(b.start,k),r=y.addNamespace(b.end,k);if(e._eventBindingTarget().off(n,t).off(r,t),e.option("hoverStateEnabled")){var o=new a(function(t){e._hoverStartHandler(t.event);var n=t.element;e._refreshHoveredElement(n)},{excludeValidators:["readOnly"]});e._eventBindingTarget().on(n,t,function(e){o.execute({element:i(e.target),event:e})}).on(r,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,r=n._activeStateUnit,o=y.addNamespace(x.active,k),s=y.addNamespace(x.inactive,k);if(n._eventBindingTarget().off(o,r).off(s,r),n.option("activeStateEnabled")){var l=function(e){var t=e.element,i=e.value,r=e.jQueryEvent;n._toggleActiveState(t,i,r)};n._eventBindingTarget().on(o,r,{timeout:n._feedbackShowTimeout},function(t){e=e||new a(l),e.execute({element:i(t.currentTarget),value:!0,jQueryEvent:t})}).on(s,r,{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(T,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(I,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.element().toggleClass(E,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],r=t[1];1===t.length&&(r=this.option(n));var a=this[e+"OptionMap"];this[e].option(a?a(n):n,r)}},_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(),u.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 o(n,i)}}});e.exports=H},function(e,t,n){var i=n(9),r=n(7),a=n(14),o=n(97),s=n(56),l={},c=function(e,t){l[e]=t},u=function(e){e=i(e);var t=e.length&&e[0].nodeName.toLowerCase();return"script"===t?e.html():(e=i("<div>").append(e),e.html())};c("default",{compile:function(e){return s.normalizeTemplateElement(e)},render:function(e){return e.clone()}}),c("jquery-tmpl",{compile:function(e){return u(e)},render:function(e,t){return i.tmpl(e,t)}}),c("jsrender",{compile:function(e){return i.templates(u(e))},render:function(e,t){return e.render(t)}}),c("mustache",{compile:function(e){return u(e)},render:function(e,t){return Mustache.render(e,t)}}),c("hogan",{compile:function(e){return Hogan.compile(u(e))},render:function(e,t){return e.render(t)}}),c("underscore",{compile:function(e){return _.template(u(e))},render:function(e,t){return e(t)}}),c("handlebars",{compile:function(e){return Handlebars.compile(u(e))},render:function(e,t){return e(t)}}),c("doT",{compile:function(e){return doT.template(u(e))},render:function(e,t){return e(t)}});var d,h=function(e){if(a.isString(e)){if(d=l[e],!d)throw r.Error("E0020",e)}else d=e};h("default");var p=o.inherit({ctor:function(e){this._element=e,this._compiledTemplate=d.compile(e)},_renderCore:function(e){return i("<div>").append(d.render(this._compiledTemplate,e.model)).contents()},source:function(){return i(this._element).clone()}});e.exports=p,e.exports.setTemplateEngine=h},function(e,t,n){var i=n(9),r=n(56).triggerShownEvent,a=n(25),o=a.abstract,s=i.Callbacks(),l=a.inherit({render:function(e){e=e||{};var t=this._renderCore(e);return this._ensureResultInContainer(t,e.container),s.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&&r(e)}}},_renderCore:o});e.exports=l,e.exports.renderedCallbacks=s},function(e,t,n){var i=n(97),r=n(56),a=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return r.normalizeTemplateElement(this._render(e))}});e.exports=a},function(e,t,n){var i=n(9),r=n(97),a=r.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(97);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(9),r=n(25),a=n(26).inArray,o=n(71),s=r.inherit({_keydown:o.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 s;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=s},function(e,t,n){var i=n(9),r=function(e,t){if(!a(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),r=e.disabled,o=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=!0;return l=o?!r:s?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 r(t,i(t).attr("tabindex"))},tabbable:function(e,t){var n=i(t).attr("tabindex");return(isNaN(n)||n>=0)&&r(t,n)}}},function(e,t,n){var i=n(9),r=n(25),a=n(53),o=n(73),s=n(71),l=n(76),c="dxHoverStart",u="dxhoverstart",d=s.addNamespace(l.enter,c),h="dxHoverEnd",p="dxhoverend",f=s.addNamespace(l.leave,h),_=r.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,r=i(e),a=function(e){n._handler(e)};r.on(this._originalEventName,t.selector,a),i.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){s.isTouchEvent(e)||a.isSimulator()||s.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=_.inherit({ctor:function(){this._eventNamespace=c,this._eventName=u,this._originalEventName=d,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()}});o(u,new g),o(p,new m),t.start=u,t.end=p},function(e,t,n){var i,r=n(9),a=n(25),o=n(14),s=n(53),l=n(71),c=n(76),u=n(83),d=n(84),h="dxactive",p="dxinactive",f=30,_=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}}),m=u.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new g(0,o.noop),this._inactive=new g(0,o.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=r.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),r=l.isMouseEvent(e),a=s.isSimulator(),c=a||!r,u=o.ensureDefined(this.activeTimeout,f),d=o.ensureDefined(this.inactiveTimeout,_);this._active=new g(c?u:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new g(c?d: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)}});m.lock=function(e){var t=i?i.lockInactive():o.noop;e.done(t)},d({emitter:m,events:[h,p]}),t.lock=m.lock,t.active=h,t.inactive=p},function(e,t,n){var i=n(9),r=n(93),a=n(97),o=n(56),s=a.inherit({ctor:function(e){this._element=e,this._template=i("<div>").append(o.normalizeTemplateElement(e)),this._registerKoTemplate()},_registerKoTemplate:function(){var e=this._template.get(0);new r.templateSources.anonymousTemplate(e).nodes(e)},_prepareDataForContainer:function(e,t){var n,i,a=e;return t.length&&(n=t.get(0),e=void 0!==e?e:r.dataFor(n)||{},i=r.contextFor(n),a=i?e===i.$data?i:i.createChildContext(e):e),a},_renderCore:function(e){var t=e.model;e.container&&(t=this._prepareDataForContainer(t,e.container));var n,a=i("<div>").appendTo(e.container);return r.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=i(e)}},a.get(0),"replaceNode"),n},source:function(){return i(this._element).clone()},dispose:function(){this._template.remove()}});e.exports=s},function(e,t,n){var i=n(9),r=n(14),a=n(107).getDefaultAlignment,o=n(11).extend,s=n(95),l=n(108),c=n(109),u="dx-state-readonly",d="dx-invalid",h="dx-invalid-message",p="dx-invalid-message-auto",f="dx-invalid-message-always",_="dx-validation-target",g=100,m=s.inherit({_init:function(){this.callBase(),this.validationRequest=i.Callbacks();var e=this.element();e&&i.data(e[0],_,this)},_getDefaultOptions:function(){return o(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._attachChildKeyboardEvents())},_attachChildKeyboardEvents:r.noop,_setOptionsByReference:function(){this.callBase(),o(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"),r=this.element();r.toggleClass(d,!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(r),this._validationMessage=this._createComponent(this._$validationMessage,c,{integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:r,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"),r={h:i.h,v:i.v},o="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(r.h=-r.h),"below"!==e&&(r.v=-r.v),{offset:r,boundary:this.option("validationBoundary"),my:n+o[0],at:n+o[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.element().toggleClass(u,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.element()[0];i.data(e,_,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=m},function(e,t,n){var i=n(15),r=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=r},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),r=n(68),a=n(69),o=n(17).compare,s=n(55),l=n(11).extend,c=n(26).inArray,u=s.changeCallback,d=n(65).hideCallback,h=n(70),p=n(87).fitIntoRange,f=n(56),_=n(14),g=n(12),m=n(53),v=n(57),y=n(95),b=n(101),x=n(102),S=n(110),w=n(71),k=n(76),C=n(111),T=n(99),E="dx-overlay",A="dx-overlay-wrapper",I="dx-overlay-content",O="dx-overlay-shader",M="dx-overlay-modal",D="dx-state-invisible",P="content",L="dx-rtl",B=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],V=1500,R=[],F="dx-state-disabled",z=9,H=m.real(),N=H.version,G="ios"===H.platform,j=G&&o(N,[7,1])<0,W="android"===H.platform&&0===o(N,[4,0],2)&&navigator.userAgent.indexOf("Chrome")===-1,U=function(e){if(j&&e.width(),W){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backface-visibility","hidden"),t.css("backface-visibility"),t.css("backface-visibility","visible"))}},Y=function(e){return e&&i(e instanceof i.Event?e.target:e)};i(document).on(k.down,function(e){for(var t=R.length-1;t>=0;t--)if(!R[t]._proxiedDocumentDownHandler(e))return});var K=y.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),r={top:p(e,-i.top,i.bottom),left:p(t,-i.left,i.right)};this._changePosition(r)}};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=m.real(),t=e.platform,n=e.version;return"android"===t&&o(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 P},_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("<div>").addClass(A),this._$content=i("<div>").addClass(I);var e=this.element();this._$wrapper.addClass(e.attr("class")),e.addClass(E),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._$wrapper.on("MSPointerDown",_.noop),this._$wrapper.on("focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initTarget:function(e){if(_.isDefined(e)){var t=this.option();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 r=i.split("."),a=t;a;){if(1===r.length){g.isPlainObject(a)&&(a[r.shift()]=e);break}a=a[r.shift()]}})}},_initContainer:function(e){e=void 0===e?s.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(B,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||_.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(_.isFunction(t)&&(t=t(e)),t){var n=this._$content,r=!n.is(e.target)&&!i.contains(n.get(0),e.target)&&i(e.target).closest(document).length;r&&(this.option("shading")&&e.preventDefault(),this.hide())}return this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new T(this)},_isTopOverlay:function(){var e=this._overlayStack();return e[e.length-1]===this},_overlayStack:function(){return R},_zIndexInitValue:function(){return V},_toggleViewPortSubscription:function(e){u.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),u.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 _.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()||{},r=this._normalizeAnimation(n.show,"to"),a=r&&r.start||_.noop,o=r&&r.complete||_.noop;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var s=function(){this._renderVisibility(!0),this._animate(r,function(){e.option("focusStateEnabled")&&e._focusTarget().focus(),o.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){a.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?this._asyncShowTimeout=setTimeout(s):s()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=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()||{},r=this._normalizeAnimation(n.hide,"from"),a=r&&r.start||_.noop,o=r&&r.complete||_.noop,s={cancel:!1};return this._actions.onHiding(s),s.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._animate(r,function(){e._$content.css("pointer-events",""),e._renderVisibility(!1),o.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||_.noop,r.animate(this._$content,l({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){r.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(D,!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(M,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(O,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=w.addNamespace("keydown",this.NAME);e?i(document).on(t,this._proxiedTabTerminatorHandler):i(document).off(t,this._proxiedTabTerminatorHandler)},_tabKeyHandler:function(e){if(e.keyCode===z&&this._isTopOverlay()){var t=this._$wrapper.find("*").filter(x.tabbable),n=t.first(),i=t.last(),r=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),o=0===t.length,s=c(e.target,t)===-1;(r||a||o||s)&&(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")?d.add(this._hideTopOverlayHandler):d.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||i(),n=this.option("closeOnTargetScroll"),r=Y(t).parents(),a=w.addNamespace("scroll",this.NAME);"generic"===m.real().platform&&(r=r.add(window)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),i().add(this._$prevTargetParents).off(a,this._proxiedTargetParentsScrollHandler),e&&n&&(r.on(a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=r)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");_.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=w.addNamespace(S.start,this.NAME),n=w.addNamespace(S.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,C,{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=w.addNamespace(S.move,this.NAME);e.off(t).on(t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:_.noop,_clearSelection:_.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=s.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(),i=e.outerHeight(),r=t.outerWidth(),a=t.outerHeight();return{width:r-n,height:a-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=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),r=this.option("boundaryOffset");return{top:n?e.top+i.top+r.v:0,bottom:n?-e.top-i.top+t.height-r.v:0,left:n?e.left+i.left+r.h:0,right:n?-e.left-i.left+t.width-r.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)&&!G?"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&&_.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||window:null;return Y(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 U(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 b({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(){r.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(F,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(L,e)},_optionChanged:function(e){var t=e.value;if(c(e.name,B)>-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;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),r=n(26).wrapToArray,a=n(26).inArray,o=n(73),s=n(71),l=n(86),c=n(84),u="dxdragstart",d="dxdrag",h="dxdragend",p="dxdragenter",f="dxdragleave",_="dxdrop",g=[],m=[],v=[],y={setup:function(e,t){var n=a(e,g)!==-1;n||(g.push(e),m.push([]),v.push(t||{}))},add:function(e,t){var n=a(e,g),i=t.selector;a(i,m[n])===-1&&m[n].push(i)},teardown:function(e){var t=i._data(e,"events"),n=0;if(i.each([p,f,_],function(e,i){var r=t[i];r&&(n+=r.length)}),!n){var r=a(e,g);g.splice(r,1),m.splice(r,1),v.splice(r,1)}}};o(p,y),o(f,y),o(_,y);var b=function(e){var t=a(e.get(0),g),n=m[t],i=e.find(n.join(", "));return a(void 0,n)!==-1&&(i=i.add(e)),i},x=function(e){var t=a(e.get(0),g);return v[t]},S=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},w=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(u,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=r(e.targetElements||(null===e.targetElements?[]:g));this._dropTargets=i.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=s.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(d,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};s.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return i.each(g,function(r,a){if(n._checkDropTargetActive(a)){var o=i(a);i.each(b(o),function(r,a){var s=i(a);n._checkDropTarget(x(o),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return i.each(this._dropTargets,function(n,r){return t=t||r===e||i.contains(r,e),!t}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var r=S(e,t);if(n.pageX<r.left)return!1;if(n.pageY<r.top)return!1;var a=w(e,t);return!(n.pageX>r.left+a.width)&&(!(n.pageY>r.top+a.height)&&t)},_end:function(e){var t=s.eventData(e);this._fireEvent(h,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,_),delete this._currentDropTarget}});c({emitter:k,events:[u,d,h]}),t.move=d,t.start=u,t.end=h,t.enter=p,t.leave=f,
t.drop=_},function(e,t,n){var i=n(9),r=n(57),a=n(18),o=n(11).extend,s=n(26).inArray,l=n(14),c=n(12),u=n(69),d=n(87).fitIntoRange,h=n(43),p=n(71),f=n(110),_=c.isPlainObject,g=l.isFunction,m="dxResizable",v="dx-resizable",y="dx-resizable-resizing",b="dx-resizable-handle",x="dx-resizable-handle-top",S="dx-resizable-handle-bottom",w="dx-resizable-handle-left",k="dx-resizable-handle-right",C="dx-resizable-handle-corner",T=p.addNamespace(f.start,m),E=p.addNamespace(f.move,m),A=p.addNamespace(f.end,m),I=h.inherit({_getDefaultOptions:function(){return o(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)),s("bottom",t)+1&&s("right",t)+1&&this._renderHandle("corner-bottom-right"),s("bottom",t)+1&&s("left",t)+1&&this._renderHandle("corner-bottom-left"),s("top",t)+1&&s("right",t)+1&&this._renderHandle("corner-top-right"),s("top",t)+1&&s("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.element(),n=i("<div>");n.addClass(b).addClass(b+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[T]=this._dragStartHandler.bind(this),t[E]=this._dragHandler.bind(this),t[A]=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=u.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(y,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+b),r=n.outerWidth(),a=n.outerHeight(),o=n.offset(),s=t.offset;e.maxLeftOffset=o.left-s.left,e.maxRightOffset=s.left+t.width-o.left-r,e.maxTopOffset=o.top-s.top,e.maxBottomOffset=s.top+t.height-o.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,r=this._elementSize,a=this._getOffset(e),o=r.width+a.x*(n.left?-1:1),s=r.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(o),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=a.y-((this.element().outerHeight()||s)-s),c=a.x-((this.element().outerWidth()||o)-o);u.move(t,{top:i.top+(n.top?l:0),left:i.left+(n.left?c:0)}),this._resizeAction({jQueryEvent:e,width:this.option("width")||o,height:this.option("height")||s,handles:this._movingSides})},_getOffset:function(e){var t=e.offset,n=a.pairToObject(this.option("step")),i=this._getMovingSides(e),r="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),r?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,r=this._elementSize,a=n.left?i.left:i.left+r.width,o=n.top?i.top:i.top+r.height,s=(a+e.x)%t.h,l=(o+e.y)%t.v,c=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},u=function(e,t){return(1+.2*c(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>u(t.h,e.x)&&(h+=t.h),l>u(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(C+"-top-left"),r=t.hasClass(C+"-top-right"),a=t.hasClass(C+"-bottom-left"),o=t.hasClass(C+"-bottom-right");return{top:t.hasClass(x)||n||r,left:t.hasClass(w)||n||a,bottom:t.hasClass(S)||a||o,right:t.hasClass(k)||r||o}},_getArea:function(){var e=this.option("area");return g(e)&&(e=e.call(this)),_(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:o({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",d(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",d(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("."+b).remove()}});r(m,I),e.exports=I},function(e,t,n){var i=n(7),r=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var r=t(n);if(r<1)throw i.Error("E0014");1===r?delete e[n]:e[n]=r-1},locked:function(e){return t(e)>0}}};e.exports=r},function(e,t,n){var i=n(9),r=n(93),a=n(12).isPlainObject,o=n(73),s=n(71);o.callbacks.add(function(e){var t=s.addNamespace(e,e+"Binding");r.bindingHandlers[e]={update:function(e,n,o,s){var l=i(e),c=r.utils.unwrapObservable(n()),u=c.execute?c.execute:c;l.off(t).on(t,a(c)?c:{},function(e){u.call(s,s,e)})}}})},function(e,t,n){var i=n(9),r=n(49),a=n(50).compileGetter,o=n(11).extend,s=n(93),l=n(115),c=n(75);s.bindingHandlers.dxAction={update:function(e,t,n,l){var u=i(e),d=s.utils.unwrapObservable(t()),h=d,p={context:e};d.execute&&(h=d.execute,o(p,d));var f=new r(h,p);u.off(".dxActionBinding").on(c.name+".dxActionBinding",function(t){f.execute({element:u,model:l,evaluate:function(t){var n=l;t.length>0&&"$"===t[0]&&(n=s.contextFor(e));var i=a(t);return i(n)},jQueryEvent:t}),p.bubbling||t.stopPropagation()})}},s.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:s.unwrap(t())}}},s.bindingHandlers.dxIcon={init:function(e,t){var n=s.utils.unwrapObservable(t())||{},i=l.getImageContainer(n);s.virtualElements.emptyNode(e),i&&s.virtualElements.prepend(e,i.get(0))},update:function(e,t){var n=s.utils.unwrapObservable(t())||{},i=l.getImageContainer(n);s.virtualElements.emptyNode(e),i&&s.virtualElements.prepend(e,i.get(0))}},s.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(9),r=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")},a=function(e){var t=r(e),n="dx-icon";switch(t){case"image":return i("<img>",{src:e}).addClass(n);case"fontIcon":return i("<i>",{"class":n+" "+e});case"dxIcon":return i("<i>",{"class":n+" "+n+"-"+e});default:return null}};t.getImageSourceType=r,t.getImageContainer=a},function(e,t,n){var i=n(9),r=n(25),a=n(51),o=n(117),s=n(93),l=r.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i.each(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=o.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);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},o.registerModelForValidation=function(e){i.each(e,function(t,n){s.isObservable(n)&&n.dxValidator&&o.registerValidatorInGroup(e,n.dxValidator)})},o.unregisterModelForValidation=function(e){i.each(e,function(t,n){s.isObservable(n)&&n.dxValidator&&o.removeRegisteredValidator(e,n.dxValidator)})},o.validateModel=o.validateGroup},function(e,t,n){var i=n(9),r=n(25),a=n(11).extend,o=n(26).inArray,s=n(51),l=n(7),c=n(14),u=n(32),d=n(89),h=r.inherit({NAME:"base",defaultMessage:function(e){return d.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return d.getFormatter("validation-"+this.NAME+"-formatted")(e)},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.every(function(e){return i=this._validate(e,t)},this),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!x.required.validate(e,{})||(t.useCultureSettings&&c.isString(e)?!isNaN(u.parse(e)):c.isNumeric(e))}}),_=h.inherit({NAME:"range",_validate:function(e,t){if(!x.required.validate(e,{}))return!0;var n=x.numeric.validate(e,t),i=c.isDefined(e),r=n?parseFloat(e):i&&e.valueOf(),a=t.min,o=t.max;if(!n&&!c.isDate(e)&&!i)return!1;if(c.isDefined(a))return c.isDefined(o)?r>=a&&r<=o:r>=a;if(c.isDefined(o))return r<=o;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)),x.range.validate(e.length,a({},t))}}),m=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}}}),y=h.inherit({NAME:"pattern",_validate:function(e,t){if(!x.required.validate(e,{}))return!0;var n=t.pattern;return c.isString(n)&&(n=new RegExp(n)),n.test(e)}}),b=h.inherit({NAME:"email",_validate:function(e,t){return!x.required.validate(e,{})||x.pattern.validate(e,a({},t,{pattern:/^[\d\w\._\-]+@([\d\w\._\-]+\.)+[\w]+$/i}))}}),x={required:new p,numeric:new f,range:new _,stringLength:new g,custom:new m,compare:new v,pattern:new y,email:new b},S=r.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(s),w={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 S(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=o(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 r={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},a=this;return i.each(t||[],function(t,i){var o,s=x[i.type];if(!s)throw l.Error("E0100");return c.isDefined(i.isValid)&&i.value===e&&!i.reevaluate?!!i.isValid||(r.isValid=!1,r.brokenRule=i,!1):(i.value=e,o=s.validate(e,i),i.isValid=o,o||(r.isValid=!1,a._setDefaultMessage(i,s,n),r.brokenRule=i),!!i.isValid&&void 0)}),r},registerValidatorInGroup:function(e,t){var n=w.addGroup(e);o(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=w.getGroupConfig(e),i=n&&n.validators,r=o(t,i);r>-1&&(i.splice(r,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=w.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=w.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};w.initGroups(),e.exports=w},function(e,t,n){var i=n(93),r=n(28);r.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),r=n(93),a=i.cleanData,o=n(17).compare;o(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||r.cleanNode(e[n]),delete e[n].cleanedByKo;for(n=0;n<e.length;n++)delete e[n].cleanedByJquery;return t},r.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])})},function(e,t,n){var i=n(9),r=n(93),a=n(17).compare;if(a(i.fn.jquery,[2,0])<0){var o=function(e,t){var n=function(){r.cleanNode(this)};t?e.each(n):e.find("*").each(n)},s=i.fn.empty;i.fn.empty=function(){return o(this,!1),s.apply(this,arguments)};var l=i.fn.remove;i.fn.remove=function(e,t){if(!t){var n=this;e&&(n=n.filter(e)),o(n,!0)}return l.call(this,e,t)};var c=i.fn.html;i.fn.html=function(e){return"string"==typeof e&&o(this,!1),c.apply(this,arguments)};var u=i.fn.replaceWith;i.fn.replaceWith=function(){var e=u.apply(this,arguments);return this.parent().length||o(this,!0),e}}},function(e,t,n){var i=n(9),r=n(122),a=n(11).extend,o=n(14),s=n(12),l=n(57),c=n(43),u=o.isFunction,d=s.isPlainObject,h=o.noop;n(92);var p=c.inherit({ctor:function(e,t){d(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(u(e)&&(e=!!e.apply(this,arguments)),e)throw r.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),r=n(7);e.exports=i(r.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),r=n(11).extend,a=n(12),o=n(26).inArray,s=n(25),l=encodeURIComponent("json:"),c=s.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=r({},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 s=r({},this._defaults),l=0,c=[],u=[],d={};i.each(e,function(n,i){e[n]=t.formatSegment(i),n in s||(d[n]=!0)}),i.each(this._segments,function(n,i){if(c[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var r=i.substr(1);if(!(r in e||r in t._defaults))return c=null,!1;if(r in t._constraints&&!t._checkConstraint(e[r],t._constraints[r]))return c=null,!1;r in e?(void 0!==e[r]&&(s[r]=e[r],c[n]+=e[r],l=n),delete d[r]):r in s&&(c[n]+=s[r],u.push(n))}else c[n]+=i,l=n}),i.each(s,function(n,i){if(i&&o(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(a.isEmptyObject(d)||(n="?",i.each(d,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;u.length&&i.map(u,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)}}),u=s.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),o=a[0],s=a[1];return i.each(this._registry,function(){var e=this.parse(o);if(e!==!1)return t=e,s&&(t=r(t,n._parseQuery(s))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},i.each(this._registry,function(){var i=r(!0,{},e),a=this.format(i);a!==!1&&n>a.unusedCount&&(n=a.unusedCount,t=a.uri)}),t}});e.exports=u,e.exports.Route=c},function(e,t,n){var i=n(25),r=n(26).inArray,a=n(9),o=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]}}),s=i.inherit({ctor:function(e){e=e||{},this.storage=e.storage||new o,this.stateSources=e.stateSources||[]},addStateSource:function(e){this.stateSources.push(e)},removeStateSource:function(e){var t=r(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=s,e.exports.MemoryKeyValueStorage=o},function(e,t,n){function i(e,t,n){t.on(e,function(){n.fireEvent(e,arguments)})}var r=n(9),a=n(26).inArray,o=n(25),s=n(51),l=o.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;r.each(this._cache,function(t){e.removeView(t)})},hasView:function(e){return e in this._cache}}).include(s),c=l.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),u=o.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(s),d=5,h=o.inherit({ctor:function(e){this._keys=[],this._size=e.size||d,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(s),p=o.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(s);e.exports=l,e.exports.NullViewCache=c,e.exports.ConditionalViewCacheDecorator=u,e.exports.CapacityViewCacheDecorator=h,e.exports.HistoryDependentViewCacheDecorator=p},function(e,t,n){var i=n(9),r=n(127).MarkupComponent,a=n(12).isPlainObject,o=n(57);n(92);var s=r.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")}});o("dxCommandContainer",s),e.exports=s},function(e,t,n){var i=n(9),r=n(25),a=n(11).extend,o=n(14).noop,s=n(45),l=r.inherit({ctor:function(e,t){this.NAME=s.name(this.constructor),t=t||{},this._$element=i(e),s.attachInstanceToElement(this._$element,this,this._dispose),t.fromCache?this._options=t:(this._options={},this._setDefaultOptions(),t&&this.option(t),this._render())},_setDefaultOptions:o,_render:o,_dispose:o,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 s.getInstanceByElement(i(e),this)},t.MarkupComponent=l},function(e,t,n){var i=n(122),r=n(56),a=n(57),o=n(127).MarkupComponent;n(92);var s=o.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=r.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=o.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=o.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),u=function(e,t,n,i){"absolute"===i?e.addClass("dx-transition-absolute"):e.addClass("dx-transition-static"),e.addClass("dx-transition").addClass("dx-transition-"+n).addClass("dx-transition-"+t).attr("data-dx-transition-type",t).attr("data-dx-transition-name",n)},d=function(e){e.addClass("dx-transition-inner-wrapper")},h=o.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var e=this.element();u(e,this.option("type")||this.option("animation"),this.option("name"),"absolute"),e.wrapInner("<div/>"),d(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=o.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),e.attr("data-dx-content-placeholder-name",this.option("name")),u(e,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&i.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=o.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),d(e)}});a("dxView",s),a("dxLayout",l),a("dxViewPlaceholder",c),a("dxContentPlaceholder",p),a("dxTransition",h),a("dxContent",f),t.dxView=s,t.dxLayout=l,t.dxViewPlaceholder=c,t.dxContentPlaceholder=p,t.dxTransition=h,t.dxContent=f},function(e,t,n){var i=n(9),r=n(14),a=n(48),o=n(11),s=n(122),l=n(130).Application,c=n(125).ConditionalViewCacheDecorator,u=n(138),d=n(139),h=n(141).ViewEngine,p=n(89),f=n(55).value,_=n(60),g=n(53),m=n(104),v=n(74),y=n(67),b=n(16).when;n(142),n(143);var x="dx-viewport",S="layout-change",w=l.inherit({ctor:function(e){e=e||{},this.callBase(e),this._$root=i(e.rootNode||document.body),this._initViewport(e.viewPort),"mobileApp"===this._applicationMode&&_.initMobileViewport(e.viewPort),this.device=e.device||g.current(),this.commandManager=e.commandManager||new d({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||u.layoutSets.default,this._animationSet=e.animationSet||u.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){y.presets.registerPreset(e,n)})}),y.presets.applyChanges())},_localizeMarkup:function(e){p.localizeNode(e)},_notifyIfBadMarkup:function(e){e.each(function(){var e=i(this).html();/href="#/.test(e)&&s.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("."+x);return e.length||(e=i("<div>").addClass(x).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,r=i.Deferred(),a=r.promise(),o=e.layoutController;return n._obtainViewLink(e),o.showView(e,t).done(function(){n._activateLayoutController(o,n._getTargetNode(e),t).done(function(){r.resolve()})}),m.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 s.Error("E3024")}},_ensureOneLayoutControllerFound:function(e,t){var n=function(e,t){return"controller"===e?"[controller]: { name:"+t.name+" }":t;
};if(!t.length)throw s.log("W3003",JSON.stringify(e,null,4),JSON.stringify(this._availableLayoutControllers,n,4)),s.Error("E3011");if(t.length>1)throw s.log("W3004",JSON.stringify(e,null,4),JSON.stringify(t,n,4)),s.Error("E3012")},_resolveLayoutControllerImpl:function(e){var t=e.viewTemplateInfo||{},n=e.navigateOptions||{},i=o.extend({root:!e.canBack,customResolveRequired:!1,pane:t.pane,modal:void 0!==n.modal?n.modal:t.modal||!1},g.current()),a=r.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 r=this,a=r._activeLayoutController();if(a===e)return i.Deferred().resolve().promise();var o=i.Deferred();return e.ensureActive(t).done(function(t){r._deactivatePreviousLayoutControllers(e,n,t).done(function(){r._activeLayoutControllersStack.push(e),o.resolve()})}),o.promise()},_deactivatePreviousLayoutControllers:function(e,t){var n=this,r=[],a=n._activeLayoutControllersStack.pop();if(!a)return i.Deferred().resolve().promise();if(e.isOverlay)n._activeLayoutControllersStack.push(a),r.push(a.disable());else{for(var o=i.Deferred(),s=!1,l=function(e,t){return function(){e.deactivate().done(function(){t.resolve()})}};a&&a!==e;){var c=i.Deferred();a.isOverlay?s=!0:n.transitionExecutor.leave(a.element(),S,{direction:t}),o.promise().done(l(a,c)),r.push(c.promise()),a=n._activeLayoutControllersStack.pop()}s?o.resolve():(n.transitionExecutor.enter(e.element(),S,{direction:t}),n.transitionExecutor.start().done(function(){o.resolve()}))}return b.apply(i,r)},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 s.Error("E3013","dxView",e.viewName);return e.viewTemplateInfo=t,e.layoutController=this._resolveLayoutController(e),e},_createViewModel:function(e){this.callBase(e),o.extendFromObject(e.model,e.viewTemplateInfo)},_initLayoutControllers:function(){var e=this;i.each(e._layoutSet,function(t,n){var i=n.controller,a=g.current();r.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=w},function(e,t,n){var i,r=n(9),a=n(25),o=a.abstract,s=n(49),l=n(14),c=n(12),u=n(11).extend,d=n(131).utils.mergeCommands,h=n(132).createActionExecutors,p=n(123),f=n(133),_=n(124),g=n(121),m=n(89),v=n(136),y=n(125),b=n(51),x=n(54).sessionStorage,S=n(137),w=n(122),k=n(16).when,C="InProgress",T="Inited",E=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=m.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 _({storage:e.stateStorage||x()}),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={},s.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 y.NullViewCache:new y.CapacityViewCacheDecorator({size:e.viewCacheSize,viewCache:new y}),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 r.map(e,function(e){var n;return n=e instanceof g?e:new g(u({root:!0},e)),n.option("id")||n.option("id","navigation_"+t++),n})},_mapNavigationCommands:function(e,t){var n=r.map(e,function(e){return e.option("id")});t.mapCommands("global-navigation",n)},_callComponentMethod:function(e,t){var n=[];return r.each(this.components,function(i,r){if(r[e]&&l.isFunction(r[e])){var a=r[e](t);a&&a.done&&n.push(a)}}),k.apply(r,n)},init:function(){var e=this;return e._initState=C,e._callComponentMethod("init").done(function(){e._initState=T,e._processEvent("initialized")}).fail(function(e){throw e||w.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 w.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,r=n._acquireViewInfo(e.item,e.options);return r.model||(this._processEvent("beforeViewSetup",{viewInfo:r}),n._createViewModel(r),n._createViewCommands(r),this._processEvent("afterViewSetup",{viewInfo:r})),n._highlightCurrentNavigationCommand(r),t=n._showView(r,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;r.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||[];r.each(t,function(e,t){t._dispose()})},_acquireViewInfo:function(e,t){var n=this.router.parse(e.uri),i=this._getViewInfoKey(e,n),r=this.viewCache.getView(i);return r?this._updateViewInfo(r,e,t):(r=this._createViewInfo(e,t),this._obtainViewLink(r),this.viewCache.setView(i,r)),r},_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,r=this.router.parse(i);e.viewName=r.view,e.routeData=r,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),r={key:this._getViewInfoKey(e,i)};return this._updateViewInfo(r,e,t),r},_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,r=i;n._options.useViewTitleAsBackText&&(r=((e.previousViewInfo||{}).model||{}).title||r);var a=[new g({id:"back",title:r,behavior:"back",onExecute:function(){n.back({stack:e.navigateOptions.stack})},icon:"arrowleft",type:"back",renderStage:n._options.useViewTitleAsBackText?"onViewRendering":"onViewShown"})],o=d(a,t);t.length=0,t.push.apply(t,o)},_showView:function(e,t){var n=this,i={viewInfo:e,direction:t,params:e.routeData};return S.processRequestResultLock.obtain(),n._showViewImpl(i.viewInfo,i.direction).done(function(){l.executeAsync(function(){S.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&&r.each(this.navigation,function(e,t){if(t.option("id")===a)return n=t,!1}),n||r.each(this.navigation,function(e,t){var r=t.option("onExecute");if(l.isString(r)&&(r=r.replace(/^#+/,""),r===i.navigationManager.rootUri()))return n=t,!1}),r.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:o,_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]&&w.log("W3001",e.key),0===this._viewLinksHash[e.key].linkCount&&w.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 w.Error("E3002");if(n._initState){if(n._initState!==T)throw w.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(b);t.Application=E},function(e,t,n){var i=n(9),r=n(93),a=n(105),o=function(e,t,n){for(var i=[],r=0,a=e.length;r<a;r++)n(e[r],t)||i.push(e[r]);return i.push.apply(i,t),i},s=function(e,t){var n=!1;return i.each(t,function(t,i){var r=e.option("id")===i.option("id")&&i.option("id"),a=e.option("behavior")===i.option("behavior")&&e.option("behavior");if(n=r||a,a&&null===i.option("onExecute")&&i.option("onExecute",e.option("onExecute")),n)return e.element().remove(),!1}),n},l=function(e,t){return o(e,t,s)},c=function(e,t,n,i){var r=t?t[n]:void 0,a=void 0===r?i:r,o=e.option(n);return void 0===o||o===i?a:o},u=function(e,t){var n=c(e,t,"showText"),i=!!e.option("icon"),r=c(e,t,"title","");return n||!i?r:""},d=function(e,t){var n=c(e,t,"showIcon"),i=!!e.option("title"),r=c(e,t,"icon","");return n||!i?r:""};t.utils={mergeCommands:l,commandToContainer:{resolveIconValue:d,resolveTextValue:u,resolvePropertyValue:c}},t.templateProvider={createTemplate:function(e){return new a(e)},applyTemplate:function(e,t){r.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&&s(e,t.component.option())}function r(e){if(e){var t=a(e.target);t.attr("href")&&e.preventDefault()}}var a=n(9),o=n(50),s=n(11).extend,l=n(12).isPlainObject,c=n(123).Route,u=function(e){return{routing:{execute:function(t){var n,a,o=t.action,s={};l(o)&&(n=o.routeValues,n&&l(n)?s=o.options:n=o,a=e.router.format(n),i(s,t),r(s.jQueryEvent),e.navigate(a,s),t.handled=!0)}},hash:{execute:function(t){if("string"==typeof t.action&&"#"===t.action.charAt(0)){var n=t.action.substr(1),s=t.args[0],l=n,u=function(e){var n=o.compileGetter(e),i=t.args[0].model;return n(i)},d=s.evaluate||u;l=n.replace(/\{([^}]+)\}/g,function(e,t){t=a.trim(t),t.indexOf(",")>-1&&(t=a.map(t.split(","),a.trim));var n=d(t);return void 0===n&&(n=""),n=c.prototype.formatSegment(n)});var h={};i(h,t),r(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=u},function(e,t,n){var i=n(9),r=n(25),a=n(14),o=n(12).isPlainObject,s=n(11).extend,l=n(134),c=n(51),u=n(122),d=n(64).processCallback,h=n(65),p=n(16).when,f={current:"current",blank:"blank",back:"back"},_="__history",g=r.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,r=this,o=!r._currentItem,l=r._currentItem||{},c=t.item||{},u=l.uri,d=l.key,h=c.key;return void 0===e&&(e=r._navigationDevice.getUri()),/^_back$/.test(e)?void r.back():(t=s(r._getDefaultOptions(),t||{}),o&&(t.target=f.current),n={currentUri:u,uri:e,cancel:!1,navigateWhen:[],options:t},r.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||u===e&&(void 0===h||h===d)&&!r._forceNavigate?r._cancelNavigation(n):(r._forceNavigate=!1,p.apply(i,n.navigateWhen).done(function(){a.executeAsync(function(){r._updateHistory(e,t),r.fireEvent("navigated",[{uri:e,previousUri:u,options:t,item:r._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 u.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),m=g.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),d.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||_},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,r=!1,a=this.currentStack,o=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||(r=this.currentStack===a,i=!0),n&&this.currentStack.items.length)o&&!r||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var s=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case 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 u.Error("E3006",t.target)}if(void 0===t.direction){var c=this.currentStack.currentIndex-s;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=s({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 r={};t.navigationStacks[e]=r,r.currentIndex=n.currentIndex,r.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,r=JSON.parse(t);i.each(r.navigationStacks,function(e,t){var r=n._createNavigationStack();n.navigationStacks[e]=r,r.currentIndex=t.currentIndex,r.items=i.map(t.items,function(e){return e.stack=r,e})}),this.currentStackKey=r.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),u.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 r=i.itemByKey(e);if(r)return t=r,!1}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):o(e)&&(t=e),void this.callBase(t)):this.callBase()}}),v=r.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 u.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 u.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=m,t.NavigationStack=v},function(e,t,n){var i=n(9),r=n(14).noop,a=n(25),o=n(135),s=n(54).sessionStorage,l=n(53),c="dxPhoneJSApplication",u=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:r,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 o.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new o.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new o.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new o.OldBrowserAdapter(e):new o.DefaultBrowserAdapter(e)}}),d=u.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=s();e&&e.setItem(c,!0)},_initRootPage:function(){var e=this.getUri(),t=s();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=u,t.StackBasedNavigationDevice=d},function(e,t,n){var i=n(9),r=n(25),a=n(62),o="__root__",s="__buffer__",l=r.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(o)},_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()===o},_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(o)},_onHashChange:function(){var e=this._currentTask;this._currentTask=null,this._skipNextEvent?this._skipNextEvent=!1:this.popState.fire(),e&&e.resolve()}}),u=c.inherit({createRootPage:function(){return this.pushState(s),this.callBase()}}),d=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(o)},getHash:function(){return this._normalizeUri(this._currentHash)},back:function(){return this.replaceState(o)},_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=u,t.HistorylessBrowserAdapter=d,t.BuggyCordovaWP81BrowserAdapter=h},function(e,t,n){var i=n(9),r=n(25),a=n(14).grep,o=n(11).extend,s=n(26).inArray,l=n(122),c=r.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 r=i.id,a=n._commandMappings[e]||{};a[r]=o({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 r=n._commandMappings[e]||{};r&&delete r[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 s(n,t._existingCommands)<0&&s(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){s(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 r(e){return/^(and|\&\&|\&)$/i.test(e)}var a=n(9),o=n(14).isFunction,s=n(50).toComparable,l=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},c=function(e){return Array.isArray(e)||(e=[e]),a.map(e,function(e){return{selector:o(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())}})},u=function(){var e={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},t=function(t){var n=e[t];return n?n:t};return function(e,n){return e.status<400?t(n):e.statusText}}(),d={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}}},h=function(){var e,t=0,n=function(){0===t&&(e=a.Deferred()),t++},i=function(){t--,t<1&&e.resolve()},r=function(){var n=0===t?a.Deferred().resolve():e;return n.promise()},o=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:r,reset:o}}(),p=function(e,t,n){if(Array.isArray(e)){for(var i,r=a.map(t,function(e,t){return t}),o=0;o<r.length;o++)if(i=r[o],s(t[i],!0)!=s(n[i],!0))return!1;return!0}return s(t,!0)==s(n,!0)},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_=function(e){function t(e){return f.charAt(e)}Array.isArray(e)||(e=g(String(e)));for(var n="",i=0;i<e.length;i+=3){var r=e[i],o=e[i+1],s=e[i+2];n+=a.map([r>>2,(3&r)<<4|o>>4,isNaN(o)?64:(15&o)<<2|s>>6,isNaN(s)?64:63&s],t).join("")}return n},g=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},m=function(e){return"!"===e[0]&&Array.isArray(e[1])},v={normalizeBinaryCriterion:l,normalizeSortingInfo:c,errorMessageFromXhr:u,aggregators:d,keysEqual:p,isDisjunctiveOperator:i,isConjunctiveOperator:r,processRequestResultLock:h,isUnaryOperation:m,base64_encode:_};e.exports=v},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),r=n(25),a=n(14).noop,o=n(122),s=n(136),l=n(140),c=n(16).when;n(121),n(126);var u=r.inherit({ctor:function(e){e=e||{},this.defaultWidgetAdapter=e.defaultWidgetAdapter||this._getDefaultWidgetAdapter(),this.commandMapping=e.commandMapping||new s},_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 r=t[i];if(r in n)return n[r]}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 o.Error("E3010",t.element().get(0).outerHTML)},renderCommandsToContainers:function(e,t){var n=this,r={},a=[],o=[];return i.each(e,function(e,t){var i=t.option("id");n._checkCommandId(i,t),a.push(i),r[i]=t}),n.commandMapping.checkCommandsExist(a),i.each(t,function(e,t){var a=[];if(i.each(r,function(e,i){var r=e,o=n.commandMapping.getCommandMappingForContainer(r,t.option("id"));o&&a.push({command:i,options:o})}),a.length){var s=n._attachCommandsToContainer(t.element(),a);s&&o.push(s)}}),c.apply(i,o)},clearContainer:function(e){var t=e.element(),n=this._getContainerAdapter(t);n.clearContainer(t)},_arrangeCommandsToContainers:function(e,t){o.log("W0002","CommandManager","_arrangeCommandsToContainers","14.1","Use the 'renderCommandsToContainers' method instead."),this.renderCommandsToContainers(e,t)},_attachCommandsToContainer:function(e,t){var n,r=this._getContainerAdapter(e);return r.beginUpdate&&r.beginUpdate(e),i.each(t,function(t,n){r.addCommand(e,n.command,n.options)}),r.endUpdate&&(n=r.endUpdate(e)),n}});e.exports=u},function(e,t,n){var i=n(9),r=n(25),a=n(11).extend,o=n(26).inArray,s=n(131).utils.commandToContainer,l=n(68),c=n(74),u="dxCommandToWidgetAdapter",d=r.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()),r=function(t){e.execute(t)};return i.text=s.resolveTextValue(e,t),i.icon=s.resolveIconValue(e,t),i.type=s.resolvePropertyValue(e,t,"type"),i.location=s.resolvePropertyValue(e,t,"location"),i.locateInMenu=s.resolvePropertyValue(e,t,"locateInMenu"),i.showText=s.resolvePropertyValue(e,t,"showText"),n=this._createWidgetItemCore(i,r),n.command=e,n},_createWidgetItemCore:function(e,t){return e},dispose:function(){delete this.command,delete this.widgetItem}}),h=r.inherit({ctor:function(e){this._commandToWidgetItemOptionNames={},this.$widgetElement=e,this.$widgetElement.data(u,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 r=this.widget.option("items"),a=o(n,i.map(r,function(e){return e.command||{}}));if(a>-1){var s="items["+a+"].";!this._requireWidgetRefresh(e)&&this.widget.option("items["+a+"]").options&&(s+="options."),s+=this._commandToWidgetItemOptionNames[e]||e,this.widget.option(s,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(u),delete this.widget,delete this.$widgetElement)}}),p=r.inherit({ctor:function(e){this.createAdapter=e},_getWidgetAdapter:function(e){var t=e.data(u);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=d.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}}),_=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=d.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e.onClick=t,e}}),m=h.inherit({_createItemWrapper:function(e,t){return new g(e,t)},_getWidgetByElement:function(e){return e.dxList("instance")}}),v=d.inherit({}),y=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}}}}),b=d.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e}}),x=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 b(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 r=t[n].command;if(r&&r.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()}}),S=d.inherit({}),w=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 S(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 _(e)}),t.dxList=new p(function(e){return new m(e)}),t.dxNavBar=new p(function(e){return new y(e)}),t.dxPivot=new p(function(e){return new x(e)}),t.dxSlideOut=new p(function(e){return new w(e)})},function(e,t,n){var i=n(9),r=n(19),a=n(25),o=n(14),s=n(26).inArray,l=n(122),c=n(56),u=n(16).when,d="dxView",h="dxLayout",p="MarkupTemplate:";n(128);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_"+r+"_"+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,r=n.element();return n._isStaticComponentsCreated||(c.createComponents(r,["dxContent","dxContentPlaceholder","dxTransition"]),n._isStaticComponentsCreated=!0),i=r.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,[d,h]);i.each(n,function(e,n){var i=n.element();i.addClass("dx-hidden"),t._registerTemplateComponent(n),n.element().detach()});var r=e.filter("script");r.appendTo(t.$root),t._$skippedMarkup=t._$skippedMarkup.add(r)},_registerTemplateComponent:function(e){var t=e.NAME,n=e.option(),i=n.name,r=this._templateMap[i]||{};r[t]=r[t]||[],r[t].push(e),this._templateMap[i]=r},_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"),r=t._findTemplate(n,d);t._applyPartialViews(r),e.append(r),r.removeClass("dx-hidden")}})},_ajaxImpl:function(){return i.ajax.apply(i,arguments)},_loadTemplatesFromURL:function(e){var t=this,n=this._getLoadOptions(),r=i.Deferred();return e=n.winPhonePrefix+e,this._ajaxImpl({url:e,isLocal:n.isLocal,dataType:"html"}).done(function(e){t._loadTemplatesFromMarkupCore(c.createMarkupFromString(e)),r.resolve()}).fail(function(t,n,i){var a=l.Error("E3021",e,i);r.reject(a)}),r.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,r){var a=t._loadTemplatesFromURL(i(r).attr("href"));e.push(a)}),u.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){s(n,t)<0&&n.element().remove()}),e.length=0,e.push.apply(e,t)},_filterTemplates:function(e,t){return o.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('<div class="dx-full-height"></div>'),e.children().eq(0).dxContent({targetPlaceholder:"content"})},_initDefaultLayout:function(){this._$defaultLayoutTemplate=i('<div class="dx-full-height" data-options="dxLayout : { name: \'default\' } "> \n    <div class="dx-full-height" data-options="dxContentPlaceholder : { name: \'content\' } " ></div> \n</div>'),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),r=n.find(".dx-content");i.each(r,function(){var e=i(this),t=e.attr("data-dx-target-placeholder-id"),r=n.find(".dx-content-placeholder-"+t);r.empty(),r.append(e)});for(var a=r.length;a>=0;a--){var o=r.eq(a);o.is(".dx-content-placeholder .dx-content")||o.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)),r=n.type,a=n.options,o=c.createMarkupFromString(n.markup);return a.fromCache=!0,o[r](a)[r]("instance")}return"skippedMarkup"===e?i("<div>").append(c.createMarkupFromString(t)).contents():t},n=this._templateCacheStorage.getItem(this._templateCacheKey);if(n)try{var r=JSON.parse(n,t);e=r[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("<div>").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,d)},getViewTemplateInfo:function(e){return this._findComponent(e,d)},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),r=n(25),a=n(14),o=n(131),s=n(138).layoutSets,l=n(51),c=n(122),u=n(56),d=n(16).when,h="__hidden-bag",p=".dx-transition",f=".dx-content",_="onViewShown",g="dxcontentrendered.layoutController",m=".dx-pending-rendering",v=".dx-pending-rendering-manual",y=n(74);n(126),n(128);var b=function(e){return".dx-transition-"+e},x=r.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 y.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){o.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)}),d.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,r){n._applyTemplate(i(r).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=[],r=0;r<t.length;r++){var a=t.eq(r);0===a.parents(p).length&&n.push(a.get(0))}return i(n)},showView:function(e,t){t=t||"forward";var n,r=this,a=r._getPreviousViewInfo(e),o=a===e?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(e),o&&o===e.currentViewTemplateId&&e===a?(r.fireEvent("viewShowing",[e,t]),n=i.Deferred().resolve().promise()):(r._ensureViewRendered(e),r.fireEvent("viewShowing",[e,t]),n=this._showViewImpl(e,t,o).done(function(){r._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,r=this,a=".dx-command,.dx-content,script",o=this._createViewLayoutTemplate(),s=!0,l=i();if(0===e.children(a).length&&this._viewEngine._wrapViewDefaultContent(e),n=e.children(),this._applyModelToTransitionElements(o,t.model),this._viewEngine.applyLayout(e,o),n.each(function(e,n){var o=i(n);r._applyTemplate(o,t.model),o.is(a)?s=!1:l=l.add(o)}),l.length&&!s)throw c.Error("E3014",l[0].outerHTML);t.renderResult=t.renderResult||{},t.renderResult.$viewItems=n,t.renderResult.$markup=o},_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),r={};e.commands=o.utils.mergeCommands(e.commands||[],n),e.commandsToRenderMap=r,i.each(e.commands,function(e,t){var n=t.option("renderStage")||_,i=r[n]=r[n]||[];i.push(t)})},_applyViewCommands:function(e,t){t=t||_;var n,r=e.commandsToRenderMap[t],a=e.renderResult.$markup;return r?(n=this._renderCommands(a,r),delete e.commandsToRenderMap[t]):n=i.Deferred().resolve().promise(),n},_findCommandContainers:function(e){return u.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("<div>"),e.children().dxContent({targetPlaceholder:t}))},_appendViewToLayout:function(e){var t=this,n=t._getViewFrame(e),r=e.renderResult.$markup,a=i(),o=[];i.each(r.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 s=i(n),l=r.find(b(s.attr("data-dx-transition-name"))).children(),c={$element:l,animation:s.attr("data-dx-transition-type")};o.push(c),s.append(l),t._showViewElements(l),u.triggerShownEvent(l),a=a.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),r.remove(),e.renderResult.$markup=a,e.renderResult.animationItems=o},_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 r=this,a=this._getPreviousViewInfo(e),o={direction:t};a===e&&(a=void 0),a||(o.duration=0,o.delay=0);var s=i.Deferred();return r._doTransition(a,e,o).done(function(){r._changeView(e,n).done(function(e){s.resolve(e)})}),s.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 r=n._getPreviousViewInfo(e);r&&r!==e&&(n._hideView(r),n._releaseView(r)),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(m).add(n.filter(m)).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,r=e.data.context;t.off(g,r._onDeferredContentRendered),r._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=i.Deferred(),r=e.find(v).add(e.filter(v)).first();if(r.length){var o=r.data("dx-render-delegate");a.executeAsync(function(){o().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 r=i(n),a=r.attr("id");r.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);s.default=s.default||[],s.default.push({controller:new x}),t.DefaultLayoutController=x,t.layoutSets=s},function(e,t,n){function i(){var e,t=x("<div></div>",_).addClass("dx-theme-marker").appendTo(_.documentElement);try{return(e=t.css("font-family"))?(e=e.replace(/["']/g,""),e.substr(0,P.length)!==P?null:e.substr(P.length)):null}finally{t.remove()}}function r(e,t){function n(){y=null,t()}var i,r;y=e,a()?n():(r=x.now(),i=setInterval(function(){var e=a(),t=!e&&x.now()-r>15e3;t&&S.log("W0004",y),(e||t)&&(clearInterval(i),n())},10))}function a(){return!y||i()===y}function o(){var e=x(I,_);e.length&&(m={},g=x(w.createMarkupFromString("<link rel=stylesheet>"),_),e.each(function(){var e=x(this,_),t=e.attr(O),n=e.attr("href"),i="true"===e.attr(M);m[t]={url:n,isActive:i}}),e.last().after(g),e.remove())}function s(e){var t=e.split("."),n=null;if(m){if(e in m)return e;x.each(m,function(e,i){var r=e.split(".");if(r[0]===t[0]&&!(t[1]&&t[1]!==r[1]||t[2]&&t[2]!==r[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==_&&(m=null)}catch(e){m=null}_=e}function c(e){e=e||{},l(e.context||document),o(),v=void 0,u(e)}function u(e){if(!arguments.length)return v=v||i();f(T()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(v=e.theme||v,n&&!v&&(v=d(k.current())),v=s(v),v&&(t=m[v]),t)g.attr("href",m[v].url),a?r(v,a):y&&(y=v);else{if(!n)throw S.Error("E0021",v);a&&a()}p(C.originalViewPort(),v)}function d(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||u();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1])),t}function p(e,t){b=h(t).join(" "),x(e).addClass(b);var n=function(){var t=window.devicePixelRatio;if(t&&!(t<2)){var n=x("<div>");n.css("border",".5px solid transparent"),x("body").append(n),1===n.outerHeight()&&(x(e).addClass(D),b+=" "+D),n.remove()}};n()}function f(e){x(e).removeClass(b)}var _,g,m,v,y,b,x=n(9),S=n(22),w=n(56),k=n(53),C=n(55),T=C.value,E=C.changeCallback,A=x.holdReady||x.fn.holdReady,I="link[rel=dx-theme]",O="data-theme",M="data-active",D="dx-hairlines",P="dx.";A(!0),c({_autoInit:!0,loadCallback:function(){A(!1)}}),w.ready(function(){if(x(I,_).length)throw S.Error("E0022")}),E.add(function(e,t){f(t),p(e)}),k.changed.add(function(){c({_autoInit:!0})}),t.current=u,t.init=c,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=d,t.waitForThemeLoad=r,t.resetTheme=function(){g&&g.attr("href","about:blank"),v=null,y=null}},function(e,t,n){var i=n(145);i&&(n(146),n(173),n(174),n(175))},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(9),r=n(15),a=n(57),o=n(25),s=n(14).type,l=n(26).inArray,c=n(112),u=n(95),d=n(106),h=n(147),p=n(148),f=n(149),_=n(50).compileSetter,g=n(50).compileGetter,m=n(11).extendFromObject,v=n(14).isNumeric,y=n(39),b=n(7),x="dxItemAlias",S=["rendering"],w=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},k=o.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=m({},e),e&&(!e.hasOwnProperty("bindingOptions")&&e.bindingOptions&&(t._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&i.each(e.bindingOptions,function(e,n){"string"===s(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 r,a,o=n.search(/\[|\./),s=o>-1?n.substring(0,o):n,l=i.dataPath,c=!0,u=!1;void 0!==i.deep&&(u=c=!!i.deep),t[s]||(t[s]={}),t[s][n]=l;var d=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))&&!u?"$watchCollection":"$watch";r!==t&&(a&&a(),a=e._scope[t](l,d,c),r=t)};h(),e._componentDisposing.add(a)}),e._optionChangedCallbacks.add(function(n){var r=n.name,a=n.fullName,o=n.component;if(e._ngLocker.locked(a))return void e._ngLocker.release(a);if(t&&t[r]){e._ngLocker.obtain(a),w(function(){i.each(t[r],function(t,i){if(e._optionsAreLinked(a,t)){var r=o.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}})},e._scope);var s=function(){e._ngLocker.locked(a)&&e._ngLocker.release(a),e._digestCallbacks.end.remove(s)};s(),e._digestCallbacks.end.add(s)}}))},_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(r){var a=i(e).clone(),o=r.model&&r.model.constructor===t._scope.$root.constructor,s=o?r.model:r.noModel?t._scope:t._createScopeWithData(r.model);return n&&t._synchronizeScopes(s,n,r.index),a.appendTo(r.container),r.noModel||a.on("$destroy",function(){var e=!s.$parent;e||s.$destroy()}),t._applyAsync(t._compile(a,t._transcludeFn),s),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),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,r=e.fieldPath,a=e.parentPrefix,o=e.itemIndex,s=r===this._itemAlias?"":"."+r,l=void 0!==o,c=[a];if(l){if(!v(o))return;c.push("[",o,"]")}c.push(s),t=c.join("");var u=n.$watch(t,function(e,t){e!==t&&_(r)(i,e)}),d=i.$watch(r,function(e,i){if(e!==i){if(l&&!g(a)(n)[o])return void d();_(t)(n,e)}});this._componentDisposing.add([u,d])},_evalOptions:function(e){var t=m({},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,S)>-1)return n;var r=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?w(function(){return n.apply(t,i)},e):n.apply(t,i)};return r},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,r().wrapActionsBeforeExecute&&(t.forceApplyBindings=function(){w(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,o=i.skipImmediate,s=e.$watch(function(){var e=t();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!o&&(!t||t&&i.deep)&&n(e),o=!1},i.deep);return o||(a=t(),n(a)),r().wrapActionsBeforeExecute&&w(function(){},e),s},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=y.camelize("dx-"+t),b.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var r=i("<div "+y.dasherize(t)+'="options">').get(0),a=this._scope.$new();a.options=e.model.options,e.container.append(r),this._compile(r)(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(d)&&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.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 C={},T=function(e){var t="dxValidator"!==e?1:10;p.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,r){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=C[e],o=a.subclassOf(u)?t.contents().detach():null;return function(t,s,l,c,u){s.append(o),w(function(){new k({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:c,transcludeFn:u,itemAlias:l[x],dxDigestCallbacks:r})},t)}}}}])};a.callbacks.add(function(e,t){C[e]||T(e),C[e]=t})},function(e,t,n){var i=n(9),r=n(97),a=n(14).isFunction,o=n(56),s=r.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(o.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=s},function(e,t,n){var i=n(145);e.exports=i.module("dx",[])},function(e,t,n){var i=n(9),r=n(150),a=n(22),o=n(11).extend,s=n(14),l=n(167),c=n(50).compileGetter,u=n(153).DataSource,d=n(169),h=n(16).when,p="dxItemDeleting",f=-1,_=function(e){return e!==f},g=r.inherit({_setOptionsByReference:function(){this.callBase(),o(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return o(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 d({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 r=e._dataSource&&e._dataSource.store();return r?r.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 r=t._getIndexByKey(i);_(r)&&n.push(r)}),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")),s.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")&&!_(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")&&!_(i))return void this._syncSelectionOptions("selectedIndex");s.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 r=this.option("selectedItemKeys");if(this.option("selectionRequired")&&!_(this._getIndexByKey(r[0])))return void this._syncSelectionOptions("selectedIndex");this._selection.setSelection(r)}},_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":s.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")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,i)||this._selection.setSelection(i)}},_renderSelection:s.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 r,a,o=[],s=[];for(a=0;a<e.length;a++)r=n._getIndexByItemData(e[a]),o.push(r),n._addSelection(r);for(a=0;a<t.length;a++)r=n._getIndexByItemData(t[a]),s.push(r),n._removeSelection(r);n._updateSelection(o,s)}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);_(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);_(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},r=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return h(r).always(function(i){var a=!r,o=!a&&"resolved"===r.state(),s=!!arguments.length,l=a||o&&!s||o&&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"),r=this._dataSource.store();if(this.option("disabled",!0),!r.remove)throw a.Error("E1011");return r.remove(r.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 u||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(_(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(_(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(),r=this._editStrategy.getItemElement(e),a=this._editStrategy.getNormalizedIndex(e),o=this._dataSource?"dataSource":"items",s=this._itemResponseWaitClass();return _(a)?this._waitDeletingPrepare(r).done(function(){r.addClass(s);var e=t._extendActionArgs(r);t._deleteItemFromDS(r).done(function(){t._updateSelectionAfterDelete(a),t._editStrategy.deleteItemAtIndex(a),t._simulateOptionChange(o),t._itemEventHandler(r,"onItemDeleted",e,{beforeExecute:function(){r.detach()},excludeValidators:["disabled","readOnly"]}),t._renderEmptyMessage(),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){r.removeClass(s),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=i.Deferred(),r=this,a=this._editStrategy,o=a.getItemElement(e),s=a.getItemElement(t),l=a.getNormalizedIndex(e),c=a.getNormalizedIndex(t),u=this._dataSource?"dataSource":"items",d=_(l)&&_(c)&&l!==c;return d?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){s[a.itemPlacementFunc(l,c)](o),a.moveItemAtIndexToIndex(l,c),r.option("selectedItems",r._getItemsByKeys(r._selection.getSelectedItemKeys(),r._selection.getSelectedItems())),"items"===u&&r._simulateOptionChange(u),r._itemEventHandler(o,"onItemReordered",{fromIndex:a.getIndex(l),toIndex:a.getIndex(c)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=g},function(e,t,n){var i=n(9),r=n(14),a=n(12).isPlainObject,o=n(16).when,s=n(11).extend,l=n(26).inArray,c=n(49),u=n(151),d=n(56),h=n(50),p=n(95),f=n(71),_=n(76),g=n(152),m=n(163),v=n(102),y=n(89),b=n(164),x=n(75),S=n(165),w=n(166),k="dx-collection",C="dx-item",T="-content",E="dx-item-content-placeholder",A="dxItemData",I="dxItemIndex",O="tmpl-",M="[data-options*='dxItem']",D="dx-item-selected",P="dx-item-response-wait",L="dx-empty-collection",B="dx-template-wrapper",V=/^([^.]+\[\d+\]\.)+([\w\.]+)$/,R="up",F="down",z="left",H="right",N="pageup",G="pagedown",j="last",W="first",U=p.inherit({_activeStateUnit:"."+C,_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 s(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,z),rightArrow:n.bind(this,H),upArrow:n.bind(this,R),downArrow:n.bind(this,F),pageUp:n.bind(this,R),pageDown:n.bind(this,F),home:n.bind(this,W),end:n.bind(this,j)})},_getDefaultOptions:function(){return s(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:y.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 w(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(M);if(e.length&&!this.option("items").length){var t=i.map(e,function(e){var t=i(e),n=d.getElementOptions(e).dxItem,r=i.trim(t.html())&&!n.template;return r?n.template=this._prepareItemTemplate(t):t.remove(),n}.bind(this));this.option("items",t)}},_prepareItemTemplate:function(e){var t=O+new u,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(),r=i.length-1;return n<0&&(n=e?r: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 R:t=this._prevItem(n);break;case G:case F:t=this._nextItem(n);break;case H:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case z:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case W:t=n.first();break;case j: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),r=e.last(),a=i(e[n-1]),o=this.option("loopItemFocus");return 0===a.length&&o&&(a=r),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),r=e.first(),a=i(e[n+1]),o=this.option("loopItemFocus");return 0===a.length&&o&&(a=r),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 r=i(this);if(r.data(n._itemDataKey())===e)return t=r,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var r=this._findItemElementByItem(e);if(r.length&&!this.constructor.ItemClass.getInstance(r).setDataField(t,n)){var a=this._getItemData(r),o=r.data(this._itemIndexKey());this._renderItem(o,a,null,r)}},_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,""),r=this.option(i);return void this._itemOptionChanged(r,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 C},_itemContentClass:function(){return this._itemClass()+T},_selectedItemClass:function(){return D},_itemResponseWaitClass:function(){return P},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return A},_itemIndexKey:function(){return I},_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(x.name,this.NAME),n=f.addNamespace(_.down,this.NAME),r=this,a=new c(function(e){var t=e.event;r._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()),r=this._closestFocusable(t);n.length&&l(r.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(b.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(S.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 r=this._renderItemFrame(e,t,n,i);this._setElementData(r,t,e),r.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,r);var a=r.find("."+E);a.removeClass(E);var s=this._renderItemContent({index:e,itemData:t,container:a,contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return o(s).done(function(n){l._postprocessRenderItem({itemElement:r,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,r)}),r},_attachItemClickEvent:function(e,t){e&&e.onClick&&t.on(x.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(B)?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=[C+T,e.contentClass];e.container.addClass(t.join(" "))},_renderItemFrame:function(e,t,n,r){var a=i("<div>");return new this.constructor.ItemClass(a,this._itemOptions(),t||{}),r&&r.length?r.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:r.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([C,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("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(e),this.setAria("label",e)),this.element().toggleClass(L,!n)},_itemJQueryEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,s(n,{jQueryEvent:e}),i)},_itemEventHandler:function(e,t,n,i){var r=this._createActionByOption(t,s({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerByHandler:function(e,t,n,i){var r=this._createAction(t,s({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerImpl:function(e,t,n){var r=this._closestItemElement(i(e)),a=s({},n);return t(s(n,this._extendActionArgs(r),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 u),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(g);U.ItemClass=m,e.exports=U},function(e,t,n){var i=n(25),r=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=r},function(e,t,n){var i=n(153).DataSource,r=n(11).extend,a=n(153).normalizeDataSourceOptions,o="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",c="_dataSourceLoadingChangedHandler",u="_dataSourceFromUrlLoadMode",d="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=d in this?this[d]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=o in this?this[o]():{},t=this._dataSourceType?this._dataSourceType():i,n=a(n,{fromUrlLoadMode:u in this&&this[u]()}),this._dataSource=new t(r(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s 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[s](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 r(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 m(t)}function i(e){var t=e.type;return delete e.type,_.create(t,e)}function r(e){return new m({load:function(){return c.getJSON(e)},loadMode:t&&t.fromUrlLoadMode})}var a;return"string"==typeof e&&(e={paginate:!1,store:r(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof _?{store:e}:d({},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(d({},a))),e.store=a,e}function o(e){switch(e.length){case 0:return;case 1:return e[0]}return c.makeArray(e)}function s(e){return function(){var t=o(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?r(e,n):c.map(e,t):e}function r(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),u=n(25),d=n(11).extend,h=n(14),p=n(12),f=n(137),_=n(154),g=n(158),m=n(162),v=n(51),y=n(155).errors,b=n(26),x=n(62),S=n(16).when,w=h.isString,k=h.isNumeric,C=h.isBoolean,T=h.isDefined,E="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(E),!0)};var A=new i,I=u.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._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,T(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._disposeEvents(),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),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 C(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:s("sort"),filter:function(){var e=o(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return C(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 w(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},_createLoadQueue:function(){return x.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t._changeLoadingCount(1),e.always(function(){t._changeLoadingCount(-1)})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==E&&t.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t.fireEvent("changed")})},loadSingle:function(e,t){function n(){return o instanceof m&&!o._byKeyViaLoad()}var i=this,r=c.Deferred(),a=this.key(),o=this._store,s=this._createStoreLoadOptions(),l=function(e){!T(e)||b.isEmpty(e)?r.reject(new y.Error("E4009")):r.resolve(i._applyMapFunction(c.makeArray(e))[0])};return this._scheduleFailCallbacks(r),arguments.length<2&&(t=e,e=a),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===a||n()?o.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],o.load(s))}().fail(r.reject).done(l),r.promise()},load:function(){function e(){if(!n._disposed&&r(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=A.add(e),n=this._createStoreLoadOptions();return e.always(function(){A.remove(t)}),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof m&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return A.cancel(e)},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=d({},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,r=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),c.each(i,function(e,i){r.length&&r.push("or"),r.push([i,n,t])}),e.filter?e.filter=[r,e.filter]:e.filter=r)},_loadFromStore:function(e,t){function n(n,a){function o(){var r;n&&!Array.isArray(n)&&n.data&&(a=n,n=n.data),Array.isArray(n)||(n=c.makeArray(n)),r=d({data:n,extra:a},e),i.fireEvent("customizeLoadResult",[r]),S(r.data).done(function(e){r.data=e,i._processStoreLoadResult(r,t)}).fail(t.reject)}i._disposed||r(t)&&o()}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 r._isLoaded=!0,r._totalCount=isFinite(o.totalCount)?o.totalCount:-1,t.resolve(a,o)}function i(){r.store().totalCount(s).done(function(e){o.totalCount=e,n()}).fail(t.reject)}var r=this,a=e.data,o=e.extra,s=e.storeLoadOptions;r._disposed||(a=r._applyPostProcessFunction(r._applyMapFunction(a)),p.isPlainObject(o)||(o={}),r._items=a,(!a.length||!r._paginate||r._pageSize&&a.length<r._pageSize)&&(r._isLastPage=!0),s.requireTotalCount&&!isFinite(o.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=I,t.normalizeDataSourceOptions=a},function(e,t,n){var i=n(9),r=n(25),a=r.abstract,o=n(51),s=n(155),l=n(137),c=n(50).compileGetter,u=n(156),d=u.queryByOptions,h={},p=r.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 s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return d(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 d(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,s._errorHandler)}}).include(o);p.create=function(e,t){if(!(e in h))throw s.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),r=n(7),a={},o=i(r.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}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:o,errorHandler:s,_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 r(e,t){var n=[];return o.each(e,function(e,i){var r=s(t,function(e){return i.selector===e.selector});r.length<1&&n.push(i)}),n.concat(t)}function a(e,t,n){t=t||{};var a=t.filter,s=t.sort,l=t.select,c=t.group,d=t.skip,h=t.take;return a&&(e=e.filter(a)),c&&(c=u(c)),n||((s||c)&&(s=u(s||[]),c&&(s=r(c,s)),o.each(s,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc)})),l&&(e=e.select(l))),c&&(e=i(e,c)),n||(h||d)&&(e=e.slice(d||0,h)),e}var o=n(9),s=n(14).grep,l=n(11).extend,c=n(157),u=n(137).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:r,queryByOptions:a}},function(e,t,n){var i=n(9),r=n(25),a=n(14),o=n(50).compileGetter,s=n(50).toComparable,l=n(155),c=n(137),u=r.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),d=u.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=u.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=u.inherit({ctor:function(e,t,n){e instanceof p||(e=new p(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n}]},thenBy:function(e,t){var n=new f(this.sortedIter||this.iter,e,t);return this.sortedIter||(n.rules=this.rules.concat(n.rules)),n},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=o(this.getter)}),e.sortedIter=new p(new d(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 r=0,a=this.rules.length;r<a;r++){var o=this.rules[r],l=s(o.getter(e)),c=s(o.getter(t)),u=o.desc?-1:1;if(null===l&&null!==c)return-u;if(null!==l&&null===c)return u;if(void 0===l&&void 0!==c)return u;if(void 0!==l&&void 0===c)return-u;if(l<c)return-u;if(l>c)return u}return n-i}}),_=function(){function e(e,n,i){return function(r){r=s(e(r));var a=t(n)?r===n:r==n;return i&&(a=!a),a}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=_(e[1]);if("!"===t)return function(e){return!n(e)};throw l.errors.Error("E4003",t)}var r=function(e){var t,n,r=0,o=[],s=[];return i.each(e,function(){if(Array.isArray(this)||a.isFunction(this)){if(o.length>1&&t!==n)throw new l.errors.Error("E4019");s.push(_(this)),o.push("op["+r+"](d)"),r++,t=n,n="&&"}else n=c.isConjunctiveOperator(this)?"&&":"||"}),new Function("op","return function(d) { return "+o.join(" "+t+" ")+" }")(s)},u=function(e){return a.isDefined(e)?e.toString():""},d=function(t){t=c.normalizeBinaryCriterion(t);var n=o(t[0]),i=t[1],r=t[2];switch(r=s(r),i.toLowerCase()){case"=":return e(n,r);case"<>":return e(n,r,!0);case">":return function(e){return s(n(e))>r};case"<":return function(e){return s(n(e))<r};case">=":return function(e){return s(n(e))>=r};case"<=":return function(e){return s(n(e))<=r};case"startswith":return function(e){return 0===s(u(n(e))).indexOf(r)};case"endswith":return function(e){var t=s(u(n(e))),i=u(r);return!(t.length<i.length)&&t.lastIndexOf(r)===t.length-r.length};case"contains":return function(e){return s(u(n(e))).indexOf(r)>-1};case"notcontains":return function(e){return s(u(n(e))).indexOf(r)===-1}}throw l.errors.Error("E4003",i)};return function(e){return a.isFunction(e)?e:Array.isArray(e[0])?r(e):c.isUnaryOperation(e)?n(e):d(e)}}(),g=h.inherit({ctor:function(e,t){this.callBase(e),this.criteria=_(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),m=u.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,r=o(this.getter);for(n.reset();n.next();){var a=n.current(),s=r(a);s in e?e[s].push(a):(e[s]=[a],t.push(s))}this.groupedIter=new d(i.map(t,function(t){return{key:t,items:e[t]}}))}}}),v=h.inherit({ctor:function(e,t){this.callBase(e),this.getter=o(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),y=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)}}),b=function(e,t){t=t||{},e instanceof u||(e=new d(e));var n=function(e){var n=t.errorHandler;n&&n(e),l._errorHandler(e)},r=function(t){var r,a=i.Deferred().fail(n),o=t.step,s=t.finalize;try{e.reset(),r="seed"in t?t.seed:e.next()?e.current():NaN;for(var l=r;e.next();)l=o(l,e.current());a.resolve(s?s(l):l)}catch(e){a.reject(e)}return a.promise()},s=function(e,t,n){return r(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},h=function(e){return r(c.aggregators[e])},p=function(t){return a.isFunction(t)||Array.isArray(t)||(t=i.makeArray(arguments)),x(new v(e,t))},_=function(e){return p(o(e))},x=function(e){return b(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){return x(new f(e,t,n))},thenBy:function(t,n){if(e instanceof f)return x(e.thenBy(t,n));
throw l.errors.Error("E4004")},filter:function(t){return Array.isArray(t)||(t=i.makeArray(arguments)),x(new g(e,t))},slice:function(t,n){return void 0===n&&(n=Number.MAX_VALUE),x(new y(e,t,n))},select:p,groupBy:function(t){return x(new m(e,t))},aggregate:s,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?_(e).sum():h("sum")},min:function(e){return e?_(e).min():h("min")},max:function(e){return e?_(e).max():h("max")},avg:function(e){return e?_(e).avg():h("avg")}}};e.exports=b},function(e,t,n){var i=n(9),r=n(11).extend,a=n(12),o=n(151),s=n(27),l=n(137).keysEqual,c=n(159),u=n(155).errors,d=n(154),h=function(e,t){for(var n,r=i.makeArray(t);r.length;)if(n=r.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()},_=d.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw u.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(u.Error("E4009")):p(this._array[t])},_insertImpl:function(e){var t,n,i=this.key();if(n=a.isPlainObject(e)?r({},e):e,i){if(t=this.keyOf(n),void 0===t||"object"==typeof t&&a.isEmptyObject(t)){if(Array.isArray(i))throw u.Error("E4007");t=n[i]=String(new o)}else if(void 0!==this._array[this._indexByKey(t)])return f(u.Error("E4008"))}else t=n;return this._array.push(n),p(e,t)},_updateImpl:function(e,t){var n,i,r=this.key(),a=!0;if(r){if(h(t,r)&&!l(r,e,this.keyOf(t)))return f(u.Error("E4017"));if(n=this._indexByKey(e),n<0)return f(u.Error("E4009"));i=this._array[n]}else i=e;return s.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=_},function(e,t,n){var i=n(157),r=n(160),a={array:i,remote:r},o=function(){var e=Array.isArray(arguments[0])?"array":"remote";return a[e].apply(this,arguments)};e.exports=o,e.exports.queryImpl=a},function(e,t,n){var i=n(9),r=n(161),a=n(155),o=n(14).isFunction,s=n(157),l=function(e,t,n){n=n||[],t=t||{};var c=function(e,t){return{name:e,args:t}},u=function(l){function u(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 d(){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,_,g,m=i.Deferred(),v=function(e){var n=t.errorHandler;n&&n(e),a._errorHandler(e),m.reject(e)};try{for(h=t.adapter,o(h)||(h=r[h]),p=h(t),f=[].concat(n).concat(l);f.length;){if(_=f[0],!u(_)){if(g){f.unshift(c("multiSort",[g])),g=null;continue}if("enumerate"!==String(_.name)&&(!p[_.name]||p[_.name].apply(p,_.args)===!1))break}f.shift()}d(),p.exec(e).done(function(e,n){if(f.length){var r=s(e,{errorHandler:t.errorHandler});i.each(f,function(){r=r[this.name].apply(r,this.args)}),r.done(m.resolve).fail(m.reject)}else m.resolve(e,n)}).fail(v)}catch(e){v(e)}return m.promise()},d={};return i.each(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);d[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);d[e]=function(){return u.call(this,c(e,arguments))}}),d};e.exports=l},function(e,t){e.exports={}},function(e,t,n){function i(e){return e&&m(e.then)}function r(e){return f.Deferred().resolve(e).promise()}function a(e,t){if(!m(t))throw v.Error("E4011",e)}function o(e){throw v.Error("E4012",e)}function s(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"),e.reject(i)}}function l(e,t){var n,s=e._loadFunc;return a(w,s),n=s.apply(e,[t]),Array.isArray(n)?n=r(n):null===n||void 0===n?n=r([]):i(n)||o(w),_.fromPromise(n)}function c(e,t){var n,a=e._totalCountFunc;if(!m(a))throw v.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||o(S),n=r(n)),_.fromPromise(n)}function u(e,t,n){var o,s=e._byKeyFunc;return a(k,s),o=s.apply(e,[t,n]),i(o)||(o=r(o)),_.fromPromise(o)}function d(e,t,n,i){t.__rawData?i(t.__rawData):l(t,n).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}function h(e,t,n,i){n=n||{};var r={};"userData"in n&&(r.userData=n.userData),d(e,t,r,function(r){var a,o,s,l,c=b(r,{errorHandler:t._errorHandler}),u=[];i||(a=x(c,n),a===c?s=r.slice(0):u.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(o=x(c,n,!0),o===c?l=r.length:u.push(o.count().done(function(e){l=e}))),f.when.apply(f,u).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}function p(e,t,n){d(e,t,{},function(i){for(var r,a=t.key(),o=0,s=i.length;o<s;o++)if(r=i[o],g.keysEqual(a,t.keyOf(i[o]),n))return void e.resolve(r);e.reject(v.Error("E4009"))})}var f=n(9),_=n(16),g=n(137),m=n(14).isFunction,v=n(155).errors,y=n(154),b=n(157),x=n(156).queryByOptions,S="totalCount",w="load",k="byKey",C="insert",T="update",E="remove",A=y.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[w],this._totalCountFunc=e[S],this._byKeyFunc=e[k],this._insertFunc=e[C],this._updateFunc=e[T],this._removeFunc=e[E]},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(s(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(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=f.Deferred();return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):u(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this._insertFunc,o=f.Deferred();return a(C,n),t=n.apply(this,[e]),i(t)||(t=r(t)),_.fromPromise(t).done(function(t){o.resolve(e,t)}).fail(s(o)),o.promise()},_updateImpl:function(e,t){var n,o=this._updateFunc,l=f.Deferred();return a(T,o),n=o.apply(this,[e,t]),i(n)||(n=r()),_.fromPromise(n).done(function(){l.resolve(e,t)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,o=f.Deferred();return a(E,n),t=n.apply(this,[e]),i(t)||(t=r()),_.fromPromise(t).done(function(){o.resolve(e)}).fail(s(o)),o.promise()}});e.exports=A},function(e,t,n){var i=n(9),r=n(25),a=n(45),o="dx-state-invisible",s="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())}}},u=r.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("<div>").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),r=c(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(r)},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(s,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(o,void 0!==e&&!e)},_dispose:function(){i.each(this._watchers,function(e,t){t.dispose()})}});u.getInstance=function(e){return a.getInstanceByElement(e,this)},e.exports=u},function(e,t,n){var i=n(71),r=n(83),a=n(84),o=Math.abs,s="dxhold",l=750,c=5,u=r.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(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return o(t.x)>c||o(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:u,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(9),r=n(61),a=n(53),o=n(25),s=n(73),l=n(71),c=n(164),u="dxContexMenu",d=l.addNamespace("contextmenu",u),h=l.addNamespace(c.name,u),p="dxcontextmenu",f=o.inherit({setup:function(e){var t=i(e);t.on(d,this._contextMenuHandler.bind(this)),(r.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("."+u)}});s(p,new f),t.name=p},function(e,t,n){var i=n(9),r=n(97),a=n(47),o=n(14),s=function(){var e=function(e,i,r,a,s){var l,c;return l=t(e,i,function(e){return c&&c(),o.isPrimitive(e)?void s(e):void(c=n(e,i,r,a,function(e){s(e)}))}),function(){c&&c(),l&&l()}},t=function(e,t,n){return t(function(){return e},n)},n=function(e,t,n,r,a){var o={},s=n.slice(),l=i.map(n,function(n){var i=r[n];return t(i?function(){return i(e)}:function(){return e[n]},function(e){if(o[n]=e,s.length){var t=s.indexOf(n);t>=0&&s.splice(t,1)}s.length||a(o)})});return function(){i.each(l,function(e,t){t()})}};return e}();e.exports=r.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=s(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,r=n(168),a=r.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),r=n(25),a=n(14),o=r.abstract,s=r.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:o,getItemDataByIndex:o,getKeysByItems:o,getItemsByKeys:o,itemsGetter:o,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:o,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:o,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:o,_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:o,_getNormalizedItemIndex:o,_normalizeItemIndex:o,_denormalizeItemIndex:o,_getItemByNormalizedIndex:o,_itemsFromSameParent:o});e.exports=s},function(e,t,n){var i=n(9),r=n(25),a=n(170),o=n(172),s=n(11).extend,l=n(14);e.exports=r.inherit({ctor:function(e){this.options=s(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new a(this.options):new o(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 r=this;return e=e||[],e=Array.isArray(e)?e:[e],r.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(),r=i[e];if(!this.isSelectable()||!this.isDataItem(r))return!1;var a=this.options.getItemData(r),o=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 s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(o):this._addSelectedItem(a,o),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],o);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([o],[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,r=!1,a=this.options.keyOf,o=a(t[this._focusedItemIndex].data),s=t[this._focusedItemIndex]&&this.isItemSelected(o);l.isDefined(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var c,u;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])&&(u=a(this.options.getItemData(t[i])),this._removeSelectedItem(u),r=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(c=this.options.getItemData(t[i]),u=a(c),this._addSelectedItem(c,u),r=!0);return this.isDataItem(t[this._focusedItemIndex])&&!s&&(c=this.options.getItemData(t[i]),u=a(c),this._addSelectedItem(c,u),r=!0),r},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 r=t[n];if(this.isDataItem(r)){var a=this.options.getItemData(r),o=this.options.keyOf(a),s=this.isItemSelected(o);s||e||this._addSelectedItem(a,o),s&&e&&this._removeSelectedItem(o)}}return this.onSelectionChanged(),i.Deferred().resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}})},function(e,t,n){var i=n(9),r=n(14),a=n(171),o=n(22),s=n(159);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=r.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,r){if(r){var a=this.options.filter();a?this._addSelectionFilter(n,a,!1):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var o=0;o<e.length;o++)n?this.removeSelectedItem(e[o]):this.addSelectedItem(e[o])}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||!!s([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 o.Error("E1042")},_hasSameFilter:function(e,t){return this._findSubFilter(e,t)>=0},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var r=e[i];if(r&&JSON.stringify(r)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&this._findSubFilter(e,t)===e.length-1},_addFilterOperator:function(e,t){return e.length>1&&r.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&r.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,r=!0,a=e?["!",t]:t,o=i.options.selectionFilter||[];if(o=i._denormalizeFilter(o),o&&o.length){if(i._hasSameFilter(o,a))return;i._removeInvertedFilter(o,e,t)&&(r=!n),r&&(o=i._addFilterOperator(o,e?"and":"or"))}r&&o.push(a),o=i._normalizeFilter(o),i._setOption("selectionFilter",e||o.length?o:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeInvertedFilter:function(e,t,n){n=t?n:["!",n];var i=this._findSubFilter(e,n);return JSON.stringify(n)===JSON.stringify(e)?(e.splice(0,e.length),!0):i>=0&&(i>0?e.splice(i-1,2):e.splice(i,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),r=n(159),a=n(14),o=n(12),s=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,r=this.options.selectedItems,o=this.options.selectedItemKeys,s=this.options.onSelectionChanged||a.noop;this._clearItemKeys(),s({selectedItems:r,selectedItemKeys:o,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,s=this.options.maxFilterLengthInRequest&&a>this.options.maxFilterLengthInRequest,l=i.Deferred(),c={filter:s?void 0:e,select:s?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?l.resolve([]):this.options.load(c).done(function(n){var i=o.isPlainObject(n)?n.data:n;t?i=i.filter(t):s&&(i=r(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=s(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=r(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 r=e[i],a=this.options.getItemData(r),o=this.options.keyOf(a);this.options.isSelectableItem(r)&&(this.isItemKeySelected(o)?t=!0:n=!0)}return!!t&&(!n||void 0)}})},function(e,t,n){function i(e,t,n,i,r,s){this.getLocalFilter=function(){return u},this.getExpr=function(){if(e){for(var i,r=0,o=t.length;r<o;r++){i=i||[];var s,l=t[r];r>0&&i.push(n?"and":"or"),s=a.isString(e)?d(l):h(l),i.push(s)}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[o(e[t])]=!0}return l},u=function(e){var l,u,d=r(e);if(!s&&(l=o(d),!a.isObject(l))){var h=c(t);return h[l]?!n:!!n}for(u=0;u<t.length;u++)if(i(t[u],d))return!n;return!!n},d=function(t,i){return[i||e,n?"<>":"=",t]},h=function(t){for(var i=[],r=0,a=e.length;r<a;r++){r>0&&i.push(n?"or":"and");var o=e[r],s=t&&t[o],l=d(s,o);i.push(l)}return i}}var r=n(9),a=n(14),o=a.getKeyHash,s=n(159),l=n(16).when,c=n(22),u=n(171);e.exports=u.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,r,a=this.options.keyOf;if(a){var o=t&&e.length>1&&!this.options.equalByReference;for(o&&(n={}),r=0;r<e.length;r++){var s=e[r],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}o&&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=r.Deferred(),o=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(o(),e,n,this.equalKeys.bind(this),this.options.keyOf,this.options.equalByReference),u=c.getCombinedFilter(l),d=[];t&&(d=u?s(this.options.selectedItems).filter(u).toArray():this.options.selectedItems.slice(0));var h=d.length?d:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=c.getLocalFilter();return h=h.filter(p),d.length||!n&&h.length===e.length?a.resolve(h):a=this._loadFilteredData(u,p),a},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var r=e[i],a=n(r);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=r.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 r=this,a=r._loadSelectedItems(e,n,i);return a.done(function(e){t?r._preserveSelectionUpdate(e,n):r._replaceSelectionUpdate(e),r.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=o(n),r=this.options.keyHashIndices[i];if(r)for(var a=0;a<r.length;a++)r[a]>e&&r[a]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,r=this._indexOfSelectedItemKey(n,t);if(r<0)return r;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[r]),i)return r;if(this.options.selectedItemKeys.splice(r,1),this.options.selectedItems.splice(r,1),a.isObject(n)||!this.options.keyHashIndices)return r;var o=this.options.keyHashIndices[n];return o?(o.shift(),o.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(r),r):r},_needRemoveItemKey:function(e,t){var n=this.options.keyHashIndices;if(!n)return e.indexOf(t)<0;for(var i=this._getKeyHash(t),r=0;r<e.length;r++){var a=this._getKeyHash(e[r]);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:o(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),r=n(73),a=n(148);r.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(r,a,o){var s,l=i.trim(o[t]),c={};"{"===l.charAt(0)?(c=r.$eval(l),s=n(c.execute)):s=n(o[t]),a.on(e,c,function(e){r.$apply(function(){s(r,{$event:e})})})}}])})},function(e,t,n){var i=n(9),r=n(148);r.service("dxDigestCallbacks",["$rootScope",function(e){var t=i.Callbacks(),n=i.Callbacks(),r=!1;return e.$watch(function(){r||(r=!0,t.fire(),e.$$postDigest(function(){r=!1,n.fire()}))}),{begin:{add:function(e){r&&e(),t.add(e)},remove:t.remove},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(177),r=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")),r.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(176);var i=n(177),r=n(89),a=n(34);if(n(177),i&&i.formatMessage){var o="en",s=i.loadMessages;i.loadMessages=function(e){r.load(e)};var l={ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),s(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===o||(i=this.getFormatter(e,o)),i},_formatterByGlobalize:function(e,t){var n,r=t&&t!==a.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=r.messageFormatter(e)),n},_messageLoaded:function(e,t){var n=t?new i(t).cldr:i.locale(),r=n.get(["globalize-messages/{bundle}",e]);return void 0!==r},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};r.inject(l)}},function(e,t,n){n(176);var i=n(177),r=n(32),a=n(7);if(n(177),i&&i.formatNumber){var o={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(o),i.locale("en"));var s={},l=function(e){var t,n;return n="object"==typeof e?i.locale().locale+":"+JSON.stringify(e):i.locale().locale+":"+e,t=s[n],t||(t=s[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))}};r.inject(c)}},function(e,t,n){n(176),n(179),n(177);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"}}}},r={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"}}}},o=["skeleton","date","time","datetime","raw"],s=n(9),l=n(177),c=n(33),u=n(14).isObject,d=n(26).inArray,h=n(7);if(l&&l.formatDate){"en"===l.locale().locale&&(l.load(a,i,r),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"}},_={_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 r=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&s.each(i.parts,function(e,n){r=r.replace("{"+e+"}",t._getPatternByFormat(n))}),r}},_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 s.map(t,function(e){return e})},getDayNames:function(e){var t=l.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return s.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||u(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<o.length;t++)if(e.hasOwnProperty(o[t]))return!0},firstDayOfWeekIndex:function(){var e=l.locale().supplemental.weekData.firstDay();return d(e,this._getDayKeys())},_getDayKeys:function(){var e=l.locale().main("dates/calendars/gregorian/days/format/short");return s.map(e,function(e,t){return t})}};c.inject(_)}},function(e,t,n){n(176),n(179),n(36),n(177);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":"$"}}}}}},r={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}},a=n(177),o=n(15),s=n(32);if(a&&a.formatCurrency){"en"===a.locale().locale&&(a.load(i,r),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},u={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||o().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=o().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=o().defaultCurrency),a.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,r,o=this.getCurrencySymbol(e).symbol,s=a.cldr.main("numbers/currencyFormats-numberSystem-latn");if(s.accounting){for(r={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\¤":o},n=s.accounting.split(";"),t=0;t<n.length;t++)for(i in r)r.hasOwnProperty(i)&&(n[t]=n[t].replace(new RegExp(i,"g"),r[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};s.inject(u)}},function(e,t,n){var i=n(9),r=n(56),a=n(25),o=n(73),s=n(75),l=n(71),c="dxdblclick",u="dxDblClick",d=l.addNamespace(s.name,u),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(d,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||i.now();t-this._lastClickTimeStamp<h?(l.fireEvent({type:c,target:r.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(d))}});o(c,new p),t.name=c},function(e,t,n){var i=n(71),r=n(86),a=n(84),o="dxswipestart",s="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}},u={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}},d={horizontal:c,vertical:u},h=r.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[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(o,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),r=t.calcOffsetRatio.call(this,e);r=this._fitOffset(r,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:r}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),r=n,a=this._calcTargetOffset(n,i);r=this._fitOffset(r,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:r,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:[o,s,l]}),t.swipe=s,t.start=o,t.end=l},function(e,t,n){var i=n(9),r=n(87),a=n(7),o=n(71),s=n(83),l=n(84),c="dx",u="transform",d="translate",h="zoom",p="pinch",f="rotate",_="start",g="",m="end",v=[],y=function(e,t){v.push({name:e,args:t})};y(u,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),y(d,{translation:!0,deltaTranslation:!0}),y(h,{scale:!0,deltaScale:!0}),y(p,{scale:!0,deltaScale:!0}),y(f,{rotation:!0,deltaRotation:!0});var b=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)}},x=function(e){var t=e.pointers;return b(t[0],t[1])},S=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},w=function(e,t){return S(e)/S(t)},k=function(e,t){var n=e.x*t.x+e.y*t.y,i=S(e)*S(t);if(0===i)return 0;var a=r.sign(e.x*t.y-t.x*e.y),o=Math.acos(r.fitIntoRange(n/i,-1,1));return a*o},C=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},T=s.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 o.hasTouches(e)>1},start:function(e){this._accept(e);var t=x(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(_,e)},move:function(e){var t=x(e),n=this._getEventArgs(t);this._fireEventAliases(g,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(m,e,t)},_getEventArgs:function(e){return{scale:w(e,this._startVector),deltaScale:w(e,this._prevVector),rotation:k(e,this._startVector),deltaRotation:k(e,this._prevVector),translation:C(e,this._startVector),deltaTranslation:C(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},i.each(v,function(r,a){var o={};i.each(a.args,function(e){e in n&&(o[e]=n[e])}),this._fireEvent(c+a.name+e,t,o)}.bind(this))}}),E=i.map(v,function(e){var t=[];return i.each([_,g,m],function(n,i){t.push(c+e.name+i)}),t});l({emitter:T,events:E}),i.each(E,function(e,n){t[n.substring(c.length)]=n})},function(e,t,n){var i=n(5),r=i.data=n(186);r.odata=n(191),e.exports=r},function(e,t,n){var i=n(6);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(155).errorHandler},set:function(e){n(155).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(155)._errorHandler},set:function(e){n(155)._errorHandler=e}}),i.data.DataSource=n(187),i.data.query=n(159),i.data.Store=n(154),i.data.ArrayStore=n(158),i.data.CustomStore=n(162),i.data.LocalStore=n(188),i.data.base64_encode=n(137).base64_encode,i.data.Guid=n(151),i.data.utils={},i.data.utils.compileGetter=n(50).compileGetter,i.data.utils.compileSetter=n(50).compileSetter,i.EndpointSelector=n(189),i.data.queryImpl=n(159).queryImpl,i.data.queryAdapters=n(161);var r=n(137);i.data.utils.normalizeBinaryCriterion=r.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=r.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=r.errorMessageFromXhr,i.data.utils.aggregators=r.aggregators,i.data.utils.keysEqual=r.keysEqual,i.data.utils.isDisjunctiveOperator=r.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=r.isConjunctiveOperator,i.data.utils.processRequestResultLock=r.processRequestResultLock,i.data.utils.toComparable=n(50).toComparable,i.data.utils.multiLevelGroup=n(156).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(156).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(153).normalizeDataSourceOptions},function(e,t,n){e.exports=n(153).DataSource},function(e,t,n){var i=n(9),r=n(25),a=r.abstract,o=n(155).errors,s=n(158),l=r.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,r=Math.max(100,t.flushInterval||1e4);if(!n){var a=this.save.bind(this);setInterval(a,r),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 o.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)}}),u={dom:c},d=s.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new u[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=d},function(e,t,n){function i(e){return/^(localhost$|127\.)/i.test(e)}var r=n(7),a=n(190),o=window.location,s="ms-appx:"===o.protocol,l=i(o.hostname),c=function(e){this.config=e};c.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw r.Error("E0006");return a.isProxyUsed()?a.formatProxyUrl(t.local):t.production&&(s&&!Debug.debuggerEnabled||!s&&!l)?t.production:t.local}},e.exports=c},function(e,t,n){var i=n(9),r=window.location,a="dxproxy.devexpress.com:8000",o=r.host===a,s={},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(r){e.href=r;var a={};return i.each(t,function(){a[this]=e[this]}),a.pathname=n(a.pathname),a}}(),c=function(){return r.pathname.split("/")[1]};e.exports={parseUrl:l,isProxyUsed:function(){return o},formatProxyUrl:function(e){var t=l(e);if(!/^(localhost$|127\.)/i.test(t.hostname))return e;var n=a+"/"+c()+"_"+t.port;s[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 s)if(s.hasOwnProperty(n)&&e.indexOf(n)>=0){t=e.replace(n,s[n]);break}return t}}},function(e,t,n){n(186),DevExpress.data.ODataStore=n(192),DevExpress.data.ODataContext=n(196),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(193).keyConverters,DevExpress.data.EdmLiteral=n(193).EdmLiteral;var i=n(193);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(195).odata},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function r(e,t){var n={};for(var i in e)n[i]=e[i];for(var r in t)r in n?n[r]!==t[r]&&c.log("W4001",r):n[r]=t[r];return n}var a=n(9),o=n(14),s=n(193),l=n(190),c=n(155).errors,u=n(159),d=n(154),h=n(194),p=n(16).when;n(195);var f="5d46402c-7899-4ea9-bd81-8b73c47c7683",_=d.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var o="string"==typeof a;t||(t=o?f:Object.keys(a),this._legacyAnonymousKey=t),o&&(a=i(t,a)),n=r(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),s.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=o.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 u(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 r in i){var a=i[r];t[a]=s.convertPrimitiveValue(n[a],e[a])}}else n[i]&&(t=s.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(s.serializeKey(i,this._version))+")"}},"odata").include(h.SharedMethods);e.exports=_},function(e,t,n){function i(e,t,n){var i=[],r=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(r(e.getMonth()+1)),i.push("-"),i.push(r(e.getDate())),t&&a()||(i.push("T"),i.push(r(e.getHours())),i.push(":"),i.push(r(e.getMinutes())),i.push(":"),i.push(r(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(e.getMilliseconds())),n||i.push("Z")),i.join("")}function r(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]),r=/(\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(r)&&r.length&&(t.setHours(Number(r[1])),t.setMinutes(Number(r[2])),t.setSeconds(Number(r[3])),t.setMilliseconds(Number(String(r[4]).substr(0,3))||0)),t}function a(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function o(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,r=n(e).split("/"),a=t.split("/");for(r.pop();a.length;)i=a.shift(),".."===i?r.pop():r.push(i);return r.join("/")}var s=n(9),l=n(25),c=n(11).extend,u=n(14),d=n(12),h=n(151),p=u.isDefined,f=n(155).errors,_=n(137),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})$/,m=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,v=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,y="application/json;odata=verbose",b=function(e,t,n){function r(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 o=(t.method||"get").toLowerCase(),l="get"===o,u=l&&n.jsonp,d=c({},t.params),h=l?d:r(t.payload),p=!l&&s.param(d),_=t.url,g=!l&&y;return p&&(_+=(_.indexOf("?")>-1?"&":"?")+p),u&&(h.$format="json"),{url:_,data:h,dataType:u?"jsonp":"json",jsonp:u&&"$callback",type:o,async:t.async,timeout:t.timeout,headers:t.headers,contentType:g,accepts:{json:[y,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},x=function(e,t,n){var i=s.Deferred(),r=b(e,t,n);return s.ajax(r).always(function(t,s){var l,c={deserializeDates:n.deserializeDates,fieldTypes:n.fieldTypes},u=k(t,s,c),d=u.error,h=u.data,p=u.nextUrl;d?i.reject(d):n.countOnly?isFinite(u.count)?i.resolve(u.count):i.reject(new f.Error("E4018")):p?(a(p)||(p=o(r.url,p)),x(e,{url:p},n).fail(i.reject).done(function(e){i.resolve(h.concat(e))})):(isFinite(u.count)&&(l={totalCount:u.count}),i.resolve(h,l))}),i.promise()},S=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},w=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",r=e;if("success"!==t){n=e.status,i=_.errorMessageFromXhr(e,t);try{r=JSON.parse(e.responseText)}catch(e){}}var a=r&&(r.then&&r||r.error||r["odata.error"]||r["@odata.error"]);return a?(i=S(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,r=w(e,t);return r?{error:r}:d.isPlainObject(e)?(i="d"in e&&(Array.isArray(e.d)||u.isObject(e.d))?C(e,t):T(e,t),A(i,n),i):{data:e}},C=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")}},T=function(e){var t=e;return p(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},E=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),A=function(e,t){t=t||{},s.each(e,function(n,i){if(null!==i&&"object"==typeof i)"results"in i&&(e[n]=i.results),A(e[n],t);else if("string"==typeof i){var a=t.fieldTypes,o=!a||"String"!==a[n];if(o&&g.test(i)&&(e[n]=new h(i)),t.deserializeDates!==!1)if(i.match(m)){var s=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);e[n]=new Date(s.valueOf()+60*s.getTimezoneOffset()*1e3)}else v.test(i)&&(e[n]=new Date(r(e[n]).valueOf()))}})},I=function(e){return"datetime'"+i(e,!0,!0)+"'"},O=function(e){return"'"+e.replace(/'/g,"''")+"'"},M=function(e){return e instanceof E?e.valueOf():e.replace(/\./g,"/")},D=function(e){return e instanceof Date?i(e,!1,!1):e instanceof h?e.valueOf():Array.isArray(e)?"["+e.map(function(e){
return D(e)}).join(",")+"]":P(e)},P=function(e){return e instanceof Date?I(e):e instanceof h?"guid'"+e+"'":e instanceof E?e.valueOf():"string"==typeof e?O(e):String(e)},L=function(e,t){switch(t){case 2:case 3:return P(e);case 4:return D(e);default:throw f.Error("E4002")}},B=function(e,t){if(d.isPlainObject(e)){var n=[];return s.each(e,function(e,i){n.push(M(e)+"="+L(i,t))}),n.join()}return L(e,t)},V={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof E?e:new E(e+"L")},Guid:function(e){return e instanceof h?e:new h(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof E?e:new E(e+"f")},Decimal:function(e){return e instanceof E?e:new E(e+"m")}},R=function(e,t){var n=V[e];if(!n)throw f.Error("E4014",e);return n(t)};t.sendRequest=x,t.serializePropName=M,t.serializeValue=L,t.serializeKey=B,t.keyConverters=V,t.convertPrimitiveValue=R,t.EdmLiteral=E},function(e,t,n){var i=n(9),r=n(18),a=n(193);n(195);var o=2,s=function(e,t){return r.format("{0}({1})",e,i.map(t||{},function(e,t){return r.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||o,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=s},function(e,t,n){var i=n(9),r=n(14),a=n(12),o=n(11).extend,s=n(161),l=n(193),c=l.serializePropName,u=n(155).errors,d=n(137),h=r.isFunction,p=a.isPlainObject,f=r.grep,_=2,g=function(){var e,t,n=function(e){return function(t,n){return t+" "+e+" "+n}},r=function(e,t){return function(n,i){var r=[e,"("];return t?r.push(i,",",n):r.push(n,",",i),r.push(")"),r.join("")}},a={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:r("startswith"),endswith:r("endswith")},s=o({},a,{contains:r("substringof",!0),notcontains:r("not substringof",!0)}),h=o({},a,{contains:r("contains"),notcontains:r("not contains")}),p=function(n){n=d.normalizeBinaryCriterion(n);var i=n[1],r=4===e?h:s,a=r[i.toLowerCase()];if(!a)throw u.Error("E4003",i);var o=n[0],p=n[2];return t&&t[o]&&(p=l.convertPrimitiveValue(t[o],p)),a(c(o),l.serializeValue(p,e))},f=function(e){var t=e[0],n=g(e[1]);if("!"===t)return"not ("+n+")";throw u.Error("E4003",t)},_=function(e){var t,n,r=[];return i.each(e,function(e,i){if(Array.isArray(i)){if(r.length>1&&t!==n)throw new u.Error("E4019");r.push("("+g(i)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),r.join(" "+t+" ")},g=function(e){return Array.isArray(e[0])?_(e):d.isUnaryOperation(e)?f(e):p(e)};return function(n,i,r){return t=r,e=i,g(n)}}(),m=function(e){var t,n,r,a,s=[],u=[],d=e.expand,m=e.version||_,v=function(){return n||void 0!==r},y=function(e){for(var t=0;t<e.length;t++){if(h(e[t]))return!0;if(Array.isArray(e[t])&&y(e[t]))return!0}return!1},b=function(){var e=function(e){return/\./.test(e)},n=function(){if(t)return m<4?c(t.join()):f(t,e,!0).join()},r=function(){var n=function(){var e={};return d&&i.each(i.makeArray(d),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()},r=function(){var n=function(e){var t=function(e){var n="",r=[],a=[];return i.each(e,function(e,n){Array.isArray(n)&&[].push.apply(r,n),p(n)&&a.push(e+t(n))}),(r.length||a.length)&&(n+="(",r.length&&(n+="$select="+i.map(r,c).join()),a.length&&(r.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()},r=function(e,t,n){var r=function(e,t,n){var i=n(t,e.shift(),e);i!==!1&&r(e,i,n)};i.each(e,function(e,i){r(i.split("."),t,n)})},a={};if(d||t)return d&&r(i.makeArray(d),a,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),t&&r(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 m<4?n():r()},a={$select:n()||void 0,$expand:r()||void 0};return a},x=function(){var t={};if(!a){s.length&&(t.$orderby=s.join(",")),n&&(t.$skip=n),void 0!==r&&(t.$top=r);var i=b();t.$select=i.$select,t.$expand=i.$expand}if(u.length){var o=u.length<2?u[0]:u,l=e&&e.fieldTypes;t.$filter=g(o,m,l)}return a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==m?t.$inlinecount="allpages":t.$count="true"),t};return{exec:function(t){return l.sendRequest(m,{url:t,params:o(x(),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,r=e[n][0],a=!!e[n][1];if("string"!=typeof r)return!1;i=c(r),a&&(i+=" desc"),t=t||[],t.push(i)}s=t},slice:function(e,t){return!v()&&(n=e,void(r=t))},filter:function(e){return!v()&&(Array.isArray(e)||(e=i.makeArray(arguments)),!y(e)&&(u.length&&u.push("and"),void u.push(e)))},select:function(e){return!t&&!h(e)&&(Array.isArray(e)||(e=i.makeArray(arguments)),void(t=e))},count:function(){a=!0}}};s.odata=m,t.odata=m},function(e,t,n){var i=n(9),r=n(25),a=n(11).extend,o=n(14),s=n(12),l=n(155),c=n(192),u=n(194),d=n(16).when;n(195);var h=r.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 r,a=i.Deferred(),o=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(o=u.formatFunctionInvocationUrl(o,u.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(r=t,t=null)),d(this._sendRequest(o,n,u.escapeServiceOperationParams(t,this.version()),r)).done(function(t){s.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 o.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(u.SharedMethods);e.exports=h},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var r=n(15),a=n(14),o=a.isString,s=a.isDate,l=a.isNumeric,c="number",u="yyyy/MM/dd",d="yyyy/MM/dd HH:mm:ss",h=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d+))?)?)?(Z|([\+\-])(\d{2})(:)?(\d{2})?)?$/,p=/^(\d{2}):(\d{2})(:(\d{2}))?$/,f=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],_={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 r=n?0:e.getTimezoneOffset(),a=r>0?"-":"+",o=Math.abs(r),s=Math.floor(o/60),l=o%60,c=i(s.toString(),2),u=i(l.toString(),2);return a+c+(t>=3?":":"")+(t>1||l?u:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":_.x(e,t,n)},Z:function(e,t,n){return _.X(e,t>=5?3:2,n)}},g=function(e,t){var n,i,r,a,o=0,s="'",l=!1,c="";if(!e)return null;if(!t)return e;var u="Z"===t[t.length-1]||"'Z'"===t.slice(-3);for(n=0;n<t.length;n++)r=t[n],i=_[r],a=r===t[n+1],o++,a||(i&&!l&&(c+=i(e,o,u)),o=0),r!==s||a?!l&&i||(c+=r):l=!l,r===s&&a&&n++;return c},m=function(e,t){var n,i;return o(e)&&!t&&(n=v(e)),n||(i=!s(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],r=--t[3],a=t[5],o=0,s=0;o=n(t[14]),s=n(t[16]),"-"===t[13]&&(o=-o,s=-s);var l=n(t[6])-o,c=n(t[8])-s,u=n(t[10]);return t[12]?new Date(Date.UTC(i,r,a,l,c,u)):new Date(i,r,a,l,c,u)}if(t=e.match(p))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},y=function(e,t){var n=e.match(h),i="";{if(n){for(var r=1;r<f.length;r++)n[r]&&(i+=f[r]||n[r]);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"}},b=function(e){return"number"==typeof e?new Date(e):m(e,!r().forceIsoDateParsing)},x=function(e,t){return t?s(e)?t===c?e&&e.valueOf?e.valueOf():null:g(e,t):null:e},S=function(e){if("number"==typeof e)return c;if(o(e)){var t;return r().forceIsoDateParsing&&(t=y(e)),t?t:e.indexOf(":")>=0?d:u}return e?null:void 0};e.exports={dateParser:m,deserializeDate:b,serializeDate:x,getDateSerializationFormat:S}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var i=n(5);n(185);var r=i.viz=n(507);r.currentTheme=n(508).currentTheme,r.registerTheme=n(508).registerTheme,r.exportFromMarkup=n(510).exportFromMarkup,r.getMarkup=n(510).getMarkup,r.currentPalette=n(512).currentPalette,r.getPalette=n(512).getPalette,r.registerPalette=n(512).registerPalette,r.refreshTheme=n(508).refreshTheme,r.dxChart=n(513),r.dxPieChart=n(584),r.dxPolarChart=n(586),r.dxLinearGauge=n(587),r.dxCircularGauge=n(597),r.dxBarGauge=n(601),r.dxRangeSelector=n(603),r.dxVectorMap=n(613),r.map={},r.map.sources={},r.map.projection=n(626).projection,r.dxSparkline=n(627),r.dxBullet=n(630),r.dxTreeMap=n(632);var a={};r.core=a,a.currentTheme=n(508).currentTheme,a.registerTheme=n(508).registerTheme,a.currentPalette=n(512).currentPalette,a.getPalette=n(512).getPalette,a.registerPalette=n(512).registerPalette,r.BaseWidget=n(515),r.findTheme=n(508).findTheme,r.refreshAll=n(508).refreshTheme,r.refreshPaths=n(655).refreshPaths,r.gauges={__internals:{}},r._dashboard={},r._dashboard.Renderer=n(518).Renderer,r._dashboard.SvgElement=n(518).SvgElement,r._dashboard.patchFontOptions=n(509).patchFontOptions,e.exports=r},function(e,t,n){n(6),e.exports=DevExpress.viz=DevExpress.viz||{}},function(e,t,n){function i(e){var t=A(e);return w[t]||w[k[t]||I]}function r(e,t){return k[e+"."+t]||C[e+"."+t]||k[e]}function a(e,t,n){return r(e+t,n)||r(e,n)}function o(e,t){if(!arguments.length)return I;var n=A(t);return I=(e&&e.platform?a(A(e.platform),e.version,n):r(A(e),n))||I,this}function s(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}function l(e,t){var n=s(e,".")||s(e,"-")||{name:e},i=n.name,r=n.scheme;r?(k[i]=k[i]||t,k[i+"."+r]=k[i+"-"+r]=t):k[i]=t}function c(e,t){var n=A(e&&e.name);n&&(l(n,n),w[n]=T(!0,{},i(t),f(e)))}function u(e,t){l(A(e),A(t))}function d(e,t){C[e]=t}function h(e,t,n,i){var r=n?n[t]:i;void 0!==r&&void 0===e[t]&&(e[t]=r)}function p(e,t,n,i){var r=n?n[t]:i;void 0!==r&&(e[t]=T(!0,{},r,e[t]))}function f(e){return e=T(!0,{loadingIndicator:{font:{}},"export":{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e),h(e.loadingIndicator,"backgroundColor",e),h(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),h(e.map.background,"color",null,e.backgroundColor),h(e.title.font,"color",null,e.primaryTitleColor),p(e.title,"subtitle",null,e.title),h(e.legend.font,"color",null,e.secondaryTitleColor),h(e.legend.border,"color",null,e.axisColor),_(e),E(["chart","pie","polar","gauge","barGauge","map","treeMap","rangeSelector","sparkline","bullet"],function(t,n){h(e[n],"redrawOnResize",e),h(e[n],"containerBackgroundColor",null,e.backgroundColor),p(e[n],"tooltip",e)}),E(["chart","pie","polar","gauge","barGauge","map","treeMap","rangeSelector"],function(t,n){p(e[n],"loadingIndicator",e),p(e[n],"export",e),p(e[n],"legend",e),p(e[n],"title",e)}),E(["chart","pie","polar"],function(t,n){p(e,n,null,e["chart:common"])}),E(["chart","polar"],function(t,n){e[n]=e[n]||{},p(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),p(e.rangeSelector.chart,"commonSeriesSettings",e.chart),p(e.rangeSelector.chart,"dataPrepareSettings",e.chart),h(e.treeMap.group.border,"color",null,e.axisColor),h(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.treeMap.group.label.font,"color",null,e.secondaryTitleColor),h(e.map.legend,"backgroundColor",e),g(e),e}function _(e){var t=e["chart:common:axis"],n="color";E([t,t.grid,t.minorGrid,t.tick,t.minorTick],function(t,i){h(i,n,null,e.axisColor)}),h(t.title.font,n,null,e.secondaryTitleColor),h(t.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.tick,n,null,e.backgroundColor),h(e.gauge.scale.minorTick,n,null,e.backgroundColor),h(e.rangeSelector.scale.tick,n,null,e.axisColor),h(e.rangeSelector.scale.minorTick,n,null,e.axisColor),h(e.rangeSelector.scale.label.font,n,null,e.axisLabelColor)}function g(e){var t=e.map;E(["area","line","marker"],function(e,n){p(t,"layer:"+n,null,t.layer)}),E(["dot","bubble","pie","image"],function(e,n){p(t,"layer:marker:"+n,null,t["layer:marker"])})}function m(e){var t=++O;e._cache=t,M[t]=e}function v(e){delete M[e._cache]}function y(){return E(M,function(){this.refresh()}),this}var b=n(9),x=n(11).extend,S=n(509),w={},k={},C={},T=x,E=b.each,A=S.normalizeEnum,I=null,O=0,M={};T(t,{currentTheme:o,registerTheme:c,findTheme:i,registerThemeAlias:u,registerThemeSchemeAlias:d,refreshTheme:y,addCacheItem:m,removeCacheItem:v})},function(e,t,n){function i(e,t){for(var n,i=0,r=e.length,a=[];i<r;)n=t(e[i],i),null!==n&&a.push(n),i++;return a}function r(e,t){return i(t,function(t){return e[t]?e[t]:null})}function a(e,t,n,i){var r=i;return m(t,function(t,i){e[i]&&(e[i]-=n,r-=n)}),r}function o(e){return String(e).toLowerCase()}function s(e){e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right)}function l(e){return-w<e&&e<+w?e:0}function c(e){var t=l(O(e.x)),n=l(O(e.y)),i=l(M(e.width+e.x)),r=l(M(e.height+e.y)),a={x:t,y:n,width:i-t,height:r-n};return a.isEmpty=!(a.x||a.y||a.width||a.height),a}function u(e,t,n){var i=L(T(n*k).toFixed(3)),r=L(E(n*k).toFixed(3)),a=e.width/2,o=e.height/2,s=e.x+a,l=e.y+o,u=A(a*i)+A(o*r),d=A(a*r)+A(o*i),h=t[0]+(s-t[0])*i+(l-t[1])*r,p=t[1]-(s-t[0])*r+(l-t[1])*i;return c({x:h-u,y:p-d,width:2*u,height:2*d})}var d=n(9),h=n(14),p=n(11).extend,f=n(26).inArray,_=h.isDefined,g=f,m=d.each,v=Math,y=v.round,b=Math.sqrt,x=p,S=Math.PI,w=1e10,k=S/180,C=Math.LN10,T=Math.cos,E=Math.sin,A=Math.abs,I=Math.log,O=Math.floor,M=Math.ceil,D=Math.max,P=window.isNaN,L=window.Number,B=window.NaN,V=h.isNumeric,R=h.isExponential,F=function(e){var t,n,i,r=e.toString(),a=r.indexOf(".");return R(e)?(i=K(e),i<0?Math.abs(i):0):a!==-1?(n=a+1,t=r.substring(n,n+20),t.length):0},z=function(e,t){return e?Math.log(e)/Math.log(t):B},H=function(e,t){return Math.pow(t,e)},N=function(e){return(e%360+360)%360},G=function(e){return 90-e},j=function(e){return S*e/180},W=function(e){var t=j(e);return{cos:T(t),sin:E(t)}},U=1e-14,Y=function(e,t,n,i){var r=n-e,a=i-t;return Math.sqrt(a*a+r*r)},K=function(e){var t,n=A(e);return P(n)?B:n>0?(n=I(n)/C,t=M(n),t-n<U?t:O(n)):0},$=function(e,t,n){var i,r=D(K(e),K(t)),a=-K(A(t-e)/n);return P(r)||P(a)?null:(A(r)<=4?(i="fixedPoint",a<0&&(a=0),a>4&&(a=4)):(i="exponential",a+=r-1,a>3&&(a=3)),{type:i,precision:a})},X=function(e){var t,n;return V(e)&&(t=e.toString(),n=t.indexOf("."),n>=0)?R(e)?t.substr(n+1,t.indexOf("e")-n-1):(t=e.toFixed(20),t.substr(n+1,t.length-n+1)):""},q=function(e){var t,n=X(e);if(n)for(t=0;t<n.length;t++)if("0"!==n.charAt(t))return t+1;return 0},Z=function(e){var t,n,i=X(e);if(i)for(n=1;n<=i.length;n++)if(t=Q(e,n),0!==t&&i[n-2]&&i[n-1]&&i[n-2]===i[n-1])return t;return e},Q=function(e,t){if(t>20&&(t=20),V(e))return L(R(e)?e.toExponential(t):e.toFixed(t))},J=function(e,t,n){var i=F(e),r=F(t);return Q(n,i<r?r:i)},ee=function(e){return e.toExponential().split("e")[1]};p(t,{decreaseGaps:function(e,t,n){var i;do i=r(e,t),i.push(v.ceil(n/i.length)),n=a(e,t,v.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:o,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t<n;++t)i[o(e[t])]=1;return function(e,t){var n=o(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return m(e||{},function(e,n){/^(cursor|opacity)$/i.test(e)||(e="color"===e?"fill":"font-"+e),t[e]=n}),t},convertPolarToXY:function(e,t,n,i){var r,a=90;return n=_(n)?n+t-a:0,r=W(n),{x:y(e.x+i*r.cos),y:y(e.y+i*r.sin)}},convertXYToPolar:function(e,t,n){var i=Y(e.x,e.y,t,n),r=v.atan2(n-e.y,t-e.x);return{phi:y(N(180*r/v.PI)),r:y(i)}},processSeriesTemplate:function(e,t){var n,r,a,o=h.isFunction(e.customizeSeries)?e.customizeSeries:h.noop,s=e.nameField||"series",l={},c=[],u=0;for(t=t||[],r=t.length;u<r;u++)a=t[u],s in a&&(n=l[a[s]],n||(n=l[a[s]]={name:a[s],data:[]},c.push(n.name)),n.data.push(a));return i(c,function(e){var t=l[e];return p(t,o.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(!(e&&e.length>0))return{};t=_(t)?t:e[0],n=_(n)?n:e[e.length-1];var r,a,o,s,l=i(e,function(e){return _(e)?e.valueOf():null}),c=_(t)?g(t.valueOf(),l):0,u=_(n)?g(n.valueOf(),l):e.length-1,d=!1;return c<0&&(c=0),u<0&&(u=e.length-1),u<c&&(a=u,u=c,c=a,d=!0),r=e.slice(c,u+1),s=r.length,o=s>0,{categories:o?r:null,start:o?r[d?s-1:0]:null,end:o?r[d?0:s-1]:null,inverted:d}},setCanvasValues:s,updatePanesCanvases:function(e,t,n){var i=0;m(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var r=0,a=e.padding||10,o=n?t.width-t.left-t.right:t.height-t.top-t.bottom,l=(o-a*(e.length-1))/i,c=n?"left":"top",u=n?"right":"bottom";m(e,function(e,n){var i=y(n.weight*l);n.canvas=n.canvas||{},x(n.canvas,t),n.canvas[c]=t[c]+r,n.canvas[u]=t[u]+(o-i-r),r=r+i+a,s(n.canvas)})},unique:function(e){var t={};return i(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:i,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=n.x,r=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,o=a+t,s=y(b(r*r+a*a-o*o)),l=(i?+s:-s)||r;return{x:n.x+(i?l:l-e.width),y:e.y+t}}}),t.getPrecision=F,t.getLog=z,t.raiseTo=H,t.normalizeAngle=N,t.convertAngleToRendererSpace=G,t.degreesToRadians=j,t.getCosAndSin=W,t.getDecimalOrder=K,t.getAppropriateFormat=$,t.getDistance=Y,t.getFraction=X,t.adjustValue=Z,t.roundValue=Q,t.applyPrecisionByMinDelta=J,t.getSignificantDigitPosition=q,t.getPower=ee,t.rotateBBox=u,t.normalizeBBox=c},function(e,t,n){e.exports=n(511)},function(e,t,n){function i(e){var t=String(e).toUpperCase();if(h(t,L)!==-1)return t}function r(e){return"SVG"===e?v.getData:"PDF"===e?y.getData:m.getData}function a(e,t,n){e&&e.hide(),_.export(t(),n,r(n.format)),e&&e.show()}function o(e,t){var n,i=window.open();i&&(i.document.open(),i.document.write(e),i.document.close(),n=i.document.body.getElementsByTagName("svg")[0],n&&(n.style.backgroundColor=t),i.print(),i.close())}function s(e,t,n){var i,r={},a=w-T,o=w+C+n*I;return r.rect={width:T-2*O,height:I,x:a+O,y:o},r.text={x:a+A,y:o+I-E,align:"left"},"printing"===t&&(i="M "+a+" "+(o+I-O)+" L "+(a+T)+" "+(o+I-O),r.separator={stroke:e.button.default.borderColor,"stroke-width":O,cursor:"pointer",sharp:"v",d:i}),r}function l(e,t,n){var i,r={},a=n.type,o=n.format,l=s(t,a,n.itemIndex),c=p(t.font),u=e.rect(),d=e.text(n.text);return c["pointer-events"]="none",i=e.g().attr({"class":B+"-list-item"}),r[V]=a,o&&(r[R]=o),u.attr(l.rect).css({cursor:"pointer","pointer-events":"all"}).data(r),u.on(b.start+".export",function(){u.attr({fill:t.button.hover.backgroundColor})}).on(b.end+".export",function(){u.attr({fill:null})}),u.append(i),d.css(c).attr(l.text).append(i),"printing"===a&&e.path(null,"line").attr(l.separator).append(i),{g:i,rect:u,resetState:function(){u.attr({fill:null})}}}function c(e,t){var n=t.formats,r=[];return t.printingEnabled&&r.push(l(e,t,{type:"printing",text:g.format("vizExport-printingButtonText"),itemIndex:r.length})),r=n.reduce(function(n,r){return r=i(r),r&&n.push(l(e,t,{type:"exporting",text:g.getFormatter("vizExport-exportButtonText")(r),format:r,itemIndex:n.length})),n},r)}function u(e,t,n,r){return{format:i(r||t.format)||"PNG",fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:e._canvas.width,height:e._canvas.height,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}var d=n(11).extend,h=n(26).inArray,p=n(509).patchFontOptions,f=d,_=n(20),g=n(89),m=_.image,v=_.svg,y=_.pdf,b=n(103),x=n(76),S=[x.down,x.move].join(" "),w=35,k=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],C=4,T=120,E=8,A=15,I=30,O=1,M=10,D=2,P=3,L=["PNG","PDF","JPEG","SVG","GIF"],B="dx-export-menu",V="export-element-type",R="export-element-format";t.exportFromMarkup=function(e,t){t.format=i(t.format)||"PNG",t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,_.export(e,t,r(t.format))},t.getMarkup=function(e){var t=[],n=0,i=0;return e.forEach(function(e){var r=e.getSize();t.push(e.svg().replace("<svg",'<g transform="translate(0,'+n+')" ').replace("</svg>","</g>")),n+=r.height,i=Math.max(i,r.width)}),'<svg height="'+n+'" width="'+i+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+t.join("")+"</svg>"},t.ExportMenu=function(e){var t=this,n=t._renderer=e.renderer;t._incidentOccurred=e.incidentOccurred,t._svgMethod=e.svgMethod,t._shadow=n.shadowFilter("-50%","-50%","200%","200%",D,6,P),t._shadow.attr({opacity:.8}),t._group=n.g().attr({"class":B}).linkOn(n.root,{name:"export-menu",after:"peripheral"}),t._buttonGroup=n.g().attr({"class":B+"-button"}).append(t._group),t._listGroup=n.g().attr({"class":B+"-list"}).append(t._group),t._overlay=n.rect(-T+w,w+C,T,0),t._overlay.attr({"stroke-width":O,cursor:"pointer",rx:4,ry:4,filter:t._shadow.id}),t._overlay.data({"export-element-type":"list"}),t._subscribeEvents()},f(t.ExportMenu.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=M,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._hiddenDueToLayout=!1,this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){var i;return this._options.exportOptions.width=n.width,this._options.exportOptions.height=n.height,this._group.move(e-w-D-P+n.left,Math.floor(t/2-w/2)),i=this.getLayoutOptions(),(i.width>e||i.height>t)&&(this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()),this},show:function(){!this._hiddenDueToLayout&&this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){this._options=e,e.formats=e.formats||L,e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){var e=this;e._unsubscribeEvents(),e._group.linkRemove().linkOff(),e._group.dispose(),e._shadow.dispose(),e._shadow=e._group=e._listGroup=e._buttonGroup=e._button=null,e._options=null},layoutOptions:function(){var e=this._options;return e.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){return[w+D,w]},move:function(e){this._group.attr({translateX:Math.round(e[0]),translateY:Math.round(e[1])})},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(function(e){e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0},_setButtonState:function(e){var t=this,n=t._options.button[e];this._button.attr({stroke:n.borderColor,fill:n.backgroundColor}),this._icon.attr({fill:n.color})},_subscribeEvents:function(){var e=this;e._renderer.root.on(x.up+".export",function(t){var n,i=t.target[V],r=e._options;return i?void("button"===i?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===i?(e.hide(),o(e._svgMethod(),r.backgroundColor),e.show(),e._hideList()):"exporting"===i&&(n=f({},r.exportOptions,{format:t.target[R]}),a(e,function(){return e._svgMethod()},n),e._hideList())):void(e._button&&e._hideList())}),e._listGroup.on(S,function(e){e.stopPropagation()}),e._buttonGroup.on(x.enter,function(){e._setButtonState("hover")}),e._buttonGroup.on(x.leave,function(){e._setButtonState(e._listShown?"focus":"default")}),e._buttonGroup.on(x.down+".export",function(){e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this,t=e._renderer,n=e._options,i={fill:n.button.default.color,cursor:"pointer"},r={"export-element-type":"button"};e._button||(e._button=t.rect(0,0,w,w).append(e._buttonGroup),e._button.attr({rx:4,ry:4,fill:n.button.default.backgroundColor,stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),e._button.data(r),e._icon=t.path(k).append(e._buttonGroup),e._icon.attr(i),e._icon.data(r),e._buttonGroup.setTitle(g.format("vizExport-titleMenuText")))},_updateList:function(){var e=this,t=e._options,n=t.button.default,i=e._listGroup,r=c(e._renderer,t);e._shadow.attr({color:t.shadowColor}),e._overlay.attr({height:r.length*I,fill:n.backgroundColor,stroke:n.borderColor}),i.clear(),e._overlay.append(i),r.forEach(function(e){e.g.append(i)}),e._menuItems=r}}),t.plugin={name:"export",init:function(){var e=this;e._exportMenu=new t.ExportMenu({renderer:e._renderer,svgMethod:function(){return e.svg()},incidentOccurred:e._incidentOccurred}),e._layout.add(e._exportMenu)},dispose:function(){this._exportMenu.dispose(),this._exportMenu=null},members:{_getExportMenuOptions:function(){var e=this._getOption("export")||{},t=u(this,e);return f({},e,{exportOptions:t})},exportTo:function(e,t){var n=this,i=u(n,n._getOption("export")||{},e,t);a(n._exportMenu,function(){return n.svg()},i)},print:function(){o(this.svg(),this._getOption("export").backgroundColor)}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"}}},function(e,t,n){function i(e){return void 0===e?T:(e=w(e),void(T=e in E?e:C))}function r(e,t){var n,i=t&&t.type;return b(e)?e.slice(0):(x(e)&&(n=E[w(e)]),n||(n=E[T]),n=n||null,i&&n?n[i].slice(0):n)}function a(e,t){var n,i={};b(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=b(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=b(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=b(t.gradientSet)?t.gradientSet.slice(0):void 0),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=w(e),S(E[n]=E[n]||{},i))}function o(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function s(e,t){t=t||{};var n=t.useHighlight?k:0;this._originalPalette=r(e,{type:t.type||"simpleSet"}),this._paletteSteps=new o([0,n,-n]),this._resetPalette()}function l(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(c(e[n],t));return i}function c(e,t){var n=new m(e).alter(t),i=u(n);return(i>200||i<55)&&(n=new m(e).alter(-t/2)),n.toHex()}function u(e){return.3*e.r+.59*e.g+.11*e.b}function d(e,t){var n=t>0?h(r(e,{type:"gradientSet"}),t):[];this.getColor=function(e){return n[e]||null}}function h(e,t){function n(e){var t=a*e,n=_(t),i=g(t);s.push(o[n].blend(o[i],t-n).toHex())}var i,r=t-1,a=e.length-1,o=[],s=[];for(i=0;i<=a;++i)o.push(new m(e[i]));if(r>0)for(i=0;i<=r;++i)n(i/r);else n(.5);return s}function p(e){var t=r(e,{type:"gradientSet"}),n=new m(t[0]),i=new m(t[1]);this.getColor=function(e){return 0<=e&&e<=1?n.blend(i,e).toHex():null}}var f=n(509),_=Math.floor,g=Math.ceil,m=n(38),v=n(14),y=n(11).extend,b=Array.isArray,x=v.isString,S=y,w=f.normalizeEnum,k=50,C="default",T=C,E={"default":{simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"]},"harmony light":{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"]},"soft pastel":{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"]},pastel:{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"]},bright:{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"]},soft:{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"]},ocean:{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"]},vintage:{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"]},violet:{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"]}};s.prototype={constructor:s,dispose:function(){this._originalPalette=this._palette=this._paletteSteps=null},getNextColor:function(){var e=this;return e._currentColor>=e._palette.length&&e._resetPalette(),e._palette[e._currentColor++]},_resetPalette:function(){var e=this,t=e._paletteSteps.next();e._palette=t?l(e._originalPalette,t):e._originalPalette.slice(0),e._currentColor=0},reset:function(){return this._paletteSteps.reset(),this._resetPalette(),this}},S(t,{Palette:s,DiscretePalette:d,GradientPalette:p,registerPalette:a,getPalette:r,currentPalette:i})},function(e,t,n){function i(e,t,n){for(var i,r=0;r<e.length;r++)if(e[r].pane===t||void 0===e[r].pane&&t===n){i=e[r].name;break}return i||(i=e[0].name),i}function r(e,t,n){var i,r=[];R(e,function(e,n){n.pane===t&&r.push(n)}),r.length>1&&n&&R(r,function(e,t){var n=t.getOptions().grid,r=t.getOptions().minorGrid;i&&n&&n.visible?(n.visible=!1,r&&(r.visible=!1)):i=i?i:n&&n.visible})}function a(e,t,n){var i,r;for(r=0;r<t.length;r++)if(t[r].name===n){i=t[r],i.priority=r;break}if(!i)for(r=0;r<e.length;r++)if(e[r].name===n){i=e[r].getOptions(),i.priority=e[r].priority;break}return i}function o(e,t,n){var i,r;for(r=0;r<n.length;r++)if(i=n[r],
i.name===t&&i.pane===e)return i;if(e)return o(void 0,t,n)}function s(e,t){R(e||[],function(e,n){n&&n.attr(t)})}function l(e,t){return e.priority-t.priority}function c(e,t){var n=!1;return R(e,function(e,i){if(i.name===t)return n=!0,!1}),n}function u(e,t,n,i){var r=t[e]||0,a=n[e]||0;return r+a+(r&&a?i:0)}function d(e,t,n){return h(t[e],n[e])}function h(e,t){return Math.max(e||0,t||0)}function p(e){return e.getMargins()}function f(e,t){return e.reduce(function(e,n){var i=t(n),r=e.panes[n.pane]=e.panes[n.pane]||{},a=n.getMultipleAxesSpacing();return r.top=u("top",r,i,a),r.bottom=u("bottom",r,i,a),r.left=d("left",r,i),r.right=d("right",r,i),e.top=d("top",r,e),e.bottom=d("bottom",r,e),e.left=d("left",r,e),e.right=d("right",r,e),e},{panes:{}})}function _(e){return e.reduce(function(e,t){var n=t.getMargins(),i=e.panes[t.pane]=e.panes[t.pane]||{},r=t.getMultipleAxesSpacing();return i.top=d("top",i,n),i.bottom=d("bottom",i,n),i.left=u("left",i,n,r),i.right=u("right",i,n,r),e.top=d("top",i,e),e.bottom=d("bottom",i,e),e.left=d("left",i,e),e.right=d("right",i,e),e},{panes:{}})}function g(e,t,n,i){e.forEach(function(e){e[t](n&&n[e.pane],i&&i[e.pane])})}function m(e,t,n,i){function r(t,n,i){var r=(e?["left","right"]:["top","bottom"]).indexOf(t)===-1?n:n.panes[i]||{};return r[t]}function a(e,t,n,i){return h(r(e,t,i),r(e,n,i))}for(var o in t)t[o].top=t[o].originalTop+a("top",n,i,o),t[o].bottom=t[o].originalBottom+a("bottom",n,i,o),t[o].left=t[o].originalLeft+a("left",n,i,o),t[o].right=t[o].originalRight+a("right",n,i,o);return t}function v(e,t,n,i){t&&(g(e,"createTicks",n),O.synchronize(e)),g(e,"draw",!t&&n,i)}function y(e,t){var n={};return function(i){var r=n[i.pane]=n[i.pane]||{top:0,left:0,bottom:0,right:0},a=i.getMultipleAxesSpacing(),o=i.getMargins();i.shift(r),r[e]=u(e,r,o,a),r[t]=u(t,r,o,a)}}function b(e,t){var n,i,r=0;for(n in t.panes)i=t.panes[n],r+="height"===e?i.top+i.bottom:i.left+i.right;return r}function x(e,t,n,i){var r=0;e[t]>0&&(r=b(t,i(n,p)),g(n,"hideTitle"),e[t]-=r-b(t,i(n,p))),e[t]>0&&g(n,"hideOuterElements")}var S=n(9),w=n(14),k=n(11).extend,C=n(26).inArray,T=n(57),E=n(509),A=n(514).overlapping,I=n(555),O=n(562),M=n(563).AdvancedChart,D=n(582),P=n(581),L="default",B=[{name:L,border:{}}],V=E.map,R=S.each,F=Array.isArray,z=w.isDefined,H=function(e,t,n,i,r){var a=~~((n<i?n:i)/2),o=r.width||0,s=o<a?o:a;e+=s/2,t+=s/2,n-=s,i-=s;var l,c=e+n,u=t+i,d=[],h=[],p=0,f=0,_={top:[[e,t],[c,t]],right:[[c,t],[c,u]],bottom:[[c,u],[e,u]],left:[[e,u],[e,t]]};switch(R(_,function(e){var t=!!r[e];p=2*p+~~t}),p){case 13:case 9:l=["left","top","right","bottom"];break;case 11:l=["bottom","left","top","right"];break;default:l=["top","right","bottom","left"]}return R(l,function(e,t){var n=!!r[t];!f&&h.length&&(d.push(h),h=[]),n&&R(_[t].slice(f),function(e,t){h=h.concat(t)}),f=~~n}),h.length&&d.push(h),1===d.length&&(d=d[0]),{points:d,pathType:15===p?"area":"line"}},N=M.inherit({_chartType:"chart",_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),k(this._deprecatedOptions,{"argumentAxis.label.overlappingBehavior.rotationAngle":{since:"17.1",message:"Use the 'argumentAxis.label.rotationAngle' option instead"},"argumentAxis.label.overlappingBehavior.staggeringSpacing":{since:"17.1",message:"Use the 'argumentAxis.label.staggeringSpacing' option instead"},"argumentAxis.label.overlappingBehavior.mode":{since:"17.1",message:"Use the 'overlappingBehavior' option directly"},"valueAxis.label.overlappingBehavior.rotationAngle":{since:"17.1",message:"Use the 'valueAxis.label.rotationAngle' option instead"},"valueAxis.label.overlappingBehavior.staggeringSpacing":{since:"17.1",message:"Use the 'valueAxis.label.staggeringSpacing' option instead"},"valueAxis.label.overlappingBehavior.mode":{since:"17.1",message:"Use the 'overlappingBehavior' option directly"},"commonAxisSettings.label.overlappingBehavior.rotationAngle":{since:"17.1",message:"Use the 'commonAxisSettings.label.rotationAngle' option instead"},"commonAxisSettings.label.overlappingBehavior.staggeringSpacing":{since:"17.1",message:"Use the 'commonAxisSettings.label.staggeringSpacing' option instead"},"commonAxisSettings.label.overlappingBehavior.mode":{since:"17.1",message:"Use the 'overlappingBehavior' option directly"}})},_initCore:function(){this.paneAxis={},this._panesClipRects={},this.callBase()},_disposeCore:function(){var e=this,t=this._disposeObjectsInArray,n=e._panesClipRects;e.callBase(),t.call(n,"fixed"),t.call(n,"base"),t.call(n,"wide"),e._panesClipRects=null},_correctAxes:function(){this._correctValueAxes()},_getExtraOptions:w.noop,_processSingleSeries:w.noop,_cleanPanesClipRects:function(e){var t=this,n=t._panesClipRects[e];R(n||[],function(e,t){t&&t.dispose()}),t._panesClipRects[e]=[]},_createPanes:function(){var e,t=this,n=t.option("panes"),i=0;return(!n||F(n)&&!n.length)&&(n=B),t._cleanPanesClipRects("fixed"),t._cleanPanesClipRects("base"),t._cleanPanesClipRects("wide"),e=t.option("defaultPane"),n=k(!0,[],F(n)?n:[n]),R(n,function(e,t){t.name=z(t.name)?t.name:L+i++}),z(e)?c(n,e)||(t._incidentOccurred("W2101",[e]),e=n[n.length-1].name):e=n[n.length-1].name,t.defaultPane=e,n=t._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(e,t,n){return{isHorizontal:"argumentAxis"===e!==n}},_checkPaneName:function(e){var t=V(this.panes,function(e){return e.name});return e.pane=e.pane||this.defaultPane,C(e.pane,t)!==-1},_getValueAxis:function(e,t){var n,r,s=this,l=s._valueAxes,c=s.option("valueAxis")||{},u=F(c)?c:[c];return t=t||i(l,e,s.defaultPane),r=o(e,t,l),r||(n=a(l,u,t),n||(s._incidentOccurred("W2102",[t]),n={name:t,priority:l.length}),r=s._createAxis("valueAxis",n,{pane:e,name:t},s._isRotated()),l.push(r)),r.setPane(e),r},_correctValueAxes:function(){var e=this,t=e._themeManager.getOptions("synchronizeMultiAxes"),n=e._valueAxes,i={};e.series.forEach(function(e){var t=e.getValueAxis();i[t.pane]=!0}),e.panes.forEach(function(a){var o=a.name;i[o]||e._getValueAxis(o),r(n,a.name,t)}),e._valueAxes=n.filter(function(t){return t.pane||t.setPane(e.defaultPane),c(e.panes,t.pane)}).sort(l)},_getSeriesForPane:function(e){var t=[];return R(this.series,function(n,i){i.pane===e&&t.push(i)}),t},_createPanesBorderOptions:function(){var e=this._themeManager.getOptions("commonPaneSettings").border,t={};return R(this.panes,function(n,i){t[i.name]=k(!0,{},e,i.border)}),t},_createScrollBar:function(){var e=this,t=e._themeManager.getOptions("scrollBar")||{},n=e._scrollBarGroup;t.visible?(t.rotated=e._isRotated(),e._scrollBar=(e._scrollBar||new D.ScrollBar(e._renderer,n)).update(t)):(n.linkRemove(),e._scrollBar&&e._scrollBar.dispose(),e._scrollBar=null)},_prepareToRender:function(e){var t=this,n=t._createPanesBorderOptions(),i=t._options.useAggregation,r=t._canvas,a=t._isRotated()?r.height-r.top-r.bottom:r.width-r.left-r.right;return t._createPanesBackground(),t._appendAxesGroups(),t._transformed&&t._resetTransform(),t._updatePanesCanvases(e),i&&t.series.forEach(function(e){e.resamplePoints(a)}),(i||z(t._zoomMinArg)||z(t._zoomMaxArg))&&t._themeManager.getOptions("adjustOnZoom")&&t._valueAxes.forEach(function(e){var n=t.series.filter(function(t){return t.getValueAxis()===e}).reduce(function(e,t){var n=t.getViewport();return e.min=e.min<n.min?e.min:n.min,e.max=e.max>n.max?e.max:n.max,e},{});e.zoom(n.min,n.max)}),n},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_renderAxes:function(e,t,n){e&&e.recreateCanvas&&E.updatePanesCanvases(this.panes,this._canvas,n),this._drawAxes(e,t)},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(e){var t,n=this,i=n._getCanvasClipRectID();for(n._drawPanesBorders(e),n._createClipRectsForPanes(),t=0;t<n._argumentAxes.length;t++)n._argumentAxes[t].applyClipRects(n._getElementsClipRectID(n._argumentAxes[t].pane),i);for(t=0;t<n._valueAxes.length;t++)n._valueAxes[t].applyClipRects(n._getElementsClipRectID(n._valueAxes[t].pane),i);n._fillPanesBackground()},_updateLegendPosition:function(e,t){var n=this;if(e.drawLegend&&n._legend&&t){var i=n.panes,r=k({},i[0].canvas),a=new I.LayoutManager;r.right=i[i.length-1].canvas.right,r.bottom=i[i.length-1].canvas.bottom,a.setOptions({width:0,height:0}),a.layoutElements([n._legend],r,w.noop,[{canvas:r}],void 0)}},_applyExtraSettings:function(e){var t=this,n=t._getPaneIndex(e.pane),i=t._panesClipRects,r=i.wide[n];e.setClippingParams(i.base[n].id,r&&r.id,t._getPaneBorderVisibility(n))},_updatePanesCanvases:function(e){e.recreateCanvas&&E.updatePanesCanvases(this.panes,this._canvas,this._isRotated())},_restoreOriginalBusinessRange:function(){this._argumentAxes.concat(this._valueAxes).forEach(function(e){e.restoreBusinessRange()})},_prepareAxesAndDraw:function(e,t){var n=this,i=n._isRotated(),r=n._themeManager.getOptions("synchronizeMultiAxes"),a=(n._scrollBar?[n._scrollBar]:[]).concat(n._argumentAxes),o=i?a:n._valueAxes,s=i?n._valueAxes:a,l=o.concat(s),c=n.panes.reduce(function(e,t){return e[t.name]=k({},t.canvas),e},{});if(!e.adjustAxes)return v(o,!i&&r,c,t),void v(s,i&&r,c,t);n._scrollBar&&n._scrollBar.setPane(n.panes);var u={panes:{}},d=f(s,function(e){return e.estimateMargins(c[e.pane])});c=m(i,c,u,d),v(o,!i&&r,c,t),u=_(o),c=m(i,c,u,d),v(s,i&&r,c,t),d=f(s,p),c=m(i,c,u,d),g(l,"updateSize",c),s.forEach(y("top","bottom")),o.forEach(y("left","right")),n.panes.forEach(function(e){k(e.canvas,c[e.name])})},_shrinkAxes:function(e,t){var n,i=this,r=i._isRotated(),a=(i._scrollBar?[i._scrollBar]:[]).concat(i._argumentAxes),o=r?a:i._valueAxes,s=r?i._valueAxes:a,l=o.concat(s);(t.width||t.height)&&(n=i.panes.reduce(function(e,t){return e[t.name]=k({},t.canvas),e},{}),x(t,"height",s,f),x(t,"width",o,_),n=m(r,n,_(o),f(s,p)),g(l,"updateSize",n),s.forEach(y("top","bottom")),o.forEach(y("left","right")),i.panes.forEach(function(e){S.extend(e.canvas,n[e.name])}))},_getPanesParameters:function(){var e,t=this,n=t.panes,i=[];for(e=0;e<n.length;e++)t._getPaneBorderVisibility(e)&&i.push({coords:n[e].borderCoords,clipRect:t._panesClipRects.fixed[e]});return i},_createCrosshairCursor:function(){var e=this,t=e._themeManager.getOptions("crosshair")||{},n=e._displayedArgumentAxisIndex,i=e._isRotated()?[e._valueAxes,[e._argumentAxes[n]]]:[[e._argumentAxes[n]],e._valueAxes],r={canvas:e._getCommonCanvas(),panes:e._getPanesParameters(),axes:i};t&&t.enabled&&(e._crosshair?e._crosshair.update(t,r):e._crosshair=new P.Crosshair(e._renderer,t,r,e._crosshairCursorGroup),e._crosshair.render())},_getCommonCanvas:function(){var e,t,n,i=this.panes;for(e=0;e<i.length;e++)t=i[e].canvas,n?(n.right=t.right,n.bottom=t.bottom):n=k({},t);return n},_createPanesBackground:function(){var e,t,n,i=this,r=i._themeManager.getOptions("commonPaneSettings").backgroundColor,a=i._renderer,o=[];for(i._panesBackgroundGroup.clear(),n=0;n<i.panes.length;n++)e=i.panes[n].backgroundColor||r,e&&"none"!==e?(t=a.rect(0,0,0,0).attr({fill:e,"stroke-width":0}).append(i._panesBackgroundGroup),o.push(t)):o.push(null);i.panesBackground=o},_fillPanesBackground:function(){var e,t=this;R(t.panes,function(n,i){e=i.borderCoords,null!==t.panesBackground[n]&&t.panesBackground[n].attr({x:e.left,y:e.top,width:e.width,height:e.height})})},_calcPaneBorderCoords:function(e){var t=e.canvas,n=e.borderCoords=e.borderCoords||{};n.left=t.left,n.top=t.top,n.right=t.width-t.right,n.bottom=t.height-t.bottom,n.width=Math.max(n.right-n.left,0),n.height=Math.max(n.bottom-n.top,0)},_drawPanesBorders:function(e){var t=this,n=t._isRotated();t._panesBorderGroup.linkRemove().clear(),R(t.panes,function(i,r){var a,o,s=e[r.name],l={fill:"none",stroke:s.color,"stroke-opacity":s.opacity,"stroke-width":s.width,dashStyle:s.dashStyle,"stroke-linecap":"square"};t._calcPaneBorderCoords(r,n),s.visible&&(a=r.borderCoords,o=H(a.left,a.top,a.width,a.height,s),t._renderer.path(o.points,o.pathType).attr(l).append(t._panesBorderGroup))}),t._panesBorderGroup.linkAppend()},_createClipRect:function(e,t,n,i,r,a){var o=this,s=e[t];s?s.attr({x:n,y:i,width:r,height:a}):(s=o._renderer.clipRect(n,i,r,a),e[t]=s)},_createClipRectsForPanes:function(){var e=this,t=e._canvas;R(e.panes,function(n,i){var r=!1,a=i.borderCoords,o=a.left,s=a.top,l=a.width,c=a.height,u=e._panesClipRects;e._createClipRect(u.fixed,n,o,s,l,c),e._createClipRect(u.base,n,o,s,l,c),R(e.series,function(e,t){t.pane===i.name&&(t.isFinancialSeries()||t.areErrorBarsVisible())&&(r=!0)}),r?(e._isRotated()?(s=0,c=t.height):(o=0,l=t.width),e._createClipRect(u.wide,n,o,s,l,c)):u.wide[n]=null})},_getPaneIndex:function(e){var t;return R(this.panes,function(n,i){if(i.name===e)return t=n,!1}),t},_getPaneBorderVisibility:function(e){var t=this._themeManager.getOptions("commonPaneSettings").border.visible,n=this.panes[e]||{},i=n.border||{};return"visible"in i?i.visible:t},_getElementsClipRectID:function(e){return this._panesClipRects.fixed[this._getPaneIndex(e)].id},_getCanvasForPane:function(e){var t,n=this.panes,i=n.length;for(t=0;t<i;t++)if(n[t].name===e)return n[t].canvas},_getBusinessRange:function(e,t){var n,i,r=this.businessRanges||[],a=r.length;for(i=0;i<a;i++)if(r[i].val.pane===e&&r[i].val.axis===t){n=r[i];break}if(!n)for(i=0;i<a;i++)if(r[i].val.pane===e){n=r[i];break}return n},_transformArgument:function(e,t){var n,i,r=this,a=r._isRotated(),o=r._panesClipRects;r._transformed||(r._transformed=!0,r._labelsGroup.remove(),r._resetIsReady(),R(r.series||[],function(e,t){t.applyClip()})),a?(n={translateY:e,scaleY:t},i={translateY:-e/t,scaleY:1/t}):(n={translateX:e,scaleX:t},i={translateX:-e/t,scaleX:1/t}),s(o.base,i),s(o.wide,i),r._seriesGroup.attr(n),r._scrollBar&&r._scrollBar.transform(-e,t)},_resetTransform:function(){var e=this,t={translateX:0,translateY:0,scaleX:null,scaleY:null},n=e._panesClipRects;s(n.base,t),s(n.wide,t),e._seriesGroup.attr(t),R(e.series||[],function(e,t){t.resetClip()}),e._transformed=!1},_getTrackerSettings:function(){var e=this,t=e._themeManager;return k(this.callBase(),{chart:e,zoomingMode:t.getOptions("zoomingMode"),scrollingMode:t.getOptions("scrollingMode"),rotated:e._isRotated(),crosshair:e._getCrosshairOptions().enabled?e._crosshair:null})},_resolveLabelOverlappingStack:function(){var e=this,t=e._isRotated(),n=t?function(e,t){return{x:e.x-t,y:e.y}}:function(e,t){return{x:e.x,y:e.y-t}};R(e._getStackPoints(),function(i,r){R(r,function(i,r){A.resolveLabelOverlappingInOneDirection(r,e._getCommonCanvas(),t,n)})})},_getStackPoints:function(){var e={},t=this._getVisibleSeries();return R(t,function(t,n){var i=n.getPoints(),r=n.getStackName()||null;R(i,function(t,n){var i=n.argument;e[i]||(e[i]={}),e[i][r]||(e[i][r]=[]),e[i][r].push(n)})}),e},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument:function(e,t,n){var i,r,a=this;(z(e)||z(t))&&(n||a._eventTrigger("zoomStart"),r=a._argumentAxes[0].zoom(e,t,n),a._zoomMinArg=r.min,a._zoomMaxArg=r.max,a._notApplyMargins=n,a._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:!1,animate:!1}),i=a.getVisibleArgumentBounds(),a._eventTrigger("zoomEnd",{rangeStart:i.minVisible,rangeEnd:i.maxVisible}))},_resetZoom:function(){var e=this;e._zoomMinArg=e._zoomMaxArg=e._notApplyMargins=void 0,e._argumentAxes[0]&&e._argumentAxes[0].resetZoom()},getVisibleArgumentBounds:function(){var e=this._argumentAxes[0].getTranslator(),t=e.getBusinessRange(),n="discrete"===t.axisType,i=t.categories;return{minVisible:n?t.minVisible||i[0]:t.minVisible,maxVisible:n?t.maxVisible||i[i.length-1]:t.maxVisible}}});N.addPlugin(n(583)),T("dxChart",N),e.exports=N},function(e,t,n){function i(e,t,n){for(var i,a,o,s=0,l=t.end-t.start,c=0;c<e.length;c++){i=e[c].getLabels(),o=!0;for(var u=0;u<i.length;u++)a=i[u],a.isVisible()&&(s+=a.getBoundingRect()[n?"width":"height"],o=!1);o&&(e[c]=null)}if(l>0)for(;s>l;)s-=r(e,n)}function r(e,t){var n,i={originalValue:1/0},r=0;return F(e,function(e,t){t&&i.originalValue>=t.originalValue&&(i=t,n=e)}),null!==n?(e[n].getLabels().forEach(function(e){r+=e.getBoundingRect()[t?"width":"height"],e.hide()}),e[n]=null,r):0}function a(e,t,n,r){var a=[],o={start:n?t.left:t.top,end:n?t.width-t.right:t.height-t.bottom},c=!1;i(e,o,n),e.forEach(function(e){e&&(c=c||e.series.isStackedSeries()||e.series.isFullStackedSeries(),e.getLabels().forEach(function(e){e.isVisible()&&a.push(new u(e,n,r))}))}),c?!n&&a.reverse():a.sort(function(e,t){return e.getInitialPosition()-t.getInitialPosition()}),s(a)&&(a.reverse(),l(a,o))}function o(e,t){if(e&&t)return e.getBoundingRect().end>t.getBoundingRect().start}function s(e){var t,n,i,r;for(t=0;t<e.length-1;t++)n=r||e[t],o(n,e[t+1])?(n.toChain(e[t+1]),e[t+1]=null,r=n,i=!0):r=null;return i}function l(e,t){var n,i,r,a,o,s;for(n=0;n<e.length;n++){if(r=e[n],c(r,t))for(o=r.getBoundingRect(),i=n+1;i<e.length;i++)if(a=e[i],a&&(s=a.getBoundingRect(),s.end>o.start-(o.end-t.end))){a.toChain(r),e[n]=r=null;break}r&&r.setRollingStockInCanvas(t)}}function c(e,t){return e&&e.getBoundingRect().end>t.end}function u(e,t,n){var i=e.getBoundingRect();return this.labels=[e],this.shiftFunction=n,this._bBox={start:t?i.x:i.y,width:t?i.width:i.height,end:t?i.x+i.width:i.y+i.height},this._initialPosition=t?i.x:i.y,this}function d(e){return{nameField:e+"Name",colorField:e+"Color",indexField:e+"Index"}}function h(e){var t=d(e);return{getFormatObject:function(e){var n={};return n[t.indexField]=e.id,n[t.colorField]=e.states.normal.fill,n[t.nameField]=e.text,n},textField:t.nameField}}function p(e,t,n){F(e,function(e,i){F(n.getTemplateFields(),function(e,t){i[t.templateField]=i[t.originalField]}),t.push(i)}),n.updateTemplateFieldNames()}function f(e,t){return(e.x<=t.x&&t.x<=e.x+e.width||e.x>=t.x&&e.x<=t.x+t.width)&&(e.y<=t.y&&t.y<=e.y+e.height||e.y>=t.y&&e.y<=t.y+t.height)}function _(e){e.forward=function(e){return e},e.backward=V}var g=n(9),m=n(14),v=n(11).extend,y=n(26).inArray,b=n(71),x=n(515),S=n(521),w=n(523),k=n(525),C=n(549),T=n(555),E=n(556),A=n(557),I="_reinit",O="_updateDataSource",M="_dataInit",D="_forceRender",P="_resize",L=[I,O,M,D,P],B=n(509),V=m.noop,R=B.map,F=g.each,z=v,H=Array.isArray,N=m.isDefined,G=B.setCanvasValues,j=.3,W=["series","commonSeriesSettings","containerBackgroundColor","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","useAggregation","synchronizeMultiAxes"],U=["equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","negativesAsZeroes","negativesAsZeros"],Y=["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","zoomingMode","scrollingMode"];u.prototype={toChain:function(e){var t=e.getBoundingRect();e.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(e.labels)},getBoundingRect:function(){return this._bBox},shift:function(e){var t=this.shiftFunction;F(this.labels,function(n,i){var r=i.getBoundingRect(),a=t(r,e);i.shift(a.x,a.y)}),this._bBox.end-=e,this._bBox.start-=e},setRollingStockInCanvas:function(e){this._bBox.end>e.end&&this.shift(this._bBox.end-e.end)},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var K={resolveLabelOverlappingInOneDirection:a},$=x.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_init:function(){this._savedBusinessRange={},this.callBase.apply(this,arguments)},_initialChanges:["REINIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_createThemeManager:function(){var e=this.option(),t=new C.ThemeManager(e,this._chartType);return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;_(e._layout),e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._headerBlock=new A.HeaderBlock,e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new T.LayoutManager,e._createScrollBar(),e._$element.on("contextmenu",function(e){(b.isTouchEvent(e)||b.isPointerEvent(e))&&e.preventDefault()}).on("MSHoldVisual",function(e){e.preventDefault()})},_getLayoutItems:m.noop,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;G(e._canvas),e._reinitAxes(),e._skipRender=!0,e._updateDataSource(),e.series||e._dataSpecificInit(!1),e._skipRender=!1,e._correctAxes(),e._forceRender()},_correctAxes:V,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root;e._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(n),e._panesBackgroundGroup=t.g().attr({"class":"dxc-background"}).append(n),e._stripsGroup=t.g().attr({"class":"dxc-strips-group"}).linkOn(n,"strips"),e._gridGroup=t.g().attr({"class":"dxc-grids-group"}).linkOn(n,"grids"),e._axesGroup=t.g().attr({"class":"dxc-axes-group"}).linkOn(n,"axes"),e._constantLinesGroup=t.g().attr({"class":"dxc-constant-lines-group"}).linkOn(n,"constant-lines"),e._labelAxesGroup=t.g().attr({"class":"dxc-strips-labels-group"}).linkOn(n,"strips-labels"),e._panesBorderGroup=t.g().attr({"class":"dxc-border"}).linkOn(n,"border"),e._seriesGroup=t.g().attr({"class":"dxc-series-group"}).linkOn(n,"series"),e._labelsGroup=t.g().attr({"class":"dxc-labels-group"}).linkOn(n,"labels"),e._crosshairCursorGroup=t.g().attr({"class":"dxc-crosshair-cursor"}).linkOn(n,"crosshair"),e._legendGroup=t.g().attr({"class":"dxc-legend","clip-path":e._getCanvasClipRectID()}).linkOn(n,"legend"),e._scrollBarGroup=t.g().attr({"class":"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_disposeObjectsInArray:function(e,t){F(this[e]||[],function(e,n){t&&n?F(t,function(e,t){n[t]&&n[t].dispose()}):n&&n.dispose()}),this[e]=null},_disposeCore:function(){var e=this,t=function(t){e[t]&&(e[t].dispose(),e[t]=null)},n=function(t){e[t].linkOff()},i=this._disposeObjectsInArray;e._renderer.stopAllAnimations(),e.businessRanges=null,i.call(e,"series"),t("_headerBlock"),t("_tracker"),t("_crosshair"),e.layoutManager=e._userOptions=e._canvas=e._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_labelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(e){return this._themeManager.getOptions(e)},_applySize:function(){this._processRefreshData(P)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new E[e._trackerType]({seriesGroup:e._seriesGroup,renderer:e._renderer,tooltip:e._tooltip,legend:e._legend,eventTrigger:e._eventTrigger})},_getTrackerSettings:function(){return this._getSelectionModes()},_getSelectionModes:function(){var e=this._themeManager;return{seriesSelectionMode:e.getOptions("seriesSelectionMode"),pointSelectionMode:e.getOptions("pointSelectionMode")}},_updateTracker:function(e){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},e)},_doRender:function(e){var t,n,i=this;/*!that._initialized || */i._skipRender||0===i._canvas.width&&0===i._canvas.height||(i._resetIsReady(),t=i._prepareDrawOptions(e),n=t.recreateCanvas,i.__originalCanvas=i._canvas,i._canvas=v({},i._canvas),n?i.__currentCanvas=i._canvas:i._canvas=i.__currentCanvas,n&&i._updateCanvasClipRect(i._canvas),i._renderer.stopAllAnimations(!0),G(i._canvas),i._cleanGroups(),i._renderElements(t))},_renderElements:function(e){var t,n,i,r=this,a=r._prepareToRender(e),o=r._isRotated(),s=r._isLegendInside(),l=[],c=r._getLayoutTargets(),u=v({},r._canvas),d=[],h=e.drawTitle&&e.drawLegend&&e.adjustAxes;h&&(d=r._getDrawElements(e,s)),r._renderer.lock(),r.layoutManager.setOptions(r._layoutManagerOptions()),r.layoutManager.layoutElements(d,r._canvas,function(t){r._renderAxes(e,a,o),t&&r._shrinkAxes(e,t)},c,o),h&&r._updateCanvasClipRect(u),r._applyClipRects(a),r._appendSeriesGroups(),r._createCrosshairCursor(),F(c,function(){var e=this.canvas;l.push({left:e.left,right:e.width-e.right,top:e.top,bottom:e.height-e.bottom})}),r._scrollBar&&(t=r._argumentAxes[0].getTranslator().getBusinessRange(),"discrete"===t.axisType&&t.categories&&t.categories.length<=1?n=i=void 0:(n=t.minVisible,i=t.maxVisible),r._scrollBar.init(t).setPosition(n,i)),r._updateTracker(l),r._updateLegendPosition(e,s),r._renderSeries(e,o,s),r._renderer.unlock()},_createCrosshairCursor:V,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(e,t,n){this._calculateSeriesLayout(e,t),this._renderSeriesElements(e,t,n)},_calculateSeriesLayout:function(e,t){e.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(e),this._canvas=this.__originalCanvas},_renderSeriesElements:function(e,t,n){var i,r,a=this,o=a.series,s=o.length,l=a._themeManager.getOptions("resolveLabelOverlapping");for(i=0;i<s;i++)r=o[i],a._applyExtraSettings(r,e),r.draw(e.animate&&r.getPoints().length<=e.animationPointsLimit&&a._renderer.animationEnabled(),e.hideLayoutLabels,a._getLegendCallBack(r));"none"!==l&&a._resolveLabelOverlapping(l),a._adjustSeries(),a._renderTrackers(n),a._tracker.repairTooltip(),a._drawn(),a._renderCompleteHandler()},_resolveLabelOverlapping:function(e){var t;switch(e){case"stack":t=this._resolveLabelOverlappingStack;break;case"hide":t=this._resolveLabelOverlappingHide;break;case"shift":t=this._resolveLabelOverlappingShift}m.isFunction(t)&&t.call(this)},_getVisibleSeries:function(){return m.grep(this.getAllSeries(),function(e){return e.isVisible()})},_resolveLabelOverlappingHide:function(){var e,t,n,i,r,a,o,s=[],l=this._getVisibleSeries();for(r=0;r<l.length;r++)for(o=l[r].getVisiblePoints(),a=0;a<o.length;a++)s=s.concat(o[a].getLabels());for(r=0;r<s.length;r++)if(e=s[r],n=e.getBoundingRect(),e.isVisible())for(a=r+1;a<s.length;a++)t=s[a],i=t.getBoundingRect(),f(n,i)&&t.hide()},_cleanGroups:function(){var e=this;e._stripsGroup.linkRemove().clear(),e._gridGroup.linkRemove().clear(),e._axesGroup.linkRemove().clear(),e._constantLinesGroup.linkRemove().clear(),e._labelAxesGroup.linkRemove().clear(),e._labelsGroup.linkRemove().clear(),e._crosshairCursorGroup.linkRemove().clear()},_createLegend:function(){var e=this,t=h(e._legendDataField);e._legend=new S.Legend({renderer:e._renderer,group:e._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",textField:t.textField,getFormatObject:t.getFormatObject})},_updateLegend:function(){var e=this,t=e._themeManager,n=t.getOptions("legend"),i=e._getLegendData();n.containerBackgroundColor=t.getOptions("containerBackgroundColor"),n._incidentOccurred=e._incidentOccurred,e._legend.update(i,n)},_prepareDrawOptions:function(e){var t,n=this._getAnimationOptions();return t=v({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:n.enabled,animationPointsLimit:n.maxPointCountSupported},e,this.__renderOptions),N(t.recreateCanvas)||(t.recreateCanvas=t.adjustAxes&&t.drawLegend&&t.drawTitle),t},_processRefreshData:function(e){var t=y(this._currentRefreshData,L),n=y(e,L);(!this._currentRefreshData||t>=0&&n<t)&&(this._currentRefreshData=e)},_getLegendData:function(){return R(this._getLegendTargets(),function(e){var t=e.legendData,n=e.getLegendStyles,i=n.normal.opacity;return e.visible||((!N(i)||i>j)&&(i=j),t.textOpacity=j),t.states={hover:n.hover,selection:n.selection,normal:z({},n.normal,{opacity:i})},t})},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],argument:e.argument,id:e.index,argumentIndex:e.argumentIndex},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(){var e=this;F(e.series||[],function(e,t){t.dispose()}),e.series=null,F(e.seriesFamilies||[],function(e,t){t.dispose()}),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_optionChanged:function(e){this._themeManager.resetOptions(e.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var e=this;e._themeManager.update(e._options),e.callBase.apply(e,arguments),e._doRefresh()},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",legend:"DATA_INIT",seriesTemplate:"DATA_INIT","export":"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",rotated:"ROTATED",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_customChangesOrder:["ANIMATION","DATA_SOURCE","PALETTE","REFRESH_SERIES_DATA_INIT","DATA_INIT","REFRESH_SERIES_FAMILIES","FORCE_RENDER","AXES_AND_PANES","ROTATED","REFRESH_SERIES_REINIT","SCROLL_BAR","CHART_TOOLTIP","REINIT"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._processRefreshData(O)},_change_PALETTE:function(){this._themeManager.updatePalette(this.option("palette")),this._refreshSeries(M)},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries(M)},_change_DATA_INIT:function(){this._processRefreshData(M)},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(D)},_change_FORCE_RENDER:function(){this._processRefreshData(D)},_change_AXES_AND_PANES:function(){this._refreshSeries(I)},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries(I)},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries(I)},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(D)},_change_CHART_TOOLTIP:function(){this._organizeStackPoints()},_change_REINIT:function(){this._processRefreshData(I)},_refreshSeries:function(e){this._disposeSeries(),this._processRefreshData(e)},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t,n,i=this;t=Math.max(e.width-e.left-e.right,0),n=Math.max(e.height-e.top-e.bottom,0),i._canvasClipRect.attr({x:e.left,y:e.top,width:t,height:n}),i._backgroundRect.attr({x:e.left,y:e.top,width:t,height:n})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._resetZoom(),this._dataInit()},_dataInit:function(){this._dataSpecificInit(!0)},_dataSpecificInit:function(e){var t=this;t.series=t.series||t._populateSeries(),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._tracker.updateSeries(t.series),t._updateLegend(),e&&t._forceRender()},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e,t=this,n=t._themeManager,i=t._dataSourceItems(),r=n.getOptions("dataPrepareSettings"),a=n.getOptions("seriesTemplate");a&&(t._templatedSeries=B.processSeriesTemplate(a,i),t._populateSeries(),delete t._templatedSeries,i=t.templateData||i),t._groupSeries(),e=w.validateData(i,t._groupsData,t._incidentOccurred,r),n.resetPalette(),t.series.forEach(function(n){n.updateData(e[n.getArgumentField()]),t._processSingleSeries(n)}),t._organizeStackPoints()},_organizeStackPoints:function(){var e=this,t=e._themeManager,n=t.getOptions("tooltip").shared,i={};
F(e.series||[],function(t,r){e._resetStackPoints(r),n&&e._prepareStackPoints(r,i)})},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&(F(e.series,function(e,n){t=t&&n.canRenderCompleteHandle()}),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_getDrawElements:function(e,t){var n,i=this,r=[],a=i._themeManager.getOptions("export"),o=i._title.getLayoutOptions()||{},s=[];return i._exportMenu&&a.enabled&&(s.push(i._exportMenu),r.push(i._headerBlock)),e.drawTitle&&("bottom"!==o.verticalAlignment&&s.length?s.push(i._title):r.push(i._title)),e.drawLegend&&i._legend&&(i._legendGroup.linkAppend(),t||(n=i._legend.getLayoutOptions(),1===s.length&&"bottom"!==n.verticalAlignment&&"vertical"===n.cutSide?s.push(i._legend):r.push(i._legend))),s.length&&i._headerBlock.update(s,i._canvas),r},_resetZoom:V,_dataIsReady:function(){return N(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeries:function(){var e,t,n,i,r,a,o=this,s=o._themeManager,l=!!s.getOptions("seriesTemplate"),c=l?o._templatedSeries:o.option("series"),u=H(c)?c:c?[c]:[],d=o._getExtraOptions(),h=function(){o._specialProcessSeries(),o._populateBusinessRange(),o._renderer.stopAllAnimations(!0),o._updateLegend(),o._doRender({force:!0})};for(o._disposeSeries(),o.series=[],o.templateData=[],s.resetPalette(),a=function(e){o.series.forEach(function(t){t.notify(e)})},r=0;r<u.length;r++)e=z(!0,{},u[r],d),e.name||(e.name="Series "+(r+1).toString()),i=e.data,e.data=null,e.rotated=o._isRotated(),e.customizePoint=s.getOptions("customizePoint"),e.customizeLabel=s.getOptions("customizeLabel"),e.visibilityChanged=h,e.incidentOccurred=o._incidentOccurred,n=s.getOptions("series",e),o._checkPaneName(n)&&(t=new k.Series({renderer:o._renderer,seriesGroup:o._seriesGroup,labelsGroup:o._labelsGroup,eventTrigger:o._eventTrigger,commonSeriesModes:o._getSelectionModes(),eventPipe:a,argumentAxis:o._getArgumentAxis(),valueAxis:o._getValueAxis(n.pane,n.axis)},n),t.isUpdated?(t.index=o.series.length,o._processSingleSeries(t),o.series.push(t),l&&p(i,o.templateData,t)):o._incidentOccurred("E2101",[n.type]));return o.series},getAllSeries:function(){return this.series.slice()},getSeriesByName:function(e){var t=null;return F(this.series,function(n,i){if(i.name===e)return t=i,!1}),t},getSeriesByPos:function(e){return this.series[e]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},render:function(e){var t=this;return t.__renderOptions=e,t.__forceRender=e&&e.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t}});W.forEach(function(e){$.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"}),Y.forEach(function(e){$.prototype._optionChangesMap[e]="FORCE_RENDER"}),U.forEach(function(e){$.prototype._optionChangesMap[e]="REFRESH_SERIES_FAMILIES"}),t.overlapping=K,t.BaseChart=$,$.addPlugin(n(511).plugin),$.addPlugin(n(558).plugin),$.addPlugin(n(559).plugin),$.addPlugin(n(560).plugin),$.addPlugin(n(561).plugin);var X=$.prototype._change_TITLE;$.prototype._change_TITLE=function(){X.apply(this,arguments),this._change(["FORCE_RENDER"])};var q=$.prototype._change_TOOLTIP;$.prototype._change_TOOLTIP=function(){q.apply(this,arguments),this._change(["CHART_TOOLTIP"])}},function(e,t,n){function i(){return!0}function r(){return!1}function a(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}function o(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function s(e){S.apply(null,[e.target.id].concat(e.target.args||[]))}function l(e,t){return Number(e>0?e:t||0)}function c(e,t){function n(n){var i=e[n];r[i.name]=t(n)}function i(e,t,n){r[e](t),n&&n()}var r={};u.each(e,function(e,t){t.name&&n(e)});var a;return i.change=function(t){var n=e[t];return n&&((a=a||{})[t]=n),!!n},i.applyChanges=function(){a&&(u.each(a,function(e,t){n(t.newName||e)}),a=null)},i.dispose=function(){e=t=r=null},i}var u=n(9),d=n(14).noop,h=n(19),p=n(44).resizeCallbacks,f=n(18).format,_=n(14).isObject,g=n(11).extend,m=Math.floor,v=n(43),y=n(516),b=n(509).parseScalar,x=n(517),S=x.log,w=n(518),k=n(520),C="rtlEnabled",T=v.prototype.option,E=function(e,t){function n(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:f.apply(null,[x.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:h}})}return n};e.exports=v.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return g(this.callBase(),{onIncidentOccurred:s})},_useLinks:!0,_init:function(){var e,t=this;t.callBase.apply(t,arguments),t._changesLocker=0,t._changes=y.changes(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback(function(){t._requestChange(t._themeDependentChanges)}),t._renderElementAttributes(),t._initRenderer(),e=t._useLinks&&t._renderer.root,e&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._initEventTrigger(),t._incidentOccurred=E(t.NAME,t._eventTrigger),t._layout=new k,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges),t._resumeChanges()},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME"],_initPlugins:function(){var e=this;u.each(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;u.each(e._plugins.slice().reverse(),function(t,n){n.dispose.call(e)})},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0===--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions())},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),u.each(t,function(e,t){t()}),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,r=i.length;for(e=0;e<r;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:[],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new w.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:d,render:function(){this._requestChange(["CONTAINER_SIZE"]),this._onRender()},_onRender:d,_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._removeResizeHandler(),e._layout.dispose(),e._eventTrigger.dispose(),e._disposeCore(),e._disposePlugins(),e._disposeRenderer(),e._themeManager.dispose(),e._themeManager=e._renderer=e._eventTrigger=null},_initEventTrigger:function(){var e=this;e._eventTrigger=c(e._eventsMap,function(t){return e._createActionByOption(t)})},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},r={width:t.width<=0?0:m(l(t.width,e._$element.width()||i.width)),height:t.height<=0?0:m(l(t.height,e._$element.height()||i.height)),left:l(n.left,i.left||0),top:l(n.top,i.top||0),right:l(n.right,i.right||0),bottom:l(n.bottom,i.bottom||0)};return(r.width-r.left-r.right<=0||r.height-r.top-r.bottom<=0)&&(r={width:0,height:0}),r},_updateSize:function(){var e=this,t=e._calculateCanvas();(a(e._canvas,t)||e.__forceRender)&&(e._canvas=t,e._renderer.resize(t.width,t.height),e._change(["LAYOUT"]))},_setContentSize:function(){var e,t=this._canvas,n=this._layout,i=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=n.forward(i),e=this._applySize(i)||i,n.backward(e)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:g(!0,{},n,i)},_setupResizeHandler:function(){b(this._getOption("redrawOnResize",!0),!0)?this._addResizeHandler():this._removeResizeHandler()},_addResizeHandler:function(){var e=this;e._resizeHandler||(e._resizeHandler=o(function(){e._requestChange(["CONTAINER_SIZE"])}),p.add(e._resizeHandler))},_removeResizeHandler:function(){this._resizeHandler&&(p.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:d,beginUpdate:function(){var e=this;return e._initialized&&0===e._updateLockCount&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){var e=this,t=e._initialized;return e.callBase.apply(e,arguments),t&&0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||_(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):T.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),T.apply(t,e),t._resumeDeprecatedWarnings()}:function(){T.apply(t,e)}},_clean:d,_render:d,_optionChanged:function(e){var t=this;t._eventTrigger.change(e.name)?t._change(["EVENTS"]):t._optionChangesMap[e.name]?t._change([t._optionChangesMap[e.name]]):t.callBase.apply(t,arguments)},_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR"},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(C))},_getRendererOptions:function(){return{rtl:this.option(C),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:r,_dataIsReady:i,_resetIsReady:function(){this.isReady=r},_drawn:function(){var e=this;e.isReady=r,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=i}),e._eventTrigger("drawn",{})}}),y.replaceInherit(e.exports)},function(e,t,n){function i(){this.reset()}function r(e,t){return e!==t?c({},e,t):c({},e)}function a(e,t){return e!==t?e.concat(t):e.slice()}function o(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function s(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),o(t)}function l(e){this.prototype._plugins.push(e),e.members&&c(this.prototype,e.members),e.customize&&e.customize(this)}var c=n(11).extend;i.prototype={constructor:i,add:function(e){var t,n=e.length,i=this._flags;for(t=0;t<n;++t)i[e[t]]=1;this._k+=n},has:function(e){return this._flags[e]>0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},t.replaceInherit=function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._eventsMap,s=e._initialChanges,c=e._themeDependentChanges,u=e._optionChangesMap,d=e._optionChangesOrder,h=e._layoutChangesOrder,p=e._customChangesOrder,f=t.apply(this,arguments);return e=f.prototype,e._plugins=a(n,e._plugins),e._eventsMap=r(i,e._eventsMap),e._initialChanges=a(s,e._initialChanges),e._themeDependentChanges=a(c,e._themeDependentChanges),e._optionChangesMap=r(u,e._optionChangesMap),e._optionChangesOrder=a(d,e._optionChangesOrder),e._layoutChangesOrder=a(h,e._layoutChangesOrder),e._customChangesOrder=a(p,e._customChangesOrder),o(e),f.addPlugin=l,f},e.prototype._plugins=[],e.addChange=s,e.addPlugin=l},t.changes=function(){return new i}},function(e,t,n){var i=n(8),r=n(7);e.exports=i(r.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2106:"Invalid visible range",E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} data field is absent",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2301:"Invalid value range"})},function(e,t,n){function i(e){0===Ge&&ce.body.appendChild(Ne),++Ge,e.append({element:Ne})}function r(e,t){e.append({element:t}),--Ge,0===Ge&&ce.body.removeChild(Ne)}function a(e){return e&&"string"!=typeof e}function o(e){return ce.createElementNS("http://www.w3.org/2000/svg",e)}function s(e,t){return null!==e?"url("+(t?window.location.href.split("#")[0]:"")+"#"+e+")":e}function l(e,t){var n;for(n in t)e[n]=t[n];return e}function c(e,t){return e=e.toString().split("e"),e=_e(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=e.toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]-t:-t))}function u(e,t,n,i,r,a){var o,s=!0,l=c(a,3)-c(r,3);return l&&(ve(l)%360===0&&(r=0,a=360,o=!0,a-=.01),r>360&&(r%=360),a>360&&(a%=360),r>a&&(r-=360),s=!1),r*=Ce,a*=Ce,[e,t,he(i,n),pe(i,n),me(r),ge(r),me(a),ge(a),o,fe(ve(a-r)/ye)%2?"1":"0",s]}function d(e,t){var n=[["M",0,0]];switch(t){case"line":n=h(e);break;case"area":n=h(e,!0);break;case"bezier":n=p(e);break;case"bezierarea":n=p(e,!0)}return n}function h(e,t){return f(e,_,t)}function p(e,t){return f(e,g,t)}function f(e,t,n){var i,r,a=[];if(e[0]&&e[0].length)for(i=0,r=e.length;i<r;++i)t(e[i],n,a);else t(e,n,a);return a}function _(e,t,n){var i=0,r=n.length,a=r,o=(e||[]).length;if(o){if(void 0!==e[0].x)for(;i<o;)n[a++]=["L",e[i].x,e[i++].y];else for(;i<o;)n[a++]=["L",e[i++],e[i++]];n[r][0]="M"}else n[a]=["M",0,0];return t&&n.push(["Z"]),n}function g(e,t,n){var i,r=n.length,a=(e||[]).length;if(a)if(void 0!==e[0].x)for(n[r++]=["M",e[0].x,e[0].y],i=1;i<a;)n[r++]=["C",e[i].x,e[i++].y,e[i].x,e[i++].y,e[i].x,e[i++].y];else for(n[r++]=["M",e[0],e[1]],i=2;i<a;)n[r++]=["C",e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]];else n[r]=["M",0,0];return t&&n.push(["Z"]),n}function m(e){var t,n,i,r,a=[],o=0,s=e.length;for(t=0;t<s;++t)for(n=e[t],i=0,r=n.length;i<r;++i)a[o++]=n[i];return a.join(" ")}function v(e,t,n){var i,r,a=e.length,o=t.length,s=n.indexOf("area")!==-1?x:b;if(0===a)for(i=0;i<o;i++)e.push(t[i].slice(0));else a<o?s(e,t,n):a>o&&(r=t.slice(0),s(t,e,n));return r}function y(e,t){var n=e[e.length-2],i=e[e.length-1];switch(t){case"line":case"area":e[0]="L";break;case"bezier":case"bezierarea":e[0]="C",e[1]=e[3]=e[5]=n,e[2]=e[4]=e[6]=i}}function b(e,t,n){var i=e[e.length-1].slice(),r=e.length;for(y(i,n);r<t.length;r++)e[r]=i.slice(0)}function x(e,t,n){var i,r,a,o,s=e.length,l=t.length;if((s-1)%2===0&&(l-1)%2===0){i=(s-1)/2-1,r=e.slice(0,i+1),a=r[r.length-1].slice(0),o=e.slice(i+1)[0].slice(0),y(a,n),y(o,n);for(var c=i;c<(l-1)/2-1;c++)e.splice(c+1,0,a),e.splice(c+3,0,o)}}function S(e,t){var n,i,r=e._styles,a="";t=t||{};for(n in t)i=t[n],be(i)&&("number"!=typeof i||Ie[n]||(i+="px"),r[n]=""!==i?i:null);for(n in r)i=r[n],i&&(a+=n+":"+i+";");return a&&e.element.setAttribute("style",a),e}function w(e,t){var n=e.element,i=e.attr(t);i&&i.indexOf("DevExpress")!==-1&&(n.removeAttribute(t),n.setAttribute(t,s(i,e.renderer.pathModified)))}function k(e,t){t=t||{};var n,i,r,o,c,u,d=e._settings,h={},p=e.element,f=e.renderer,_=f.rtl;if(!a(t))return t in d?d[t]:t in He?He[t]:0;l(h,t);for(n in h)if(i=h[n],void 0!==i){if(d[n]=i,"align"===n)n="text-anchor",i={left:_?"end":"start",center:"middle",right:_?"start":"end"}[i]||null;else{if("dashStyle"===n){o=!0;continue}if(n===De)o=!0;else if(!i||"fill"!==n&&"clip-path"!==n&&"filter"!==n||i.indexOf("DevExpress")===-1){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp)$/i.test(n)){r=!0;continue}/^(x|y|d)$/i.test(n)&&(r=!0)}else e._addFixIRICallback(),i=s(i,f.pathModified)}null===i?p.removeAttribute(n):p.setAttribute(n,i)}if(o&&"dashStyle"in d)if(i=d.dashStyle,c=("_originalSW"in e?e._originalSW:d[De])||1,n="stroke-dasharray",i=null===i?"":Se(i),""===i||"solid"===i||i===Fe)e.element.removeAttribute(n);else{for(i=i.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(","),u=i.length;u--;)i[u]=Te(i[u])*c;e.element.setAttribute(n,i.join(","))}return r&&e._applyTransformation(),e}function C(e){var t,n=this;return a(e)&&(e=l({},e),t=e.segments,"points"in e&&(t=d(e.points,n.type),delete e.points),t&&(e.d=m(t),n.segments=t,delete e.segments)),k(n,e)}function T(e){var t,n,i,r,o,s,c=this._settings;return a(e)&&(e=l({},e),("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(c.x=t="x"in e?e.x:c.x,delete e.x,c.y=n="y"in e?e.y:c.y,delete e.y,c.innerRadius=i="innerRadius"in e?e.innerRadius:c.innerRadius,delete e.innerRadius,c.outerRadius=r="outerRadius"in e?e.outerRadius:c.outerRadius,delete e.outerRadius,c.startAngle=o="startAngle"in e?e.startAngle:c.startAngle,delete e.startAngle,c.endAngle=s="endAngle"in e?e.endAngle:c.endAngle,delete e.endAngle,e.d=Ue.apply(null,u(t,n,i,r,o,s)))),k(this,e)}function E(e){var t,n,i,r,o,s,c,u=this;return a(e)&&(e=l({},e),void 0===e.x&&void 0===e.y&&void 0===e.width&&void 0===e.height&&void 0===e[De]||(t=void 0!==e.x?u._originalX=e.x:u._originalX||0,n=void 0!==e.y?u._originalY=e.y:u._originalY||0,i=void 0!==e.width?u._originalWidth=e.width:u._originalWidth||0,r=void 0!==e.height?u._originalHeight=e.height:u._originalHeight||0,o=void 0!==e[De]?u._originalSW=e[De]:u._originalSW,s=~~((i<r?i:r)/2),c=(o||0)<s?o||0:s,e.x=t+c/2,e.y=n+c/2,e.width=i-c,e.height=r-c,((o||0)!==c||!(0===c&&void 0===o))&&(e[De]=c)),"sharp"in e&&delete e.sharp),k(u,e)}function A(e){var t,n,i,r,o=this;return a(e)?(e=l({},e),t=o._settings,i=be(t[Me])&&be(t[De]),void 0!==e[Oe]&&(t[Oe]=e[Oe],delete e[Oe],n=!0),void 0!==e[Me]&&(t[Me]=e[Me],delete e[Me]),void 0!==e[De]&&(t[De]=e[De],delete e[De]),void 0!==e[Pe]&&(t[Pe]=e[Pe],delete e[Pe]),r=be(t[Me])&&be(t[De]),k(o,e),n=n||r!==i&&t[Oe],n&&(N(o,t.text,r),o._hasEllipsis=!1),(n||void 0!==e.x||void 0!==e.y)&&j(o),r&&W(o),o):k(o,e)}function I(e){return e=e||{},S(this,e),Le in e&&j(this),this}function O(e,t,n,i,r){var a,o,s,c,u;if(void 0!==n.wholeText)e.push({value:n.wholeText,style:i,className:r,line:t,height:i[Le]||0});else if("BR"===n.tagName)++t;else if(n.nodeType===Node.ELEMENT_NODE){switch(l(a={},i),n.tagName){case"B":case"STRONG":a[Ve]="bold";break;case"I":case"EM":a[Be]="italic";break;case"U":a[Re]="underline"}for(o=n.style,o.color&&(a.fill=o.color),o.fontSize&&(a[Le]=Te(o.fontSize,10)),o.fontStyle&&(a[Be]=o.fontStyle),o.fontWeight&&(a[Ve]=o.fontWeight),o.textDecoration&&(a[Re]=o.textDecoration),s=0,u=n.childNodes,c=u.length;s<c;++s)t=O(e,t,u[s],a,n.className||r)}return t}function M(e){var t,n,i,r=e[0];for(t=1,n=e.length;t<n;++t)i=e[t],i.line===r.line?(r.height=pe(r.height,i.height),r.inherits=r.inherits||0===i.height,i.height=NaN):r=i}function D(e){var t=/(?:<[a-z0-9])+(?:[\s\S]*?>)/gi,n=/(\S*\s*)=\s*(["'])(?:(?!\2).)*\2\s?/gi;return e.replace(t,function(e){return e.replace(n,function(e,t){var n=t.toLowerCase();return"style"===n||"class"===n?e:""})})}function P(e){var t=[],n=ce.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"<br/>"),O(t,0,n,{},""),M(t),t}function L(e){for(var t=e.replace(/\r/g,"").split("\n"),n=0,i=[];n<t.length;n++)i.push({value:t[n],height:0});return i}function B(e,t,n){var i,r,a;for(i=0,r=e.length;i<r;++i)a=e[i],a[n]=o("tspan"),a[n].appendChild(ce.createTextNode(a.value)),a.style&&S({element:a[n],_styles:{}},a.style),a.className&&a[n].setAttribute("class",a.className),t.appendChild(a[n])}function V(e){var t,n,i,r,a,o,s,l,c,u=this,d=!1;if(u._hasEllipsis&&u.attr({text:u._settings.text}),l=u.renderer.text("...").attr(u._styles).append(u.renderer.root),c=l.getBBox().width,u._getElementBBox().width>e)for(e-c<0?e=0:e-=c,t=F(u.element,u._texts,e),n=0,i=t.length;n<i;++n)if(r=t[n].parts,1!==t[n].commonLength)for(a=0,o=r.length;a<o;++a)s=r[a],be(s.endIndex)?(z(s,s.endIndex),d=!0):s.startBox>e&&H(s);return l.remove(),u._hasEllipsis=d,d}function R(e,t,n,i){var r,a;if(n<=t&&i>t)for(r=1,a=e.value.length;r<=a;++r)if(n+e.tspan.getSubStringLength(0,r)>t)return r-1}function F(e,t,n){var i,r,a,o,s,l=[];if(t)for(i=0,r=t.length;i<r;++i)a=t[i],l[a.line]?(a.startBox=o,l[a.line].parts.push(a),l[a.line].commonLength+=a.value.length):(a.startBox=o=0,l.push({commonLength:a.value.length,parts:[a]})),s=o+a.tspan.getSubStringLength(0,a.value.length),a.endIndex=R(a,n,o,s),o=s;else a={value:e.textContent,tspan:e},a.startBox=o=0,s=a.value.length?o+a.tspan.getSubStringLength(0,a.value.length):0,a.endIndex=R(a,n,o,s),l=[{commonLength:e.textContent.length,parts:[a]}];return l}function z(e,t){var n=e.value.substr(0,t)+"...";e.tspan.textContent=n,e.stroke&&(e.stroke.textContent=n)}function H(e){e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode.removeChild(e.stroke)}function N(e,t,n){var i,r;e._texts=null,e.clear(),null!==t&&(t=""+t,e.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&t.indexOf("&")===-1?t.indexOf("\n")!==-1?i=L(t):n&&(i=[{value:t,height:0}]):(r=D(t),i=P(r)),i?i.length&&(e._texts=i,n&&B(i,e.element,Me),B(i,e.element,"tspan")):e.element.appendChild(ce.createTextNode(t)))}function G(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function j(e){if(e._texts){var t,n,i=e._texts,r=e._settings.x,a=Te(e._styles[Le],10)||12,o=i[0];for(G(o,"x",r),G(o,"y",e._settings.y),t=1,n=i.length;t<n;++t)o=i[t],o.height>=0&&(G(o,"x",r),G(o,"dy",o.inherits?pe(o.height,a):o.height||a))}}function W(e){if(e._texts){var t,n,i,r=e._texts,a=e._settings[Me],o=e._settings[De],s=e._settings[Pe]||1;for(n=0,i=r.length;n<i;++n)t=r[n].stroke,t.setAttribute(Me,a),t.setAttribute(De,o),t.setAttribute(Pe,s),t.setAttribute("stroke-linejoin","round")}}function U(e,t,n,i){n=n||{};var r,a,o=e.renderer,s=e._settings,c={},u={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),o.animationEnabled()){for(r in t)a=t[r],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(r)?(c.transform=c.transform||{from:{},to:{}},c.transform.from[r]=r in s?Number(s[r].toFixed(3)):u[r],c.transform.to[r]=a):"arc"===r||"segments"===r?c[r]=a:c[r]={from:r in s?s[r]:parseFloat(e.element.getAttribute(r)||0),to:a};o.animateElement(e,c,l(l({},o._animation),n))}else n.step&&n.step.call(e,1,1),n.complete&&n.complete.call(e),e.attr(t);return e}function Y(e,t,n){var i,r,a=this,o=a.segments||[];return a.renderer.animationEnabled()&&"points"in e&&(i=d(e.points,a.type),r=v(o,i,a.type),e.segments={from:o,to:i,end:r},delete e.points),U(a,e,t,n)}function K(e,t,n){var i=this,r=i._settings,a={from:{},to:{}};return i.renderer.animationEnabled()&&("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(a.from.x=r.x||0,a.from.y=r.y||0,a.from.innerRadius=r.innerRadius||0,a.from.outerRadius=r.outerRadius||0,a.from.startAngle=r.startAngle||0,a.from.endAngle=r.endAngle||0,a.to.x="x"in e?e.x:r.x,delete e.x,a.to.y="y"in e?e.y:r.y,delete e.y,a.to.innerRadius="innerRadius"in e?e.innerRadius:r.innerRadius,delete e.innerRadius,a.to.outerRadius="outerRadius"in e?e.outerRadius:r.outerRadius,delete e.outerRadius,a.to.startAngle="startAngle"in e?e.startAngle:r.startAngle,delete e.startAngle,a.to.endAngle="endAngle"in e?e.endAngle:r.endAngle,delete e.endAngle,e.arc=a),U(i,e,t,n)}function $(e,t){var n={is:!1,name:t.name||t,after:t.after};return e?n.to=e:n.virtual=!0,n}function X(e,t,n){var i=this;i.renderer=e,i.element=o(t),i._settings={},i._styles={},"path"===t&&(i.type=n||"line")}function q(e,t){X.call(this,e,"path",t)}function Z(e){X.call(this,e,"path","arc")}function Q(e){X.call(this,e,"rect")}function J(e){X.call(this,e,"text")}function ee(e,t){var n,i;for(n=t;i=e[n];++n)i._link.i=n}function te(e,t){var n,i,r=t._links,a=e._link.after=e._link.after||t._linkAfter;if(a){for(n=0;(i=r[n])&&i._link.name!==a;++n);if(i)for(++n;(i=r[n])&&i._link.after===a;++n);}else n=r.length;r.splice(n,0,e),ee(r,n)}function ne(e){var t,n=e._link.to._links;for(t=0;n[t]!==e;++t);n.splice(t,1),ee(n,t)}function ie(e){var t=this;t.root=t._createElement("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",fill:Fe,stroke:Fe,"stroke-width":0}).attr({"class":e.cssClass}).css({"line-height":"normal","-ms-user-select":Fe,"-moz-user-select":Fe,"-webkit-user-select":Fe,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),t._init(),t.pathModified=!!e.pathModified,t._$container=ae(e.container),t.root.append({element:e.container}),t._locker=0,t._backed=!1}function re(e,t){return"@"+e+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}var ae=n(9),oe=n(10),se=n(14),le=n(42).getSvgMarkup,ce=document,ue=n(519),de=Math,he=de.min,pe=de.max,fe=de.floor,_e=de.round,ge=de.sin,me=de.cos,ve=de.abs,ye=de.PI,be=se.isDefined,xe=n(509),Se=xe.normalizeEnum,we=xe.normalizeBBox,ke=xe.rotateBBox,Ce=ye/180,Te=parseInt,Ee=.5,Ae=5,Ie={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},Oe="text",Me="stroke",De="stroke-width",Pe="stroke-opacity",Le="font-size",Be="font-style",Ve="font-weight",Re="text-decoration",Fe="none",ze=function(){return Object.create?function(e){return Object.create(e)}:function(e){var t=function(){};return t.prototype=e,new t}}(),He={scaleX:1,scaleY:1},Ne=ce.createElement("div"),Ge=0;Ne.style.left="-9999px",Ne.style.position="absolute";var je=function(){var e=1;return function(){return"DevExpress_"+e++}}(),We={full:Fe,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"},Ue=function(e,t,n,i,r,a,o,s,l,c){return["M",(e+i*r).toFixed(Ae),(t-i*a).toFixed(Ae),"A",i.toFixed(Ae),i.toFixed(Ae),0,c,0,(e+i*o).toFixed(Ae),(t-i*s).toFixed(Ae),l?"M":"L",(e+n*o).toFixed(5),(t-n*s).toFixed(Ae),"A",n.toFixed(Ae),n.toFixed(Ae),0,c,1,(e+n*r).toFixed(Ae),(t-n*a).toFixed(Ae),"Z"].join(" ")};t.SvgElement=X,X.prototype={constructor:X,_getJQElement:function(){return this._$element||(this._$element=oe(this.element))},_addFixIRICallback:function(){var e=this;e._fixFuncIri=function(){w(e,"fill"),w(e,"clip-path"),w(e,"filter")},Ye.add(e._fixFuncIri),e._addFixIRICallback=function(){}},dispose:function(){return Ye.remove(this._fixFuncIri),this._getJQElement().remove(),this},append:function(e){return(e||this.renderer.root).element.appendChild(this.element),this},remove:function(){var e=this.element;return e.parentNode&&e.parentNode.removeChild(e),this},enableLinks:function(){return this._links=[],this},virtualLink:function(e){return te({_link:$(null,e)},this),this},linkAfter:function(e){return this._linkAfter=e,this},linkOn:function(e,t){return this._link=$(e,t),te(this,e),this},linkOff:function(){return ne(this),this._link=null,this},linkAppend:function(){var e,t,n=this._link,i=n.to._links;for(e=n.i+1;(t=i[e])&&!t._link.is;++e);return this._insert(n.to,t),n.is=!0,this},_insert:function(e,t){e.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._getJQElement().empty(),this},toBackground:function(){var e=this.element,t=e.parentNode;return t&&t.insertBefore(e,t.firstChild),this},toForeground:function(){var e=this.element,t=e.parentNode;return t&&t.appendChild(e),this},attr:function(e){return k(this,e)},smartAttr:function(e){var t=this;return e.hatching?(e=l({},e),e.fill=t._hatching=t.renderer.lockHatching(e.fill,e.hatching,t._hatching),delete e.hatching):t._hatching&&(t.renderer.releaseHatching(t._hatching),t._hatching=null),t.attr(e)},css:function(e){return S(this,e)},animate:function(e,t,n){return U(this,e,t,n)},sharp:function(e){return this.attr({sharp:e||!0})},_applyTransformation:function(){var e,t,n,i,r=this._settings,a=[],o=r.sharp,s=r[De]%2,l=!s||"h"!==o&&o!==!0?0:Ee,c=!s||"v"!==o&&o!==!0?0:Ee;a.push("translate("+((r.translateX||0)+l)+","+((r.translateY||0)+c)+")"),r.rotate&&(n="rotateX"in r?r.rotateX:r.x,i="rotateY"in r?r.rotateY:r.y,a.push("rotate("+r.rotate+","+(n||0)+","+(i||0)+")")),e=be(r.scaleX),t=be(r.scaleY),(e||t)&&a.push("scale("+(e?r.scaleX:1)+","+(t?r.scaleY:1)+")"),a.length&&this.element.setAttribute("transform",a.join(" "))},move:function(e,t,n,i){var r={};return be(e)&&(r.translateX=e),be(t)&&(r.translateY=t),n?this.animate(r,i):this.attr(r),this},rotate:function(e,t,n,i,r){var a={rotate:e||0};return be(t)&&(a.rotateX=t),be(n)&&(a.rotateY=n),i?this.animate(a,r):this.attr(a),this},_getElementBBox:function(){var e,t=this.element;try{e=t.getBBox&&t.getBBox()}catch(e){}return e||{x:0,y:0,width:t.offsetWidth||0,height:t.offsetHeight||0}},getBBox:function(){var e=this._settings,t=this._getElementBBox();return t=e.rotate?ke(t,[("rotateX"in e?e.rotateX:e.x)||0,("rotateY"in e?e.rotateY:e.y)||0],-e.rotate):we(t)},markup:function(){return le(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(e){var t=this.animation;return t&&t.stop(e),this},setTitle:function(e){var t=o("title");t.textContent=e||"",this.element.appendChild(t)},data:function(e,t){var n,i=this.element;if(void 0!==t)i[e]=t;else for(n in e)i[n]=e[n];return this},on:function(){return oe.fn.on.apply(this._getJQElement(),arguments),this},off:function(){return oe.fn.off.apply(this._getJQElement(),arguments),this},trigger:function(){return oe.fn.trigger.apply(this._getJQElement(),arguments),this}},t.PathSvgElement=q,q.prototype=ze(X.prototype),l(q.prototype,{constructor:q,attr:C,animate:Y}),t.ArcSvgElement=Z,Z.prototype=ze(X.prototype),l(Z.prototype,{constructor:Z,attr:T,animate:K}),t.RectSvgElement=Q,Q.prototype=ze(X.prototype),l(Q.prototype,{constructor:Q,attr:E}),t.TextSvgElement=J,J.prototype=ze(X.prototype),l(J.prototype,{constructor:J,attr:A,css:I,applyEllipsis:V}),t.Renderer=ie,ie.prototype={constructor:ie,_init:function(){var e=this;e._defs=e._createElement("defs").append(e.root),e._animationController=new ue.AnimationController(e.root.element),e._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},setOptions:function(e){var t=this;return t.rtl=!!e.rtl,t.encodeHtml=!!e.encodeHtml,t.updateAnimationOptions(e.animation||{}),t.root.attr({direction:t.rtl?"rtl":"ltr"}),t},_createElement:function(e,n,i){var r=new t.SvgElement(this,e,i);return n&&r.attr(n),r},lock:function(){var e=this;return 0===e._locker&&(e._backed=!e._$container.is(":visible"),e._backed&&i(e.root)),++e._locker,e},unlock:function(){var e=this;return--e._locker,0===e._locker&&(e._backed&&r(e.root,e._$container[0]),e._backed=!1),e},resize:function(e,t){return e>=0&&t>=0&&this.root.attr({
width:e,height:t}),this},dispose:function(){var e,t=this;t.root.dispose(),t._defs.dispose(),t._animationController.dispose();for(e in t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return l(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){return this.root.markup()},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,n,i,r){var a=new t.RectSvgElement(this);return a.attr({x:e||0,y:n||0,width:i||0,height:r||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function(e,t,n,i,r,a){var o=this._createElement("image",{x:e||0,y:t||0,width:n||0,height:i||0,preserveAspectRatio:We[Se(a)]||Fe});return o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",r||""),o},path:function(e,n){var i=new t.PathSvgElement(this,n);return i.attr({points:e||[]})},arc:function(e,n,i,r,a,o){var s=new t.ArcSvgElement(this);return s.attr({x:e||0,y:n||0,innerRadius:i||0,outerRadius:r||0,startAngle:a||0,endAngle:o||0})},text:function(e,n,i){var r=new t.TextSvgElement(this);return r.attr({text:e,x:n||0,y:i||0})},pattern:function(e,n,i){n=n||{};var r,a,o,s,l,c=this,u=n.step||6,d=u/2,h=1.5*u,p=Se(n.direction);return"right"!==p&&"left"!==p?{id:e,append:function(){return this},clear:function(){},dispose:function(){},remove:function(){}}:(r=i||je(),a="right"===p?"M "+d+" "+-d+" L "+-d+" "+d+" M 0 "+u+" L "+u+" 0 M "+h+" "+d+" L "+d+" "+h:"M 0 0 L "+u+" "+u+" M "+-d+" "+d+" L "+d+" "+h+" M "+d+" "+-d+" L "+h+" "+d,o=c._createElement("pattern",{id:r,width:u,height:u,patternUnits:"userSpaceOnUse"}).append(c._defs),o.id=r,s=c.rect(0,0,u,u).attr({fill:e,opacity:n.opacity}).append(o),l=new t.PathSvgElement(this).attr({d:a,"stroke-width":n.width||1,stroke:e}).append(o),o)},clipRect:function(e,t,n,i){var r=this,a=je(),o=r._createElement("clipPath",{id:a}).append(r._defs),s=r.rect(e,t,n,i).append(o);return s.id=a,s.remove=function(){throw"Not implemented"},s.dispose=function(){return o.dispose(),o=null,this},s},shadowFilter:function(e,t,n,i,r,a,o,s,l){var c=this,u=je(),d=c._createElement("filter",{id:u,x:e||0,y:t||0,width:n||0,height:i||0}).append(c._defs),h=c._createElement("feGaussianBlur",{"in":"SourceGraphic",result:"gaussianBlurResult",stdDeviation:o||0}).append(d),p=c._createElement("feOffset",{"in":"gaussianBlurResult",result:"offsetResult",dx:r||0,dy:a||0}).append(d),f=c._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),_=c._createElement("feComposite",{"in":"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),g=c._createElement("feComposite",{"in":"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=u,d.gaussianBlur=h,d.offset=p,d.flood=f,d.composite=_,d.finalComposite=g,d.attr=function(e){var t=this,n={},i={},r={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),k(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(r["flood-color"]=e.color),"opacity"in e&&(r["flood-opacity"]=e.opacity),t.flood.attr(r),t},d},brightFilter:function(e,t){var n=this,i=je(),r=n._createElement("filter",{id:i}).append(n._defs),a=n._createElement("feComponentTransfer").append(r),o={type:e,slope:t};return r.id=i,n._createElement("feFuncR",o).append(a),n._createElement("feFuncG",o).append(a),n._createElement("feFuncB",o).append(a),r},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=je(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:je()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,r,a=this._hatchingStorage,o=re(e,t);return a.refToHash[n]!==o&&(n&&this.releaseHatching(n),i=a.byHash[o],i||(r=this.pattern(e,t,a.baseId+"-hatching-"+a.nextId++),i=a.byHash[o]={pattern:r,count:0},a.refToHash[r.id]=o),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];0===--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var Ye=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter(function(e){return e!==t})},fire:function(){e.forEach(function(e){e()})}}}();t.refreshPaths=function(){Ye.fire()}},function(e,t,n){function i(e){var t,n=this,i=n._animateStep;n._progress=n._calcProgress(e);for(t in n.params){var r=i[t]||i.base;r(n.element,n.params[t],n._progress,n._easing,n._currentParams,t)}return n.options.step&&n.options.step(n._easing(n._progress,0,1),n._progress),1!==n._progress||n.stop()}function r(e){return e-this._startTime>=this.delay&&(this.tick=i),!0}function a(e){return this._startTime=e,this.tick=this.delay?r:i,!0}function o(e,t,n){var i=this;i._progress=0,i.element=e,i.params=t,i.options=n,i.duration=n.partitionDuration?n.duration*n.partitionDuration:n.duration,i.delay=n.delay&&n.duration*n.delay||0,i._animateStep=n.animateStep||d,i._easing=u[n.easing]||u.easeOutCubic,i._currentParams={},i.tick=a}function s(e){var t=this;t._animationCount=0,t._timerId=null,t._animations={},t.element=e}var l=n(59),c=function(){},u={easeOutCubic:function(e,t,n){return 1===e?n:(1-Math.pow(1-e,3))*(n-t)+ +t},linear:function(e,t,n){return 1===e?n:e*(n-t)+ +t}};t.easingFunctions=u;var d={segments:function(e,t,n,i,r){var a,o,s,l,c=t.from,u=t.to,d=[];for(s=0;s<c.length;s++){if(a=c[s],o=[a[0]],a.length>1)for(l=1;l<a.length;l++)o.push(i(n,a[l],u[s][l]));d.push(o)}r.segments=t.end&&1===n?t.end:d,e.attr({segments:d})},arc:function(e,t,n,i){var r=t.from,a=t.to,o={};for(var s in r)o[s]=i(n,r[s],a[s]);e.attr(o)},transform:function(e,t,n,i,r){var a=t.from,o=t.to,s={};for(var l in a)s[l]=r[l]=i(n,a[l],o[l]);e.attr(s)},base:function(e,t,n,i,r,a){var o={};o[a]=r[a]=i(n,t.from,t.to),e.attr(o)},_:c,complete:function(e,t){e.attr(t)}};o.prototype={_calcProgress:function(e){return Math.min(1,(e-this.delay-this._startTime)/this.duration)},stop:function(e){var t=this,n=t.options,i=t._animateStep;t.stop=t.tick=c,i.complete&&i.complete(t.element,t._currentParams),n.complete&&!e&&n.complete()}},t.AnimationController=s,s.prototype={_loop:function(){var e,t=this,n=t._animations,i=0,r=(new Date).getTime(),a=t._endAnimation;for(e in n)n[e].tick(r)||delete n[e],i++;return 0===i?(t.stop(),void(t._endAnimationTimer=a&&setTimeout(function(){0===t._animationCount&&(a(),t._endAnimation=null)}))):void(t._timerId=l.requestAnimationFrame.call(null,function(){t._loop()},t.element))},addAnimation:function(e){var t=this;t._animations[t._animationCount++]=e,clearTimeout(t._endAnimationTimer),t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout(function(){t._timerId=1,t._loop()},0))},animateElement:function(e,t,n){e&&t&&n&&(e.animation&&e.animation.stop(),this.addAnimation(e.animation=new o(e,t,n)))},onEndAnimation:function(e){this._animationCount?this._endAnimation=e:e()},dispose:function(){this.stop(),this.element=null},stop:function(){var e=this;e._animations={},e._animationCount=0,l.cancelAnimationFrame(e._timerId),clearTimeout(e._startDelay),clearTimeout(e._endAnimationTimer),e._timerId=null},lock:function(){var e,t,n,i=this._animations;for(e in i)t=i[e].options.unstoppable,n=n||t,t||(i[e].stop(!0),delete i[e]);!n&&this.stop()}},t.animationSvgStep=d},function(e,t,n){function i(e,t,n){var i=m(e);return i in t?t[i]:n}function r(e){var t=i(e.side,C,1),n=[i(e.horizontalAlignment,w,x),i(e.verticalAlignment,k,b)];return{side:t,primary:a(n[t]),secondary:n[1-t],weak:e.weak}}function a(e){return e<2?0:2}function o(e){return 1-e}function s(e){return 2-e}function l(e,t,n,i){return T[e](t,n,i)}function c(e,t){return(e>0?-1:1)*t}function u(e,t){var n=e.side,i=e.element.measure([t[2]-t[0],t[3]-t[1]]),r=i[n]<t[2+n]-t[n];return r&&(t[e.primary+n]+=c(e.primary,i[n]),e.size=i),r}function d(e,t){var n=e.side,i=o(n),r=[],a=l(e.secondary,t[i],t[2+i],e.size[i]);r[n]=r[2+n]=t[e.primary+n],r[e.primary+n]=t[e.primary+n]-=c(e.primary,e.size[n]),r[i]=a[0],r[2+i]=a[1],e.element.move(r)}function h(){this._targets=[]}function p(e){var t,n,i=e.length,a=[];for(t=0;t<i;++t)n=e[t].layoutOptions(),n&&(n=r(n),n.element=e[t],a.push(n));return f(a),a}function f(e){for(var t,n,i,r,a=!0;a;)for(a=!1,n=e.length,t=0;t<n;++t)if(e[t].weak){for(r=e[t],i=0;i<n;++i)if(t!==i&&r.side===e[i].side&&r.primary===e[i].primary){e[v(t,i)]=_(e[v(t,i)],e[y(t,i)]),e.splice(y(t,i),1),a=!0;break}if(a)break}}function _(e,t){return{side:e.side,primary:e.primary,secondary:e.secondary===t.secondary?e.secondary:a(e.secondary)||a(t.secondary),element:new g(e,t)}}function g(e,t){this._first=e,this._second=t}var m=n(509).normalizeEnum,v=Math.min,y=Math.max,b=0,x=1,S=2,w={left:b,center:x,right:S},k={top:b,center:x,bottom:S},C={horizontal:0,vertical:1},T={};T[b]=function(e,t,n){return[e,v(t,e+n)]},T[x]=function(e,t,n){return[y(e,(e+t-n)/2),v(t,(e+t+n)/2)]},T[S]=function(e,t,n){return[y(e,t-n),t]},h.prototype={constructor:h,dispose:function(){this._targets=null},add:function(e){this._targets.push(e)},forward:function(e){var t,n=e.slice(),i=p(this._targets),r=i.length,a=[];for(t=0;t<r;++t)u(i[t],n)&&a.push(i[t]);return this._cache=a.reverse(),n},backward:function(e){var t,n=e.slice(),i=this._cache,r=i.length;for(t=0;t<r;++t)d(i[t],n);this._cache=null}},g.prototype.measure=function(e){var t,n=this._first,i=this._second,r=e.slice(),a=n.side,s=o(a),l=n.element.measure(r.slice());return r[s]-=l[s],t=i.element.measure(r.slice()),r[a]=y(l[a],t[a]),n.secondary===i.secondary?r[s]=l[s]+t[s]:n.secondary===x||i.secondary===x?r[s]=e[s]/2+(n.secondary===x?l:t)[s]/2:r[s]=e[s],n.size=l,i.size=t,r},g.prototype.move=function(e){var t,n,i,r=this._first,c=this._second,u=r.side,d=o(u),h=r.secondary===c.secondary?a(r.secondary):r.secondary===x?s(a(c.secondary)):a(r.secondary);t=l(x,e[u],e[2+u],r.size[u]),n=l(h,e[d],e[2+d],r.size[d]),i=[],i[u]=t[0],i[2+u]=t[1],i[d]=n[0],i[2+d]=n[1],r.element.move(i),t=l(x,e[u],e[2+u],c.size[u]),n=l(s(h),e[d],e[2+d],e[2+d]-e[d]-r.size[d]),n=l(s(h),n[0],n[1],c.size[d]),i=[],i[u]=t[0],i[2+u]=t[1],i[d]=n[0],i[2+d]=n[1],c.element.move(i)},e.exports=h},function(e,t,n){function i(e,t){if(e){var n,i=e.hatching.direction,r=e.fill;return t=r===J?t:r,i=i&&i!==J?i:U,n=z({},e.hatching,{direction:i,step:j,width:G}),{fill:t,hatching:n}}}function r(e){var t=e.margin;t>=0?(t=E(e.margin),t={top:t,bottom:t,left:t,right:t}):t={top:t.top>=0?E(t.top):N,bottom:t.bottom>=0?E(t.bottom):N,left:t.left>=0?E(t.left):N,right:t.right>=0?E(t.right):N},e.margin=t}function a(e,t,n){var i,r,a=7,o=4;switch(e.itemTextPosition){case Y:case U:i=t+a+n.width,r=O(t,n.height);break;case K:case $:i=O(t,n.width),r=t+o+n.height}return{width:i,height:r}}function o(e,t){var n={};return n.left=M(e.x,t.x),n.top=M(e.y,t.y),n.right=O(e.x+e.width,t.x+t.width),n.bottom=O(e.y+e.height,t.y+t.height),n}function s(e,t,n,i){var r=t&&n[t[e]];r&&r.marker.smartAttr(r.states[i])}function l(e,t){return e?(r(e),e.horizontalAlignment=ne(e.horizontalAlignment,U),e.verticalAlignment=ie(e.verticalAlignment,e.horizontalAlignment===W?$:K),e.orientation=re(e.orientation,e.horizontalAlignment===W?X:q),e.itemTextPosition=ae(e.itemTextPosition,e.orientation===X?$:U),e.position=oe(e.position,Q),e.itemsAlignment=se(e.itemsAlignment,null),e.hoverMode=F(e.hoverMode),e.customizeText=V(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=V(e.customizeHint)?e.customizeHint:L.noop,e._incidentOccurred=e._incidentOccurred||L.noop,e):null}function c(e,t){return e.rect(0,0,t,t)}function u(e,t){return e.circle(t/2,t/2,t/2)}function d(e){return"circle"===F(e)}function h(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function p(e,t,n){var i={x:0,y:0},r=0,a=0;if(H(e,function(e,n){var o=n[0];H(n,function(e,n){var a=n.offset||t.spacing;i[t.direction]+=n[t.measure]+a,r=O(r,i[t.direction])}),i[t.direction]=0,i[t.altDirection]+=o[t.altMeasure]+o.altOffset||t.altSpacing,a=O(a,i[t.altDirection])}),r>t.length)return t.countItem=f(t,n),!0}function f(e,t){return e.altCountItem++,D(t/e.altCountItem)}function _(e,t){var n=0;return H(e,function(e,i){var r=i.offset||t.spacing;n+=i[t.measure]+r}),n}function g(e,t){var n=0;return H(e,function(e,i){n=O(n,_(i,t))}),n}function m(e,t,n){var i,r=_(e,t);switch(t.itemsAlignment){case U:i=n-r;break;case W:i=(n-r)/2;break;default:i=0}return i}function v(e){switch(e.itemTextPosition){case $:return{horizontal:W,vertical:K};case K:return{horizontal:W,vertical:$};case Y:return{horizontal:U,vertical:W};case U:return{horizontal:Y,vertical:W}}}function y(e,t,n){var i={};return n%t.countItem===0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}function b(e,t){var n=0;H(e,function(e,i){i&&(n=O(n,i[t]))}),H(e,function(e,i){i&&(i[t]=n)})}function x(e){var t,n,i=e.length,r=e[0].length,a=[];for(t=0;t<r;t++)for(a[t]=[],n=0;n<i;n++)a[t][n]=e[n][t];return a}function S(e){switch(e){case K:case $:return W;case Y:return U;case U:return Y}}var w=n(9),k=n(509),C=n(11).extend,T=n(522),E=Number,A=Math,I=A.round,O=A.max,M=A.min,D=A.ceil,P=n(27),L=n(14),B=L.isDefined,V=L.isFunction,R=k.enumParser,F=k.normalizeEnum,z=C,H=w.each,N=10,G=2,j=5,W="center",U="right",Y="left",K="top",$="bottom",X="horizontal",q="vertical",Z="inside",Q="outside",J="none",ee="height",te="width",ne=R([Y,W,U]),ie=R([K,$]),re=R([q,X]),ae=R([Y,U,K,$]),oe=R([Q,Z]),se=R([Y,W,U]),le=function(e){return d(e)?u:c},ce=t.Legend=function(e){var t=this;t._renderer=e.renderer,t._legendGroup=e.group,t._backgroundClass=e.backgroundClass,t._itemGroupClass=e.itemGroupClass,t._textField=e.textField,t._getCustomizeObject=e.getFormatObject},ue=ce.prototype=P.clone(T.LayoutElement.prototype);C(ue,{constructor:ce,getOptions:function(){return this._options},update:function(e,t){var n=this;return n._data=e,n._boundingRect={width:0,height:0,x:0,y:0},n._options=l(t,n._textField),n},draw:function(e,t){var n=this,i=n._options,r=n._renderer,a=n._data;return this._size={width:e,height:t},n.erase(),i&&i.visible&&a&&a.length?(n._insideLegendGroup=r.g().append(n._legendGroup),n._createBackground(),n._createItems(n._getItemData()),n._locateElements(i),n._finalUpdate(i),(n.getLayoutOptions().width>e||n.getLayoutOptions().height>t)&&(n._options._incidentOccurred("W2104"),n.erase()),n):n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,r=n._options,o=r.markerSize,s=n._renderer,l=0,c=le(r.markerShape||r.markerType);n._markersId={},n._items=k.map(e,function(e,u){var d=n._insideLegendGroup,h=E(e.size>0?e.size:o),p=e.states,f=p.normal,_=f.fill,g=c(s,h).attr({fill:_||r.markerColor,opacity:f.opacity}).append(d),m=n._createLabel(e,d),v={normal:{fill:_},hovered:i(p.hover,_),selected:i(p.selection,_)},y=m.getBBox();return void 0!==e.id&&(n._markersId[e.id]=u),t=a(r,h,y),l=O(l,t.height),n._createHint(e,m),{label:m,labelBBox:y,group:d,bBox:t,marker:g,markerSize:h,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:v,itemTextPosition:r.itemTextPosition,markerOffset:0,bBoxes:[]}}),r.equalRowHeight&&H(n._items,function(e,t){t.bBox.height=l})},_getItemData:function(){var e=this._data;return this._options.inverted&&(e=e.slice().reverse()),e},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return s(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return s(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return s(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=S(this._options.itemTextPosition),r=this._options.customizeText.call(n,n),a=B(e.textOpacity)?z({},this._options.font,{opacity:e.textOpacity}):this._options.font;return this._renderer.text(r,0,0).css(k.patchFontOptions(a)).attr({align:i}).append(t)},_createHint:function(e,t){var n=this._getCustomizeObject(e),i=this._options.customizeHint.call(n,n);B(i)&&""!==i&&t.setTitle(i)},_createBackground:function(){var e=this,t=e._options.position===Z,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:J);(e._options.border.visible||(t||n)&&n!==J)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,"class":e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(){var e,t=this,n=0,i=t._getItemsLayoutOptions(),r=t._items.length;do e=[],t._createLines(e,i),t._alignLines(e,i),n++;while(p(e,i,r)&&n<r);t._applyItemPosition(e,i)},_createLines:function(e,t){H(this._items,function(n,i){var r,a,o=y(e,t,n),s={width:i.labelBBox.width,height:i.labelBBox.height,element:i.label,bBox:i.labelBBox,pos:v(t),itemIndex:n},l={width:i.markerSize,height:i.markerSize,element:i.marker,pos:{horizontal:W,vertical:W},bBox:{width:i.markerSize,height:i.markerSize,x:0,y:0},itemIndex:n},c=t.markerOffset?"altOffset":"offset";t.inverseLabelPosition?(r=s,a=l):(r=l,a=s),r[c]=t.labelOffset,o.secondLine.push(r),o.firstLine.push(a)})},_alignLines:function(e,t){function n(e,t){b(t,r)}var i,r=t.altMeasure;if(H(e,n),r=t.measure,t.itemsAlignment){if(t.markerOffset)for(i=0;i<e.length;)H(x([e[i++],e[i++]]),n)}else H(x(e),n)},_applyItemPosition:function(e,t){var n=this,i={x:0,y:0},r=g(e,t);H(e,function(e,a){var o=a[0],s=o.altOffset||t.altSpacing;i[t.direction]=m(a,t,r),H(a,function(e,r){var a=r.offset||t.spacing,o=new T.WrapperLayoutElement(r.element,r.bBox),s=new T.WrapperLayoutElement(null,{x:i.x,y:i.y,width:r.width,height:r.height}),l=n._items[r.itemIndex];o.position({of:s,my:r.pos,at:r.pos}),l.bBoxes.push(s),i[t.direction]+=r[t.measure]+a}),i[t.altDirection]+=o[t.altMeasure]+s}),H(this._items,function(e,t){var i=o(t.bBoxes[0].getLayoutOptions(),t.bBoxes[1].getLayoutOptions()),r=n._options.columnItemSpacing/2,a=n._options.rowItemSpacing/2;t.tracker.left=i.left-r,t.tracker.right=i.right+r,t.tracker.top=i.top-a,t.tracker.bottom=i.bottom+a})},_getItemsLayoutOptions:function(){var e=this,t=e._options,n=t.orientation,i={itemsAlignment:t.itemsAlignment,orientation:t.orientation},r=e._size.width-(e._background?2*t.paddingLeftRight:0),a=e._size.height-(e._background?2*t.paddingTopBottom:0);return n===X?(i.length=r,i.spacing=t.columnItemSpacing,i.direction="x",i.measure=te,i.altMeasure=ee,i.altDirection="y",i.altSpacing=t.rowItemSpacing,i.countItem=t.columnCount,i.altCountItem=t.rowCount,i.marginTextLabel=4,i.labelOffset=7,t.itemTextPosition!==$&&t.itemTextPosition!==K||(i.labelOffset=4,i.markerOffset=!0)):(i.length=a,i.spacing=t.rowItemSpacing,i.direction="y",i.measure=ee,i.altMeasure=te,i.altDirection="x",i.altSpacing=t.columnItemSpacing,i.countItem=t.rowCount,i.altCountItem=t.columnCount,i.marginTextLabel=7,i.labelOffset=4,t.itemTextPosition!==U&&t.itemTextPosition!==Y||(i.labelOffset=7,i.markerOffset=!0)),i.countItem||(i.altCountItem?i.countItem=D(e._items.length/i.altCountItem):i.countItem=e._items.length),t.itemTextPosition!==K&&t.itemTextPosition!==Y||(i.inverseLabelPosition=!0),i.itemTextPosition=t.itemTextPosition,i.altCountItem=i.altCountItem||D(e._items.length/i.countItem),i},_adjustBackgroundSettings:function(e){if(this._background){var t=e.border,n=this._insideLegendGroup.getBBox(),i={x:I(n.x-e.paddingLeftRight),y:I(n.y-e.paddingTopBottom),width:I(n.width)+2*e.paddingLeftRight,height:I(n.height)+2*e.paddingTopBottom,opacity:e.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==J&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(e){if(this._insideLegendGroup){var t=this._insideLegendGroup.getBBox();t.height+=e.top+e.bottom,t.width+=e.left+e.right,t.x-=e.left,t.y-=e.top,this._boundingRect=t}},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:L.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===X?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):e.horizontalAlignment===W?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&(n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var r=0;r<n.length;r++)if(h(n[r].tracker,e,t))return n[r].tracker;return null},dispose:function(){var e=this;return e._legendGroup=e._insideLegendGroup=e._renderer=e._options=e._data=e._items=null,e}})},function(e,t,n){function i(e){this._options=e}function r(e,t){this._renderElement=e,this._cacheBBox=t}var a=n(14).noop,o=Math.round,s=n(27),l={horizontal:0,vertical:0},c={center:.5,right:1,bottom:1,left:0,top:0};i.prototype={constructor:i,position:function(e){var t=this,n=e.of.getLayoutOptions(),i=t.getLayoutOptions(),r=e.at,a=e.my,s=e.offset||l,u=-c[a.horizontal]*i.width+n.x+c[r.horizontal]*n.width+parseInt(s.horizontal),d=-c[a.vertical]*i.height+n.y+c[r.vertical]*n.height+parseInt(s.vertical);t.shift(o(u),o(d))},getLayoutOptions:a};var u=r.prototype=s.clone(i.prototype);u.constructor=r,u.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},u.shift=function(e,t){var n=this.getLayoutOptions();this._renderElement.move(o(e-n.x),o(t-n.y))},t.LayoutElement=i,t.WrapperLayoutElement=r},function(e,t,n){function i(e,t,n,i){i>=0&&e.slice(i).forEach(function(e){K(e[n])&&(t[n]+=e[n],e[n]=e["original"+n]=void 0)})}function r(e){e.forEach(function(e){e.valueType=e.valueAxisType=null,e.series.forEach(function(e){e.updateDataType({})}),e.valueAxis&&e.valueAxis.resetTypes(j)})}function a(e){e&&e.forEach(function(e){e.resetTypes(W)})}function o(e,t){var n=[];return e.forEach(function(e){var i=t(e);void 0!==i&&n.push(i)}),n}function s(e,t){var n=e.argumentOptions&&e.argumentOptions.categories,i=t[1];e.groups.forEach(function(e){var t=e.valueOptions&&e.valueOptions.categories;t&&(e.valueOptions.categories=o(t,i))}),n&&(e.argumentOptions.categories=o(n,t[0]))}function l(e,t,n){return e<=0&&null!==e&&(n("E2004",[t]),e=null),e}function c(e){return e}function u(e,t){var n=t;return t===V||q(e)?n=V:t===F||Z(e)?n=F:Q(e)&&(n=R),n}function d(e,t,n,i){return e!==V||t!==N&&t!==G&&t!==H||i("E2002"),t===G?G:n||t===z||e===V?z:t===H?H:N}function h(e,t,n){e&&n(Q(e)||Z(e)||q(e)?"E2004":"E2003",[t])}function p(e,t,n,i,r){var a=e?Y(e):c,o=t===G?l:c,s=t!==z?function(e){return isFinite(e)||void 0===e?e:null}:c,u=n?function(e){return null===e?void 0:e}:c;return function(e,t){var n=function(e){return o(e,t,r)},l=u(n(s(a(e))));return void 0===l&&(i[t]=(i[t]||0)+1,h(e,t,r)),l}}function f(e,t,n){var i,r,a,o=p(e.argumentType,e.argumentAxisType,!1,t,n),l=[o],u={},d=[];e.groups.forEach(function(e){e.series.forEach(function(s){a=s.getOptions().ignoreEmptyPoints,r=p(e.valueType,e.valueAxisType,a,t,n),i=p(R,N,a,t,n),u[s.getArgumentField()]=o,s.getValueFields().forEach(function(e){!l[1]&&(l[1]=r),u[e]=r}),s.getSizeField()&&(u[s.getSizeField()]=i),s.getTagField()&&(u[s.getTagField()]=c)})});for(var h in u)d.push([h,u[h]]);return d.length&&s(e,l),d}function _(e,t){var n,i,r,a=t.length,o={};for(n=0;n<a;++n)i=t[n][0],r=e[i],o[i]=t[n][1](r,i),o["original"+i]=r;return o}function g(e,t){var n,i=[],r=e.length;for(i.length=r,n=0;n<r;++n)i[n]=_(e[n],t);return i}function m(e,t,n){var i,r,a=e.length;for(i=0;i<a&&(r=e[i][t],!(K(r)&&n>r));++i);return i}function v(e,t,n,r){r=r||{};var a,o=r.mode,s={};o&&"none"!==o&&(s[t]=String(r.groupName||"others"),s[n]=0,a=e.slice(),a.sort(function(e,t){var i=K(e[n])?1:0,r=K(t[n])?1:0;return i&&r?t[n]-e[n]:r-i}),i(a,s,n,"smallValueThreshold"===o?m(a,n,r.threshold):r.topCount),s[n]&&e.push(s))}function y(e,t){var n=t.groups[0]&&t.groups[0].series[0],i=n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type);i&&t.groups.forEach(function(t){t.series.forEach(function(t){v(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)})})}function b(e,t,n){n[e]||(t.push(e),n[e]=!0)}function x(e){var t=[],n={};return e.groups.forEach(function(e){e.series.forEach(function(e){b(e.getArgumentField(),t,n)})}),t}function S(e,t){var n=e-t;return isNaN(n)?K(e)?K(t)?0:-1:1:n}function w(e,t){return e.slice().sort(function(e,n){return S(e[t],n[t])})}function k(e,t){return e.slice().sort(t)}function C(e,t){return e.series.forEach(function(n){n.getValueFields().forEach(function(n){e.valueType=u(t[n],e.valueType)})}),e.valueType}function T(e){var t={};return e.forEach(function(e,n){t[e]=n}),function(e,n){return e.slice().sort(function(e,i){return t[e[n]]-t[i[n]]})}}function E(e,t,n,i){var r,a={},o=t.argumentAxisType===z,s=o&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e};return!s&&$(n)&&(e=k(e,n)),o&&(t.categories=I(e,i,s)),s||!$(n)&&t.argumentType===V?l=T(t.categories):n===!0&&t.argumentType!==V&&(l=w,r=o),i.forEach(function(t){a[t]=l(e,t)}),r&&(t.categories=t.categories.sort(S)),a}function A(e,t){return e.map(function(e){return e.valueOf()}).indexOf(t.valueOf())===-1}function I(e,t,n){var i=n?n.slice():[];return t.forEach(function(t){e.forEach(function(e){var n=e[t];K(n)&&A(i,n)&&i.push(n)})}),i}function O(e,t,n){return e.forEach(function(e){n.argumentType=u(t[e.getArgumentField()],n.argumentType)}),n.argumentType}function M(e,t,n){var i,r=[],a=[],o=t.argumentOptions&&U(t.argumentOptions.argumentType);t.groups.forEach(function(e){if(e.series.length){var n=e.valueOptions&&U(e.valueOptions.valueType);e.valueType=n,t.argumentType=o,!n&&r.push(e),!o&&a.push(e)}}),(r.length||a.length)&&(i=r.map(function(e,t){return t}),e.some(function(e){var o;if(r.forEach(function(t,n){C(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)}),o||a.forEach(function(n){o=O(n.series,e,t)}),!n&&o&&0===i.length)return!0}))}function D(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],r=d(e.argumentType,n.type,!!i.length,t);e.groups.forEach(function(n){var i=n.valueOptions||{},a=i.categories||[],o=d(n.valueType,i.type,!!a.length,t);n.series.forEach(function(t){var a={};a.argumentAxisType=r,a.valueAxisType=o,e.argumentAxisType=e.argumentAxisType||a.argumentAxisType,n.valueAxisType=n.valueAxisType||a.valueAxisType,a.argumentType=e.argumentType,a.valueType=n.valueType,a.showZero=i.showZero,t.updateDataType(a)}),n.valueAxisType=n.valueAxisType||o,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,j),n.valueAxis.validate(!1))}),e.argumentAxisType=e.argumentAxisType||r,e.argumentAxes&&e.argumentAxes.forEach(function(t){t.setTypes(e.argumentAxisType,e.argumentType,W),t.validate(!0)})}function P(e,t){var n,i,r,a,o=[],s=K(e),l=s&&!X(e);if(s&&!l)for(n=0,i=e.length,r=0;n<i;++n)a=e[n],J(a)?o[r++]=a:a&&(l=!0);return l&&t("E2001"),o}function L(e,t,n,i){var o,s,l={};e=P(e,n),t.argumentType=t.argumentAxisType=null,r(t.groups),a(t.argumentAxes),M(e,t,i.checkTypeForAllData),D(t,n),i.convertToAxisDataType&&(e=g(e,f(t,l,n))),y(e,t),o=E(e,t,i.sortingMethod,x(t));for(s in l)l[s]===e.length&&n("W2002",[s]);return o}var B=n(14),V="string",R="numeric",F="datetime",z="discrete",H="semidiscrete",N="continuous",G="logarithmic",j="valueType",W="argumentType",U=n(509).enumParser([V,R,F]),Y=n(524).getParser,K=B.isDefined,$=B.isFunction,X=Array.isArray,q=B.isString,Z=B.isDate,Q=B.isNumeric,J=B.isObject;t.validateData=L},function(e,t,n){function i(e){return"numeric"===e||"datetime"===e||"string"===e?e:""}var r=n(14),a=n(259),o=r.isDefined,s={string:function(e){return o(e)?""+e:e},numeric:function(e){if(!o(e))return e;var t=Number(e);return isNaN(t)&&(t=void 0),t},datetime:function(e){if(!o(e))return e;var t,n=Number(e);return t=isNaN(n)?a.deserializeDate(e):new Date(n),isNaN(Number(t))&&(t=void 0),t}};e.exports={correctValueType:i,getParser:function(e){return s[i(e)]||r.noop}}},function(e,t,n){function i(e,t,n){e&&e.trigger(t,n)}function r(e){return e=T(e),e===Z||e===ie}function a(e,t){var n=e||{},i=k({},n.font)||{},r=n.border||{},a=n.connector||{},o={fill:n.backgroundColor||t,"stroke-width":r.visible?r.width||0:0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},s={stroke:a.visible&&a.width?a.color||t:"none","stroke-width":a.visible?a.width||0:0};return i.color="none"===n.backgroundColor&&"#ffffff"===T(i.color)&&"inside"!==n.position?t:i.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,precision:n.precision,argumentPrecision:n.argumentPrecision,percentPrecision:n.percentPrecision,customizeText:_.isFunction(n.customizeText)?n.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:o,position:n.position,connector:s,rotationAngle:n.rotationAngle}}function o(e,t){e.fullState|=j,e.applyView(t)}function s(e,t){e.fullState&=~j,e.applyView(t),e.releaseHoverState()}function l(e,t){e.fullState|=G,e.applyView(t)}function c(e,t){e.fullState&=~G,e.applyView(t)}function u(e,t){var n=k({},e,t);return n.border=k({},e&&e.border,t&&t.border),n}function d(e,t){var n=u(e,t);return n.image=k(!0,{},e.image,t.image),n.selectionStyle=u(e.selectionStyle,t.selectionStyle),n.hoverStyle=u(e.hoverStyle,t.hoverStyle),n}function h(e,t){var n=this;n.fullState=0,n._extGroups=e,n._renderer=e.renderer,n._group=e.renderer.g().attr({"class":"dxc-series"}),n._eventTrigger=e.eventTrigger,n._eventPipe=e.eventPipe,n._seriesModes=e.commonSeriesModes,n._valueAxis=e.valueAxis,n.axis=n._valueAxis&&n._valueAxis.name,n._argumentAxis=e.argumentAxis,n._legendCallback=A,n.updateOptions(t)}var p=n(9),f={},_=n(14),g=n(12),m=n(11).extend,v=n(26).inArray,y=n(526),b=_.isDefined,x=n(509),S=x.map,w=p.each,k=m,C=g.isEmptyObject,T=x.normalizeEnum,E=p.Event,A=_.noop,I=v,O=n(527).states,M=n(539),D=n(540),P=n(541),L=n(542),B=n(543),V=n(544),R=n(545),F=n(546),z=n(547),H=n(548),N="discrete",G=O.selectedMark,j=O.hoverMark,W=O.hover,U=O.normal,Y=O.selection,K=O.applySelected,$=O.applyHover,X=O.resetItem,q="none",Z="includepoints",Q="nearestpoint",J="seriesSelectionChanged",ee="pointSelectionChanged",te="seriesHoverChanged",ne="pointHoverChanged",ie="allseriespoints",re="allargumentpoints",ae="pointHover",oe="clearPointHover",se="seriesSelect",le="pointSelect",ce="pointDeselect",ue=function(){return{arg:{},val:{}}};f.mixins={chart:{},pie:{},polar:{}},f.mixins.chart.scatter=D.chart,f.mixins.polar.scatter=D.polar,m(f.mixins.pie,F),m(f.mixins.chart,P.chart,L.chart,B.chart,V.chart,R.chart,z,H.chart),
m(f.mixins.polar,P.polar,L.polar,B.polar,V.polar,R.polar,H.polar),t.Series=h,t.mixins=f.mixins,h.prototype={constructor:h,_createLegendState:A,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(e){var t=this,n=e.mainSeriesColor;t._styles={normal:t._parseStyle(e,n,n),hover:t._parseStyle(e.hoverStyle||{},n,n),selection:t._parseStyle(e.selectionStyle||{},n,n),legendStyles:{normal:t._createLegendState(e,n),hover:t._createLegendState(e.hoverStyle||{},n),selection:t._createLegendState(e.selectionStyle||{},n)}}},setClippingParams:function(e,t,n){this._paneClipRectID=e,this._widePaneClipRectID=t,this._forceClipping=n},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:A,getSizeField:A,getArgumentField:A,getPoints:function(){return this._points},_createPoint:function(e,t,n){e.index=n;var i,a,o,s=this,l=t[n],c=s.pointsByArgument;if(s._checkData(e))return i=s._getCreatingPointOptions(e),l?l.update(e,i):(l=new y.Point(s,e,i),s.isSelected()&&r(s.lastSelectionMode)&&l.setView(Y),t.push(l)),l.hasValue()&&s.customizePoint(l,e),a=l.argument.valueOf(),o=c[a],o?o.push(l):c[a]=[l],!0},getRangeData:function(e,t){if(this._visible){var n=this._getRangeData();return this._processRange(n),n}return ue()},getViewport:function(){return M.getViewport(this)},_deleteGroup:function(e){var t=this[e];t&&(t.dispose(),this[e]=null)},_saveOldAnimationMethods:function(){var e=this;e._oldClearingAnimation=e._clearingAnimation,e._oldUpdateElement=e._updateElement,e._oldGetAffineCoordOptions=e._getAffineCoordOptions},_deleteOldAnimationMethods:function(){this._oldClearingAnimation=null,this._oldUpdateElement=null,this._oldGetAffineCoordOptions=null},updateOptions:function(e){var t=this,n=e.widgetType,i=t.type,r=e.type;return t.type=r&&T(r.toString()),!t._checkType(n)||t._checkPolarBarType(n,e)?(t.dispose(),void(t.isUpdated=!1)):(i!==t.type&&(t._firstDrawing=!0,t._saveOldAnimationMethods(),t._resetType(i,n),t._setType(t.type,n)),t._options=e,t._pointOptions=null,t._renderer.initHatching(),t.name=e.name,t.pane=e.pane,t.tag=e.tag,t._createStyles(e),t._updateOptions(e),t._visible=e.visible,t.isUpdated=!0,void t._createGroups())},_disposePoints:function(e){w(e||[],function(e,t){t.dispose()})},_correctPointsLength:function(e,t){this._disposePoints(this._oldPoints),this._oldPoints=t.splice(e,t.length)},getErrorBarRangeCorrector:A,updateDataType:function(e){var t=this;return t.argumentType=e.argumentType,t.valueType=e.valueType,t.argumentAxisType=e.argumentAxisType,t.valueAxisType=e.valueAxisType,t.showZero=e.showZero,t},getOptions:function(){return this._options},_resetRangeData:function(){this._rangeData=ue()},updateData:function(e){var t=this,n=t._originalPoints||[],i=0,r=t._options,a=0,o=e.length;for(t.pointsByArgument={},t._resetRangeData(),e&&e.length&&(t._canRenderCompleteHandle=!0),t._beginUpdateData(e);a<o;)t._createPoint(t._getPointData(e[a],r),n,i)&&i++,a++;t._disposePoints(t._aggregatedPoints),t._aggregatedPoints=null,t._points=t._originalPoints=n,t._correctPointsLength(i,n),t._endUpdateData()},getTemplateFields:function(){return this.getValueFields().concat(this.getTagField(),this.getSizeField()).map(function(e){return{templateField:e+this.name,originalField:e}},this)},resamplePoints:function(e){var t,n,i,r,a,o=this,s=o._getPointSize(),l=o.getAllPoints().length,c=o.getArgumentAxis(),u=c.getViewport(),d=u&&u.min,h=u&&u.max,p=c.getTranslator(),f=o.argumentAxisType===N||o.valueAxisType===N,_=p.getBusinessRange(),g=b(d)&&b(h);l&&l>1&&(r=e/s,r=r<=1?1:r,f?(o.argumentAxisType===N&&(t=_.categories,n=I(d,t),i=I(h,t),n!==-1&&i!==-1&&(t=t.slice(n,i+1)),l=t.length),a=Math.ceil(l/r)):a=(g?h-d:_.maxVisible-_.minVisible)/r,o._points=o._resample(a,d-a,h+a,g))},_removeOldSegments:function(e){var t=this;w(t._graphics.splice(e,t._graphics.length)||[],function(e,n){t._removeElement(n)}),t._trackers&&w(t._trackers.splice(e,t._trackers.length)||[],function(e,t){t.remove()})},draw:function(e,t,n){var i,r=this;r._oldClearingAnimation&&e&&r._firstDrawing?(i=function(){r._draw(!0,t)},r._oldClearingAnimation(i)):r._draw(e,t,n)},_draw:function(e,t,n){var i,r=this,a=r._points||[],o=[],s=0,l=r._firstDrawing,c=a[0]&&a[0].hasValue()&&r._options.closed;return r._legendCallback=n||r._legendCallback,r._graphics=r._graphics||[],r._prepareSeriesToDrawing(),r._visible?(r._appendInGroup(),r._applyVisibleArea(),r._setGroupsSettings(e,l),r._segments=[],r._drawnPoints=[],r._firstDrawing=!a.length,i={markers:r._markersGroup,errorBars:r._errorBarGroup},w(a,function(t,n){n.translate(),n.hasValue()?(r._drawPoint({point:n,groups:i,hasAnimation:e,firstDrawing:l}),o.push(n)):o.length&&(r._drawSegment(o,e,s++),o=[])}),o.length&&r._drawSegment(o,e,s++,c),r._removeOldSegments(s),r._defaultSegments=r._generateDefaultSegments(),t&&r.hideLabels(),e&&r._animate(l),void(r.isSelected()?r._changeStyle(r.lastSelectionMode,void 0,!0):r.isHovered()&&r._changeStyle(r.lastHoverMode,void 0,!0))):(e=!1,void r._group.remove())},_setLabelGroupSettings:function(e){var t={"class":"dxc-labels"};this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!f.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&this.type.indexOf("bar")!==-1},_resetType:function(e,t){var n,i;if(e){i=f.mixins[t][e];for(n in i)delete this[n]}},_setType:function(e,t){var n,i=f.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.setView(e)})},_resetPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.resetView(e)})},_resetNearestPoint:function(){var e=this;e._nearestPoint&&e._nearestPoint.resetView(W),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=T(e||t._options.selectionMode),t.fullState=t.fullState|G,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==q&&t.isHovered()&&r(t.lastHoverMode)&&t._resetPointsView(W)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~G,e._changeStyle(e.lastSelectionMode,Y),e.lastSelectionMode!==q&&e.isHovered()&&r(e.lastHoverMode)&&e._setPointsView(W)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&T(this._options.hoverMode)!==q},_changeStyle:function(e,t,n){var i=this,a=i.fullState,o=[U,W,Y,Y];"none"===i.lastHoverMode&&(a&=~j),"none"===i.lastSelectionMode&&(a&=~G),r(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(o[a])),i._legendCallback([X,$,K,K][a]),i._applyStyle(i._styles[o[a]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,r=n.isHovered()&&n.lastHoverMode===Q&&n.getNeighborPoint(e,t);r===i||n.isSelected()&&n.lastSelectionMode!==q||(n._resetNearestPoint(),r&&(r.setView(W),n._nearestPoint=r))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!b(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(e,t){var n,i,r,a,o,s,l=this,c=l._options,u=c.customizePoint,d=c.customizeLabel;d&&d.call&&(n=k({seriesName:l.name},t),n.series=l,r=d.call(n,n),o=r&&!C(r),r=o?k(!0,{},c.label,r):null),u&&u.call&&(n=n||k({seriesName:l.name},t),n.series=l,a=u.call(n,n),s=a&&!C(a)),(o||s)&&(i=l._parsePointOptions(l._preparePointOptions(a),r||c.label,t),i.styles.useLabelCustomOptions=o,i.styles.usePointCustomOptions=s,e.updateOptions(i))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged()},_updatePointsVisibility:A,hideLabels:function(){w(this._points,function(e,t){t._label.hide()})},_parsePointOptions:function(e,t,n){var i=this,r=i._options,o=i._createPointStyles(e,n),s=k({},e,{type:r.type,rotated:r.rotated,styles:o,widgetType:r.widgetType,visibilityChanged:r.visibilityChanged});return s.label=a(t,o.normal.fill),i.areErrorBarsVisible()&&(s.errorBars=r.valueErrorBar),s},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?d(t,e):t},_getMarkerGroupOptions:function(){return k(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_resample:function(e,t,n,i){function r(e){l.push(e),o=e.argument,i&&(d=e.argument<t?1:e.argument>n?2:0)}var a,o,s=this,l=[],c=0,u=0,d=0,h=s.getAllPoints();return s.argumentAxisType===N||s.valueAxisType===N?S(h,function(t,n){return n%e===0?t:(t.setInvisibility(),null)}):(s._aggregatedPoints=s._aggregatedPoints||[],w(h,function(i,h){h.setInvisibility(),l.length?!d&&Math.abs(o-h.argument)<e?l.push(h):1===d&&h.argument<t||2===d&&h.argument>n||(a=s._fusionPoints(l,o,c),c++,s._createPoint(a,s._aggregatedPoints,u)&&u++,l=[],r(h)):r(h)}),l.length&&(a=s._fusionPoints(l,o,c),s._createPoint(a,s._aggregatedPoints,u)&&u++),s._correctPointsLength(u,s._aggregatedPoints),s._endUpdateData(),s._aggregatedPoints)},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return(this._originalPoints||[]).slice()},getPointByPos:function(e){return(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(l(e,this._legendCallback),this._eventPipe({action:le,target:e}),this._eventTrigger(ee,{target:e}))},deselectPoint:function(e){e.isSelected()&&(c(e,this._legendCallback),this._eventPipe({action:ce,target:e}),this._eventTrigger(ee,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=T(e||t._options.hoverMode),t.fullState=t.fullState|j,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==q),n(te,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~j,e._changeStyle(e.lastHoverMode,W,e.isSelected()&&e.lastSelectionMode!==q),t(te,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),o(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:ae,target:e}),t._eventTrigger(ne,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some(function(t){return!!t.isHovered()&&(s(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:oe,target:t}),e._eventTrigger(ne,{target:t}),!0)})},showPointTooltip:function(e){i(this._extGroups.seriesGroup,new E("showpointtooltip"),e)},hidePointTooltip:function(e){i(this._extGroups.seriesGroup,new E("hidepointtooltip"),e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:se,target:e}),e._group.toForeground(),e._eventTrigger(J,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(J,{target:e}))},getPointsByArg:function(e){return this.pointsByArgument[e.valueOf()]||[]},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,r=e.target,a=r.getOptions(),o=T(a.hoverMode),s=T(a.selectionMode);n===ae?t._hoverPointHandler(r,o,e.notifyLegend):n===oe?t._clearPointHoverHandler(r,o,e.notifyLegend):n===se?r!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===le?("single"===i.pointSelectionMode&&t.getPoints().some(function(e){return!(e===r||!e.isSelected())&&(t.deselectPoint(e),!0)}),t._selectPointHandler(r,s)):n===ce&&t._deselectPointHandler(r,s)},_selectPointHandler:function(e,t){var n=this;t===ie?e.series===n&&n._setPointsView(Y,e):t===re&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.setView(Y)})},_deselectPointHandler:function(e,t){t===ie?e.series===this&&this._resetPointsView(Y,e):t===re&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.resetView(Y)})},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===re?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.setView(W)}),n&&i._legendCallback(e)):t===ie&&e.series===i&&i._setPointsView(W,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===re?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.resetView(W)}),n&&i._legendCallback(e)):t===ie&&e.series===i&&i._resetPointsView(W,e)},_deletePoints:function(){var e=this;e._disposePoints(e._originalPoints),e._disposePoints(e._aggregatedPoints),e._disposePoints(e._oldPoints),e._points=e._oldPoints=e._aggregatedPoints=e._originalPoints=e._drawnPoints=null},_deleteTrackers:function(){var e=this;w(e._trackers||[],function(e,t){t.remove()}),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e._aggregatedPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:A,drawTrackers:A,getNeighborPoint:A,areErrorBarsVisible:A,getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return"stackedbar"===this.type||"fullstackedbar"===this.type?this._stackName:null},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis}}},function(e,t,n){function i(e){return"none"===m(e)}function r(e,t,n){this.fullState=M,this.series=e,this.update(t,n),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}var a=n(9),o={},s=n(527).states,l=n(528),c=n(531),u=n(532),d=n(533),h=n(534),p=n(535),f=n(536),_=n(537),g=n(538),m=n(509).normalizeEnum,v=n(11).extend,y=a.each,b=v,x=n(14),S=x.isDefined,w=x.noop,k="symbolPoint",C="polarSymbolPoint",T="barPoint",E="polarBarPoint",A="piePoint",I=s.selectedMark,O=s.hoverMark,M=s.normalMark,D=s.hover,P=s.normal,L=s.selection,B={chart:{scatter:k,line:k,spline:k,stepline:k,stackedline:k,fullstackedline:k,stackedspline:k,fullstackedspline:k,stackedsplinearea:k,fullstackedsplinearea:k,area:k,splinearea:k,steparea:k,stackedarea:k,fullstackedarea:k,rangearea:"rangeSymbolPoint",bar:T,stackedbar:T,fullstackedbar:T,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:A,doughnut:A,donut:A},polar:{scatter:C,line:C,area:C,bar:E,stackedbar:E}};t.Point=r,o.symbolPoint=l,o.barPoint=c,o.bubblePoint=u,o.piePoint=d,o.rangeSymbolPoint=h,o.rangeBarPoint=p,o.candlestickPoint=f,o.stockPoint=_,o.polarSymbolPoint=g.polarSymbolPoint,o.polarBarPoint=g.polarBarPoint,r.prototype={constructor:r,getColor:function(){return this.hasValue()||this._styles.usePointCustomOptions||this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(e,t){this.updateOptions(t),this.updateData(e)},updateData:function(e){var t=this;t.argument=t.initialArgument=t.originalArgument=e.argument,t.tag=e.tag,t.index=e.index,this._dataItem=e,t.lowError=e.lowError,t.highError=e.highError,t._updateData(e),!t.hasValue()&&t.setInvisibility(),t._fillStyle(),t._updateLabelData()},deleteMarker:function(){var e=this;e.graphic&&e.graphic.dispose(),e.graphic=null},_drawErrorBar:w,draw:function(e,t,n,i){var r=this;return r._needDeletingOnDraw&&(r.deleteMarker(),r._needDeletingOnDraw=!1),r._needClearingOnDraw&&(r.clearMarker(),r._needClearingOnDraw=!1),r._hasGraphic()?r._updateMarker(n,this._getStyle(),t.markers):r._getMarkerVisibility()&&r._drawMarker(e,t.markers,n,i),r._drawLabel(),r._drawErrorBar(e,t.errorBars,n),r},applyStyle:function(e,t){var n=this;return n._currentStyle=e,n.graphic&&("normal"===e?n.clearMarker():n.graphic.toForeground(),n._updateMarker(!0,n._styles[e],void 0,t)),n},_getViewStyle:function(){var e=M,t=this.fullState,n=[P,D,L,L];return this._viewCounters.hover&&(e|=O),this._viewCounters.selection&&(e|=I),i(this.getOptions().selectionMode)&&(t&=~I),i(this.getOptions().hoverMode)&&(t&=~O),e|=t,n[e]},applyView:function(e){var t=this._getViewStyle();this.applyStyle(t,e)},setView:function(e){this._viewCounters[e]++,this.applyView()},resetView:function(e){--this._viewCounters[e],this.applyView()},releaseHoverState:function(){var e=this;e.graphic&&!e.isSelected()&&e.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(e,t){var n=~t.indexOf("range"),i=~e.indexOf("range");return i&&!n||!i&&n},updateOptions:function(e){if(e){var t=this,n=t._options,i=e.widgetType,r=n&&n.type,a=e.type,s=B[i][a];r!==a?(t._needDeletingOnDraw=!0,t._needClearingOnDraw=!1,r&&(t._checkLabelsChanging(r,a)&&t.deleteLabel(),t._resetType(o[B[r]])),t._setType(o[s])):(t._needDeletingOnDraw=t._checkSymbol(n,e),t._needClearingOnDraw=t._checkCustomize(n,e)),t._options=e,t._fillStyle(),t._updateLabelOptions(s)}},translate:function(){this.hasValue()&&this._translate()},_checkCustomize:function(e,t){return e.styles.usePointCustomOptions&&!t.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(e){for(var t in e)delete this[t]},_setType:function(e){for(var t in e)this[t]=e[t]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&I)},isHovered:function(){return!!(this.fullState&O)},getOptions:function(){return this._options},animate:function(e,t,n){return this.graphic?void this.graphic.animate(t,{partitionDuration:n},e):void(e&&e())},getCoords:function(e){var t=this;return e?t._options.rotated?{x:t.minX,y:t.y}:{x:t.x,y:t.minY}:{x:t.x,y:t.y}},getDefaultCoords:function(){var e=this;return e._options.rotated?{x:e.defaultX,y:e.y}:{x:e.x,y:e.defaultY}},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},_calculateVisibility:function(e,t,n,i){var r=this,a=r._getVisibleArea(),o=r._options.rotated;a.minX>e+(n||0)||a.maxX<e||a.minY>t+(i||0)||a.maxY<t||o&&S(n)&&0!==n&&(a.minX===e+n||a.maxX===e)||!o&&S(i)&&0!==i&&(a.minY===t+i||a.maxY===t)?r.inVisibleArea=!1:r.inVisibleArea=!0},hasValue:function(){return null!==this.value&&null!==this.minValue},correctPosition:w,correctRadius:w,correctLabelRadius:w,getCrosshairData:w,getPointRadius:w,_populatePointShape:w,_checkSymbol:w,getMarkerCoords:w,hide:w,show:w,hideMarker:w,setInvisibility:w,clearVisibility:w,isVisible:w,resetCorrection:w,correctValue:w,resetValue:w,setPercentValue:w,correctCoordinates:w,coordsIn:w,getTooltipParams:w,setLabelEllipsis:w,setLabelTrackerData:w,updateLabelCoord:w,drawLabel:w,correctLabelPosition:w,setMaxLabelLength:w,getMinValue:w,getMaxValue:w,dispose:function(){var e=this;e.deleteMarker(),e.deleteLabel(),e._errorBar&&this._errorBar.dispose(),e._options=e._styles=e.series=e._errorBar=null},getTooltipFormatObject:function(e){var t=this,n=t._getFormatObject(e),i=[],r=[];return t.stackPoints&&(y(t.stackPoints,function(t,n){if(n.isVisible()){var a=n._getFormatObject(e);r.push(a),i.push(a.seriesName+": "+a.valueText)}}),b(n,{points:r,valueText:i.join("\n"),stackName:t.stackPoints.stackName})),n},setHole:function(e,t){var n=this,i=isFinite(n.minValue)?n.minValue:0;S(e)&&("left"===t?(n.leftHole=n.value-e,n.minLeftHole=i-e):(n.rightHole=n.value-e,n.minRightHole=i-e))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]}}},function(e,t){e.exports={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},pieLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(e,t,n){function i(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}function r(e){var t=v(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function a(e){var t=v(e),n=m(t/2),i=v(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}function o(e){return[-e,-e,e,-e,0,e,-e,-e]}function s(e){return[-e,e,e,e,0,-e,-e,e]}var l=n(9),c=n(14),u=n(11).extend,d=n(529),h=u,p=c.isDefined,f=n(509).normalizeEnum,_=Math,g=_.round,m=_.floor,v=_.ceil,y=20,b=20,x=10,S="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this,t=e.graphic;t&&t.attr("visibility")&&t.attr({visibility:null}),e._label.clearVisibility()},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.hide()},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new d.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return p(e)&&("string"==typeof e||p(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,r="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,a=this._checkImage(e.image)!==this._checkImage(t.image);return!(!r&&!a)},_populatePointShape:function(e,t){switch(e){case"square":return i(t);case"polygon":return r(t);case"triangle":case"triangleDown":return o(t);case"triangleUp":return s(t);case"cross":return a(t)}},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.initialValue+e,t.minValue=e)},resetCorrection:function(){this.value=this.initialValue,this.minValue=S},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||y,r=n.height||b;return e.image(-g(.5*i),-g(.5*r),i,r,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var r=this,a=r._checkImage(n)?r._createImageMarker(e,i,n):r._createSymbolMarker(e,i);return a&&a.data({"chart-data-point":r}).append(t),a},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||y,r=n.height||b;return{x:e-g(i/2),y:t-g(r/2),width:i,height:r}},_getGraphicBBox:function(){var e,t=this,n=t._options,i=t.x,r=t.y;return e=n.visible?t._checkImage(n.image)?t._getImageBBox(i,r):t._getSymbolBBox(i,r,n.styles.normal.r):{x:i,y:r,width:0,height:0}},_isLabelInsidePoint:c.noop,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label;e._showForZeroValues()&&e.hasValue()&&t!==!1&&(e.series.getLabelVisibility()||t)?n.show():n.hide()},correctLabelPosition:function(e){var t,n=this;n._isLabelInsidePoint(e)||(t=n._getShiftLabelCoords(e),e.setFigureToDrawConnector(n._getLabelConnector(e.pointPosition)),e.shift(g(t.x),g(t.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=e.getBoundingRect(),a=n._getGraphicBBox(e.pointPosition),o=x;return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=a.x+a.width+o),i.maxX<t.x+r.width&&(t.x=a.x-o-r.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+r.height&&(t.y=i.maxY-r.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+r.width&&(t.x=i.maxX-r.width),i.minY>t.y&&(t.y=a.y+a.height+o),i.maxY<t.y+r.height&&(t.y=a.y-r.height-o))),t},_addLabelAlignmentAndOffset:function(e,t){var n=e.getBoundingRect(),i=e.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=n.width/2:"right"===i.alignment&&(t.x-=n.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(e){return this._getLabelCoordOfPosition(e,this._getLabelPosition(e.pointPosition))},_getLabelCoordOfPosition:function(e,t){var n=this,i=e.getBoundingRect(),r=n._getGraphicBBox(e.pointPosition),a=x,o=r.height/2-i.height/2,s=r.width/2-i.width/2,l=r.x,c=r.y;switch(t){case"left":l-=i.width+a,c+=o;break;case"right":l+=r.width+a,c+=o;break;case"top":l+=s,c-=i.height+a;break;case"bottom":l+=s,c+=r.height+a;break;case"inside":l+=s,c+=o}return{x:l,y:c}},_drawMarker:function(e,t,n){var i=this,r=i._options,a=i._getTranslates(n),o=i._getStyle();i.graphic=i._createMarker(e,t,r.image,h({translateX:a.x,translateY:a.y,points:i._populatePointShape(r.symbol,o.r)},o))},_getErrorBarSettings:function(){return{visibility:"visible"}},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,r=i._options,a=r.errorBars,o=[],s=i._errorBarPos,c=i._highErrorCoord,u=i._lowErrorCoord,d=f(a.displayMode),h="high"===d,_="low"===d,g=m(parseInt(a.edgeLength)/2),v=(h||!p(u))&&p(c)&&!_,y=(_||!p(c))&&p(u)&&!h;v&&(u=i._baseErrorBarPos),y&&(c=i._baseErrorBarPos),"none"!==d&&p(c)&&p(u)&&p(s)?(!y&&o.push([s-g,c,s+g,c]),o.push([s,c,s,u]),!v&&o.push([s+g,u,s-g,u]),r.rotated&&l.each(o,function(e,t){t.reverse()}),n=i._getErrorBarSettings(a),i._errorBar?(n.points=o,i._errorBar.attr(n)):i._errorBar=e.path(o,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var r=this,a=r.value/e||0,o=r.minValue/e||0,s=a-o;r._label.setDataField("percent",s),r._label.setDataField("total",e),r.series.isFullStackedSeries()&&r.hasValue()&&(r.leftHole&&(r.leftHole/=e-n,r.minLeftHole/=e-n),r.rightHole&&(r.rightHole/=e-i,r.minRightHole/=e-i),r.value=a,r.minValue=o?o:r.minValue)},_storeTrackerR:function(){var e,t=this,n=window.navigator,i=t._options.styles.normal.r;return e="ontouchstart"in window||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6,t._options.trackerR=i<e?e:i,t._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,r=e._getValTranslator();i&&(p(e.lowError)&&(e._lowErrorCoord=r.translate(e.lowError)),p(e.highError)&&(e._highErrorCoord=r.translate(e.highError)),e._errorBarPos=m(n?e.vy:e.vx),e._baseErrorBarPos="stdDeviation"===i.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:n?e.vx:e.vy)},_translate:function(){var e=this,t=e._getValTranslator(),n=e._getArgTranslator();e._options.rotated?(e.vx=e.x=t.translate(e.value),e.vy=e.y=n.translate(e.argument),e.minX=t.translate(e.minValue),e.defaultX=t.translate(S)):(e.vy=e.y=t.translate(e.value),e.vx=e.x=n.translate(e.argument),e.minY=t.translate(e.minValue),e.defaultY=t.translate(S)),e._translateErrorBars(),e._calculateVisibility(e.x,e.y)},_updateData:function(e){var t=this;t.value=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=p(e.minValue)?e.minValue:S},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||y,height:e.height||b}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.value,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e,t=this._getStyle(),n=this._options,i=t.r,r=n.symbol,a="square"===r,o="triangle"===r||"triangleDown"===r||"triangleUp"===r;return n.visible&&!n.image&&i?(e=t["stroke-width"]/2,(a||o?1.4*i:i)+e):0},_updateMarker:function(e,t){var n,i=this,r=i._options,a=r.image,o=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(a)?h({},{visibility:t.visibility},o,i._getImageSettings(a)):h({},t,o,{points:i._populatePointShape(r.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return h({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},p(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},p(n.total)?{totalText:e.formatValue(n.total)}:{})},_getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(){var e=this._options.errorBars;if(e){var t=e.displayMode,n="high"===t?this.value:this.lowError,i="low"===t?this.value:this.highError;return n<i?n:i}return this.value},getMaxValue:function(){var e=this._options.errorBars;if(e){var t=e.displayMode,n="high"===t?this.value:this.lowError,i="low"===t?this.value:this.highError;return n>i?n:i}return this.value}}},function(e,t,n){function i(e,t){var n,i=1/0;return u.each(t,function(t,r){var a=e[0]-r[0],o=e[1]-r[1],s=a*a+o*o;s<i&&(i=s,n=r)}),n}function r(e){return void 0!==e.angle&&k||void 0!==e.r&&w||S}function a(e,t){e[t]&&e[t].dispose(),e[t]=null}function o(e){return e&&(e.fill&&"none"!==e.fill||e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke)}function s(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke;
}function l(e,t){return e.valueText=d(e.value,t),e.argumentText=d(e.argument,{format:t.argumentFormat,precision:t.argumentPrecision}),void 0!==e.percent&&(e.percentText=d(e.percent,{format:{type:"percent",precision:t.format&&t.format.percentPrecision||t.percentPrecision}})),void 0!==e.total&&(e.totalText=d(e.total,t)),void 0!==e.openValue&&(e.openValueText=d(e.openValue,t)),void 0!==e.closeValue&&(e.closeValueText=d(e.closeValue,t)),void 0!==e.lowValue&&(e.lowValueText=d(e.lowValue,t)),void 0!==e.highValue&&(e.highValueText=d(e.highValue,t)),void 0!==e.reductionValue&&(e.reductionValueText=d(e.reductionValue,t)),t.customizeText?t.customizeText.call(e,e):e.valueText}function c(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point}var u=n(9),d=n(530),h=n(509),p=h.degreesToRadians,f=h.patchFontOptions,_=Math,g=_.round,m=_.floor,v=h.getCosAndSin,y=h.rotateBBox,b=8,x=4,S={isLabelInside:function(e,t){return e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height},prepareLabelPoints:function(e){return e},getFigureCenter:function(e){return[e.x+e.width/2,e.y+e.height/2]},findFigurePoint:function(e,t){var n=S.getFigureCenter(e),r=i(t,[[e.x,n[1]],[n[0],e.y+e.height],[e.x+e.width,n[1]],[n[0],e.y]]);return[g(r[0]),g(r[1])]}},w={isLabelInside:function(){return!1},prepareLabelPoints:S.prepareLabelPoints,getFigureCenter:function(e){return[e.x,e.y]},findFigurePoint:function(e,t){var n=Math.atan2(e.y-t[1],t[0]-e.x);return[g(e.x+e.r*Math.cos(n)),g(e.y-e.r*Math.sin(n))]}},k={isLabelInside:function(e,t,n){return!n},prepareLabelPoints:function(e,t,n){var i=[],r=t[0],a=t[1],o=v(n||0);return u.each(e,function(e,t){i.push([g((t[0]-r)*o.cos+(t[1]-a)*o.sin+r),g(-(t[0]-r)*o.sin+(t[1]-a)*o.cos+a)])}),i},getFigureCenter:w.getFigureCenter,findFigurePoint:function(e,t){var n=e.x+(e.y-t[1])/Math.tan(p(e.angle)),i=[e.x,e.y];return(e.x<=n&&n<=t[0]||e.x>=n&&n>=t[0])&&i.push(g(n),t[1]),i}};c.prototype={constructor:c,_setVisibility:function(e,t){this._group&&this._group.attr({visibility:e}),this._visible=t},clearVisibility:function(){this._setVisibility(null,!0)},hide:function(){this._setVisibility("hidden",!1)},show:function(){var e=this;e._point.hasValue()&&(e._draw(),e._point.correctLabelPosition(e))},isVisible:function(){return this._visible},setColor:function(e){this._color=e},setOptions:function(e){this._options=e},setData:function(e){this._data=e},setDataField:function(e,t){this._data=this._data||{},this._data[e]=t},getData:function(){return this._data},setFigureToDrawConnector:function(e){this._figure=e},dispose:function(){var e=this;a(e,"_group"),e._data=e._options=e._textContent=e._visible=e._insideGroup=e._text=e._background=e._connector=e._figure=null},_draw:function(){var e=this,t=e._renderer,n=e._container,i=e._options||{},r=e._textContent=l(e._data,e._options)||null;return e.clearVisibility(),r?(e._group||(e._group=t.g().append(n),e._insideGroup=t.g().append(e._group),e._text=t.text("",0,0).append(e._insideGroup)),e._text.css(i.attributes?f(i.attributes.font):{}),o(i.background)?(e._background=e._background||t.rect().append(e._insideGroup).toBackground(),e._background.attr(i.background),e._color&&e._background.attr({fill:e._color})):a(e,"_background"),s(i.connector)?(e._connector=e._connector||t.path([],"line").sharp().append(e._group).toBackground(),e._connector.attr(i.connector),e._color&&e._connector.attr({stroke:e._color})):a(e,"_connector"),e._text.attr({text:r}),e._updateBackground(e._text.getBBox()),e._setVisibility("visible",!0)):e.hide(),e},_updateBackground:function(e){var t=this;t._textSize=[e.width,e.height],t._background&&(e.x-=b,e.y-=x,e.width+=2*b,e.height+=2*x,t._background.attr(e)),t._options.rotationAngle&&(t._insideGroup.rotate(t._options.rotationAngle,e.x+e.width/2,e.y+e.height/2),e=y(e,[e.x+e.width/2,e.y+e.height/2],-t._options.rotationAngle)),t._bBox=e},_getConnectorPoints:function(){var e,t,n,a,o=this,s=o._figure,l=r(s),c=o.getBoundingRect(),u=[];return l.isLabelInside(c,s,"inside"!==o._options.position)||(n=c.x+c.width/2,a=c.y+c.height/2,u=l.prepareLabelPoints([[n,a-o._textSize[1]/2],[n+o._textSize[0]/2,a],[n,a+o._textSize[1]/2],[n-o._textSize[0]/2,a]],[n,a],-o._options.rotationAngle||0),e=i(l.getFigureCenter(s),u),e=[m(e[0]),m(e[1])],t=l.findFigurePoint(s,e),u=t.concat(e)),u},fit:function(e){this._text&&this._text.applyEllipsis(e),this._updateBackground(this._text.getBBox())},setTrackerData:function(e){this._text.data({"chart-data-point":e}),this._background&&this._background.data({"chart-data-point":e})},shift:function(e,t){var n=this;return n._textContent&&(n._insideGroup.attr({translateX:n._x=g(e-n._bBox.x),translateY:n._y=g(t-n._bBox.y)}),n._connector&&n._connector.attr({points:n._getConnectorPoints()})),n},getBoundingRect:function(){var e=this._bBox;return this._textContent?{x:e.x+this._x,y:e.y+this._y,width:e.width,height:e.height}:{}},getLayoutOptions:function(){var e=this._options;return{alignment:e.alignment,background:o(e.background),horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,position:e.position}}},t.Label=c},function(e,t,n){var i=n(66).format;e.exports=function(e,t){return i(e,t.format,t.precision)}},function(e,t,n){var i=n(11).extend,r=i,a=Math,o=a.floor,s=a.abs,l=a.min,c=n(528),u="canvas_position_default",d=9,h=4,p="right",f="left",_="top",g="bottom";e.exports=r({},c,{correctCoordinates:function(e){var t=this,n=o(e.offset-e.width/2);t._options.rotated?(t.height=e.width,t.yCorrection=n):(t.width=e.width,t.xCorrection=n)},_getGraphicBBox:function(){var e=this,t={};return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},_getLabelConnector:function(e){return this._getGraphicBBox(e)},_getLabelPosition:function(){var e,t=this,n=t.initialValue,i=t._getValTranslator().getBusinessRange().invert,r="discrete"===t.series.valueAxisType,a=t.series.isFullStackedSeries(),o=!r&&(n>=0&&!i||n<0&&i)||r&&!i||a;return e=t._options.rotated?o?p:f:o?_:g},_getLabelCoords:function(e){var t,n=this;return t=0===n.initialValue&&n.series.isFullStackedSeries()?this._options.rotated?n._getLabelCoordOfPosition(e,p):n._getLabelCoordOfPosition(e,_):"inside"===e.getLayoutOptions().position?n._getLabelCoordOfPosition(e,"inside"):c._getLabelCoords.call(this,e)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea();return n._isPointInVisibleArea(i,n._getGraphicBBox())?n._moveLabelOnCanvas(t,i,e.getBoundingRect()):t},_isLabelInsidePoint:function(e){var t=this,n=t._getGraphicBBox(),i=e.getBoundingRect();return!(!t._options.resolveLabelsOverlapping||"inside"!==e.getLayoutOptions().position||!(i.width>n.width||i.height>n.height))&&(e.hide(),!0)},_moveLabelOnCanvas:function(e,t,n){var i=e.x,r=e.y;return t.minX>i&&(i=t.minX),t.maxX<i+n.width&&(i=t.maxX-n.width),t.minY>r&&(r=t.minY),t.maxY<r+n.height&&(r=t.maxY-n.height),{x:i,y:r}},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker:function(e,t,n){var i=this,r=i._getStyle(),a=i.x,o=i.y,s=i.width,l=i.height,c=i._options.cornerRadius;n&&(i._options.rotated?(s=0,a=i.defaultX):(l=0,o=i.defaultY)),i.graphic=e.rect(a,o,s,l).attr({rx:c,ry:c}).smartAttr(r).data({"chart-data-point":i}).append(t)},_getSettingsForTracker:function(){var e=this,t=e.y,n=e.height,i=e.x,r=e.width;return e._options.rotated?1===r&&(r=d,i-=h):1===n&&(n=d,t-=h),{x:i,y:t,width:r,height:n}},getGraphicSettings:function(){var e=this.graphic;return{x:e.attr("x"),y:e.attr("y"),height:e.attr("height"),width:e.attr("width")}},_getEdgeTooltipParams:function(e,t,n,i){var r,a,o=this.value>=0,s=this._getValTranslator().getBusinessRange().invert;return this._options.rotated?(a=t+i/2,r=s?o?e:e+n:o?e+n:e):(r=e+n/2,a=s?o?t+i:t:o?t:t+i),{x:r,y:a,offset:0}},getTooltipParams:function(e){var t=this.x,n=this.y,i=this.width,r=this.height;return"edge"===e?this._getEdgeTooltipParams(t,n,i,r):{x:t+i/2,y:n+r/2,offset:0}},_truncateCoord:function(e,t,n){return e<t?t:e>n?n:e},_translateErrorBars:function(e){c._translateErrorBars.call(this),(this._errorBarPos<e.min||this._errorBarPos>e.max)&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i,r=this,a=r._options.rotated,o=a?"x":"y",c=a?"y":"x",d=a?"width":"height",h=a?"height":"width",p=r._getArgTranslator(),f=r._getValTranslator(),_=p.getCanvasVisibleArea(),g=f.getCanvasVisibleArea();e=t=p.translate(r.argument)+(r[c+"Correction"]||0),n=f.translate(r.value),i=f.translate(r.minValue),null===n&&(n=i),r["v"+o]=n,r["v"+c]=e+r[h]/2,r[d]=s(n-i),r._calculateVisibility(a?l(n,i):l(e,t),a?l(e,t):l(n,i),r.width,r.height),n=r._truncateCoord(n,g.min,g.max),i=r._truncateCoord(i,g.min,g.max),r[c]=e,r["min"+c.toUpperCase()]=t,r[d]=s(n-i),r[o]=l(n,i)+(r[o+"Correction"]||0),r["min"+o.toUpperCase()]=i+(r[o+"Correction"]||0),r["default"+o.toUpperCase()]=f.translate(u),r._translateErrorBars(_),r.inVisibleArea&&(r[c]<_.min&&(r[h]=r[h]-(_.min-r[c]),r[c]=_.min,r["min"+c.toUpperCase()]=_.min),r[c]+r[h]>_.max&&(r[h]=_.max-r[c]))},_updateMarker:function(e,t){this.graphic.smartAttr(r({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}})},function(e,t,n){var i=n(11).extend,r=n(528),a=i,o=20;e.exports=a({},r,{correctCoordinates:function(e){this.bubbleSize=e/2},_drawMarker:function(e,t,n){var i=this,r=a({translateX:i.x,translateY:i.y},i._getStyle());i.graphic=e.circle(0,0,n?0:i.bubbleSize).smartAttr(r).data({"chart-data-point":i}).append(t)},getTooltipParams:function(e){var t,n=this,i=n.graphic;if(i)return t=i.getBBox().height,{x:n.x,y:t<o||"edge"===e?this.y-t/2:this.y,offset:0}},_getLabelFormatObject:function(){var e=r._getLabelFormatObject.call(this);return e.size=this.initialSize,e},_updateData:function(e){r._updateData.call(this,e),this.size=this.initialSize=e.size},_getGraphicBBox:function(){var e=this;return e._getSymbolBBox(e.x,e.y,e.bubbleSize)},_updateMarker:function(e,t){var n=this;e||(t=a({r:n.bubbleSize,translateX:n.x,translateY:n.y},t)),n.graphic.smartAttr(t)},_getFormatObject:function(e){var t=r._getFormatObject.call(this,e);return t.sizeText=e.formatValue(this.initialSize),t},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(e){var t;return t="inside"===e.getLayoutOptions().position?this._getLabelCoordOfPosition(e,"inside"):r._getLabelCoords.call(this,e)}})},function(e,t,n){var i=n(11).extend,r=20,a=n(528),o=i,s=Math.round,l=Math.sqrt,c=Math.acos,u=180/Math.PI,d=Math.abs,h=n(509),p=h.normalizeAngle,f=h.getCosAndSin,_=n(14),g=_.isDefined,m=h.getVerticallyShiftedAngularCoords,v=n(527).pieLabelIndent;e.exports=o({},a,{_updateData:function(e){var t=this;a._updateData.call(this,e),t._visible=!0,t.minValue=t.initialMinValue=t.originalMinValue=g(e.minValue)?e.minValue:0},animate:function(e,t,n){var i=this;i.graphic.animate({x:i.centerX,y:i.centerY,outerRadius:i.radiusOuter,innerRadius:i.radiusInner,startAngle:i.toAngle,endAngle:i.fromAngle},{delay:n,partitionDuration:t},e)},correctPosition:function(e){var t=this;t.correctRadius(e),t.correctLabelRadius(e.radiusOuter),t.centerX=e.centerX,t.centerY=e.centerY},correctRadius:function(e){this.radiusInner=e.radiusInner,this.radiusOuter=e.radiusOuter},correctLabelRadius:function(e){this.radiusLabels=e},correctValue:function(e,t,n){var i=this;i.value=(n||i.initialValue)+e,i.minValue=e,i.percent=t,i._label.setDataField("percent",t)},setMaxLabelLength:function(e){this._maxLabelLength=e},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var e=this,t=e._label.getBoundingRect(),n=e._getLabelCoords(e._label),i=e._getVisibleArea();return e._isLabelDrawingWithoutPoints?e._checkLabelPosition(n,t,i):e._getLabelExtraCoord(n,e._checkVerticalLabelPosition(n,t,i),t)},_getLabelPosition:function(e){return e.position},_getLabelCoords:function(e){var t,n,i=this,r=e.getBoundingRect(),a=e.getLayoutOptions(),o=f(i.middleAngle),l=i._getLabelPosition(a),c=i.radiusInner,u=i.radiusOuter,d=i.radiusLabels;return"inside"===l?(t=c+(u-c)/2+a.radialOffset,n=i.centerX+t*o.cos-r.width/2):(t=d+a.radialOffset+v,n=o.cos>.1?i.centerX+t*o.cos:o.cos<-.1?i.centerX+t*o.cos-r.width:i.centerX+t*o.cos-r.width/2),{x:n,y:s(i.centerY-t*o.sin-r.height/2)}},_getColumnsCoord:function(e){var t,n=this,i=n._label,a=i.getBoundingRect(),o=i.getLayoutOptions(),s=n.radiusLabels+o.radialOffset,l=n._getVisibleArea(),c=l.maxX-a.width,u=l.minX,d=p(n.middleAngle);return"columns"!==o.position?e:(s+=r,d<90||d>=270?(t=n._maxLabelLength?n.centerX+s+n._maxLabelLength-a.width:c,t=t>c?c:t):(t=n._maxLabelLength?n.centerX-s-n._maxLabelLength:u,t=t<u?u:t),e.x=t,e)},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(){var e=this,t=e._label.getBoundingRect(),n=e._getColumnsCoord(t);n=e._checkHorizontalLabelPosition(n,t,e._getVisibleArea()),e._label.shift(s(n.x),s(t.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,r=e.y;return e.y+t.height>n.maxY?r=n.maxY-t.height:e.y<n.minY&&(r=n.minY),{x:i,y:r}},_getLabelExtraCoord:function(e,t,n){return e.y!==t.y?m({x:e.x,y:e.y,width:n.width,height:n.height},t.y-e.y,{x:this.centerX,y:this.centerY}):e},_checkHorizontalLabelPosition:function(e,t,n){var i=e.x,r=e.y;return e.x+t.width>n.maxX?i=n.maxX-t.width:e.x<n.minX&&(i=n.minX),{x:i,y:r}},setLabelEllipsis:function(){var e=this,t=e._label.getBoundingRect(),n=e._checkHorizontalLabelPosition(t,t,e._getVisibleArea());e._label.fit(t.width-d(n.x-t.x))},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(e,t,n){return e=this._checkHorizontalLabelPosition(e,t,n),this._checkVerticalLabelPosition(e,t,n)},_getLabelConnector:function(){var e=this,t=e.radiusOuter,n=e._options.styles.normal,i=n["stroke-width"]/2,r=s(e.series.getOptions().containerBackgroundColor===n.stroke?i:-i),a=f(s(e.middleAngle));return{x:s(e.centerX+(t-r)*a.cos),y:s(e.centerY-(t-r)*a.sin),angle:e.middleAngle}},_drawMarker:function(e,t,n,i){var r=this,a=r.radiusOuter,o=r.radiusInner,s=r.fromAngle,l=r.toAngle;n&&(o=a=0,i||(s=l=r.shiftedAngle)),r.graphic=e.arc(r.centerX,r.centerY,o,a,l,s).attr({"stroke-linejoin":"round"}).smartAttr(r._getStyle()).data({"chart-data-point":r}).sharp().append(t)},getTooltipParams:function(){var e=this,t=f(e.middleAngle),n=e.radiusInner,i=e.radiusOuter;return{x:e.centerX+(n+(i-n)/2)*t.cos,y:e.centerY-(n+(i-n)/2)*t.sin,offset:0}},_translate:function(){var e=this,t=e.shiftedAngle||0,n=e.value,i=e.minValue,r=e._getValTranslator();e.fromAngle=r.translate(i)+t,e.toAngle=r.translate(n)+t,e.middleAngle=r.translate((n-i)/2+i)+t,e.isVisible()||(e.middleAngle=e.toAngle=e.fromAngle=e.fromAngle||t)},_getMarkerVisibility:function(){return!0},_updateMarker:function(e,t,n,i){var r=this;e||(t=o({x:r.centerX,y:r.centerY,outerRadius:r.radiusOuter,innerRadius:r.radiusInner,startAngle:r.toAngle,endAngle:r.fromAngle},t)),r.graphic.smartAttr(t).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){var e=this;e._visible&&(e._visible=!1,e.hideTooltip(),e._options.visibilityChanged(e))},show:function(){var e=this;e._visible||(e._visible=!0,e._options.visibilityChanged(e))},setInvisibility:function(){this._label.hide()},isVisible:function(){return this._visible},_getFormatObject:function(e){var t=a._getFormatObject.call(this,e),n=this.percent;return t.percent=n,t.percentText=e.formatValue(n,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(e,t){var n,i=this,r=e-i.centerX,a=t-i.centerY,o=l(r*r+a*a),s=i.fromAngle%360,h=i.toAngle%360;return!(o<i.radiusInner||o>i.radiusOuter||0===o)&&(n=c(r/o)*u*(a>0?-1:1),n<0&&(n+=360),s===h&&d(i.toAngle-i.fromAngle)>1e-4||(s>=h?n<=s&&n>=h:!(n>=s&&n<=h)))}})},function(e,t,n){var i=n(9),r=n(11).extend,a=n(14),o=n(529),s=n(528),l=r,c=a.isDefined,u=Math,d=u.abs,h=u.min,p=u.max,f=u.round,_=20,g=20;e.exports=l({},s,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.hide()},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker;n&&n.attr("visibility")&&n.attr({visibility:null}),i&&i.attr("visibility")&&i.attr({visibility:null}),e._topLabel.clearVisibility(),e._bottomLabel.clearVisibility()},clearMarker:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker,r=e._emptySettings;n&&n.attr(r),i&&i.attr(r)},_getLabelPosition:function(e){var t,n="inside"===this._options.label.position;return t=this._options.rotated?"top"===e^n?"right":"left":"top"===e^n?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new o.Label(e),this._bottomLabel=new o.Label(e)},_getGraphicBBox:function(e){var t,n=this._options,i=this._getImage(n.image),r="top"===e?this._checkImage(i.top):this._checkImage(i.bottom),a=this._getPositionFromLocation(e);return t=n.visible?r?this._getImageBBox(a.x,a.y):this._getSymbolBBox(a.x,a.y,n.styles.normal.r):{x:a.x,y:a.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?p(this.x,this.minX):h(this.x,this.minX),n=this.y):(t=this.x,n=i?h(this.y,this.minY):p(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return e<t+n},_getOverlayCorrections:function(e,t){var n=this._options.rotated,i=n?"x":"y",r=n?"width":"height",a=this._getValTranslator().getCanvasVisibleArea(),o=a.min,s=a.max,l=f((e[i]+e[r]-t[i])/2),c=e[i]-l,u=t[i]+l;return c<o?(l=o-e[i],c+=l,u+=l):u+t[r]>s&&(l=-(t[i]+t[r]-s),c+=l,u+=l),{coord1:c,coord2:u}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),r={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(r.coord2,n.y),t._bottomLabel.shift(r.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(r.coord1,n.y),t._bottomLabel.shift(r.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(n.x,r.coord1),t._bottomLabel.shift(i.x,r.coord2)):this._checkOverlay(n.y,i.y,i.height)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(n.x,r.coord2),t._bottomLabel.shift(i.x,r.coord1))},_drawLabel:function(){var e=this,t=[],n=e._options.rotated?e.x>=e.minX:e.y<e.minY,r=e._getCustomLabelVisibility(),a=e._topLabel,o=e._bottomLabel;a.pointPosition=n?"top":"bottom",o.pointPosition=n?"bottom":"top",(e.series.getLabelVisibility()||r)&&e.hasValue()&&r!==!1?(e.visibleTopMarker!==!1&&t.push(a),e.visibleBottomMarker!==!1&&t.push(o),i.each(t,function(e,t){t.show()}),e._checkLabelsOverlay(e._topLabel.pointPosition)):(a.hide(),o.hide())},_getImage:function(e){var t={};return c(e)&&("string"==typeof e?t.top=t.bottom=e:(t.top={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMaxPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMaxPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMaxPoint},t.bottom={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMinPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMinPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMinPoint})),t},_checkSymbol:function(e,t){var n=this,i=e.symbol,r=t.symbol,a="circle"===i&&"circle"!==r||"circle"!==i&&"circle"===r,o=n._getImage(e.image),s=n._getImage(t.image),l=n._checkImage(o.top)!==n._checkImage(s.top),c=n._checkImage(o.bottom)!==n._checkImage(s.bottom);return a||l||c},_getSettingsForTwoMarkers:function(e){var t=this,n=t._options,i={},r=n.rotated?h(t.x,t.minX):t.x,a=n.rotated?t.y:h(t.y,t.minY),o=e.r,s=t._populatePointShape(n.symbol,o);return i.top=l({translateX:r+t.width,translateY:a,r:o},e),i.bottom=l({translateX:r,translateY:a+t.height,r:o},e),s&&(i.top.points=i.bottom.points=s),i},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(e,t,n,i){var r=this,a=r.graphic;a[t]?r._updateOneMarker(t,i):a[t]=r._createMarker(e,a,n,i)},_drawMarker:function(e,t,n,i,r){var a=this,o=a._getSettingsForTwoMarkers(r||a._getStyle()),s=a._getImage(a._options.image);a._checkImage(s.top)&&(o.top=a._getImageSettings(o.top,s.top)),a._checkImage(s.bottom)&&(o.bottom=a._getImageSettings(o.bottom,s.bottom)),a.graphic=a.graphic||e.g().append(t),a.visibleTopMarker&&a._drawOneMarker(e,"topMarker",s.top,o.top),a.visibleBottomMarker&&a._drawOneMarker(e,"bottomMarker",s.bottom,o.bottom)},_getSettingsForTracker:function(e){var t=this,n=t._options.rotated;return{translateX:n?h(t.x,t.minX)-e:t.x-e,translateY:n?t.y-e:h(t.y,t.minY)-e,width:t.width+2*e,height:t.height+2*e}},isInVisibleArea:function(){var e,t,n,i,r,a=this,o=a._options.rotated,s=o?a.y:a.x,l=o?p(a.minX,a.x):p(a.minY,a.y),c=o?h(a.minX,a.x):h(a.minY,a.y),u=!0,d=!0,f=!0;return i=a._getArgTranslator().getCanvasVisibleArea(),r=a._getValTranslator().getCanvasVisibleArea(),e=i.max<s||i.min>s,t=r.min>c&&r.min>l||r.max<c&&r.max<l,e||t?u=d=f=!1:(u=r.min<=c&&r.max>c,d=r.min<l&&r.max>=l,o&&(n=u,u=d,d=n)),a.visibleTopMarker=u,a.visibleBottomMarker=d,f},getTooltipParams:function(){var e,t,n=this,i=n._options.rotated,r=i?h(n.x,n.minX):h(n.y,n.minY),a=i?"width":"height",o=n._getVisibleArea(),s=i?o.minX:o.minY,l=i?o.maxX:o.maxY,c=p(s,r),u=h(l,r+n[a]);return i?(t=n.y,e=c+(u-c)/2):(e=n.x,t=c+(u-c)/2),{x:e,y:t,offset:0}},_translate:function(){var e=this,t=e._options.rotated;s._translate.call(e),e.height=t?0:d(e.minY-e.y),e.width=t?d(e.x-e.minX):0},_updateData:function(e){var t=this;s._updateData.call(t,e),t.minValue=t.initialMinValue=t.originalMinValue=e.minValue},_getImageSettings:function(e,t){return{href:t.url||t.toString(),width:t.width||_,height:t.height||g,translateX:e.translateX,translateY:e.translateY}},getCrosshairData:function(e,t){var n=this,i=n._options.rotated,r=n.minX,a=n.minY,o=n.vx,s=n.vy,l=n.value,c=n.minValue,u=n.argument,h={axis:n.series.axis,x:o,y:s,yValue:l,xValue:u};return i?(h.yValue=u,d(o-e)<d(r-e)?h.xValue=l:(h.x=r,h.xValue=c)):d(s-t)>=d(a-t)&&(h.y=a,h.yValue=c),h},_updateOneMarker:function(e,t){this.graphic&&this.graphic[e]&&this.graphic[e].attr(t)},_updateMarker:function(e,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(e){var t=this,n=t.initialMinValue,i=t.initialValue,r=t.initialArgument,a=e.formatValue(n),o=e.formatValue(i);return{argument:r,argumentText:e.formatValue(r,"argument"),valueText:a+" - "+o,rangeValue1Text:a,rangeValue2Text:o,rangeValue1:n,rangeValue2:i,seriesName:t.series.name,point:t,originalMinValue:t.originalMinValue,originalValue:t.originalValue,originalArgument:t.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:a.noop,coordsIn:function(e,t){var n=this._storeTrackerR(),i=e>=this.x-n&&e<=this.x+n,r=t>=this.y-n&&t<=this.y+n;return this._options.rotated?r&&(i||e>=this.minX-n&&e<=this.minX+n):i&&(r||t>=this.minY-n&&t<=this.minY+n)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}})},function(e,t,n){var i=n(14).noop,r=n(11).extend,a=n(531),o=n(534),s=r;e.exports=s({},a,{deleteLabel:o.deleteLabel,_getFormatObject:o._getFormatObject,clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null}),this._topLabel.clearVisibility(),this._bottomLabel.clearVisibility()},setInvisibility:function(){var e=this.graphic;e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),this._topLabel.hide(),this._bottomLabel.hide()},getTooltipParams:function(e){var t,n,i=this,r="edge"===e;return i._options.rotated?(t=r?i.x+i.width:i.x+i.width/2,n=i.y+i.height/2):(t=i.x+i.width/2,n=r?i.y:i.y+i.height/2),{x:t,y:n,offset:0}},_translate:function(){var e=this,t=a;t._translate.call(e),e._options.rotated?e.width=e.width||1:e.height=e.height||1},_updateData:o._updateData,_getLabelPosition:o._getLabelPosition,_getLabelMinFormatObject:o._getLabelMinFormatObject,_updateLabelData:o._updateLabelData,_updateLabelOptions:o._updateLabelOptions,getCrosshairData:o.getCrosshairData,_createLabel:o._createLabel,_checkOverlay:o._checkOverlay,_checkLabelsOverlay:o._checkLabelsOverlay,_getOverlayCorrections:o._getOverlayCorrections,_drawLabel:o._drawLabel,_getLabelCoords:o._getLabelCoords,_getGraphicBBox:function(e){var t="top"===e,n=a._getGraphicBBox.call(this);return this._options.rotated?(n.x=t?n.x+n.width:n.x,n.width=0):(n.y=t?n.y:n.y+n.height,n.height=0),n},getLabel:o.getLabel,getLabels:o.getLabels,getBoundingRect:i,getMinValue:o.getMinValue,getMaxValue:o.getMaxValue})},function(e,t,n){var i=n(14).isNumeric,r=n(11).extend,a=n(528),o=n(531),s=i,l=r,c=Math,u=c.abs,d=c.min,h=c.max,p=c.round,f=2;e.exports=l({},o,{_getContinuousPoints:function(e,t){var n,i=this,r=i.x,a=i._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},o=i.width,s=i[e],l=i[t];return n=s===l?[].concat(a(r,i.highY)).concat(a(r,i.lowY)).concat(a(r,i.closeY)).concat(a(r-o/2,i.closeY)).concat(a(r+o/2,i.closeY)).concat(a(r,i.closeY)):[].concat(a(r,i.highY)).concat(a(r,l)).concat(a(r+o/2,l)).concat(a(r+o/2,s)).concat(a(r,s)).concat(a(r,i.lowY)).concat(a(r,s)).concat(a(r-o/2,s)).concat(a(r-o/2,l)).concat(a(r,l))},_getCategoryPoints:function(e){var t=this,n=t.x,i=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]};return[].concat(i(n,t.highY)).concat(i(n,t.lowY)).concat(i(n,e)).concat(i(n-t.width/2,e)).concat(i(n+t.width/2,e)).concat(i(n,e))},_getPoints:function(){var e,t,n,i=this,r=i.openValue,a=i.closeValue;return s(r)&&s(a)?(t=r>a?"closeY":"openY",n=r>a?"openY":"closeY",e=i._getContinuousPoints(t,n)):e=r===a?[i.x,i.highY,i.x,i.lowY]:i._getCategoryPoints(s(r)?i.openY:i.closeY),e},getColor:function(){var e=this;return e._isReduction?e._options.reduction.color:e._styles.normal.stroke||e.series.getColor()},_drawMarkerInGroup:function(e,t,n){var i=this;i.graphic=n.path(i._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":i}).sharp().append(e)},_fillStyle:function(){var e=this,t=e._options.styles;e._isReduction&&e._isPositive?e._styles=t.reductionPositive:e._isReduction?e._styles=t.reduction:e._isPositive?e._styles=t.positive:e._styles=t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(e){var t=this._getMinTrackerWidth(),n=10,i=e.width;i=i<t?t:i>n?n:i,this.width=i+i%2,this.xCorrection=e.offset},_getMarkerGroup:function(e){var t,n=this;return t=n._isReduction&&n._isPositive?e.reductionPositiveMarkersGroup:n._isReduction?e.reductionMarkersGroup:n._isPositive?e.defaultPositiveMarkersGroup:e.defaultMarkersGroup},_drawMarker:function(e,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),e)},_getSettingsForTracker:function(){var e,t,n,i,r=this,a=r.highY,o=r.lowY,s=r._options.rotated;return a===o&&(a=s?a+f:a-f,o=s?o-f:o+f),s?(e=d(o,a),t=r.x-r.width/2,n=u(o-a),i=r.width):(e=r.x-r.width/2,t=d(o,a),n=r.width,i=u(o-a)),{x:e,y:t,width:n,height:i}},_getGraphicBBox:function(){var e=this,t=e._options.rotated,n=e.x,i=e.width,r=e.lowY,a=e.highY;return{x:t?r:n-p(i/2),y:t?n-p(i/2):a,width:t?a-r:i,height:t?i:r-a}},getTooltipParams:function(e){var t=this;if(t.graphic){var n,i,r=d(t.lowY,t.highY),a=h(t.lowY,t.highY),o=t._getVisibleArea(),s="edge"===e,l=t._options.rotated,c=l?o.minX:o.minY,u=l?o.maxX:o.maxY,p=h(c,r),f=d(u,a),_=p+(f-p)/2;return l?(i=t.x,n=s?f:_):(n=t.x,i=s?p:_),{x:n,y:i,offset:0}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},_translate:function(){var e,t=this,n=t._options.rotated,i=t._getValTranslator();t.vx=t.vy=t.x=t._getArgTranslator().translate(t.argument)+(t.xCorrection||0),t.openY=null!==t.openValue?i.translate(t.openValue):null,t.highY=i.translate(t.highValue),t.lowY=i.translate(t.lowValue),t.closeY=null!==t.closeValue?i.translate(t.closeValue):null,e=d(t.lowY,t.highY)+u(t.lowY-t.highY)/2,t._calculateVisibility(n?e:t.x,n?t.x:e)},getCrosshairData:function(e,t){var n,i,r=this,a=r._options.rotated,o=a?e:t,s=r.argument,l="low";return u(r.lowY-o)<u(r.closeY-o)?n=r.lowY:(n=r.closeY,l="close"),u(n-o)>=u(r.openY-o)&&(n=r.openY,l="open"),u(n-o)>=u(r.highY-o)&&(n=r.highY,l="high"),i=a?{y:r.vy,x:n,xValue:r[l+"Value"],yValue:s}:{x:r.vx,y:n,xValue:s,yValue:r[l+"Value"]},i.axis=r.series.axis,i},_updateData:function(e){var t=this,n=t._label,i=this._options.reduction.color;t.value=t.initialValue=e.reductionValue,t.originalValue=e.value,t.lowValue=t.originalLowValue=e.lowValue,t.highValue=t.originalHighValue=e.highValue,t.openValue=t.originalOpenValue=e.openValue,t.closeValue=t.originalCloseValue=e.closeValue,t._isPositive=e.openValue<e.closeValue,t._isReduction=e.isReduction,t._isReduction&&n.setColor(i)},_updateMarker:function(e,t,n){var i=this,r=i.graphic;r.attr({points:i._getPoints()}).smartAttr(t).sharp(),n&&r.append(i._getMarkerGroup(n))},_getLabelFormatObject:function(){var e=this;return{openValue:e.openValue,highValue:e.highValue,lowValue:e.lowValue,closeValue:e.closeValue,reductionValue:e.initialValue,argument:e.initialArgument,value:e.initialValue,seriesName:e.series.name,originalOpenValue:e.originalOpenValue,originalCloseValue:e.originalCloseValue,originalLowValue:e.originalLowValue,originalHighValue:e.originalHighValue,originalArgument:e.originalArgument,point:e}},_getFormatObject:function(e){var t=this,n=e.formatValue(t.highValue),i=e.formatValue(t.openValue),r=e.formatValue(t.closeValue),o=e.formatValue(t.lowValue),s=a,c=s._getFormatObject.call(t,e);return l({},c,{valueText:"h: "+n+(""!==i?" o: "+i:"")+(""!==r?" c: "+r:"")+" l: "+o,highValueText:n,openValueText:i,closeValueText:r,lowValueText:o})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}})},function(e,t,n){var i=n(11).extend,r=n(14).isNumeric,a=n(536),o=i,s=r;e.exports=o({},a,{_getPoints:function(){var e,t=this,n=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},i=s(t.openY),r=s(t.closeY),a=t.x,o=t.width;return e=[].concat(n(a,t.highY)),i&&(e=e.concat(n(a,t.openY))),i&&(e=e.concat(n(a-o/2,t.openY))),i&&(e=e.concat(n(a,t.openY))),r&&(e=e.concat(n(a,t.closeY))),r&&(e=e.concat(n(a+o/2,t.closeY))),r&&(e=e.concat(n(a,t.closeY))),e=e.concat(n(a,t.lowY))},_drawMarkerInGroup:function(e,t,n){this.graphic=n.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(e)},_getMinTrackerWidth:function(){var e=2+this._styles.normal["stroke-width"];return e+e%2}})},function(e,t,n){var i=n(11).extend,r=i,a=n(14),o=n(528),s=n(531),l=n(533),c=a.isDefined,u=n(509),d=u.normalizeAngle,h=Math,p=h.max,f=90,_="canvas_position_end",g="canvas_position_default";t.polarSymbolPoint=r({},o,{_getLabelCoords:l._getLabelCoords,_moveLabelOnCanvas:s._moveLabelOnCanvas,_getLabelPosition:function(){return"outside"},_getCoords:function(e,t){var n=this.series.getValueAxis(),i=n.getAngles()[0],r=this._getArgTranslator().translate(e),a=this._getValTranslator().translate(t),o=u.convertPolarToXY(n.getCenter(),n.getAngles()[0],r,a);
return o.angle=r+i-90,o.radius=a,o},_translate:function(){var e=this,t=e.series.getValueAxis().getCenter(),n=e._getCoords(e.argument,e.value);e.vx=d(n.angle),e.vy=e.radiusOuter=e.radiusLabels=n.radius,e.radius=n.radius,e.middleAngle=-n.angle,e.angle=-n.angle,e.x=n.x,e.y=n.y,e.defaultX=e.centerX=t.x,e.defaultY=e.centerY=t.y,e._translateErrorBars(),e.inVisibleArea=!0},_translateErrorBars:function(){var e=this,t=e._options.errorBars,n=e._getValTranslator();t&&(c(e.lowError)&&(e._lowErrorCoord=e.centerY-n.translate(e.lowError)),c(e.highError)&&(e._highErrorCoord=e.centerY-n.translate(e.highError)),e._errorBarPos=e.centerX,e._baseErrorBarPos="stdDeviation"===t.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:e.centerY-e.radius)},_getTranslates:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var e=u.getCosAndSin(-this.angle),t=this._getValTranslator().translate(g),n=this.defaultX+t*e.cos,i=this.defaultY+t*e.sin;return{x:n,y:i}},_addLabelAlignmentAndOffset:function(e,t){return t},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=n._getGraphicBBox();return n._isPointInVisibleArea(i,r)&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_getErrorBarSettings:function(e,t){var n=o._getErrorBarSettings.call(this,e,t);return n.rotate=f-this.angle,n.rotateX=this.centerX,n.rotateY=this.centerY,n},getCoords:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}}}),t.polarBarPoint=r({},s,{_translateErrorBars:t.polarSymbolPoint._translateErrorBars,_getErrorBarSettings:t.polarSymbolPoint._getErrorBarSettings,_moveLabelOnCanvas:s._moveLabelOnCanvas,_getLabelCoords:l._getLabelCoords,_getLabelConnector:l._getLabelConnector,getTooltipParams:l.getTooltipParams,_getLabelPosition:l._getLabelPosition,_getCoords:t.polarSymbolPoint._getCoords,_translate:function(){var e=this,n=e._getValTranslator(),i=n.translate(_);e.radiusInner=n.translate(e.minValue),t.polarSymbolPoint._translate.call(e),null===e.radiusInner?e.radiusInner=e.radius=i:null===e.radius&&(this.radius=this.value>=0?i:0),e.radiusOuter=e.radiusLabels=p(e.radiusInner,e.radius),e.radiusInner=e.defaultRadius=h.min(e.radiusInner,e.radius),e.middleAngle=e.angle=-d(e.middleAngleCorrection-e.angle)},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(e,t,n){var i=this,r=i._getStyle(),a=i.getMarkerCoords(),o=a.innerRadius,s=a.outerRadius,l=i._getCoords(i.argument,g),c=a.x,u=a.y;n&&(o=0,s=0,c=l.x,u=l.y),i.graphic=e.arc(c,u,o,s,a.startAngle,a.endAngle).attr(r).data({"chart-data-point":i}).append(t)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=u.getCosAndSin(n.middleAngle),a=n.centerX+n.defaultRadius*r.cos,o=n.centerY-n.defaultRadius*r.sin;return a>i.minX&&a<i.maxX&&o>i.minY&&o<i.maxY&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_addLabelAlignmentAndOffset:function(e,t){return t},correctCoordinates:function(e){this.middleAngleCorrection=e.offset,this.interval=e.width},coordsIn:function(e,t){var n=u.convertXYToPolar(this.series.getValueAxis().getCenter(),e,t),i=this.getMarkerCoords(),r=i.startAngle<i.endAngle?-n.phi>=i.startAngle&&-n.phi<=i.endAngle:-n.phi<=i.startAngle&&-n.phi>=i.endAngle;return n.r>=i.innerRadius&&n.r<=i.outerRadius&&r}})},function(e,t,n){function i(e,t){var n=e.getOptions().label;e.areLabelsVisible()&&n&&n.visible&&"inside"!==n.position&&(t.min<0&&(t.minSpaceCorrection=!0),t.max>0&&(t.maxSpaceCorrection=!0))}function r(e,t){e.areLabelsVisible()&&e._options.label.visible&&"inside"!==e._options.label.position&&(t.minSpaceCorrection=t.maxSpaceCorrection=!0)}function a(e,t,n){e.min=e.min<t?e.min:t,e.max=e.max>n?e.max:n}function o(e,t){return e===v?function(e,t,n){t!==n&&e.categories.push(n),e.categories.push(t)}:t?function(e,n){var i=t(n,e.prevValue),r=e.interval;e.interval=(r<i?r:i)||r,e.prevValue=n,a(e,n,n)}:a}function s(e,t,n){var i={axisType:e,dataType:t};return e===v?i.categories=[]:(i.min=n,i.max=n),i}function l(e){e.categories&&(e.categories=g(e.categories))}function c(e,t,n){if(t){var i=e.value,r=t.value,a=e.argument,o=t.argument;return(n-a)*(r-i)/(o-a)+i}return e.value}function u(e){return m(e.max)||m(e.min)?m(e.max)?m(e.min)?function(t){return t>=e.min&&t<=e.max}:function(t){return t<=e.max}:function(t){return t>=e.min}:function(){return!0}}function d(e,t,n,i,r){var a=c(n,i,r);e(t,a,a)}function h(e){var t,n=o(e.valueAxisType),i=e.getArgumentAxis()&&e.getArgumentAxis().getViewport()||{};return t=u(i),function(e,r,a,o){var s=r.argument;return r.hasValue()?(t(s)?(e.startCalc||(e.startCalc=!0,d(n,e,r,o[a-1],i.min)),n(e,r.getMinValue(),r.getMaxValue())):m(i.max)&&s>i.max&&(e.startCalc||d(n,e,r,o[a-1],i.min),e.endCalc=!0,d(n,e,r,o[a-1],i.max)),e):e}}function p(e){var t=e.getArgumentAxis()&&e.getArgumentAxis().calcInterval;return t?t:function(e,t){return _(e-t)}}var f=Math,_=f.abs,g=n(509).unique,m=n(14).isDefined,v="discrete";e.exports={getRangeData:function(e){var t=e.getPoints(),n=p(e),i=o(e.argumentAxisType,t.length>1&&n),r=o(e.valueAxisType),a=h(e),c=t.reduce(function(e,t,n,o){var s=t.argument;return i(e.arg,s,s),t.hasValue()&&(r(e.val,t.getMinValue(),t.getMaxValue()),a(e.viewport,t,n,o)),e},{arg:s(e.argumentAxisType,e.argumentType,t.length?t[0].argument:void 0),val:s(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),viewport:s(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0)});return l(c.arg),l(c.val),c},getViewport:function(e){var t,n=e.getPoints(),i={};return e.valueAxisType!==v&&e.argumentAxisType!==v&&(t=h(e),i=s(e.valueAxisType,e.valueType,n.length?e.getValueRangeInitialValue():void 0),n.some(function(e,r){return t(i,e,r,n),i.endCalc})),i},addLabelPaddings:i,addRangeSeriesLabelPaddings:r}},function(e,t,n){function i(e){var t=0;return h(e,function(e,n){t+=n}),t}function r(e){return l(e,[B,L,M,D,P])!==-1}function a(e,t){return i(m(e,function(e){return(e-t)*(e-t)}))/e.length}var o=n(9),s=n(11).extend,l=n(26).inArray,c=n(539),u=n(14),d=n(509),h=o.each,p=s,f=u.noop,_=u.isDefined,g=u.isString,m=d.map,v=d.normalizeEnum,y=Math,b=y.floor,x=y.abs,S=y.sqrt,w=y.min,k=y.max,C=2,T=12,E=400,A="highError",I="lowError",O="original",M="variance",D="stddeviation",P="stderror",L="percent",B="fixed",V="undefined",R="discrete",F="logarithmic",z="datetime";t.chart={},t.polar={};var H={_defaultDuration:E,_defaultTrackerWidth:T,_applyStyle:f,_updateOptions:f,_parseStyle:f,_prepareSegment:f,_drawSegment:f,_generateDefaultSegments:f,_prepareSeriesToDrawing:function(){var e=this;e._deleteOldAnimationMethods(),e._disposePoints(e._oldPoints),e._oldPoints=null},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},updateTemplateFieldNames:function(){var e=this,t=e._options;t.valueField=e.getValueFields()[0]+e.name,t.tagField=e.getTagField()+e.name},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var r=t[e]=t[e]||this._renderer.g();n&&r.append(n),i&&r.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(r(v(e.type))||_(e.lowValueField)||_(e.highValueField))},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={"class":"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=p(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var r=e.border||{},a=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:r.color||n,"stroke-width":r.visible?r.width:0,r:a/2+(r.visible&&0!==a?~~(r.width/2)||0:0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,r=t._parsePointStyle(e,n,n);return r.visibility=e.visible?"visible":"hidden",{normal:r,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size),selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e){return _(e.argument)&&void 0!==e.value},getErrorBarRangeCorrector:function(){var e,t;return this.areErrorBarsVisible()&&(e=v(this._options.valueErrorBar.displayMode),t=function(t){var n=t.lowError,i=t.highError;switch(e){case"low":return[n];case"high":return[i];case"none":return[];default:return[n,i]}}),t},getValueRangeInitialValue:function(){},_getRangeData:function(){return c.getRangeData(this)},_processRange:function(e){c.addLabelPaddings(this,e.val)},_getPointData:function(e,t){var n={value:e[t.valueField||"val"],argument:e[t.argumentField||"arg"],tag:e[t.tagField||"tag"]};return this._fillErrorBars(e,n,t),n},_errorBarsEnabled:function(){return this.valueAxisType!==R&&this.valueAxisType!==F&&this.valueType!==z},_fillErrorBars:function(e,t,n){var i=n.valueErrorBar;this.areErrorBarsVisible()&&(t.lowError=e[i.lowValueField||I],t.highError=e[i.highValueField||A])},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_clearingAnimation:function(e){var t=this,n={opacity:.001},i={duration:t._defaultDuration,partitionDuration:.5};t._labelsGroup&&t._labelsGroup.animate(n,i,function(){t._markersGroup&&t._markersGroup.animate(n,i,e)})},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;h(e._drawnPoints||[],function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_getPointSize:function(){return this._options.point.visible?this._options.point.size:C},_calcMedianValue:function(e,t){var n,i=m(e,function(e){return _(e[t])?e[t]:null});return i.sort(function(e,t){return e-t}),n=i[b(i.length/2)],_(n)?n:null},_calcErrorBarValues:function(e){if(!e.length)return{};var t,n,i=e[0].lowError,r=e[0].highError,a=1,o=e.length;for(a;a<o;a++)t=e[a].lowError,n=e[a].highError,_(t)&&_(n)&&(i=w(t,i),r=k(n,r));return{low:i,high:r}},_fusionPoints:function(e,t,n){var i=this._calcErrorBarValues(e);return{value:this._calcMedianValue(e,"value"),argument:t,tag:null,index:n,seriesName:this.name,lowError:i.low,highError:i.high}},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,r=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,g(e)&&r.push(e),g(t)&&r.push(t)),r},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,r,o,s,l=this,c=l._options,u=c.valueErrorBar,d=v(u.type),p=parseFloat(u.value),f=l.getValueFields()[0],g=u.lowValueField||I,y=u.highValueField||A,b=function(e,n){t=n[f],n[g]=t-p,n[y]=t+p};switch(d){case B:s=b;break;case L:s=function(e,n){t=n[f];var i=t*p/100;n[g]=t-i,n[y]=t+i};break;case V:s=function(e,t){t[g]=t[O+g],t[y]=t[O+y]};break;default:switch(n=m(e,function(e){return _(e[f])?e[f]:null}),r=n.length,p=p||1,d){case M:p=a(n,i(n)/r)*p,s=b;break;case D:o=i(n)/r,p=S(a(n,o))*p,s=function(e,t){t[g]=o-p,t[y]=o+p};break;case P:p=S(a(n,i(n)/r)/r)*p,s=b}}s&&h(e,s)}},_beginUpdateData:function(e){this._calculateErrorBars(e)}};t.chart=p({},H,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],r=n._options.rotated,a=[];n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray","class":"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),h(i,function(i,r){e[i]?n._updateTrackerElement(r,e[i]):e[i]=n._drawTrackerElement(r).data({"chart-data-series":n}).append(t)})),n._trackersTranslator=a,h(n.getVisiblePoints(),function(e,t){var n=parseInt(r?t.vy:t.vx);a[n]?Array.isArray(a[n])?a[n].push(t):a[n]=[a[n],t]:a[n]=t}))},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,r=i,a=this._trackersTranslator,o=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&a){o=a[i];do o=a[r]||a[i],i--,r++;while((i>=0||r<a.length)&&!o);Array.isArray(o)&&(n=x(o[0][l]-s),h(o,function(e,t){var i=x(t[l]-s);n>=i&&(n=i,o=t)}))}return o},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getTranslator().getCanvasVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getTranslator().getCanvasVisibleArea();e._visibleArea={minX:n.min,maxX:n.max,minY:i.min,maxY:i.max}}}),t.polar=p({},H,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(h(n,function(t,n){if(n)return e=t,!1}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=d.convertXYToPolar(this.getValueAxis().getCenter(),e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this,t=e.getValueAxis().getCanvas();e._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}}})},function(e,t,n){function i(e,t,n,i){var r=c.clone(e);return r.x=t,r.y=n,r.angle=i,r}function r(e,t,n,r,a){var o=e.angle+a,s=d.getCosAndSin(o),l=n.x+(e.radius+r*a)*s.cos,c=n.y-(e.radius+r*a)*s.sin;return i(t,l,c,o)}var a=n(9),o=n(540),s=o.chart,l=o.polar,c=n(27),u=n(11).extend,d=n(509),h=d.normalizeAngle,p="discrete",f=d.map,_=u,g=a.each;t.chart={},t.polar={};var m={_applyGroupSettings:function(e,t,n){var i=this;t=_(t,e),i._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{"class":"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{"class":"dxc-borders"},t._bordersGroup),s._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),s._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:f(e.line||[],function(e){return e.getDefaultCoords()})}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),g(t._graphics||[],function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()})},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_generateDefaultSegments:function(){var e=this;return f(e._segments||[],function(t){return e._getDefaultSegment(t)})},_updateElement:function(e,t,n,i,r){var a={points:t.line},o=e.line;n?o.animate(a,i,r):o.attr(a)},_clearingAnimation:function(e){var t=this,n=t._graphics.length-1,i={opacity:.001},r={duration:t._defaultDuration,partitionDuration:.5};t._labelsGroup&&t._labelsGroup.animate(i,r,function(){t._markersGroup&&t._markersGroup.animate(i,r,function(){g(t._defaultSegments||[],function(i,r){t._oldUpdateElement(t._graphics[i],r,!0,{partitionDuration:.5},i===n?e:void 0)})})})},_animateComplete:function(){var e=this;s._animateComplete.call(this),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;g(e._graphics||[],function(n,i){e._updateElement(i,e._segments[n],!0,{complete:n===t?function(){e._animateComplete()}:void 0})})},_drawPoint:function(e){s._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp()},_drawSegment:function(e,t,n,i){var r=this,a=r._prepareSegment(e,r._options.rotated,i);r._segments.push(a),r._graphics[n]?t||r._updateElement(r._graphics[n],a):r._graphics[n]=r._drawElement(t?r._getDefaultSegment(a):a,r._elementsGroup)},_getTrackerSettings:function(){var e=this,t=e._defaultTrackerWidth,n=e._styles.normal.elements["stroke-width"];return{"stroke-width":n>t?n:t,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)}};t.chart.line=_({},s,m),t.chart.stepline=_({},t.chart.line,{_calculateStepLinePoints:function(e){var t=[];return g(e,function(e,n){var i,r;return e?(i=t[t.length-1].y,i!==n.y&&(r=c.clone(n),r.y=i,t.push(r)),void t.push(n)):void t.push(n)}),t},_prepareSegment:function(e){return t.chart.line._prepareSegment(this._calculateStepLinePoints(e))}}),t.chart.spline=_({},t.chart.line,{_calculateBezierPoints:function(e,t){var n=[],r=e,a=function(e,t,n){return e>t&&n>e||e<t&&n<e?e:n};return 1!==r.length?r.forEach(function(e,o){var s,l,c,u,d,h,p,f,_,g,m,v,y,b,x,S,w,k,C,T=r[o-1],E=r[o+1],A=.5;if(!o||o===r.length-1)return void n.push(e,e);if(d=e.x,h=e.y,p=T.x,f=E.x,_=T.y,g=E.y,m=!!(!t&&(h<=T.y&&h<=E.y||h>=T.y&&h>=E.y)||t&&(d<=T.x&&d<=E.x||d>=T.x&&d>=E.x)))t?(c=s=d,u=(h+E.y)/2,l=(h+T.y)/2):(u=l=h,c=(d+E.x)/2,s=(d+T.x)/2);else{if(b=g-_,x=p-f,S=_*f-p*g,t){if(!b)return void n.push(e,e,e);k=h,w=-1*(x*k+S)/b,C=w-d,p-=C,f-=C}else{if(!x)return void n.push(e,e,e);w=d,k=-1*(b*w+S)/x,C=k-h,_-=C,g-=C}c=(d+A*f)/(1+A),u=(h+A*g)/(1+A),s=(d+A*p)/(1+A),l=(h+A*_)/(1+A)}t?(s=a(T.x,d,s),c=a(E.x,d,c)):(l=a(T.y,h,l),u=a(E.y,h,u)),v=i(e,s,l),y=i(e,c,u),n.push(v,e,y)}):n.push(r[0]),n},_prepareSegment:function(e,n){return t.chart.line._prepareSegment(this._calculateBezierPoints(e,n))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()}}),t.polar.line=_({},l,m,{_prepareSegment:function(e,n,i){var r,a=[],o=this.getValueAxis().getCenter();if(i&&this._closeSegment(e),this.argumentAxisType===p||this.valueAxisType===p)return t.chart.line._prepareSegment.apply(this,arguments);for(r=1;r<e.length;r++)a=a.concat(this._getTangentPoints(e[r],e[r-1],o));return a.length||(a=e),{line:a}},_getRemainingAngle:function(e){var t=h(e);return e>=0?360-t:-t},_closeSegment:function(e){var t,n;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),e[e.length-1].angle!==t.angle&&(h(Math.round(e[e.length-1].angle))===h(Math.round(t.angle))?t.angle=e[e.length-1].angle:(n=e[e.length-1].angle-t.angle,t.angle=e[e.length-1].angle+this._getRemainingAngle(n)),e.push(t))},_getTangentPoints:function(e,t,n){var i,a=[],o=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/o;if(0===o)a=[t,e];else if(o>0)for(i=o;i>=0;i--)a.push(r(e,t,n,s,i));else for(i=0;i>=o;i--)a.push(r(e,t,n,s,o-i));return a}})},function(e,t,n){var i=n(27),r=n(11).extend,a=n(540).chart,o=n(541),s=o.chart.line,l=o.polar.line,c=n(509).map,u=r;t.chart={},t.polar={};var d={_createBorderElement:s._createMainElement,_createLegendState:function(e,t){var n=a._createLegendState.call(this,e,t);return n.opacity=e.opacity,n},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&this.showZero!==!1?0:a.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=s._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i,r){var a={points:t.line},o={points:t.area},s=e.line;n?(s&&s.animate(a,i),e.area.animate(o,i,r)):(s&&s.attr(a),e.area.attr(o))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()})},_parseStyle:function(e,t,n){var i=e.border||{},r=s._parseLineOptions(i,n);return r.stroke=i.visible&&r["stroke-width"]?r.stroke:"none",r["stroke-width"]=r["stroke-width"]||1,{border:r,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}};t.chart.area=u({},s,d,{_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t);return{line:n,area:c(n,function(e){return e.getCoords()}).concat(c(n.slice().reverse(),function(e){return e.getCoords(!0)})),singlePointSegment:n!==e}},_processSinglePointsAreaSegment:function(e,t){if(1===e.length){var n=e[0],r=i.clone(n);return r[t?"y":"x"]+=1,r.argument=null,[n,r]}return e}}),t.polar.area=u({},l,d,{_prepareSegment:function(e,n,i){i&&l._closeSegment.call(this,e);var r=t.chart.area._prepareSegment.call(this,e);return r},_processSinglePointsAreaSegment:function(e){return o.polar.line._prepareSegment.call(this,e).line}}),t.chart.steparea=u({},t.chart.area,{_prepareSegment:function(e,n){return e=t.chart.area._processSinglePointsAreaSegment(e,n),t.chart.area._prepareSegment.call(this,o.chart.stepline._calculateStepLinePoints(e))}}),t.chart.splinearea=u({},t.chart.area,{_areaPointsToSplineAreaPoints:function(e){var t=e[e.length/2-1],n=e[e.length/2];e.splice(e.length/2,0,{x:t.x,y:t.y},{x:n.x,y:n.y})},_prepareSegment:function(e,n){var i=t.chart.area,r=i._processSinglePointsAreaSegment(e,n),a=i._prepareSegment.call(this,o.chart.spline._calculateBezierPoints(r,n));return this._areaPointsToSplineAreaPoints(a.area),a.singlePointSegment=r!==e,a},_getDefaultSegment:function(e){var n=t.chart.area._getDefaultSegment(e);return this._areaPointsToSplineAreaPoints(n.area),n},_createMainElement:function(e,t){return this._renderer.path(e,"bezierarea").attr(t)},_createBorderElement:o.chart.spline._createMainElement})},function(e,t,n){var i=n(9),r=n(11).extend,a=n(540),o=n(542).chart.area,s=a.chart,l=a.polar,c=r,u=i.each,d=3;t.chart={},t.polar={};var h={_updateOptions:function(e){this._stackName="axis_"+(e.axis||"default")+"_stack_"+(e.stack||"default")},_parsePointStyle:function(e,t,n){var i=e.color||t,r=s._parsePointStyle.call(this,e,i,n);return r.fill=i,r.hatching=e.hatching,r.dashStyle=e.border&&e.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(e){e["clip-path"]=null},_clearingAnimation:function(e){var t=this,n=t._oldGetAffineCoordOptions()||t._getAffineCoordOptions();t._labelsGroup&&t._labelsGroup.animate({opacity:.001},{duration:t._defaultDuration,partitionDuration:.5},function(){t._markersGroup.animate(n,{partitionDuration:.5},function(){t._markersGroup.attr({scaleX:null,scaleY:null,translateX:0,translateY:0}),e()})})},_setGroupsSettings:function(e,t){var n=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;i.each(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;u(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},_getPointSize:function(){return d},getValueRangeInitialValue:o.getValueRangeInitialValue};t.chart.bar=c({},s,h,{_getAffineCoordOptions:function(){var e=this._options.rotated,t=e?"X":"Y",n={scaleX:e?.001:1,scaleY:e?1:.001};return n["translate"+t]=this.getValueAxis().getTranslator().translate("canvas_position_default"),n},_processRange:function(e){o._processRange.apply(this,arguments),e.arg.stick=!1},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)}}),t.polar.bar=c({},l,h,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:s._setGroupsSettings,_drawPoint:function(e,t,n){s._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=h._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:s._createGroups,_setMarkerGroupSettings:function(){var e,t=this,n=t._createPointStyles(t._getMarkerGroupOptions()).normal;n.class="dxc-markers",t._applyMarkerClipRect(n),e=c({},n),delete e.opacity,t._markersGroup.attr(e)},_createLegendState:o._createLegendState})},function(e,t,n){var i=n(14),r=n(11).extend,a=r,o=i.isDefined,s=n(509).map,l=i.noop,c=n(539),u=n(540).chart,d=n(543).chart.bar,h=n(542).chart.area;t.chart={};var p={_beginUpdateData:l,areErrorBarsVisible:l,_createErrorBarGroup:l,_checkData:function(e){return o(e.argument)&&void 0!==e.value&&void 0!==e.minValue},updateTemplateFieldNames:function(){var e=this,t=e._options,n=e.getValueFields(),i=e.name;t.rangeValue1Field=n[0]+i,t.rangeValue2Field=n[1]+i,t.tagField=e.getTagField()+i},getValueRangeInitialValue:u.getValueRangeInitialValue,_getPointData:function(e,t){return{tag:e[t.tagField||"tag"],minValue:e[t.rangeValue1Field||"val1"],value:e[t.rangeValue2Field||"val2"],argument:e[t.argumentField||"arg"]}},_fusionPoints:function(e,t){var n=u._calcMedianValue,i=n.call(this,e,"value"),r=n.call(this,e,"minValue");return null!==i&&null!==r||(i=r=null),{minValue:r,value:i,argument:t,tag:null}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},_processRange:function(e){c.addRangeSeriesLabelPaddings(this,e.val)}};t.chart.rangebar=a({},d,p),t.chart.rangearea=a({},h,{_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=s(n,function(e){return e.getCoords(!0)});return{line:n,bottomLine:i,area:s(n,function(e){return e.getCoords()}).concat(i.slice().reverse()),singlePointSegment:n!==e}},_getDefaultSegment:function(e){var t=h._getDefaultSegment.call(this,e);return t.bottomLine=t.line,t},_removeElement:function(e){h._removeElement.call(this,e),e.bottomLine&&e.bottomLine.remove()},_drawElement:function(e,t){var n=this,i=h._drawElement.call(n,e,t);return i.bottomLine=n._bordersGroup&&n._createBorderElement(e.bottomLine,{"stroke-width":n._styles.normal.border["stroke-width"]}).append(n._bordersGroup),i},_applyStyle:function(e){var t=this,n=t._elementsGroup,i=t._bordersGroup;n&&n.smartAttr(e.elements),i&&i.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}),t.bottomLine&&t.bottomLine.attr({"stroke-width":e.border["stroke-width"]})})},_updateElement:function(e,t,n,i,r){h._updateElement.call(this,e,t,n,i,r);var a={points:t.bottomLine},o=e.bottomLine;o&&(n?o.animate(a,i):o.attr(a))}},p)},function(e,t,n){var i=n(9),r=n(541).chart.line,a=n(540).chart,o=n(542).chart.area,s=n(543),l=s.chart.bar,c=s.polar.bar,u=n(14),d=n(11).extend,h=u.isDefined,p=d,f=i.each,_=u.noop;t.chart={},t.chart.bubble=p({},a,{_fillErrorBars:_,getErrorBarRangeCorrector:_,_calculateErrorBars:_,_getMainColor:l._getMainColor,_createPointStyles:l._createPointStyles,_updatePointsVisibility:l._updatePointsVisibility,_getOptionsForPoint:l._getOptionsForPoint,_applyMarkerClipRect:r._applyElementsClipRect,_parsePointStyle:c._parsePointStyle,_createLegendState:o._createLegendState,_setMarkerGroupSettings:c._setMarkerGroupSettings,areErrorBarsVisible:_,_createErrorBarGroup:_,_checkData:function(e){return h(e.argument)&&h(e.size)&&void 0!==e.value},_getPointData:function(e,t){var n=a._getPointData.call(this,e,t);return n.size=e[t.sizeField||"size"],n},_fusionPoints:function(e,t){var n=a._calcMedianValue;return{size:n.call(this,e,"size"),value:n.call(this,e,"value"),argument:t,tag:null}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},updateTemplateFieldNames:function(){var e=this,t=e._options,n=e.name;t.valueField=e.getValueFields()[0]+n,t.sizeField=e.getSizeField()+n,t.tagField=e.getTagField()+n},_clearingAnimation:function(e){var t=this,n=.5,i=t._drawnPoints.length-1,r=t._labelsGroup;r&&r.animate({opacity:.001},{duration:t._defaultDuration,partitionDuration:n},function(){f(t._drawnPoints||[],function(t,r){r.animate(t===i?e:void 0,{r:0},n)})})},_animate:function(){var e=this,t=e._drawnPoints.length-1,n=e._labelsGroup,i=function(){n&&n.animate({opacity:1},{duration:e._defaultDuration})};f(e._drawnPoints||[],function(e,n){n.animate(e===t?i:void 0,{r:n.bubbleSize,translateX:n.x,translateY:n.y})})}})},function(e,t,n){var i=n(9),r=n(14).noop,a=n(540),o=n(509),s=n(11).extend,l=a.chart,c=n(543).chart.bar,u=s,d=i.each,h=r,p=o.map,f=isFinite,_=Math.max,g=.7,m="inside";t.pie=u({},c,{_setGroupsSettings:l._setGroupsSettings,_createErrorBarGroup:h,_drawPoint:function(e){var t=e.point,n=this._legendCallback;l._drawPoint.call(this,e),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&n()},adjustLabels:function(){var e,t=this,n=t._points||[],i=[];d(n,function(e,t){t._label.isVisible()&&(t.setLabelTrackerData(),t._label.getLayoutOptions().position!==m&&(t.setLabelEllipsis(),i.push(t._label.getBoundingRect().width)))}),i.length&&(e=_.apply(null,i)),d(n,function(t,n){n._label.isVisible()&&n._label.getLayoutOptions().position!==m&&(n.setMaxLabelLength(e),n.updateLabelCoord())})},_processRange:h,_applyElementsClipRect:h,getColor:h,areErrorBarsVisible:h,_prepareSeriesToDrawing:h,_endUpdateData:function(){this._arrayArguments={},l._prepareSeriesToDrawing.call(this)},drawLabelsWOPoints:function(){
var e=this;return e._options.label.position!==m&&(e._labelsGroup.append(e._extGroups.labelsGroup),(e._points||[]).forEach(function(e){e.drawLabel()}),!0)},_getCreatingPointOptions:function(e){return this._getPointOptions(e)},_updateOptions:function(e){this.labelSpace=0,this.innerRadius="pie"===this.type?0:e.innerRadius},_checkData:function(e){var t=c._checkData(e);return this._options.paintNullPoints?t:t&&null!==e.value},_createGroups:l._createGroups,_setMarkerGroupSettings:function(){var e=this;e._markersGroup.attr({"class":"dxc-markers"})},_getMainColor:function(e){var t=this,n=t._arrayArguments||{},i=e.argument;return n[i]=++n[i]||0,t._arrayArguments=n,t._options.mainSeriesColor(i,n[i])},_getPointOptions:function(e){return this._parsePointOptions(this._preparePointOptions(),this._options.label,e)},_getRangeData:function(){return this._rangeData},_getArrangeTotal:function(e){var t=0;return d(e,function(e,n){n.isVisible()&&(t+=n.initialValue)}),t},_createPointStyles:function(e,t){var n=this,i=e.color||n._getMainColor(t);return{normal:n._parsePointStyle(e,i,i),hover:n._parsePointStyle(e.hoverStyle,i,i),selection:n._parsePointStyle(e.selectionStyle,i,i),legendStyles:{normal:n._createLegendState(e,i),hover:n._createLegendState(e.hoverStyle,i),selection:n._createLegendState(e.selectionStyle,i)}}},_getArrangeMinShownValue:function(e,t){var n=this._options.minSegmentSize,i=0,r=0;return t=t||e.length,d(e,function(e,a){a.isVisible()&&(a.initialValue<n*t/360?i+=n:r+=a.initialValue)}),i<360?n*r/(360-i):0},_applyArrangeCorrection:function(e,t,n){var i,r=this._options,a="anticlockwise"!==r.segmentsDirection,s=f(r.startAngle)?o.normalizeAngle(r.startAngle):0,l=r.minSegmentSize,c=0,u=0;0===n&&(n=e.filter(function(e){return e.isVisible()}).length,u=1),d(a?e:e.concat([]).reverse(),function(e,r){var a,o=r.isVisible()?u||r.initialValue:0;l&&r.isVisible()&&o<t&&(a=t),i=o/n,r.correctValue(c,i,u+(a||0)),r.shiftedAngle=s,c+=a||o}),this._rangeData={val:{min:0,max:c}}},_removePoint:function(e){var t=this.getPointsByArg(e.argument);t.splice(t.indexOf(e),1),e.dispose()},arrangePoints:function(){for(var e,t,n,i=this,r=i._originalPoints||[],a=i._options.minSegmentSize,o=!0,s=0,l=r.length;s<l&&o;)o=r[s].value<=0,s++;n=i._originalPoints=i._points=p(r,function(e){return null===e.value||!o&&e.value<0?(i._removePoint(e),null):e}),t=i._getArrangeTotal(n),a&&(e=this._getArrangeMinShownValue(n,t)),i._applyArrangeCorrection(n,e,t)},correctPosition:function(e,t){d(this._points,function(t,n){n.correctPosition(e)}),this.setVisibleArea(t)},correctRadius:function(e){d(this._points,function(t,n){n.correctRadius(e)})},correctLabelRadius:function(e){d(this._points,function(t,n){n.correctLabelRadius(e)})},setVisibleArea:function(e){this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}},_applyVisibleArea:h,_animate:function(e){var t,n=this,i=n._points,r=i&&i.length,a=function(){n._animateComplete()};t=e?function(e,t){e.animate(t===r-1?a:void 0,g,(1-g)*t/(r-1))}:function(e,t){e.animate(t===r-1?a:void 0)},i.forEach(t)},getVisiblePoints:function(){return p(this._points,function(e){return e.isVisible()?e:null})},getPointsByKeys:function(e,t){var n=this.getPointsByArg(e);return n[t]&&[n[t]]||n}}),t.doughnut=t.donut=t.pie},function(e,t,n){var i=n(9),r=n(540).chart,a=n(543).chart.bar,o=n(539),s=n(14),l=n(11).extend,c=s.isDefined,u=n(509).normalizeEnum,d=l,h=i.each,p=s.noop,f=10;t.stock=d({},r,{_animate:p,_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:a._updatePointsVisibility,_getOptionsForPoint:a._getOptionsForPoint,getErrorBarRangeCorrector:p,_createErrorBarGroup:p,areErrorBarsVisible:p,_createGroups:r._createGroups,_setMarkerGroupSettings:function(){var e=this,t=e._markersGroup,n=e._createPointStyles(e._getMarkerGroupOptions()),i=d(n.normal,{"class":"default-markers"}),r=d(n.positive.normal,{"class":"default-positive-markers"}),a=d(n.reduction.normal,{"class":"reduction-markers"}),o=d(n.reductionPositive.normal,{"class":"reduction-positive-markers"}),s={"class":"dxc-markers"};e._applyMarkerClipRect(s),t.attr(s),e._createGroup("defaultMarkersGroup",t,t,i),e._createGroup("reductionMarkersGroup",t,t,a),e._createGroup("defaultPositiveMarkersGroup",t,t,r),e._createGroup("reductionPositiveMarkersGroup",t,t,o)},_setGroupsSettings:function(){r._setGroupsSettings.call(this,!1)},_clearingAnimation:function(e){e()},_getCreatingPointOptions:function(){var e,t=this,n=t._predefinedPointOptions;return n||(e=this._getPointOptions(),t._predefinedPointOptions=n=d(!0,{styles:{}},e),n.styles.normal=n.styles.positive.normal=n.styles.reduction.normal=n.styles.reductionPositive.normal={"stroke-width":e.styles&&e.styles.normal&&e.styles.normal["stroke-width"]}),n},_checkData:function(e){return c(e.argument)&&void 0!==e.highValue&&void 0!==e.lowValue&&void 0!==e.openValue&&void 0!==e.closeValue},_getPointData:function(e,t){var n,i,r=this,a=t.openValueField||"open",o=t.closeValueField||"close",s=t.highValueField||"high",l=t.lowValueField||"low";switch(r.level=t.reduction.level,u(r.level)){case"open":n=a;break;case"high":n=s;break;case"low":n=l;break;default:n=o,r.level="close"}return i=e[n],{argument:e[t.argumentField||"date"],highValue:e[s],lowValue:e[l],closeValue:e[o],openValue:e[a],reductionValue:i,tag:e[t.tagField||"tag"],isReduction:r._checkReduction(i)}},_parsePointStyle:function(e,t,n){return{stroke:e.color||t,"stroke-width":e.width,fill:e.color||n}},updateTemplateFieldNames:function(){var e=this,t=e._options,n=e.getValueFields(),i=e.name;t.openValueField=n[0]+i,t.highValueField=n[1]+i,t.lowValueField=n[2]+i,t.closeValueField=n[3]+i,t.tagField=e.getTagField()+i},_getDefaultStyle:function(e){var t=this,n=e.color||t._options.mainSeriesColor;return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_getReductionStyle:function(e){var t=this,n=e.reduction.color;return{normal:t._parsePointStyle({color:n,width:e.width,hatching:e.hatching},n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_createPointStyles:function(e){var t,n,i,r=this,a=r._options.innerColor,o=r._getDefaultStyle(e);return t=d(!0,{},o),n=r._getReductionStyle(e),i=d(!0,{},n),t.normal.fill=t.hover.fill=t.selection.fill=a,i.normal.fill=i.hover.fill=i.selection.fill=a,o.positive=t,o.reduction=n,o.reductionPositive=i,o},_endUpdateData:function(){delete this.prevLevelValue,delete this._predefinedPointOptions},_checkReduction:function(e){var t=this,n=!1;return null!==e&&(c(t.prevLevelValue)&&(n=e<t.prevLevelValue),t.prevLevelValue=e),n},_fusionPoints:function(e,t){var n,i,r,a={},o=-(1/0),s=+(1/0);if(!e.length)return{};switch(h(e,function(e,t){t.hasValue()&&(o=Math.max(o,t.highValue),s=Math.min(s,t.lowValue),i=void 0!==i?i:t.openValue,r=void 0!==t.closeValue?t.closeValue:r)}),a.argument=t,a.openValue=i,a.closeValue=r,a.highValue=o,a.lowValue=s,a.tag=null,u(this.level)){case"open":n=i;break;case"high":n=o;break;case"low":n=s;break;default:n=r}return a.reductionValue=n,a.isReduction=this._checkReduction(n),a},_getPointSize:function(){return f},getValueFields:function(){var e=this._options;return[e.openValueField||"open",e.highValueField||"high",e.lowValueField||"low",e.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_beginUpdateData:p,_processRange:function(e){o.addRangeSeriesLabelPaddings(this,e.val)}}),t.candlestick=d({},t.stock,{_beginUpdateData:a._beginUpdateData,_parsePointStyle:function(e,n,i){var r=e.color||i,a=t.stock._parsePointStyle.call(this,e,n,r);return a.fill=r,a.hatching=e.hatching,a}})},function(e,t,n){function i(e,t,n,i){return e=g.clone(e),e.value=t,e.minValue=n,e.translate(),e.argument=e.argument+i,e}function r(e){for(var t,n,r=0,a=[],o=e.length;r<o;)t=e[r],n=[t],t.leftHole&&(n=[i(t,t.leftHole,t.minLeftHole,"left"),t]),t.rightHole&&n.push(i(t,t.rightHole,t.minRightHole,"right")),a.push(n),r++;return[].concat.apply([],a)}function a(e,t){for(var n;!n&&e;)n=e._segmentByArg&&e._segmentByArg[t],e=e._prevSeries;return n}var o=n(9),s=n(14).noop,l=n(11).extend,c=n(542).chart,u=c.area,d=n(543),h=d.chart.bar,p=n(541).chart,f=l,_=n(509),g=n(27),m=s,v={getErrorBarRangeCorrector:m,_fillErrorBars:m,_calculateErrorBars:m},y=f({},v,{isFullStackedSeries:function(){return!0}});t.chart={},t.polar={},t.chart.stackedline=f({},p.line,v,{}),t.chart.stackedspline=f({},p.spline,v,{});var b=t.chart.fullstackedline=f({},p.line,y,{_processRange:function(e){p.line._processRange.apply(this,arguments),e.val.percentStick=!0},getValueRangeInitialValue:c.area.getValueRangeInitialValue});t.chart.fullstackedspline=f({},p.spline,y,{_processRange:function(e){p.line._processRange.apply(this,arguments),e.val.percentStick=!0},getValueRangeInitialValue:c.area.getValueRangeInitialValue}),t.chart.stackedbar=f({},h,v,{}),t.chart.fullstackedbar=f({},h,y,{_processRange:function(e){h._processRange.apply(this,arguments),e.val.percentStick=!0}}),t.chart.stackedarea=f({},u,v,{_prepareSegment:function(e,t){return u._prepareSegment.call(this,r(e,this._prevSeries),t)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),t.chart.stackedsplinearea=f({},c.splinearea,v,{_prepareSegment:function(e,t){var n,i=this;if(e=r(e,i._prevSeries),this._prevSeries&&1!==e.length){for(var s=p.spline._calculateBezierPoints(e,t),l=_.map(e,function(e){var t=e.getCoords(!0);return t.argument=e.argument,t}),u=[],d={},h=0,f=i._prevSeries._segments.length;h<f;)u=u.concat(i._prevSeries._segments[h].line),h++;o.each(u,function(e,t){if(null!==t.argument){var n=t.argument.valueOf();d[n]?d[n].push(t):d[n]=[t]}}),i._prevSeries._segmentByArg=d,l=p.spline._calculateBezierPoints(l,t),o.each(l,function(e,t){var n,r=t.argument.valueOf();e%3===0&&(n=d[r]||a(i._prevSeries,r),n&&(l[e-1]&&n[0]&&(l[e-1]=n[0]),l[e+1]&&(l[e+1]=n[2]||t)))}),n={line:s,area:s.concat(l.reverse())},i._areaPointsToSplineAreaPoints(n.area)}else n=c.splinearea._prepareSegment.call(this,e,t);return n},_appendInGroup:t.chart.stackedarea._appendInGroup}),t.chart.fullstackedarea=f({},u,y,{_prepareSegment:t.chart.stackedarea._prepareSegment,_appendInGroup:t.chart.stackedarea._appendInGroup,_processRange:b._processRange}),t.chart.fullstackedsplinearea=f({},c.splinearea,y,{_prepareSegment:t.chart.stackedsplinearea._prepareSegment,_appendInGroup:t.chart.stackedarea._appendInGroup,_processRange:b._processRange}),t.polar.stackedbar=f({},d.polar.bar,v,{})},function(e,t,n){var i=n(14),r=n(12),a=n(11).extend,o=n(550).BaseThemeManager,s=i.isString,l=i.isDefined,c=n(509).normalizeEnum,u="font",d="commonAxisSettings",h=["legend."+u,"title."+u,"title.subtitle."+u,"tooltip."+u,"loadingIndicator."+u,"export."+u,"commonSeriesSettings.label."+u],p=h.concat([d+".label."+u,d+".title."+u]),f=p.concat(["crosshair.label."+u]),_={pie:h,chart:f,polar:p},g=o.inherit(function(){var e=function(e,t){var n=this;n.callBase.apply(n,arguments),e=e||{},n._userOptions=e,n._mergeAxisTitleOptions=[],n._multiPieColors={},n._themeSection=t,n._fontFields=_[t],n._callback=i.noop},t=function(){var e=this;return e.palette&&e.palette.dispose(),e.palette=e._userOptions=e._mergedSettings=e._multiPieColors=null,e.callBase.apply(e,arguments)},n=function(){this.palette.reset(),this._multiPieColors={}},o=function(e){this.palette=this.createPalette(e,{useHighlight:!0})},u=function(e){return s(e)?{text:e}:e},d=function(e){if(e)return e=a(!0,{},e),e.title=u(e.title),("logarithmic"===e.type&&e.logarithmBase<=0||e.logarithmBase&&!i.isNumeric(e.logarithmBase))&&(e.logarithmBase=void 0,e.logarithmBaseError=!0),e.label&&(e.label.alignment&&(e.label.userAlignment=!0),s(e.label.overlappingBehavior)&&(e.label.overlappingBehavior={mode:e.label.overlappingBehavior}),e.label.overlappingBehavior&&e.label.overlappingBehavior.mode||(e.label.overlappingBehavior=e.label.overlappingBehavior||{})),e},h=function(e,t,n){var i=this._theme,r=n^"valueAxis"===e?"verticalAxis":"horizontalAxis",o=d(this._userOptions.commonAxisSettings,e);return a(!0,{},i.commonAxisSettings,i[r],i[e],o,d(t,e))},p=function(e,t){t=t||this._userOptions[e];var n=this._theme[e],i=this._mergedSettings[e];return i?i:(i=r.isPlainObject(n)&&r.isPlainObject(t)?a(!0,{},n,t):l(t)?t:n,this._mergedSettings[e]=i,i)},f={base:p,argumentAxis:h,valueAxisRangeSelector:function(){return p.call(this,"valueAxis")},valueAxis:h,series:function(e,t){var n,i,r,o=this,s=o._theme,l=o._userOptions.commonSeriesSettings||{},u=s.commonSeriesSettings,d=o._themeSection.split(".").slice(-1)[0],h=c(t.type||l.type||u.type||"pie"===d&&s.type),p=o.palette,f=~h.indexOf("bar"),_=~h.indexOf("line"),g=~h.indexOf("area"),m="bubble"===h,v=o.getOptions("resolveLabelsOverlapping"),y=o.getOptions("containerBackgroundColor");return(f||m)&&(t=a(!0,{},l,l[h],t),r=t.visible,l={type:{}},a(!0,t,t.point),t.visible=r),n=a(!0,{},u,u[h],l,l[h],t),n.type=h,n.widgetType=d,n.containerBackgroundColor=y,i="pie"!==d?n.color||p.getNextColor():function(e,t){var n=e+t;return o._multiPieColors[n]||(o._multiPieColors[n]=p.getNextColor()),o._multiPieColors[n]},n.mainSeriesColor=i,n.resolveLabelsOverlapping=v,n.label&&(_||g&&"rangearea"!==h||"scatter"===h)&&(n.label.position="outside"),n},animation:function(e){var t=this._userOptions[e];return t=r.isPlainObject(t)?t:l(t)?{enabled:!!t}:{},p.call(this,e,t)}};return{_themeSection:"chart",ctor:e,dispose:t,resetPalette:n,getOptions:function(e){return(f[e]||f.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var e=this;e.callBase.apply(e,arguments),e.updatePalette(e.getOptions("palette"))},resetOptions:function(e){this._mergedSettings[e]=null},update:function(e){this._userOptions=e},updatePalette:o}}());t.ThemeManager=g},function(e,t,n){function i(e,t){var n=e;return t&&g(t.split("."),function(e,t){return n=n[t]}),n}var r=n(9),a=n(25),o=n(11).extend,s=n(14),l=n(512),c=s.isString,u=n(509).parseScalar,d=n(508),h=d.findTheme,p=d.addCacheItem,f=d.removeCacheItem,_=o,g=r.each;n(551),n(552),n(553),n(554),t.BaseThemeManager=a.inherit({ctor:function(){p(this)},dispose:function(){var e=this;return f(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=h(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=_({},n.font,t.font),e._themeSection&&g(e._themeSection.split("."),function(e,t){n=_(!0,{},n[t])}),e._theme=_(!0,{},n,c(t)?{}:t),e._initializeTheme(),u(e._rtl,e._theme.rtlEnabled)&&_(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return i(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return new l.Palette(e||this._defaultPalette,t)},createDiscretePalette:function(e,t){return new l.DiscretePalette(e||this._defaultPalette,t)},createGradientPalette:function(e){return new l.GradientPalette(e||this._defaultPalette)},_initializeTheme:function(){var e=this;g(e._fontFields||[],function(t,n){e._initializeFont(i(e._theme,n))})},_initializeFont:function(e){_(e,this._font,_({},e))}})},function(e,t,n){var i="#ffffff",r="#000000",a="#d3d3d3",o="#303030",s="#2b2b2b",l="#ff0000",c="#232323",u="#767676",d="#cf00da",h="#f8ca00",p="#8e8e8e",f="#b8b8b8",_="#c7c7c7",g="#686868",m="#b5b5b5",v="none",y="solid",b="top",x="right",S="bottom",w="left",k="center",C="inside",T="outside",E=n(508),A=E.registerTheme,I=E.registerThemeAlias;A({name:"generic.light",font:{color:u,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:i,primaryTitleColor:c,secondaryTitleColor:u,axisColor:a,axisLabelColor:u,title:{backgroundColor:i,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",weight:200},subtitle:{font:{size:16}}},loadingIndicator:{text:"Loading..."},"export":{backgroundColor:i,font:{size:14,color:c,weight:400},button:{"default":{color:"#333",borderColor:"#ddd",backgroundColor:i},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:r,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:a},tooltip:{enabled:!1,border:{width:1,color:a,dashStyle:y,visible:!0},font:{color:c},color:i,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,shared:!1,location:k,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:r}},legend:{hoverMode:"includePoints",verticalAlignment:b,horizontalAlignment:x,position:T,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:y},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:x,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:x,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:r,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:k,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:T,font:{color:i},border:{visible:!1,width:1,color:a,dashStyle:y},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:w}},resolveLabelOverlapping:v},"chart:common:axis":{visible:!1,setTicksAtUnitBeginning:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!1,width:1,length:8},minorTick:{visible:!1,width:1,opacity:.3,length:8},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:r,dashStyle:y,label:{visible:!0,position:C}},marker:{label:{}}},chart:{commonSeriesSettings:{type:"line",stack:"default",point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:y,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:y,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:y,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:y,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:y,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:y,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:C}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:C}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:y,label:{visible:!1,font:{color:i,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10},title:{font:{size:16},margin:6},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:S,axisDivisionFactor:50,label:{rotationAngle:90,staggeringSpacing:5,alignment:k},stripStyle:{label:{horizontalAlignment:k,verticalAlignment:b}},constantLineStyle:{label:{horizontalAlignment:x,verticalAlignment:b}},constantLines:[]},verticalAxis:{position:w,axisDivisionFactor:30,label:{alignment:x},stripStyle:{label:{horizontalAlignment:w,verticalAlignment:k}},constantLineStyle:{label:{horizontalAlignment:w,verticalAlignment:b}},constantLines:[]},argumentAxis:{},valueAxis:{grid:{visible:!0}},commonPaneSettings:{backgroundColor:v,border:{color:a,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:y}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},useAggregation:!1,adjustOnZoom:!0,rotated:!1,zoomingMode:v,scrollingMode:v,synchronizeMultiAxes:!0,equalBarWidth:!0,minBubbleSize:12,maxBubbleSize:.2},pie:{innerRadius:.5,minDiameter:.7,type:"pie",commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:x,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:x,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:x,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:x,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:x,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:x,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}}},legend:{hoverMode:"allArgumentPoints",backgroundColor:v},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:k,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:b},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:v,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:i,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:k,verticalAlignment:S},text:{font:{size:18}}},_circular:{scale:{orientation:T,label:{indentFromTick:10}},rangeContainer:{orientation:T},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{horizontalOrientation:x,verticalOrientation:S,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:x,verticalOrientation:S},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:x,verticalOrientation:S},trianglemarker:{offset:10,horizontalOrientation:w,verticalOrientation:b},textcloud:{offset:-1,horizontalOrientation:w,verticalOrientation:b}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,label:{indent:20,connectorWidth:2,font:{size:16}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:k,verticalAlignment:S},text:{font:{size:18}}}},rangeSelector:{scale:{width:1,color:r,opacity:.1,showCustomBoundaryTicks:!0,showMinorTicks:!0,setTicksAtUnitBeginning:!0,label:{overlappingBehavior:"hide",alignment:"center",visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:r,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:r,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:l,font:{color:i,size:11}},sliderHandle:{width:1,color:r,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callSelectedRangeChanged:"onMovingComplete"},redrawOnResize:!0,chart:{useAggregation:!1,equalBarWidth:!0,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:i,"stroke-width":1,"stroke-opacity":.7,font:{color:s,size:12}}},"layer:area":{borderWidth:1,borderColor:i,color:"#d2d2d2",hoveredBorderColor:o,selectedBorderWidth:2,selectedBorderColor:o,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:i,color:"#ba4d51",size:8,selectedStep:2,backStep:18,backColor:i,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,color:"#ba4d51",hoveredBorderWidth:1,hoveredBorderColor:o,selectedBorderWidth:2,selectedBorderColor:o},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:o,selectedBorderWidth:2,selectedBorderColor:o},"layer:marker:image":{size:20},legend:{verticalAlignment:S,horizontalAlignment:x,position:C,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12,markerColor:"#ba4d51"},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:i,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:w}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,stroke:"#000000","stroke-width":1,"stroke-opacity":.3,font:{color:"#ffffff",weight:300},shadow:{opacity:.8,offsetX:0,offsetY:1,blur:1,color:"#000000"}}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{weight:600}}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:i,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:y,hoverStyle:{width:3,hatching:{direction:v}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:170,height:170,keepLabels:!0},equalBarWidth:!0,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{tick:{visible:!1}},horizontalAxis:{position:b,axisDivisionFactor:50,label:{alignment:k}},verticalAxis:{position:b,axisDivisionFactor:30,label:{alignment:x}}}}),A({name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",axisColor:"#555555",axisLabelColor:"#a3a3a3","export":{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{"default":{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:s,border:{color:"#494949"},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#494949"}},valueErrorBar:{color:i}}},"chart:common:axis":{constantLineStyle:{color:i}},chart:{commonPaneSettings:{border:{color:"#494949"}}},gauge:{rangeContainer:{backgroundColor:m},valueIndicators:{_default:{color:m},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:i,opacity:.32},minorTick:{color:i,opacity:.1}},selectedRangeColor:m,sliderMarker:{color:m,font:{color:o}},sliderHandle:{color:i,opacity:.2},shutter:{color:s,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:r,font:{color:i}}},"layer:area":{borderColor:o,color:g,hoveredBorderColor:i,selectedBorderColor:i},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:i,selectedBorderColor:i},"layer:marker:pie":{hoveredBorderColor:i,selectedBorderColor:i},legend:{border:{color:"#3f3f3f"},font:{color:i}},controlBar:{borderColor:_,color:o}},treeMap:{group:{color:"#4c4c4c"}},sparkline:{lineColor:_,firstLastColor:_,barPositiveColor:f,barNegativeColor:p,winColor:f,lossColor:p,pointColor:o},bullet:{targetColor:p}},"generic.light"),A({name:"generic.contrast",defaultPalette:"Bright",font:{color:i},backgroundColor:r,primaryTitleColor:i,secondaryTitleColor:i,axisColor:i,axisLabelColor:i,"export":{backgroundColor:r,font:{color:i},button:{"default":{color:i,borderColor:i,backgroundColor:r},hover:{color:i,borderColor:i,backgroundColor:"#cf00d7"},focus:{color:i,borderColor:"#cf00d7",backgroundColor:r},active:{color:r,borderColor:i,backgroundColor:i}},borderColor:i,menuButtonColor:r,activeBackgroundColor:i,activeColor:r,selectedBorderColor:d,selectedColor:d,shadowColor:"none"
},tooltip:{border:{color:i},font:{color:i},color:r},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:i},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:i},border:{color:i}}}},"chart:common:axis":{constantLineStyle:{color:i}},chart:{commonSeriesSettings:{},commonPaneSettings:{backgroundColor:r,border:{color:i}},scrollBar:{color:i}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:i},valueIndicators:{_default:{color:i},rangebar:{color:i,backgroundColor:r},twocolorneedle:{secondColor:i},trianglemarker:{color:i},textcloud:{color:i,text:{font:{color:r}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{opacity:.4},minorTick:{opacity:.12}},selectedRangeColor:d,sliderMarker:{color:d},sliderHandle:{color:d,opacity:1},shutter:{opacity:.75},background:{color:r}},map:{background:{borderColor:i},layer:{label:{stroke:r,font:{color:i}}},"layer:area":{borderColor:r,color:g,hoveredBorderColor:i,selectedBorderColor:i,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:i},"layer:marker:dot":{borderColor:r,color:h,backColor:r,backOpacity:.32},"layer:marker:bubble":{color:h,hoveredBorderColor:i,selectedBorderColor:i},"layer:marker:pie":{hoveredBorderColor:i,selectedBorderColor:i},legend:{markerColor:h},controlBar:{borderColor:i,color:r,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979"}},sparkline:{pointColor:r},bullet:{},polar:{commonSeriesSettings:{}}},"generic.light"),E.currentTheme("generic.light"),I("desktop.light","generic.light"),I("desktop.dark","generic.dark")},function(e,t,n){var i=n(508),r="ios7.default",a="#767676",o="#d3d3d3",s="#000000";i.registerTheme({name:r,backgroundColor:"#ffffff",primaryTitleColor:s,secondaryTitleColor:a,axisColor:"#ececec",axisLabelColor:a,legend:{font:{color:s}},tooltip:{font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:o}}}},chart:{commonPaneSettings:{border:{color:o}}},rangeSelector:{scale:{tick:{color:s,opacity:.1},minorTick:{color:s,opacity:.03}}}},"generic.light"),i.registerThemeAlias("ios",r)},function(e,t,n){var i="android5.light",r=n(508),a=r.registerThemeAlias,o="#767676",s="#e8e8e8",l="#000000";r.registerTheme({name:i,backgroundColor:"#ffffff",primaryTitleColor:"#232323",secondaryTitleColor:o,axisColor:"#d3d3d3",axisLabelColor:o,tooltip:{color:s,font:{color:o}},legend:{font:{color:l}},rangeSelector:{scale:{tick:{color:l,opacity:.17},minorTick:{color:l,opacity:.05}}}},"generic.light"),a("android",i),a("android.holo-dark",i),a("android.holo-light",i),a("android.dark",i),a("android.light",i)},function(e,t,n){var i=n(508),r=i.registerTheme,a=i.registerThemeSchemeAlias,o="#000000",s="#ffffff",l="win10.white",c="win10.black",u="win8.white",d="win8.black";r({name:c,backgroundColor:o,primaryTitleColor:s,secondaryTitleColor:"#d8d8d8",axisColor:"#4c4c4c",axisLabelColor:s,title:{font:{color:s}},legend:{font:{color:s}},tooltip:{color:o,font:{color:s}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#454545"}}}},chart:{commonPaneSettings:{border:{color:"#454545"}}},barGauge:{backgroundColor:"#2b3036"},rangeSelector:{scale:{tick:{color:s,opacity:.23},minorTick:{color:s,opacity:.07}}}},"generic.dark"),r({name:l,backgroundColor:s,primaryTitleColor:o,secondaryTitleColor:"#767676",axisColor:"#ececec",axisLabelColor:o,title:{font:{color:o}},legend:{font:{color:o}},tooltip:{font:{color:o}},rangeSelector:{scale:{tick:{color:o,opacity:.1},minorTick:{color:o,opacity:.03}}}},"generic.light"),a("win10.dark",c),a("win10.light",l),r({name:d},c),r({name:u},l),a("win8.dark",d),a("win8.light",u)},function(e,t,n){function i(e,t,n){var i;return i=n<e?e:t<n?t:n}function r(e){if(e._label.isVisible()&&"inside"!==e._label.getLayoutOptions().position)return e._label.getBoundingRect()}function a(e,t,n,a,o){var s=!1;return e.forEach(function(e){return!s&&void e.getVisiblePoints().forEach(function(e){var c=r(e);if(c){var u=i(c.x,c.x+c.width,t),d=i(c.y,c.y+c.height,n);a=y(b(l(u,d,t,n)-C,o),a),s=!0}})}),a}function o(e){var t=[],n=0;return e.forEach(function(e){var i=0;e.getVisiblePoints().forEach(function(e){var t=r(e);t&&(i=b(t.width+T,i))}),t.push(i),n+=i}),{sizes:t,common:n}}function s(e,t,n,i,r){var a,o,s=(i.width-i.left-i.right)/2;for(o=0;o<n.length;o++)0!==e[o]?(a=x(a?a+e[o-1]:t),n[o].correctLabelRadius(a),r&&o!==n.length-1&&(e[o]=r,n[o].setVisibleArea({left:s-t-r*(o+1),right:i.width-(s+t+r*(o+1)),top:i.top,bottom:i.bottom,width:i.width,height:i.height}))):a&&(a+=e[o-1])}function l(e,t,n,i){return S((e-n)*(e-n)+(t-i)*(t-i))}function c(e){var t;return"pie"===e.type?t=0:(t=v(e.innerRadius)?Number(e.innerRadius):.5,t=t<.2?.2:t,t=t>.8?.8:t),t}function u(e,t){e[t.cutLayoutSide]+="horizontal"===t.cutSide?t.width:t.height}function d(e,t){var n=e.cutLayoutSide,i={horizontal:0,vertical:0};switch(n){case"top":case"left":i[e.cutSide]=-t[n];break;case"bottom":case"right":i[e.cutSide]=t[n]}return i}function h(){}function p(e){return new m.WrapperLayoutElement(null,{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom})}function f(e,t,n,i,r,l){var c,u=i*e,d=o(n),h=0,p=r-d.common+t.left;return p<u?(e=u,d.sizes.forEach(function(e){0!==e&&h++}),c=(r-e-t.left)/h):e=y(a(n,r,l,e,u),p),s(d.sizes,e,n,t,c),e}var _=n(14),g=n(11).extend,m=n(522),v=_.isNumeric,y=Math.min,b=Math.max,x=Math.floor,S=Math.sqrt,w=g,k=n(527),C=k.pieLabelIndent,T=k.pieLabelSpacing,E={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"};h.prototype={constructor:h,setOptions:function(e){this._options=e},applyPieChartSeriesLayout:function(e,t,n){var i,r=e.height-e.top-e.bottom,a=e.width-e.left-e.right,o=a/2+e.left,s=r/2+e.top,l=this._options.piePercentage;return v(l)?i=l*y(e.height,e.width)/2:(i=y(a,r)/2,n||(i=f(i,e,t,this._options.minPiePercentage,o,s))),{centerX:x(o),centerY:x(s),radiusInner:x(i*c(t[0])),radiusOuter:x(i)}},applyEqualPieChartLayout:function(e,t){var n=t.radius;return{centerX:x(t.x),centerY:x(t.y),radiusInner:x(n*c(e[0])),radiusOuter:x(n)}},needMoreSpaceForPanesCanvas:function(e,t){var n=this._options,i=n.width,r=n.height,a=n.piePercentage,o=v(a),s=0,l=0;return e.forEach(function(e){var n=e.canvas,c=o?y(n.width,n.height)*a:void 0,u=(o?c:i)-(n.width-n.left-n.right),d=(o?c:r)-(n.height-n.top-n.bottom);t?(s+=u>0?u:0,l=b(d>0?d:0,l)):(s=b(u>0?u:0,s),l+=d>0?d:0)}),(s>0||l>0)&&{width:s,height:l}},layoutElements:function(e,t,n,i,r){this._elements=e,this._probeDrawing(t),this._drawElements(t),n(),this._processAdaptiveLayout(i,r,t,n),this._positionElements(t)},_processAdaptiveLayout:function(e,t,n,i){function r(e,t,i){e.getLayoutOptions()[i]||(n[t.cutLayoutSide]-=t[i],o[i]=Math.max(o[i]-t[i],0))}var a=this,o=a.needMoreSpaceForPanesCanvas(e,t),s=this._elements;o&&(s.slice().reverse().forEach(function(e){var t,n=w({},e.getLayoutOptions());n&&(t=g({},n),"vertical"===n.cutSide&&o.height&&(e.draw(t.width,t.height-o.height),r(e,n,"height")),"horizontal"===n.cutSide&&o.width&&(e.draw(t.width-o.width,t.height),r(e,n,"width")))}),i(o))},_probeDrawing:function(e){var t=this;this._elements.forEach(function(n){var i,r=n.getLayoutOptions();r&&(i={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom},"vertical"===r.cutSide?i.height-=t._options.height:i.width-=t._options.width,n.probeDraw(i.width,i.height),u(e,n.getLayoutOptions()))})},_drawElements:function(e){this._elements.slice().reverse().forEach(function(t){var n,i,r,a=t.getLayoutOptions();a&&(n={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom},i=a.cutSide,r="horizontal"===i?"width":"height",n[r]=a[r],t.draw(n.width,n.height))})},_positionElements:function(e){var t={left:0,right:0,top:0,bottom:0};this._elements.slice().reverse().forEach(function(n){var i,r,a,o=n.getLayoutOptions();o&&(i=o.position,r=o.cutSide,a={horizontal:i.horizontal,vertical:i.vertical},a[r]=E[a[r]],n.position({of:p(e),my:a,at:i,offset:d(o,t)}),t[o.cutLayoutSide]+=o["horizontal"===o.cutSide?"width":"height"])})}},t.LayoutManager=h},function(e,t,n){function i(e,t){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]}function r(e,t){return e.cancel||!t.getOptions()}function a(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function o(e){return G.indexOf(e)>-1?e:H}function s(e){var t=e.getOptions().hoverMode;return t===F?t:z}var l=n(9),c=n(75),u=n(11).extend,d=n(527),h=d.events,p=n(509),f=n(14),_=n(76),g=n(85),m=n(164),v=n(71).addNamespace,y=n(53),b=f.isDefined,x=n(509).normalizeEnum,S=Math.floor,w=l.each,k=f.noop,C=d.states.hoverMark,T=d.states.normalMark,E="dxChartTracker",A="."+E,I=v([_.down,_.move],E),O="legendClick",M="seriesClick",D="pointClick",P="zoomStart",L="chart-data-point",B="chart-data-series",V="chart-data-argument",R=100,F="none",z="allargumentpoints",H="includepoints",N="excludepoints",G=[H,N,F],j={ctor:function(e){var t=this,n={tracker:t};t._renderer=e.renderer,t._legend=e.legend,t._tooltip=e.tooltip,t._eventTrigger=e.eventTrigger,t._seriesGroup=e.seriesGroup,e.seriesGroup.off(A).on(v(h.showPointTooltip,E),n,t._showPointTooltip).on(v(h.hidePointTooltip,E),n,t._hidePointTooltip),t._renderer.root.off(A).on(I,n,t._pointerHandler).on(v(c.name,E),n,t._clickHandler).on(v(m.name,E),{timeout:300},k)},update:function(e){this._prepare()},updateSeries:function(e){var t=this;t._storedSeries!==e?(t._storedSeries=e||[],t._clean()):(t._hideTooltip(t.pointAtShownTooltip),t._clearHover(),t.clearSelection())},setCanvases:function(e,t){this._mainCanvas=e,this._canvases=t},repairTooltip:function(){var e=this.pointAtShownTooltip;e&&!e.isVisible()?this._hideTooltip(e,!0):this._showTooltip(e)},_prepare:function(){this._toggleParentsScrollSubscription(!0)},_toggleParentsScrollSubscription:function(e){var t=this,n=l(t._renderer.root.element).parents(),i=v("scroll",E);"generic"===y.real().platform&&(n=n.add(window)),l().add(t._$prevRootParents).off(i),e&&(n.on(i,function(){t._pointerOut()}),t._$prevRootParents=n)},_setHoveredPoint:function(e){e!==this._hoveredPoint&&(this._releaseHoveredPoint(),e.hover(),this._hoveredPoint=e)},_releaseHoveredPoint:function(){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint))},_setHoveredSeries:function(e,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),e.hover(t),this.hoveredSeries=e},_releaseHoveredSeries:function(e,t){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection:function(){this._storedSeries.forEach(function(e){e.clearSelection(),e.getPoints().forEach(function(e){e.clearSelection()})})},_clean:function(){var e=this;e.hoveredPoint=e.hoveredSeries=e._hoveredArgumentPoints=null,e._hideTooltip(e.pointAtShownTooltip)},_clearHover:function(){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint()},_hideTooltip:function(e,t){var n=this;!n._tooltip||e&&n.pointAtShownTooltip!==e||(!t&&n.pointAtShownTooltip&&(n.pointAtShownTooltip=null),n._tooltip.hide())},_showTooltip:function(e){var t,n,i=this;if(e&&e.getOptions()){if(t=e.getTooltipFormatObject(i._tooltip),!b(t.valueText)&&!t.points||!e.isVisible())return;i.pointAtShownTooltip&&i.pointAtShownTooltip===e||(n={target:e});var r=e.getTooltipParams(i._tooltip.getLocation()),a=i._renderer.getRootOffset();if(r.x+=a.left,r.y+=a.top,!i._tooltip.show(t,r,n))return;i.pointAtShownTooltip=e}},_showPointTooltip:function(e,t){var n=e.data.tracker,i=n.pointAtShownTooltip;i&&i!==t&&n._hideTooltip(i),n._showTooltip(t)},_hidePointTooltip:function(e,t){e.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var e=this,t=function(t){var n=e._renderer.getRootOffset(),i=S(t.pageX-n.left),r=S(t.pageY-n.top);a(e._mainCanvas,i,r)||(e._pointerOut(),e._disableOutHandler())};l(document).on(I,t),this._outHandler=t}},_disableOutHandler:function(){this._outHandler&&l(document).off(I,this._outHandler),this._outHandler=null},_pointerOut:function(){this._clearHover(),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)},_triggerLegendClick:function(e,t){var n=this._eventTrigger;n(O,e,function(){!r(e.jQueryEvent,e.target)&&n(t,e)})},_hoverLegendItem:function(e,t){var n,i=this,r=i._legend.getItemByCoord(e,t),a=o(i._legend.getOptions().hoverMode);r?(n=i._storedSeries[r.id],n.isHovered()&&n.lastHoverMode===a||i._setHoveredSeries(n,a),i._tooltip.isEnabled()&&i._hideTooltip(i.pointAtShownTooltip)):i._clearHover()},_hoverArgument:function(e,t){var n=this,i=n._getArgumentHoverMode();b(e)&&(n._releaseHoveredPoint(),n._hoveredArgument=e,n._argumentIndex=t,n._notifySeries({action:"pointHover",notifyLegend:n._notifyLegendOnHoverArgument,target:{argument:e,fullState:C,argumentIndex:t,getOptions:function(){return{hoverMode:i}}}}))},_resetHoveredArgument:function(){var e,t=this;b(t._hoveredArgument)&&(e=t._getArgumentHoverMode(),t._notifySeries({action:"clearPointHover",notifyLegend:t._notifyLegendOnHoverArgument,target:{fullState:T,argumentIndex:t._argumentIndex,argument:t._hoveredArgument,getOptions:function(){return{hoverMode:e}}}}),t._hoveredArgument=null)},_notifySeries:function(e){this._storedSeries.forEach(function(t){t.notify(e)})},_pointerHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),r=S(e.pageX-n.left),a=S(e.pageY-n.top),o=t._getCanvas(r,a),s=i(e,B),l=i(e,L)||s&&s.getPointByCoord(r,a);if(t._enableOutHandler(),!t._checkGestureEvents(e,o,n)){if(t._legend.coordsIn(r,a))return void t._hoverLegendItem(r,a);if(t.hoveredSeries&&t.hoveredSeries!==t._stuckSeries&&t._releaseHoveredSeries(),!t._hoverArgumentAxis(r,a,e)&&(t._isPointerOut(o,l)&&t._pointerOut(),o||l)){if(s&&!l){if(l=s.getNeighborPoint(r,a),s!==t.hoveredSeries)return void t._setTimeout(function(){t._setHoveredSeries(s),t._setStuckSeries(e,s,r,a),t._pointerComplete(l,r,a)},s)}else{if(l)return void(t.hoveredSeries?t._setTimeout(function(){t._pointerOnPoint(l,r,a,e)},l):t._pointerOnPoint(l,r,a,e));t._setStuckSeries(e,void 0,r,a)&&(s=t._stuckSeries,l=s.getNeighborPoint(r,a),t._releaseHoveredSeries(),l&&t._setHoveredPoint(l))}t._pointerComplete(l,r,a)}}},_pointerOnPoint:function(e,t,n){this._setHoveredPoint(e),this._pointerComplete(e,t,n)},_pointerComplete:function(e){this.pointAtShownTooltip!==e&&this._tooltip.isEnabled()&&this._showTooltip(e)},_clickHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),r=S(e.pageX-n.left),a=S(e.pageY-n.top),o=i(e,L),s=t._stuckSeries||i(e,B)||o&&o.series,l=t._argumentAxis;if(t._legend.coordsIn(r,a)){var c=t._legend.getItemByCoord(r,a);c&&t._legendClick(c,e)}else if(l&&l.coordsIn(r,a)){var u=i(e,V);b(u)&&t._eventTrigger("argumentAxisClick",{argument:u,jQueryEvent:e})}else s&&(o=o||s.getPointByCoord(r,a),o?t._pointClick(o,e):i(e,B)&&t._eventTrigger(M,{target:s,jQueryEvent:e}))},dispose:function(){var e=this;e._disableOutHandler(),e._toggleParentsScrollSubscription(),e._renderer.root.off(A),e._seriesGroup.off(A)}},W=function(e){this.ctor(e)};u(W.prototype,j,{_pointClick:function(e,t){var n=this,i=n._eventTrigger,a=e.series;i(D,{target:e,jQueryEvent:t},function(){!r(t,a)&&i(M,{target:a,jQueryEvent:t})})},update:function(e){var t=this;t._zoomingMode=x(e.zoomingMode),t._scrollingMode=x(e.scrollingMode),j.update.call(this,e),t._argumentAxis=e.argumentAxis||{},t._axisHoverEnabled=t._argumentAxis&&x(t._argumentAxis.getOptions().hoverMode)===z,t._chart=e.chart,t._rotated=e.rotated,t._crosshair=e.crosshair},_getCanvas:function(e,t){for(var n=this,i=n._canvases||[],r=0;r<i.length;r++){var o=i[r];if(a(o,e,t))return o}return null},_isPointerOut:function(e){return!e&&this._stuckSeries},_hideCrosshair:function(){this._crosshair&&this._crosshair.hide()},_moveCrosshair:function(e,t,n){e&&this._crosshair&&e.isVisible()&&this._crosshair.show({point:e,x:t,y:n})},_prepare:function(){var e=this,t=e._renderer.root,n="all"===e._scrollingMode||"touch"===e._scrollingMode,i="all"===e._zoomingMode||"touch"===e._zoomingMode,r=(n?"":"pan-x pan-y ")+(i?"":"pinch-zoom")||"none",a={"touch-action":r,"-ms-touch-action":r},o="all"===e._zoomingMode||"mouse"===e._zoomingMode;t.off(v([g.name,"dxc-scroll-start","dxc-scroll-move"],E)),j._prepare.call(e),e._gestureEndHandler||(e._gestureEndHandler=function(){e._gestureEnd&&e._gestureEnd()},l(document).on(v(_.up,E),e._gestureEndHandler)),o&&t.on(v(g.name,E),function(t){var n=e._renderer.getRootOffset(),i=e._rotated?t.pageY-n.top:t.pageX-n.left,r=e._argumentAxis.getTranslator().getMinScale(t.delta>0),a=i-i*r,o=e._argumentAxis.getTranslator().zoom(-a,r);e._pointerOut(),e._eventTrigger(P),e._chart.zoomArgument(o.min,o.max,!0),t.preventDefault(),t.stopPropagation()}),t.on(v("dxc-scroll-start",E),function(t){e._startScroll=!0,e._gestureStart(e._getGestureParams(t,{left:0,top:0}))}).on(v("dxc-scroll-move",E),function(t){e._gestureChange(e._getGestureParams(t,{left:0,top:0}))&&t.preventDefault()}),t.css(a)},_getGestureParams:function(e,t){var n,i,r,a,o=this,s=e.pointers.length,l=o._rotated?"pageY":"pageX";return t=o._rotated?t.top:t.left,2===s?(n=e.pointers[0][l]-t,i=e.pointers[1][l]-t):1===s&&(n=i=e.pointers[0][l]-t),r=Math.min(n,i),a=Math.max(n,i),{center:r+(a-r)/2,distance:a-r,touches:s,scale:1,pointerType:e.pointerType}},_gestureStart:function(e){var t=this;t._startGesture=t._startGesture||e,t._startGesture.touches!==e.touches&&(t._startGesture=e)},_gestureChange:function(e){var t=this,n=t._startGesture,i=!1,r="all"===t._scrollingMode||"none"!==t._scrollingMode&&t._scrollingMode===e.pointerType,a="all"===t._zoomingMode||"touch"===t._zoomingMode;return n?1===n.touches&&Math.abs(n.center-e.center)<3?(t._gestureStart(e),i):(2===n.touches&&a?(i=!0,n.scale=e.distance/n.distance,n.scroll=e.center-n.center+(n.center-n.center*n.scale)):1===n.touches&&r&&(i=!0,n.scroll=e.center-n.center),i&&(t._startScroll&&(t._eventTrigger(P),t._startScroll=!1),n.changed=i,t._chart._transformArgument(n.scroll,n.scale)),i):i},_gestureEnd:function(){function e(){n._chart.zoomArgument(t.min,t.max,!0)}var t,n=this,i=n._startGesture,r=n._renderer;if(n._startGesture=null,n._startScroll=!1,i&&i.changed)if(t=n._argumentAxis._translator.zoom(-i.scroll,i.scale),!r.animationEnabled()||-i.scroll===t.translate&&i.scale===t.scale)e();else{var a=-(i.scroll+t.translate),o=i.scale-t.scale;r.root.animate({_:0},{step:function(e){var t=-i.scroll-a*e,r=i.scale-o*e;n._chart._transformArgument(-t,r)},complete:e,duration:250})}},_clean:function(){var e=this;j._clean.call(e),e._resetTimer(),e._stuckSeries=null},_getSeriesForShared:function(e,t){var n=this,i=[],r=null,a=1/0;return n._tooltip.isShared()&&!n.hoveredSeries&&(w(n._storedSeries,function(n,r){var a=r.getNeighborPoint(e,t);a&&i.push(a)}),w(i,function(n,i){var o=i.getCrosshairData(e,t),s=p.getDistance(e,t,o.x,o.y);s<a&&(r=i,a=s)})),r&&r.series},_setTimeout:function(e,t){var n=this;n._timeoutKeeper!==t&&(n._resetTimer(),n._hoverTimeout=setTimeout(function(){e(),n._timeoutKeeper=null},R),n._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_checkGestureEvents:function(e,t,n){var i=this;if(e.type===_.down)t&&(i._startScroll=!0,i._gestureStart(i._getGestureParams(e,n)));else if(i._startGesture&&t&&i._gestureChange(i._getGestureParams(e,n)))return i._pointerOut(),e.preventDefault(),!0},_setStuckSeries:function(e,t,n,i){return"mouse"!==e.pointerType?this._stuckSeries=null:this._stuckSeries=t||this._stuckSeries||this._getSeriesForShared(n,i),!!this._stuckSeries},_pointerOut:function(){var e=this;e._stuckSeries=null,e._hideCrosshair(),e._resetTimer(),j._pointerOut.call(e)},_hoverArgumentAxis:function(e,t,n){var r=this;if(r._resetHoveredArgument(),r._axisHoverEnabled&&r._argumentAxis.coordsIn(e,t))return r._hoverArgument(i(n,V)),!0},_pointerComplete:function(e,t,n){var i=this;i.hoveredSeries&&i.hoveredSeries.updateHover(t,n),i._resetTimer(),i._moveCrosshair(e,t,n),j._pointerComplete.call(i,e)},_legendClick:function(e,t){var n=this._storedSeries[e.id];this._triggerLegendClick({target:n,jQueryEvent:t},M)},_hoverLegendItem:function(e,t){this._stuckSeries=null,this._hideCrosshair(),j._hoverLegendItem.call(this,e,t)},_pointerOnPoint:function(e,t,n,i){this._setStuckSeries(i,e.series,t,n),this._releaseHoveredSeries(),j._pointerOnPoint.call(this,e,t,n,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return s(this._argumentAxis)},dispose:function(){l(document).off(A,this._gestureEndHandler),this._resetTimer(),j.dispose.call(this)}});var U=function(e){this.ctor(e)};u(U.prototype,j,{_isPointerOut:function(e,t){return!t},_legendClick:function(e,t){var n=this,i=[];n._storedSeries.forEach(function(t){i.push.apply(i,t.getPointsByKeys(e.argument,e.id))}),n._eventTrigger(O,{target:e.argument,points:i,jQueryEvent:t})},_pointClick:function(e,t){this._eventTrigger(D,{target:e,jQueryEvent:t})},_hoverLegendItem:function(e,t){var n=this,i=n._legend.getItemByCoord(e,t);n._resetHoveredArgument(),i?n._hoverArgument(i.argument,i.argumentIndex):n._clearHover()},_getArgumentHoverMode:function(){return s(this._legend)},_hoverArgumentAxis:k,_setStuckSeries:k,_getCanvas:k,_checkGestureEvents:k,_notifyLegendOnHoverArgument:!0}),t.ChartTracker=W,t.PieTracker=U},function(e,t,n){function i(){}var r=n(9),a=n(522),o=n(11).extend,s=o,l=r.each;s(i.prototype,a.LayoutElement.prototype,{update:function(e,t){this._elements=r.map(e,function(e){return e.getLayoutOptions()?e:null}),this._canvas=t},dispose:function(){this._elements=null},measure:function(){var e,t=this,n=t.getLayoutOptions();return n&&(e={size:[n.width,n.height],alignment:[n.horizontalAlignment,n.verticalAlignment],side:1},l(t._elements,function(e,i){i.draw(n.width,n.height,t._canvas)})),e||null},getLayoutOptions:function(){var e,t,n,i=this,r=i._elements,a=r.length,o=1;if(!a)return null;for(e=r[0],t=s(!0,{},e.getLayoutOptions()),t.position=t.position||{},o;o<a;o++)n=r[o].getLayoutOptions(),n.height>t.height&&(t.height=n.height),t.width+=n.width,n.position&&(t.position=n.position,t.verticalAlignment=n.position.vertical,t.horizontalAlignment=n.position.horizontal);return t},probeDraw:function(e,t){this._elements.forEach(function(n){n.probeDraw(e,t),e-=n.getLayoutOptions().width})},draw:function(e,t){var n=this._canvas;this._elements.forEach(function(i){i.draw(e,t,n),e-=i.getLayoutOptions().width})},shift:function(e,t){l(this._elements,function(n,i){i.shift(e,t)})}}),t.HeaderBlock=i},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function r(e,t,n){e.attr({text:t}).applyEllipsis(n)&&e.setTitle(t)}function a(e){return e>=0?c(e):_}function o(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:(e=e||{},t={left:a(e.left),top:a(e.top),right:a(e.right),bottom:a(e.bottom)}),t}function s(e){this._params=e,this._group=e.renderer.g().attr({"class":e.cssClass}).linkOn(e.renderer.root,{name:"title",after:"peripheral"}),this._hasText=!1}function l(e){var t=u(e)?{text:e}:e||{};return t.subtitle=u(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}var c=Number,u=n(14).isString,d=n(11).extend,h=n(509).patchFontOptions,p=n(509).enumParser(["left","center","right"]),f=n(509).enumParser(["top","bottom"]),_=10,g=3;d(s.prototype,n(522).LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){this._options=e,this._options.horizontalAlignment=p(e.horizontalAlignment,"center"),this._options.verticalAlignment=f(e.verticalAlignment,"top"),this._options.margin=o(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,r={align:e._options.horizontalAlignment};e._titleElement||(e._titleElement=t.text().attr(r).append(n),e._subtitleElement=t.text().attr(r),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),n.linkAppend(),i(e._options.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t,n=this,r=n._options,a=r.subtitle,o=n._titleElement,s=n._subtitleElement,l="A";o.attr({text:l,y:0}).css(h(r.font)),e=o.getBBox(),n._titleTextY=e.height+e.y,o.attr({text:r.text}),e=o.getBBox(),t=-e.y,o.attr({y:t}),i(a.text)&&(t+=e.height+e.y,s.attr({text:a.text,y:0}).css(h(a.font)),t+=-s.getBBox().y-n._titleTextY+g,s.attr({y:t}))},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},update:function(e){var t=this,n=i(e.text),r=n||n!==t._hasText;return n?(t._updateOptions(e),t._updateStructure(),t._updateTexts(),t._boundingRect={},t._updateBoundingRect(),t._updateBoundingRectAlignment()):(t._group.linkRemove(),t._boundingRect=null),t._hasText=n,r},draw:function(e,t){var n,i=this;return i._group.linkAppend(),i._correctTitleLength(e),n=i.getLayoutOptions(),n.height>t&&(i._params.incidentOccurred("W2103"),i._group.linkRemove(),i._boundingRect.width=i._boundingRect.height=0),i},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,a=e-i.left-i.right;r(t._titleElement,n.text,a),t._subtitleElement&&r(t._subtitleElement,n.subtitle.text,a),t._updateBoundingRect()},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n._setClipRectSettings(),n},_setClipRectSettings:function(){var e=this.getLayoutOptions();this._clipRect.attr({x:e.x,y:e.y,width:e.width,height:e.height})},_updateBoundingRect:function(){var e,t=this,n=t._options,i=n.margin,r=t._boundingRect;e=t._group.getBBox(),e.height+=i.top+i.bottom-t._titleTextY,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._titleTextY-i.top,n.placeholderSize>0&&(e.height=n.placeholderSize),r.height=e.height,r.width=e.width,r.x=e.x,r.y=e.y},layoutOptions:function(){return this._boundingRect&&{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment}},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e){var t=this._boundingRect;(e[2]-e[0]<t.width||e[3]-e[1]<t.height)&&this.draw(e[2]-e[0],e[3]-e[1]),this.shift(Math.round(e[0]),Math.round(e[1]))}}),t.Title=s,t.plugin={name:"title",init:function(){var e=this;e._title=new t.Title({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},members:{_getTitleOptions:function(){return d(!0,{},this._themeManager.theme("title"),l(this.option("title")))}},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._getTitleOptions())&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})}}},function(e,t,n){function i(e){e.css({left:"-9999px"}).detach()}function r(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat,precision:e.argumentPrecision};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision||e.percentPrecision}}}return n}function a(e){var t,n,i=this;i._eventTrigger=e.eventTrigger,i._wrapper=l("<div>").css({position:"absolute",overflow:"visible",height:"1px","pointer-events":"none"}).addClass(e.cssClass),i._renderer=t=new c.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),n=t.root,n.attr({"pointer-events":"none"}),i._cloud=t.path([],"area").sharp().append(n),i._shadow=t.shadowFilter(),i._textGroup=t.g().attr({align:"center"}).append(n),i._text=t.text(void 0,0,0).append(i._textGroup),i._textGroupHtml=l("<div>").css({position:"absolute",width:0,padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=l("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var o=document,s=window,l=n(9),c=n(518),u=n(14),d=n(12),h=n(11).extend,p=10,f=n(509),_=n(530),g=Math.ceil;a.prototype={constructor:a,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=null},_getContainer:function(){var e=l(this._options.container);return(e.length?e:l("body")).get(0)},setOptions:function(e){e=e||{};var t=this,n=t._cloudSettings={opacity:e.opacity,filter:t._shadow.id,"stroke-width":null,stroke:null},i=e.border||{};return t._shadowSettings=h({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),t._options=e,i.visible&&h(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle}),t._textFontStyles=f.patchFontOptions(e.font),t._textFontStyles.color=e.font.color,t._wrapper.css({"z-index":e.zIndex}),t._customizeTooltip=u.isFunction(e.customizeTooltip)?e.customizeTooltip:null,t},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;return i(e._wrapper),e._cloud.attr(e._cloudSettings),e._shadow.attr(e._shadowSettings),e._textGroupHtml.css(e._textFontStyles),e._textGroup.css(e._textFontStyles),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=this._options,i={};return this._customizeTooltip&&(i=this._customizeTooltip.call(e,e),i=d.isPlainObject(i)?i:{},"text"in i&&(t.text=u.isDefined(i.text)?String(i.text):""),"html"in i&&(t.html=u.isDefined(i.html)?String(i.html):"")),"text"in t||"html"in t||(t.text=e.valueText||""),t.color=i.color||n.color,t.borderColor=i.borderColor||(n.border||{}).color,t.textColor=i.fontColor||(n.font||{}).color,!!t.text||!!t.html},show:function(e,t,n){var i,r,a=this,o={},l=a._options,c=l.paddingLeftRight,u=l.paddingTopBottom,d=a._textGroupHtml,h=a._textHtml,p=a._shadowSettings,f=p.offsetX,_=p.offsetY,m=2*p.blur+1,v=s.getComputedStyle;return!!a._prepare(e,o)&&(a._state=o,o.tc={},a._wrapper.appendTo(a._getContainer()),a._cloud.attr({fill:o.color,stroke:o.borderColor}),o.html?(a._text.attr({text:""}),d.css({color:o.textColor,width:a._getCanvas().width}),h.html(o.html),v?(i=v(h.get(0)),i={x:0,y:0,width:g(parseFloat(i.width)),height:g(parseFloat(i.height))}):(i=h.get(0).getBoundingClientRect(),i={x:0,y:0,width:g(i.width?i.width:i.right-i.left),height:g(i.height?i.height:i.bottom-i.top)}),d.width(i.width),d.height(i.height)):(h.html(""),a._text.css({fill:o.textColor}).attr({text:o.text}),i=a._textGroup.css({fill:o.textColor}).getBBox()),r=o.contentSize={x:i.x-c,y:i.y-u,width:i.width+2*c,height:i.height+2*u,lm:m-f>0?m-f:0,rm:m+f>0?m+f:0,tm:m-_>0?m-_:0,bm:m+_>0?m+_:0},r.fullWidth=r.width+r.lm+r.rm,r.fullHeight=r.height+r.tm+r.bm+l.arrowLength,a.move(t.x,t.y,t.offset),a._eventData&&a._eventTrigger("tooltipHidden",a._eventData),a._eventData=n,a._eventTrigger("tooltipShown",a._eventData),!0)},hide:function(){var e=this;i(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){n=n||0;var i=this,r=i._getCanvas(),a=i._state,o=a.tc,s=a.contentSize;i._calculatePosition(e,t,n,r)&&(i._cloud.attr({points:o.cloudPoints}).move(s.lm,s.tm),a.html?i._textGroupHtml.css({left:-s.x+s.lm,top:-s.y+s.tm+o.correction}):i._textGroup.move(-s.x+s.lm,-s.y+s.tm+o.correction),i._renderer.resize("out"===o.hp?r.fullWidth-r.left:s.fullWidth,"out"===o.vp?r.fullHeight-r.top:s.fullHeight)),n=i._wrapper.css({left:0,top:0}).offset(),i._wrapper.css({left:o.x-n.left,top:o.y-n.top,width:s.fullWidth})},formatValue:function(e,t){var n=t?r(this._options,t):this._options;return _(e,n)},getLocation:function(){return f.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled;
},isShared:function(){return!!this._options.shared},_calculatePosition:function(e,t,n,i){var r,a,o,s,l=this,c=l._options,u=c.arrowLength,d=l._state,h=d.tc,f=d.contentSize,_=f.width,g=_/2,m=f.height,v=t-i.top,y=i.top+i.height-t,b=e-i.left,x=i.width+i.left-e,S=m+u+n+f.tm,w=m+u+n+f.bm,k=_+f.lm,C=_+f.rm,T=g+f.lm,E=g+f.rm,A=0,I=[6,0],O=g+p,M=g,D=g-p,P=m+u,L="center",B="bottom";switch(a=o=m,c.verticalAlignment){case"top":B="bottom",s=!0;break;case"bottom":B="top",s=!0}switch(s||(S>v&&w>y?B="out":S>v&&(B="top")),s=!1,c.horizontalAlignment){case"left":L="right",s=!0;break;case"center":L="center",s=!0;break;case"right":L="left",s=!0}return s||(k>b&&C>x?L="out":T>b&&C<x?L="left":E>x&&k<b&&(L="right")),"out"===L?e=i.left:"left"===L?(O=p,M=D=0):"right"===L?(O=M=_,D=_-p,e-=_):"center"===L&&(e-=g),"out"===B?t=i.top:"top"===B?("out"!==L&&(A=u),I[0]=2,a=o=u,P=O,O=D,D=P,P=0,t+=n):t-=m+u+n,h.x=e-f.lm,h.y=t-f.tm,h.correction=A,(L!==h.hp||B!==h.vp)&&(h.hp=L,h.vp=B,r=[0,0+A,_,0+A,_,m+A,0,m+A],"out"!==L&&"out"!==B&&(I.splice(2,0,O,a,M,P,D,o),r.splice.apply(r,I)),h.cloudPoints=r,!0)},_getCanvas:function(){var e=o.documentElement,t=o.body;return{left:s.pageXOffset||e.scrollLeft||0,top:s.pageYOffset||e.scrollTop||0,width:e.clientWidth||0,height:e.clientHeight||0,fullWidth:Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,t.clientWidth,e.clientWidth),fullHeight:Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,t.clientHeight,e.clientHeight)}}},t.Tooltip=a,t.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new t.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified")})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_hideTooltip:function(){this._tooltip.hide()},_onRender:function(){this._$element.is(":visible")||this._hideTooltip()},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})}}},function(e,t,n){function i(e){var t=this,n=e.renderer;t._group=n.g().attr({"class":"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)}var r=n(509).patchFontOptions,a=0,o=1,s="linear",l=400,c="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){var r=this;r._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(c)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(c)}}],r._state=a},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css(r(e.font)).attr({text:e.text}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:s,duration:l,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(o)},hide:function(){this._transit(a)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){function e(e){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:e}),n._skipLoadingIndicatorOptions=!1,e&&n._hideTooltip&&n._hideTooltip()}var n=this;n._loadingIndicator=new t.LoadingIndicator({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:e}),n._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._scheduleLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}var i=t._setContentSize;t._setContentSize=function(){i.apply(this,arguments),this._loadingIndicator.setSize(this._canvas)},e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var r=t._drawn;t._drawn=function(){r.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}}}},function(e,t,n){var i,r=n(14).noop,a=n(152),o=a.postCtor,s={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(i in a)"postCtor"!==i&&(s[i]=a[i]);t.plugin={name:"data_source",init:function(){o.call(this)},dispose:r,members:s}},function(e,t,n){var i=n(9),r=(n(13).debug,n(14)),a=n(509),o=a.adjustValue,s=a.applyPrecisionByMinDelta,l=r.isDefined,c=Math,u=c.floor,d=c.max,h=c.abs,p=i.each,f=n(509).map,_=.1,g=function(e){var t={};return p(e,function(e,n){var i=n.pane;t[i]||(t[i]=[]),t[i].push(n)}),t},m={transform:function(e,t){return a.getLog(e,t)},addInterval:function(e,t){return e+t},getInterval:function(e,t){return t},adjustValue:u},v={transform:function(e,t){return a.raiseTo(e,t)},addInterval:function(e,t){return e*t},getInterval:function(e,t){return c.pow(e,t)},adjustValue:o},y=function(e,t){if(e.isLogarithmic){var n,i,r,a=e.logarithmicBase,o=e.tickValues,s=[];for(e.minValue=t.transform(e.minValue,a),e.oldMinValue=t.transform(e.oldMinValue,a),e.maxValue=t.transform(e.maxValue,a),e.oldMaxValue=t.transform(e.oldMaxValue,a),e.tickInterval=c.round(e.tickInterval),e.tickInterval<1&&(e.tickInterval=1),i=t.getInterval(a,e.tickInterval),n=t.transform(o[0],a),r=0;r<o.length;r++)s.push(t.adjustValue(n)),n=t.addInterval(n,i);s.tickInterval=e.tickInterval,e.tickValues=s}},b=function(e){return f(e,function(e){var t,n,i,a,o,s=e.getTicksValues(),c=s.majorTicksValues,u=e.getOptions(),d=null;return c&&c.length>0&&r.isNumeric(c[0])&&"discrete"!==u.type&&(i=e.getTranslator().getBusinessRange(),a=e._tickManager.getTickInterval(),t=i.minVisible,n=i.maxVisible,o=u.synchronizedValue,t===n&&l(o)&&(a=h(c[0]-o)||1,t=c[0]-a,n=c[0]+a),d={axis:e,isLogarithmic:"logarithmic"===u.type,logarithmicBase:i.base,tickValues:c,minorValues:s.minorTicksValues,minValue:t,oldMinValue:t,maxValue:n,oldMaxValue:n,inverted:i.invert,tickInterval:a,synchronizedValue:o},i.stubData&&(d.stubData=!0,d.tickInterval=d.tickInterval||u.tickInterval,d.isLogarithmic=!1),y(d,m)),d})},x=function(e){var t=0;p(e,function(e,n){t=d(t,n.tickValues.length)}),p(e,function(e,n){var i,r,a=0,o=n.synchronizedValue,c=n.tickValues,d=n.tickInterval;if(l(o))n.baseTickValue=n.invertedBaseTickValue=o,n.tickValues=[n.baseTickValue];else{if(c.length>1&&d){for(i=u((t+1)/c.length),r=i>1?u((t+1)/i):t,a=u((r-c.length)/2);a>0&&0!==c[0];)c.unshift(s(c[0],d,c[0]-d)),a--;for(;c.length<r;)c.push(s(c[0],d,c[c.length-1]+d));n.tickInterval=d/i}n.baseTickValue=c[0],n.invertedBaseTickValue=c[c.length-1]}})},S=function(e){return e.maxValue-e.minValue||1},w=function(e){for(var t=0;t<e.length;t++)if(!e[t].stubData)return e[t];return null},k=function(e){var t=w(e),n=t.tickInterval;p(e,function(e,i){var r,a,o,s;i!==t&&(n&&i.tickInterval&&(i.stubData&&l(i.synchronizedValue)&&(i.oldMinValue=i.minValue=i.baseTickValue-(t.baseTickValue-t.minValue)/n*i.tickInterval,i.oldMaxValue=i.maxValue=i.baseTickValue-(t.baseTickValue-t.maxValue)/n*i.tickInterval),r=n/S(t)/i.tickInterval*S(i),i.maxValue=i.minValue+S(i)/r),o=t.inverted&&!i.inverted||!t.inverted&&i.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,s=S(i),a=(o/S(t)-(i.baseTickValue-i.minValue)/s)*s,i.minValue-=a,i.maxValue-=a)})},C=function(e){var t,n,i=0,r=0;return p(e,function(e,a){var o=a.inverted;t=a.minValue>a.oldMinValue?(a.minValue-a.oldMinValue)/S(a):0,n=a.maxValue<a.oldMaxValue?(a.oldMaxValue-a.maxValue)/S(a):0,i=d(i,o?n:t),r=d(r,o?t:n)}),{start:i,end:r}},T=function(e,t){p(e,function(e,n){var i=S(n),r=n.inverted;n.minValue-=t[r?"end":"start"]*i,n.maxValue+=t[r?"start":"end"]*i,i>_&&(n.minValue=c.min(n.minValue,o(n.minValue)),n.maxValue=d(n.maxValue,o(n.maxValue)))})},E=function(e){var t=!1;p(e,function(e,n){t=t||l(n.synchronizedValue)}),p(e,function(e,n){var i,a=n.tickInterval,l=n.tickValues,c=n.maxValue,u=n.minValue;if(t&&a){for(;l[0]-a>=u;)l.unshift(o(l[0]-a));for(i=l[l.length-1];(i+=a)<=c;)l.push(r.isExponential(i)?o(i):s(u,a,i))}for(;l[0]<u;)l.shift();for(;l[l.length-1]>c;)l.pop()})},A=function(e){p(e,function(e,t){var n=t.axis,i=n.getTranslator().getBusinessRange();i.min===i.minVisible&&(i.min=t.minValue),i.max===i.maxVisible&&(i.max=t.maxValue),i.minVisible=t.minValue,i.maxVisible=t.maxValue,l(t.stubData)&&(i.stubData=t.stubData),i.min>i.minVisible&&(i.min=i.minVisible),i.max<i.maxVisible&&(i.max=i.maxVisible),i.isSynchronized=!0,n.getTranslator().updateBusinessRange(i),n.setTicks({majorTicks:t.tickValues,minorTicks:t.minorValues})})},I=function(e){var t,n,i=[];p(e,function(e,r){r.oldMaxValue-r.oldMinValue===0?i.push(r):l(t)||l(r.synchronizedValue)||(t=h((r.maxValue-r.minValue)/(r.tickValues[u(r.tickValues.length/2)]-r.minValue||r.maxValue)),n=r)}),l(t)&&p(i,function(e,i){var r=i.tickValues[0],a=r*t,o=n.tickValues,s=o[u(o.length/2)];r>0?(i.maxValue=a,i.minValue=0):r<0?(i.minValue=a,i.maxValue=0):0===r&&(i.maxValue=n.maxValue-s,i.minValue=n.minValue-s)})},O={synchronize:function(e){p(g(e),function(e,t){var n,i;if(t.length>1){if(n=b(t),0===n.length||!w(n))return;x(n),k(n),i=C(n),T(n,i),I(n),E(n),p(n,function(){y(this,v)}),A(n)}})}};e.exports=O},function(e,t,n){function i(e){e=e||{};var t=e.enabled,n=f.getMargins();return{x:t&&e.horizontalLine.visible?n.x:0,y:t&&e.verticalLine.visible?n.y:0}}function r(e){return _(e)?0===e.length?[{}]:e:[e]}var a=n(9),o=n(14),s=n(11).extend,l=n(26).inArray,c=n(564),u="defaultAxisName",d=n(565),h=n(580),p=n(514).BaseChart,f=n(581),_=Array.isArray,g=o.isDefined,m=a.each,v=o.noop,y=s,b=n(509),x=b.map,S=p.inherit({_dispose:function(){var e=this,t=this._disposeObjectsInArray;e.callBase(),e.panes=null,e._legend&&(e._legend.dispose(),e._legend=null),t.call(e,"panesBackground"),t.call(e,"seriesFamilies"),e._disposeAxes()},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes()},_populateAxes:function(){function e(){return u+g++}var t,n,a=this,o=[],s=a.panes,c=a._isRotated(),d=a.option("valueAxis")||{},h=a.option("argumentAxis")||{},p=r(h)[0],f=r(d),_=[],g=0,v=i(a._getCrosshairOptions());a._disposeAxes(),n=c?"right"===p.position?s[s.length-1].name:s[0].name:"top"===p.position?s[0].name:s[s.length-1].name,t=x(s,function(e,t){return a._createAxis("argumentAxis",p,{pane:e.name,crosshairMargin:c?v.x:v.y},c,e.name!==n,t)}),m(f,function(t,n){var i=[],r=n.name;return r&&l(r,_)!==-1?void a._incidentOccurred("E2102"):(r&&_.push(r),n.pane&&i.push(n.pane),n.panes&&n.panes.length&&(i=i.concat(n.panes.slice(0))),i=b.unique(i),i.length||i.push(void 0),void m(i,function(i,s){o.push(a._createAxis("valueAxis",n,{name:r||e(),pane:s,priority:t,crosshairMargin:c?v.y:v.x},c))}))}),a._valueAxes=o,a._argumentAxes=t},_prepareStackPoints:function(e,t){var n=e.getPoints(),i=e.getStackName();m(n,function(e,n){var r=n.argument;t[r]||(t[r]={},t[r][null]=[]),i&&!_(t[r][i])&&(t[r][i]=[],m(t[r][null],function(e,n){n.stackName||t[r][i].push(n)})),i?(t[r][i].push(n),t[r][null].push(n)):m(t[r],function(e,t){t.push(n)}),n.stackPoints=t[r][i],n.stackName=i})},_resetStackPoints:function(e){m(e.getPoints(),function(e,t){t.stackPoints=null,t.stackName=null})},_disposeAxes:function(){var e=this,t=e._disposeObjectsInArray;t.call(e,"_argumentAxes"),t.call(e,"_valueAxes")},_drawAxes:function(e,t){this._restoreOriginalBusinessRange(),this._prepareAxesAndDraw(e,t)},_restoreOriginalBusinessRange:v,_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var e=this;return x(e.series,function(t){return t.getOptions().showInLegend?e._getLegendOptions(t):null})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var e,t=this;for(e=0;e<t.series.length;++e)t.series[e].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var e,t=this,n=[],i=[],r=t._themeManager,a=r.getOptions("negativesAsZeroes"),o=r.getOptions("negativesAsZeros"),s={equalBarWidth:r.getOptions("equalBarWidth"),minBubbleSize:r.getOptions("minBubbleSize"),maxBubbleSize:r.getOptions("maxBubbleSize"),barWidth:r.getOptions("barWidth"),negativesAsZeroes:g(a)?a:o};return t.seriesFamilies&&t.seriesFamilies.length?void m(t.seriesFamilies,function(e,t){t.updateOptions(s),t.adjustSeriesValues()}):(m(t.series,function(e,t){l(t.type,n)===-1&&n.push(t.type)}),m(t._getLayoutTargets(),function(r,a){e=t._getSeriesForPane(a.name),m(n,function(n,r){var o=new h.SeriesFamily({type:r,pane:a.name,equalBarWidth:s.equalBarWidth,minBubbleSize:s.minBubbleSize,maxBubbleSize:s.maxBubbleSize,barWidth:s.barWidth,negativesAsZeroes:s.negativesAsZeroes,rotated:t._isRotated()});o.add(e),o.adjustSeriesValues(),i.push(o)})}),void(t.seriesFamilies=i))},_updateSeriesDimensions:function(){var e,t=this,n=t.seriesFamilies||[];for(e=0;e<n.length;e++){var i=n[e];i.updateSeriesValues(),i.adjustSeriesDimensions()}},_getLegendCallBack:function(e){return this._legend&&this._legend.getActionCallback(e)},_appendAxesGroups:function(){var e=this;e._stripsGroup.linkAppend(),e._gridGroup.linkAppend(),e._axesGroup.linkAppend(),e._constantLinesGroup.linkAppend(),e._labelAxesGroup.linkAppend()},_populateBusinessRange:function(){var e=this,t=[],n=e._isRotated(),i=e._argumentAxes,r=new c.Range({rotated:!!n}),a=e._groupsData;e.businessRanges=null,m(i,function(e,t){r.addRange(t.getRangeData())}),e._valueAxes.forEach(function(i){var a=new c.Range({rotated:!!n,pane:i.pane,axis:i.name}),o=i.getRangeData(),s=e.series.filter(function(e){return e.getValueAxis()===i});a.addRange(o),s.forEach(function(e){var t=e.getRangeData();a.addRange(t.val),r.addRange(t.arg)}),a.isDefined()||a.setStubData(i.getOptions().valueType),i.getOptions().showZero&&a.correctValueZeroLevel(),a.checkZeroStick(),i.setBusinessRange(a),t.push({val:a,arg:r})}),r.sortCategories(a.categories),r.isDefined()||r.setStubData(i[0].getOptions().argumentType),e._argumentAxes.forEach(function(e){e.setBusinessRange(r)}),e.businessRanges=t},_getArgumentAxis:function(){return this._argumentAxes[0]},_getArgumentAxes:function(){return this._argumentAxes},_getValueAxes:function(){return this._valueAxes},_getGroupsData:function(){var e=this,t=[];return e._valueAxes.forEach(function(n){t.push({series:e.series.filter(function(e){return e.getValueAxis()===n}),valueAxis:n,valueOptions:n.getOptions()})}),{groups:t,argumentAxes:e._argumentAxes,argumentOptions:e._argumentAxes[0].getOptions()}},_groupSeries:function(){var e=this;e._correctValueAxes(),e._groupsData=e._getGroupsData()},_processValueAxisFormat:function(){var e=[];this.series.forEach(function(t){var n=t.getValueAxis();t.isFullStackedSeries()&&(n.setPercentLabelFormat(),e.push(n))}),this._valueAxes.forEach(function(t){e.indexOf(t)===-1&&t.resetAutoLabelFormat()})},_createAxis:function(e,t,n,i,r,a){var o,s=this,l=y({renderer:s._renderer,incidentOccurred:s._incidentOccurred,axisClass:"argumentAxis"===e?"arg":"val",widgetClass:"dxc",stripsGroup:s._stripsGroup,labelAxesGroup:s._labelAxesGroup,constantLinesGroup:s._constantLinesGroup,axesContainerGroup:s._axesGroup,gridGroup:s._gridGroup},s._getAxisRenderingOptions(e)),c=s._prepareStripsAndConstantLines(e,t,i),u=y(!0,{},c,n,s._prepareAxisOptions(e,c,i));return r&&(u.visible=u.tick.visible=u.minorTick.visible=u.label.visible=!1,u.title={}),o=new d.Axis(l),o.updateOptions(u),!r&&g(a)&&(s._displayedArgumentAxisIndex=a),o},_getTrackerSettings:function(){return y(this.callBase(),{argumentAxis:this._argumentAxes[this._displayedArgumentAxisIndex]})},_prepareStripsAndConstantLines:function(e,t,n){return t=this._themeManager.getOptions(e,t,n),t.strips&&m(t.strips,function(e){t.strips[e]=y(!0,{},t.stripStyle,t.strips[e])}),t.constantLines&&m(t.constantLines,function(e,n){t.constantLines[e]=y(!0,{},t.constantLineStyle,n)}),t},_legendDataField:"series",_adjustSeries:v,_correctValueAxes:v});t.AdvancedChart=S},function(e,t,n){function i(e,t){return t<e}function r(e,t){return t>e}function a(e,t,n,i){var r=c(t);c(e)?r&&i(e,t)&&n(t):r&&n(t)}var o,s=n(14),l=n(11).extend,c=s.isDefined,u=s.isDate,d=n(509).unique,h="min",p="max",f="minVisible",_="maxVisible",g="base",m="axisType";o=t.Range=function(e){e&&l(this,e)},o.prototype={constructor:o,addRange:function(e){var t=this,n=t.categories,o=e.categories,l=function(n,i){a(t[n],e[n],function(e){t[n]=e},i)},u=function(e,n,i){a(t[e],t[n],function(n){c(t[e])&&(t[e]=n)},i)},v=function(n){t[n]=t[n]||e[n]};return s.isDefined(e.stick)&&(t.stick=e.stick),v("addSpiderCategory"),v("percentStick"),v("minSpaceCorrection"),v("maxSpaceCorrection"),v("invert"),v(m),v("dataType"),"logarithmic"===t[m]?v(g):t[g]=void 0,l(h,i),l(p,r),"discrete"===t[m]?(v(f),v(_)):(l(f,i),l(_,r)),l("interval",i),u(h,f,i),u(h,_,i),u(p,_,r),u(p,f,r),void 0===n?t.categories=o:t.categories=o?d(n.concat(o)):n,t},isDefined:function(){return c(this[h])&&c(this[p])||this.categories&&this.categories.length},setStubData:function(e){var t=this,n=(new Date).getFullYear()-1,i="datetime"===e,r=t[m],a="logarithmic"===r?1:0;return"discrete"===r?t.categories=i?[new Date(n,0,1),new Date(n,3,1),new Date(n,6,1),new Date(n,9,1)]:["0","1","2"]:(t[h]=i?new Date(n,0,1):a,t[p]=i?new Date(n,11,31):10),t.stubData=!0,t},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[m]||u(t[p])||u(t[h])?t:(e(h,p),e(f,_),t)},sortCategories:function(e){var t=this.categories,n="datetime"===this.dataType?function(e){return t.map(Number).indexOf(e.valueOf())!==-1}:function(e){return t.indexOf(e)!==-1};e&&t&&(this.categories=e.filter(n))},checkZeroStick:function(){var e=this;return e.min>=0&&e.max>=0?e.minStickValue=0:e.min<=0&&e.max<=0&&(e.maxStickValue=0),e}}},function(e,t,n){function i(e,t){var n=e.getOptions();return O(e,t,n.tick,n.grid,e._getSkippedCategory(),e._translator.getBusinessRange().stubData)}function r(e,t){var n=e.getOptions();return O(e,t,n.minorTick,n.minorGrid)}function a(e,t,n){var i=e.getOptions();return O(e,t,w({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function o(e,t,n){e.forEach(function(e){e[t](n)})}function s(e){o(e,"initCoords")}function l(e){o(e,"drawMark")}function c(e,t){o(e,"drawGrid",t)}function u(e){o(e,"updateTickPosition")}function d(e){o(e,"updateGridPosition")}function h(e){e.forEach(function(e){e.labelBBox=e.label?e.label.getBBox():{x:0,y:0,width:0,height:0}})}function p(e){return e&&e.length}function f(e,t,n){var i=P(e.minVisible)?e.minVisible:e.min,r=P(e.maxVisible)?e.maxVisible:e.max;return x.applyPrecisionByMinDelta(n?r:i,t||0,z(r-i)*t)}function _(e){return"datetime"===e.dataType?function(e,t){return new Date(e.getTime()+t)}:function(e,t){return e+t}}function g(e){var t=e.label,n=e.position,i=e.isHorizontal?K:$,r=e.isHorizontal?Y:X;n!==i&&n!==r&&(n=i),n!==X||t.userAlignment||(t.alignment=$),e.position=n,e.hoverMode=e.hoverMode?e.hoverMode.toLowerCase():"none",t.minSpacing=P(t.minSpacing)?t.minSpacing:W}function m(e,t){var n=180*F.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/F.PI;return n<45?-45:-90}function v(e,t,n){e.forEach(function(e,i){e.label&&(i%t!==0?e.label.remove():n&&n(e,i))})}var y,b=n(9),x=n(509),S=n(14),w=n(11).extend,k=n(26).inArray,C=n(566),T=n(524),E=n(567),A=n(571),I=n(564),O=n(577).tick,M=C.formatLabel,D=C.convertTicksToValues,P=S.isDefined,L=S.isNumeric,B=x.getSignificantDigitPosition,V=x.roundValue,R=x.patchFontOptions,F=Math,z=F.abs,H=F.max,N=F.min,G=b.each,j=S.noop,W=5,U=4,Y=C.top,K=C.bottom,$=C.left,X=C.right,q=C.center;y=t.Axis=function(e){var t=this;t._renderer=e.renderer,t._incidentOccurred=e.incidentOccurred,t._stripsGroup=e.stripsGroup,t._labelAxesGroup=e.labelAxesGroup,t._constantLinesGroup=e.constantLinesGroup,t._axesContainerGroup=e.axesContainerGroup,t._gridContainerGroup=e.gridGroup,t._axisCssPrefix=e.widgetClass+"-"+(e.axisClass?e.axisClass+"-":""),t._setType(e.axisType,e.drawingType),t._createAxisGroups(),t._tickManager=t._createTickManager(),t._translator=t._createTranslator()},y.prototype={constructor:y,_updateIntervalAndBounds:function(){var e,t,n,i,r,a=this,o=a._translator,s=o.getBusinessRange();if(!p(s.categories)){if(t=a._majorTicks,n=t.length,s.isSynchronized||(r=this._tickManager.getTickBounds()),n>1){for(i=z(t[0].value-t[1].value),e=1;e<n-1;e++)i=N(z(t[e].value-t[e+1].value),i);r=w({interval:i},r)}r&&(s.addRange(r),o.reinit())}},_drawAxis:function(){var e=this._options;e.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":e.width,stroke:e.color,"stroke-opacity":e.opacity}).sharp(this._getSharpParam(!0)).append(this._axisLineGroup))},_correctMinForTicks:function(e,t,n){var i,r=z(t-e)/n,a=S.isExponential(r)&&r<1?x.getPrecision(r):B(r),o=V(Number(e),a);return o<e&&(i=F.pow(10,-a),o=x.applyPrecisionByMinDelta(o,i,o+i)),o>t&&(o=e),o},_getTickManagerData:function(){var e=this,t=e._options,n=e._getScreenDelta(),i=e._minBound,r=e._maxBound,a=e._translator.getVisibleCategories()||e._translator.getBusinessRange().categories,o=t.customTicks||(p(a)?a:e._majorTicks&&e._majorTicks.length&&D(e._majorTicks)),s=t.customMinorTicks||e._minorTicks&&e._minorTicks.length&&D(e._minorTicks);return L(i)&&t.type!==C.logarithmic&&(i=e._correctMinForTicks(i,r,n)),{min:i,max:r,customTicks:o,customMinorTicks:s,customBoundTicks:t.customBoundTicks,screenDelta:n}},_getTickManagerTypes:function(){return{axisType:this._options.type,dataType:this._options.dataType}},_getTicksOptions:function(){var e=this._options;return{base:e.type===C.logarithmic?e.logarithmBase:void 0,tickInterval:this._translator.getBusinessRange().stubData?null:e.tickInterval,gridSpacingFactor:e.axisDivisionFactor,minorGridSpacingFactor:e.minorAxisDivisionFactor,numberMultipliers:e.numberMultipliers,incidentOccurred:e.incidentOccurred,setTicksAtUnitBeginning:e.setTicksAtUnitBeginning,showMinorTicks:e.minorTick.visible||e.minorGrid.visible,minorTickInterval:e.minorTickInterval,minorTickCount:e.minorTickCount,showCalculatedTicks:e.tick.showCalculatedTicks,showMinorCalculatedTicks:e.minorTick.showCalculatedTicks}},_createTickManager:function(){return new E.TickManager({},{})},_getMarginsOptions:function(){var e=this._translator.getBusinessRange();return{stick:e.stick||this._options.stick,minStickValue:e.minStickValue,maxStickValue:e.maxStickValue,percentStick:e.percentStick,minSpaceCorrection:e.minSpaceCorrection,maxSpaceCorrection:e.maxSpaceCorrection,minValueMargin:this._options.minValueMargin,maxValueMargin:this._options.maxValueMargin}},_getLabelOptions:function(){return{hasLabelFormat:this._hasLabelFormat,isMarkersVisible:"discrete"!==this._options.type&&this._options.marker.visible,addMinMax:this._options.showCustomBoundaryTicks?this._boundaryTicksVisibility:void 0,forceUserTickInterval:"ignore"===this._options.label.overlappingBehavior.mode||this._options.forceUserTickInterval}},_updateTickManager:function(){var e=this,t=w(!0,e._getMarginsOptions(),e._getTicksOptions(),e._getLabelOptions());this._tickManager.update(e._getTickManagerTypes(),e._getTickManagerData(),t)},_correctLabelFormat:function(){var e=this._tickManager.getOptions().labelFormat;e&&(this._options.label.format=e)},_createPathElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp(this._getSharpParam())},_getGridLineDrawer:function(e){var t=this,n=t._isHorizontal;return function(i,r){t.borderOptions=e;var a,o=n?$:Y,s=n?X:K,l=t.getCanvas(),c={left:l.left,right:l.width-l.right,top:l.top,bottom:l.height-l.bottom},u=e.visible&&e[o]?c[o]:void 0,d=e.visible&&e[s]?c[s]:void 0,h=n?"x":"y",p=U+u,f=d-U;if(!(void 0===i.coords[h]||i.coords[h]<p||i.coords[h]>f)){var _=t._getGridPoints(i.coords);return _.points&&(a=t._createPathElement(_.points,r)),a}}},_getGridPoints:function(e){var t=this._isHorizontal,n=t?"x":"y",i=this._orthogonalPositions,r=i.start,a=i.end;return{points:t?null!==e[n]?[e[n],r,e[n],a]:null:null!==e[n]?[r,e[n],a,e[n]]:null}},_getConstantLinePos:function(e,t,n){var i=this._validateUnit(e,"E2105","constantLine"),r=this._getTranslatedCoord(i);return!P(r)||r<N(t,n)||r>H(t,n)?{}:{value:r,parsedValue:i}},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)},_drawConstantLinesAndLabels:function(e,t,n,i){if(!P(t.value))return{line:null,label:null,options:t};var r,a=this,o=a._getConstantLinePos(t.value,n,i),s=t.label||{},l=o.value,c={stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle},u=a._axisConstantLineGroups[e];return u||(r=a._isHorizontal?s.verticalAlignment:s.horizontalAlignment,u=a._axisConstantLineGroups[r]),P(l)?{line:a._createConstantLine(l,c).append(a._axisConstantLineGroups.inside),label:s.visible?a._drawConstantLineLabels(o.parsedValue,s,l,u):null,options:t,labelOptions:s,coord:l}:{line:null,label:null,options:t}},_drawConstantLines:function(e){var t=this,n=t._getCanvasStartEnd();return t._translator.getBusinessRange().stubData?[]:(t._options.constantLines||[]).reduce(function(i,r){var a=r.label.position;return(a===e||!a&&"inside"===e)&&i.push(t._drawConstantLinesAndLabels(e,r,n.start,n.end)),i},[])},_drawConstantLineLabelText:function(e,t,n,i,r){var a=this,o=a._options,s=o.label;return a._renderer.text(e,t,n).css(R(w({},s.font,i.font))).attr({align:"center"}).append(r)},_drawConstantLineLabels:function(e,t,n,i){var r,a=this,o=t.text,s=a._options,l=s.label;return a._checkAlignmentConstantLineLabels(t),o=P(o)?o:M(e,l),r=a._getConstantLineLabelsCoords(n,t),a._drawConstantLineLabelText(o,r.x,r.y,t,i)},_getStripPos:function(e,t,n,i,r){var a,o,s,l,c,u=!(!r.minVisible&&!r.maxVisible),d=r.categories||[],h=r.minVisible;if(!u&&P(e)&&P(t)){if(l=k(e,d),c=k(t,d),l===-1||c===-1)return{from:0,to:0};l>c&&(s=t,t=e,e=s)}return P(e)?(e=this._validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1),!P(a)&&u&&(a=e<h?n:i)):a=n,P(t)?(t=this._validateUnit(t,"E2105","strip"),o=this._getTranslatedCoord(t,1),!P(o)&&u&&(o=t>h?i:n)):o=i,a<o?{from:a,to:o}:{from:o,to:a}},_getStripGraphicAttributes:function(e,t){var n,i,r,a,o=this._orthogonalPositions,s=o.start,l=o.end;return this._isHorizontal?(n=e,i=N(s,l),r=t-e,a=z(s-l)):(n=N(s,l),i=e,r=z(s-l),a=z(e-t)),{x:n,y:i,width:r,height:a}},_createStrip:function(e,t,n){var i=this._getStripGraphicAttributes(e,t);return this._renderer.rect(i.x,i.y,i.width,i.height).attr(n)},_drawStrips:function(){var e,t,n,i,r,a,o=this,s=o._options,l=s.strips,c=this._getCanvasStartEnd(),u=o._translator.getBusinessRange(),d=[];if(!l||u.stubData)return[];for(e=0;e<l.length;e++)if(t=l[e],i=t.label||{},r={fill:t.color},(P(t.startValue)||P(t.endValue))&&P(t.color)){if(n=o._getStripPos(t.startValue,t.endValue,c.start,c.end,u),a=i.text?o._getStripLabelCoords(n.from,n.to,i):null,n.to-n.from===0||!P(n.to)||!P(n.from))continue;d.push({rect:o._createStrip(n.from,n.to,r).append(o._axisStripGroup),options:t,label:i.text?o._drawStripLabel(i,a):null,labelCoords:a})}return d},_drawStripLabel:function(e,t){return this._renderer.text(e.text,t.x,t.y).css(R(w({},this._options.label.font,e.font))).attr({align:"center"}).append(this._axisStripLabelGroup)},_adjustStripLabels:function(){var e=this;this._strips.forEach(function(t){t.label&&t.label.attr(e._getAdjustedStripLabelCoords(t))})},_adjustLabels:function(e){var t=this,n=t._majorTicks.reduce(function(e,t){var n=t.labelRotationAngle?x.rotateBBox(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:H(e.width||0,n.width),height:H(e.height||0,n.height),offset:H(e.offset||0,t.labelOffset||0)}},{}),i=t._isHorizontal?n.height:n.width;return t._majorTicks.forEach(function(i){i.label&&i.label.attr(t._getLabelAdjustedCoord(i,e+(i.labelOffset||0),n.width))}),e+i+(i&&t._options.label.indentFromAxis)+n.offset},_getLabelAdjustedCoord:function(e,t,n){t=t||0;var i,r,a=this,o=a._options,s=x.rotateBBox(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle||0),l=o.position,c=e.labelAlignment||o.label.alignment,u=o.label.indentFromAxis,d=a._axisPosition,h=e.labelCoords,p=h.x;return a._isHorizontal?(r=l===K?d+u-s.y+t:d-u-(s.y+s.height)-t,i=c===X?p-s.x-s.width:c===$?p-s.x:p-s.x-s.width/2):(r=h.y-s.y-s.height/2,l===$?(i=c===$?d-u-n-s.x:c===q?d-u-n/2-s.x-s.width/2:d-u-s.x-s.width,i-=t):(i=c===X?d+u+n-s.x-s.width:c===q?d+u+n/2-s.x-s.width/2:d+u-s.x,i+=t)),{translateX:i,translateY:r}},_createAxisGroups:function(){var e,t,n,i=this,r=i._renderer,a=i._axisCssPrefix,o=a+"constant-lines";i._axisGroup=r.g().attr({"class":a+"axis"}),i._axisStripGroup=r.g().attr({"class":a+"strips"}),i._axisGridGroup=r.g().attr({"class":a+"grid"}),i._axisElementsGroup=r.g().attr({"class":a+"elements"}).append(i._axisGroup),i._axisLineGroup=r.g().attr({"class":a+"line"}).append(i._axisGroup),i._axisTitleGroup=r.g().attr({"class":a+"title"}).append(i._axisGroup),e=r.g().attr({"class":o}),t=r.g().attr({"class":o}),n=r.g().attr({"class":o}),i._axisConstantLineGroups={inside:e,outside1:t,left:t,top:t,outside2:n,right:n,bottom:n},i._axisStripLabelGroup=r.g().attr({"class":a+"axis-labels"})},_clearAxisGroups:function(){var e=this;e._axisGroup.remove(),e._axisStripGroup.remove(),e._axisStripLabelGroup.remove(),e._axisConstantLineGroups.inside.remove(),e._axisConstantLineGroups.outside1.remove(),e._axisConstantLineGroups.outside2.remove(),e._axisGridGroup.remove(),e._axisTitleGroup.clear(),e._axisElementsGroup.clear(),e._axisLineGroup&&e._axisLineGroup.clear(),e._axisStripGroup&&e._axisStripGroup.clear(),e._axisGridGroup&&e._axisGridGroup.clear(),e._axisConstantLineGroups.inside.clear(),e._axisConstantLineGroups.outside1.clear(),e._axisConstantLineGroups.outside2.clear(),e._axisStripLabelGroup&&e._axisStripLabelGroup.clear()},_formatTickLabel:function(e){return M(e,this._options.label,{min:this._minBound,max:this._maxBound})},_setTickOffset:function(){var e=this._options,t=e.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==t||!t)},getMargins:function(){
var e=this,t=e._options,n=t.position,i=t.placeholderSize,r=e.getCanvas(),a=r.left,o=r.top,s=r.width-r.right,l=r.height-r.bottom,c=[e._axisElementsGroup,e._axisConstantLineGroups.outside1,e._axisConstantLineGroups.outside2].map(function(e){return e&&e.getBBox()}).concat(function(t){var n=t&&t.getBBox();return!n||n.isEmpty?n:(e._isHorizontal?(n.x=a,n.width=s-a):(n.y=o,n.height=l-o),n)}(e._axisTitleGroup)),u=c.reduce(function(e,t){return!t||t.isEmpty?e:{left:H(e.left,a-t.x),top:H(e.top,o-t.y),right:H(e.right,t.x+t.width-s),bottom:H(e.bottom,t.y+t.height-l)}},{left:0,right:0,top:0,bottom:0});return u[n]+=t.crosshairMargin,i&&(u[n]=i),u},_validateUnit:function(e,t,n){var i=this;return e=i.parser(e),void 0===e&&t&&i._incidentOccurred(t,[n]),e},_setType:function(e,t){var i,r=this;switch(e){case"xyAxes":i=n(578);break;case"polarAxes":i=n(579)}G(i[t],function(e,t){r[e]=t})},_getSharpParam:function(){return!0},dispose:function(){var e=this;e._axisElementsGroup&&e._axisElementsGroup.dispose(),e._strips=null,e._title=null,e._axisStripGroup=e._axisConstantLineGroups=e._axisStripLabelGroup=null,e._axisLineGroup=e._axisElementsGroup=e._axisGridGroup=null,e._axisGroup=e._axisTitleGroup=null,e._axesContainerGroup=e._stripsGroup=e._constantLinesGroup=null,e._renderer=e._options=e._textOptions=e._textFontStyles=null,e._translator=null,e._majorTicks=e._minorTicks=null,e._tickManager=null},getOptions:function(){return this._options},setPane:function(e){this.pane=e,this._options.pane=e},setTypes:function(e,t,n){this._options.type=e||this._options.type,this._options[n]=t||this._options[n]},resetTypes:function(e){this._options.type=this._initTypes.type,this._options[e]=this._initTypes[e]},getTranslator:function(){return this._translator},updateOptions:function(e){var t=this,n=e.label;t._options=e,e.tick=e.tick||{},e.minorTick=e.minorTick||{},e.grid=e.grid||{},e.minorGrid=e.minorGrid||{},e.title=e.title||{},e.marker=e.marker||{},t._initTypes={type:e.type,argumentType:e.argumentType,valueType:e.valueType},g(e),t._setTickOffset(),t._isHorizontal=e.isHorizontal,t.pane=e.pane,t.name=e.name,t.priority=e.priority,t._hasLabelFormat=""!==n.format&&P(n.format),t._textOptions={opacity:n.opacity,align:"center"},t._textFontStyles=x.patchFontOptions(n.font),e.type===C.logarithmic&&(e.logarithmBaseError&&(t._incidentOccurred("E2104"),delete e.logarithmBaseError),t.calcInterval=function(t,n){return x.getLog(t/n,e.logarithmBase)}),t._updateTranslator()},_processCanvas:function(e){return e},updateCanvas:function(e){var t=this._orthogonalPositions={start:this._isHorizontal?e.top:e.left,end:this._isHorizontal?e.height-e.bottom:e.width-e.right};this._canvas=e,t.center=t.start+(t.end-t.start)/2,this._translator.updateCanvas(this._processCanvas(e)),this._initAxisPositions()},getCanvas:function(){return this._canvas},hideTitle:function(){var e=this;e._options.title.text&&(e._incidentOccurred("W2105",[e._isHorizontal?"horizontal":"vertical"]),e._axisTitleGroup.clear())},hideOuterElements:function(){var e=this,t=e._options,n=e._outsideConstantLines.map(function(e){return e.label});!t.label.visible&&!n.length||e._translator.getBusinessRange().stubData||(e._incidentOccurred("W2106",[e._isHorizontal?"horizontal":"vertical"]),e._axisElementsGroup.clear(),n.forEach(function(e){e&&e.remove()}))},_saveBusinessRange:function(){this._storedBusinessRange=new I.Range(this._translator.getBusinessRange())},restoreBusinessRange:function(){var e=this._zoomArgs,t=new I.Range(this._storedBusinessRange);e?this.zoom(e.min,e.max,e.stick):this._updateBusinessRange(t)},_applyMargins:function(e){var t,n,i=this._options,r=i.type,a=i.valueMarginsEnabled&&"logarithmic"!==r&&"discrete"!==r,o=_(e);a&&(t=f(e,i.minValueMargin),n=f(e,i.maxValueMargin,!0),e.addRange({min:o(e.min,-t),max:o(e.max,n),minVisible:P(e.minVisible)?o(e.minVisible,-t):void 0,maxVisible:P(e.maxVisible)?o(e.maxVisible,n):void 0}))},setBusinessRange:function(e){this._applyMargins(e),this._updateBusinessRange(e),this._saveBusinessRange(e)},_updateBusinessRange:function(e){var t=this;t._translator.updateBusinessRange(e),t._minBound=e.minVisible,t._maxBound=e.maxVisible},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,r=e._axisPosition;return n===Y||n===$?r-i:r+i},getFormattedValue:function(e,t,n){var i=this._options.label;return P(e)?M(e,w(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(){var e=this._translator.getVisibleCategories()||this._translator.getBusinessRange().categories;return p(e)&&this._tickOffset?[e[0],e[e.length-1]]:this._tickManager.getBoundaryTicks()},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:D(this._majorTicks),minorTicksValues:D(this._minorTicks)}},setTicks:function(e){this._majorTicks=(e.majorTicks||[]).map(i(this,this._renderer)),this._minorTicks=(e.minorTicks||[]).map(r(this,this._renderer)),this._updateTickManager()},createTicks:function(e){var t,n=this,o=n._renderer,s=n._tickManager;return e?(n.updateCanvas(e),n._majorTicks=n._minorTicks=null,n._updateTickManager(),n._majorTicks=s.getTicks().map(i(this,o)),n._minorTicks=s.getMinorTicks().map(r(this,o)),n.correctTicksOnDeprecated(),t=n._getBoundaryTicks(),this._options.showCustomBoundaryTicks&&t.length&&(n._boundaryTicks=[t[0]].map(a(this,o,!0)),t.length>1&&(n._boundaryTicks=n._boundaryTicks.concat([t[1]].map(a(this,o,!1))))),n._correctLabelFormat(),void n._updateIntervalAndBounds()):void n._updateIntervalAndBounds()},correctTicksOnDeprecated:function(){var e=this._options.label.overlappingBehavior,t=this._majorTicks,n=t.length;n&&(t[0].withoutLabel=e.hideFirstLabel,t[n-1].withoutLabel=e.hideLastLabel,t[0].withoutPath=e.hideFirstTick,t[n-1].withoutPath=e.hideLastTick)},draw:function(e,t){var n=this,i=n._getGridLineDrawer(t||{visible:!1});n.createTicks(e),n._clearAxisGroups(),s(n._majorTicks),s(n._minorTicks),s(n._boundaryTicks||[]),n._drawAxis(),n._drawTitle(),l(n._majorTicks),l(n._minorTicks),l(n._boundaryTicks||[]),c(n._majorTicks,i),c(n._minorTicks,i),o(n._majorTicks,"drawLabel"),n._outsideConstantLines=n._drawConstantLines("outside"),n._insideConstantLines=n._drawConstantLines("inside"),n._strips=n._drawStrips(),n._dateMarkers=n._drawDateMarkers()||[],n._axisGroup.append(n._axesContainerGroup),n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.inside.append(n._constantLinesGroup),n._axisConstantLineGroups.outside1.append(n._constantLinesGroup),n._axisConstantLineGroups.outside2.append(n._constantLinesGroup)),n._measureTitle(),h(n._majorTicks),h(n._outsideConstantLines),h(n._insideConstantLines),h(n._strips),h(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var r=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().stubData||(n._setLabelsPlacement(),r=n._adjustLabels(r)),r=n._adjustDateMarkers(r),n._adjustTitle(r)},_measureTitle:j,updateSize:function(e){var t=this;t.updateCanvas(e);var n=t._getCanvasStartEnd();s(t._majorTicks),s(t._minorTicks),s(t._boundaryTicks||[]),t._updateAxisElementPosition(),u(t._majorTicks),u(t._minorTicks),u(t._boundaryTicks||[]),o(t._majorTicks,"updateLabelPosition"),t._outsideConstantLines.concat(t._insideConstantLines||[]).forEach(function(e){var i=t._getConstantLinePos(e.options.value,n.start,n.end).value;e.label&&e.label.attr(t._getConstantLineLabelsCoords(i,e.labelOptions)),e.line&&e.line.attr(t._getConstantLineGraphicAttributes(i))}),(t._strips||[]).forEach(function(e){var i=t._translator.getBusinessRange(),r=t._getStripPos(e.options.startValue,e.options.endValue,n.start,n.end,i);e.label&&e.label.attr(t._getStripLabelCoords(r.from,r.to,e.options.label)),e.rect&&e.rect.attr(t._getStripGraphicAttributes(r.from,r.to))}),t._updateTitleCoords(),t._checkTitleOverflow(),d(t._majorTicks),d(t._minorTicks)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},validate:function(e){var t=this,n=t._options,i=e?n.argumentType:n.valueType,r=i?T.getParser(i):function(e){return e};t.parser=r,n.dataType=i,void 0!==n.min&&(n.min=t._validateUnit(n.min,"E2106")),void 0!==n.max&&(n.max=t._validateUnit(n.max,"E2106")),void 0!==t._minBound&&(t._minBound=t._validateUnit(t._minBound)),void 0!==t._maxBound&&(t._maxBound=t._validateUnit(t._maxBound))},zoom:function(e,t,n){var i=this,r=i._options.min,a=i._options.max,o=n,s=new I.Range(this._storedBusinessRange),l=this._translator.getBusinessRange(),c=i._options.type===C.discrete;return n=n||c,e=i._validateUnit(e),t=i._validateUnit(t),!c&&P(e)&&P(t)&&e>t&&(t=[e,e=t][0]),n||(void 0!==r&&(e=r>e?r:e,t=r>t?r:t),void 0!==a&&(t=a<t?a:t,e=a<e?a:e)),i._zoomArgs={min:e,max:t,stick:o},s.minVisible=e,s.maxVisible=t,o&&!c&&(s.min=l.min,s.max=l.max,s.stick=o),this._updateBusinessRange(s),i._zoomArgs},resetZoom:function(){this._zoomArgs=null},getViewport:function(){var e=this,t=e._options.min,n=e._options.max;return e._zoomArgs?e._zoomArgs:P(t)||P(n)?{min:t,max:n}:void 0},getRangeData:function(){var e,t,n,i,r=this,a=r._options,o=r._getMinMax(),s=o.min,l=o.max,c=r._zoomArgs||{},u=a.type;return u===C.logarithmic&&(s=s<=0?void 0:s,l=l<=0?void 0:l),u!==C.discrete?(e=s,t=l,P(s)&&P(l)&&(e=s<l?s:l,t=l>s?l:s),n=P(c.min)?c.min:e,i=P(c.max)?c.max:t):(n=P(c.min)?c.min:s,i=P(c.max)?c.max:l),{min:e,max:t,stick:r._getStick(),categories:a.categories,dataType:a.dataType,axisType:u,base:a.logarithmBase,invert:a.inverted,addSpiderCategory:r._getSpiderCategoryOption(),minVisible:n,maxVisible:i}},getFullTicks:function(){return this._tickManager.getFullTicks()},measureLabels:function(e){var t,n,i,r,a=this,o=a._options,s=o.visible?o.width:0,l=e?o.label.indentFromAxis+.5*o.tick.length:0;return o.label.visible&&a._axisElementsGroup?(t=a._tickManager.getTicks(),n=t.reduce(function(e,t,n){var i=a._formatTickLabel(t);return e[0].length<i.length?[i,t]:e},[a._formatTickLabel(t[0]),t[0]]),i=a._renderer.text(n[0],0,0).css(a._textFontStyles).attr(a._textOptions).append(a._renderer.root),r=i.getBBox(),i.remove(),{x:r.x,y:r.y,width:r.width+l,height:r.height+l}):{height:s,width:s,x:0,y:0}},_setLabelsPlacement:function(){if(this._options.label.visible){var e,t,n=this,i=n._options.label,r=n._validateDisplayMode(i.displayMode),a=n._validateOverlappingMode(i.overlappingBehavior.mode,r),o=i.overlappingBehavior.rotationAngle,s=i.overlappingBehavior.staggeringSpacing,l="none"===a||"ignore"===a,c={rotationAngle:P(o)?o:i.rotationAngle,staggeringSpacing:P(s)?s:i.staggeringSpacing},u=n._majorTicks.map(function(e){return e.labelBBox});switch(t=n._getStep(u),r){case"rotate":l&&(e=!0,t=1),n._applyLabelMode(r,t,u,i,e);break;case"stagger":l&&(t=2),n._applyLabelMode(r,H(t,2),u,i);break;default:n._applyLabelOverlapping(u,a,t,c)}}},_applyLabelOverlapping:function(e,t,n,i){var r=this,a=r._options.label,o=r._majorTicks;if("none"!==t&&"ignore"!==t){var s=function(e,t,n){return 0!==t&&C.areLabelsOverlap(e,n[t-1],a.minSpacing,a.alignment)};n>1&&e.some(s)&&r._applyLabelMode(t,n,e,i),"hide"===t&&r._checkBoundedLabelsOverlapping(n,o,e)}},_applyLabelMode:function(e,t,n,i,r){var a,o,s,l=this,c=l._majorTicks,u=l._options.label,d=i.rotationAngle;switch(e){case"rotate":u.userAlignment||(o=d<0?X:$,d%90===0&&(o=q)),t=r?t:l._getStep(n,d),s=function(e){e.label.rotate(d),e.labelRotationAngle=d,o&&(e.labelAlignment=o)},v(c,t,s);break;case"stagger":a=l._getMaxLabelHeight(l._options.position===Y,n,i.staggeringSpacing),s=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=a)},v(c,t-1,s);break;case"auto":case"_auto":2===t?l._applyLabelMode("stagger",t,n,i):l._applyLabelMode("rotate",t,n,{rotationAngle:m(n,u)});break;default:v(c,t)}},getMarkerTrackers:j,_drawDateMarkers:j,_adjustDateMarkers:j,coordsIn:j,_getSkippedCategory:j,_initAxisPositions:j,_drawTitle:j,_updateTitleCoords:j,_adjustConstantLineLabels:j,_createTranslator:function(){return new A.Translator2D({},{},{})},_updateTranslator:function(){this._translator.update({},{},{isHorizontal:this._isHorizontal,interval:this._options.semiDiscreteInterval})},_adjustTitle:j,_checkTitleOverflow:j,getSpiderTicks:j,setSpiderTicks:j,_checkBoundedLabelsOverlapping:j}},function(e,t,n){function i(e,t,n,i){var r={value:e,valueText:o(e,t)||""};return n&&(r.min=n.min,r.max=n.max),i&&(r.point=i),r}var r=n(14).isFunction,a=n(509).map,o=n(530);e.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",canvasPositionPrefix:"canvas_position_",canvasPositionTop:"canvas_position_top",canvasPositionBottom:"canvas_position_bottom",canvasPositionLeft:"canvas_position_left",canvasPositionRight:"canvas_position_right",canvasPositionStart:"canvas_position_start",canvasPositionEnd:"canvas_position_end",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return a(e||[],function(e){return e.value})},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},formatLabel:function(e,t,n,a){var o=i(e,t,n,a);return r(t.customizeText)?t.customizeText.call(o,o):o.valueText},formatHint:function(e,t,n){var a=i(e,t,n);return r(t.customizeHint)?t.customizeHint.call(a,a):void 0},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i<e.length&&!(Math.abs(e[i].coords[t]-e[0].coords[t])>=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var r,a,o=e.x>t.x,s=e.y>t.y,l=e.x,c=t.x,u=e.width,d=t.width;return"center"===i?(l-=u/2,c-=d/2):"right"===i&&(l-=u,c-=d),r=o?c+d+n>l:l+u+n>c,a=s?t.y+t.height>e.y:e.y+e.height>t.y,r&&a}}},function(e,t,n){function i(e){var t,n=e[0],i=[n.obj],r=e.length,a=1;for(a;a<r;a++)t=e[a],n.value!==t.value&&(i.push(t.obj),n=t);return i}function r(e,t){if(!e.length&&!t.length)return[];var n=e.concat(t),r=[],a=n.length,o=!1,s=0;for(s;s<a;s++)null!==n[s]?r.push({obj:n[s],value:n[s].valueOf()}):o=!0;return r.sort(function(e,t){return e.value-t.value}),r=i(r),o&&r.push(null),r}function a(e){if(!v(e)){var t=new Date;e=y(t,e)-t}return e}function o(e,t,n){if(n&&e)return e;if(!e)return t;var i=a(e),r=a(t);return v(i)&&v(r)&&i>r?e:t}var s,l=n(9),c=n(568),u=n(569),d=n(570),h=n(63),p=n(14),f=n(26).inArray,_=n(11).extend,g=n(66),m=p.isDefined,v=p.isNumeric,y=h.addInterval,b=n(509),x=b.adjustValue,S=b.map,w=l.each,k=f,C=p.noop,T=30,E=15,A=[1,2,3,5],I=2e3,O=2;t.discrete=_({},c.continuous,{_calculateMinorTicks:C,_findTickInterval:C,_createTicks:function(){return[]},_generateBounds:C,_correctMin:C,_correctMax:C,_findBusinessDelta:C,_addBoundedTicks:C,getFullTicks:function(){return this._customTicks},getMinorTicks:function(){return[]},_findTickIntervalForCustomTicks:function(){return 1}}),s=t.TickManager=function(e,t,n){n=n||{},this.update(e||{},t||{},n)},s.prototype={constructor:s,dispose:function(){this._ticks=null,this._minorTicks=null,this._boundaryTicks=null,this._options=null},update:function(e,t,n){this._updateOptions(n||{}),this._min=t.min,this._updateTypes(e||{}),this._updateData(t||{})},_updateMinMax:function(e){var t=e.min||0,n=e.max||0,i=this._applyMinMaxMargins(t,n);this._min=this._originalMin=i.min,this._max=this._originalMax=i.max,this._updateBusinessDelta()},_updateBusinessDelta:function(){this._businessDelta=this._findBusinessDelta&&this._findBusinessDelta(this._min,this._max)},_updateTypes:function(e){var t=this,n=t._validateAxisType(e.axisType),i=t._validateDataType(e.dataType);t._resetMethods(),this._axisType=n,this._dataType=i,this._initMethods()},_updateData:function(e){e=_({},e),e.min=m(e.min)?e.min:this._originalMin,e.max=m(e.max)?e.max:this._originalMax,this._updateMinMax(e),this._customTicks=e.customTicks&&e.customTicks.slice(),this._customMinorTicks=e.customMinorTicks,this._customBoundTicks=e.customBoundTicks,this._screenDelta=e.screenDelta||0},_updateOptions:function(e){var t;this._options=t=e,t.gridSpacingFactor=t.gridSpacingFactor||T,t.minorGridSpacingFactor=t.minorGridSpacingFactor||E,t.numberMultipliers=t.numberMultipliers||A},getTickBounds:function(){return{minVisible:this._minBound,maxVisible:this._maxBound}},getTicks:function(){var e=this,t=e._options;return e._ticks=e._calculateMajorTicks(),e._checkLabelFormat(),e._generateBounds(),t.showMinorTicks&&(e._minorTicks=e._calculateMinorTicks()),e._addBoundedTicks(),e._ticks},getMinorTicks:function(){return r(this._minorTicks||[],[])},getFullTicks:function(){var e=this,t=e._ticks&&!e._minorTicks,n=t?e._calculateMinorTicks():e._minorTicks||[];return r(e._ticks||[],n.concat(e.getBoundaryTicks()))},getBoundaryTicks:function(){return this._boundaryTicks||[]},getTickInterval:function(){return this._tickInterval},getMinorTickInterval:function(){return this._minorTickInterval},getOptions:function(){return this._options},_calculateMajorTicks:function(){var e,t=this;return t._options.showCalculatedTicks||!t._customTicks?e=t._createTicks(t._options.showCalculatedTicks?t._customTicks||[]:[],t._findTickInterval(),t._min,t._max):(e=t._customTicks.slice(),t._tickInterval=e.length>1?t._findTickIntervalForCustomTicks():0),e},_applyMinMaxMargins:function(e,t){var n=e>t?t:e,i=t>e?t:e;return this._minCorrectionEnabled=this._getCorrectionEnabled(e,"min"),this._maxCorrectionEnabled=this._getCorrectionEnabled(t,"max"),{min:n,max:i}},_checkBoundedTickInArray:function(e,t){var n=S(t||[],function(e){return e.valueOf()}),i=k(e.valueOf(),n);i!==-1&&t.splice(i,1)},_checkLabelFormat:function(){var e=this._options;"datetime"===this._dataType&&!e.hasLabelFormat&&this._ticks.length&&(e.labelFormat=e.isMarkersVisible?h.getDateFormatByTickInterval(this._tickInterval):g.getDateFormatByTicks(this._ticks))},_generateBounds:function(){var e=this,t=e._getBoundInterval(),n=e._options.stick,i=e._options.minStickValue,r=e._options.maxStickValue,a=e._minCorrectionEnabled&&!n?e._getNextTickValue(e._min,t,!0):e._originalMin,o=e._maxCorrectionEnabled&&!n?e._getNextTickValue(e._max,t):e._originalMax;e._minBound=a<i?i:a,e._maxBound=o>r?r:o},_addBoundedTicks:function(){function e(e){t._boundaryTicks.push(e),t._checkBoundedTickInArray(e,t._minorTicks)}var t=this,n=S(t._ticks,function(e){return e.valueOf()}),i=t._customBoundTicks,r=t._originalMin,a=t._originalMax,o=t._options.addMinMax||{};t._boundaryTicks=[],i?(o.min&&m(i[0])&&e(i[0]),o.max&&m(i[1])&&e(i[1])):(o.min&&k(r.valueOf(),n)===-1&&e(r),o.max&&k(a.valueOf(),n)===-1&&e(a))},_getCorrectionEnabled:function(e,t){var n=this._options||{},i=n.percentStick&&1===Math.abs(e),r=n[t+"ValueMargin"];return!i&&!r},_validateAxisType:function(e){var t="continuous",n={continuous:!0,discrete:!0,logarithmic:!0};return n[e]?e:t},_validateDataType:function(e){var t={numeric:!0,datetime:!0,string:!0};return t[e]||(e=m(this._min)?this._getDataType(this._min):"numeric"),e},_getDataType:function(e){return p.isDate(e)?"datetime":"numeric"},_getMethods:function(){var e;if("continuous"===this._axisType)e="datetime"===this._dataType?u.datetime:c.continuous;else switch(this._axisType){case"discrete":e=t.discrete;break;case"logarithmic":e=d.logarithmic;break;default:e=c.continuous}return e},_resetMethods:function(){var e=this,t=e._getMethods();w(t,function(t){e[t]&&delete e[t]})},_initMethods:function(e){var t=this;e=e||t._getMethods(),w(e,function(e,n){t[e]=n})},_getDeltaCoef:function(e,t,n){var i;return n=n||this._options.gridSpacingFactor,e=e||this._screenDelta,t=t||this._businessDelta,i=e/n,i=i<=1?O:i,t/i},_adjustNumericTickValue:function(e,t,n){return p.isExponential(e)?x(e):b.applyPrecisionByMinDelta(n,t,e)},_isTickIntervalCorrect:function(e,t,n){var i;if(n=n||this._businessDelta,!v(e)&&(i=new Date,e=y(i,e)-i,!e))return!1;if(v(e)){if(!(e>0&&n/e>t))return!0;this._options.incidentOccurred&&this._options.incidentOccurred("W2003")}return!1},_correctValue:function(e,t,n){var i=this,r="_"+e+"CorrectionEnabled",a=e+"SpaceCorrection",o="_"+e,s=i._options.minStickValue,l=i._options.maxStickValue;i[r]&&(i._options[a]&&(i[o]=i._getNextTickValue(i[o],t,"min"===e)),n.call(this,t)),"min"===e&&(i[o]=i[o]<s?s:i[o]),"max"===e&&(i[o]=i[o]>l?l:i[o])},_findTickInterval:function(){var e,t=this,n=t._options,i=t._getInterval(),r=t._isTickIntervalValid(n.tickInterval)&&t._isTickIntervalCorrect(n.tickInterval,I)&&n.tickInterval;return e=o(r,i,n.forceUserTickInterval),t._isTickIntervalValid(e)&&(t._correctValue("min",e,t._correctMin),t._correctValue("max",e,t._correctMax),t._updateBusinessDelta()),t._tickInterval=e,e},_findMinorTickInterval:function(e,t){var n=this,i=n._ticks,r=n._options.stick?i.length-1:i.length;return r<1&&(r=1),n._getMinorInterval(n._screenDelta/r,n._findBusinessDelta(e,t,!1)),n._minorTickInterval},_createMinorTicks:function(e,t,n){var i=this,r=i._findMinorTickInterval(t,n),a=!1,o=!1,s=!1,l=i._getNextTickValue(t,r,a,o,s);return i._isTickIntervalValid(r)&&(e=i._createCountedTicks(e,r,l,n,i._minorTickCount,a,o,s)),e},_calculateMinorTicks:function(){var e=this,t=e._options,n=[],i=e._ticks,r=i.length,a=e._hasUnitBeginningTickCorrection(),o=a?1:0;if(t.showMinorCalculatedTicks||!e._customMinorTicks){if(i.length){for(n=e._getBoundedMinorTicks(n,e._minBound,i[0],!0),a&&(n=e._getUnitBeginningMinorTicks(n)),o;o<r-1;o++)n=e._createMinorTicks(n,i[o],i[o+1]);n=e._getBoundedMinorTicks(n,e._maxBound,i[r-1])}else n=e._createMinorTicks(n,e._minBound,e._maxBound);t.showMinorCalculatedTicks&&(n=n.concat(e._customMinorTicks||[]))}else n=e._customMinorTicks;return n},_createCountedTicks:function(e,t,n,i,r,a,o){var s,l=n;for(s=0;s<r;s++)o===!1&&l.valueOf()===i.valueOf()||e.push(l),l=this._getNextTickValue(l,t,!1,a,!1);return e},_createTicks:function(e,t,n,i,r,a,o){var s,l,c,u=this,d=n,h=n;if(u._isTickIntervalValid(t)){c=n-i<0;do{if(d=h,u._options.stick?d>=u._originalMin&&d<=u._originalMax&&e.push(d):e.push(d),h=u._getNextTickValue(d,t,r,a,o),d.valueOf()===h.valueOf())break;s=h-n>=0,l=i-h>=0}while(c===s&&c===l)}else e.push(d);return e},_getBoundedMinorTicks:function(e,t,n,i){var r,a,o=this,s=!1,l=o._tickInterval?this._getNextTickValue(n,o._tickInterval,i,!0,s):t,c=o._findMinorTickInterval(n,l),u=o._isTickIntervalCorrect(c,I,o._findBusinessDelta(n,t,!1)),d=t.valueOf();if(u&&o._isTickIntervalValid(c)&&o._minorTickCount>0){if(i){if(n.valueOf()<=d)return e;for(;l.valueOf()<d;)l=this._getNextTickValue(l,c,!1,!1,s);r=l,a=o._getNextTickValue(n,c,!0,!1,!1)}else r=o._getNextTickValue(n,c,!1,!1,!1),a=t;e=o._createTicks(e,c,r,a,!1,!1,s)}return e}}},function(e,t,n){var i=n(509),r=n(14),a=r.isDefined,o=i.adjustValue,s=Math,l=s.abs,c=s.ceil,u=s.floor,d=r.noop,h=200,p=[2,4,5,8,10];t.continuous={_hasUnitBeginningTickCorrection:d,_correctMax:function(e){this._max=this._adjustNumericTickValue(c(this._max/e)*e,e,this._min)},_correctMin:function(e){this._min=this._adjustNumericTickValue(u(this._min/e)*e,e,this._min)},_findBusinessDelta:function(e,t){return o(l(e-t))},_findTickIntervalForCustomTicks:function(){return l(this._customTicks[1]-this._customTicks[0])},_getBoundInterval:function(){var e=this,t=e._options.boundCoef;return a(t)&&isFinite(t)?e._tickInterval*l(t):e._tickInterval/2},_getInterval:function(e,t){var n,i,r,a=e||this._getDeltaCoef(this._screenDelta,this._businessDelta,this._options.gridSpacingFactor),s=t||this._options.numberMultipliers,l=0,c=!1;if(a>1){for(n=1;!c;n*=10)for(r=0;r<s.length;r++)if(l=s[r]*n,a<=l){c=!0;break}}else if(a>0)for(l=1,n=.1;!c;n/=10)for(r=s.length-1;r>=0;r--){if(i=s[r]*n,a>i){c=!0;break}l=i}return o(l)},_getDefaultMinorInterval:function(e,t){var n,i=this._getDeltaCoef(e,t,this._options.minorGridSpacingFactor),r=p,a=r.length-1;for(a;a>=0;a--)if(n=t/r[a],i<=n)return o(n);return 0},_getMinorInterval:function(e,t){var n,i,r,o=this,s=o._options,l=s.minorTickInterval,d=s.minorTickCount;isFinite(l)&&o._isTickIntervalCorrect(l,h,t)?(n=l,r=n<t?c(t/n)-1:0):a(d)?(i=a(d)?d+1:u(e/s.minorGridSpacingFactor),r=i-1,n=r>0?t/i:0):(n=o._getDefaultMinorInterval(e,t),r=n<t?u(t/n)-1:0),o._minorTickInterval=n,o._minorTickCount=r},_getNextTickValue:function(e,t,n){return t=a(n)&&n?-t:t,e+=t,this._adjustNumericTickValue(e,t,this._min)},_isTickIntervalValid:function(e){return a(e)&&isFinite(e)&&0!==e}}},function(e,t,n){function i(e,t,n){var i=d(t),r=60*e.getTimezoneOffset()*1e3;return new Date(Math[n]((e-0-r)/i)*i+r)}var r=n(63),a=n(14),o=n(11).extend,s=n(568).continuous,l=a.isDefined,c=r.convertDateUnitToMilliseconds,u=r.correctDateWithUnitBeginning,d=r.dateToMilliseconds,h=r.convertMillisecondsToDateUnits,p=Math,f=p.abs,_=p.ceil,g=p.floor,m=50,v={millisecond:[1,2,5,10,25,100,250,300,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,5,7,10,14],month:[1,2,3,6]};t.datetime=o({},s,{_correctMax:function(e){this._max=i(this._max,e,"ceil")},_correctMin:function(e){this._min=i(this._min,e,"floor"),this._options.setTicksAtUnitBeginning&&(this._min=u(this._min,e))},_findTickIntervalForCustomTicks:function(){return h(f(this._customTicks[1]-this._customTicks[0]))},_getBoundInterval:function(){var e=this,t=e._tickInterval,n=d(t),i=e._options.boundCoef,r=l(i)&&isFinite(i)?n*f(i):n/2;return h(r)},_getInterval:function(e){var t,n,i,r,a,o=e||this._getDeltaCoef(this._screenDelta,this._businessDelta,this._options.gridSpacingFactor),s=this._options.numberMultipliers,l={};if(o>0&&o<1)return{milliseconds:1};if(0===o)return 0;for(i in v)if(v.hasOwnProperty(i))for(r=v[i],n=0;n<r.length;n++)if(o<=c(i,r[n]))return l[i+"s"]=r[n],l;for(t=1;;t*=10)for(n=0;n<s.length;n++)if(a=t*s[n],o<=c("year",a))return{years:a}},_getMinorInterval:function(e,t){var n,i,r,a,o=this,s=o._options;l(s.minorTickInterval)&&o._isTickIntervalCorrect(s.minorTickInterval,m,t)?(n=s.minorTickInterval,i=d(n),a=i<t?_(t/i)-1:0):(r=l(s.minorTickCount)?s.minorTickCount+1:g(e/s.minorGridSpacingFactor),a=r-1,n=a>0?h(t/r):0),o._minorTickInterval=n,o._minorTickCount=a},_getNextTickValue:function(e,t,n,i,a){var o=r.addInterval(e,t,n);return this._options.setTicksAtUnitBeginning&&a!==!1&&(o=u(o,t,!0)),o},_getUnitBeginningMinorTicks:function(e){var t=this,n=t._ticks,i=t._findMinorTickInterval(n[1],n[2]),r=!0,a=!1,o=!1,s=t._getNextTickValue(n[1],i,r,a,o);return t._isTickIntervalValid(i)&&(e=t._createTicks(e,i,s,n[0],r,a,o)),e},_hasUnitBeginningTickCorrection:function(){var e=this._ticks;return!(e.length<3)&&(e[1]-e[0]!==e[2]-e[1]&&this._options.setTicksAtUnitBeginning&&this._options.minorTickCount)},_isTickIntervalValid:function(e){return l(e)&&0!==d(e)}})},function(e,t,n){var i=n(509),r=n(63),a=n(11).extend,o=n(14),s=o.isDefined,l=r.addInterval,c=i.adjustValue,u=n(568).continuous,d=i.getLog,h=i.raiseTo,p=Math,f=p.abs,_=p.ceil,g=p.floor,m=p.round;t.logarithmic=a({},u,{_correctMax:function(){var e=this._options.base;this._max=c(h(_(c(d(this._max,e))),e))},_correctMin:function(){var e=this._options.base;this._min=c(h(g(c(d(this._min,e))),e))},_findBusinessDelta:function(e,t,n){var i;return e<=0||t<=0?0:i=n===!1?u._findBusinessDelta(e,t):m(f(d(e,this._options.base)-d(t,this._options.base)))},_findTickIntervalForCustomTicks:function(){return c(d(this._customTicks[1]/this._customTicks[0],this._options.base))},_getInterval:function(e){var t,n,i=e||this._getDeltaCoef(this._screenDelta,this._businessDelta,this._options.gridSpacingFactor),r=this._options.numberMultipliers,a=0,o=!1;if(0!==i)for(t=1;!o;t*=10)for(n=0;n<r.length;n++)if(a=r[n]*t,i<=a){o=!0;break}return c(a)},_getMinorInterval:function(e,t){var n=this,i=n._options,r=i.minorTickCount,a=s(r)?r+1:g(e/i.minorGridSpacingFactor),o=a-1,l=o>0?t/a:0;n._minorTickInterval=l,n._minorTickCount=o},_getNextTickValue:function(e,t,n,i){var r,a,o=this;return t=s(n)&&n?-t:t,i===!1?a=e+t:(r=l(d(e,o._options.base),t,o._min>o._max),a=c(h(r,o._options.base))),a}})},function(e,t,n){function i(e,t){return m(e)&&m(t)&&e.valueOf()===t.valueOf()}function r(e){var t,n,r=e.min,a=e.max,o=e.minVisible,s=e.maxVisible,l=e.base,c=f.isDate(a)||f.isDate(r),u=c?x:b,d="logarithmic"===e.axisType;return d&&(s=_(s,l),o=_(o,l),r=_(r,l),a=_(a,l)),i(r,a)&&(t=r.valueOf()-u,n=a.valueOf()+u,c?(r=new Date(t),a=new Date(n)):(r=0!==r||d?t:0,a=n)),i(o,s)&&(t=o.valueOf()-u,n=s.valueOf()+u,c?(o=t<r.valueOf()?r:new Date(t),s=n>a.valueOf()?a:new Date(n)):((0!==o||d)&&(o=t<r?r:t),s=n>a?a:n)),{base:l,rangeMin:r,rangeMax:a,rangeMinVisible:o,rangeMaxVisible:s}}var a,o=n(9),s=n(11).extend,l=n(572),c=n(573),u=n(574),d=n(575),h=n(576),p=n(509),f=n(14),_=p.getLog,g=p.getPower,m=f.isDefined,v=Math.abs,y=["width","height","left","top","bottom","right"],b=1,x=6e4,S=f.noop,w=n(63).addInterval,k=function(e){return o.each(y,function(t,n){e[n]=parseInt(e[n])||0}),e},C=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t},T=function(e){function t(t,n){!m(e[t])&&m(e[n])&&(e[t]=e[n])}return t("minVisible","min"),t("maxVisible","max"),e};t.Translator2D=a=function(e,t,n){this.update(e,t,n)},a.prototype={constructor:a,reinit:function(){var e=this,t=e._businessRange,n=t.categories||[],i={},r=e._prepareCanvasOptions(),a=p.getCategoriesInfo(n,t.minVisible,t.maxVisible).categories,o=(a||n).length;switch(t.axisType){case"logarithmic":i=h;break;case"semidiscrete":i=u,r.ratioOfCanvasRange=r.canvasLength/(w(r.rangeMaxVisible,e._options.interval)-r.rangeMinVisible);break;case"discrete":i=c,e._categories=n,r.interval=e._getDiscreteInterval(t.addSpiderCategory?o+1:o,r),e._categoriesToPoints=C(n,r.invert),a&&o&&(r.startPointIndex=e._categoriesToPoints[a[0].valueOf()],e.visibleCategories=a);break;default:i="datetime"===t.dataType?d:l}s(e,i),e._conversionValue=e._options.conversionValue?function(e){return e}:function(e){return Math.round(e)},e._calculateSpecialValues()},_getDiscreteInterval:function(e,t){var n=e-(this._businessRange.stick?1:0);return n>0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t=this,n=t._businessRange,i=t._canvasOptions=r(n),a=t._canvas;return t._options.isHorizontal?(i.startPoint=a.left,e=a.width,i.endPoint=a.width-a.right,i.invert=n.invert):(i.startPoint=a.top,e=a.height,i.endPoint=a.height-a.bottom,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,g(i.rangeMax-i.rangeMin)-g(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),i},updateCanvas:function(e){this._canvas=k(e),this.reinit()},updateBusinessRange:function(e){this._businessRange=T(e),this.reinit()},update:function(e,t,n){var i=this;i._options=s(i._options||{},n),i._canvas=k(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t,n,i=this,r=i._canvasOptions,a=r.startPoint,o=r.endPoint,s=i._businessRange,l=s.minVisible,c=s.maxVisible;l<=0&&c>=0?(i.sc={},t=i.translate(0)):(e=s.invert^(l<=0&&c<=0),t=i._options.isHorizontal?e?o:a:e?a:o),n=a+r.canvasLength/2,i.sc={canvas_position_default:t,canvas_position_left:a,canvas_position_top:a,canvas_position_center:n,canvas_position_middle:n,canvas_position_right:o,canvas_position_bottom:o,canvas_position_start:r.invert?o:a,canvas_position_end:r.invert?a:o}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getVisibleCategories:function(){return this.visibleCategories},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.untranslate(t.min+e);return v(this.untranslate(t.min)-(m(n)?n:this.untranslate(t.max)))},translate:S,untranslate:S,getInterval:S,zoom:S,getMinScale:S,getRange:function(){return[this.untranslate(this._canvasOptions.startPoint,-1),this.untranslate(this._canvasOptions.endPoint,1)];
},isEmptyValueRange:function(){return this._businessRange.stubData},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)}}},function(e,t,n){var i=n(14),r=i.isDefined,a=Math.round;e.exports={translate:function(e){var t=this,n=t._canvasOptions,i=n.rangeDoubleError,a=t.translateSpecialCase(e);return r(a)?a:isNaN(e)||e.valueOf()+i<n.rangeMin||e.valueOf()-i>n.rangeMax?null:t._conversionValue(t._calculateProjection((e-n.rangeMinVisible)*n.ratioOfCanvasRange))},untranslate:function(e,t,n){var i=this._canvasOptions,a=i.startPoint;return!n&&(e<a||e>i.endPoint)||!r(i.rangeMin)||!r(i.rangeMax)?null:this._calculateUnProjection((e-a)/i.ratioOfCanvasRange)},getInterval:function(){return a(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},_getValue:function(e){return e},zoom:function(e,t){var n=this,i=n._canvasOptions,r=i.startPoint,a=i.endPoint,o=(r+e)/t,s=(a+e)/t,l=[n.translate(n._getValue(i.rangeMin)),n.translate(n._getValue(i.rangeMax))],c=Math.min(l[0],l[1]),u=Math.max(l[0],l[1]);return c>o&&(s-=o-c,o=c),u<s&&(o-=s-u,s=u),u-c<s-o&&(o=c,s=u),e=(a-r)*o/(s-o)-r,t=(r+e)/o||1,{min:n.untranslate(o,void 0,!0),max:n.untranslate(s,void 0,!0),translate:e,scale:t}},getMinScale:function(e){return e?1.1:.9},getScale:function(e,t){var n=this._canvasOptions;return e=r(e)?e:n.rangeMin,t=r(t)?t:n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t)},isValid:function(e){var t=this._canvasOptions;return null!==e&&!isNaN(e)&&e.valueOf()+t.rangeDoubleError>=t.rangeMin&&e.valueOf()-t.rangeDoubleError<=t.rangeMax},parse:function(e){return Number(e)},to:function(e){return this._conversionValue(this._calculateProjection((e-this._canvasOptions.rangeMinVisible)*this._canvasOptions.ratioOfCanvasRange))},from:function(e){return this._calculateUnProjection((e-this._canvasOptions.startPoint)/this._canvasOptions.ratioOfCanvasRange)},_add:function(e,t,n){return e+t*n},isValueProlonged:!1}},function(e,t,n){var i=n(14),r=i.isDefined,a=Math.round;e.exports={translate:function(e,t){var n,i=this,o=i._canvasOptions,s=i._categoriesToPoints[e.valueOf()],l=i.translateSpecialCase(e),c=o.startPointIndex||0,u=i._businessRange.stick?0:.5;return r(l)?l:s||0===s?(t=t||0,n=s+u-c+.5*t,a(i._calculateProjection(o.interval*n))):null},untranslate:function(e,t,n){var i=this,r=i._canvasOptions,o=r.startPoint,s=i.visibleCategories||i._categories,l=s.length,c=0,u=i._businessRange.stick?.5:0;return!n&&(e<o||e>r.endPoint)?null:(t=t||0,c=a((e-o)/r.interval+u-.5-.5*t),l===c&&c--,c===-1&&(c=0),r.invert&&(c=l-c-1),s[c])},getInterval:function(){return this._canvasOptions.interval},zoom:function(e,t){var n,i,r,a=this,o=a._canvasOptions,s=a._businessRange.stick,l=o.invert,c=o.interval*t,u=e/c,d=parseInt((o.startPointIndex||0)+u+.5),h=parseInt(o.canvasLength/c+(s?1:0))||1,p=a._categories;return l&&(d=parseInt((o.startPointIndex||0)+(a.visibleCategories||[]).length-u+.5)-h),d<0&&(d=0),n=d+h,n>p.length&&(n=p.length,d=n-h,d<0&&(d=0)),i=p.slice(parseInt(d),parseInt(n)),r=a._getDiscreteInterval(i.length,o),t=r/o.interval,e=a.translate(l?i[i.length-1]:i[0])*t-(o.startPoint+(s?0:r/2)),{min:i[0],max:i[i.length-1],translate:e,scale:t}},getMinScale:function(e){var t=this,n=t._canvasOptions,i=(t.visibleCategories||t._categories).length;return i+=(parseInt(.1*i)||1)*(e?-2:2),n.canvasLength/(Math.max(i,1)*n.interval)},getScale:function(e,t){var n=this,i=n._canvasOptions,a=n.getCanvasVisibleArea(),o=!n._businessRange.stick&&1,s=r(e)?n.translate(e,-o):null,l=r(t)?n.translate(t,+o):null;return null===s&&(s=i.invert?a.max:a.min),null===l&&(l=i.invert?a.min:a.max),n.canvasLength/Math.abs(l-s)},isValid:function(e){return!!r(e)&&this._categoriesToPoints[e.valueOf()]>=0},parse:function(e){return e},to:function(e,t){var n=this._canvasOptions,i=this._businessRange,r=this._categoriesToPoints[e.valueOf()],o=n.startPointIndex||0,s=i.stick?0:.5,l=r+s-o+(i.invert?-1:1)*t*.5;return a(this._calculateProjection(n.interval*l))},from:function(e,t){var n=this._canvasOptions,i=this._businessRange,r=n.startPoint,o=this._categories,s=o.length,l=i.stick?.5:0,c=a((e-r)/n.interval+l-.5-.5*t);return s===c&&c--,c===-1&&(c=0),n.invert&&(c=s-c-1),o[c]},_add:function(){return NaN},isValueProlonged:!0}},function(e,t,n){var i=n(509).adjustValue,r=n(14),a=r.isNumeric,o=r.isDefined,s=n(63),l=s.addInterval,c=s.dateToMilliseconds,u=Math.floor;e.exports={_intervalize:function(e,t){if(o(e))return"datetime"===this._businessRange.dataType?(e=a(e)?new Date(e):new Date(e.getTime()),e=s.correctDateWithUnitBeginning(e,t)):e=i(u(e/t)*t),e},translate:function(e,t,n){var i=this,r=i.translateSpecialCase(e);return o(r)?r:(n=n||i._options.interval,i.isValid(e,n)?i.to(e,t,n):null)},untranslate:function(e,t,n){var i=this._canvasOptions,r=i.startPoint;return!n&&(e<r||e>i.endPoint)||!o(i.rangeMin)||!o(i.rangeMax)?null:this.from(e,t)},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},_getValue:function(){},zoom:function(){},getMinScale:function(){},getScale:function(){},isValid:function(e,t){var n=this,i=n._canvasOptions,r=i.rangeMin,o=i.rangeMax;return t=t||n._options.interval,null!==e&&!isNaN(e)&&(e="datetime"===n._businessRange.dataType&&a(e)?new Date(e):e,t!==n._options.interval&&(r=n._intervalize(r,t),o=n._intervalize(o,t)),!(e.valueOf()<r||e.valueOf()>=l(o,t)))},parse:function(e){return"datetime"===this._businessRange.dataType?a(e)?new Date(e):e:Number(e)},to:function(e,t,n){var i=this;n=n||i._options.interval;var r=i._intervalize(e,n),a=l(r,n),o=i._to(r),s=i._to(a);return t?t>0&&(o=s):o=u((o+s)/2),o},_to:function(e){var t=this._canvasOptions,n=t.rangeMinVisible,i=t.rangeMaxVisible,r=e-n;return e<n?r=0:e>i&&(r=l(i,this._options.interval)-n),this._conversionValue(this._calculateProjection(r*this._canvasOptions.ratioOfCanvasRange))},from:function(e,t){var n,i=this,r=i._options.interval,a=r,o=i._canvasOptions,s=o.rangeMinVisible,u=o.rangeMaxVisible;return"datetime"===i._businessRange.dataType&&(a=c(r)),n=i._calculateUnProjection((e-i._canvasOptions.startPoint)/i._canvasOptions.ratioOfCanvasRange),n=i._intervalize(l(n,a/2,t>0),r),n<s?n=s:n>u&&(n=u),n},_add:function(){return NaN},isValueProlonged:!0}},function(e,t,n){var i=n(572);e.exports={translate:i.translate,untranslate:function(){var e=i.untranslate.apply(this,arguments);return null===e?e:new Date(e)},_getValue:i._getValue,getInterval:i.getInterval,zoom:i.zoom,getMinScale:i.getMinScale,getScale:i.getScale,isValid:function(e){return i.isValid.call(this,new Date(e))},parse:function(e){return new Date(e)},to:i.to,from:function(e){return new Date(i.from.call(this,e))},_add:n(63).addDateInterval,isValueProlonged:i.isValueProlonged}},function(e,t,n){var i=n(572),r=n(509),a=n(14),o=r.raiseTo,s=r.getLog;e.exports={translate:function(e){var t=this,n=t.translateSpecialCase(e);return a.isDefined(n)?n:i.translate.call(t,s(e,t._businessRange.base))},untranslate:function(){var e=i.untranslate.apply(this,arguments);return null===e?e:o(e,this._businessRange.base)},getInterval:i.getInterval,_getValue:function(e){return Math.pow(this._canvasOptions.base,e)},zoom:i.zoom,getMinScale:i.getMinScale,getScale:function(e,t){var n=this._businessRange.base;return e=a.isDefined(e)?s(e,n):void 0,t=a.isDefined(t)?s(t,n):void 0,i.getScale.call(this,e,t)},isValid:function(e){return i.isValid.call(this,s(e,this._businessRange.base))},parse:i.parse,to:function(e){return i.to.call(this,s(e,this._businessRange.base))},from:function(e){return o(i.from.call(this,e),this._businessRange.base)},_add:function(e,t,n){var r=this._businessRange.base;return o(i._add(s(e,r),t,n),r)},isValueProlonged:i.isValueProlonged}},function(e,t,n){function i(e){return{stroke:e.color,"stroke-width":e.width,"stroke-opacity":e.opacity}}function r(e,t,n,r,l,c,u){function d(t){var n=e._textFontStyles,i=y.customizeColor;return i&&i.call&&(n=o({},e._textFontStyles,{fill:i.call(t,t)})),n}var h=u||e._tickOffset,p=e._axisLineGroup,f=e._axisElementsGroup,_=i(n),g=i(r),m=/^\s+$/,v=e.getOptions(),y=v.label,b=e._textOptions;return function(i){var o={value:i,initCoords:function(){this.coords=e._getTranslatedValue(i,h)},drawMark:function(){n.visible&&l!==i&&(this.withoutPath||(this.mark=e._createPathElement([],_).append(p),this.updateTickPosition()))},updateTickPosition:function(){this.mark&&(this.mark.attr({points:e._getTickMarkPoints(o,n.length)}),this.coords.angle&&e._rotateTick(this.mark,this.coords))},drawLabel:function(){if(y.visible&&!c&&!this.withoutLabel){var n,r={min:e._minBound,max:e._maxBound},o=s.formatLabel(i,y,r);a(o)&&""!==o&&!m.test(o)&&(this.label=t.text(o).css(d(this)).attr(b).data("chart-data-argument",this.value).append(f),this.updateLabelPosition(),n=s.formatHint(this.value,y,r),a(n)&&""!==n&&this.label.setTitle(n))}},updateLabelPosition:function(){if(this.label){var t=e._getTranslatedValue(i);this.labelCoords=t,this.label.attr({x:t.x,y:t.y})}},drawGrid:function(t){r.visible&&l!==this.value&&(this.grid=t(this,g),this.grid&&this.grid.append(e._axisGridGroup))},updateGridPosition:function(t){this.grid&&this.grid.attr(e._getGridPoints(o.coords))}};return o}}var a=n(14).isDefined,o=n(11).extend,s=n(566);t.tick=r},function(e,t,n){function i(e,t){var n,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),e[t])for(i=0;i<g.dateUnitIntervals.length&&(n=g.dateUnitIntervals[i],e[n]&&(e[n]=!1,e.count--),n!==t);i++);}function r(e,t,n){var i,r=e;return e=y(e,n),t=y(t,n),i=g.getSequenceByInterval(e,t,n),i.length&&r>i[0]&&(i=i.slice(1)),i}function a(e){var t="start";return"center"===e&&(t="center"),"right"===e&&(t="end"),t}function o(e){var t="start";return"center"===e&&(t="center"),"bottom"===e&&(t="end"),t}function s(e){var t=v(e);return"quarter"===t&&(t=v(t)),t}function l(e,t,n,r){var a=r,o=t&&g.getDatesDifferences(t,e);return t&&"year"!==n&&(i(o,n),a=_.getDateFormatByDifferences(o)),a}function c(e,t){return t.reduce(function(t,n){return T(t,e(n))},0)}function u(e,t){t=C.abs(t),t=t%180>=90?90-t%90:t%90;var n=t*(C.PI/180);return n>=C.atan(e.height/e.width)?e.height/C.abs(C.sin(n)):e.width}function d(e){return e.reduce(function(e,t){return T(e,t.paddingTopBottom)},0)}function h(e,t,n){return e.some(function(e){return e.label.verticalAlignment===t})&&n||0}function p(e){return C.abs(e.x)||0}function f(e){return C.abs(e.width-C.abs(e.x))||0}var _=n(66),g=n(63),m=n(11).extend,v=g.getNextDateUnit,y=g.correctDateWithUnitBeginning,b=n(14),x=n(509),S=b.isDefined,w=n(566),k=m,C=Math,T=C.max,E=w.top,A=w.bottom,I=w.left,O=w.right,M=w.center;e.exports={linear:{_getStep:function(e,t){var n=this._options.label.minSpacing,i=this._isHorizontal?function(e){return e.width+n}:function(e){return e.height},r=c(i,e);return t&&(r=u({width:r,height:this._getMaxLabelHeight(!1,e,0)},t)),w.getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",r)},_getMaxLabelHeight:function(e,t,n){return(e?-1:1)*(c(function(e){return e.height},t)+n)},_validateOverlappingMode:function(e,t){return this._isHorizontal&&("rotate"===t||"stagger"===t)||!this._isHorizontal?w.validateOverlappingMode(e):e},_validateDisplayMode:function(e){return this._isHorizontal?e:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(e){return this._isHorizontal^e?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){if(this._axisElement){var e=this._axisPosition,t=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[t.start,e,t.end,e]:[e,t.start,e,t.end]})}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas,n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this._getCanvasStartEnd();return C.abs(e.start-e.end)},_initAxisPositions:function(){var e=this,t=e._options.position;e._axisPosition=e._orthogonalPositions["top"===t||"left"===t?"start":"end"]},_getTickMarkPoints:function(e,t){var n=e.coords,i=this._isHorizontal,r={left:-1,top:-1,right:0,bottom:0,center:-.5}[this._options.tickOrientation||"center"];return[n.x+(i?0:r*t),n.y+(i?r*t:0),n.x+(i?0:r*t+t),n.y+(i?r*t+t:0)]},_getTitleCoords:function(){var e=this,t=e._axisPosition,n=e._axisPosition,i=e._getCanvasStartEnd(),r=i.start+(i.end-i.start)/2;return e._isHorizontal?t=r:n=r,{x:t,y:n}},_drawTitleText:function(e,t){var n=this._options,i=n.title,r={opacity:i.opacity,align:"center"};if(i.text&&e){t=t||this._getTitleCoords(),this._isHorizontal||(r.rotate=n.position===I?270:90);var a=this._renderer.text(i.text,t.x,t.y).css(x.patchFontOptions(i.font)).attr(r).append(e);return a}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var e=this._drawTitleText(this._axisTitleGroup);e&&(this._title={element:e})},_measureTitle:function(){this._title&&(this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(e,t){var n,i,r=this,a=r._options.marker,o=r._translator.getBusinessRange().invert,s=a.width+a.textLeftIndent;if(null!==t.x)return t.withoutStick||(i=r._renderer.path([t.x,t.y,t.x,t.y+a.separatorHeight],"line").attr({"stroke-width":a.width,stroke:a.color,"stroke-opacity":a.opacity,sharp:"h"}).append(r._axisElementsGroup)),n=String(w.formatLabel(e,t.labelFormat)),{date:e,x:t.x,y:t.y,cropped:t.withoutStick,label:r._renderer.text(n,t.x,t.y).css(x.patchFontOptions(a.label.font)).append(r._axisElementsGroup),line:i,getEnd:function(){return this.x+(o?-1:1)*(s+this.labelBBox.width)},setTitle:function(){this.title=n},hideLabel:function(){this.label.dispose(),this.label=null,this.title=n},hide:function(){i&&(i.dispose(),i=null),this.label.dispose(),this.label=null,this.hidden=!0}}},_drawDateMarkers:function(){function e(e,t,n){return c._drawDateMarker(e,{x:d.translate(e),y:a,labelFormat:c._getLabelFormatOptions(t),withoutStick:n})}var t,n,i,a,o,c=this,u=c._options,d=c._translator,h=c._minBound,p=[];return!u.marker.visible||"datetime"!==u.argumentType||"discrete"===u.type||c._majorTicks.length<=1?[]:(a=c._axisPosition+u.marker.topIndent,t=g.getDateUnitInterval(this._tickManager.getTickInterval()),n=s(t),i=r(h,c._maxBound,n),(i.length>1||1===i.length&&h<i[0])&&(p=i.reduce(function(i,r,a,o){var s=e(r,l(r,o[a-1]||h<r&&h,t,n));return s&&i.push(s),i},[]),h<i[0]&&(o=e(h,l(h,i[0],t,n),!0),o&&p.unshift(o))),p)},_adjustDateMarkers:function(e){e=e||0;var t=this,n=this._options.marker,i=n.width+n.textLeftIndent,r=this._translator.getBusinessRange().invert,a=t._getCanvasStartEnd(),o=this._dateMarkers;if(!o.length)return e;o[0].cropped&&(this._checkMarkersPosition(r,o[1],o[0])||o[0].hideLabel());var s;return o.forEach(function(e,n,i){e.cropped||((r?e.getEnd()<a.end:e.getEnd()>a.end)?e.hideLabel():t._checkMarkersPosition(r,e,s)?s=e:e.hide())}),this._dateMarkers.forEach(function(t){if(t.label){var a=t.labelBBox,o=t.y+n.textTopIndent-a.y;t.label.attr({translateX:r?t.x-i-a.x-a.width:t.x+i-a.x,translateY:o+e})}t.line&&t.line.attr({translateY:e})}),t._initializeMarkersTrackers(e),e+n.topIndent+n.separatorHeight},_checkMarkersPosition:function(e,t,n){return void 0===n||(e?t.x<n.getEnd():t.x>n.getEnd())},_initializeMarkersTrackers:function(e){var t=this,n=t._options.marker.separatorHeight,i=t._renderer,r=this._translator.getBusinessRange(),a=t._getCanvasStartEnd(),o=t._axisElementsGroup;t._markerTrackers=this._dateMarkers.filter(function(e){return!e.hidden}).map(function(t,s,l){var c=l[s+1]||{x:a.end,date:r.max},u=t.x,d=t.y+e,h=i.path([u,d,u,d+n,c.x,d+n,c.x,d,u,d],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(o);return h.data("range",{startValue:t.date,endValue:c.date}),t.title&&h.setTitle(t.title),h})},_getLabelFormatOptions:function(e){var t=this,n=t._markerLabelOptions;return n||(t._markerLabelOptions=n=k(!0,{},t._options.marker.label)),S(t._options.marker.label.format)||(n.format=e),n},_adjustConstantLineLabels:function(e){var t=this,n=t._options.position,i=t.getCanvas(),r=i.left,a=i.width-i.right,o=i.top,s=i.height-i.bottom,l=o+(s-o)/2,c=r+(a-r)/2,u=0;return e.forEach(function(e){var i,d,h=t._isHorizontal,p=e.options,f=p.paddingTopBottom,_=p.paddingLeftRight,g=p.label,m=g.verticalAlignment,v=g.horizontalAlignment,y="inside"===g.position,b=e.label,x=e.labelBBox;if(null!==b){if(h)if(y)switch(i=v===I?e.coord-_-x.x-x.width:e.coord+_-x.x,m){case M:d=l-x.y-x.height/2;break;case A:d=s-f-x.y-x.height;break;default:d=o+f-x.y}else n===m&&(u=T(u,x.height+f)),i=e.coord-x.x-x.width/2,d=m===A?s+f-x.y:o-f-x.y-x.height;else if(y)switch(d=m===A?e.coord+f-x.y:e.coord-f-x.y-x.height,v){case M:i=c-x.x-x.width/2;break;case O:i=a-_-x.x-x.width;break;default:i=r+_-x.x}else n===v&&(u=T(u,x.width+_)),d=e.coord-x.y-x.height/2,i=v===O?a+_-x.x:r-_-x.x-x.width;b.attr({translateX:i,translateY:d})}}),u},_drawConstantLinesForEstimating:function(e){var t=this,n=this._renderer,i=n.g();return e.forEach(function(e){t._drawConstantLineLabelText(e.label.text,0,0,e.label,i).attr({align:"center"})}),i.append(n.root)},_estimateLabelHeight:function(e,t){var n=e.height,i=t.drawingType;if("stagger"!==this._validateDisplayMode(i)&&"stagger"!==this._validateOverlappingMode(t.overlappingBehavior,i)||(n=2*n+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var r=x.getCosAndSin(t.rotationAngle);n=n*r.cos+e.width*r.sin}return n&&(n+t.indentFromAxis||0)||0},_estimateLabelFormat:function(e){this.updateCanvas(e),this._updateTickManager(),this._tickManager.getTicks(),this._correctLabelFormat()},estimateMargins:function(e){this._estimateLabelFormat(e);var t=this,n=this._options,i=(n.constantLines||[]).filter(function(e){return t._checkAlignmentConstantLineLabels(e.label),"outside"===e.label.position&&e.label.visible}),r=t._renderer.root,a=t._translator.getBusinessRange(),o=n.label.visible&&!t._translator.getBusinessRange().stubData,s=o&&w.formatLabel("discrete"===a.axisType?a.categories[0]:a.max,n.label),l=o&&t._renderer.text(s,0,0).css(t._textFontStyles).attr(t._textOptions).append(r),c=t._drawTitleText(r,{x:0,y:0}),u=t._drawConstantLinesForEstimating(i),_=l&&l.getBBox()||{x:0,y:0,width:0,height:0},g=c&&c.getBBox()||{x:0,y:0,width:0,height:0},m=u.getBBox(),v=g.height?g.height+n.title.margin:0,y=t._estimateLabelHeight(_,n.label),b=m.height?m.height+d(i):0,x=y+v,S={left:T(p(_),p(m)),right:T(f(_),f(m)),top:("top"===n.position?x:0)+h(i,"top",b),bottom:("top"!==n.position?x:0)+h(i,"bottom",b)};return l&&l.remove(),c&&c.remove(),u&&u.remove(),S},_checkAlignmentConstantLineLabels:function(e){var t=e.position,n=(e.verticalAlignment||"").toLowerCase(),i=(e.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(n=n===A?A:E,i=M):(n=n===M?M:n===A?A:E,i=i===I?I:O):"outside"===t?(n=M,i=i===I?I:O):(n=n===A?A:E,i=i===O?O:i===M?M:I),e.verticalAlignment=n,e.horizontalAlignment=i},_getConstantLineLabelsCoords:function(e,t){var n=this,i=e,r=e;return n._isHorizontal?r=n._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:i=n._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:i,y:r}},_getAdjustedStripLabelCoords:function(e){var t=e.options,n=t.paddingTopBottom,i=t.paddingLeftRight,r=t.label.horizontalAlignment,a=t.label.verticalAlignment,o=e.labelBBox,s=o.height,l=o.width,c=e.labelCoords,u=c.y-o.y,d=c.x-o.x;return a===E?u+=n:a===M?u-=s/2:a===A&&(u-=n+s),r===I?d+=i:r===M?d-=l/2:r===O&&(d-=i+l),{translateX:d,translateY:u}},_adjustTitle:function(e){if(e=e||0,this._title){var t=this,n=t._options,i=n.position,r=n.title.margin,a=t._title,o=a.bBox,s=o.x,l=o.y,c=o.width,u=o.height,d=t._axisPosition,h=d-r-e,p=d+r+e,f={};t._isHorizontal?i===E?f.translateY=h-(l+u):f.translateY=p-l:i===I?f.translateX=h-(s+c):f.translateX=p-s,a.element.attr(f)}},_checkTitleOverflow:function(){if(this._title){var e=this._getScreenDelta(),t=this._title,n=t.bBox;(this._isHorizontal?n.width:n.height)>e&&t.element.applyEllipsis(e)&&t.element.setTitle(this._options.title.text)}},coordsIn:function(e,t){var n=this.getCanvas(),i=this._options.isHorizontal,r=this._options.position,a=i?t:e;return i&&r===w.top||!i&&r===w.left?a<n[r]:a>n[i?"height":"width"]-n[r]},_boundaryTicksVisibility:{min:!0,max:!0},_getMinMax:function(){return{min:this._options.min,max:this._options.max}},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(e,t,n){var i,r,s=this,l=s._orthogonalPositions,c=s._isHorizontal,u=n.horizontalAlignment,d=n.verticalAlignment;return c?(u===M?i=e+(t-e)/2:u===I?i=e:u===O&&(i=t),r=l[o(d)]):(i=l[a(u)],d===E?r=e:d===M?r=t+(e-t)/2:d===A&&(r=t)),{x:i,y:r}},_getTranslatedValue:function(e,t){var n=this._translator.translate(e,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,r=this._isHorizontal;return{x:r?n:i,y:r?i:n}},_getSkippedCategory:function(){var e,t=this._translator.getVisibleCategories()||this._translator.getBusinessRange().categories;return t&&t.length&&this._tickOffset&&(e=t[t.length-1]),e},_getSpiderCategoryOption:b.noop,shift:function(e){function t(t,n){var i={},o=e[t]+a;if(i[r?"translateY":"translateX"]=("left"===t||"top"===t?-1:1)*o,e[t])return(n[t]||n).attr(i),o}var n=this,i=n._options,r=i.isHorizontal,a=n.getMultipleAxesSpacing(),o=n._axisConstantLineGroups;n._axisShift=t(i.position,n._axisGroup),r?(t("top",o),t("bottom",o)):(t("left",o),t("right",o))}}}},function(e,t,n){function i(e){var t;return e=o.normalizeAngle(e),e>=315&&e<=360||e<45&&e>=0?t=1:e>=45&&e<135?t=2:e>=135&&e<225?t=3:e>=225&&e<315&&(t=4),t}var r,a,o=n(509),s=n(14),l=n(11).extend,c=n(566),u=n(578).linear,d=n(577).tick,h=o.map,p=Math,f=p.abs,_=p.round,g=o.convertPolarToXY,m=l,v=s.noop,y=90;a=t,r=a.circular={_updateTranslator:function(){this._translator.update({},{},{isHorizontal:!0,conversionValue:!0})},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var e=this._options;return[e.startAngle,e.endAngle]},_updateRadius:function(e){var t=Math.min(e.width-e.left-e.right,e.height-e.top-e.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(e){this._center={x:e.left+(e.width-e.right-e.left)/2,y:e.top+(e.height-e.top-e.bottom)/2}},_processCanvas:function(e){var t=this._options;return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:p.abs(t.endAngle-t.startAngle)}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({cx:e.x,cy:e.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_getMinMax:function(){var e,t=this._options,n=s.isNumeric(t.originValue)?t.originValue:void 0;return t.period>0&&t.argumentType===c.numeric&&(n=n||0,e=n+t.period),{min:n,max:e}},_getStick:function(){return this._options.firstPointOnStartAngle||this._options.type!==c.discrete},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_getCanvasStartEnd:function(){return{start:0-y,end:360-y}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter(),i=this.getAngles()[0],r=this.getRadius();return{x:n.x,y:n.y,innerRadius:0,outerRadius:r,startAngle:-t-i,endAngle:-e-i}},_createStrip:function(e,t,n){var i=this._getStripGraphicAttributes(e,t);return this._renderer.arc(i.x,i.y,i.innerRadius,i.outerRadius,i.startAngle,i.endAngle).attr(n)},_getStripLabelCoords:function(e,t){var n=this,i=n._getStripGraphicAttributes(e,t),r=i.startAngle+(i.endAngle-i.startAngle)/2,a=o.getCosAndSin(r),s=n.getRadius()/2,l=n.getCenter(),u=_(l.x+s*a.cos),d=_(l.y-s*a.sin);return{x:u,y:d,align:c.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter(),n=this.getRadius();return{points:[t.x,t.y,t.x+n,t.y]}},_createConstantLine:function(e,t){var n=this.getCenter();return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t).rotate(e+this.getAngles()[0],n.x,n.y)},_getConstantLineLabelsCoords:function(e){var t=this,n=o.getCosAndSin(-e-t.getAngles()[0]),i=t.getRadius()/2,r=t.getCenter(),a=_(r.x+i*n.cos),s=_(r.y-i*n.sin);return{x:a,y:s}},_checkAlignmentConstantLineLabels:v,_getScreenDelta:function(){var e=this.getAngles();return f(e[0]-e[1])*this.getRadius()*Math.PI/180},_getTickMarkPoints:function(e,t){var n=this.getCenter(),i={inside:-1,center:-.5,outside:0},r=this.getRadius()+t*i[this._options.tickOrientation||"center"];return[n.x+r,n.y,n.x+r+t,n.y]},_getLabelAdjustedCoord:function(e){var t=this,n=e.labelCoords,r=n.y,a=n.angle,s=o.getCosAndSin(a),l=s.cos,c=s.sin,u=e.labelBBox,d=u.width/2,h=u.height/2,p=t._options.label.indentFromAxis||0,f=n.x+p*l,_=r+(r-u.y-h)+p*c;switch(i(a)){case 1:f+=d,_+=h*c;break;case 2:f+=d*l,_+=h;break;case 3:f+=-d,_+=h*c;break;case 4:f+=d*l,_+=-h}return{x:f,y:_}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e.getCenter();return e._createPathElement(e._getGridPoints().points,n).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var e=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+e,t.y]}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=this._translator.translate(e,-t),r=g(this.getCenter(),n,i,this.getRadius());return{x:r.x,y:r.y,angle:i+n-y}},_getAdjustedStripLabelCoords:function(e){var t=e.labelBBox;return{translateY:e.label.attr("y")-t.y-t.height/2}},coordsIn:function(e,t){return o.convertXYToPolar(this.getCenter(),e,t).r>this.getRadius()},_rotateTick:function(e,t){var n=this.getCenter();e.rotate(t.angle,n.x,n.y)},_validateOverlappingMode:function(e){return c.validateOverlappingMode(e)},_validateDisplayMode:function(){return"standard"},_getStep:function(e){var t=this,n=t.getRadius()+(t._options.label.indentFromAxis||0),i=e.reduce(function(e,t){var n=e;return e.width<t.width&&(n.width=t.width),e.height<t.height&&(n.height=t.height),n},{width:0,height:0}),r=f(2*p.atan(i.height/(2*n-i.width))*180/p.PI),a=f(2*p.atan(i.width/(2*n-i.height))*180/p.PI);return c.getTicksCountInRange(t._majorTicks,"angle",p.max(r,a))},_checkBoundedLabelsOverlapping:function(e,t,n){var i=p.floor((n.length-1)/e)*e,r=this._options.label;i&&c.areLabelsOverlap(n[0],n[i],r.minSpacing,c.center)&&("first"===r.overlappingBehavior.hideFirstOrLast?t[0].label.remove():t[i].label.remove())},shift:function(e){this._axisGroup.attr({translateX:e.right,translateY:e.bottom})}},t.circularSpider=m({},r,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:h(this.getSpiderTicks(),function(e){return{x:e.coords.x,y:e.coords.y}})})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var e=this;return e._spiderTicks=e._tickManager.getFullTicks().map(d(e,e.renderer,{},{},e._getSkippedCategory(),!0)),e._spiderTicks.forEach(function(e){e.initCoords()}),e._spiderTicks},_getStripGraphicAttributes:function(e,t){for(var n,i,r,a,o=this.getCenter(),s=this.getSpiderTicks(),l=[],c=0,u=s.length;c<u;)a=s[c].coords,a.angle>=e&&a.angle<=t&&(n||(n=(s[c-1]||s[s.length-1]).coords,l.push((a.x+n.x)/2,(a.y+n.y)/2)),l.push(a.x,a.y),r=(s[c+1]||s[0]).coords,i={x:(a.x+r.x)/2,y:(a.y+r.y)/2}),c++;return l.push(i.x,i.y),l.push(o.x,o.y),{points:l}},_createStrip:function(e,t,n){var i=this._getStripGraphicAttributes(e,t).points;return this._renderer.path(i,"area").attr(n)},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_setTickOffset:function(){this._tickOffset=!1}}),a.linear={_getMinMax:r._getMinMax,_getStick:u._getStick,_getSpiderCategoryOption:s.noop,_updateTranslator:function(){this._translator.update({},{},{isHorizontal:!0})},_updateRadius:r._updateRadius,getRadius:r.getRadius,getCenter:r.getCenter,getAngles:r.getAngles,_updateCenter:r._updateCenter,_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this.getRadius()}},_createAxisElement:u._createAxisElement,_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({points:[e.x,e.y,e.x+this.getRadius(),e.y]}).rotate(this.getAngles()[0]-y,e.x,e.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(e,t){var n=e.coords;return[n.x-t/2,n.y,n.x+t/2,n.y]},_getLabelAdjustedCoord:function(e){var t,n,i=this,r=e.labelCoords,a=r.y,s=o.getCosAndSin(r.angle),l=i._options.label.indentFromAxis||0,c=e.labelBBox;return t=r.x-f(l*s.sin)+f(c.width/2*s.cos)-c.width/2,n=a+(a-c.y)-f(c.height/2*s.sin)+f(l*s.cos),{x:t,y:n}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return e._renderer.circle(i.x,i.y,i.r).attr(n).sharp()}},_getGridPoints:function(e){var t=this.getCenter();return{x:t.x,y:t.y,r:o.getDistance(t.x,t.y,e.x,e.y)}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=g(this.getCenter(),n,0,this._translator.translate(e,t));return{x:i.x,y:i.y,angle:n-y}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_getCanvasStartEnd:function(){return{start:0,end:this.getRadius()}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter();return{x:n.x,y:n.y,innerRadius:e,outerRadius:t}},_createStrip:function(e,t,n){var i=this._getStripGraphicAttributes(e,t);return this._renderer.arc(i.x,i.y,i.innerRadius,i.outerRadius,0,360).attr(n)},_getAdjustedStripLabelCoords:r._getAdjustedStripLabelCoords,_getStripLabelCoords:function(e,t){var n=this,i=e+(t-e)/2,r=n.getCenter(),a=_(r.y-i);return{x:r.x,y:a,align:c.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:e}},_createConstantLine:function(e,t){var n=this._getConstantLineGraphicAttributes(e);return this._renderer.circle(n.cx,n.cy,n.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(e){var t=this,n=t.getCenter(),i=_(n.y-e);return{x:n.x,y:i}},_checkAlignmentConstantLineLabels:v,_rotateTick:function(e,t){e.rotate(t.angle+y,t.x,t.y)},_validateOverlappingMode:r._validateOverlappingMode,_validateDisplayMode:r._validateDisplayMode,_getStep:function(e){var t=i(this.getAngles()[0]),n=this._options.label.minSpacing,r=2===t||4===t?function(e){return e.width+n}:function(e){return e.height},a=e.reduce(function(e,t){return p.max(e,r(t))},0);return c.getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",a)}},a.linearSpider=m({},a.linear,{_createPathElement:function(e,t){return this._renderer.path(e,"area").attr(t).sharp()},setSpiderTicks:function(e){this._spiderTicks=e},_getGridLineDrawer:function(){var e=this;return function(t,n,i){return e._createPathElement(e._getGridPoints(t.coords).points,n)}},_getGridPoints:function(e){var t=this.getCenter(),n=o.getDistance(t.x,t.y,e.x,e.y);return this._getGridPointsByRadius(n)},_getGridPointsByRadius:function(e){var t=this.getCenter();return{points:h(this._spiderTicks,function(n){var i=o.getCosAndSin(n.coords.angle);return{x:_(t.x+e*i.cos),y:_(t.y+e*i.sin)}})}},_getStripGraphicAttributes:function(e,t){var n=this._getGridPointsByRadius(t).points,i=this._getGridPointsByRadius(e).points;return{points:[i,n.reverse()]}},_createStrip:function(e,t,n){var i=this._getStripGraphicAttributes(e,t).points;return this._renderer.path(i,"area").attr(n)},_getConstantLineGraphicAttributes:function(e){return this._getGridPointsByRadius(e)},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)}})},function(e,t,n){function i(e,t){var n=[];return M(e,function(e,i){M(i,function(i,r){var a,o=r.getPointsByArg(t),s=o.length;for(a=0;a<s;++a)if(o[a].hasValue())return n.push(e),!1})}),n}function r(e,t,n,i){M(e,function(e,r){var a,o=T(e,t);o!==-1&&(a=s(o,i),M(r,function(e,t){l(t.getPointsByArg(n)||[],i.width,a)}))})}function a(e,t,n,a){
var c,u,d,h,p,f,_,g={},m={},v=e[0]&&.7*e[0].getArgumentAxis().getTranslator().getInterval(),y=n.barWidth;if(n.equalBarWidth)for(c=y&&(y<0||y>1)?0:y,_=o(v,t,c),d=0;d<e.length;d++)u=a(d,t),h=e[d].getPoints(),l(h,_.width,s(u,_));else{M(e,function(e,t){p=t.getStackName&&t.getStackName(),p=p||e.toString(),m[p]||(m[p]=[]),m[p].push(t),M(t.getPoints(),function(e,t){var n=t.argument;g.hasOwnProperty(n)||(g[n.valueOf()]=1)})});for(var b in g)f=i(m,b),_=o(v,f.length),r(m,f,b,_)}}function o(e,t,n){var i,r,a=t/2;return n?(r=A(e*n/t),i=A(t>1?(e-e*n)/(t-1):0)):(i=A(e/t*.2),r=A((e-i*(t-1))/t)),{width:r>1?r:1,spacing:i,middleIndex:a}}function s(e,t){return(e-t.middleIndex+.5)*t.width-(t.middleIndex-e-.5)*t.spacing}function l(e,t,n){M(e,function(e,i){i.correctCoordinates({width:t,offset:n})})}function c(e,t){return I(e)<t?e>=0?t:-t:e}function u(e){return e>=0?"positive":"negative"}function d(e){return e.series.filter(function(e){return e.isVisible()})}function h(e,t,n){var i=(e.positive[t]||{})[n]||0,r=-(e.negative[t]||{})[n]||0;return i+r}function p(e,t,n){return e?function(e,i){return i-(n?n[t[e].getStackName()]:e)-1}:function(e){return n?n[t[e].getStackName()]:e}}function f(){var e=this,t=d(e);a(t,t.length,e._options,p(e.rotated,t))}function _(){var e=this,t=d(e),n={},i=0;M(t,function(){var e=this.getStackName();n.hasOwnProperty(e)||(n[e]=i++)}),a(t,i,e._options,p(e.rotated,t,n))}function g(){var e=this,t=e._options.negativesAsZeroes,n=d(e),i={positive:{},negative:{}},r={left:{},right:{}};M(n,function(e,a){var o=a.getPoints(),s=!1;a._prevSeries=n[e-1],a.holes=C(!0,{},r),M(o,function(e,n){var l,c=n.initialValue,u=n.argument.valueOf(),d=a.getStackName(),h=c>=0?i.positive:i.negative;if(t&&c<0&&(h=i.positive,c=0,n.resetValue()),h[d]=h[d]||{},l=h[d],l[u]?(n.correctValue(l[u]),l[u]+=c):(l[u]=c,n.resetCorrection()),n.hasValue())s&&(s=!1,r.left[u]=(r.left[u]||0)+(n.value-(isFinite(n.minValue)?n.minValue:0)),n._skipSetLeftHole=!0);else{var p=o[e-1];!s&&p&&p.hasValue()&&(u=p.argument.valueOf(),p._skipSetRightHole=!0,r.right[u]=(r.right[u]||0)+(p.value-(isFinite(p.minValue)?p.minValue:0))),s=!0}})}),M(n,function(e,t){var n=t.getPoints(),i=t.holes;M(n,function(e,t){var n=t.argument.valueOf();t.resetHoles(),!t._skipSetLeftHole&&t.setHole(i.left[n]||r.left[n]&&0,"left"),!t._skipSetRightHole&&t.setHole(i.right[n]||r.right[n]&&0,"right"),t._skipSetLeftHole=null,t._skipSetRightHole=null})}),e._stackKeepers=i,M(n,function(t,n){M(n.getPoints(),function(t,a){var o=a.argument.valueOf();a.setPercentValue(h(i,n.getStackName(),o),e.fullStacked,r.left[o],r.right[o])})})}function m(){var e=this,t=d(e),n=e._stackKeepers,i={positive:{},negative:{}};M(t,function(t,r){var a=r.getOptions().minBarSize,o=a&&r.getValueAxis().getTranslator().getMinBarSize(a),s=r.getStackName();M(r.getPoints(),function(t,r){if(r.hasValue()){var a,l,d,p=r.initialValue,f=r.argument.valueOf();e.fullStacked&&(p=p/h(n,s,f)||0),a=c(p,o),l=u(a),d=i[l][s]=i[l][s]||{},d[f]?(r.minValue=d[f],d[f]+=a):d[f]=a,r.value=d[f]}})}),e.fullStacked&&v(t,i)}function v(e,t){M(e,function(e,n){var i=n.getStackName?n.getStackName():"default";M(n.getPoints(),function(e,n){var r=h(t,i,n.argument.valueOf());n.value=n.value/r,k.isNumeric(n.minValue)&&(n.minValue=n.minValue/r)})})}function y(){M(this.series,function(e,t){var n=t.getOptions().minBarSize,i=n&&t.getValueAxis().getTranslator().getMinBarSize(n);i&&M(t.getPoints(),function(e,t){t.hasValue()&&(t.value=c(t.initialValue,i))})})}function b(){var e=d(this);a(e,e.length,{barWidth:null,equalBarWidth:!0},p(this.rotated,e))}function x(){var e=d(this);if(e.length){var t,n,i,r,a,o=this._options,s=e[0].getArgumentAxis().getTranslator(),l=e[0].getValueAxis().getTranslator(),c=s.getCanvasVisibleArea(),u=l.getCanvasVisibleArea(),h=E.min(c.max-c.min,u.max-u.min),p=O(o.minBubbleSize,2),f=O(h*o.maxBubbleSize,2),_=(h*o.maxBubbleSize+o.minBubbleSize)/2,g=1/0,m=0;M(e,function(e,t){M(t.getPoints(),function(e,t){m=m>t.size?m:t.size,g=g<t.size?g:t.size})}),r=m-g,a=I(f-p),g=g<0?0:g,M(e,function(e,o){M(o.getPoints(),function(e,o){m===g?t=A(_):(i=I(o.size-g)/r,n=a*i+p,t=A(E.sqrt(n))),o.correctCoordinates(t)})})}}function S(e){var t=this;switch(t.type=L(e.type),t.pane=e.pane,t.rotated=e.rotated,t.series=[],t.updateOptions(e),t.type){case"bar":t.adjustSeriesDimensions=f,t.updateSeriesValues=y;break;case"rangebar":t.adjustSeriesDimensions=f;break;case"fullstackedbar":t.fullStacked=!0,t.adjustSeriesDimensions=_,t.adjustSeriesValues=g,t.updateSeriesValues=m;break;case"stackedbar":t.adjustSeriesDimensions=_,t.adjustSeriesValues=g,t.updateSeriesValues=m;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":t.fullStacked=!0,t.adjustSeriesValues=g;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":t.adjustSeriesValues=g;break;case"candlestick":case"stock":t.adjustSeriesDimensions=b;break;case"bubble":t.adjustSeriesDimensions=x}}var w=n(9),k=n(14),C=n(11).extend,T=n(26).inArray,E=Math,A=E.round,I=E.abs,O=E.pow,M=w.each,D=k.noop,P=n(509),L=P.normalizeEnum;t.SeriesFamily=S,S.prototype={constructor:S,adjustSeriesDimensions:D,adjustSeriesValues:D,updateSeriesValues:D,updateOptions:function(e){this._options=e},dispose:function(){this.series=null},add:function(e){var t=this.type;this.series=P.map(e,function(e){return e.type===t?e:null})}}},function(e,t,n){function i(e){return{x:e.x-_,y:e.y-g,width:e.width+2*_,height:e.height+2*g}}function r(e,t,n,r){var a=n?["x","width","y","height",t,0]:["y","height","x","width",e,1];return function(e,t,o){var s={x:o.x,y:o.y},l=i(e),c=n?o.y-e.y-e.height/2:o.y-e.y;return s.y=n||!n&&t===x?o.y+c:o.y,l[a[0]]<0?s[a[0]]-=l[a[0]]:l[a[0]]+l[a[1]]+c*a[5]>r[a[1]]&&(s[a[0]]-=l[a[0]]+l[a[1]]+c*a[5]-r[a[1]]),a[4]-l[a[3]]/2<0?s[a[2]]-=a[4]-l[a[3]]/2:a[4]+l[a[3]]/2>r[a[3]]&&(s[a[2]]-=a[4]+l[a[3]]/2-r[a[3]]),s}}function a(e,t,n,i){var r=this;r._renderer=e,r._crosshairGroup=i,r._options={},r.update(t,n)}var o=Math,s=o.abs,l=o.min,c=o.max,u=o.floor,d=n(509),h=n(11).extend,p="horizontal",f="vertical",_=8,g=4,m="center",v="right",y="left",b="top",x="bottom";t.getMargins=function(){return{x:_,y:g}},a.prototype={constructor:a,update:function(e,t){var n=this,i=t.canvas;n._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},n._axes=t.axes,n._panes=t.panes,n._prepareOptions(e,p),n._prepareOptions(e,f)},dispose:function(){var e=this;e._renderer=e._crosshairGroup=e._options=e._axes=e._canvas=e._horizontalGroup=e._verticalGroup=e._horizontal=e._vertical=e._circle=e._panes=null},_prepareOptions:function(e,t){var n=e[t+"Line"];this._options[t]={visible:n.visible,line:{stroke:n.color||e.color,"stroke-width":n.width||e.width,dashStyle:n.dashStyle||e.dashStyle,opacity:n.opacity||e.opacity,"stroke-linecap":"butt"},label:h(!0,{},e.label,n.label)}},_createLines:function(e,t,n){for(var i=[],r=this._canvas,a=[r.left,r.top,r.left,r.top],o=0;o<2;o++)i.push(this._renderer.path(a,"line").attr(e).sharp(t).append(n));return i},render:function(){var e=this,t=e._renderer,n=e._options,i=n.vertical,r=n.horizontal,a=r.visible?r.line:i.line,o={stroke:a.stroke,"stroke-width":a["stroke-width"],dashStyle:a.dashStyle,opacity:a.opacity},s=e._canvas;e._horizontal={},e._vertical={},e._circle=t.circle(s.left,s.top,0).attr(o).append(e._crosshairGroup),e._horizontalGroup=t.g().append(e._crosshairGroup),e._verticalGroup=t.g().append(e._crosshairGroup),i.visible&&(e._vertical.lines=e._createLines(i.line,"h",e._verticalGroup),e._vertical.labels=e._createLabels(e._axes[0],i,!1,e._verticalGroup)),r.visible&&(e._horizontal.lines=e._createLines(r.line,"v",e._horizontalGroup),e._horizontal.labels=e._createLabels(e._axes[1],r,!0,e._horizontalGroup)),e.hide()},_createLabels:function(e,t,n,i){var r,a,o,s,l,c=this,u=c._canvas,h=c._renderer,p=[],f=t.label;return f.visible&&e.forEach(function(e){var c,_=e.getOptions().position;e.getTranslator().getBusinessRange().stubData||(l=e.getLabelsPosition(),n?(a=u.top,r=l):(r=u.left,a=l),c=_===b||_===x?m:_===v?y:v,s=h.rect(0,0,0,0).attr({fill:f.backgroundColor||t.line.stroke}).append(i),o=h.text("0",0,0).css(d.patchFontOptions(t.label.font)).attr({align:c}).append(i),p.push({text:o,background:s,axis:e,options:f,pos:{coord:l,side:_},startXY:{x:r,y:a}}))}),p},_updateText:function(e,t,n,r,a){var o=this;n.forEach(function(n){var s=n.axis,l=n.startXY,c=n.text,u=n.background,d="";s.name&&s.name!==t||(d=s.getFormattedValue(e,n.options,r)),d?(c.attr({text:d,x:l.x,y:l.y}),c.attr(a(c.getBBox(),n.pos.side,l)),o._updateLinesCanvas(n),u.attr(i(c.getBBox()))):(c.attr({text:""}),u.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(e){var t=e.pos.side,n=e.pos.coord,i=this._linesCanvas,r=this._canvas;i[t]=i[t]!==r[t]&&s(i[t]-r[t])<s(n-r[t])?i[t]:n},_updateLines:function(e,t,n,i,r){for(var a=this._linesCanvas,o=this._canvas,s=r?[[l(t-i,a.left),o.top,t-i,o.top],[t+i,o.top,c(a.right,t+i),o.top]]:[[o.left,l(a.top,n-i),o.left,n-i],[o.left,n+i,o.left,c(a.bottom,n+i)]],u=0;u<2;u++)e[u].attr({points:s[u]})},_resetLinesCanvas:function(){var e=this._canvas;this._linesCanvas={left:e.left,right:e.right,top:e.top,bottom:e.bottom}},_getClipRectForPane:function(e,t){var n,i,r=this._panes;for(n=0;n<r.length;n++)if(i=r[n].coords,i.left<=e&&i.right>=e&&i.top<=t&&i.bottom>=t)return r[n].clipRect;return{id:null}},show:function(e){var t=this,n=e.point,i=n.getCrosshairData(e.x,e.y),a=n.getPointRadius(),o=t._horizontal,s=t._vertical,l=a?a+3:0,c=t._canvas,d=u(i.x),h=u(i.y);d>=c.left&&d<=c.right&&h>=c.top&&h<=c.bottom?(t._crosshairGroup.attr({visibility:"visible"}),t._resetLinesCanvas(),t._circle.attr({cx:d,cy:h,r:l,"clip-path":t._getClipRectForPane(d,h).id}),o.lines&&(t._updateText(i.yValue,i.axis,o.labels,n,r(d,h,!0,c)),t._updateLines(o.lines,d,h,l,!0),t._horizontalGroup.attr({translateY:h-c.top})),s.lines&&(t._updateText(i.xValue,i.axis,s.labels,n,r(d,h,!1,c)),t._updateLines(s.lines,d,h,l,!1),t._verticalGroup.attr({translateX:d-c.left}))):t.hide()}},t.Crosshair=a},function(e,t,n){function i(e,t,n,i){var r=0;return"right"===t?r=e.width-e.right+n:"left"===t&&(r=e.left-n-i),r}function r(e,t,n,i){var r=0;return"top"===t?r=e.top-n:"bottom"===t&&(r=e.height-e.bottom+i+n),r}var a=n(9),o=n(11).extend,s=2,l=n(571),c=n(14),u=n(76),d=c.isDefined,h=Math.min,p=Math.max,f=function(e,t){this._translator=new l.Translator2D({},{},{}),this._scroll=e.rect().append(t),this._addEvents()};f.prototype={_addEvents:function(){var e=this,t=a(e._scroll.element),n=0,i=0,r=function(r){var s=(n-r.pageX)*e._scale,l=(i-r.pageY)*e._scale;t.trigger(new a.Event("dxc-scroll-move",o(r,{type:"dxc-scroll-move",pointers:[{pageX:n+s,pageY:i+l}]})))};t.on(u.down,function(e){n=e.pageX,i=e.pageY,t.trigger(new a.Event("dxc-scroll-start",{pointers:[{pageX:n,pageY:i}]})),a(document).on(u.move,r)}),a(document).on(u.up,function(){a(document).off(u.move,r)})},update:function(e){var t=this,n=e.position,i=e.rotated,r=i?"right":"top",a=i?"left":"bottom";return n!==r&&n!==a&&(n=r),t._scroll.attr({rotate:e.rotated?0:-90,rotateX:0,rotateY:0,fill:e.color,width:e.width,opacity:e.opacity}),t._layoutOptions={width:e.width,offset:e.offset,vertical:i,position:n},t},init:function(e){var t=this;return t._translateWithOffset="discrete"===e.axisType&&!e.stick&&1||0,t._translator.update(o({},e,{minVisible:null,maxVisible:null,visibleCategories:null}),t._canvas,{isHorizontal:!t._layoutOptions.vertical}),t},getOptions:function(){return this._layoutOptions},setPane:function(e){var t,n=this._layoutOptions.position;return t="left"===n||"top"===n?e[0]:e[e.length-1],this.pane=t.name,this},updateSize:function(e){this._canvas=o({},e);var t=this._layoutOptions,n=t.position,a=t.offset,s=t.width;this._scroll.attr({translateX:i(e,n,a,s),translateY:r(e,n,a,s)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var e=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[e.position]=e.width+e.offset,t},draw:function(){},shift:function(){},hideTitle:function(){},hideOuterElements:function(){},setPosition:function(e,t){var n=this,i=n._translator,r=d(e)?i.translate(e,-n._translateWithOffset):i.translate("canvas_position_start"),a=d(t)?i.translate(t,n._translateWithOffset):i.translate("canvas_position_end");n._offset=h(r,a),n._scale=i.getScale(e,t),n._applyPosition(h(r,a),p(r,a))},transform:function(e,t){var n=this._translator,i=n.getCanvasVisibleArea().min,r=i-(i*t-e),a=this._offset+r/(this._scale*t);this._applyPosition(a,a+n.canvasLength/(this._scale*t))},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(e,t){var n,i=this,r=i._translator.getCanvasVisibleArea();e=p(e,r.min),e=h(e,r.max),t=h(t,r.max),t=p(t,r.min),n=Math.abs(t-e),i._scroll.attr({y:e,height:n<s?s:n})}},t.ScrollBar=f},function(e,t,n){function i(e,t,n,i){var r=Math.floor(n?i.pageY-e.top:i.pageX-e.left),a=n?t.y1:t.x1,o=n?t.y2:t.x2;return r<a?r=a:r>o&&(r=o),r}function r(e,t,n){var i=n.pageX-e.left,r=n.pageY-e.top;return i>=t.x1&&i<=t.x2&&r>=t.y1&&r<=t.y2}function a(e){return function(t){var n=e.getRootOffset(),a=e.getCanvas();return r(n,a,t)?(e.rootOffset=n,e.canvas=a,e.startCoord=i(n,a,e.rotated,t),e.triggerStart(),void e.rect.attr({x:a.x1,y:a.y1,width:a.width,height:a.height}).append(e.root)):void(t.cancel=!0)}}function o(e){return function(t){var n=i(e.rootOffset,e.canvas,e.rotated,t),r={};e.curCoord=n,r[e.rotated?"y":"x"]=Math.min(e.startCoord,n),r[e.rotated?"height":"width"]=Math.abs(e.startCoord-n),e.rect.attr(r)}}function s(e){return function(t){e.triggerEnd(),e.rect.remove()}}function l(e){var t=e.chart,n=e.renderer,i=e.rotated,r=n.rect(0,0,0,0).attr(e.shutterOptions),l={rect:r,root:n.root,rotated:i,triggerStart:function(){t._eventTrigger("zoomStart")},triggerEnd:function(){var e=t._argumentAxes[0].getTranslator(),n=Math.min(this.startCoord,this.curCoord),i=Math.max(this.startCoord,this.curCoord);t._eventTrigger("zoomEnd",{rangeStart:e.untranslate(n),rangeEnd:e.untranslate(i)})},dispose:function(){n.root.off(u),r.dispose()},getRootOffset:function(){return n.getRootOffset()},getCanvas:function(){var e=t._canvas,n=t.panes,i=n[0].canvas,r=n[n.length-1].canvas;return{x1:i.left,y1:i.top,x2:e.width-r.right,y2:e.height-r.bottom,width:e.width-i.left-r.right,height:e.height-i.top-r.bottom}}};return n.root.off(u).on(d,{direction:i?"vertical":"horizontal",immediate:!0},a(l)).on(h,o(l)).on(p,s(l)),l}var c=n(110),u=".shutter-zoom",d=c.start+u,h=c.move+u,p=c.end+u;e.exports={name:"shutter_zoom",init:function(){var e=this.option("shutterZoom")||{};e.enabled&&(this._shutterZoom=l({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:e}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}}},function(e,t,n){function i(e){var t=k;return e.forEach(function(e){t|=e.fullState}),C[t]}function r(e){return u.isNumeric(e)?e>1?e=1:e<0&&(e=0):e=void 0,e}var a=n(9),o=n(7),s=n(527),l=n(509),c=n(11).extend,u=n(14),d=n(564),h=n(57),p=n(514),f=p.BaseChart,_=p.overlapping,g=s.pieSeriesSpacing,m=n(585),v=["startAngle","innerRadius","segmentsDirection","type"],y=c,b=a.each,x=u.noop,S=n(509).getVerticallyShiftedAngularCoords,w=s.states,k=w.normalMark,C=[w.resetItem,w.applyHover,w.applySelected,w.applySelected],T=f.inherit({_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),y(this._deprecatedOptions,{"series.innerRadius":{since:"15.2",message:"Use the 'innerRadius' option instead"},"series.startAngle":{since:"15.2",message:"Use the 'startAngle' option instead"},"series.segmentsDirection":{since:"15.2",message:"Use the 'segmentsDirection' option instead"},"series.type":{since:"15.2",message:"Use the 'type' option instead"}})},_chartType:"pie",_layoutManagerOptions:function(){return y(!0,{},this.callBase(),{piePercentage:r(this._themeManager.getOptions("diameter")),minPiePercentage:r(this._themeManager.getOptions("minDiameter"))})},_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT"},_disposeCore:function(){E.remove(this),this.callBase()},_groupSeries:function(){var e=this.series;this._groupsData={groups:[{series:e,valueOptions:{valueType:"numeric"}}],argumentOptions:e[0]&&e[0].getOptions()}},_getArgumentAxis:function(){return null},_getValueAxis:function(){var e=(new m.Translator1D).setCodomain(360,0);return{getTranslator:function(){return e},setBusinessRange:function(t){e.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.businessRanges=this.series.map(function(e){var t=new d.Range;return t.addRange(e.getRangeData().val),t.isDefined()||t.setStubData(),e.getValueAxis().setBusinessRange(t),t})},_specialProcessSeries:function(){b(this.series,function(e,t){t.arrangePoints()})},_checkPaneName:function(){return!0},_processSingleSeries:function(e){e.arrangePoints()},_getLegendTargets:function(){var e=this,t={},n=[];return e.series.forEach(function(e){b(e.pointsByArgument,function(e,n){n.forEach(function(n,i){var r=e.valueOf().toString()+i;t[r]=t[r]||[];var a=t[r].push(n);n.index=t[r][a-2]?t[r][a-2].index:Object.keys(t).length-1,n.argumentIndex=i})})}),b(t,function(t,i){i.forEach(function(t,i){0===i?n.push(e._getLegendOptions(t)):n[n.length-1].visible||(n[n.length-1].visible=t.isVisible())})}),n},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(e,t){var n,i=this,r=i._canvas,a=!1;return n=i.layoutManager.applyPieChartSeriesLayout(r,e,!0),e.forEach(function(e){e.correctPosition(n,r),a=e.drawLabelsWOPoints()||a}),a&&(n=i.layoutManager.applyPieChartSeriesLayout(r,e,t.hideLayoutLabels)),e.forEach(function(e){e.hideLabels()}),i._sizeGroupLayout={x:n.centerX,y:n.centerY,radius:n.radiusOuter,drawOptions:t},n},_getLayoutSeriesForEqualPies:function(e,t){var n=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(e,t);return e.forEach(function(e){e.correctPosition(i,n)}),i},_updateSeriesDimensions:function(e){var t,n,i,r=this,a=r._getVisibleSeries(),o=a.length,s=e.sizeGroupLayout;o&&(i=s?r._getLayoutSeriesForEqualPies(a,s):r._getLayoutSeries(a,e),n=(i.radiusOuter-i.radiusInner-g*(o-1))/o,t=i.radiusInner,r._setCenter({x:i.centerX,y:i.centerY}),b(a,function(e,i){i.correctRadius({radiusInner:t,radiusOuter:t+n}),t+=n+g}))},_renderSeries:function(e,t,n){return this._calculateSeriesLayout(e,t),!e.sizeGroupLayout&&this.getSizeGroup()?void E.queue(this):void this._renderSeriesElements(e,t,n)},_getLegendCallBack:function(){var e=this,t=this._legend,n=this._getLegendTargets().map(function(e){return e.legendData});return function(r){n.forEach(function(n){var a=[],o=t.getActionCallback({index:n.id});e.series.forEach(function(e){var t=e.getPointsByKeys(n.argument,n.argumentIndex);a.push.apply(a,t)}),r&&r.argument===n.argument&&r.argumentIndex===n.argumentIndex&&a.push(r),o(i(a))})}},_adjustSeries:function(){b(this.series,function(e,t){t.adjustLabels()})},_prepareStackPoints:x,_resetStackPoints:x,_applyExtraSettings:x,_resolveLabelOverlappingShift:function(){function e(e,t){return S(e,-t,i)}var t=this,n=t.series,i=t._center;b(n,function(n,i){if("inside"!==i.getOptions().label.position){var r=i.getVisiblePoints(),o=[],s=[];a.each(r,function(e,t){var n=l.normalizeAngle(t.middleAngle);(n<=90||n>=270?s:o).push(t)}),_.resolveLabelOverlappingInOneDirection(o,t._canvas,!1,e),_.resolveLabelOverlappingInOneDirection(s,t._canvas,!1,e)}})},_setCenter:function(e){this._center=e},_disposeSeries:function(){this.callBase.apply(this,arguments),this._abstractSeries=null},getSeries:function(){return o.log("W0002","dxPieChart","getSeries","15.2","Use the 'getAllSeries' method instead"),this.series[0]},_legendDataField:"point",_legendItemTextField:"argument",_updateLegendPosition:x,_renderTrackers:x,_trackerType:"PieTracker",_createScrollBar:x,_updateAxesLayout:x,_applyClipRects:x,_appendAdditionalSeriesGroups:x,_prepareToRender:x,_isLegendInside:x,_renderAxes:x,_shrinkAxes:x,_isRotated:x,_seriesPopulatedHandlerCore:x,_reinitAxes:x,_correctAxes:x,_getExtraOptions:function(){var e=this;return{startAngle:e.option("startAngle"),innerRadius:e.option("innerRadius"),segmentsDirection:e.option("segmentsDirection"),type:e.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout},setPieSize:function(e){var t=this._sizeGroupLayout.drawOptions;t.sizeGroupLayout=e,this._renderSeries(t,this._isRotated(),this._isLegendInside())}});b(v,function(e,t){T.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"}),h("dxPieChart",T),e.exports=T;var E=function(){function e(e,t){var n=t.filter(function(t){return t.getSizeGroup()===e}),i=Math.min.apply(null,n.map(function(e){return e.getSizeGroupLayout().radius})),r=n.filter(function(e){return e.getSizeGroupLayout().radius===i})[0].getSizeGroupLayout();n.forEach(function(e){e.setPieSize({x:r.x,y:r.y,radius:i})})}function t(e,t){return e.filter(function(e){return e!==t})}function n(e,n){return t(e,n).concat(n)}var i=[],r={};return{queue:function(t){var a=t.getSizeGroup();i=n(i,t),clearTimeout(r[a]),r[a]=setTimeout(function(){e(a,i)})},remove:function(e){i=t(i,e),i.length||(r={})}}}()},function(e,t){function n(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3])}var i=Number;n.prototype={constructor:n,setDomain:function(e,t){var n=this;return n._domain1=i(e),n._domain2=i(t),n._domainDelta=n._domain2-n._domain1,n},setCodomain:function(e,t){var n=this;return n._codomain1=i(e),n._codomain2=i(t),n._codomainDelta=n._codomain2-n._codomain1,n},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(e){var t=(i(e)-this._domain1)/this._domainDelta;return 0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(e){var t=(i(e)-this._domain1)/this._domainDelta,n=NaN;return t<0?n=this._domain1:t>1?n=this._domain2:0<=t&&t<=1&&(n=i(e)),n}},t.Translator1D=n},function(e,t,n){var i=n(14).noop,r=n(57),a=n(11).extend,o=n(509),s=n(563).AdvancedChart,l=i,c="default",u=s.inherit({_chartType:"polar",_createPanes:function(){return[{name:c}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(e){var t="argumentAxis"===e,n=t?"circular":"linear",i=this.option("useSpiderWeb");return i&&(n+="Spider"),{axisType:"polarAxes",drawingType:n}},_prepareAxisOptions:function(e,t){var n="argumentAxis"===e,i=this._themeManager,r=this.option("argumentAxis"),a=i.getOptions("argumentAxis",r)||{},s=isFinite(a.startAngle)?o.normalizeAngle(a.startAngle):0;return{type:this.option("useSpiderWeb")&&n?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:n,startAngle:s,endAngle:s+360}},_optionChangesMap:{useSpiderWeb:"REINIT"},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_renderAxes:function(e){this._drawAxes(e)},_getValueAxis:function(){return this._valueAxes[0]},_prepareAxesAndDraw:function(e,t){var n=this,i=n._getValueAxis(),r=n._getArgumentAxis(),a=n._calcCanvas(r.measureLabels(!0));r.draw(a),i.setSpiderTicks(r.getSpiderTicks()),i.draw(a)},_shrinkAxes:function(e,t){var n=this._getValueAxis(),i=this._getArgumentAxis();(t.width||t.height)&&(i.hideOuterElements(),i.updateSize(this._canvas),n.updateSize(this._canvas))},_calcCanvas:function(e){var t=a({},this._canvas);return t.left+=e.width,t.right+=e.width,t.top+=e.height,t.bottom+=e.height,t},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyExtraSettings:l,_updateLegendPosition:l,_createScrollBar:l,_applyClipRects:l,_isRotated:l,_getCrosshairOptions:l,_isLegendInside:l,_processSingleSeries:l});r("dxPolarChart",u),e.exports=u},function(e,t,n){e.exports=n(588)},function(e,t,n){function i(e,t,n){var i,r=u({},e);return n=n||{},t&&(r.left+=n.left||0,r.right-=n.right||0,r.top+=n.top||0,r.bottom-=n.bottom||0,t.width>0&&(i=(r.right-r.left-t.width)/2,i>0&&(r.left+=i,r.right-=i)),t.height>0&&(i=(r.bottom-r.top-t.height)/2,i>0&&(r.top+=i,r.bottom-=i))),r}var r=n(9),a=Math.max,o=Math.min,s=Math.round,l=r.each,c=n(57),u=n(11).extend,d=n(27),h=n(589).dxBaseGauge,p=n(591).dxGauge,f=n(509).normalizeEnum,_=n(592),g=n(591).createIndicatorCreator,m=n(594),v=n(596),y=p.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(e){return e.isHorizontal?e.verticalOrientation:e.horizontalOrientation},_updateScaleTickIndent:function(e){var t,n,i,r=e.label.indentFromTick,a=e.tick.length,o=this._scale.measureLabels(),s=e.isHorizontal?o.height+o.y:0,l=r>0;e.isHorizontal?(t=l?{center:.5,middle:.5,top:0,bottom:1}:{center:.5,middle:.5,top:1,bottom:0},i=a*t[e.verticalOrientation],n=o.y):(t=l?{center:.5,left:0,right:1}:{center:.5,left:1,right:0},i=a*t[e.horizontalOrientation],n=-o.width),e.label.indentFromAxis=-r+(l?-i+n:i-s),this._scale.updateOptions(e)},_shiftScale:function(e,t){var n=this,i=u({},n._canvas),r=t.isHorizontal,a=n._scale;i[r?"left":"top"]=n._area[r?"startCoord":"endCoord"],i[r?"right":"bottom"]=i[r?"width":"height"]-n._area[r?"endCoord":"startCoord"],a.draw(i),a.shift({left:-e.x,top:-e.y})},_setupCodomain:function(){var e=this,t=e.option("geometry")||{},n="vertical"===f(t.orientation);e._area={vertical:n,x:0,y:0,startCoord:-100,endCoord:100},e._rangeContainer.vertical=n},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return this._area.vertical?"left"===e.horizontalOrientation?(t.inner=1,t.outer=0):"center"===e.horizontalOrientation&&(t.inner=t.outer=.5):"top"===e.verticalOrientation?(t.inner=1,t.outer=0):"center"!==e.verticalOrientation&&"middle"!==e.verticalOrientation||(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){var i=this._area.vertical;t>=0?e.max+=t+n[i?"width":"height"]:e.min-=-t+n[i?"width":"height"],e.indent=n[i?"height":"width"]/2},_measureMainElements:function(e,t){var n=this,i=n._area.x,r=n._area.y,s=1e3,c=0,u=0,d=n._scale;return l(e.concat(d),function(e,n){var l=n.measure?n.measure({x:i+n.getOffset(),y:r+n.getOffset()}):t;void 0!==l.max&&(c=a(c,l.max)),void 0!==l.min&&(s=o(s,l.min)),l.indent>0&&(u=a(u,l.indent))}),{minBound:s,maxBound:c,indent:u}},_applyMainLayout:function(e,t){var n,r,a=this,o=a._measureMainElements(e,t),l=a._area;l.vertical?(n=i(a._innerRect,{width:o.maxBound-o.minBound}),r=(n.left+n.right)/2-(o.minBound+o.maxBound)/2,l.startCoord=n.bottom-o.indent,l.endCoord=n.top+o.indent,l.x=s(l.x+r)):(n=i(a._innerRect,{height:o.maxBound-o.minBound}),r=(n.top+n.bottom)/2-(o.minBound+o.maxBound)/2,l.startCoord=n.left+o.indent,l.endCoord=n.right-o.indent,l.y=s(l.y+r)),a._translator.setCodomain(l.startCoord,l.endCoord),a._innerRect=n},_getElementLayout:function(e){return{x:s(this._area.x+e),y:s(this._area.y+e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=t.vertical?e._canvas.height:e._canvas.width;return n>t.totalSize&&(n=t.totalSize),n=.8*n},_getDefaultSize:function(){var e=this.option("geometry")||{};return"vertical"===e.orientation?{width:100,height:300}:{width:300,height:100}},_factory:d.clone(h.prototype._factory)}),b=y.prototype._factory.indicators={};y.prototype._factory.createIndicator=g(b),b._default=_._default,b.rectangle=_.rectangle,b.rhombus=_.rhombus,b.circle=_.circle,b.trianglemarker=_.trianglemarker,b.textcloud=_.textcloud,b.rangebar=_.rangebar,y.prototype._factory.RangeContainer=m,y.prototype._factory.ThemeManager=v.inherit({_subTheme:"_linear"}),c("dxLinearGauge",y),e.exports=y},function(e,t,n){function i(e,t){var n,i=e.length;for(n=0;n<i;++n)if(e[n]!==t[n])return!1;return!0}function r(e){return f(e)?{text:e}:e||{}}var a=Number,o=n(509).getAppropriateFormat,s=n(11).extend,l=n(585),c=s,u=n(515),d=n(509).normalizeEnum,h=n(14),p=n(590),f=h.isString,_=u.inherit({_rootClassPrefix:"dxg",_createThemeManager:function(){return new this._factory.ThemeManager},_setDeprecatedOptions:function(){this.callBase(),c(this._deprecatedOptions,{subtitle:{since:"15.2",message:"Use the 'title.subtitle' option instead"},"title.position":{since:"15.2",message:"Use the 'verticalAlignment' and 'horizontalAlignment' options instead"},"scale.hideFirstTick":{since:"15.2",message:"The functionality is not more available"},"scale.hideLastTick":{since:"15.2",message:"The functionality is not more available"},"scale.hideFirstLabel":{since:"15.2",message:"The functionality is not more available"},"scale.hideLastLabel":{since:"15.2",message:"The functionality is not more available"},"scale.majorTick":{since:"15.2",message:"Use the 'tick' option instead"},"scale.minorTick.showCalculatedTicks":{since:"15.2",message:"The functionality is not more available"},"scale.minorTick.customTickValues":{since:"15.2",message:"Use the 'customMinorTicks' option instead"},"scale.minorTick.tickInterval":{since:"15.2",message:"Use the 'minorTickInterval' option instead"},"scale.label.overlappingBehavior.useAutoArrangement":{since:"17.1",message:"Use the 'scale.label.overlappingBehavior' option instead"},"scale.label.overlappingBehavior.hideFirstOrLast":{since:"17.1",message:"Use the 'scale.label.hideFirstOrLast' option instead"}})},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._initDeltaIndicator(),e._tracker=e._factory.createTracker({renderer:e._renderer,container:t}),e._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),++this._valueChangingLocker},_endValueChanging:function(){0===--this._valueChangingLocker&&this._drawn()},_initDeltaIndicator:function(){var e=this,t=e._DeltaIndicator;t&&(e._deltaIndicator=new t({renderer:e._renderer,container:e._renderer.root}),e._deltaIndicator.layoutOptions=function(){this.clean(),this.draw(e._getOption("indicator"));var t=this.getLayoutOptions();return this._size=t?[t.width,t.height]:null,t&&{horizontalAlignment:t.horizontalAlignment||"center",verticalAlignment:t.verticalAlignment||"bottom"}},e._deltaIndicator.measure=function(){return this._size},e._deltaIndicator.move=function(e){return this.shift(Math.round(e[0]),Math.round(e[1]))},e._layout.add(e._deltaIndicator))},_disposeDeltaIndicator:function(){this._deltaIndicator&&(this._deltaIndicator.clean(),this._deltaIndicator.dispose())},_setTrackerCallbacks:function(){var e=this,t=e._renderer,n=e._tooltip;e._tracker.setCallbacks({"tooltip-show":function(e,i){var r=e.getTooltipParameters(),a=t.getRootOffset(),o=c({value:r.value,valueText:n.formatValue(r.value),color:r.color},i);return n.show(o,{x:r.x+a.left,y:r.y+a.top,offset:r.offset},{target:i})},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._disposeDeltaIndicator(),e._translator=e._tracker=null},_cleanCore:function(){var e=this;e._tracker.deactivate(),e._cleanContent()},_renderCore:function(){var e=this;e._isValidDomain&&(e._renderContent(),e._tracker.setTooltipState(e._tooltip.isEnabled()),e._tracker.activate(),e._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var e=this;e._resizing=e._noAnimation=2===e._changes.count(),e.callBase.apply(e,arguments)},_applySize:function(e){var t=this;t._innerRect={left:e[0],top:e[1],right:e[2],bottom:e[3]};var n=t._layout._cache;return t._cleanCore(),t._renderCore(),t._layout._cache=t._layout._cache||n,[e[0],t._innerRect.top,e[2],t._innerRect.bottom];
},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){var e=this;e._setupDomainCore(),e._isValidDomain=isFinite(1/(e._translator.getDomain()[1]-e._translator.getDomain()[0])),e._isValidDomain||e._incidentOccurred("W2301"),e._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){var e=this;e._setupCodomain(),e._setupAnimationSettings(),e._setupDefaultFormat(),e._change(["LAYOUT"])},_setupAnimationSettings:function(){var e=this,t=e.option("animation");e._animationSettings=null,(void 0===t||t)&&(t=c({enabled:!0,duration:1e3,easing:"easeOutCubic"},t),t.enabled&&t.duration>0&&(e._animationSettings={duration:a(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=o(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new l.Translator1D},createTracker:function(e){return new p(e)}}});t.dxBaseGauge=_;var g=n(530),m=function(e,t,n){t=t||{};var i,r=g(e,t);return"function"==typeof t.customizeText?(i=c({value:e,valueText:r},n),String(t.customizeText.call(i,i))):r},v=function(e,t){var n=m(e.getDomainStart(),t),i=m(e.getDomainEnd(),t);return n.length>=i.length?n:i};t.formatValue=m,t.getSampleText=v,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&i(e,t)},_.addPlugin(n(511).plugin),_.addPlugin(n(558).plugin),_.addPlugin(n(559).plugin),_.addPlugin(n(560).plugin);var y=_.prototype._setTooltipOptions;_.prototype._setTooltipOptions=function(){y.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())},_.prototype._getTitleOptions=function(){var e,t,n=this,i=r(n.option("title"));return n._suppressDeprecatedWarnings(),i.subtitle=s(r(i.subtitle),r(n.option("subtitle"))),n._resumeDeprecatedWarnings(),e=c(!0,{},n._themeManager.theme("title"),i),e.position&&(t=d(e.position).split("-"),e.verticalAlignment=t[0],e.horizontalAlignment=t[1]),e}},function(e,t,n){function i(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._element.off(b).on(b,e.data),t._showTooltip(e,f)}function r(e){var t=e.data.tracker;(t._showTooltipTimeout&&d(e.pageX-t._x)>4||d(e.pageY-t._y)>4)&&(t._x=e.pageX,t._y=e.pageY,t._showTooltip(e,f))}function a(e){var t=e.data.tracker;t._element.off(b),t._hideTooltip(_)}function o(e){e.data.tracker._hideTooltip()}function s(e){e.preventDefault();var t=w;t&&t!==e.data.tracker&&t._hideTooltip(m),t=w=e.data.tracker,t._showTooltip(e,g),t._touch=!0}function l(){var e=w;e&&(e._touch||(e._hideTooltip(m),w=null),e._touch=null)}function c(){var e=w;e&&e._showTooltipTimeout&&(e._hideTooltip(m),w=null)}var u=n(9),d=Math.abs,h=n(25),p=n(85),f=300,_=300,g=400,m=300,v=h.inherit({ctor:function(e){var t=this;t._element=e.renderer.g().attr({"class":"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(e.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){t._showTooltipTimeout=null;var e=t._tooltipEvent.target,n=e["gauge-data-target"],i=e["gauge-data-info"];t._targetEvent=null,t._tooltipTarget!==e&&t._callbacks["tooltip-show"](n,i)&&(t._tooltipTarget=e)},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._showTooltipTimeout),clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){var e=this;return e._dispose(),e.deactivate(),e._element.linkOff(),e._element=e._context=e._callbacks=null,e},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(e,t,n){return e.data({"gauge-data-target":t,"gauge-data-info":n}).append(this._element),this},detach:function(e){return e.remove(),this},setTooltipState:function(e){var t,n=this;return n._element.off(y).off(S).off(x),e&&(t={tracker:n},n._element.on(y,t).on(S,t).on(x,t)),n},setCallbacks:function(e){return this._callbacks=e,this},_showTooltip:function(e,t){var n=this;clearTimeout(n._hideTooltipTimeout),n._hideTooltipTimeout=null,n._tooltipTarget!==e.target&&(clearTimeout(n._showTooltipTimeout),n._tooltipEvent=e,n._showTooltipTimeout=setTimeout(n._showTooltipCallback,t))},_hideTooltip:function(e){var t=this;clearTimeout(t._showTooltipTimeout),t._showTooltipTimeout=null,clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()}}),y={"mouseover.gauge-tooltip":i,"mouseout.gauge-tooltip":a},b={"mousemove.gauge-tooltip":r},x={};x[p.name+".gauge-tooltip"]=o;var S={"touchstart.gauge-tooltip":s},w=null;u(window.document).on({"touchstart.gauge-tooltip":l,"touchend.gauge-tooltip":c}),e.exports=v},function(e,t,n){function i(e,t){return O(e)?M(e):t}function r(e){return w(e)?e:k(e)?[e]:null}function a(e){return e?e.value:null}function o(e,t,n){for(var r=e[t],o=w(n)?E(n,a):[],s=0,l=o.length,c=[];s<l;++s)c.push(i(o[s],r[s]));e[t]=c}function s(e){void 0===e.option(F)&&void 0===e.option(z)&&void 0!==e.option("valueIndicators")&&(l(e),c(e))}function l(e){e.value=e.subvalues=V,e._setupValue=e._setupSubvalues=e._updateValueIndicator=e._updateSubvalueIndicators=null}function c(e){e._indicatorValues=[],o(e,"_indicatorValues",e.option("valueIndicators")),e._valueIndicators=[];var t=e._applyMostlyTotalChange;e._applyMostlyTotalChange=function(){o(this,"_indicatorValues",this.option("valueIndicators")),t.call(this)},e._updateActiveElements=u,e._prepareValueIndicators=d,e._disposeValueIndicators=h,e._cleanValueIndicators=p,e.indicatorValue=f}function u(){var e=this;B(e._valueIndicators,function(t,n){n.value(e._indicatorValues[n.index],e._noAnimation)})}function d(){var e,t=this,n=t._valueIndicators||[],i=t.option("valueIndicators"),r=[],a=0;for(e=w(i)?i.length:0;a<e;++a)r.push(i[a]);for(e=n.length;a<e;++a)r.push(null);var o=[];return B(r,function(e,i){var r=n[e];if(!i)return void(r&&r.dispose());var a=t._prepareIndicatorSettings(i,"valueIndicatorType");r&&r.type!==a.type&&(r.dispose(),r=null),r||(r=t._createIndicator(a.type,t._renderer.root,"dxg-value-indicator","value-indicator",e,!0)),r&&(r.index=e,r.render(a),o.push(r))}),t._valueIndicators=o,t._valueIndicators}function h(){B(this._valueIndicators,function(e,t){t.dispose()}),this._valueIndicators=null}function p(){B(this._valueIndicators,function(e,t){t.clean()})}function f(e,t){return _(this,this._valueIndicators,this._indicatorValues,e,t)}function _(e,t,n,r,a){return void 0!==a?(void 0!==n[r]&&(n[r]=i(a,n[r]),t[r]&&t[r].value(n[r])),e):n[r]}function g(e){this._parameters=e,this._indicators=[]}var m=n(9),v=n(589).dxBaseGauge,y=n(14),b=n(11).extend,x=y.isDefined,S=y.isString,w=Array.isArray,k=y.isNumeric,C=n(564),T=n(565),E=n(509).map,A=n(509).normalizeEnum,I=n(589).compareArrays,O=isFinite,M=Number,D=Math.min,P=Math.max,L=b,B=m.each,V=y.noop,R=90,F="value",z="subvalues",H=5,N=[1,2,5];t.dxGauge=v.inherit({_initCore:function(){var e=this,t=e._renderer;e._setupValue(e.option(F)),e.__subvalues=r(e.option(z)),e._setupSubvalues(e.__subvalues),s(e),e.callBase.apply(e,arguments),e._rangeContainer=new e._factory.RangeContainer({renderer:t,container:t.root,translator:e._translator,themeManager:e._themeManager}),e._initScale()},_initScale:function(){var e=this;e._scaleGroup=e._renderer.g().attr({"class":"dxg-scale"}).linkOn(e._renderer.root,"scale"),e._scale=new T.Axis({incidentOccurred:e._incidentOccurred,renderer:e._renderer,axesContainerGroup:e._scaleGroup,axisType:e._scaleTypes.type,drawingType:e._scaleTypes.drawingType,widgetClass:"dxg"})},_disposeCore:function(){var e=this;e.callBase.apply(e,arguments),e._scale.dispose(),e._scaleGroup.linkOff(),e._rangeContainer.dispose(),e._disposeValueIndicators(),e._scale=e._scaleGroup=e._rangeContainer=null},_disposeValueIndicators:function(){var e=this;e._valueIndicator&&e._valueIndicator.dispose(),e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.dispose(),e._valueIndicator=e._subvalueIndicatorsSet=null},_setupDomainCore:function(){var e=this,t=e.option("scale")||{},n=e.option("startValue"),i=e.option("endValue");n=k(n)?M(n):k(t.startValue)?M(t.startValue):0,i=k(i)?M(i):k(t.endValue)?M(t.endValue):100,e._baseValue=n<i?n:i,e._translator.setDomain(n,i)},_cleanContent:function(){var e=this;e._rangeContainer.clean(),e._cleanValueIndicators()},_measureScale:function(e){var t,n,i,r,a,o,s=this,l=e.tick,c=l.visible&&l.length>0&&l.width>0,u=e.minorTick,d=u.visible&&u.length>0&&u.width>0,h=e.label,p=Number(h.indentFromTick);return c||d||h.visible?(t=s._scale.measureLabels(),n=s._getScaleLayoutValue(),i={min:n,max:n},r=s._getTicksCoefficients(e),a=r.inner,o=r.outer,c&&(i.min=D(i.min,n-a*l.length),i.max=P(i.max,n+o*l.length)),d&&(i.min=D(i.min,n-a*u.length),i.max=P(i.max,n+o*u.length)),h.visible&&s._correctScaleIndents(i,p,t),i):{}},_renderContent:function(){var e,t=this,n=t._prepareScaleSettings();t._rangeContainer.render(L(t._getOption("rangeContainer"),{vertical:t._area.vertical})),t._renderScale(n),e=E([t._rangeContainer].concat(t._prepareValueIndicators()),function(e){return e&&e.enabled?e:null}),t._applyMainLayout(e,t._measureScale(n)),B(e,function(e,n){n.resize(t._getElementLayout(n.getOffset()))}),t._shiftScale(t._getElementLayout(0),n),t._beginValueChanging(),t._updateActiveElements(),t._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=b(!0,{},e._themeManager.theme("scale"),e.option("scale")),n=t.majorTick,i=t.minorTick,r=t.label.overlappingBehavior,a=r.useAutoArrangement;return S(r)&&(r={mode:r}),n&&(t.tick=L(t.tick,n),a=x(n.useTickAutoArrangement)?n.useTickAutoArrangement:a,void 0!==n.tickInterval&&(t.tickInterval=n.tickInterval),void 0!==n.customTickValues&&(t.customTicks=n.customTickValues),t.customTicks?t.tick.showCalculatedTicks=void 0===n.showCalculatedTicks||n.showCalculatedTicks:t.tick.showCalculatedTicks=!1),r.hideFirstTick=t.hideFirstTick,r.hideFirstLabel=t.hideFirstLabel,r.hideLastTick=t.hideLastTick,r.hideLastLabel=t.hideLastLabel,x(r.hideFirstOrLast)||(r.hideFirstOrLast=t.label.hideFirstOrLast),x(a)&&(r.mode=a?"hide":"none"),void 0!==i.customTickValues&&(t.customMinorTicks=t.minorTick.customTickValues),void 0!==i.tickInterval&&(t.minorTickInterval=t.minorTick.tickInterval),t.customMinorTicks?i.showCalculatedTicks=void 0===i.showCalculatedTicks||i.showCalculatedTicks:i.showCalculatedTicks=!1,t.label.indentFromAxis=0,t.isHorizontal=!e._area.vertical,t.axisDivisionFactor=e._gridSpacingFactor,t.minorAxisDivisionFactor=H,t.numberMultipliers=N,t.tickOrientation=e._getTicksOrientation(t),t.label.useRangeColors&&(t.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),t.label.overlappingBehavior=r,t},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],r=n[1],a=t._translator.getCodomain();e.min=i,e.max=r,e.startAngle=R-a[0],e.endAngle=R-a[1],t._scale.updateOptions(e),t._updateScaleTickIndent(e),t._scale.setBusinessRange(new C.Range({axisType:"continuous",dataType:"numeric",stick:!0,minVisible:i,maxVisible:r,invert:i>r})),t._scaleGroup.linkAppend(),t._scale.draw(b({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=O(t._translator.translate(e.baseValue))?M(e.baseValue):t._baseValue,e.vertical=t._area.vertical,!e.text||e.text.format||e.text.precision||(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),r=A(e.type||n._themeManager.theme(t)),a=L(!0,{},i._default,i[r],e);return a.type=r,a.animation=n._animationSettings,a.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(a),a},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._renderer.root;return new g({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e,t,n=this,i=n._subvalueIndicatorsSet,r=n._prepareIndicatorSettings(n.option("subvalueIndicator")||{},"subvalueIndicatorType");i||(i=n._subvalueIndicatorsSet=n._createSubvalueIndicatorsSet()),e=r.type!==i.type,i.type=r.type,t=n._createIndicator(r.type,n._renderer.root),t&&(t.dispose(),i.render(r,e))},_setupValue:function(e){this.__value=i(e,this.__value)},_setupSubvalues:function(e){var t,n,a,o=void 0===e?this.__subvalues:r(e);if(null!==o){for(t=0,n=o.length,a=[];t<n;++t)a.push(i(o[t],this.__subvalues[t]));this.__subvalues=a}},_updateValueIndicator:function(){var e=this;e._valueIndicator&&e._valueIndicator.value(e.__value,e._noAnimation)},_updateSubvalueIndicators:function(){var e=this;e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.values(e.__subvalues,e._noAnimation)},value:function(e){return void 0!==e?(this._changeValue(e),this):this.__value},subvalues:function(e){return void 0!==e?(this._changeSubvalues(e),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(e){var t=this;t._setupValue(e),t._beginValueChanging(),t._updateValueIndicator(),t.__value!==t.option(F)&&t.option(F,t.__value),t._endValueChanging()},_changeSubvalues:function(e){var t=this;null!==t.__subvalues?(t._setupSubvalues(e),t._beginValueChanging(),t._updateSubvalueIndicators(),t._endValueChanging()):(t.__subvalues=r(e),t._setContentSize(),t._renderContent()),I(t.__subvalues,t.option(z))||t.option(z,t.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option(F))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(z))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(e,t,n,i,r,a){var o=this,s=o._factory.createIndicator({renderer:o._renderer,translator:o._translator,owner:t,tracker:o._tracker,className:n},e,a);return s&&(s.type=e,s._trackerInfo={type:i,index:r}),s},_getApproximateScreenRange:null}),g.prototype={constructor:g,dispose:function(){var e=this;return B(e._indicators,function(e,t){t.dispose()}),e._parameters=e._options=e._indicators=e._colorPalette=e._palette=null,e},clean:function(){var e=this;return e._sample&&e._sample.clean().dispose(),B(e._indicators,function(e,t){t.clean()}),e._sample=e._options=e._palette=null,e},render:function(e,t){var n=this;return n._options=e,n._sample=n._parameters.createIndicator(n.type),n._sample.render(e),n.enabled=n._sample.enabled,n._palette=x(e.palette)?n._parameters.createPalette(e.palette):null,n.enabled&&(n._generatePalette(n._indicators.length),n._indicators=E(n._indicators,function(e,i){return t&&(e.dispose(),e=n._parameters.createIndicator(n.type,i)),e.render(n._getIndicatorOptions(i)),e})),n},getOffset:function(){return M(this._options.offset)||0},resize:function(e){var t=this;return t._layout=e,B(t._indicators,function(t,n){n.resize(e)}),t},measure:function(e){return this._sample.measure(e)},_getIndicatorOptions:function(e){var t=this._options;return this._colorPalette&&(t=L({},t,{color:this._colorPalette[e]})),t},_generatePalette:function(e){var t=this,n=null;if(t._palette){n=[],t._palette.reset();for(var i=0;i<e;++i)n.push(t._palette.getNextColor())}t._colorPalette=n},_adjustIndicatorsCount:function(e){var t,n,i,r=this,a=r._indicators,o=a.length;if(o>e){for(t=e,n=o;t<n;++t)a[t].clean().dispose();r._indicators=a.slice(0,e),r._generatePalette(a.length)}else if(o<e)for(r._generatePalette(e),t=o,n=e;t<n;++t)i=r._parameters.createIndicator(r.type,t),i.render(r._getIndicatorOptions(t)).resize(r._layout),a.push(i)},values:function(e,t){var n=this;if(n.enabled)return void 0!==e?(w(e)||(e=O(e)?[Number(e)]:null),e&&(n._adjustIndicatorsCount(e.length),B(n._indicators,function(n,i){i.value(e[n],t)})),n):E(n._indicators,function(e){return e.value()})}},t.createIndicatorCreator=function(e){return function(t,n,i){var r=e[A(n)]||!i&&e._default;return r?new r(t):null}}},function(e,t,n){var i=n(593),r=i.BaseIndicator,a=i.BaseTextCloudMarker,o=i.BaseRangeBar,s=Number,l=n(509).normalizeEnum,c=r.inherit({_move:function(){var e=this,t=e._actualPosition-e._zeroPosition;e._rootElement.move(e.vertical?0:t,e.vertical?t:0),e._trackerElement&&e._trackerElement.move(e.vertical?0:t,e.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var e,t,n,i,r=this._options,a=r.width/2,o=r.length/2,s=this._zeroPosition;return a>10||(a=10),o>10||(o=10),this.vertical?(e=r.x-o,t=r.x+o,n=s+a,i=s-a):(e=s-a,t=s+a,n=r.y+o,i=r.y-o),{points:[e,n,e,i,t,i,t,n]}},_render:function(){var e=this;e._zeroPosition=e._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(e){var t=this.vertical?e.x:e.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var e=this,t=e._options,n=e._actualPosition,i={x:n,y:n,value:e._currentValue,color:t.color,offset:t.width/2};return e.vertical?i.x=t.x:i.y=t.y,i}}),u=c.inherit({_render:function(){var e,t,n,i,r,a=this,o=a._options;a.callBase(),e=a._zeroPosition,a.vertical?(t=o.x-o.length/2,n=o.x+o.length/2,i=e+o.width/2,r=e-o.width/2):(t=e-o.width/2,n=e+o.width/2,i=o.y+o.length/2,r=o.y-o.length/2),a._element=a._element||a._renderer.path([],"area").append(a._rootElement),a._element.attr({points:[t,i,t,r,n,r,n,i]})}}),d=c.inherit({_render:function(){var e,t,n,i,r=this,a=r._options;r.callBase(),r.vertical?(e=a.x,t=r._zeroPosition,n=a.length/2||0,i=a.width/2||0):(e=r._zeroPosition,t=a.y,n=a.width/2||0,i=a.length/2||0),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr({points:[e-n,t,e,t-i,e+n,t,e,t+i]})}}),h=c.inherit({_render:function(){var e,t,n,i=this,r=i._options;i.callBase(),i.vertical?(e=r.x,t=i._zeroPosition):(e=i._zeroPosition,t=r.y),n=r.length/2||0,i._element=i._element||i._renderer.circle().append(i._rootElement),i._element.attr({cx:e,cy:t,r:n})}}),p=c.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.length>0&&e._options.width>0},_isVisible:function(){return!0},_render:function(){var e,t,n,i,r=this,a=r._options,o={stroke:"none","stroke-width":0,"stroke-linecap":"square"};r.callBase(),r.vertical?(e=a.x,n=r._zeroPosition,t=e+s(r._inverted?a.length:-a.length),o.points=[e,n,t,n-a.width/2,t,n+a.width/2]):(n=a.y,e=r._zeroPosition,i=n+s(r._inverted?a.length:-a.length),o.points=[e,n,e-a.width/2,i,e+a.width/2,i]),a.space>0&&(o["stroke-width"]=Math.min(a.space,a.width/4)||0,o.stroke=o["stroke-width"]>0?a.containerBackgroundColor||"none":"none"),r._element=r._element||r._renderer.path([],"area").append(r._rootElement),r._element.attr(o).sharp()},_getTrackerSettings:function(){var e,t,n,i,r,a=this,o=a._options,l=o.width/2,c=s(o.length);return l>10||(l=10),c>20||(c=20),a.vertical?(e=t=o.x,t=e+(a._inverted?c:-c),n=a._zeroPosition+l,i=a._zeroPosition-l,r=[e,n,t,n,t,i,e,i]):(n=o.y,i=n+(a._inverted?c:-c),e=a._zeroPosition-l,t=a._zeroPosition+l,r=[e,n,e,i,t,i,t,n]),{points:r}},measure:function(e){var t,n,i=this,r=s(i._options.length);return i.vertical?(t=n=e.x,i._inverted?n=t+r:t=n-r):(t=n=e.y,i._inverted?n=t+r:t=n-r),{min:t,max:n,indent:i._options.width/2}},getTooltipParameters:function(){var e=this,t=e._options,n=(e._inverted?t.length:-t.length)/2,i=e.callBase();return e.vertical?i.x+=n:i.y+=n,i.offset=t.length/2,i}}),f=a.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,t=this,n=t._actualPosition,i=t._actualPosition;return t.vertical?(n=t._options.x,e=t._inverted?"top-left":"top-right"):(i=t._options.y,e=t._inverted?"right-top":"right-bottom"),{x:n,y:i,type:e}},measure:function(e){var t,n,i,r=this,a=s(r._options.arrowLength)||0;return r._measureText(),r.vertical?(i=r._textFullHeight,r._inverted?(t=e.x,n=e.x+a+r._textFullWidth):(t=e.x-a-r._textFullWidth,n=e.x)):(i=r._textFullWidth,r._inverted?(t=e.y,n=e.y+a+r._textFullHeight):(t=e.y-a-r._textFullHeight,n=e.y)),{min:t,max:n,indent:i}}}),_=o.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,t,n=this,i=n._options,r=s(i.size);n.vertical?n._inverted?(e=i.x,t=i.x+r):(e=i.x-r,t=i.x):n._inverted?(e=i.y,t=i.y+r):(e=i.y-r,t=i.y),n._minSide=e,n._maxSide=t,n._minBound=e,n._maxBound=t},_getSpace:function(){var e=this._options;return e.space>0?s(e.space):0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0||e.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var e=this,t=s(e._options.text.indent);t>0?(e._lineStart=e._maxSide,e._lineEnd=e._maxSide+t,e._textPosition=e._lineEnd+(e.vertical?2:e._textHeight/2),e._maxBound=e._textPosition+(e.vertical?e._textWidth:e._textHeight/2)):t<0&&(e._lineStart=e._minSide,e._lineEnd=e._minSide+t,e._textPosition=e._lineEnd-(e.vertical?2:e._textHeight/2),e._minBound=e._textPosition-(e.vertical?e._textWidth:e._textHeight/2))},_getPositions:function(){var e,t,n,i,r=this,a=r._startPosition,o=r._endPosition,s=r._space,l=r._basePosition,c=r._actualPosition;return a<o?(l<c?(e=l,t=c):(e=c,t=l),n=e-s,i=t+s):(l>c?(e=l,t=c):(e=c,t=l),n=e+s,i=t-s),{start:a,end:o,main1:e,main2:t,back1:n,back2:i}},_buildItemSettings:function(e,t){var n=this,i=n._minSide,r=n._maxSide,a=n.vertical?[i,e,i,t,r,t,r,e]:[e,i,e,r,t,r,t,i];return{points:a}},_updateTextPosition:function(){var e=this;e._text.attr(e.vertical?{x:e._textPosition,y:e._actualPosition+e._textVerticalOffset}:{x:e._actualPosition,y:e._textPosition+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n,i=this,r=i._actualPosition;i.vertical?(i._basePosition>=r?(e=r,t=r+2):(e=r-2,t=r),n=[i._lineStart,e,i._lineStart,t,i._lineEnd,t,i._lineEnd,e]):(i._basePosition<=r?(e=r-2,t=r):(e=r,t=r+2),n=[e,i._lineStart,e,i._lineEnd,t,i._lineEnd,t,i._lineStart]),i._line.attr({points:n}).sharp()},_getTooltipPosition:function(){var e=this,t=(e._minSide+e._maxSide)/2,n=(e._basePosition+e._actualPosition)/2;return e.vertical?{x:t,y:n}:{x:n,y:t}},measure:function(e){var t,n,i,r=this,a=s(r._options.size),o=s(r._options.text.indent);return r._measureText(),r.vertical?(t=n=e.x,r._inverted?n+=a:t-=a,r._hasText&&(i=r._textHeight/2,o>0&&(n+=o+r._textWidth),o<0&&(t+=o-r._textWidth))):(t=n=e.y,r._inverted?n+=a:t-=a,r._hasText&&(i=r._textWidth/2,o>0&&(n+=o+r._textHeight),o<0&&(t+=o-r._textHeight))),{min:t,max:n,indent:i}}});t._default=_,t.rectangle=u,t.rhombus=d,t.circle=h,t.trianglemarker=p,t.textcloud=f,t.rangebar=_},function(e,t,n){function i(e){var t,n,i=e.x,r=e.y,a=m[e.type],o=e.textWidth+2*e.horMargin,s=e.textHeight+2*e.verMargin,c=i,u=r;return t=n=e.tailLength,1&a[0]?n=Math.min(n,s/3):t=Math.min(t,o/3),{cx:l(c+a[0]*t+(a[0]+a[2])*o/2),cy:l(u+a[1]*n+(a[1]+a[3])*s/2),points:[l(i),l(r),l(i+=a[0]*(o+t)),l(r+=a[1]*(s+n)),l(i+=a[2]*o),l(r+=a[3]*s),l(i+=a[4]*o),l(r+=a[5]*s),l(i+=a[6]*(o-t)),l(r+=a[7]*(s-n))]}}var r=n(9),a=n(14).noop,o=isFinite,s=Number,l=Math.round,c=n(589),u=c.formatValue,d=c.getSampleText,h=n(509).patchFontOptions,p=n(11).extend,f=n(25),_=f.inherit({ctor:function(e){var t=this;r.each(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),r.each(e,function(t){e[t]=null}),e},getOffset:function(){return s(this._options.offset)||0}}),g=_.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?s(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({"class":this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:a,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&(p(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this;return void 0!==e?(n=i._translator.adjust(e),i._currentValue!==n&&o(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move()))),i):i._currentValue},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var v=g.inherit({_move:function(){var e,t,n=this,r=n._getTextCloudOptions(),a=u(n._actualValue,n._options.text);n._text.attr({text:a}),e=n._text.getBBox(),t=i({x:r.x,y:r.y,textWidth:e.width||a.length*n._textUnitWidth,textHeight:e.height||n._textHeight,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:r.type}),n._text.attr({x:t.cx,y:t.cy+n._textVerticalOffset}),n._cloud.attr({points:t.points}),n._trackerElement&&n._trackerElement.attr({points:t.points})},_measureText:function(){var e,t,n,i,r=this;r._textVerticalOffset||(e=r._createRoot().append(r._owner),i=d(r._translator,r._options.text),t=r._renderer.text(i,0,0).attr({align:"center"}).css(h(r._options.text.font)).append(e),n=t.getBBox(),e.remove(),r._textVerticalOffset=-n.y-n.height/2,r._textWidth=n.width,r._textHeight=n.height,r._textUnitWidth=r._textWidth/i.length,r._textFullWidth=r._textWidth+2*r._options.horizontalOffset,r._textFullHeight=r._textHeight+2*r._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css(h(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}}}),y=g.inherit({_measureText:function(){var e,t,n,i=this;i._hasText=i._isTextVisible(),i._hasText&&!i._textVerticalOffset&&(e=i._createRoot().append(i._owner),t=i._renderer.text(d(i._translator,i._options.text),0,0).attr({"class":"dxg-text",align:"center"}).css(h(i._options.text.font)).append(e),n=t.getBBox(),e.remove(),i._textVerticalOffset=-n.y-n.height/2,i._textWidth=n.width,i._textHeight=n.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:u(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t,n=this,i=n._options,r=n._translator;n._setBarSides(),n._startPosition=r.translate(r.getDomainStart()),n._endPosition=r.translate(r.getDomainEnd()),n._basePosition=r.translate(i.baseValue),n._space=n._getSpace(),e=i.backgroundColor||"none","none"!==e&&n._space>0?t=i.containerBackgroundColor||"none":(n._space=0,t="none"),n._backItem1.attr({fill:e}),n._backItem2.attr({fill:e}),n._spaceItem1.attr({fill:t}),n._spaceItem2.attr({fill:t})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({"class":"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({"class":"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=p({},t,{color:e.color})),h(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({"class":"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({"class":"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({"class":"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({"class":"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({"class":"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,
delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseElement=_,t.BaseIndicator=g,t.BaseTextCloudMarker=v,t.BaseRangeBar=y},function(e,t,n){var i=n(595),r=Number,a=Math.max,o=n(509).normalizeEnum,s=i.inherit({_processOptions:function(){var e=this;if(e.vertical=e._options.vertical,e._inner=e._outer=0,e.vertical)switch(o(e._options.horizontalOrientation)){case"left":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}else switch(o(e._options.verticalOrientation)){case"top":e._inner=1;break;case"center":case"middle":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(){return!0},_createRange:function(e,t){var n,i=this,r=i._inner,a=i._outer,o=i._translator.translate(e.start),s=i._translator.translate(e.end),l=t.x,c=t.y,u=e.startWidth,d=e.endWidth;return n=i.vertical?[l-u*r,o,l-d*r,s,l+d*a,s,l+u*a,o]:[o,c+u*a,o,c-u*r,s,c-d*r,s,c+d*a],i._renderer.path(n,"area")},measure:function(e){var t,n={};return n.min=n.max=e[this.vertical?"x":"y"],t=this._options.width,t=r(t)||a(r(t.start),r(t.end)),n.min-=this._inner*t,n.max+=this._outer*t,n}});e.exports=s},function(e,t,n){function i(e,t,n,i){var r;return n>e&&i<t?r=[{start:e,end:n},{start:i,end:t}]:n>=t||i<=e?r=[{start:e,end:t}]:n<=e&&i>=t?r=[]:n>e?r=[{start:e,end:n}]:i<t&&(r=[{start:i,end:t}]),r}function r(e,t,n,i){var r;return n<e&&i>t?r=[{start:e,end:n},{start:i,end:t}]:n<=t||i>=e?r=[{start:e,end:t}]:n>=e&&i<=t?r=[]:n<e?r=[{start:e,end:n}]:i>t&&(r=[{start:i,end:t}]),r}function a(e,t,n){return t-e>=n}function o(e,t,n){return e-t>=n}var s=n(9),l=n(593).BaseElement,c=Number,u=Math.abs,d=n(14),h=d.isString,p=Array.isArray,f=isFinite,_=s.each,g=s.map,m=l.inherit({_init:function(){this._root=this._renderer.g().attr({"class":"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var e=this,t=e._options,n=e._translator,s=n.getDomain()[0],l=n.getDomain()[1],d=l-s,m=d>=0?a:o,v=d>=0?i:r,y=[],b=[],x=[{start:s,end:l}],S=u(d)/1e4,w=e._themeManager.createPalette(t.palette,{type:"indicatingSet"}),k=h(t.backgroundColor)?t.backgroundColor:"none",C=t.width||{},T=c(C>0?C:C.start),E=c(C>0?C:C.end),A=E-T;return(void 0===t.ranges||p(t.ranges))&&T>=0&&E>=0&&T+E>0?(y=g(p(t.ranges)?t.ranges:[],function(e,t){e=e||{};var i=n.adjust(e.startValue),r=n.adjust(e.endValue);return f(i)&&f(r)&&m(i,r,S)?{start:i,end:r,color:e.color,classIndex:t}:null}),_(y,function(e,t){var n=w.getNextColor();t.color=h(t.color)&&t.color||n||"none",t.className="dxg-range dxg-range-"+t.classIndex,delete t.classIndex}),_(y,function(e,t){var n,i,r,a,o,s=[],l=[];for(n=0,i=b.length;n<i;++n)o=b[n],a=v(o.start,o.end,t.start,t.end),(r=a[0])&&(r.color=o.color)&&(r.className=o.className)&&s.push(r),(r=a[1])&&(r.color=o.color)&&(r.className=o.className)&&s.push(r);for(s.push(t),b=s,n=0,i=x.length;n<i;++n)o=x[n],a=v(o.start,o.end,t.start,t.end),(r=a[0])&&l.push(r),(r=a[1])&&l.push(r);x=l}),_(x,function(e,t){t.color=k,t.className="dxg-range dxg-background-range",b.push(t)}),_(b,function(e,t){t.startWidth=(t.start-s)/d*A+T,t.endWidth=(t.end-s)/d*A+T}),b):null},render:function(e){var t=this;return t._options=e,t._processOptions(),t._ranges=t._getRanges(),t._ranges&&(t.enabled=!0,t._root.linkAppend()),t},resize:function(e){var t=this;return t._root.clear(),t._isVisible(e)&&_(t._ranges,function(n,i){t._createRange(i,e).attr({fill:i.color,"class":i.className}).append(t._root)}),t},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(e){var t=null;return _(this._ranges,function(n,i){if(i.start<=e&&e<=i.end||i.start>=e&&e>=i.end)return t=i.color,!1}),t}});e.exports=m},function(e,t,n){var i=n(11).extend,r=i,a=n(550).BaseThemeManager,o=a.inherit({_themeSection:"gauge",_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","title.font","title.subtitle.font","tooltip.font","indicator.text.font","loadingIndicator.font","export.font"],_initializeTheme:function(){var e,t=this;t._subTheme&&(e=r(!0,{},t._theme[t._subTheme],t._theme),r(!0,t._theme,e)),t.callBase.apply(t,arguments)}});e.exports=o},function(e,t,n){e.exports=n(598)},function(e,t,n){function i(e,t){var n=g(e),i=g(t),r=n.cos,a=n.sin,o=i.cos,s=i.sin;return{left:a<=0&&s>=0||a<=0&&s<=0&&r<=o||a>=0&&s>=0&&r>=o?-1:w(r,o,0),right:a>=0&&s<=0||a>=0&&s>=0&&r>=o||a<=0&&s<=0&&r<=o?1:S(r,o,0),up:r<=0&&o>=0||r<=0&&o<=0&&a>=s||r>=0&&o>=0&&a<=s?-1:-S(a,s,0),down:r>=0&&o<=0||r>=0&&o>=0&&a<=s||r<=0&&o<=0&&a>=s?1:-w(a,s,0)}}function r(e){return e.right-e.left}function a(e){return e.bottom-e.top}function o(e,t,n){var i,o=d({},e),s=0,l=0;return n=n||{},t>0&&(o.left+=n.left||0,o.right-=n.right||0,o.top+=n.top||0,o.bottom-=n.bottom||0,r(o)>0&&a(o)>0?(i=a(o)/r(o),i>1?t<i?s=r(o):l=a(o):t>i?l=a(o):s=r(o),s>0||(s=l/t),l>0||(l=s*t),s=(r(o)-s)/2,l=(a(o)-l)/2,o.left+=s,o.right-=s,o.top+=l,o.bottom-=l):(o.left=o.right=(o.left+o.right)/2,o.top=o.bottom=(o.top+o.bottom)/2)),o}var s=n(9),l=isFinite,c=n(57),u=n(27),d=n(11).extend,h=n(589).dxBaseGauge,p=n(591).dxGauge,f=n(509),_=f.normalizeAngle,g=f.getCosAndSin,m=n(599),v=n(591).createIndicatorCreator,y=n(600),b=n(596),x=Math.abs,S=Math.max,w=Math.min,k=Math.round,C=s.each,T=Math.PI,E=p.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_updateScaleTickIndent:function(e){var t=e.label.indentFromTick,n=e.tick.length,i=this._scale.measureLabels(),r=n;"inside"===e.orientation?r=0:"center"===e.orientation&&(r=.5*n),e.label.indentFromAxis=t>=0?t+r:t-r-S(i.width,i.height),this._scale.updateOptions(e)},_setupCodomain:function(){var e,t=this,n=t.option("geometry")||{},r=n.startAngle,a=n.endAngle;r=l(r)?_(r):225,a=l(a)?_(a):-45,x(r-a)<1?(a-=360,e={left:-1,up:-1,right:1,down:1}):(r<a&&(a-=360),e=i(r,a)),t._area={x:0,y:0,radius:100,startCoord:r,endCoord:a,sides:e},t._translator.setCodomain(r,a)},_shiftScale:function(e){var t,n=this._scale,i=n.getCanvas();i.width=i.height=2*e.radius,n.draw(i),t=n.getCenter(),n.shift({right:e.x-t.x,bottom:e.y-t.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(e){return e.orientation},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return"inside"===e.orientation?(t.inner=1,t.outer=0):"center"===e.orientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){t>=0?(e.horizontalOffset=t+n.width,e.verticalOffset=t+n.height):(e.horizontalOffset=e.verticalOffset=0,e.min-=-t+S(n.width,n.height)),e.inverseHorizontalOffset=n.width/2,e.inverseVerticalOffset=n.height/2},_measureMainElements:function(e,t){var n=this,i=n._area.radius,r=0,a=1/0,o=0,s=0,l=0,c=0,u=n._scale;return C(e.concat(u),function(e,n){var u=n.measure?n.measure({radius:i-n.getOffset()}):t;u.min>0&&(a=w(a,u.min)),u.max>0&&(r=S(r,u.max)),u.horizontalOffset>0&&(o=S(o,u.max+u.horizontalOffset)),u.verticalOffset>0&&(s=S(s,u.max+u.verticalOffset)),u.inverseHorizontalOffset>0&&(l=S(l,u.inverseHorizontalOffset)),u.inverseVerticalOffset>0&&(c=S(c,u.inverseVerticalOffset))}),o=S(o-r,0),s=S(s-r,0),{minRadius:a,maxRadius:r,horizontalMargin:o,verticalMargin:s,inverseHorizontalMargin:l,inverseVerticalMargin:c}},_applyMainLayout:function(e,t){var n,i,s=this._measureMainElements(e,t),l=this._area,c=l.sides,u={left:(c.left<-.1?s.horizontalMargin:s.inverseHorizontalMargin)||0,right:(c.right>.1?s.horizontalMargin:s.inverseHorizontalMargin)||0,top:(c.up<-.1?s.verticalMargin:s.inverseVerticalMargin)||0,bottom:(c.down>.1?s.verticalMargin:s.inverseVerticalMargin)||0},d=o(this._innerRect,(c.down-c.up)/(c.right-c.left),u),h=w(r(d)/(c.right-c.left),a(d)/(c.down-c.up));h=h-s.maxRadius+l.radius,n=d.left-r(d)*c.left/(c.right-c.left),i=d.top-a(d)*c.up/(c.down-c.up),l.x=k(n),l.y=k(i),l.radius=h,d.left-=u.left,d.right+=u.right,d.top-=u.top,d.bottom+=u.bottom,this._innerRect=d},_getElementLayout:function(e){return{x:this._area.x,y:this._area.y,radius:k(this._area.radius-e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=w(e._canvas.width/(t.sides.right-t.sides.left),e._canvas.height/(t.sides.down-t.sides.up));return n>t.totalRadius&&(n=t.totalRadius),n=.8*n,-e._translator.getCodomainRange()*n*T/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:u.clone(h.prototype._factory)}),A=E.prototype._factory.indicators={};E.prototype._factory.createIndicator=v(A),A._default=m._default,A.rectangleneedle=m.rectangleneedle,A.triangleneedle=m.triangleneedle,A.twocolorneedle=m.twocolorneedle,A.trianglemarker=m.trianglemarker,A.textcloud=m.textcloud,A.rangebar=m.rangebar,E.prototype._factory.RangeContainer=y,E.prototype._factory.ThemeManager=b.inherit({_subTheme:"_circular"}),c("dxCircularGauge",E),e.exports=E},function(e,t,n){var i=n(593),r=i.BaseIndicator,a=i.BaseTextCloudMarker,o=i.BaseRangeBar,s=n(509),l=Number,c=s.getCosAndSin,u=s.convertAngleToRendererSpace,d=r.inherit({_move:function(){var e=this,t=e._options,n=u(e._actualPosition);e._rootElement.rotate(n,t.x,t.y),e._trackerElement&&e._trackerElement.rotate(n,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(e){return e.radius-l(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var e=this._options,t=e.x,n=e.y-(e.radius+l(e.indentFromCenter))/2,i=e.width/2,r=(e.radius-l(e.indentFromCenter))/2;return i>10||(i=10),r>10||(r=10),{points:[t-i,n-r,t-i,n+r,t+i,n+r,t+i,n-r]}},_renderSpindle:function(){var e,t=this,n=t._options;n.spindleSize>0&&(e=l(n.spindleGapSize)||0,e>0&&(e=e<=n.spindleSize?e:l(n.spindleSize)),t._spindleOuter=t._spindleOuter||t._renderer.circle().append(t._rootElement),t._spindleInner=t._spindleInner||t._renderer.circle().append(t._rootElement),t._spindleOuter.attr({"class":"dxg-spindle-border",cx:n.x,cy:n.y,r:n.spindleSize/2}),t._spindleInner.attr({"class":"dxg-spindle-hole",cx:n.x,cy:n.y,r:e/2,fill:n.containerBackgroundColor}))},_render:function(){var e=this;e._renderPointer(),e._renderSpindle()},_clearSpindle:function(){delete this._spindleOuter,delete this._spindleInner},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer(),this._clearSpindle()},measure:function(e){var t={max:e.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-l(this._options.indentFromCenter)),t},getTooltipParameters:function(){var e=this._options,t=c(this._actualPosition),n=(e.radius+l(e.indentFromCenter))/2;return{x:e.x+t.cos*n,y:e.y-t.sin*n,value:this._currentValue,color:e.color,offset:e.width/2}}}),h=d.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-t.radius,i=t.y-l(t.indentFromCenter),r=t.x-t.width/2,a=r+l(t.width);e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[r,i,r,n,a,n,a,i]})}}),p=d.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-t.radius,i=t.y-l(t.indentFromCenter),r=t.x-t.width/2,a=t.x+t.width/2;e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[r,i,t.x,n,a,i]})}}),f=d.inherit({_renderPointer:function(){var e,t,n=this,i=n._options,r=i.x-i.width/2,a=i.x+i.width/2,o=i.y-i.radius,s=i.y-l(i.indentFromCenter),c=l(i.secondFraction)||0;c>=1?e=t=s:c<=0?e=t=o:(t=o+(s-o)*c,e=t+l(i.space)),n._firstElement=n._firstElement||n._renderer.path([],"area").append(n._rootElement),n._spaceElement=n._spaceElement||n._renderer.path([],"area").append(n._rootElement),n._secondElement=n._secondElement||n._renderer.path([],"area").append(n._rootElement),n._firstElement.attr({points:[r,s,r,e,a,e,a,s]}),n._spaceElement.attr({points:[r,e,r,t,a,t,a,e],"class":"dxg-hole",fill:i.containerBackgroundColor}),n._secondElement.attr({points:[r,t,r,o,a,o,a,t],"class":"dxg-part",fill:i.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),_=d.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(e){return e.radius>0},_render:function(){var e,t=this,n=t._options,i=n.x,r=n.y-n.radius,a=n.width/2||0,o=r-l(n.length);t._element=t._element||t._renderer.path([],"area").append(t._rootElement),e={points:[i,r,i-a,o,i+a,o],stroke:"none","stroke-width":0,"stroke-linecap":"square"},n.space>0&&(e["stroke-width"]=Math.min(n.space,n.width/4)||0,e.stroke=e["stroke-width"]>0?n.containerBackgroundColor||"none":"none"),t._element.attr(e).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var e=this._options,t=e.x,n=e.y-e.radius-e.length/2,i=e.width/2,r=e.length/2;return i>10||(i=10),r>10||(r=10),{points:[t-i,n-r,t-i,n+r,t+i,n+r,t+i,n-r]}},measure:function(e){return{min:e.radius,max:e.radius+l(this._options.length)}},getTooltipParameters:function(){var e=this._options,t=c(this._actualPosition),n=e.radius+e.length/2,i=this.callBase();return i.x=e.x+t.cos*n,i.y=e.y-t.sin*n,i.offset=e.length/2,i}}),g=a.inherit({_isEnabled:function(){return!0},_isVisible:function(e){return e.radius>0},_getTextCloudOptions:function(){var e=this,t=c(e._actualPosition),n=s.normalizeAngle(e._actualPosition);return{x:e._options.x+t.cos*e._options.radius,y:e._options.y-t.sin*e._options.radius,type:n>270?"left-top":n>180?"top-right":n>90?"right-bottom":"bottom-left"}},measure:function(e){var t,n,i=this,r=l(i._options.arrowLength)||0;return i._measureText(),t=i._textFullHeight+r,n=i._textFullWidth+r,{min:e.radius,max:e.radius,horizontalOffset:n,verticalOffset:t,inverseHorizontalOffset:n,inverseVerticalOffset:t}}}),m=o.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(e){return e.radius-l(this._options.size)>0},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){var e=this;e._maxSide=e._options.radius,e._minSide=e._maxSide-l(e._options.size)},_getSpace:function(){var e=this._options;return e.space>0?180*e.space/e.radius/Math.PI:0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0},_setTextItemsSides:function(){var e=this,t=e._options,n=l(t.text.indent);e._lineFrom=t.y-t.radius,e._lineTo=e._lineFrom-n,e._textRadius=t.radius+n},_getPositions:function(){var e,t,n=this,i=n._basePosition,r=n._actualPosition;return i>=r?(e=i,t=r):(e=r,t=i),{start:n._startPosition,end:n._endPosition,main1:e,main2:t,back1:Math.min(e+n._space,n._startPosition),back2:Math.max(t-n._space,n._endPosition)}},_buildItemSettings:function(e,t){var n=this;return{x:n._options.x,y:n._options.y,innerRadius:n._minSide,outerRadius:n._maxSide,startAngle:t,endAngle:e}},_updateTextPosition:function(){var e=this,t=c(e._actualPosition),n=e._options.x+e._textRadius*t.cos,i=e._options.y-e._textRadius*t.sin;n+=t.cos*e._textWidth*.6,i-=t.sin*e._textHeight*.6,e._text.attr({x:n,y:i+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n=this,i=n._options.x;n._basePosition>n._actualPosition?(e=i-2,t=i):n._basePosition<n._actualPosition?(e=i,t=i+2):(e=i-1,t=i+1),n._line.attr({points:[e,n._lineFrom,e,n._lineTo,t,n._lineTo,t,n._lineFrom]}).rotate(u(n._actualPosition),i,n._options.y).sharp()},_getTooltipPosition:function(){var e=this,t=c((e._basePosition+e._actualPosition)/2),n=(e._minSide+e._maxSide)/2;return{x:e._options.x+t.cos*n,y:e._options.y-t.sin*n}},measure:function(e){var t=this,n={min:e.radius-l(t._options.size),max:e.radius};return t._measureText(),t._hasText&&(n.max+=l(t._options.text.indent),n.horizontalOffset=t._textWidth,n.verticalOffset=t._textHeight),n}});t._default=h,t.rectangleneedle=h,t.triangleneedle=p,t.twocolorneedle=f,t.trianglemarker=_,t.textcloud=g,t.rangebar=m},function(e,t,n){var i=n(595),r=Number,a=Math.max,o=n(509).normalizeEnum,s=i.inherit({_processOptions:function(){var e=this;switch(e._inner=e._outer=0,o(e._options.orientation)){case"inside":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(e){var t=this._options.width;return t=r(t)||a(r(t.start),r(t.end)),e.radius-this._inner*t>0},_createRange:function(e,t){var n=this,i=(e.startWidth+e.endWidth)/2;return n._renderer.arc(t.x,t.y,t.radius-n._inner*i,t.radius+n._outer*i,n._translator.translate(e.end),n._translator.translate(e.start)).attr({"stroke-linejoin":"round"})},measure:function(e){var t=this._options.width;return t=r(t)||a(r(t.start),r(t.end)),{min:e.radius-this._inner*t,max:e.radius+this._outer*t}}});e.exports=s},function(e,t,n){e.exports=n(602).dxBarGauge},function(e,t,n){function i(e,t,n){e.startAngle=t<n?t:n,e.endAngle=t<n?n:t}function r(e,t){return o(e-t)<1e-4}var a=Math.PI/180,o=Math.abs,s=Math.round,l=Math.floor,c=Math.min,u=Math.max,d=n(57),h=n(27),p=n(14),f=n(11).extend,_=n(589),g=_.dxBaseGauge,m=_.getSampleText,v=_.formatValue,y=_.compareArrays,b=n(598),x=n(550).BaseThemeManager,S=Array.isArray,w=n(509),k=w.convertAngleToRendererSpace,C=w.getCosAndSin,T=w.patchFontOptions,E=Number,A=isFinite,I=p.noop,O=f,M="values",D=g.inherit({_rootClass:"dxbg-bar-gauge",_initCore:function(){var e=this;e.callBase.apply(e,arguments),e._barsGroup=e._renderer.g().attr({"class":"dxbg-bars"}).linkOn(e._renderer.root,"bars"),e._values=[],e._context={renderer:e._renderer,translator:e._translator,tracker:e._tracker,group:e._barsGroup},e._animateStep=function(t){var n,i,r=e._bars;for(n=0,i=r.length;n<i;++n)r[n].animate(t)},e._animateComplete=function(){var t,n,i=e._bars;for(t=0,n=i.length;t<n;++t)i[t].endAnimation()}},_disposeCore:function(){var e=this;e._barsGroup.linkOff(),e._barsGroup=e._values=e._context=e._animateStep=e._animateComplete=null,e.callBase.apply(e,arguments)},_setupDomainCore:function(){var e=this,t=e.option("startValue"),n=e.option("endValue");A(t)||(t=0),A(n)||(n=100),e._translator.setDomain(t,n),e._baseValue=e._translator.adjust(e.option("baseValue")),A(e._baseValue)||(e._baseValue=t<n?t:n)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:b.prototype._setupCodomain,_getApproximateScreenRange:function(){var e=this,t=e._area.sides,n=e._canvas.width/(t.right-t.left),i=e._canvas.height/(t.down-t.up),r=n<i?n:i;return-e._translator.getCodomainRange()*r*a},_setupAnimationSettings:function(){var e=this;e.callBase.apply(e,arguments),e._animationSettings&&(e._animationSettings.step=e._animateStep,e._animationSettings.complete=e._animateComplete)},_cleanContent:function(){var e,t,n=this;for(n._barsGroup.linkRemove(),n._animationSettings&&n._barsGroup.stopAnimation(),e=0,t=n._bars?n._bars.length:0;e<t;++e)n._bars[e].dispose();n._palette=n._bars=null},_renderContent:function(){var e,t,n=this,i=n.option("label"),r=n._context;n._barsGroup.linkAppend(),r.textEnabled=void 0===i||i&&(!("visible"in i)||i.visible),r.textEnabled&&(r.textColor=i&&i.font&&i.font.color||null,i=O(!0,{},n._themeManager.theme().label,i),r.formatOptions={format:void 0!==i.format?i.format:n._defaultFormatOptions,precision:i.precision,customizeText:i.customizeText},r.textOptions={align:"center"},r.fontStyles=T(O({},n._themeManager.theme().label.font,i.font,{color:null})),n._textIndent=i.indent>0?E(i.indent):0,r.lineWidth=i.connectorWidth>0?E(i.connectorWidth):0,r.lineColor=i.connectorColor||null,e=n._renderer.text(m(n._translator,r.formatOptions),0,0).attr(r.textOptions).css(r.fontStyles).append(n._barsGroup),t=e.getBBox(),e.remove(),r.textVerticalOffset=-t.y-t.height/2,r.textWidth=t.width,r.textHeight=t.height),b.prototype._applyMainLayout.call(n),n._renderBars()},_measureMainElements:function(){var e={maxRadius:this._area.radius};return this._context.textEnabled&&(e.horizontalMargin=this._context.textWidth,e.verticalMargin=this._context.textHeight),e},_renderBars:function(){var e,t,n=this,i=O({},n._themeManager.theme(),n.option()),r=n._area;n._palette=n._themeManager.createPalette(i.palette,{useHighlight:!0}),e=i.relativeInnerRadius>0&&i.relativeInnerRadius<1?E(i.relativeInnerRadius):.1,t=r.radius,n._context.textEnabled&&(n._textIndent=s(c(n._textIndent,t/2)),t-=n._textIndent),n._outerRadius=l(t),n._innerRadius=l(t*e),n._barSpacing=i.barSpacing>0?E(i.barSpacing):0,O(n._context,{backgroundColor:i.backgroundColor,x:r.x,y:r.y,startAngle:r.startCoord,endAngle:r.endCoord,baseAngle:n._translator.translate(n._baseValue)}),n._bars=[],n._updateValues(n.option(M))},_arrangeBars:function(e){var t,n,i,r,a=this,o=a._outerRadius-a._innerRadius,s=a._context;for(s.barSize=e>0?u((o-(e-1)*a._barSpacing)/e,1):0,t=e>1?u(c((o-e*s.barSize)/(e-1),a._barSpacing),0):0,n=c(l((o+t)/s.barSize),e),a._setBarsCount(n),o=a._outerRadius,s.textRadius=o+a._textIndent,a._palette.reset(),i=s.barSize+t,r=0;r<n;++r,o-=i)a._bars[r].arrange({radius:o,color:a._palette.getNextColor()})},_setBarsCount:function(e){var t,n,i=this;if(i._bars.length>e){for(t=e,n=i._bars.length;t<n;++t)i._bars[t].dispose();i._bars.splice(e,n-e)}else if(i._bars.length<e)for(t=i._bars.length,n=e;t<n;++t)i._bars.push(new P(t,i._context));i._bars.length>0?i._dummyBackground&&(i._dummyBackground.dispose(),i._dummyBackground=null):(i._dummyBackground||(i._dummyBackground=i._renderer.arc().attr({"stroke-linejoin":"round"}).append(i._barsGroup)),i._dummyBackground.attr({x:i._context.x,y:i._context.y,outerRadius:i._outerRadius,innerRadius:i._innerRadius,startAngle:i._context.endAngle,endAngle:i._context.startAngle,fill:i._context.backgroundColor}))},_updateBars:function(e){var t,n,i=this;for(t=0,n=i._bars.length;t<n;++t)i._bars[t].setValue(e[t])},_animateBars:function(e){var t,n=this,i=n._bars.length;if(i>0){for(t=0;t<i;++t)n._bars[t].beginAnimation(e[t]);n._barsGroup.animate({_:0},n._animationSettings)}},_updateValues:function(e){var t,n,i=this,r=S(e)&&e||A(e)&&[e]||[],a=r.length,o=[];for(i._values.length=a,t=0;t<a;++t)n=r[t],i._values[t]=n=E(A(n)?n:i._values[t]),A(n)&&o.push(n);i._animationSettings&&i._barsGroup.stopAnimation(),i._beginValueChanging(),i._bars&&(i._arrangeBars(o.length),i._animationSettings&&!i._noAnimation?i._animateBars(o):i._updateBars(o)),i._resizing||y(i._values,i.option(M))||i.option(M,i._values),i._endValueChanging()},values:function(e){return void 0!==e?(this._updateValues(e),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",values:"VALUES"},_customChangesOrder:["VALUES"],_change_VALUES:function(){this._updateValues(this.option(M))},_factory:h.clone(g.prototype._factory)}),P=function(e,t){var n=this;n._context=t,n._background=t.renderer.arc().attr({"stroke-linejoin":"round",fill:t.backgroundColor}).append(t.group),n._bar=t.renderer.arc().attr({"stroke-linejoin":"round"}).append(t.group),t.textEnabled&&(n._line=t.renderer.path([],"line").attr({"stroke-width":t.lineWidth}).append(t.group),n._text=t.renderer.text().css(t.fontStyles).attr(t.textOptions).append(t.group)),n._tracker=t.renderer.arc().attr({"stroke-linejoin":"round"}),t.tracker.attach(n._tracker,n,{index:e}),n._index=e,n._angle=t.baseAngle,n._settings={x:t.x,y:t.y,startAngle:t.baseAngle,endAngle:t.baseAngle}};O(P.prototype,{dispose:function(){var e=this;return e._background.dispose(),e._bar.dispose(),e._context.textEnabled&&(e._line.dispose(),e._text.dispose()),e._context.tracker.detach(e._tracker),e._context=e._settings=e._background=e._bar=e._line=e._text=e._tracker=null,e},arrange:function(e){var t=this,n=t._context;return t._settings.outerRadius=e.radius,t._settings.innerRadius=e.radius-n.barSize,t._background.attr(O({},t._settings,{startAngle:n.endAngle,endAngle:n.startAngle})),t._bar.attr(t._settings),t._tracker.attr(t._settings),t._color=e.color,t._bar.attr({fill:e.color}),n.textEnabled&&(t._line.attr({points:[n.x,n.y-t._settings.innerRadius,n.x,n.y-n.textRadius],stroke:n.lineColor||e.color}).sharp(),t._text.css({fill:n.textColor||e.color})),t},getTooltipParameters:function(){var e=this,t=C((e._angle+e._context.baseAngle)/2);return{x:s(e._context.x+(e._settings.outerRadius+e._settings.innerRadius)/2*t.cos),y:s(e._context.y-(e._settings.outerRadius+e._settings.innerRadius)/2*t.sin),offset:0,color:e._color,value:e._value}},setAngle:function(e){var t,n=this;if(n._angle=e,i(n._settings,n._context.baseAngle,n._angle),n._bar.attr(n._settings),n._tracker.attr(n._settings),n._context.textEnabled){var r=v(n._value,n._context.formatOptions,{index:n._index});n._line.attr({visibility:""===r?"hidden":null}),n._line.rotate(k(n._angle),n._context.x,n._context.y),t=C(n._angle),n._text.attr({text:r,x:n._context.x+(n._context.textRadius+.6*n._context.textWidth)*t.cos,y:n._context.y-(n._context.textRadius+.6*n._context.textHeight)*t.sin+n._context.textVerticalOffset})}return n},_processValue:function(e){return this._value=this._context.translator.adjust(e),this._context.translator.translate(this._value)},setValue:function(e){return this.setAngle(this._processValue(e))},beginAnimation:function(e){var t=this,n=this._processValue(e);r(t._angle,n)?(t.animate=I,t.setAngle(t._angle)):(t._start=t._angle,t._delta=n-t._angle,t._tracker.attr({visibility:"hidden"}),t._context.textEnabled&&(t._line.attr({visibility:"hidden"}),t._text.attr({visibility:"hidden"})))},animate:function(e){var t=this;t._angle=t._start+t._delta*e,i(t._settings,t._context.baseAngle,t._angle),t._bar.attr(t._settings)},endAnimation:function(){var e=this;void 0!==e._delta?r(e._angle,e._start+e._delta)&&(e._tracker.attr({visibility:null}),e._context.textEnabled&&(e._line.attr({visibility:null}),e._text.attr({visibility:null})),e.setAngle(e._angle)):delete e.animate,delete e._start,delete e._delta}}),D.prototype._factory.ThemeManager=x.inherit({_themeSection:"barGauge",_fontFields:["label.font","title.font","tooltip.font","loadingIndicator.font"]}),d("dxBarGauge",D),t.dxBarGauge=D},function(e,t,n){e.exports=n(604)},function(e,t,n){function i(e,t,n){var i=void 0===t?W.consts.emptySliderMarkerText:W.formatValue(t,n),r=y(e,i,n.font);return ne(r.height)+2*n.paddingTopBottom+W.consts.pointerSize}function r(e,t,n){var i=W.formatValue(t,n.label),r=y(e,i,n.label.font);return ne(r.width/2)}function a(e){return{startValue:e[0],endValue:e[1]}}function o(e){return[e.startValue,e.endValue]}function s(e){var t,n,i;if(J(e))t=n=i=e;else{if(!e)return null;J(e.height)&&(i=e.height),J(e.width)?t=n=e.width:e.width&&(J(e.width.left)&&(t=e.width.left),J(e.width.right)&&(n=e.width.right))}return{widthLeft:t,widthRight:n,height:i}}function l(e,t,n,a){var o,l,c,u,d=0,h=0,p=0,f=0;return a=a||{},u=s(n.placeholderSize),u&&void 0===a.left&&void 0===a.right?(p=u.widthLeft,f=u.widthRight):(p=a.left,f=a.right),c=u&&void 0===n.placeholderHeight?u.height:n.placeholderHeight,n.visible&&(o=i(e,t.startValue,n),l=i(e,t.endValue,n),void 0===c&&(c=te(o,l))),t.label.visible&&(d=r(e,t.startValue,t),h=r(e,t.endValue,t)),p=void 0!==p?p:d,f=(void 0!==f?f:h)||1,{left:p,right:f,top:c||0,bottom:0}}function c(e,t){var n=O.type(e),i=O.type(t),r=function(e){return n===e||i===e};return r("date")?oe:r("number")?"numeric":r(de)?de:""}function u(e){return e.valueType===oe&&e.marker.visible}function d(e,t){var n=t.minorTickInterval||t.tickInterval;"datetime"===t.valueType&&(n=L.dateToMilliseconds(n)),e.addRange({interval:n})}function h(e,t,n){var i;e&&(i=e.logarithmBase,e.type===me&&i<=0||i&&!J(i)?(e.logarithmBase=t,n("E2104")):e.type!==me&&(e.logarithmBase=void 0))}function p(e,t,n){var i,r="0",a={value:0,valueText:r},o=t.label,s=t.marker,l=o.customizeText,c=t.placeholderHeight,u=O.isFunction(l)?l.call(a,a):r,d=o.visible;return c?c:(i=y(e,u,o.font),(d?o.topIndent+i.height:0)+(n?s.topIndent+s.separatorHeight:0))}function f(e,t,n){return e?n?e=L.getNextDateUnit(e):e+=t:e=t,e}function _(e,t,n,i){var r,a,o,s=e.minorTickInterval,l=e.tickInterval,c="datetime"===e.valueType,u=e.axisDivisionFactor||{};if(!l)do{if(r=f(l,s,c),l===r)break;l=r,c&&(r=V(l)),a=ne((n-t)/r),o=ie(i/(u[l]||ye))||1}while(r&&a>o);return{tickInterval:l,minorTickInterval:s,bounds:{minVisible:t,maxVisible:n},ticks:[]}}function g(e,t,n,i){var r,a,o,s=Q(i.minVisible)?i.minVisible:i.min,l=Q(i.maxVisible)?i.maxVisible:i.max,c=e._categoriesInfo;return e.type===ue?r=_(e,s,l,t):(a=new q.TickManager({axisType:e.type,dataType:e.valueType},{min:s,max:l,screenDelta:t,customTicks:c&&c.categories},{labelOptions:{},boundCoef:1,minorTickInterval:e.minorTickInterval,tickInterval:e.tickInterval,incidentOccurred:n,base:e.logarithmBase,showMinorTicks:!0,withMinorCorrection:!0,stick:i.stick!==!1}),o=a.getTicks(!0),r={tickInterval:a.getTickInterval(),minorTickInterval:a.getMinorTickInterval(),bounds:a.getTickBounds(),ticks:o}),r}function m(e,t){var n,i,r,a,o,s,l=!1,c=t.startValue,u=t.endValue,d=e?e.getBoundRange().arg:new F.Range,h="datetime"===t.valueType,p=t.minRange;return t.type===ce&&(s=new F.Range({minVisible:c,maxVisible:u}),s.addRange(d),d=s,a=e?e.argCategories:t.categories||!e&&c&&u&&[c,u],a=a||[],t._categoriesInfo=o=D.getCategoriesInfo(a,c||a[0],u||a[a.length-1])),t.type===ue&&(c=t.startValue=w(t.startValue,h,p),u=t.endValue=w(t.endValue,h,p),d.minVisible=w(d.minVisible,h,p),d.maxVisible=w(d.maxVisible,h,p),d.min=w(d.min,h,p),d.max=w(d.max,h,p)),Q(c)&&Q(u)?(l=o?o.inverted:c>u,n=o?o.start:l?u:c,i=o?o.end:l?c:u):Q(c)||Q(u)?(n=c,i=u):o&&(n=o.start,i=o.end),r=ee(n)&&ee(i)&&n.getTime()===i.getTime(),(t.type===ue||n!==i&&!r)&&d.addRange({invert:l,min:n,max:i,minVisible:n,maxVisible:i,dataType:t.valueType}),d.addRange({categories:e?void 0:a,base:t.logarithmBase,axisType:t.type}),e&&d.sortCategories(a),d.isDefined()||(r&&(t.valueType="numeric"),d.setStubData(t.valueType)),d}function v(e,t){return!Q(e)||!Q(t)}function y(e,t,n){var i=e.text(t,ve,ve).css(H(n)).append(e.root),r=i.getBBox();return i.remove(),r}function b(e){return function(t,n,i,r,a){return n&&t&&(a.years||a.months>=6||e/ye<ne((r-i)/V("year"))+1)&&(n=!1),n}}function x(e,t,n,i,r){var a,o,s,l=e._categoriesInfo,c=e.valueType===oe;!t||t.isEmpty()||n.stubData||(a=i.bounds,n.addRange(a),e.startValue=n.invert?a.maxVisible:a.minVisible,e.endValue=n.invert?a.minVisible:a.maxVisible),e.marker.visible=r(c&&e.type.indexOf(ce)===-1,e.marker.visible,e.startValue,e.endValue,i.tickInterval),l&&(e.startValue=l.start,e.endValue=l.end),e.type.indexOf(ce)===-1&&(o=ee(e.startValue)&&ee(e.endValue)&&e.startValue.getTime()===e.endValue.getTime()||e.startValue===e.endValue),e.isEmpty=v(e.startValue,e.endValue)||o,e.isEmpty?e.startValue=e.endValue=void 0:(e.minorTickInterval=i.minorTickInterval,e.tickInterval=i.tickInterval,c&&(!Q(e.label.format)||e.type===ue&&e.minorTickInterval!==e.tickInterval)&&(e.type===ce?e.label.format=j.getDateFormatByTicks(i.ticks):e.marker.visible?e.label.format=L.getDateFormatByTickInterval(e.tickInterval):e.label.format=j.getDateFormatByTickInterval(e.startValue,e.endValue,e.tickInterval))),e.type===ue&&(s=k(e),e.customMinorTicks=s.altIntervals,e.customTicks=s.intervals,e.customBoundTicks=[e.customTicks[0]])}function S(e,t,n){var i,r=0,a=N.correctValueType(G(e.valueType)),o=function(t,i){var a=t===re?"start":"end";Q(e[t])&&(r=i(e[t]),Q(r)?e[t]=r:(e[t]=void 0,n("E2202",[a])))};return t&&(a=t.getCalculatedValueType()||a),a||(a=c(e.startValue,e.endValue)||"numeric"),(a===de||e.categories)&&(e.type=ce,a=de),e.valueType=a,i=N.getParser(a),o(re,i),o(ae,i),h(e,be,n),e.type||(e.type="continuous"),void 0===e.tickInterval&&(e.tickInterval=e.majorTickInterval),e.minorTick.visible&&(e.minorTick.visible=e.showMinorTicks),e.parser=i,e.type===ue&&(e.minorTick.visible=!1,e.minorTickInterval=e.minRange,e.marker.visible=!1,e.maxRange=void 0),e}function w(e,t,n){return Q(e)&&(e=t?L.correctDateWithUnitBeginning(new Date(e),n):P(ie(e/n)*n)),e}function k(e){var t=e.startValue,n=e.endValue,i="datetime"===e.valueType,r=e.tickInterval,a={intervals:[]};return Q(t)&&Q(n)?(a.intervals=R(t,n,e.minorTickInterval),
r!==e.minorTickInterval&&(a.altIntervals=a.intervals,t=w(t,i,r),n=w(n,i,r),a.intervals=R(t,n,r)),a):a}function C(e,t,n,i){return e.label.overlappingBehavior={mode:Q(e.useTicksAutoArrangement)?e.useTicksAutoArrangement?"hide":"none":e.label.overlappingBehavior},e.marker.label.font=e.label.font,e.color=e.marker.color=e.tick.color,e.opacity=e.marker.opacity=e.tick.opacity,e.width=e.marker.width=e.tick.width,e.placeholderSize=(e.placeholderHeight||0)+i,e.argumentType=e.valueType,e.visible=t,e.minorTick.showCalculatedTicks=e.isHorizontal=e.stick=!0,e.semiDiscreteInterval=e.minRange,t||(e.minorTick.length=e.tick.length=n),e.label.indentFromAxis=e.label.topIndent+i,e}function T(e,t,n){function i(t){var i=t.target.range,r=e.minRange?B(i.startValue,e.minRange):void 0,a=e.maxRange?B(i.startValue,e.maxRange):void 0;r&&r>i.endValue||a&&a<i.endValue||n(i)}A.each(t,function(e,t){t.on("dxpointerdown",i)})}function E(e){this._axis=new z.Axis({renderer:e.renderer,axesContainerGroup:e.root,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector"}),this._updateSelectedRangeCallback=e.updateSelectedRange}var A=n(9),I=n(57),O=n(14),M=n(11).extend,D=n(509),P=D.adjustValue,L=n(63),B=L.addInterval,V=L.dateToMilliseconds,R=L.getSequenceByInterval,F=n(564),z=n(565),H=D.patchFontOptions,N=n(524),G=D.normalizeEnum,j=n(66),W=n(605),U=n(606),Y=n(609),K=n(610),$=n(611),X=n(612),q=n(567),Z=n(7).log,Q=O.isDefined,J=O.isNumeric,ee=O.isDate,te=Math.max,ne=Math.ceil,ie=Math.floor,re="startValue",ae="endValue",oe="datetime",se="selectedRange",le="value",ce="discrete",ue="semidiscrete",de="string",he=se+"Changed",pe=le+"Changed",fe="containerBackgroundColor",_e="sliderMarker",ge="background",me="logarithmic",ve=-1e3,ye=50,be=10,xe=n(515).inherit({_eventsMap:{onSelectedRangeChanged:{name:he},onValueChanged:{name:pe}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),M(this._deprecatedOptions,{"sliderMarker.padding":{since:"15.1",message:"Use the 'paddingTopBottom' and 'paddingLeftRight' options instead"},"sliderMarker.placeholderSize":{since:"15.1",message:"Use the 'placeholderHeight' and 'indent' options instead"},"scale.majorTickInterval":{since:"15.2",message:"Use the 'tickInterval' options instead"},"scale.showMinorTicks":{since:"15.2",message:"Use the 'minorTick.visible' options instead"},selectedRange:{since:"16.2",message:"Use the 'value' option instead"},onSelectedRangeChanged:{since:"16.2",message:"Use the 'onValueChanged' option instead"},"behavior.callSelectedRangeChanged":{since:"16.2",message:"Use the 'behavior.callValueChanged' option instead"},"scale.useTicksAutoArrangement":{since:"17.1",message:"Use the 'scale.label.overlappingBehavior' option instead"}})},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","SELECTED_RANGE","VALUE","DISABLED"],_themeDependentChanges:["MOSTLY_TOTAL"],_initCore:function(){var e,t,n,i,r=this,a=r._renderer,s=a.root;s.css({"touch-action":"pan-y","-ms-touch-action":"pan-y"}),r._clipRect=a.clipRect(),e=a.g().attr({"class":"dxrs-view"}).append(s),t=a.g().attr({"class":"dxrs-slidersContainer","clip-path":r._clipRect.id}).append(s),n=a.g().attr({"class":"dxrs-scale","clip-path":r._clipRect.id}).append(s),i=a.g().attr({"class":"dxrs-trackers"}).append(s),r._axis=new E({renderer:a,root:n,updateSelectedRange:function(e){r.setValue(o(e))}}),r._rangeView=new K.RangeView({renderer:a,root:e,translator:r._axis.getTranslator()}),r._slidersController=new U.SlidersController({renderer:a,root:t,trackersGroup:i,updateSelectedRange:function(e,t){r._rangeOption||(r._suppressDeprecatedWarnings(),r.option(se,e),r._resumeDeprecatedWarnings(),r.option(le,o(e))),(r._options.onSelectedRangeChanged||r.hasEvent("selectedRangeChanged"))&&r._eventTrigger(he,{startValue:e.startValue,endValue:e.endValue}),r._eventTrigger(pe,{value:o(e),previousValue:o(t)})},translator:r._axis.getTranslator()}),r._tracker=new Y.Tracker({renderer:a,controller:r._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_createThemeManager:function(){return new X.ThemeManager},_applySize:function(e){this._clientRect=e.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",selectedRange:"SELECTED_RANGE",value:"VALUE",dataSource:"DATA_SOURCE",disabled:"DISABLED"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_change_DATA_SOURCE:function(){(this._initialized||this._options.dataSource)&&(this._options[se]=this._options[le]=null,this._updateDataSource())},_customChangesOrder:["MOSTLY_TOTAL","SELECTED_RANGE","VALUE","SLIDER_SELECTION","DISABLED"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var e=this,t=e._options[se],n=e._options[le];e._slidersController.setSelectedRange(n?a(n):t&&t)},_change_SELECTED_RANGE:function(){var e=this,t=e._rangeOption&&e._rangeOption[se];t&&(e._options[se]=t,e._validateRange(t.startValue,t.endValue),e.setValue(o(t)))},_change_VALUE:function(){var e=this,t=e._rangeOption&&e._rangeOption[le];t&&(e._options[le]=t,e._validateRange(t[0],t[1]),e.setValue(t))},_change_DISABLED:function(){var e=this._renderer,t=e.root;this.option("disabled")?t.attr({"pointer-events":"none",filter:e.getGrayScaleFilter().id}):t.attr({"pointer-events":null,filter:null})},_validateRange:function(e,t){var n=this,i=n._axis.getTranslator();(null!==e&&!i.isValid(e)||null!==t&&!i.isValid(t))&&n._incidentOccurred("E2203")},_applyChanges:function(){var e=this,t=e._options[se],n=e._options[le];e._changes.has("VALUE")&&n?e._rangeOption={value:[n[0],n[1]]}:e._changes.has("SELECTED_RANGE")&&t&&(e._rangeOption={selectedRange:t}),e.callBase.apply(e,arguments),e._rangeOption=null,e.__isResizing=!1},_applyMostlyTotalChange:function(){var e,t=this,n=t._renderer,i=t._clientRect;t.__isResizing&&(e=n.animationEnabled(),n.updateAnimationOptions({enabled:!1})),t._clipRect.attr({x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]}),t._updateContent({left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]}),t.__isResizing&&n.updateAnimationOptions({enabled:e}),t._drawn()},_dataSourceChangedHandler:function(){this._requestChange(["MOSTLY_TOTAL"])},_updateContent:function(e){var t,n,i,r,a=this,o=a.option("chart"),s=a._createSeriesDataSource(o),c=!(s&&s.isShowChart()||a.option("background.image.url")),f=S(a._getOption("scale"),s,a._incidentOccurred),_=m(s,f),v=g(f,e.width,a._incidentOccurred,_),y=s&&s.isShowChart()&&s.getThemeManager();y&&h(o&&o.valueAxis,y.getOptions("valueAxis").logarithmBase,a._incidentOccurred),x(f,s,_,v,b(e.width)),d(_,f),t=a._prepareSliderMarkersOptions(f,e.width,v),n=l(a._renderer,f,t,a.option("indent")),i=p(a._renderer,f,u(f)),r={left:e.left+n.left,top:e.top+n.top,width:te(e.width+e.left-n.right,1),height:te(c?W.HEIGHT_COMPACT_MODE:e.height-n.top-n.bottom-i,0),right:0,bottom:0},a._axis.update(f,c,r,_),f.minorTickInterval=f.isEmpty?0:f.minorTickInterval,a._updateElements(f,t,c,r,s),y&&y.dispose()},_updateElements:function(e,t,n,i,r){var a=this,o=a._getOption("behavior"),s=a._getOption("shutter"),l=e.type!==ue;s.color=s.color||a._getOption(fe,!0),a._rangeView.update(a.option("background"),a._themeManager.theme("background"),i,n,o.animationEnabled&&a._renderer.animationEnabled(),r),a._isUpdating=!0,a._slidersController.update([i.top,i.top+i.height],o,n,a._getOption("sliderHandle"),t,s,{minRange:l?a.option("scale.minRange"):void 0,maxRange:l?a.option("scale.maxRange"):void 0},a._axis.getFullTicks(),a._getOption("selectedRangeColor",!0)),a._requestChange(["SLIDER_SELECTION"]),a._isUpdating=!1,a._tracker.update(!a._axis.getTranslator().isEmptyValueRange(),o)},_createSeriesDataSource:function(e){var t,n=this,i=n._dataSourceItems(),r=n._getOption("scale"),a=r.valueType||c(r.startValue,r.endValue),o=new z.Axis({renderer:n._renderer,axisType:"xyAxes",drawingType:"linear"});return o.updateOptions({isHorizontal:!1,label:{}}),(i||e&&e.series)&&(e=M({},e,{theme:n.option("theme")}),t=new $.SeriesDataSource({renderer:n._renderer,dataSource:i,valueType:G(a),axisType:r.type,chart:e,dataSourceField:n.option("dataSourceField"),incidentOccurred:n._incidentOccurred,categories:r.categories,argumentAxis:n._axis,valueAxis:o})),t},_prepareSliderMarkersOptions:function(e,t,n){var i,r=this,a=n.minorTickInterval,o=n.tickInterval,s=e.endValue,l=e.startValue,c=r._getOption(_e),u=r.option(_e)||{},d=e.type===ce,h=e.valueType===oe;return c.borderColor=r._getOption(fe,!0),c.format||(!r._getOption("behavior").snapToTicks&&J(e.startValue)&&(i=Math.abs(s-l),c.format={type:"fixedPoint",precision:D.getSignificantDigitPosition(i/t)}),h&&!d&&(e.marker.visible?c.format=L.getDateFormatByTickInterval(Q(a)&&0!==a?a:o):Q(l)&&Q(s)&&(c.format=j.getDateFormatByTickInterval(l,s,Q(a)&&0!==a?a:o))),h&&d&&n.ticks.length&&(c.format=j.getDateFormatByTicks(n.ticks))),void 0!==u.padding&&void 0===u.paddingLeftRight&&void 0===u.paddingTopBottom&&(c.paddingLeftRight=c.paddingTopBottom=u.padding),c},getSelectedRange:function(){return Z("W0002",this.NAME,"getSelectedRange","16.2","Use the 'getValue' method instead"),a(this.getValue())},getValue:function(){return o(this._slidersController.getSelectedRange())},setSelectedRange:function(e){Z("W0002",this.NAME,"setSelectedRange","16.2","Use the 'setValue' method instead"),this.setValue(o(e))},setValue:function(e){var t;!this._isUpdating&&e&&(t=this._slidersController.getSelectedRange(),t&&t.startValue===e[0]&&t.endValue===e[1]||this._slidersController.setSelectedRange(a(e)))},resetSelectedRange:function(){this.setValue([])},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});A.each(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter",ge,"behavior","chart","indent"],function(e,t){xe.prototype._optionChangesMap[t]="MOSTLY_TOTAL"}),E.prototype={constructor:E,dispose:function(){this._axis.dispose()},update:function(e,t,n,i){var r=this._axis;r.updateOptions(C(e,t,n.height,n.height/2-Math.ceil(e.width/2))),r.setBusinessRange(i),r.draw(n),r.shift({left:0,bottom:-n.height/2+n.top}),r.getMarkerTrackers()&&T(e,r.getMarkerTrackers(),this._updateSelectedRangeCallback)},getFullTicks:function(){return this._axis.getFullTicks()},getTranslator:function(){return this._axis.getTranslator()},getViewport:function(){}},I("dxRangeSelector",xe),e.exports=xe,xe.addPlugin(n(511).plugin),xe.addPlugin(n(558).plugin),xe.addPlugin(n(560).plugin),xe.addPlugin(n(561).plugin)},function(e,t,n){var i=n(530),r=n(14).isFunction,a=24,o=4,s=". . .",l={trackerSettings:{fill:"grey",stroke:"grey",opacity:1e-4},animationSettings:{duration:250}},c={emptySliderMarkerText:s,pointerSize:o},u=function(e,t){var n={value:e,valueText:i(e,t)};return String(r(t.customizeText)?t.customizeText.call(n,n):n.valueText)};t.utils=l,t.consts=c,t.formatValue=u,t.HEIGHT_COMPACT_MODE=a},function(e,t,n){function i(e,t,n,i){return[e,t,n,t,n,i,e,i]}function r(e){return e&&e.valueOf()}function a(e,t){return e<t}function o(e,t){return e>t}function s(e,t){for(var n,i=0,r=t?t.length-1:0,a=e;r-i>1;){if(n=i+r>>1,a=t[n],a===e)return e;e<a?r=n:i=n}return t&&(a=t[e-t[i]<=t[r]-e?i:r]),a}function l(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function c(e){e.setSelectedRange=h,e._processSelectionChanged===l&&e._processSelectionChanged()}function u(e){delete e.setSelectedRange}function d(e){var t=this,n={renderer:e.renderer,root:e.root,trackersGroup:e.trackersGroup,translator:e.translator};t._params=e,t._areaTracker=e.renderer.path(null,"area").attr({"class":"area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._selectedAreaTracker=e.renderer.path(null,"area").attr({"class":"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._shutter=e.renderer.path(null,"area").append(e.root),t._sliders=[new g(n,0),new g(n,1)],t._processSelectionChanged=l}var h=n(14).noop,p=n(605),f=p.utils.animationSettings,_=p.consts.emptySliderMarkerText,g=n(607),m=n(509).normalizeEnum;d.prototype={constructor:d,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(){var e=this,t=e.getSelectedRange();r(t.startValue)===r(e._lastSelectedRange.startValue)&&r(t.endValue)===r(e._lastSelectedRange.endValue)||(e._params.updateSelectedRange(t,e._lastSelectedRange),e._lastSelectedRange=t)},update:function(e,t,n,r,a,o,s,l,c){var u=this,d=t.callValueChanged||t.callSelectedRangeChanged,h=u._params.translator.getScreenRange();u._verticalRange=e,u._minRange=s.minRange,u._maxRange=s.maxRange,u._animationEnabled=t.animationEnabled&&u._params.renderer.animationEnabled(),u._allowSlidersSwap=t.allowSlidersSwap,u._sliders[0].update(e,r,a),u._sliders[1].update(e,r,a),u._sliders[0]._position=u._sliders[1]._position=h[0],u._values=!u._params.translator.isValueProlonged&&t.snapToTicks?l:null,u._areaTracker.attr({points:i(h[0],e[0],h[1],e[1])}),u._isCompactMode=n,u._shutterOffset=r.width/2,u._updateSelectedView(o,c),u._isOnMoving="onmoving"===m(d),u._updateSelectedRange(),u._applyTotalPosition(!1)},_updateSelectedView:function(e,t){var n={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(n.stroke=t,n["stroke-width"]=3,n.sharp="v"):(n.fill=e.color,n["fill-opacity"]=e.opacity),this._shutter.attr(n)},_updateSelectedRange:function(){var e=this,t=e._sliders;t[0].cancelAnimation(),t[1].cancelAnimation(),e._shutter.stopAnimation(),e._params.translator.isEmptyValueRange()?(t[0]._setText(_),t[1]._setText(_),t[0]._value=t[1]._value=void 0,t[0]._position=e._params.translator.getScreenRange()[0],t[1]._position=e._params.translator.getScreenRange()[1],e._applyTotalPosition(!1),c(e)):u(e)},_applyTotalPosition:function(e){var t,n=this._sliders;e=this._animationEnabled&&e,n[0].applyPosition(e),n[1].applyPosition(e),t=n[0].getCloudBorder()>n[1].getCloudBorder(),n[0].setOverlapped(t),n[1].setOverlapped(t),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(e)},_applyAreaTrackersPosition:function(){var e=this,t=e._sliders[0].getPosition(),n=e._sliders[1].getPosition();e._selectedAreaTracker.attr({points:i(t,e._verticalRange[0],n,e._verticalRange[1])}).css({cursor:Math.abs(e._params.translator.getScreenRange()[1]-e._params.translator.getScreenRange()[0]-n+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(e){var t,n,r=this,a=r._verticalRange,o=r._sliders[0].getPosition(),s=r._sliders[1].getPosition();r._isCompactMode?n=[o+Math.ceil(r._shutterOffset),(a[0]+a[1])/2,s-Math.floor(r._shutterOffset),(a[0]+a[1])/2]:(t=r._params.translator.getScreenRange(),n=[i(t[0],a[0],Math.max(o-Math.floor(r._shutterOffset),t[0]),a[1]),i(t[1],a[0],Math.min(s+Math.ceil(r._shutterOffset),t[1]),a[1])]),e?r._shutter.animate({points:n},f):r._shutter.attr({points:n})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(e){e=e||{};var t=this,n=t._params.translator,i=n.isValid(e.startValue)?n.parse(e.startValue):n.getRange()[0],r=n.isValid(e.endValue)?n.parse(e.endValue):n.getRange()[1],a=n.to(i,-1)<n.to(r,1)?[i,r]:[r,i];t._sliders[0].setDisplayValue(a[0]),t._sliders[1].setDisplayValue(a[1]),t._sliders[0]._position=n.to(a[0],-1),t._sliders[1]._position=n.to(a[1],1),t._applyTotalPosition(!0),t._processSelectionChanged()},beginSelectedAreaMoving:function(e){function t(e){e!==a&&e>a==e>(i[0].getPosition()+i[1].getPosition())/2-r&&n._moveSelectedArea(e+r,!1),a=e}var n=this,i=n._sliders,r=(i[0].getPosition()+i[1].getPosition())/2-e,a=e;return t.complete=function(){n._dockSelectedArea()},t},_dockSelectedArea:function(){var e=this._params.translator,t=this._sliders;t[0]._position=e.to(t[0].getValue(),-1),t[1]._position=e.to(t[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged()},moveSelectedArea:function(e){this._moveSelectedArea(e,!0),this._dockSelectedArea()},_moveSelectedArea:function(e,t){var n,i=this,r=i._params.translator,a=i._sliders,o=a[1].getPosition()-a[0].getPosition(),l=e-o/2,c=e+o/2;l<r.getScreenRange()[0]&&(l=r.getScreenRange()[0],c=l+o),c>r.getScreenRange()[1]&&(c=r.getScreenRange()[1],l=c-o),n=s(r.from(l,-1),i._values),a[0].setDisplayValue(n),a[1].setDisplayValue(s(r.from(r.to(n,-1)+o,1),i._values)),a[0]._position=l,a[1]._position=c,i._applyTotalPosition(t),i._isOnMoving&&i._processSelectionChanged()},placeSliderAndBeginMoving:function(e,t){var n,i,r=this,l=r._params.translator,c=r._sliders,u=e<t?0:1,d=u>0?1:-1,h=u>0?o:a,p=u>0?a:o,f=[],_=[];return _[u]=l.from(e,d),_[1-u]=l.from(t,-d),f[1-u]=t,l.isValueProlonged&&(h(e,l.to(_[u],d))&&(_[u]=l.from(e,-d)),h(t,l.to(_[u],-d))&&(_[1-u]=_[u])),r._minRange&&(n=l.to(l.add(s(_[u],r._values),r._minRange,-d),-d),h(t,n)&&(_[1-u]=l.add(_[u],r._minRange,-d)),n=l.to(l.add(l.getRange()[1-u],r._minRange,d),-d),p(e,n)&&(_[1-u]=l.getRange()[1-u],_[u]=l.add(_[1-u],r._minRange,d),f[1-u]=e)),_[0]=s(_[0],r._values),_[1]=s(_[1],r._values),f[u]=l.to(_[u],d),c[0].setDisplayValue(_[0]),c[1].setDisplayValue(_[1]),c[0]._position=f[0],c[1]._position=f[1],r._applyTotalPosition(!0),r._isOnMoving&&r._processSelectionChanged(),i=r.beginSliderMoving(1-u,t),c[1-u]._sliderGroup.stopAnimation(),r._shutter.stopAnimation(),i(t),i},beginSliderMoving:function(e,t){function n(e){var t,n,a,o,y;e!==p&&(_(e+v,h)&&(t=i._allowSlidersSwap,t&&!r.isValueProlonged&&i._minRange&&(t=r.isValid(r.add(l[1-d].getValue(),i._minRange,-f))),t&&(i._changeMovingSlider(d),d=1-d,f=-f,n=_,_=g,g=n,m=-f*Math.abs(m),v=-m)),g(e+m,h)&&(t=!0,o=l[d],y=l[1-d].getValue(),a=Math.max(Math.min(e+m,u),c),t&&r.isValueProlonged&&(t=!_(a,r.to(y,f))),t&&i._minRange&&(t=!_(a,r.to(r.add(y,i._minRange,f),f))),t&&i._maxRange&&(t=!g(a,r.to(r.add(y,i._maxRange,f),f))),o._setValid(t),o.setDisplayValue(t?s(r.from(a,f),i._values):o.getValue()),o._position=a,i._applyTotalPosition(!1),o.toForeground(),i._isOnMoving&&i._processSelectionChanged())),p=e}var i=this,r=i._params.translator,l=i._sliders,c=r.getScreenRange()[0],u=r.getScreenRange()[1],d=e,h=l[1-d].getPosition(),p=t,f=d>0?1:-1,_=d>0?a:o,g=d>0?o:a,m=l[d].getPosition()-t,v=_(l[d].getPosition(),t)?-m:m;return n.complete=function(){l[d]._setValid(!0),i._dockSelectedArea()},n},_changeMovingSlider:function(e){var t,n=this,i=n._params.translator,r=n._sliders,a=r[1-e].getPosition(),o=e>0?1:-1;r[e].setDisplayValue(s(i.from(a,o),n._values)),t=i.from(a,-o),i.isValueProlonged?t=i.from(a,o):n._minRange&&(t=i.add(t,n._minRange,-o)),r[1-e].setDisplayValue(s(t,n._values)),r[e]._setValid(!0),r[e]._marker._update(),r[0]._position=r[1]._position=a},foregroundSlider:function(e){this._sliders[e].toForeground()}},t.SlidersController=d},function(e,t,n){function i(e){return c.touchEvents||c.pointer?d:u<e?e:u}function r(e,t){var n=this;n._translator=e.translator,n._sliderGroup=e.renderer.g().attr({"class":"slider"}).append(e.root),n._line=e.renderer.path(null,"line").append(n._sliderGroup),n._marker=new l(e.renderer,n._sliderGroup,1===t),n._tracker=e.renderer.rect().attr({"class":"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(e.trackersGroup)}var a=n(605),o=a.utils.animationSettings,s=a.formatValue,l=n(608),c=n(61),u=8,d=20;r.prototype={constructor:r,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(e){var t=this,n=t._sliderGroup,i=t._tracker,r={translateX:t._position};t._marker.setPosition(t._position),e?(n.animate(r,o),i.animate(r,o)):(n.attr(r),i.attr(r))},_setValid:function(e){this._marker.setValid(e),this._line.attr({stroke:this._colors[Number(e)]})},_setText:function(e){this._marker.setText(e)},update:function(e,t,n){var r=this;r._formatOptions={format:n.format,precision:n.precision,customizeText:n.customizeText},r._marker.applyOptions(n,r._translator.getScreenRange()),r._colors=[n.invalidRangeColor,t.color],r._sliderGroup.attr({translateY:e[0]}),r._line.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity,sharp:"h",points:[0,0,0,e[1]-e[0]]});var a=i(t.width);r._tracker.attr({x:-a/2,y:0,width:a,height:e[1]-e[0],translateY:e[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(e){this._value=e,this._setText(s(e,this._formatOptions))},setOverlapped:function(e){this._marker.setOverlapped(e)},getValue:function(){return this._value},on:function(e,t){this._tracker.on(e,t),this._marker.getTracker().on(e,t)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}},e.exports=r},function(e,t,n){function i(e,t,n){var i=this;i._isLeftPointer=n,i._isOverlapped=!1,i._group=e.g().attr({"class":"slider-marker"}).append(t),i._area=e.path(null,"area").append(i._group),i._label=e.text().attr({align:"left"}).append(i._group),i._tracker=e.rect().attr({"class":"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(i._group),i._border=e.rect(0,0,1,0)}var r=n(509).patchFontOptions,a=75,o=n(605).consts.pointerSize;i.prototype={constructor:i,_getRectSize:function(e){return{width:Math.round(2*this._paddingLeftRight+e.width),height:Math.round(2*this._paddingTopBottom+e.height)}},_getTextSize:function(){var e=this._label.getBBox();return!this._textHeight&&isFinite(e.height)&&(this._textHeight=e.height),{width:e.width,height:this._textHeight,y:e.y}},_getAreaPointsInfo:function(e){var t=this,n=t._getRectSize(e),i=n.width,r=n.height,a=-i,s=0,l=o,c=0,u=-o,d=t._position,h=t._isLeftPointer,p=function(){a++,s++,l++,c++,u++},f=function(){l>s?l=s:u<a&&(u=a),h&&p()},_=d;return h?d>t._range[1]-i?(s=-d+t._range[1],a=s-i,f(),_+=a):(a=u=0,s=i):d-t._range[0]<i?(a=-(d-t._range[0]),s=a+i,f(),_+=s):(l=0,p()),t._borderPosition=_,{offset:a,isCut:(!h||c!==u)&&(h||c!==l),points:[a,0,s,0,s,r,l,r,c,r+o,u,r,a,r]}},_update:function(){function e(e,t){var n,i,a;t=t||r._getRectSize(e),r._group.attr({translateY:-(t.height+o)}),i=r._getAreaPointsInfo(e),n=i.points,a=i.offset,r._area.attr({points:n}),r._border.attr({x:r._isLeftPointer?n[0]-1:n[2],height:i.isCut?t.height:t.height+o}),r._tracker.attr({translateX:a,width:t.width,height:t.height+o}),r._label.attr({translateX:r._paddingLeftRight+a,translateY:t.height/2-(e.y+e.height/2)})}var t,n,i,r=this;clearTimeout(r._timeout),r._label.attr({text:r._text||""}),n=r._getTextSize(),i=r._getRectSize(n),t=r._textSize||n,t=r._textSize=n.width>t.width||n.height>t.height?n:t,r._timeout=setTimeout(function(){e(n,i),r._textSize=n},a),e(t)},setText:function(e){this._text=e},setPosition:function(e){this._position=e,this._update()},applyOptions:function(e,t){var n=this;n._range=t,n._paddingLeftRight=e.paddingLeftRight,n._paddingTopBottom=e.paddingTopBottom,n._textHeight=null,n._colors=[e.invalidRangeColor,e.color],n._area.attr({fill:e.color}),n._border.attr({fill:e.borderColor}),n._label.css(r(e.font)),n._update()},getTracker:function(){return this._tracker},setValid:function(e){this._area.attr({fill:this._colors[Number(e)]})},setColor:function(e){this._area.attr({fill:e})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(e){var t=this;t._isOverlapped!==e&&(e?t._border.append(t._group):t._isOverlapped&&t._border.remove(),t._isOverlapped=e)},getBorderPosition:function(){return this._borderPosition}},e.exports=i},function(e,t,n){function i(e){var t=e||window.event,n=t.originalEvent,i=t.touches,r=!!n&&n.pointerType,a=!!n&&n.touches,o=n&&void 0!==r&&(r===(n.MSPOINTER_TYPE_TOUCH||"touch")||r===(n.MSPOINTER_TYPE_MOUSE||"mouse")&&1===n.buttons),s=i&&i.length>0||a&&a.length>0;return 1===t.which||o||s}function r(e){var t=e.originalEvent,n=e.touches,i=t&&t.touches;return n&&n.length>1||i&&i.length>1||null}function a(e){r(e)||e.preventDefault()}function o(e){r(e)||(e.stopPropagation(),e.preventDefault())}function s(e){return e&&e.type&&0===e.type.indexOf("touch")}function l(e){var t=e.originalEvent,n=0;return e.pageX?n=e.pageX:t&&t.pageX&&(n=t.pageX),t&&t.touches&&(t.touches.length>0?n=t.touches[0].pageX:t.changedTouches.length>0&&(n=t.changedTouches[0].pageX)),n}function c(e,t,n,r){function a(){u&&(u=!1,d&&(d.complete(),d=null))}var o,c,u=!1,d=null,h={};return h[f.move]=function(t){var h,p;o===s(t)&&(i(t)||a(),u&&(h=l(t),p=r(),d?d(h-p):n.manualRangeSelectionEnabled&&Math.abs(c-h)>=g&&(d=e.placeSliderAndBeginMoving(c-p,h-p))))},h[f.up]=function(t){var i;u&&(i=l(t),!d&&n.moveSelectedRangeByClick&&Math.abs(c-i)<g&&e.moveSelectedArea(i-r()),a())},t.on(f.down,function(e){n.enabled&&i(e)&&!u&&(u=!0,o=s(e),c=l(e))}),h}function u(e,t,n,r){function c(){d&&(d=!1,h.complete(),h=null)}var u,d=!1,h=null,p={};return p[f.move]=function(e){u===s(e)&&(i(e)||c(),d&&(a(e),h(l(e)-r())))},p[f.up]=c,t.on(f.down,function(t){n.enabled&&i(t)&&!d&&(d=!0,u=s(t),h=e.beginSelectedAreaMoving(l(t)-r()),o(t))}),p}function d(e,t,n,r){function c(){d&&(d=!1,h.complete(),h=null)}var u,d=!1,h=null,_={};return _[f.move]=function(e){u===s(e)&&(i(e)||c(),d&&(a(e),h(l(e)-r())))},_[f.up]=c,p.each(t,function(t,a){var c={};c[f.down]=function(a){n.enabled&&i(a)&&!d&&(d=!0,u=s(a),h=e.beginSliderMoving(t,l(a)-r()),o(a))},c[f.move]=function(){h||e.foregroundSlider(t)},a.on(c)}),_}function h(e){function t(){return e.renderer.getRootOffset().left}var n=this._state={},i=e.controller.getTrackerTargets();_&&e.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[u(e.controller,i.selectedArea,n,t),c(e.controller,i.area,n,t),d(e.controller,i.sliders,n,t)],p.each(this._docEvents,function(e,t){p(document).on(t)})}var p=n(9),f=n(76),_=n(61).pointer,g=10;h.prototype={constructor:h,dispose:function(){p.each(this._docEvents,function(e,t){p(document).off(t)})},update:function(e,t){var n=this._state;n.enabled=e,n.moveSelectedRangeByClick=t.moveSelectedRangeByClick,n.manualRangeSelectionEnabled=t.manualRangeSelectionEnabled}},t.Tracker=h},function(e,t){function n(e,t,n,i,r){var a,o,s,l=t.getSeries(),c=l.length;if(t.adjustSeriesDimensions(),l.length)for(s=l[0].getValueAxis(),s.setBusinessRange(t.getBoundRange().val),s.updateCanvas({top:i.top,bottom:0,height:i.height+i.top}),o=0;o<c;++o)a=l[o],a._extGroups.seriesGroup=a._extGroups.labelsGroup=e,a.draw(r)}function i(e,t){return void 0!==e?e:t}function r(e){this._params=e,this._clipRect=e.renderer.clipRect(),e.root.attr({"clip-path":this._clipRect.id})}r.prototype={constructor:r,update:function(e,t,r,a,o,s){var l,c=this._params.renderer,u=this._params.root,d=r.width-r.left;e=e||{},u.clear(),this._clipRect.attr({x:r.left,y:r.top,width:d,height:r.height}),a||(i(e.visible,t.visible)&&(e.color&&c.rect(r.left,r.top,d+1,r.height).attr({fill:i(e.color,t.color),"class":"dx-range-selector-background"}).append(u),e.image&&e.image.url&&c.image(r.left,r.top,d+1,r.height,e.image.url,i(e.image.location,t.image.location)).append(u)),s&&s.isShowChart()&&(l=c.g().attr({"class":"dxrs-series-group"}).append(u),n(l,s,this._params.translator,r,o)))}},t.RangeView=r},function(e,t,n){function i(e,t,n){a.each(e,function(e,i){a.each(n.getTemplateFields(),function(e,t){i[t.templateField]=i[t.originalField]}),t.push(i)}),n.updateTemplateFieldNames()}var r,a=n(9),o=n(525),s=n(580),l=n(14),c=n(11).extend,u=n(26).inArray,d=n(509),h=n(564),p=n(523),f=n(549).ThemeManager,_=function(e){return new f(e,"rangeSelector.chart")},g=function(e,t,n,i,r,o){var l=[],c=[];return a.each(e,function(e,t){u(t.type,c)===-1&&c.push(t.type)}),a.each(c,function(a,c){var u=new s.SeriesFamily({type:c,equalBarWidth:t,minBubbleSize:n,maxBubbleSize:i,barWidth:r,negativesAsZeroes:o});u.add(e),u.adjustSeriesValues(),l.push(u)}),l},m=function(e){var t=["bar","candlestick","stock","bubble"],n=!0;return e=d.normalizeEnum(e),a.each(t,function(t,i){if(e.indexOf(i)!==-1)return n=!1,!1}),n};r=function(e){var t,n,i,r,a,o,s=this,c=s._themeManager=_(e.chart);c._fontFields=["commonSeriesSettings.label.font"],c.setTheme(e.chart.theme),i=c.getOptions("topIndent"),r=c.getOptions("bottomIndent"),s._indent={top:i>=0&&i<1?i:0,bottom:r>=0&&r<1?r:0},s._valueAxis=c.getOptions("valueAxisRangeSelector")||{},s._hideChart=!1,n=c.getOptions("seriesTemplate"),e.dataSource&&n&&(t=d.processSeriesTemplate(n,e.dataSource)),s._useAggregation=e.chart.useAggregation,s._series=s._calculateSeries(e,t),a=c.getOptions("negativesAsZeroes"),o=c.getOptions("negativesAsZeros"),s._seriesFamilies=g(s._series,c.getOptions("equalBarWidth"),c.getOptions("minBubbleSize"),c.getOptions("maxBubbleSize"),c.getOptions("barWidth"),l.isDefined(a)?a:o)},r.prototype={constructor:r,_calculateSeries:function(e,t){var n,r,a,s,l,u,d,h,f=this,_=[],g=f._themeManager,m=!!g.getOptions("seriesTemplate"),v=m?t:e.chart.series,y=e.chart.valueAxis&&e.chart.valueAxis.valueType;for(f.templateData=[],e.dataSource&&!v&&(l=e.dataSourceField||"arg",v={argumentField:l,valueField:l},f._hideChart=!0),v=Array.isArray(v)?v:v?[v]:[],u=0;u<v.length;u++)n=c(!0,{incidentOccurred:e.incidentOccurred},v[u]),n.rotated=!1,a=n.data||e.dataSource,r=g.getOptions("series",n),r.argumentField=r.argumentField||e.dataSourceField,a&&a.length>0&&(d=new o.Series({renderer:e.renderer,argumentAxis:e.argumentAxis,valueAxis:e.valueAxis},r),_.push(d)),m&&i(a,f.templateData,d);if(a=m?f.templateData:a,_.length)for(h={groups:[{series:_,valueOptions:{valueType:l?e.valueType:y}}],argumentOptions:{categories:e.categories,argumentType:e.valueType,type:e.axisType}},s=p.validateData(a,h,e.incidentOccurred,g.getOptions("dataPrepareSettings")),f.argCategories=h.categories,u=0;u<_.length;u++)_[u].updateData(s[_[u].getArgumentField()]);return _},adjustSeriesDimensions:function(){this._useAggregation&&a.each(this._series,function(e,t){t.resamplePoints(t.getArgumentAxis().getTranslator().canvasLength)}),a.each(this._seriesFamilies,function(e,t){t.adjustSeriesDimensions()})},getBoundRange:function(){var e,t,n,i,r,o=this,s=o._valueAxis.min,c=o._valueAxis.max,u=new h.Range({min:s,minVisible:s,max:c,maxVisible:c,axisType:o._valueAxis.type,base:o._valueAxis.logarithmBase}),d=new h.Range({});return a.each(o._series,function(t,n){e=n.getRangeData(),u.addRange(e.val),d.addRange(e.arg),m(n.type)||d.addRange({stick:!1})}),u.isDefined()&&d.isDefined()&&(i=o._valueAxis.inverted?o._indent.top:o._indent.bottom,r=o._valueAxis.inverted?o._indent.bottom:o._indent.top,t=u.max-u.min,n=(l.isNumeric(u.maxVisible)?u.maxVisible:u.max)-(l.isNumeric(u.minVisible)?u.minVisible:u.min),l.isDate(u.min)?u.min=new Date(u.min.valueOf()-t*i):u.min-=t*i,l.isDate(u.max)?u.max=new Date(u.max.valueOf()+t*r):u.max+=t*r,l.isNumeric(n)&&(u.maxVisible=u.maxVisible?u.maxVisible+n*r:void 0,u.minVisible=u.minVisible?u.minVisible-n*i:void 0),u.invert=o._valueAxis.inverted),{arg:d,val:u}},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){var e=this._series[0];return e&&e.argumentType},getThemeManager:function(){return this._themeManager}},t.SeriesDataSource=r},function(e,t,n){var i=n(550).BaseThemeManager;t.ThemeManager=i.inherit({_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font","loadingIndicator.font","export.font","title.font","title.subtitle.font"]})},function(e,t,n){e.exports=n(614)},function(e,t,n){function i(){return"vectormap-data-"+T++}function r(e,t){function n(e){var t={};return o(e||{},t),t}t&&(e.__data=t.length?l.map(t,n):n(t))}function a(e,t,n){var i=e.__data;i&&(e.__data=void 0,i.length?l.each(i,function(e,n){o(n,t[e])}):o(i,t),n.lock(),e.setOptions(t),n.unlock())}function o(e,t){var n=!("dataSource"in e)&&"data"in e?"data":"dataSource";t[n]=e[n],e[n]=void 0}function s(e){var t=n(7).log,i=e._options.mapData,r=e._options.markers;e._options.mapData=e._options.markers=void 0,
e._afterInit=function(){this._options.mapData=i,this._options.markers=r,this._renderer.lock(),this._setLayerCollectionOptions(),this._renderer.unlock(),i=r=void 0},e._setLayerCollectionOptions=function(){var e=this._options,t=e.mapData,n=e.markers;t=t&&t.features?w({},t):t,n=n&&n.features?w({},n):n,this._layerCollection.setOptions([w({},e.areaSettings,{name:"areas",_deprecated:!0,dataSource:t,type:"area"}),w({},e.markerSettings,{name:"markers",_deprecated:!0,dataSource:n,type:"marker",elementType:e.markerSettings&&e.markerSettings.type})])},e.getAreas=function(){return t("W0002",this.NAME,"getAreas","15.2","Use the 'getLayerByName('areas').getElements()' instead"),this.getLayerByName("areas").getElements()},e.getMarkers=function(){return t("W0002",this.NAME,"getMarkers","15.2","Use the 'getLayerByName('markers').getElements()' instead"),this.getLayerByName("markers").getElements()},e.clearAreaSelection=function(e){return t("W0002",this.NAME,"clearAreaSelection","15.2","Use the 'getLayerByName('areas').clearSelection()' instead"),this.getLayerByName("areas").clearSelection(e),this},e.clearMarkerSelection=function(e){return t("W0002",this.NAME,"clearMarkerSelection","15.2","Use the 'getLayerByName('markers').clearSelection()' instead"),this.getLayerByName("markers").clearSelection(e),this};var a={areas:"areaClick",markers:"markerClick"},o={areas:"areaHoverChanged",markers:"markerHoverChanged"},s={areas:"areaSelectionChanged",markers:"markerSelectionChanged"};e.on("click",function(e){e.target&&this._eventTrigger(a[e.target.layer.name],e)}),e.on("hoverChanged",function(e){e.target&&this._eventTrigger(o[e.target.layer.name],e)}),e.on("selectionChanged",function(e){e.target&&this._eventTrigger(s[e.target.layer.name],e)})}var l=n(9),c=n(14).noop,u=n(509).parseScalar,d=n(11).extend,h=n(615),p=n(617),f=n(618),_=n(619),g=n(620),m=n(621),v=n(622),y=n(623),b=n(624),x=n(625),S=c,w=d,k=800,C=400,T=1,E=/^layers/,A=/\.(dataSource|data)$/;n(626);var I=n(515).inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onAreaClick:{name:"areaClick"},onAreaHoverChanged:{name:"areaHoverChanged"},onAreaSelectionChanged:{name:"areaSelectionChanged"},onMarkerClick:{name:"markerClick"},onMarkerHoverChanged:{name:"markerHoverChanged"},onMarkerSelectionChanged:{name:"markerSelectionChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),w(this._deprecatedOptions,{areaSettings:{since:"15.2",message:"Use the 'layers' option instead"},markerSettings:{since:"15.2",message:"Use the 'layers' option instead"},mapData:{since:"15.2",message:"Use the 'layers' option instead"},markers:{since:"15.2",message:"Use the 'layers' option instead"},onAreaClick:{since:"15.2",message:"Use the 'onClick' option instead"},onMarkerClick:{since:"15.2",message:"Use the 'onClick' option instead"},onAreaHoverChanged:{since:"15.2",message:"Use the 'onHoverChanged' option instead"},onMarkerHoverChanged:{since:"15.2",message:"Use the 'onHoverChanged' option instead"},onAreaSelectionChanged:{since:"15.2",message:"Use the 'onSelectionChanged' option instead"},onMarkerSelectionChanged:{since:"15.2",message:"Use the 'onSelectionChanged' option instead"},"layers.data":{since:"15.2",message:"Use the 'layers.dataSource' option instead"}})},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_createThemeManager:function(){return new g.ThemeManager},_initLayerCollection:function(e){var t=this;t._layerCollection=new b.MapLayerCollection({renderer:t._renderer,projection:t._projection,themeManager:t._themeManager,tracker:t._tracker,dataKey:e,eventTrigger:t._eventTrigger,dataExchanger:t._dataExchanger,tooltip:t._tooltip,notifyDirty:t._notifyDirty,notifyReady:t._notifyReady}),void 0===t._options.layers&&(t._options.mapData||t._options.markers)?s(t):r(t._layerCollection,t._options.layers)},_initLegendsControl:function(){var e=this;e._legendsControl=new v.LegendsControl({renderer:e._renderer,container:e._root,layoutControl:e._layoutControl,themeManager:e._themeManager,dataExchanger:e._dataExchanger,notifyDirty:e._notifyDirty,notifyReady:e._notifyReady})},_initControlBar:function(e){var t=this;t._controlBar=new p.ControlBar({renderer:t._renderer,container:t._root,layoutControl:t._layoutControl,projection:t._projection,tracker:t._tracker,dataKey:e})},_initElements:function(){var e=this,t=i(),n=0;e._notifyDirty=function(){e._resetIsReady(),++n},e._notifyReady=function(){0===--n&&e._drawn()},e._dataExchanger=new m.DataExchanger,e._projection=new h.Projection({centerChanged:function(t){e._initialized&&e._eventTrigger("centerChanged",{center:t})},zoomChanged:function(t){e._initialized&&e._eventTrigger("zoomFactorChanged",{zoomFactor:t})}}),e._tracker=new _.Tracker({root:e._root,projection:e._projection,dataKey:t}),e._gestureHandler=new f.GestureHandler({projection:e._projection,renderer:e._renderer,tracker:e._tracker}),e._layoutControl=new y.LayoutControl,e._layoutControl.suspend(),e._initLayerCollection(t),e._initControlBar(t),e._initLegendsControl(),e._tooltipViewer=new x.TooltipViewer({tracker:e._tracker,tooltip:e._tooltip,layerCollection:e._layerCollection})},_init:function(){this.callBase.apply(this,arguments),this._afterInit(),this._layoutControl.resume()},_initialChanges:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_afterInit:function(){a(this._layerCollection,this._options.layers,this._renderer)},_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){var e=this;e._controlBar.dispose(),e._gestureHandler.dispose(),e._tracker.dispose(),e._legendsControl.dispose(),e._layerCollection.dispose(),e._layoutControl.dispose(),e._tooltipViewer.dispose(),e._dataExchanger.dispose(),e._projection.dispose(),e._dataExchanger=e._gestureHandler=e._projection=e._tracker=e._layoutControl=e._root=e._layerCollection=e._controlBar=e._legendsControl=null},_setupInteraction:function(){var e={centeringEnabled:!!u(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!u(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(e),this._controlBar.setInteraction(e)},_getDefaultSize:function(){return{width:k,height:C}},_applySize:function(e){var t={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height])},_optionChanging:function(e,t,n){t&&n&&(E.test(e)&&(t.dataSource&&n.dataSource&&t!==n?t.dataSource=null:t.data&&n.data&&t!==n?t.data=null:A.test(e)&&this.option(e,null)),"mapData"===e&&(this._options.mapData=null),"markers"===e&&(this._options.markers=null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",areaSettings:"LAYERS",markerSettings:"LAYERS",mapData:"LAYERS",markers:"LAYERS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers:function(){var e,t=this._layerCollection.items(),n=[],i=n.length=t.length;for(e=0;e<i;++e)n[e]=t[e].proxy;return n},getLayerByIndex:function(e){var t=this._layerCollection.byIndex(e);return t?t.proxy:null},getLayerByName:function(e){var t=this._layerCollection.byName(e);return t?t.proxy:null},clearSelection:function(e){var t,n=this._layerCollection.items(),i=n.length;for(t=0;t<i;++t)n[t].clearSelection(e);return this},getAreas:S,getMarkers:S,clearAreaSelection:S,clearMarkerSelection:S,center:function(e){var t=this;return void 0===e?t._projection.getCenter():(t._projection.setCenter(e),t)},zoomFactor:function(e){var t=this;return void 0===e?t._projection.getZoom():(t._projection.setZoom(e),t)},viewport:function(e){var t=this;return void 0===e?t._projection.getViewport():(t._projection.setViewport(e),t)},convertCoordinates:function(e){return e=e&&e.length?e:[arguments[0],arguments[1]],this._projection.fromScreenPoint(e)}});n(57)("dxVectorMap",I),e.exports=I,I.addPlugin(n(511).plugin),I.addPlugin(n(558).plugin),I.addPlugin(n(559).plugin),I.addPlugin(n(560).plugin)},function(e,t,n){function i(e,t){return A(e-t)<1e-8}function r(e,t){return i(e[0],t[0])&&i(e[1],t[1])}function a(e,t,n,i){var r=C(e);return isFinite(r)?T(E(r,t),n):i}function o(e,t,n,i){return[a(e[0],t[0],n[0],i[0]),a(e[1],t[1],n[1],i[1])]}function s(e){return e instanceof p&&e||b.get(e)||b.get(R)}function l(e){var t=this;t._initEvents(),t._params=e,t._engine=s(),t._center=t._engine.center(),t._adjustCenter()}function c(e,t,n,i){var r=(n+i)/2;return A(e-r)>A(t-r)?e:t}function u(e,t,n,i){var r=(n+i)/2;return A(e-r)<A(t-r)?e:t}function d(e,t,n){var i=e([n[0],n[3]]),r=e([n[0],n[1]]),a=e([n[2],n[3]]),o=e([n[2],n[1]]),s=u(i[0],r[0],a[0],o[0]),l=u(a[0],o[0],i[0],r[0]),c=u(i[1],a[1],r[1],o[1]),d=u(r[1],o[1],i[1],a[1]);return[2/E(A(s-l),A(c-d)),t([(s+l)/2,(c+d)/2])]}function h(e,t,n){var i=x(t,n);e.min=y(i.min),e.max=y(i.max)}function p(e){var t=this,n=g(e.to),i=e.from?m(e.from):v(V);t.project=n,t.unproject=i,t.original=v(t),t.source=function(){return w({},e)},t.isInvertible=v(!!e.from),t.ar=v(e.aspectRatio>0?C(e.aspectRatio):1),t.center=y(i([0,0])),h(t,[i([-1,0])[0],i([0,1])[1]],[i([1,0])[0],i([0,-1])[1]])}function f(e){return e instanceof p}function _(e){return[e[0],-e[1]]}function g(e){return function(t){return _(e(t))}}function m(e){return function(t){return e(_(t))}}function v(e){return function(){return e}}function y(e){return function(){return e.slice()}}function b(e){return e&&e.to?new p(e):null}function x(e,t){return{min:[T(e[0],t[0]),T(e[1],t[1])],max:[E(e[0],t[0]),E(e[1],t[1])]}}function S(e,t,n,i,r){var a=(n[0]+i[0])/2-r/2,o=(n[1]+i[1])/2-r/2,s=2/r;return{to:function(t){var n=e(t);return[-1+(n[0]-a)*s,-1+(n[1]-o)*s]},from:function(e){var n=[a+(e[0]+1)/s,o+(e[1]+1)/s];return t(n)}}}var w=n(11).extend,k=n(616),C=Number,T=Math.min,E=Math.max,A=Math.abs,I=Math.round,O=Math.log,M=Math.pow,D=2/Math.LN2,P=1/3600/180/10,L=1,B=256,V=[NaN,NaN],R="mercator";l.prototype={constructor:l,_minZoom:L,_maxZoom:B,_zoom:L,_center:V,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(e){var t=this,n=s(e);t._engine!==n&&(t._engine=n,t._fire("engine"),t._changeCenter(n.center())&&t._triggerCenterChanged(),t._changeZoom(t._minZoom)&&t._triggerZoomChanged(),t._adjustCenter(),t._setupScreen())},setBounds:function(e){void 0!==e&&this.setEngine(this._engine.original().bounds(e))},_setupScreen:function(){var e=this,t=e._canvas,n=t.width,i=t.height,r=e._engine.ar();e._x0=t.left+n/2,e._y0=t.top+i/2,n/i<=r?(e._xRadius=n/2,e._yRadius=n/2/r):(e._xRadius=i/2*r,e._yRadius=i/2),e._fire("screen")},setSize:function(e){var t=this;t._canvas=e,t._setupScreen()},_toScreen:function(e){return[this._x0+this._xRadius*e[0],this._y0+this._yRadius*e[1]]},_fromScreen:function(e){return[(e[0]-this._x0)/this._xRadius,(e[1]-this._y0)/this._yRadius]},_toTransformed:function(e){return[e[0]*this._zoom+this._xCenter,e[1]*this._zoom+this._yCenter]},_toTransformedFast:function(e){return[e[0]*this._zoom,e[1]*this._zoom]},_fromTransformed:function(e){return[(e[0]-this._xCenter)/this._zoom,(e[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var e=this,t=e._engine.project(e._center);e._xCenter=-t[0]*e._zoom||0,e._yCenter=-t[1]*e._zoom||0},project:function(e){return this._engine.project(e)},transform:function(e){return this._toScreen(this._toTransformedFast(e))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(e){return[e[0]*this._zoom*this._xRadius,e[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(e){var t=this,n=t._zoom,r=t._zoom=a(e,t._minZoom,t._maxZoom,t._minZoom),o=!i(n,r);return o&&(t._adjustCenter(),t._fire("zoom")),o},setZoom:function(e){this._engine.isInvertible()&&this._changeZoom(e)&&this._triggerZoomChanged()},getScaledZoom:function(){return I((this._scale.length-1)*O(this._zoom)/O(this._maxZoom))},setScaledZoom:function(e){this.setZoom(this._scale[I(e)])},changeScaledZoom:function(e){this.setZoom(this._scale[E(T(I(this.getScaledZoom()+e),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var e,t,n=this,i=I(D*O(n._maxZoom)),r=1;for(i=i>4?i:4,e=M(n._maxZoom,1/i),t=n._minZoom,n._scale=[t];r<=i;++r)n._scale.push(t*=e)},setMaxZoom:function(e){var t=this;t._minZoom=L,t._maxZoom=a(e,t._minZoom,C.MAX_VALUE,B),t._setupScaling(),t._zoom>t._maxZoom&&t.setZoom(t._maxZoom),t._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(e){this._engine.isInvertible()&&this._changeCenter(e||[])&&this._triggerCenterChanged()},_changeCenter:function(e){var t=this,n=t._engine,i=t._center,a=t._center=o(e,n.min(),n.max(),n.center()),s=!r(i,a);return s&&(t._adjustCenter(),t._fire("center")),s},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(e,t){var n=this,i=n._engine.project(e),r=n._fromScreen(t);n.setCenter(n._engine.unproject([-r[0]/n._zoom+i[0],-r[1]/n._zoom+i[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){var e=this;e._moveCenter&&(r(e._moveCenter,e._center)||e._triggerCenterChanged(),e._moveCenter=null)},moveCenter:function(e){var t,n,i=this;i._moveCenter&&(t=i._toScreen(i._toTransformed(i._engine.project(i._center))),n=i._engine.unproject(i._fromTransformed(i._fromScreen([t[0]+e[0],t[1]+e[1]]))),i._changeCenter(n))},getViewport:function(){var e=this,t=e._engine.unproject,n=t(e._fromTransformed([-1,-1])),i=t(e._fromTransformed([-1,1])),r=t(e._fromTransformed([1,-1])),a=t(e._fromTransformed([1,1])),o=x([c(n[0],i[0],r[0],a[0]),c(n[1],r[1],i[1],a[1])],[c(r[0],a[0],n[0],i[0]),c(i[1],a[1],n[1],r[1])]);return[].concat(o.min,o.max)},setViewport:function(e){var t=this._engine,n=e?d(t.project,t.unproject,e):[this._minZoom,t.center()];this.setZoom(n[0]),this.setCenter(n[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(e){return this._engine.unproject(this._fromTransformed(this._fromScreen(e)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},k.makeEventEmitter(l),p.prototype.aspectRatio=function(e){var t=new p(w(this.source(),{aspectRatio:e}));return t.original=this.original,t.min=this.min,t.max=this.max,t},p.prototype.bounds=function(e){e=e||[];var t,n=this.source(),i=this.min(),r=this.max(),a=o([e[0],e[1]],i,r,i),s=o([e[2],e[3]],i,r,r),l=n.to(a),c=n.to(s),u=T(A(c[0]-l[0])>P?A(c[0]-l[0]):2,A(c[1]-l[1])>P?A(c[1]-l[1]):2);return u<2&&w(n,S(n.to,n.from,l,c,u)),t=new p(n),t.original=this.original,h(t,a,s),t};var F={};b.get=function(e){return F[e]||null},b.add=function(e,t){return!F[e]&&f(t)&&(F[e]=t),b},t.Projection=l,t.projection=b},function(e,t,n){var i=n(9),r={_initEvents:function(){var e,t=this._eventNames,n=t.length,r=this._events={};for(e=0;e<n;++e)r[t[e]]=i.Callbacks()},_disposeEvents:function(){var e,t=this._events;for(e in t)t[e].empty();this._events=null},on:function(e){function t(){for(n in e)i[n].remove(e[n])}var n,i=this._events;for(n in e)i[n].add(e[n]);return t},_fire:function(e,t){this._events[e].fire(t)}};t.makeEventEmitter=function(e){var t,n=e.prototype;for(t in r)n[t]=r[t]}},function(e,t,n){function i(e){var t=this;t._params=e,t._createElements(e.renderer,e.container,e.dataKey),e.layoutControl.addItem(t),t._subscribeToProjection(e.projection),t._subscribeToTracker(e.tracker),t._createCallbacks(e.projection)}function r(e){delete e._owner,e.update=function(){},e.finish=function(){}}function a(e,t){this._owner=e,this._command=t}function o(e,t,n){function i(){e._callbacks.move([o,s]),r=setTimeout(i,a)}this._command=t;var r=null,a=100,o=0,s=0;switch(this._command){case b:s=-10;break;case x:o=10;break;case S:s=10;break;case w:o=-10}this._stop=function(){return clearTimeout(r),e._callbacks.endMove(),this._stop=e=null,this},n=null,e._callbacks.beginMove(),i()}function s(e,t){function n(){e._adjustZoom(e._zoomFactor+a),i=setTimeout(n,r)}this._owner=e,this._command=t;var i=null,r=150,a=this._command===k?1:-1;this._stop=function(){return clearTimeout(i),this._stop=e=null,this},n()}function l(e,t,n){this._owner=e,this._zoomFactor=e._zoomFactor,this._pos=n.y}var c=Math,u=c.min,d=c.max,h=c.round,p=c.floor,f=c.sqrt,_=n(509),g=_.parseScalar,m=_.enumParser(["left","center","right"]),v=_.enumParser(["top","bottom"]),y="command-reset",b="command-move-up",x="command-move-right",S="command-move-down",w="command-move-left",k="command-zoom-in",C="command-zoom-out",T="command-zoom-drag-line",E="command-zoom-drag",A="control-bar",I=1,O=2,M={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},D=30.5,P=30.5,L=61,B=274,V={};V[y]=a,V[b]=V[x]=V[S]=V[w]=o,V[k]=V[C]=s,V[E]=l,i.prototype={constructor:i,_flags:0,dispose:function(){var e=this;e._params.layoutControl.removeItem(e),e._root.linkRemove().linkOff(),e._offProjection(),e._offTracker(),e._params=e._root=e._offProjection=e._offTracker=e._callbacks=null},_subscribeToProjection:function(e){function t(){n._adjustZoom(e.getScaledZoom())}var n=this;n._offProjection=e.on({engine:function(){n._update()},zoom:t,"max-zoom":function(){n._zoomPartition=e.getZoomScalePartition(),n._sliderUnitLength=n._sliderLineLength/n._zoomPartition,t()}})},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){n=e.data.name===A,n&&t._processStart(e.data.index,e)},move:function(e){n&&t._processMove(e.data.index,e)},end:function(){n&&(t._processEnd(),n=!1)}})},_createCallbacks:function(e){var t=this;t._callbacks={reset:function(t,n){t&&e.setCenter(null),n&&e.setZoom(null)},beginMove:function(){e.beginMoveCenter()},endMove:function(){e.endMoveCenter()},move:function(t){e.moveCenter(t)},zoom:function(t){e.setScaledZoom(t)}}},_createElements:function(e,t,n){var i,r,a=this;a._root=e.g().attr({"class":"dxm-control-bar"}).linkOn(t,"control-bar"),i=a._buttonsGroup=e.g().attr({"class":"dxm-control-buttons"}).append(a._root),r=e.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(a._root),a._createButtons(e,n,i),a._createTrackers(e,n,r)},_createButtons:function(e,t,n){var i=this,r=M,a=r.buttonSize/2,o=r.arrowButtonOffset-a,s=r.arrowButtonOffset,l=r.incDecButtonSize/2,c={"stroke-linecap":"square",fill:"none"},u="line";e.circle(0,0,r.bigCircleSize/2).append(n),e.circle(0,0,a).attr({fill:"none"}).append(n),e.path([-a,-o,0,-s,a,-o],u).attr(c).append(n),e.path([o,-a,s,0,o,a],u).attr(c).append(n),e.path([a,o,0,s,-a,o],u).attr(c).append(n),e.path([-o,a,-s,0,-o,-a],u).attr(c).append(n),e.circle(0,r.incButtonOffset,r.smallCircleSize/2).append(n),e.path([[-l,r.incButtonOffset,l,r.incButtonOffset],[0,r.incButtonOffset-l,0,r.incButtonOffset+l]],"area").append(n),e.circle(0,r.decButtonOffset,r.smallCircleSize/2).append(n),e.path([-l,r.decButtonOffset,l,r.decButtonOffset],"area").append(n),i._zoomLine=e.path([],"line").append(n),i._zoomDrag=e.rect(p(-r.sliderLength/2),p(r.sliderLineEndOffset-r.sliderWidth/2),r.sliderLength,r.sliderWidth).append(n),i._sliderLineLength=r.sliderLineEndOffset-r.sliderLineStartOffset},_createTrackers:function(e,t,n){var i=M,r=h((i.arrowButtonOffset-i.trackerGap)/2),a=i.arrowButtonOffset-r,o=h(f(i.bigCircleSize*i.bigCircleSize/4-r*r)),s=o-a;e.rect(-r,-r,2*r,2*r).data(t,{index:y,name:A}).append(n),e.rect(-r,-o,2*r,s).data(t,{index:b,name:A}).append(n),e.rect(a,-r,s,2*r).data(t,{index:x,name:A}).append(n),e.rect(-r,a,2*r,s).data(t,{index:S,name:A}).append(n),e.rect(-o,-r,s,2*r).data(t,{index:w,name:A}).append(n),e.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(t,{index:k,name:A}).append(n),e.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(t,{index:C,name:A}).append(n),e.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(t,{index:T,name:A}).append(n),this._zoomDragTracker=e.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(t,{index:E,name:A}).append(n)},resize:function(e){this._isActive&&this._root.attr({visibility:null!==e?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(e,t){this._root.attr({translateX:e+this._margin+D,translateY:t+this._margin+P})},_update:function(){var e=this;e._isActive=e._isEnabled&&e._flags&&e._params.projection.isInvertible(),e._isActive?e._root.linkAppend():e._root.linkRemove(),e._processEnd(),e.updateLayout()},setInteraction:function(e){var t=this;g(e.centeringEnabled,!0)?t._flags|=I:t._flags&=~I,g(e.zoomingEnabled,!0)?t._flags|=O:t._flags&=~O,t._update()},setOptions:function(e){var t=this;t._isEnabled=!!g(e.enabled,!0),t._margin=e.margin||0,t._layoutOptions={width:2*t._margin+L,height:2*t._margin+B,horizontalAlignment:m(e.horizontalAlignment,"left"),verticalAlignment:v(e.verticalAlignment,"top")},t._buttonsGroup.attr({"stroke-width":e.borderWidth,stroke:e.borderColor,fill:e.color,"fill-opacity":e.opacity}),t._update()},_adjustZoom:function(e){var t,n,i=this,r=M.sliderLineStartOffset,a=M.sliderLineEndOffset,o=M.sliderWidth;i._zoomFactor=d(u(h(e),i._zoomPartition),0),t={translateY:-h(i._zoomFactor*i._sliderUnitLength)},n=a-o/2+t.translateY,i._zoomLine.attr({points:[[0,r,0,d(r,n)],[0,u(a,n+o),0,a]]}),i._zoomDrag.attr(t),i._zoomDragTracker.attr(t)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(e,t){var n;this._isActive&&(n=V[e],this._command=n&&n.flags&this._flags?new n(this,e,t):null)},_processMove:function(e,t){this._command&&this._command.update(e,t)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},a.flags=I|O,a.prototype.update=function(e){e!==this._command&&r(this)},a.prototype.finish=function(){var e=this._owner._flags;this._owner._callbacks.reset(!!(e&I),!!(e&O)),r(this)},o.flags=I,o.prototype.update=function(e){this._command!==e&&this.finish()},o.prototype.finish=function(){r(this._stop())},s.flags=O,s.prototype.update=function(e){this._command!==e&&this.finish()},s.prototype.finish=function(){this._owner._applyZoom(),r(this._stop())},l.flags=O,l.prototype.update=function(e,t){var n=this._owner;n._adjustZoom(this._zoomFactor+n._zoomPartition*(this._pos-t.y)/n._sliderLineLength)},l.prototype.finish=function(){this._owner._applyZoom(),r(this)},t.ControlBar=i},function(e,t){function n(e){var t=this;t._projection=e.projection,t._renderer=e.renderer,t._x=t._y=0,t._subscribeToTracker(e.tracker)}var i=Math.log,r=Math.LN2;n.prototype={constructor:n,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){n="control-bar"!==e.data.name,n&&t._processStart(e)},move:function(e){n&&t._processMove(e)},end:function(){n&&t._processEnd()},zoom:function(e){t._processZoom(e)}})},setInteraction:function(e){this._processEnd(),this._centeringEnabled=e.centeringEnabled,this._zoomingEnabled=e.zoomingEnabled},_processStart:function(e){this._centeringEnabled&&(this._x=e.x,this._y=e.y,this._projection.beginMoveCenter())},_processMove:function(e){var t=this;t._centeringEnabled&&(t._renderer.root.attr({cursor:"move"}),t._projection.moveCenter([t._x-e.x,t._y-e.y]),t._x=e.x,t._y=e.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(e){var t,n,a,o=this;o._zoomingEnabled&&(e.delta?t=e.delta:e.ratio&&(t=i(e.ratio)/r),o._centeringEnabled&&(n=o._renderer.getRootOffset(),n=[e.x-n.left,e.y-n.top],a=o._projection.fromScreenPoint(n)),o._projection.changeScaledZoom(t),o._centeringEnabled&&o._projection.setCenterByPoint(a,n))}},t.GestureHandler=n},function(e,t,n){function i(e){var t=this;t._root=e.root,t._createEventHandlers(e.dataKey),t._createProjectionHandlers(e.projection),t._initEvents(),t._focus=new K(function(e,n){t._fire(e,n)}),t._attachHandlers()}function r(e,t,n,i){return _((e-n)*(e-n)+(t-i)*(t-i))}function a(e){var t=e.originalEvent.type,n=e.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==n||/^pointer/.test(t)&&"mouse"!==n}function o(e,t){for(var n,i=0,r=e.length;i<r;++i)if(e[i]){n=t[i];break}return b(n||t[i],w)}function s(){var e=[navigator.pointerEnabled,navigator.msPointerEnabled,"ontouchstart"in window];k={start:o(e,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:o(e,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:o(e,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:b(y,w)}}function l(e){var t=e.originalEvent,n=t.touches&&t.touches[0]||{};return{x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY}}function c(e){return e.originalEvent.pointerId}function u(e,t){var n=e.originalEvent;return n=void 0!==n.pointerId?n.pointerId===t?n:null:n.touches[t],n?{x:n.pageX||e.pageX,y:n.pageY||e.pageY}:null}function d(e,t){if(0===e)return 0;var n=f(e),i=g(e/n);return t.dir&&i!==t.dir?0:(t.dir=i,n=n<.1?0:n<1?1:n>4?4:g(n),i*n)}var h=n(9),p=Math,f=p.abs,_=p.sqrt,g=p.round,m=n(616),v=n(71),y=n(85).name,b=v.addNamespace,x=n(509).parseScalar,S=h.now,w="dxVectorMap",k={};s();var C="start",T="move",E="end",A="zoom",I="hover-on",O="hover-off",M="click",D="focus-on",P="focus-move",L="focus-off",B=500,V=5,R=20,F=5,z=10,H=300,N=300,G=300,j=400,W=5,U=50,Y=300;i.prototype={constructor:i,dispose:function(){var e=this;e._detachHandlers(),e._disposeEvents(),e._focus.dispose(),e._root=e._focus=e._docHandlers=e._rootHandlers=null},_eventNames:[C,T,E,A,M,I,O,D,L,P],_startClick:function(e,t){if(t){var n=l(e);this._clickState={x:n.x,y:n.y,threshold:a(e)?R:V,time:S()}}},_endClick:function(e,t){var n,i,r=this._clickState;r&&(t&&S()-r.time<=B&&(n=r.threshold,i=l(e),f(i.x-r.x)<=n&&f(i.y-r.y)<=n&&this._fire(M,{data:t,x:i.x,y:i.y,$event:e})),this._clickState=null)},_startDrag:function(e,t){if(t){var n=l(e),i=this._dragState={x:n.x,y:n.y,data:t};this._fire(C,{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(e,t){var n,i,r=this._dragState;r&&(n=l(e),i=a(e)?z:F,(r.active||f(n.x-r.x)>i||f(n.y-r.y)>i)&&(r.x=n.x,r.y=n.y,r.active=!0,r.data=t||{},this._fire(T,{x:r.x,y:r.y,data:r.data})))},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire(E,{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n,i,r=this,a=r._wheelLock,o=S();o-a.time<=U||(o-a.dirTime>Y&&(a.dir=0),n=d(e.delta/120||0,a),0!==n&&(i=l(e),r._fire(A,{delta:n,x:i.x,y:i.y}),a.time=a.dirTime=o))}},_startZoom:function(e,t){if(a(e)&&t){var n,i,r=this._zoomState=this._zoomState||{};r.pointer1&&r.pointer2||(void 0===r.pointer1&&(r.pointer1=c(e)||0,n=u(e,r.pointer1),r.x1=r.x1_0=n.x,r.y1=r.y1_0=n.y),void 0===r.pointer2&&(i=c(e)||1,i!==r.pointer1&&(n=u(e,i),n&&(r.x2=r.x2_0=n.x,r.y2=r.y2_0=n.y,r.pointer2=i,r.ready=!0,this._endDrag()))))}},_moveZoom:function(e){var t,n=this._zoomState;n&&a(e)&&(void 0!==n.pointer1&&(t=u(e,n.pointer1),t&&(n.x1=t.x,n.y1=t.y)),void 0!==n.pointer2&&(t=u(e,n.pointer2),t&&(n.x2=t.x,n.y2=t.y)))},_endZoom:function(e){var t,n,i=this._zoomState;i&&a(e)&&(i.ready&&(t=r(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=r(i.x1,i.y1,i.x2,i.y2),this._fire(A,{ratio:n/t,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelHover():void(a(e)!==n||i._hoverTarget===e.target||i._hoverState&&i._hoverState.data===t||(i._cancelHover(),t&&(i._hoverState={data:t},i._fire(I,{data:t})),i._hoverTarget=e.target))},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire(O,{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelFocus():void(a(e)===n&&(i._focus.turnOff(n?j:N),t&&i._focus.turnOn(t,l(e),n?G:H,n)))},_endFocus:function(e){a(e)&&this._focus.cancelOn()},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){function t(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}var n=this;n._docHandlers={},n._rootHandlers={},n._rootHandlers[k.start]=n._docHandlers[k.start]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(r&&(e.preventDefault(),e.stopPropagation()),n._startClick(e,r),n._startDrag(e,r),n._startZoom(e,r),n._startHover(e,r),n._startFocus(e,r))},n._docHandlers[k.move]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(n._moveDrag(e,r),n._moveZoom(e,r),n._moveHover(e,r),n._moveFocus(e,r))},n._docHandlers[k.end]=function(e){var i=a(e),r=t(e);i&&!n._isTouchEnabled||(n._endClick(e,r),n._endDrag(e,r),n._endZoom(e,r),n._endFocus(e,r))},n._rootHandlers[k.wheel]=function(e){if(n._cancelFocus(),n._isWheelEnabled){var i=t(e);i&&(e.preventDefault(),e.stopPropagation(),n._wheelZoom(e,i))}},n._wheelLock={dir:0}},_createProjectionHandlers:function(e){function t(){n._cancelFocus()}var n=this;e.on({center:t,zoom:t})},reset:function(){var e=this;e._clickState=null,e._endDrag(),e._cancelHover(),e._cancelFocus()},setOptions:function(e){var t=this;t.reset(),t._detachHandlers(),t._isTouchEnabled=!!x(e.touchEnabled,!0),t._isWheelEnabled=!!x(e.wheelEnabled,!0),t._attachHandlers()},_detachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"","-ms-touch-action":"","-webkit-user-select":""}).off(b("MSHoldVisual",w)).off(b("contextmenu",w)),h(document).off(e._docHandlers),e._root.off(e._rootHandlers)},_attachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({
"touch-action":"none","-ms-touch-action":"none","-webkit-user-select":"none"}).on(b("MSHoldVisual",w),function(e){e.preventDefault()}).on(b("contextmenu",w),function(e){a(e)&&e.preventDefault()}),h(document).on(e._docHandlers),e._root.on(e._rootHandlers)}};var K=function(e){var t,n,i=this,r=null,a=null,o=!1,s=null,l=null;i.dispose=function(){clearTimeout(s),clearTimeout(l),i.turnOn=i.turnOff=i.cancel=i.cancelOn=i.dispose=i=e=r=a=s=l=null},i.turnOn=function(i,c,u,d){function h(e){o=!e,e&&(r=a,clearTimeout(l),l=null)}i===a&&o||(o=!1,a=i,r?(t=c.x,n=c.y,clearTimeout(s),s=setTimeout(function(){s=null,a===r?(e(P,{data:a,x:t,y:n}),h(!0)):e(D,{data:a,x:t,y:n,done:h})},d?u:0)):(!s||f(c.x-t)>W||f(c.y-n)>W||d)&&(t=c.x,n=c.y,clearTimeout(s),s=setTimeout(function(){s=null,e(D,{data:a,x:t,y:n,done:h})},u)))},i.turnOff=function(t){clearTimeout(s),s=null,a=null,r&&!o&&(l=l||setTimeout(function(){l=null,e(L,{data:r}),r=null},t))},i.cancel=function(){clearTimeout(s),clearTimeout(l),r&&e(L,{data:r}),r=a=s=l=null},i.cancelOn=function(){clearTimeout(s),s=null}};m.makeEventEmitter(i),t.Tracker=i},function(e,t,n){var i=n(550).BaseThemeManager;t.ThemeManager=i.inherit({_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","tooltip.font","legend.font","title.font","title.subtitle.font","loadingIndicator.font","export.font"]})},function(e,t,n){function i(){this._store={}}var r=n(9).Callbacks;i.prototype={constructor:i,dispose:function(){return this._store=null,this},_get:function(e,t){var n=this._store[e]||(this._store[e]={});return n[t]||(n[t]={callbacks:r()})},set:function(e,t,n){var i=this._get(e,t);return i.data=n,i.callbacks.fire(n),this},bind:function(e,t,n){var i=this._get(e,t);return i.callbacks.add(n),i.data&&n(i.data),this},unbind:function(e,t,n){var i=this._get(e,t);return i.callbacks.remove(n),this}},t.DataExchanger=i},function(e,t,n){function i(e){var t;return t="string"==typeof e?h[e.toLowerCase()]||p:{category:e.layer,name:e.grouping}}function r(e,t,n){var i,r,a=t.length,o=[];for(i=0;i<a;++i)o[i]=r={start:e[i],end:e[i+1],index:i},r[n]=t[i],r.states={normal:{fill:r.color}};return o}function a(e){this._params=e,this._items=[],e.container.virtualLink("legend-base")}var o=n(9),s=n(11).extend,l=s,c=o.each,u=n(521),d=u.Legend,h={areacolorgroups:{category:"areas",name:"color"},markercolorgroups:{category:"markers",name:"color"},markersizegroups:{category:"markers",name:"size"}},p={category:"UNKNOWN",name:"UNKNOWN"},f=function(e){var t=this;t._params=e,t._root=e.renderer.g().attr({"class":"dxm-legend"}).linkOn(e.container,{name:"legend",after:"legend-base"}).linkAppend(),e.layoutControl.addItem(t),d.call(t,{renderer:e.renderer,group:t._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),t._onDataChanged=function(e){t._updateData(e)}};f.prototype=l(n(27).clone(d.prototype),{constructor:f,dispose:function(){var e=this;return e._params.layoutControl.removeItem(e),e._unbindData(),e._root.linkRemove().linkOff(),e._params=e._root=e._onDataChanged=null,d.prototype.dispose.apply(e,arguments)},resize:function(e){this._params.notifyDirty(),null===e?this.erase():this.draw(e.width,e.height),this._params.notifyReady()},locate:d.prototype.shift,_updateData:function(e){this.update(e?r(e.partition,e.values,this._dataName):[],this._options),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(e){this._params.dataExchanger.bind(this._dataCategory=e.category,this._dataName=e.name,this._onDataChanged)},setOptions:function(e){var t=this;return t.update(t._data,e),t._unbindData(),t._bindData(e.source&&i(e.source)||p),t.updateLayout(),t}}),a.prototype={constructor:a,dispose:function(){c(this._items,function(e,t){t.dispose()}),this._params=this._items=null},setOptions:function(e){var t,n=e&&e.length?e:[],i=this._items,r=n.length,a=this._params,o=a.themeManager.theme("legend");for(t=i.length;t<r;++t)i[t]=new f(a);for(t=i.length-1;t>=r;--t)i[t].dispose(),i.splice(t,1);for(a.layoutControl.suspend(),t=0;t<r;++t)i[t].setOptions(l(!0,{},o,n[t]));a.layoutControl.resume()}},t.LegendsControl=a},function(e,t,n){function i(e){return 3*v[e.verticalAlignment]+m[e.horizontalAlignment]}function r(e,t){var n=(e.right-e.left)/3,r=(e.bottom-e.top)/2,a=e.left,o=h(a+n),s=h(a+n+n),l=e.right,c=e.top,u=h(c+r),d=e.bottom,p=[{rect:[a,c,o,u]},{rect:[o,c,s,u],center:!0},{rect:[s,c,l,u],horInversion:!0},{rect:[a,u,o,d],verInversion:!0},{rect:[o,u,s,d],center:!0,verInversion:!0},{rect:[s,u,l,d],horInversion:!0,verInversion:!0}],f=[[],[],[],[],[],[]];return _(t,function(e,t){var n=t.getLayoutOptions();n&&f[i(n)].push({item:t,width:n.width,height:n.height})}),_(p,function(e,t){f[e].length?t.items=f[e]:(t.center?t.rect[0]=t.rect[2]=(t.rect[0]+t.rect[2])/2:t.rect[t.horInversion?0:2]=t.rect[t.horInversion?2:0],t.rect[t.verInversion?1:3]=t.rect[t.verInversion?3:1])}),p}function a(e){_([0,1,2,3,4,5],function(t,n){var i=e[n],r=e[(n+3)%6];i.items&&(r.items||(i.rect[1]=p(i.rect[1],r.rect[3]),i.rect[3]=f(i.rect[3],r.rect[1])))}),_([1,4],function(t,n){var i,r,a=e[n],o=e[n-1],s=e[n+1];a.items?o.items||s.items||(i=a.rect[0]-o.rect[2],r=s.rect[0]-a.rect[2],i>r?i/r>=2?(a.rect[0]-=i,a.right=!0):(a.rect[0]-=r,a.rect[2]+=r):r/i>=2?(a.rect[2]+=r,a.center=null):(a.rect[0]-=i,a.rect[2]+=i)):(o.items&&(o.rect[2]=(a.rect[0]+a.rect[2])/2),s.items&&(s.rect[0]=(a.rect[0]+a.rect[2])/2))})}function o(e,t){var n=!1;return a(e),_(e,function(e,i){i.items&&(n=s(i,t)||n)}),n}function s(e,t){var n=e.rect,i=n[2]-n[0],r=n[3]-n[1],a=0,o=0,s=0,l=n[2],c=n[3],u=n[0],d=n[1],g=[],m=!1;return _(e.items,function(h,_){if(_.width>i||_.height>r)return g.push(null),m=!0,t||!1;if(a+_.width>i&&(o+=s,a=s=0),o+_.height>r)return g.push(null),m=!0,t||!1;s=f(s,_.height);var v=e.horInversion?n[2]-_.width-a:n[0]+a,y=e.verInversion?n[3]-_.height-o:n[1]+o;a+=_.width,l=p(l,v),c=p(c,y),u=f(u,v+_.width),d=f(d,y+_.height),g.push([v,y])}),!t&&m||(a=0,e.right?a=n[2]-n[0]-u+l:e.center&&(a=h((n[2]-n[0]-u+l)/2)),_(e.items,function(e,t){var n=g[e];n?t.item.locate(n[0]+a,n[1]):t.item.resize(null)}),e.rect=[l,c,u,d],e.items=null),m}function l(e,t){var n=r(e,t);o(n)&&o(n,!0)}function c(){var e=this;e._items=[],e._suspended=0,e._updateLayout=function(){e._update()}}var u=n(9),d=n(26).inArray,h=Math.round,p=Math.min,f=Math.max,_=u.each,g=d,m={left:0,center:1,right:2},v={top:0,bottom:1};c.prototype={constructor:c,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0===--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(g(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,_(this._items,function(t,n){n.resize(e)}),l({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}},t.LayoutControl=c},function(e,t,n){function i(e){var t=ce(e);return t=t in Se?Se[t]:Se.single,null!==t&&(t={state:{},single:t}),t}function r(){}function a(e){this.raw=e}function o(e){this.raw=e}function s(e){return ae(e.features)}function l(e){var t;return e&&(s(e)?t=o:1===e.length&&e[0]&&s(e[0])?(t=o,e=e[0]):ae(e)&&(t=a)),new(t=t||r)(e)}function c(e){return e?s(e)?[e]:e:[]}function u(e,t,n){t.call(n,e)}function d(e,t){var n,i,r,a=e.length;for(n=0;n<a;++n)i=e[n],r=t.call(i,i)||{},i.applySettings(r),r.isSelected&&i.selected(!0)}function h(e,t,n){var i,r,a={areas:"area",markers:"marker"}[t],o=e.length;for(i=0;i<o;++i)e[i].proxy.type=a;if("marker"===a)for(i=0;i<o;++i)r=n.item(i),de(e[i].proxy,{text:r.text,value:r.value,values:r.values,url:r.url})}function p(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<xe&&e.size[1]/e.spaceSize[1]<xe?null:"hidden"})}function f(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<xe||e.size[1]/e.spaceSize[1]<xe?null:"hidden"})}function _(e,t,n){return e.attribute(t)||e[n]}function g(e,t){return void 0!==e?e:t}function m(e){var t=we[e.type],n=e.coordinates;return t||(t="number"==typeof n[0]?ge:"number"==typeof n[0][0]?_e:fe),t}function v(e,t,n,i){e[i].attr(t[i][n])}function y(e,t){return e.project(t)}function b(e,t){var n,i=[],r=i.length=t.length;for(n=0;n<r;++n)i[n]=e.project(t[n]);return i}function x(e,t){return[b(e,t)]}function S(e,t){var n,i=[],r=i.length=t.length;for(n=0;n<r;++n)i[n]=b(e,t[n]);return i}function w(e,t){var n,i=[],r=i.length=t.length;for(n=0;n<r;++n)i[n]=S(e,t[n]);return pe.apply([],i)}function k(e,t,n){var i=t.transform(n);e.root.attr({translateX:i[0],translateY:i[1]})}function C(e,t){var n,i,r=[],a=t.length,o=0;for(r.length=2*a,n=0;n<a;++n)i=e.transform(t[n]),r[o++]=i[0],r[o++]=i[1];return r}function T(e,t,n){var i,r=[],a=r.length=n.length;for(i=0;i<a;++i)r[i]=C(t,n[i]);e.root.attr({points:r})}function E(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),p(e)}function A(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),f(e)}function I(e,t,n){var i=P(e.settings,n);return t.text=t.text||n.text,O(e.grouping,t,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}function O(e,t,n){he(e,function(e,i){var r=M(i.callback(t,i.field),i.partition);r>=0&&(n[e]=i.values[r])})}function M(e,t){var n,i=0,r=t.length-1,a=-1;if(t[i]<=e&&e<=t[r])if(e===t[r])a=r-1;else{for(;r-i>1;)n=i+r>>1,e<t[n]?r=n:i=n;a=i}return a}function D(e,t,n,i){e.params.eventTrigger(i,{target:t.proxy,state:n})}function P(e,t){var n=de({},e,t);return n.label=de({},e.label,n.label),n.label.font=de({},e.label.font,n.label.font),n}function L(e,t,n){var i,r,a,o=P(n.theme("layer:"+e)||{label:{}},t);if(o.paletteSize>0){for(a=n.createDiscretePalette(o.palette,o.paletteSize),r=0,i=[];r<o.paletteSize;++r)i.push(a.getColor(r));o._colors=i}return o}function B(e,t){return e.attribute(t)}function V(e){var t=e.name,n=e.params.dataExchanger;he(e.grouping,function(e){n.set(t,e,null)}),e.grouping={}}function R(e,t,n){return n?e|=t:e&=~t,e}function F(e,t){return!!(e&t)}function z(e,t,n){var i={index:n,name:t,getElements:function(){return e.getProxies()},clearSelection:function(t){return e.clearSelection(t),i},getDataSource:function(){return e.getDataSource()}};return i}function H(e,t,n){var i={coordinates:function(){return t},attribute:function(e,t){return arguments.length>1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}function N(e){var t,n,i,r=e.length,a=e[r-1],o=0,s=0,l=0,c=1/0,u=-(1/0),d=1/0,h=-(1/0);for(t=0;t<r;++t)n=a,a=e[t],i=n[0]*a[1]-a[0]*n[1],l+=i,o+=(n[0]+a[0])*i,s+=(n[1]+a[1])*i,c=J(c,a[0]),u=ee(u,a[0]),d=J(d,a[1]),h=ee(h,a[1]);return{area:Z(l)/2,center:[2*o/3/l-(c+u)/2,2*s/3/l-(d+h)/2]}}function G(e){var t,n,i,r=e.length,a=e[0]||[],o=0,s=[0],l=a[0],c=a[0],u=a[1],d=a[1];for(t=1;t<r;++t)n=a,a=e[t],o+=te((n[0]-a[0])*(n[0]-a[0])+(n[1]-a[1])*(n[1]-a[1])),s[t]=o,l=J(l,a[0]),c=ee(c,a[0]),u=J(u,a[1]),d=ee(d,a[1]);return t=M(o/2,s),n=e[t],a=e[t+1],i=(o/2-s[t])/(s[t+1]-s[t]),r?[[n[0]*(1-i)+a[0]*i,n[1]*(1-i)+a[1]*i],[c-l,d-u],o]:[]}function j(e){var t,n,i,r=e.length,a=0;for(t=0;t<r;++t)n=N(e[t]),n.area>a&&(a=n.area,i=n);return i?[i.center,[te(i.area),te(i.area)]]:[[],[]]}function W(e){var t,n,i,r=e.length,a=0;for(t=0;t<r;++t)n=G(e[t]),n[2]>a&&(a=n[2],i=n);return i||[[],[]]}function U(e){var t=this,n=e.renderer;t._params=e,t._layers=[],t._layerByName={},t._rect=[0,0,0,0],t._clip=n.clipRect(),t._background=n.rect().attr({"class":"dxm-background"}).data(e.dataKey,{name:"background"}).append(n.root),t._container=n.g().attr({"class":"dxm-layers","clip-path":t._clip.id}).append(n.root).enableLinks(),t._subscribeToTracker(e.tracker,n,e.eventTrigger)}var Y=n(9),K=n(14).noop,$=n(11).extend,X=Number,q=String,Z=Math.abs,Q=Math.round,J=Math.min,ee=Math.max,te=Math.sqrt,ne=n(14),ie=n(152),re=ne.isFunction,ae=Array.isArray,oe=n(509),se=oe.parseScalar,le=oe.patchFontOptions,ce=oe.normalizeEnum,ue=K,de=$,he=Y.each,pe=Array.prototype.concat,fe="area",_e="line",ge="marker",me=0,ve=1,ye=2,be=[0,1,2,2],xe=1,Se={none:null,single:-1,multiple:NaN};r.prototype.count=function(){return 0},a.prototype={constructor:a,count:function(){return this.raw.length},item:function(e){return this.raw[e]},geometry:function(e){return{coordinates:e.coordinates}},attributes:function(e){return e.attributes}},o.prototype={constructor:o,count:function(){return this.raw.features.length},item:function(e){return this.raw.features[e]},geometry:function(e){return e.geometry},attributes:function(e){return e.properties}};var we={Point:ge,MultiPoint:_e,LineString:_e,MultiLineString:_e,Polygon:fe,MultiPolygon:fe},ke=function(e,t){var n,i=ce(e.type),r=ce(e.elementType),a=de({},Ce);return t.count()>0&&(n=t.geometry(t.item(0)),i=Te[i]?i:m(n),de(a,Te[i]),a.fullType=a.type=i,Ee[i]&&de(a,Ee[i](n)),Ae[i]&&(r=Ae[i][r]?r:Ae[i]._default,de(a,Ae[i][r]),a.elementType=r,a.fullType+=":"+r)),a},Ce={setup:ue,reset:ue,arrange:ue,updateGrouping:ue},Te={};Te[fe]={projectLabel:j,transform:T,transformLabel:E,draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:ue,getLabelOffset:function(e){return p(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=g(e.borderWidth,null),r=g(e.opacity,null);return{root:[{"class":"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:r},{"class":"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":g(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:g(e.hoveredOpacity,r)},{"class":"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":g(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:g(e.selectedOpacity,r)}]}},setState:function(e,t,n){v(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){Oe(e)}},Te[_e]={projectLabel:W,transform:T,transformLabel:A,draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:ue,getLabelOffset:function(e){return f(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=g(e.borderWidth,null),i=g(e.opacity,null);return{root:[{"class":"dxm-line",stroke:t,"stroke-width":n,opacity:i},{"class":"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":g(e.hoveredBorderWidth,n),opacity:g(e.hoveredOpacity,i)},{"class":"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":g(e.selectedBorderWidth,n),opacity:g(e.selectedOpacity,i)}]}},setState:function(e,t,n){v(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){Oe(e)}},Te[ge]={project:y,transform:k,draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:ue,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[Q((e.size[0]+ee(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{"class":"dxm-marker"},{"class":"dxm-marker dxm-marker-hovered"},{"class":"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){v(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){Oe(e),Me(e)}};var Ee={};Ee[fe]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?w:S}},Ee[_e]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?S:x}};var Ae={};Ae[ge]={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){t.dot.attr({filter:r.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?X(t.size):0,i=n,r=n+(t.selectedStep>0?X(t.selectedStep):0),a=i+(t.backStep>0?X(t.backStep):0),o=r+(t.backStep>0?X(t.backStep):0),s=t.color||null,l=t.borderColor||null,c=g(t.borderWidth,null),u=g(t.opacity,null),d=t.backColor||null,h=g(t.backOpacity,null);e.dot=[{r:n/2,stroke:l,"stroke-width":c,fill:s,opacity:u},{r:i/2,stroke:t.hoveredBorderColor||l,"stroke-width":g(t.hoveredBorderWidth,c),fill:t.hoveredColor||s,opacity:g(t.hoveredOpacity,u)},{r:r/2,stroke:t.selectedBorderColor||l,"stroke-width":g(t.selectedBorderWidth,c),fill:t.selectedColor||s,opacity:g(t.selectedOpacity,u)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:a/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:o/2,stroke:"none","stroke-width":0,fill:d,opacity:h}]},_setState:function(e,t,n){v(e,t,n,"dot"),v(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){t.bubble.attr({r:r.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,r=g(t.borderWidth,null),a=g(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":r,fill:n,opacity:a},{stroke:t.hoveredBorderColor||i,"stroke-width":g(t.hoveredBorderWidth,r),fill:t.hoveredColor||t.color,opacity:g(t.hoveredOpacity,a)},{stroke:t.selectedBorderColor||i,"stroke-width":g(t.selectedBorderWidth,r),fill:t.selectedColor||t.color,opacity:g(t.selectedOpacity,a)}]},_setState:function(e,t,n){v(e,t,n,"bubble")},arrange:function(e,t){var n,i,r,a,o,s=[],l=s.length=t.length,c=e.settings,u=c.dataField,d=c.minSize>0?X(c.minSize):0,h=c.maxSize>d?X(c.maxSize):d;if(!c.sizeGroups){for(n=0;n<l;++n)s[n]=ee(_(t[n].proxy,u,"value")||0,0);for(i=J.apply(null,s),r=ee.apply(null,s),a=r-i||1,o=h-d,n=0;n<l;++n)t[n]._settings.size=d+o*(s[n]-i)/a}},updateGrouping:function(e){var t=e.settings.dataField;Te[ge].updateGrouping(e),Me(e,function(e){return _(e,t,"value")})}},pie:{_draw:function(e,t,n){t.pie=e.renderer.g().append(t.root),t.border=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,r){var a,o=_(i,e.settings.dataField,"values")||[],s=o.length||0,l=r._colors,c=0,u=t.pie,d=e.renderer,h=e.dataKey,p=(r.size>0?X(r.size):0)/2,f=90,g=f;for(a=0;a<s;++a)c+=o[a]||0;for(a=0;a<s;++a)f=g,g+=(o[a]||0)/c*360,d.arc(0,0,0,p,f,g).attr({"stroke-linejoin":"round",fill:l[a]}).data(h,n).append(u);t.border.attr({r:p})},_getStyles:function(e,t){var n=g(t.opacity,null),i=t.borderColor||null,r=g(t.borderWidth,null);e.pie=[{opacity:n},{opacity:g(t.hoveredOpacity,n)},{opacity:g(t.selectedOpacity,n)}],e.border=[{stroke:i,"stroke-width":r},{stroke:t.hoveredBorderColor||i,"stroke-width":g(t.hoveredBorderWidth,r)},{stroke:t.selectedBorderColor||i,"stroke-width":g(t.selectedBorderWidth,r)}]},_setState:function(e,t,n){v(e,t,n,"pie"),v(e,t,n,"border")},arrange:function(e,t){var n,i,r,a=t.length,o=e.settings.dataField,s=0;for(n=0;n<a;++n)i=_(t[n].proxy,o,"values"),i&&i.length>s&&(s=i.length);if(s>0){for(i=[],r=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0}),n=0;n<s;++n)i.push(r.getNextColor());e.settings._colors=i,e.grouping.color={callback:ue,field:"",partition:[],values:[]},e.params.dataExchanger.set(e.name,"color",{partition:[],values:i})}}},image:{_draw:function(e,t,n){t.image=e.renderer.image().attr({location:"center"}).data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i){t.image.attr({href:_(i,e.settings.dataField,"url")})},_getStyles:function(e,t){var n=t.size>0?X(t.size):0,i=n+(t.hoveredStep>0?X(t.hoveredStep):0),r=n+(t.selectedStep>0?X(t.selectedStep):0),a=g(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:a},{x:-i/2,y:-i/2,width:i,height:i,opacity:g(t.hoveredOpacity,a)},{x:-r/2,y:-r/2,width:r,height:r,opacity:g(t.selectedOpacity,a)}]},_setState:function(e,t,n){v(e,t,n,"image")}}};var Ie=function(e,t,n,i,r){var a;i&&t&&t.length>1&&(a=r(t.length-1),e.grouping[n]={callback:re(i)?i:B,field:i,partition:t,values:a},e.params.dataExchanger.set(e.name,n,{partition:t,values:a}))},Oe=function(e){Ie(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,function(t){var n,i=e.params.themeManager.createDiscretePalette(e.settings.palette,t),r=[];for(n=0;n<t;++n)r.push(i.getColor(n));return r})},Me=function(e,t){var n=e.settings;Ie(e,n.sizeGroups,"size",t||n.sizeGroupingField,function(e){var t=n.minSize>0?X(n.minSize):0,i=n.maxSize>=t?X(n.maxSize):0,r=0,a=[];if(e>1)for(r=0;r<e;++r)a.push((t*(e-r-1)+i*r)/(e-1));else 1===e&&a.push((t+i)/2);return a})},De=function(e,t,n,i){var a=this;a._params=e,a._onProjection(),a.proxy=z(a,n,i),a._context={name:n,layer:a.proxy,renderer:e.renderer,projection:e.projection,params:e,dataKey:e.dataKey,str:Ce,hover:!1,selection:null,grouping:{},root:e.renderer.g().attr({"class":"dxm-layer"}).linkOn(t,n).linkAppend()},a._container=t,a._options={},a._handles=[],a._data=new r};De.prototype=de({constructor:De,_onProjection:function(){var e=this;e._removeHandlers=e._params.projection.on({engine:function(){e._project()},screen:function(){e._transform()},center:function(){e._transformCore()},zoom:function(){e._transform()}})},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){var e=this;e._data=l(e._dataSource&&e._dataSource.items()),e._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){var e=this;return e._disposeDataSource(),e._destroyHandles(),V(e._context),e._context.root.linkRemove().linkOff(),e._context.labelRoot&&e._context.labelRoot.linkRemove().linkOff(),e._context.str.reset(e._context),e._offProjection(),e._params=e._container=e._context=e.proxy=null,e},setOptions:function(e){var t,n=this;e=n._options=e||{},t=!("dataSource"in e)&&"data"in e?"data":"dataSource",t in e&&e[t]!==n._options_dataSource?(n._options_dataSource=e[t],n._params.notifyDirty(),n._specificDataSourceOption=c(e[t]),n._refreshDataSource()):n._data.count()>0&&(n._params.notifyDirty(),n._update(void 0!==e.type&&e.type!==n._context.str.type||void 0!==e.elementType&&e.elementType!==n._context.str.elementType))},_update:function(e){var t=this,n=t._context;e&&(n.str.reset(n),n.root.clear(),n.labelRoot&&n.labelRoot.clear(),t._params.tracker.reset(),t._destroyHandles(),n.str=ke(t._options,t._data),n.str.setup(n),t.proxy.type=n.str.type,t.proxy.elementType=n.str.elementType),n.settings=L(n.str.fullType,t._options,t._params.themeManager),n.hasSeparateLabel=!(!n.settings.label.enabled||!n.str.hasLabelsGroup),n.hover=!!se(n.settings.hoverEnabled,!0),n.selection&&he(n.selection.state,function(e,t){t&&t.resetSelected()}),n.selection=i(n.settings.selectionMode),n.hasSeparateLabel?n.labelRoot||(n.labelRoot=n.renderer.g().attr({"class":"dxm-layer-labels"}).linkOn(t._container,{name:n.name+"-labels",after:n.name}).linkAppend(),t._transformCore()):n.labelRoot&&(n.labelRoot.linkRemove().linkOff(),n.labelRoot=null),e&&t._createHandles(),V(n),n.str.arrange(n,t._handles),n.str.updateGrouping(n),t._updateHandles(),t._params.notifyReady()},_destroyHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].dispose();this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,t,n,i=this,r=i._handles=[],a=i._data,o=r.length=a.count(),s=i._context,l=a.geometry,c=a.attributes;for(e=0;e<o;++e)n=a.item(e),r[e]=new Pe(s,e,l(n),c(n));for(re(i._options.customize)&&(i._options._deprecated?d:u)(i.getProxies(),i._options.customize,i._params.widget),i._options._deprecated&&h(r,s.name,a),e=0;e<o;++e)t=r[e],t.project(),t.draw(),t.transform();s.selection&&he(s.selection.state,function(e,t){t&&t.restoreSelected()})},_updateHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].refresh();if(this._context.settings.label.enabled){for(e=0;e<n;++e)t[e].measureLabel();for(e=0;e<n;++e)t[e].adjustLabel()}},_transformCore:function(){var e=this._params.projection.getTransform();this._context.root.attr(e),this._context.labelRoot&&this._context.labelRoot.attr(e)},_project:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].project()},_transform:function(){var e,t=this._handles,n=t.length;for(this._transformCore(),e=0;e<n;++e)t[e].transform()},getProxies:function(){var e,t=this._handles,n=[],i=n.length=t.length;for(e=0;e<i;++e)n[e]=t[e].proxy;return n},getProxy:function(e){return this._handles[e].proxy},raiseClick:function(e,t){this._params.eventTrigger("click",{target:this._handles[e].proxy,jQueryEvent:t})},hoverItem:function(e,t){this._handles[e].setHovered(t)},selectItem:function(e,t,n){this._handles[e].setSelected(t,n)},clearSelection:function(){var e=this._context.selection;e&&(he(e.state,function(e,t){t&&t.setSelected(!1)}),e.state={})}},ie);var Pe=function(e,t,n,i){var r=this,a=r.proxy=H(r,n.coordinates,de({},i));r._ctx=e,r._index=t,r._fig=r._label=null,r._state=me,r._coordinates=n.coordinates,r._settings={label:{}},a.index=t,a.layer=e.layer,r._data={name:e.name,index:t}};Pe.prototype={constructor:Pe,dispose:function(){var e=this;return e._ctx=e.proxy=e._settings=e._fig=e._label=e.data=null,e},project:function(){var e=this._ctx;this._projection=e.str.project(e.projection,this._coordinates),e.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var e=this,t=this._ctx;t.str.draw(t,e._fig={},e._data),e._fig.root.append(t.root)},transform:function(){var e=this,t=e._ctx;t.str.transform(e._fig,t.projection,e._projection),t.hasSeparateLabel&&e._label&&e._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var e=this,t=e._ctx.str,n=I(e._ctx,e.proxy,e._settings);e._styles=t.getStyles(n),t.refresh(e._ctx,e._fig,e._data,e.proxy,n),e._refreshLabel(n),e._setState()},_refreshLabel:function(e){var t=this,n=t._ctx,i=e.label,r=t._label;n.settings.label.enabled?(r||(r=t._label={root:n.labelRoot||t._fig.root,text:n.renderer.text().attr({"class":"dxm-label"}),size:[0,0]},n.hasSeparateLabel&&(t._projectLabel(),t._transformLabel())),r.value=q(t.proxy.text||t.proxy.attribute(i.dataField)||""),r.value&&(r.text.attr({text:r.value,x:0,y:0}).css(le(i.font)).attr({align:"center",stroke:i.stroke,"stroke-width":i["stroke-width"],"stroke-opacity":i["stroke-opacity"]}).data(n.dataKey,t._data).append(r.root),r.settings=e)):r&&(r.text.remove(),t._label=null)},measureLabel:function(){var e,t=this._label;t.value&&(e=t.text.getBBox(),t.size=[e.width,e.height,-e.y-e.height/2])},adjustLabel:function(){var e,t=this._label;t.value&&(e=this._ctx.str.getLabelOffset(t,t.settings),t.settings=null,t.text.attr({x:e[0],y:e[1]+t.size[2]}))},update:function(e){var t=this;t._settings=P(t._settings,e),t._fig&&(t.refresh(),t._label&&t._label.value&&(t.measureLabel(),t.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,be[this._state])},_setForeground:function(){var e=this._fig.root;this._state?e.toForeground():e.toBackground()},setHovered:function(e){var t=this,n=F(t._state,ve),i=!!e;return t._ctx.hover&&n!==i&&(t._state=R(t._state,ve,i),t._setState(),t._setForeground(),D(t._ctx,t,i,"hoverChanged")),t},setSelected:function(e,t){var n,i=this,r=F(i._state,ye),a=!!e,o=i._ctx.selection;o&&r!==a&&(i._state=R(i._state,ye,a),n=o.state[o.single],o.state[o.single]=null,n&&n.setSelected(!1),o.state[o.single||i._index]=e?i:null,i._fig&&(i._setState(),i._setForeground(),t||D(i._ctx,i,a,"selectionChanged")))},isSelected:function(){return F(this._state,ye)},resetSelected:function(){this._state=R(this._state,ye,!1)},restoreSelected:function(){this._fig.root.toForeground()}},U.prototype={constructor:U,dispose:function(){var e=this;e._clip.dispose(),e._offTracker(),e._params=e._offTracker=e._layers=e._layerByName=e._clip=e._background=e._container=null},_subscribeToTracker:function(e,t,n){var i=this;i._offTracker=e.on({click:function(e){var r=t.getRootOffset(),a=i.byName(e.data.name);e.$event.x=e.x-r.left,e.$event.y=e.y-r.top,a?a.raiseClick(e.data.index,e.$event):"background"===e.data.name&&n("click",{jQueryEvent:e.$event})},"hover-on":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!0)},"hover-off":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!1)}})},setOptions:function(e){var t,n,i,r,a=e?e.length?e:[e]:[],o=this._layers,s=this._layerByName,l=this._params,c=this._container;for(i=a.length,r=o.length;i<r;++i)n=o[i],delete s[n.proxy.name],n.dispose();for(o.splice(a.length,o.length-a.length),i=o.length,r=a.length;i<r;++i)t=(a[i]||{}).name||"map-layer-"+i,n=o[i]=new De(l,c,t,i),s[t]=n;for(i=0,r=a.length;i<r;++i)t=a[i]&&a[i].name,n=o[i],t&&t!==n.proxy.name&&(delete s[n.proxy.name],n.dispose(),n=o[i]=new De(l,c,t,i),s[t]=n),n.setOptions(a[i])},_updateClip:function(){var e=this._rect,t=this._borderWidth;this._clip.attr({x:e[0]+t,y:e[1]+t,width:ee(e[2]-2*t,0),height:ee(e[3]-2*t,0)})},setBackgroundOptions:function(e){this._background.attr({stroke:e.borderColor,"stroke-width":e.borderWidth,fill:e.color}),this._borderWidth=ee(e.borderWidth,0),this._updateClip()},setRect:function(e){this._rect=e,this._background.attr({x:e[0],y:e[1],width:e[2],height:e[3]}),this._updateClip()},byIndex:function(e){return this._layers[e]},byName:function(e){return this._layerByName[e]},items:function(){return this._layers}},t.MapLayerCollection=U},function(e,t){function n(e){this._subscribeToTracker(e.tracker,e.tooltip,e.layerCollection)}var i=12;n.prototype={constructor:n,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e,t,n){this._offTracker=e.on({"focus-on":function(e){var r,a,o=!1;t.isEnabled()&&(r=n.byName(e.data.name),a=r&&r.getProxy(e.data.index),a&&t.show(a,{x:0,y:0,offset:0},{target:a})&&(t.move(e.x,e.y,i),o=!0)),e.done(o)},"focus-move":function(e){t.move(e.x,e.y,i)},"focus-off":function(){t.hide()}})}},t.TooltipViewer=n},function(e,t,n){function i(e,t){return s(o(e,+t),-t)}var r=n(615),a=r.projection,o=Math.min,s=Math.max,l=Math.sin,c=Math.asin,u=Math.tan,d=Math.atan,h=Math.exp,p=Math.log,f=Math.PI,_=f/4,g=180,m=90,v=f/180,y=(2*d(h(f))-f/2)/v,b=(2.5*d(h(.8*f))-.625*f)/v;a.add("mercator",a({aspectRatio:1,to:function(e){return[e[0]/g,p(u(_+i(e[1],y)*v/2))/f]},from:function(e){return[e[0]*g,(2*d(h(e[1]*f))-f/2)/v]}})),a.add("equirectangular",a({aspectRatio:2,to:function(e){return[e[0]/g,e[1]/m]},from:function(e){return[e[0]*g,e[1]*m]}})),a.add("lambert",a({aspectRatio:2,to:function(e){return[e[0]/g,l(i(e[1],m)*v)]},from:function(e){return[e[0]*g,c(i(e[1],1))/v]}})),a.add("miller",a({aspectRatio:1,to:function(e){return[e[0]/g,1.25*p(u(_+i(e[1],b)*v*.4))/f]},from:function(e){return[e[0]*g,(2.5*d(h(.8*e[1]*f))-.625*f)/v]}})),t.projection=a},function(e,t,n){e.exports=n(628)},function(e,t,n){var i=n(629),r=n(14),a=n(523),o=n(525),s=1,l=50,c=4,u=250,d=30,h=5,p=3,f={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},_=Math,g=_.abs,m=_.round,v=_.max,y=_.min,b=isFinite,x=n(509),S=x.map,w=x.normalizeEnum,k=r.isDefined,C=Number,T=String,E=i.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_widgetType:"sparkline",_defaultSize:{width:u,height:d,left:h,right:h,top:p,bottom:p},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){var e=this;e._series&&e._series.dispose(),e._series=e._seriesGroup=e._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn());
},_prepareOptions:function(){var e=this;e._allOptions=e.callBase(),e._allOptions.type=w(e._allOptions.type),f[e._allOptions.type]||(e._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({"class":"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({"class":"dxsl-series-labels"})},_createSeries:function(){this._series=new o.Series({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis},{widgetType:"chart",type:"line"})},_updateSeries:function(){var e,t,n=this,i=n._series;n._prepareDataSource(),t=n._prepareSeriesOptions(),i.updateOptions(t),e={groups:[{series:[i]}]},e.argumentOptions={type:"bar"===t.type?"discrete":void 0},n._simpleDataSource=a.validateData(n._simpleDataSource,e,n._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[i.getArgumentField()],i.updateData(n._simpleDataSource),n._groupsDataCategories=e.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_parseNumericDataSource:function(e,t,n){var i=this.option("ignoreEmptyPoints");return S(e,function(e,r){var a,o,s=null;return void 0!==e&&(s={},a=b(e),s[t]=a?T(r):e[t],o=a?e:e[n],s[n]=null===o?i?void 0:o:C(o),s=void 0!==s[t]&&void 0!==s[n]?s:null),s})},_parseWinlossDataSource:function(e,t,n){var i=-1,r=0,a=1,o=1e-4,s=this._allOptions.winlossThreshold;return S(e,function(e){var l={};return l[t]=e[t],g(e[n]-s)<o?l[n]=r:e[n]>s?l[n]=a:l[n]=i,l})},_prepareDataSource:function(){var e=this,t=e._allOptions,n=t.argumentField,i=t.valueField,r=e._dataSourceItems()||[],a=e._parseNumericDataSource(r,n,i);"winloss"===t.type?(e._winlossDataSource=a,e._simpleDataSource=e._parseWinlossDataSource(a,n,i)):e._simpleDataSource=a},_prepareSeriesOptions:function(){var e=this,t=e._allOptions,n="winloss"===t.type?"bar":t.type;return{visible:!0,argumentField:t.argumentField,valueField:t.valueField,color:t.lineColor,width:t.lineWidth,widgetType:"chart",type:n,opacity:n.indexOf("area")!==-1?e._allOptions.areaOpacity:void 0,customizePoint:e._getCustomizeFunction(),point:{size:t.pointSize,symbol:t.pointSymbol,border:{visible:!0,width:2},color:t.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:t.lineColor,width:t.lineWidth,visible:"bar"!==n}}},_createBarCustomizeFunction:function(e){var t=this,n=t._allOptions,i=t._winlossDataSource;return function(){var t,r=this.index,a="winloss"===n.type,o=a?n.winlossThreshold:0,s=a?i[r][n.valueField]:this.value,l=a?n.winColor:n.barPositiveColor,c=a?n.lossColor:n.barNegativeColor;return t=s>=o?l:c,r!==e.first&&r!==e.last||(t=n.firstLastColor),r===e.min&&(t=n.minColor),r===e.max&&(t=n.maxColor),{color:t}}},_createLineCustomizeFunction:function(e){var t=this,n=t._allOptions;return function(){var t,i=this.index;return i!==e.first&&i!==e.last||(t=n.firstLastColor),i===e.min&&(t=n.minColor),i===e.max&&(t=n.maxColor),t?{visible:!0,border:{color:t}}:{}}},_getCustomizeFunction:function(){var e,t=this,n=t._allOptions,i=t._winlossDataSource||t._simpleDataSource,r=t._getExtremumPointsIndexes(i);return e="winloss"===n.type||"bar"===n.type?t._createBarCustomizeFunction(r):t._createLineCustomizeFunction(r)},_getExtremumPointsIndexes:function(e){var t=this,n=t._allOptions,i=e.length-1,r={};return t._minMaxIndexes=t._findMinMax(e),n.showFirstLast&&(r.first=0,r.last=i),n.showMinMax&&(r.min=t._minMaxIndexes.minIndex,r.max=t._minMaxIndexes.maxIndex),r},_findMinMax:function(e){var t,n,i=this,r=i._allOptions.valueField,a=e[0]||{},o=a[r]||0,s=o,l=o,c=0,u=0,d=e.length;for(n=1;n<d;n++)t=e[n][r],t<s&&(s=t,c=n),t>l&&(l=t,u=n);return{minIndex:c,maxIndex:u}},_updateRange:function(){var e,t,n=this,i=n._series,r=i.type,a="bar"===r,o="winloss"===r,s=.15,l=.1,c=1,u=-1,d=i.getRangeData(),h=n._allOptions.minValue,p=k(h)&&b(h),f=n._allOptions.maxValue,_=k(f)&&b(f);e=(d.val.max-d.val.min)*s,a||o||"area"===r?(0!==d.val.min&&(d.val.min-=e),0!==d.val.max&&(d.val.max+=e)):(d.val.min-=e,d.val.max+=e),(p||_)&&(p&&_?(d.val.minVisible=y(h,f),d.val.maxVisible=v(h,f)):(d.val.minVisible=p?C(h):void 0,d.val.maxVisible=_?C(f):void 0),o&&(d.val.minVisible=p?v(d.val.minVisible,u):void 0,d.val.maxVisible=_?y(d.val.maxVisible,c):void 0)),i.getPoints().length>1&&(a?(t=(d.arg.max-d.arg.min)*l,d.arg.min=d.arg.min-t,d.arg.max=d.arg.max+t):d.arg.stick=!0),d.arg.categories=n._groupsDataCategories,n._ranges=d},_getBarWidth:function(e){var t=this,n=t._canvas,i=e*c,r=n.width-n.left-n.right-i,a=m(r/e);return a<s&&(a=s),a>l&&(a=l),a},_correctPoints:function(){var e,t,n=this,i=n._allOptions.type,r=n._series.getPoints(),a=r.length;if("bar"===i||"winloss"===i)for(e=n._getBarWidth(a),t=0;t<a;t++)r[t].correctCoordinates({width:e,offset:0})},_drawSeries:function(){var e=this;e._simpleDataSource.length>0&&(e._correctPoints(),e._series.draw(),e._seriesGroup.append(e._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._tooltip;if(0===n.length)return{};var r=e._minMaxIndexes,a=t.valueField,o=n[0][a],s=n[n.length-1][a],l=n[r.minIndex][a],c=n[r.maxIndex][a],u=i.formatValue(o),d=i.formatValue(s),h=i.formatValue(l),p=i.formatValue(c),f={firstValue:u,lastValue:d,minValue:h,maxValue:p,originalFirstValue:o,originalLastValue:s,originalMinValue:l,originalMaxValue:c,valueText:["Start:",u,"End:",d,"Min:",h,"Max:",p]};return"winloss"===t.type&&(f.originalThresholdValue=t.winlossThreshold,f.thresholdValue=i.formatValue(t.winlossThreshold)),f}});S(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],function(e){E.prototype._optionChangesMap[e]="OPTIONS"}),n(57)("dxSparkline",E),e.exports=E,E.addPlugin(n(561).plugin)},function(e,t,n){function i(e,t){var n=e.lineSpacing,i=(void 0!==n&&null!==n?n:u)+e.size;return function(e){for(var n="",r=e.valueText,a=0;a<r.length;a+=2)n+="<tr><td>"+r[a]+"</td><td style='width: 15px'></td><td style='text-align: "+(t?"left":"right")+"'>"+r[a+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+n+"</table>"}}}function r(e,t,n){var r=i(t,n);return s.isFunction(e)?function(t){var n=e.call(t,t);return"html"in n||"text"in n||v(n,r.call(t,t)),n}:r}function a(e){var t=new g.Translator2D({},{},{isHorizontal:!!e});return{getTranslator:function(){return t},update:function(e,n){t.update(e,n)},getViewport:function(){}}}var o=n(9),s=n(14),l=n(515),c=n(11).extend,u=2,d=200,h=1e3,p=n(71),f=n(85),_=n(550),g=n(571),m=Math.abs,v=c,y=s.noop,b=l.inherit({_setDeprecatedOptions:function(){this.callBase(),v(this._deprecatedOptions,{"tooltip.verticalAlignment":{since:"15.1",message:"Now tooltips are aligned automatically"},"tooltip.horizontalAlignment":{since:"15.1",message:"Now tooltips are aligned automatically"}})},_getLayoutItems:y,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){var e=this;e._tooltipTracker=e._renderer.root,e._tooltipTracker.attr({"pointer-events":"visible"}),e._createHtmlElements(),e._initTooltipEvents(),e._argumentAxis=a(!0),e._valueAxis=a()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){var e=this;e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide()),e._cleanWidgetElements(),e._updateWidgetElements(),e._drawWidgetElements()},_updateWidgetElements:function(){this._updateRange(),this._argumentAxis.update(this._ranges.arg,this._canvas),this._valueAxis.update(this._ranges.val,this._canvas)},_applySize:function(e){this._allOptions.size={width:e[2]-e[0],height:e[3]-e[1]},this._change(["UPDATE"])},_setupResizeHandler:y,_prepareOptions:function(){return v(!0,{},this._themeManager.theme(),this.option())},_createThemeManager:function(){var e=new _.BaseThemeManager;return e._themeSection=this._widgetType,e._fontFields=["tooltip.font"],e},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset();return{x:e.width/2+t.left,y:e.height/2+t.top}},_initTooltipEvents:function(){var e=this,t={widget:e};e._showTooltipCallback=function(){var t;e._showTooltipTimeout=null,e._tooltipShown||(e._tooltipShown=!0,t=e._getTooltip(),t.isEnabled()&&e._tooltip.show(e._getTooltipData(),e._getTooltipCoords(),{}))},e._hideTooltipCallback=function(){e._hideTooltipTimeout=null,e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide())},e._disposeCallbacks=function(){e=e._showTooltipCallback=e._hideTooltipCallback=e._disposeCallbacks=null},e._tooltipTracker.on(S,t).on(O,t).on(w,t),e._tooltipTracker.on(x)},_disposeTooltipEvents:function(){var e=this;clearTimeout(e._showTooltipTimeout),clearTimeout(e._hideTooltipTimeout),e._tooltipTracker.off(),e._disposeCallbacks()},_getTooltip:function(){var e=this;return e._tooltip||(M.apply(this,arguments),e._setTooltipRendererOptions(e._tooltipRendererOptions),e._tooltipRendererOptions=null,e._setTooltipOptions()),e._tooltip}}),x={"contextmenu.sparkline-tooltip":function(e){(p.isTouchEvent(e)||p.isPointerEvent(e))&&e.preventDefault()},"MSHoldVisual.sparkline-tooltip":function(e){e.preventDefault()}},S={"mouseover.sparkline-tooltip":function(e){I=!1;var t=e.data.widget;t._x=e.pageX,t._y=e.pageY,t._tooltipTracker.off(k).on(k,e.data),t._showTooltip(d)},"mouseout.sparkline-tooltip":function(e){if(!I){var t=e.data.widget;t._tooltipTracker.off(k),t._hideTooltip(d)}}},w={};w[f.name+".sparkline-tooltip"]=function(e){e.data.widget._hideTooltip()};var k={"mousemove.sparkline-tooltip":function(e){var t=e.data.widget;t._showTooltipTimeout&&(m(t._x-e.pageX)>3||m(t._y-e.pageY)>3)&&(t._x=e.pageX,t._y=e.pageY,t._showTooltip(d))}},C=null,T=function(e){e.preventDefault();var t=C;t&&t!==e.data.widget&&t._hideTooltip(d),t=C=e.data.widget,t._showTooltip(h),t._touch=!0},E=function(){var e=C;e&&(e._touch||(e._hideTooltip(d),C=null),e._touch=null)},A=function(){var e=C;e&&e._showTooltipTimeout&&(e._hideTooltip(d),C=null)},I=!1,O={"pointerdown.sparkline-tooltip":T,"touchstart.sparkline-tooltip":T};o(document).on({"pointerdown.sparkline-tooltip":function(){I=!0,E()},"touchstart.sparkline-tooltip":E,"pointerup.sparkline-tooltip":A,"touchend.sparkline-tooltip":A}),e.exports=b,b.addPlugin(n(559).plugin);var M=b.prototype._initTooltip;b.prototype._initTooltip=y;var D=b.prototype._disposeTooltip;b.prototype._disposeTooltip=function(){this._tooltip&&D.apply(this,arguments)},b.prototype._setTooltipRendererOptions=function(){var e=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(e):this._tooltipRendererOptions=e},b.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(v({},t,{customizeTooltip:r(t.customizeTooltip,t.font,this.option("rtlEnabled")),enabled:t.enabled&&this._isTooltipEnabled()}))},b.prototype._showTooltip=function(e){var t=this;clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=null,clearTimeout(t._showTooltipTimeout),t._showTooltipTimeout=setTimeout(t._showTooltipCallback,e)},b.prototype._hideTooltip=function(e){var t=this;clearTimeout(t._showTooltipTimeout),t._showTooltipTimeout=null,clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()};var P=c(!0,{},n(511).plugin,{init:y,dispose:y,customize:null,members:{_getExportMenuOptions:null}});b.addPlugin(P)},function(e,t,n){e.exports=n(631)},function(e,t,n){var i=n(9),r=n(629),a=.02,o=.98,s=.1,l=.9,c=300,u=30,d=1,h=2,p=Number,f=isFinite,_=r.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_widgetType:"bullet",_defaultSize:{width:c,height:u,left:d,right:d,top:h,bottom:h},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var e=this._renderer;this._zeroLevelPath=e.path(void 0,"line").attr({"class":"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=e.path(void 0,"line").attr({"class":"dxb-target","stroke-linecap":"square"}),this._barValuePath=e.path(void 0,"line").attr({"class":"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var e,t,n,i,r,a,o,s,l=this;l._allOptions=e=l.callBase(),o=void 0===l._allOptions.value,s=void 0===l._allOptions.target,l._tooltipEnabled=!(o&&s),o&&(l._allOptions.value=0),s&&(l._allOptions.target=0),e.value=r=p(e.value),e.target=a=p(e.target),void 0===l._allOptions.startScaleValue&&(l._allOptions.startScaleValue=a<r?a:r,l._allOptions.startScaleValue=l._allOptions.startScaleValue<0?l._allOptions.startScaleValue:0),void 0===l._allOptions.endScaleValue&&(l._allOptions.endScaleValue=a>r?a:r),e.startScaleValue=t=p(e.startScaleValue),e.endScaleValue=n=p(e.endScaleValue),n<t&&(i=n,l._allOptions.endScaleValue=t,l._allOptions.startScaleValue=i,l._allOptions.inverted=!0)},_updateRange:function(){var e=this,t=e._allOptions;e._ranges={arg:{invert:t.inverted,min:t.startScaleValue,max:t.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var e=this,t=e._allOptions,n=t.startScaleValue!==t.endScaleValue,i=f(t.startScaleValue),r=f(t.endScaleValue),a=f(t.value),o=f(t.target);n&&r&&i&&o&&a&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var e=this,t=e._allOptions,n=e._valueAxis.getTranslator(),i=e._argumentAxis.getTranslator().translate(t.target);return{points:[i,n.translate(a),i,n.translate(o)],stroke:t.targetColor,"stroke-width":t.targetWidth}},_getBarValueParams:function(){var e,t,n=this,i=n._allOptions,r=n._argumentAxis.getTranslator(),a=n._valueAxis.getTranslator(),o=i.startScaleValue,c=i.endScaleValue,u=i.value,d=a.translate(s),h=a.translate(l);return u>0?(e=o<=0?0:o,t=u>=c?c:u<e?e:u):(e=c>=0?0:c,t=u<o?o:u>e?e:u),e=r.translate(e),t=r.translate(t),{points:[e,h,t,h,t,d,e,d],fill:i.color}},_getZeroLevelParams:function(){var e=this,t=e._valueAxis.getTranslator(),n=e._argumentAxis.getTranslator().translate(0);return{points:[n,t.translate(a),n,t.translate(o)],stroke:e._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var e=this,t=e._allOptions;0>t.endScaleValue||0<t.startScaleValue||!t.showZeroLevel||e._zeroLevelPath.attr(e._getZeroLevelParams()).sharp().append(e._renderer.root)},_drawTarget:function(){var e=this,t=e._allOptions,n=t.target;n>t.endScaleValue||n<t.startScaleValue||!t.showTarget||e._targetPath.attr(e._getTargetParams()).sharp().append(e._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset(),n=this._barValuePath.getBBox();return{x:n.x+n.width/2+t.left,y:e.height/2+t.top}},_getTooltipData:function(){var e=this,t=e._tooltip,n=e._allOptions,i=n.value,r=n.target,a=t.formatValue(i),o=t.formatValue(r);return{originalValue:i,originalTarget:r,value:a,target:o,valueText:["Actual Value:",a,"Target Value:",o]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});i.each(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],function(e,t){_.prototype._optionChangesMap[t]="OPTIONS"}),n(57)("dxBullet",_),e.exports=_},function(e,t,n){e.exports=n(633)},function(e,t,n){var i=e.exports=n(634);n(639),n(642),n(643),n(644),n(641),n(645),n(646),n(647),n(648),n(650),n(651),n(652),n(653),n(654),i.addPlugin(n(511).plugin),i.addPlugin(n(558).plugin),i.addPlugin(n(560).plugin)},function(e,t,n){function i(e){return e>0?Math.round(e):0}function r(e,t,n,i){var a,o,s,l,c=[],u=i.nodes,d=t.length,h=0;for(o=0;o<d;++o)s=t[o],a=new y,a._id=u.length,a.ctx=i.ctx,a.parent=e,a.level=n,a.index=c.length,a.data=s,i.buildNode(a),u.push(a),c.push(a),l=s[i.itemsField],l&&l.length&&r(a,l,n+1,i),s[i.valueField]>0&&(a.value=Number(s[i.valueField])),h+=a.value;e.nodes=c,e.value=h}function a(e,t,n){var i,r,o=t.nodes,s=o.length;for(r=0;r<s;++r)i=o[r],n(e,i),i.isNode()&&a(e,i,n)}function o(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||I[Number(t.isNode())](e,t),t.applyState()}function s(e,t){var n=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,n),n}function l(e,t){var n=e.renderer.simpleRect().append(e.group),i=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,i),{outer:n,inner:i}}function c(e,t){t.updateLabelStyle(),t.labelState.visible&&u(e,t,t.labelState,t.labelParams)}function u(e,t,n,i){var r=t.data[e.labelField];t.label=r?String(r):null,r=t.customLabel||t.label,r&&(t.text=e.renderer.text(r).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text),t.textWidth=i.unitWidth*r.length)}function d(e,t){var n,i=t.nodes,r=[],a=[],o=0,s=r.length=a.length=i.length;for(n=0;n<s;++n)o+=i[n].value,r[n]={value:i[n].value,i:n};for(o>0&&e.algorithm({items:r.slice(),sum:o,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n<s;++n)a[n]=r[n].rect||O;t.rects=a}function h(e,t){var n,i=t.parent.rects[t.index],r=e.rectOffsets;t.isNode()?(_(t.tile.outer,f(i,t.parent.innerRect,r.headerEdge,r.headerInner)),i=p(i,e.groupPadding),n=Math.min(e.headerHeight,i[3]-i[1]),t.rect=[i[0],i[1],i[2],i[1]+n],_(t.tile.inner,p(t.rect,r.headerEdge)),i[1]+=n,t.innerRect=i,d(e,t)):(t.rect=i,_(t.tile,f(i,t.parent.innerRect,r.tileEdge,r.tileInner)))}function p(e,t){return[e[0]+t,e[1]+t,e[2]-t,e[3]-t]}function f(e,t,n,i){return[e[0]+(e[0]===t[0]?n:+i),e[1]+(e[1]===t[1]?n:+i),e[2]-(e[2]===t[2]?n:-i),e[3]-(e[3]===t[3]?n:-i)]}function _(e,t){e.attr({x:t[0],y:t[1],width:T(t[2]-t[0],0),height:T(t[3]-t[1],0)})}function g(e,t){t.text&&t.labelState.visible&&m(t,t.labelParams)}function m(e,t){var n=e.rect,i=t.hOffset,r=n[2]-n[0]-t.paddingLeftRight,a=t.height+t.paddingTopBottom<n[3]-n[1],o=e.textWidth<r;"ellipsis"===t.resolveLabelOverflow&&a&&(e.text.applyEllipsis(r),o||(o=e.text.getBBox().width<r)),e.text.attr({x:t.rtlEnabled?n[2]-i:n[0]+i,y:n[1]+t.vOffset,visibility:a&&o?"visible":"hidden"})}var v=n(635),y=n(636),b=n(637).getAlgorithm,x=n(638).getColorizer,S=n(509).patchFontOptions,w=v.buildRectAppearance,k=v.buildTextAppearance,C=n(14).noop,T=Math.max,E={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};n(639),n(637).setDefaultAlgorithm("squarified"),n(641),n(638).setDefaultColorizer("discrete");var A=n(515).inherit({_handlers:{beginBuildNodes:C,buildNode:C,endBuildNodes:C,setTrackerData:C,calculateState:function(e){return w(e)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_createThemeManager:function(){return new M},_init:function(){var e=this;e._rectOffsets={},e._handlers=Object.create(e._handlers),e._context={suspend:function(){e._applyingChanges||e._suspendChanges()},resume:function(){e._applyingChanges||e._resumeChanges()},change:function(t){e._change(t)},settings:[{},{}],calculateState:e._handlers.calculateState,calculateLabelState:k},e._root=e._topNode={nodes:[]},e.callBase.apply(e,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var e=this,t=e._renderer;e._createProxyType(),e._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),e._labelsGroup=t.g().attr({align:"left"}).linkOn(t.root,"labels").linkAppend()},_createProxyType:C,_disposeCore:function(){var e=this;e._filter&&e._filter.dispose(),e._labelsGroup.linkOff(),e._tilesGroup.linkOff()},_applySize:function(e){this._tilingRect=e.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING",resolveLabelOverflow:"LABEL_OVERFLOW"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){var e=this;e._isDataExpected=e._isSyncData=!0,e._updateDataSource(),e._isSyncData=!1,e._isDataExpected&&e._suspendChanges()},_dataSourceChangedHandler:function(){var e=this;e._isDataExpected?(e._isDataExpected=!1,e._change(["NODES_CREATE"]),e._isSyncData||e._resumeChanges()):e._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH","LABEL_OVERFLOW"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_LABEL_OVERFLOW:function(){this._changeTileSettings(),this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var e=this;e.callBase.apply(e,arguments),e._isDataExpected||e._drawn(),e._context.forceReset=!1},_buildNodes:function(){var e,t=this,n=t._root=t._topNode=new y;n._id=0,n.parent={},n.data={},n.level=n.index=-1,n.ctx=t._context,n.label=null,t._nodes=[n],t._handlers.beginBuildNodes(),e=t._processDataSourceItems(t._dataSourceItems()||[]),r(n,e.items,0,{itemsField:!e.isPlain&&t._getOption("childrenField",!0)||"items",valueField:t._getOption("valueField",!0)||"value",buildNode:t._handlers.buildNode,ctx:t._context,nodes:t._nodes}),t._onNodesCreated(),t._handlers.endBuildNodes(),t._change(["NODES_RESET"])},_onNodesCreated:v.empty,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,r=i(t.border.width),a=r/2,o=1&r?.5:0,s=t.label,l=e._context.settings[0];e._change(["TILES","LABELS"]),l.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(s.shadow),e._calculateLabelSettings(l,s,e._filter.id),n.tileEdge===a&&n.tileInner===o||(n.tileEdge=a,n.tileInner=o,e._change(["TILING"]))},_changeGroupSettings:function(){var e=this,t=e._getOption("group"),n=t.label,r=e._rectOffsets,a=i(t.border.width),o=a/2,s=1&a?.5:0,l=0,c=i(t.padding),u=e._context.settings[1];e._change(["TILES","LABELS"]),u.state=e._handlers.calculateState(t),e._calculateLabelSettings(u,n),l=t.headerHeight>=0?i(t.headerHeight):u.labelParams.height+2*i(n.paddingTopBottom),e._headerHeight!==l&&(e._headerHeight=l,e._change(["TILING"])),e._groupPadding!==c&&(e._groupPadding=c,e._change(["TILING"])),r.headerEdge===o&&r.headerInner===s||(r.headerEdge=o,r.headerInner=s,e._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var r=this._getTextBBox(t.font),a=i(t.paddingLeftRight),o=i(t.paddingTopBottom);e.labelState=k(t,n),e.labelState.visible=!("visible"in t&&!t.visible),e.labelParams={unitWidth:r.width,height:r.height,hOffset:a,vOffset:-r.y+o,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:o,paddingLeftRight:a,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0)}},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){a(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=x(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},o)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},c),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:b(e._getOption("layoutAlgorithm",!0)),directions:E[String(e._getOption("layoutDirection",!0)).toLowerCase()]||E.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,d(t,e._topNode),e._processNodes(t,h),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:v.empty,_performLabelsLayout:function(){this._processNodes(null,g)},_getTextBBox:function(e){var t,n=this._renderer,i=this._textForCalculations||n.text("0",0,0);return this._textForCalculations=i,i.css(S(e)).append(n.root),t=i.getBBox(),i.remove(),t}}),I=[s,l],O=[0,0,0,0],M=n(550).BaseThemeManager.inherit({_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font","loadingIndicator.font","title.font","title.subtitle.font","tooltip.font"]});n(57)("dxTreeMap",A),e.exports=A,A.addPlugin(n(561).plugin)},function(e,t,n){function i(){}function r(){function e(){var e,n=t.length;for(e=0;e<n;++e)t[e].apply(this,arguments)}var t=[];return e.add=function(e){t.push(e)},e}var a=n(509).patchFontOptions;t.empty=i,t.expand=function(e,t,n){var a=e[t];a.add?a.add(n):a===i?a=n:(a=r(),a.add(e[t]),a.add(n)),e[t]=a},t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:e["stroke-width"]?{stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"],filter:t}:{},css:a(e.font)}}},function(e,t,n){function i(){}function r(e,t){e.smartAttr(t)}function a(e,t){e.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),e.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}var o=n(11).extend;o(i.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var e=this.ctx;return this.level>=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=o({},e);return t?o(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){s[Number(this.isNode())](this.tile,this._getState())}});var s=[r,a];e.exports=i},function(e,t,n){var i,r=n(14).isFunction,a=n(509).normalizeEnum,o=Math.round,s={};t.getAlgorithm=function(e){return s[a(e)]||r(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={};l[-1]=[2,0],l[1]=[0,2];var c=function(e){return e[2]-e[0]<e[3]-e[1]?0:1};t.getStaticSideIndex=c,t.buildSidesData=function(e,t,n){var i=void 0!==n?n:c(e),r=1-i,a=t[i],o=t[r],s=l[a],u=l[o];return{staticSide:e[2+i]-e[i],variedSide:e[2+r]-e[r],static1:i+s[0],static2:i+s[1],varied1:r+u[0],varied2:r+u[1],staticDir:a,variedDir:o}},t.calculateRectangles=function(e,t,n,i,r){var a,s,l,c,u=[0,0,0,0],d=i.static1,h=i.static2,p=n[d],f=i.staticDir,_=i.staticSide,g=r.sum;for(u[i.varied1]=n[i.varied1],u[i.varied2]=n[i.varied1]+i.variedDir*r.side,a=t,s=t+r.count;a<s;++a)l=u.slice(),l[d]=p,c=o(_*e[a].value/g)||0,g-=e[a].value,_-=c,p+=f*c,l[h]=p,e[a].rect=l;n[i.varied1]=u[i.varied2]}},function(e,t,n){function i(e){return function(t){return t.isNode()?void 0:e(t)}}function r(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function a(e){return e.value}function o(e){return function(t){return Number(t.data[e])}}var s,l=n(509).normalizeEnum,c=n(14).noop,u={};t.getColorizer=function(e,t,n){var a=l(e.type||s),o=u[a]&&u[a](e,t,n);return o?(e.colorizeGroups?r:i)(o):c},t.addColorizer=function(e,t){u[e]=t},t.setDefaultColorizer=function(e){s=e},t.createColorCodeGetter=function(e){return e.colorCodeField?o(e.colorCodeField):a}},function(e,t,n){function i(e,t){return a(e,t)}function r(e){return o(e,i,!1)}var a=Math.max,o=n(640);n(637).addAlgorithm("squarified",r),e.exports=r},function(e,t,n){function i(e,t){return t.value-e.value}function r(e){return l(e,1/e)}function a(e,t,n){var i,a,o,s,l,u=1/0,d=0,h=e.length,p=n.areaToValue/n.staticSide;for(o=t;o<h;){for(a=d+e[o].value,l=n.staticSide/p/a,i=0,s=t;s<=o;++s)i=n.accumulate(i,r(l*e[s].value/a),s-t+1);if(!(i<u))break;u=i,d=a,++o}return{sum:d,count:o-t,side:c(p*d)}}function o(e){return(e[2]-e[0])*(e[3]-e[1])}function s(e,t,n){var i=u.buildSidesData(n.rect,n.directions,n.staticSideIndex),r=o(n.rect),s=r>0?a(e,t,{areaToValue:r/n.sum,accumulate:n.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:e.length-t};return u.calculateRectangles(e,t,n.rect,i,s),n.sum-=s.sum,t+s.count}var l=Math.max,c=Math.round,u=n(637);e.exports=function(e,t,n){var r,a=e.items,o=a.length,l={sum:e.sum,rect:e.rect,directions:e.directions,accumulate:t};for(n&&(l.staticSideIndex=u.getStaticSideIndex(l.rect)),a.sort(i),r=0;r<o;)r=s(a,r,l)}},function(e,t,n){function i(e,t,n){var i=t.createPalette(e.palette,{useHighlight:!0});return(e.colorizeGroups?s:a)(i,n)}function r(e,t,n){var i;for(i=t.length;i<n;++i)t.push(e.getNextColor())}function a(e){var t=[];return r(e,t,4),function(n){return n.index>=t.length&&r(e,t,2*t.length),t[n.index]}}function o(e,t){var n,i,r={},a=t.nodes.slice(),o=a.length;for(n=0;n<o;++n)i=a[n],i.isNode()?(a=a.concat(i.nodes),o=a.length):r[i.parent._id]||(r[i.parent._id]=e.getNextColor());return r}function s(e,t){var n=o(e,t);return function(e){return n[e._id]}}n(638).addColorizer("discrete",i),e.exports=i},function(e,t,n){function i(e,t,n){return((n-1)*e+t)/n}function r(e){return a(e,i,!0)}var a=n(640);n(637).addAlgorithm("strip",r),e.exports=r},function(e,t,n){function i(e){var t=e.items,n=r.buildSidesData(e.rect,e.directions,e.isRotated?1:0);r.calculateRectangles(t,0,e.rect,n,{sum:e.sum,count:t.length,side:n.variedSide})}var r=n(637);r.addAlgorithm("sliceanddice",i),e.exports=i},function(e,t,n){function i(e){return e.isRotated=!e.isRotated,a.call(this,e)}var r=n(637),a=r.getAlgorithm("sliceanddice");r.addAlgorithm("rotatedsliceanddice",i)},function(e,t,n){function i(e,t){return function(n){return e(n,t)}}function r(e){return[Number(e[0])||0,e[1]-e[0]||1]}function a(e,t){var n,i,a=e.length,o=[];for(n=0;n<a;++n)i=t(e[n]),isFinite(i)&&o.push(i);return r([c.apply(null,o),u.apply(null,o)])}function o(e,t){var n={};return function(i){var r=i.parent;return e(i,n[r._id]||(n[r._id]=a(r.nodes,t)))}}function s(e,t){function n(e,t){return a.getColor((s(e)-t[0])/t[1])}var a=t.createGradientPalette(e.palette),s=l(e);return"range"in e?i(n,r(e.range||[])):o(n,s)}var l=n(638).createColorCodeGetter,c=Math.min,u=Math.max;n(638).addColorizer("gradient",s),e.exports=s},function(e,t,n){function i(e,t){var n,i=0,r=t.length-1,a=-1;if(t[i]<=e&&e<=t[r])if(e===t[r])a=r-1;else{for(;r-i>1;)n=i+r>>1,e<t[n]?r=n:i=n;a=i}return a}function r(e,t){var n=e.range||[],r=t.createDiscretePalette(e.palette,n.length-1),o=a(e);return function(e){
return r.getColor(i(o(e),n))}}var a=n(638).createColorCodeGetter;n(638).addColorizer("range",r),e.exports=r},function(e,t,n){function i(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}function r(e,t){var n,i=e.nodes,a=i&&i.length;for(n=0;n<a;++n)t.push(i[n].proxy),r(i[n],t)}function a(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}function o(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}var s=n(634).prototype,l=n(636).prototype,c=n(11).extend;s._eventsMap.onNodesInitialized={name:"nodesInitialized"},s._eventsMap.onNodesRendering={name:"nodesRendering"},s._createProxyType=function(){function e(e){var t=this;e.proxy=t,t._id=e._id,t.level=e.level,t.index=e.index,t.data=e.data}var t,n=this;e.prototype={constructor:e,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(e){var n=t[this._id].nodes;return n?n[e].proxy:null},getChildrenCount:function(){var e=t[this._id].nodes;return e?e.length:0},getAllChildren:function(){var e,n=t[this._id].nodes,i=n&&n.length,r=[];for(e=0;e<i;++e)r.push(n[e].proxy);return r},getAllNodes:function(){var e=[];return r(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,r=t[this._id];return void 0!==e?(a(r,e>0?Number(e):0),i(r,["TILING"]),n=this):n=r.value,n},label:function(e){var n,r=t[this._id];return void 0!==e?(r.customLabel=e?String(e):null,i(r,["LABELS"]),n=this):n=r.customLabel||r.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},c(!0,n._custom,e),n._partialState=n._partialLabelState=null),i(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,i(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},s._extendProxyType=n(635).empty;var u=s._resetNodes;s._resetNodes=function(){u.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var d=l.updateStyles;l.updateStyles=function(){var e=this;d.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),c(!0,e.state,e._partialState))};var h=l.updateLabelStyle;l.updateLabelStyle=function(){var e=this,t=e._custom;h.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||o(e,t.label),e.labelState=c(!0,{},e.labelState,e._partialLabelState))},s.getRootNode=function(){return this._root.proxy},s.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){function i(e,t,n){var r,a=e.isNode()&&e.nodes,o=a&&a.length;for(e.setState(t,n),r=0;r<o;++r)i(a[r],t,n)}var r=n(634).prototype,a=n(636).prototype,o=n(635),s=n(509).parseScalar,l=o.buildRectAppearance,c=1;n(647),n(649),r._eventsMap.onHoverChanged={name:"hoverChanged"},o.expand(r._handlers,"calculateAdditionalStates",function(e,t){e[1]=t.hoverStyle?l(t.hoverStyle):{}}),n(634).addChange({code:"HOVER_ENABLED",handler:function(){var e=s(this._getOption("hoverEnabled",!0),!0);e||this.clearHover(),this._hoverEnabled=e},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),a.statesMap[1]=1,a.additionalStates.push(1),o.expand(r,"_extendProxyType",function(e){var t=this;e.setHover=function(){t._hoverNode(this._id)},e.isHovered=function(){return t._hoverIndex===this._id}}),o.expand(r,"_onNodesCreated",function(){this._hoverIndex=-1}),o.expand(r,"_changeGroupSettings",function(){var e=this;e._groupHoverEnabled=s(e._getOption("group").hoverEnabled,!0),e._groupHoverEnabled||e.clearHover()}),r._applyHoverState=function(e,t){i(this._nodes[e],c,t),this._eventTrigger("hoverChanged",{node:this._nodes[e].proxy})},r._hoverNode=function(e){var t=this,n=t._hoverIndex;if(t._hoverEnabled&&n!==e){if(!t._groupHoverEnabled&&e>=0&&t._nodes[e].isNode())return void t.clearHover();t._context.suspend(),t._hoverIndex=-1,n>=0&&t._applyHoverState(n,!1),t._hoverIndex=e,e>=0&&t._applyHoverState(e,!0),t._context.resume()}},r.clearHover=function(){this._hoverNode(-1)}},function(e,t,n){function i(e,t,n,i){var r,a=i.length;for(r=0;r<a;++r)e[i[r]]=c({},t,n[i[r]])}var r=n(634).prototype,a=n(636).prototype,o=r._handlers,s=o.calculateState,l=a._buildState,c=n(11).extend;o.calculateState=function(e){var t={0:s(e)};return o.calculateAdditionalStates(t,e),t},o.calculateAdditionalStates=n(635).empty,a.code=0,a.statesMap={0:0},a.additionalStates=[],a._buildState=function(e,t){var n={0:l(e[0],t)};return this.additionalStates.length&&i(n,n[0],e,this.additionalStates),n},a._getState=function(){return this.state[this.statesMap[this.code]]},a.setState=function(e,t){t?this.code|=e:this.code&=~e,this.ctx.change(["TILES"])}},function(e,t,n){function i(e,t){var n,i,r=t.length;for(n=0;n<r;++n)i=e[t[n]],g[Number(i.isNode())](i.tile)}function r(e){e.toForeground()}function a(e){e.outer.toForeground(),e.inner.toForeground()}var o=n(634).prototype,s=n(636).prototype,l=n(635),c=l.buildRectAppearance,u=n(509).normalizeEnum,d=n(26).inArray,h=0,p=1,f=2,_=2;n(647),n(649),o._eventsMap.onSelectionChanged={name:"selectionChanged"},l.expand(o._handlers,"calculateAdditionalStates",function(e,t){e[2]=t.selectionStyle?c(t.selectionStyle):{}}),s.statesMap[2]=s.statesMap[3]=_,s.additionalStates.push(2),l.expand(o,"_onNodesCreated",function(){this._selectionList.length=0}),l.expand(o,"_extendProxyType",function(e){var t=this;e.select=function(e){t._selectNode(this._id,!!e)},e.isSelected=function(){return d(this._id,t._selectionList)>=0},t._selectionList=[]}),n(634).addChange({code:"SELECTION_MODE",handler:function(){var e,t,n=this,i=u(n._getOption("selectionMode",!0)),r=n._selectionList;e="none"===i?h:"multiple"===i?f:p,e===p&&r.length>1?(t=r.pop(),n.clearSelection(),r.push(t)):e===h&&n.clearSelection(),n._selectionMode=e},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),l.expand(o,"_applyTilesAppearance",function(){this._selectionList.length&&i(this._nodes,this._selectionList)});var g=[r,a];o._applySelectionState=function(e,t){var n=this._nodes[e];n.setState(_,t),this._eventTrigger("selectionChanged",{node:n.proxy})},o._selectNode=function(e,t){var n,i,r,a=this;a._selectionMode!==h&&(a._context.suspend(),n=a._selectionList,i=d(e,n),t&&i===-1?(a._selectionMode===p&&n.length&&(r=n.pop(),a._applySelectionState(r,!1)),n.push(e),a._applySelectionState(e,!0)):!t&&i>=0&&(n.splice(i,1),a._applySelectionState(e,!1)),a._context.resume())},o.clearSelection=function(){var e,t=this,n=t._selectionList,i=n.length;if(t._selectionMode!==h){for(t._context.suspend(),e=0;e<i;++e)t._applySelectionState(n[e],!1);n.length=0,t._context.resume()}}},function(e,t,n){function i(e,t){var n=t.getRootOffset();return[(e[0]+e[2])/2+n.left,(e[1]+e[3])/2+n.top]}var r=n(634).prototype,a=n(635);n(647),a.expand(r,"_extendProxyType",function(e){var t=this;e.showTooltip=function(e){t._showTooltip(this._id,e)}}),a.expand(r,"_onNodesCreated",function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1}),a.expand(r,"_onTilingPerformed",function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])}),r._showTooltip=function(e,t){var n,i,r=this,a=r._tooltip;a.isEnabled()&&(n=r._nodes[e],i=r._tooltipIndex===e||a.show({value:n.value,valueText:a.formatValue(n.value),node:n.proxy},{x:0,y:0,offset:0},{node:n.proxy}),i?r._moveTooltip(n,t):a.hide(),r._tooltipIndex=i?e:-1)},r._moveTooltip=function(e,t){var n=t||e.rect&&i(e.rect,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},r.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},n(634).addPlugin(n(559).plugin)},function(e,t,n){function i(e){this._options={},this._initHandlers(e,this._options)}function r(e,t){var n=t.getData(e);n>=0&&t.eventTrigger("click",{node:t.getNode(n),coords:t.getCoords(e),jQueryEvent:e})}function a(e,t){var n=t.getData(e);n>=0?t.getNode(n).setHover():t.widget.clearHover()}function o(e,t){var n,i=t.getData(e);i>=0?(n=u(e),t.getNode(i).showTooltip([n.x,n.y])):t.widget.hideTooltip()}var s=n(634).prototype,l=n(635),c=n(11).extend,u=n(71).eventData,d=n(509).parseScalar,h=n(75).name,p=n(76).down,f=n(76).move,_=n(9),g=_(document),m="__treemap_data_",v=0;n(647),n(648),n(651),s._eventsMap.onClick={name:"click"},l.expand(s,"_initCore",function(){var e=this,t=m+v++;e._tracker=new i({widget:e,root:e._renderer.root,eventTrigger:e._eventTrigger,getData:function(e){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]},getProxy:function(t){return e._nodes[t].proxy},getCoords:function(t){var n=u(t),i=e._renderer.getRootOffset();return[n.x-i.left,n.y-i.top]}}),e._handlers.setTrackerData=function(e,n){n.data(t,e._id)}}),l.expand(s,"_disposeCore",function(){this._tracker.dispose()}),n(634).addChange({code:"INTERACT_WITH_GROUP",handler:function(){this._tracker.setOptions({interactWithGroup:d(this._getOption("interactWithGroup",!0),!1)})},isThemeDependent:!0,isOptionChange:!0,option:"interactWithGroup"}),i.prototype={constructor:i,_initHandlers:function(e,t){function n(t){r(t,e)}function i(t){l?l=!1:(void 0!==e.getData(t)&&(t.preventDefault(),l=!0),s(t))}function s(t){a(t,e),o(t,e)}e.getNode=function(n){var i=e.getProxy(n);return t.interactWithGroup&&i.isLeaf()&&i.getParent().isActive()?i.getParent():i},e.root.on(h,n),e.root.on(p,i),g.on(p,i),g.on(f,s),this._disposeHandlers=function(){e.root.off(h,n),e.root.off(p,i),g.off(p,i),g.off(f,s)};var l=!1},dispose:function(){this._disposeHandlers()},setOptions:function(e){c(this._options,e)}}},function(e,t,n){var i=n(634).prototype,r=n(635).expand;n(647),i._eventsMap.onDrill={name:"drill"},r(i,"_extendProxyType",function(e){var t=this;e.drillDown=function(){t._drillToNode(this._id)}}),r(i,"_onNodesCreated",function(){this._drilldownIndex=-1}),i._drillToNode=function(e){var t,n=this;n._drilldownIndex!==e&&(t=n._nodes[e]||n._root,t.nodes&&(n._drilldownIndex=e,n._topNode=t,n._context.suspend(),n._context.change(["MAX_DEPTH","NODES_RESET"]),n._context.resume(),n._eventTrigger("drill",{node:t.proxy})))},i.resetDrillDown=function(){return this._drillToNode(-1),this},i.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},i.getCurrentNode=function(){return this._topNode.proxy}},function(e,t,n){function i(e,t){var n,r,a,o=e.struct;for(r=0;r<t.length;r++)n=t[r],a=n[e.idField],o[a]&&(n.items=o[a].items,o[a]=null,i(e,n.items))}var r=n(634).prototype;r._optionChangesMap.idField=r._optionChangesMap.parentField="NODES_CREATE",r._processDataSourceItems=function(e){var t,n,r,a,o,s={},l=this._getOption("idField",!0),c=this._getOption("parentField",!0),u=[];if(!l||!c||0===e.length)return{items:e,isPlain:!0};for(t=0;t<e.length;t++)n=e[t],r=n[c],r?(s[r]=s[r]||{items:[]},a=s[r].items):a=u,a.push(n);i({struct:s,idField:l},u);for(o in s)s[o]&&u.push(s[o]);return{items:u,isPlain:!0}}},function(e,t,n){t.refreshPaths=n(518).refreshPaths},,function(e,t,n){n(506)}]);